1 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3 * config/s390/2097.md (z10_fhex): Remove insn reservation.
4 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
5 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
6 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
8 * config/s390/s390.c: Don't accept fp zeros as valid constants
11 2010-06-02 Jan Hubicka <jh@suse.cz>
13 * bitmap.c (bitmap_descriptor): Add search_iter.
14 (bitmap_find_bit): Increment it.
15 (print_statistics): Print it.
17 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
19 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
20 instead of gimple_build_call_vec. Delete unnecessary local variable.
22 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
24 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
25 change from yesterday.
27 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
29 * c-ada-spec.c: Clean up redundant includes.
31 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
33 * gimplify.c: Do not include except.h and optabs.h.
34 (gimplify_body): Do not initialize RTL profiling.
35 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
36 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
37 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
38 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
41 * tree-pretty-print.h: Include pretty-print.h.
42 * gimple-pretty-print.h: Include pretty-print.h.
44 * tree-pretty-print.c: Do not include diagnostic.h.
45 * tree-vrp.c: Likewise.
46 * tree-tailcall.c: Likewise
47 * tree-scalar-evolution.c: Likewise
48 * tree-ssa-dse.c: Likewise
49 * tree-chrec.c: Likewise
50 * tree-ssa-sccvn.c: Likewise
51 * tree-ssa-copyrename.c: Likewise
52 * tree-nomudflap.c: Likewise
53 * tree-call-cdce.c: Likewise
54 * tree-stdarg.c: Likewise
55 * tree-ssa-math-opts.c: Likewise
56 * tree-nrv.c: Likewise
57 * tree-ssa-sink.c: Likewise
58 * tree-browser.c: Likewise
59 * tree-ssa-loop-ivcanon.c: Likewise
60 * tree-ssa-loop.c: Likewise
61 * tree-parloops.c: Likewise
62 * tree-ssa-address.c: Likewise
63 * tree-ssa-ifcombine.c: Likewise
64 * tree-if-conv.c: Likewise
65 * tree-data-ref.c: Likewise
66 * tree-affine.c: Likewise
67 * tree-ssa-phiopt.c: Likewise
68 * tree-ssa-coalesce.c: Likewise
69 * tree-ssa-pre.c: Likewise
70 * tree-ssa-live.c: Likewise
71 * tree-predcom.c: Likewise
72 * tree-ssa-forwprop.c: Likewise
73 * tree-ssa-dce.c: Likewise
74 * tree-ssa-ter.c: Likewise
75 * tree-ssa-loop-prefetch.c: Likewise
76 * tree-optimize.c: Likewise
77 * tree-ssa-phiprop.c: Likewise
78 * tree-object-size.c: Likewise
79 * tree-outof-ssa.c: Likewise
80 * tree-ssa-structalias.c: Likewise
81 * tree-switch-conversion.c: Likewise
82 * tree-ssa-reassoc.c: Likewise
83 * tree-ssa-operands.c: Likewise
84 * tree-vectorizer.c: Likewise
85 * tree-vect-data-refs.c: Likewise
86 * tree-vect-generic.c: Likewise
87 * tree-vect-stmts.c: Likewise
88 * tree-vect-patterns.c: Likewise
89 * tree-vect-slp.c: Likewise
90 * tree-vect-loop.c: Likewise
91 * tree-ssa-loop-ivopts.c: Likewise
92 * tree-ssa-loop-im.c: Likewise
93 * tree-ssa-loop-niter.c: Likewise
94 * tree-ssa-loop-unswitch.c: Likewise
95 * tree-ssa-loop-manip.c: Likewise
96 * tree-ssa-loop-ch.c: Likewise
97 * tree-dump.c: Likewise
98 * tree-complex.c: Likewise
100 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
101 * tree-ssa-uninit.c: Likewise
102 * tree-ssa-threadupdate.c: Likewise
103 * tree-ssa-uncprop.c: Likewise
104 * tree-ssa-ccp.c: Likewise
105 * tree-ssa-dom.c: Likewise
106 * tree-ssa-propagate.c: Likewise
107 * tree-ssa-alias.c: Likewise
108 * tree-dfa.c: Likewise
109 * tree-cfgcleanup.c: Likewise
110 * tree-sra.c: Likewise
111 * tree-ssa-copy.c: Likewise
112 * tree-ssa.c: Likewise
113 * tree-profile.c: Likewise
114 * tree-cfg.c: Likewise
115 * tree-ssa-threadedge.c: Likewise
116 * tree-vect-loop-manip.c: Likewise
118 * tree-inline.c: Do not include diagnostic.h and expr.h.
120 (copy_decl_for_dup_finish): Do not use NULL_RTX.
122 * tree-loop-linear.c: Do not include diagnostic.h, expr.h,
124 * tree-loop-distribution.c: Likewise.
126 2010-06-01 Jan Hubicka <jh@suse.cz>
128 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
130 2010-06-01 Jan Hubicka <jh@suse.cz>
132 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
134 (split_bbs_on_noreturn_calls) .... here.
135 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
136 * tree-flow.h (fixup_noreturn_call): New.
138 2010-06-01 Jan Hubicka <jh@suse.cz>
140 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
142 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
144 * tree.h (build_nt_call_list): Delete.
145 * tree.c (build_nt_call_list): Delete.
147 2010-06-01 Jan Hubicka <jh@suse.cz>
149 * fwprop.c: Make emit-rtl.h include last.
150 * rtlanal.c: Include emit-rtl.h.
151 * genautomata.c: Output emit-rtl include into insn-automata.c
152 * df-scan.c: Include emit-rtl.h.
153 * haifa-sched.c: Indlude emit-rtl.h.
154 * mode-switching.c: Indlude emit-rtl.h.
155 * graph.c: Indlude emit-rtl.h.
156 * sel-sched.c: Include emit-rtl.h.
157 * sel-sched-ir.c: Include emit-rtl.h.
158 * ira-build.c: Include emit-rtl.h.
159 * emit-rtl.c: (first_insn, last_insn): Remove defines.
160 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
162 (set_new_first_and_last_insn, get_last_insn_anywhere, get_first_nonnote_insn,
163 get_last_nonnote_insn, try_split, make_call_insn_raw, add_insn_after,
164 add_insn_before, remove_insn, delete_insns_since, reorder_insns_nobb,
165 emit_insn_after_1, emit_debug_insn_before, emit_insn, start_sequence,
166 push_to_sequence, push_to_sequence2, push_topmost_sequence, end_sequence,
167 copy_insn): Use accessor functions.
168 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
169 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
170 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
171 mem_expr_equal_p): Move here from rtl.h
172 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
173 Move here from emit-rtl.c; make inline.
174 * cfglayout.h: Include emit-rtl.h
175 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
176 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
177 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
178 mem_expr_equal_p, get_insns, set_first-insn, get_last_insn, set_last_insn,
179 get_max_uid): Move to emit-rtl.h.
180 * reg-stack.c: Include emit-rtl.h
183 2010-06-01 Jan Hubicka <jh@suse.cz>
185 * cgraph.h (tree_function_versioning): Update prototype.
186 (cgraph_function_versioning): Update prototype.
187 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
189 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
190 (cgraph_materialize_clone, save_inline_function_body): Update use of
191 tree_function_versioning.
192 * tree-inline.c (copy_bb): Look for previous copied block to link after;
194 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
195 (copy_body): Likewise.
196 (expand_call_inline): Update use of copy_body.
197 (tree_function_versioning): Update use of copy body; accept
198 blocks_to_copy and new_entry.
200 2010-06-01 Jan Hubicka <jh@suse.cz>
202 * gegenrtl.c: Remove unnecesary prototypes.
204 (gendef): Produce static inline.
206 (main): Do not decode parameters; generate header only.
207 * Makefile.in (genrtl.c): Remove.
209 2010-06-01 Jan Hubicka <jh@suse.cz>
211 * tree-switch-conversion.c (build_one_array): Make it readonly.
213 2010-06-01 Richard Guenther <rguenther@suse.de>
215 * optabs.c (init_optabs): Guard all accesses to reinit.
216 * ipa-pure-const.c (propagate): Fix another typo.
217 * opts.c (common_handle_option): Split assignment to bool.
218 * c-opts.c (c_common_handle_option): Likewise.
220 2010-06-01 Arnaud Charlet <charlet@adacore.com>
221 Matthew Gingell <gingell@adacore.com>
223 * doc/invoke.texi: Mention -fdump-ada-spec.
224 * tree-dump.c (dump_files): Add ada-spec.
225 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
226 * tree-pass.h (tree_dump_index): Add TDI_ada.
227 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
228 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
229 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
230 * c-decl.c: Include c-ada-spec.h.
231 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
233 (c_write_global_declarations): Add handling of -fdump-ada-spec.
234 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
235 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
236 * c-ada-spec.h, c-ada-spec.c: New files.
238 2010-06-01 Richard Guenther <rguenther@suse.de>
241 * ipa-pure-const.c (get_function_state): Hand back varying state
242 if we do not have one.
243 (has_function_state): New function.
244 (duplicate_node_data): Adjust.
245 (remove_node_data): Likewise.
246 (pure_const_write_summary): Likewise.
247 (propagate): Likewise. Fix typo.
249 2010-06-01 Jan Hubicka <jh@suse.cz>
251 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
252 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
253 (execute_all_ipa_transforms): Do not play with the states.
255 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
257 * config/arm/t-linux-androideabi: New.
258 * config.gcc (arm*-*-linux-androideabi): Include multilib configuration.
260 2010-06-01 Jan Hubicka <jh@suse.cz>
262 * tree-inline.c (estimate_num_insns): For stdarg functions look
263 into call statement to count cost of argument passing.
267 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
268 argument for fprintf.
269 (ix86_output_addr_diff_elt): Likewise.
270 (x86_function_profiler): Likewise.
271 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix
272 for x64 no-underscore.
274 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
276 2010-05-31 Jakub Jelinek <jakub@redhat.com>
279 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
280 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
281 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
282 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
283 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
284 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
285 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
286 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
289 2010-05-31 Jan Hubicka <jh@suse.cz>
291 * tree.h (tree_range_check_failed): Declare noreturn.
293 2010-05-31 Jan Hubicka <jh@suse.cz>
295 * gimple.c (gimple_call_builtin_p): New function.
296 * gimple.h (gimple_call_builtin_p): Declare.
297 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
299 (execute_warn_function_return): BUILT_IN_RETURN is return.
300 (split_critical_edges): Return edges are not critical.
301 (is_ctrl_altering_stmt): Builtin_in_return is altering.
302 (gimple_verify_flow_info): Handle built_in_return.
303 (execute_warn_function_return): Handle built_in_return.
304 * ipa-pure-const.c (check_call): Ignore builtin_return.
306 2010-05-31 Jakub Jelinek <jakub@redhat.com>
309 * expr.c (expand_assignment): Don't store anything for out-of-bounds
310 array accesses with non-MEM.
312 PR tree-optimization/44182
313 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
314 newly needs to end a bb is followed by debug stmts, instead return
315 true from the function at the end.
316 (maybe_move_debug_stmts_to_successors): New function.
317 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
319 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
322 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
325 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
327 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
328 for nested functions in non-optimized compilation.
330 2010-05-31 Richard Guenther <rguenther@suse.de>
332 * tree-ssa-structalias.c (find_func_aliases): Handle
335 2010-05-30 Jan Hubicka <jh@suse.cz>
337 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
339 2010-05-30 Richard Guenther <rguenther@suse.de>
342 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
343 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
346 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
348 * config/darwin.c (output_objc_section_asm_op): Add comment.
349 (name_needs_quotes): Add '_' to list of valid comment chars.
350 (machopic_output_function_base_name): Remove unneeded quotes.
351 (darwin_encode_section_info): Adjust asm whitespace.
352 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
353 (ASM_OUTPUT_LOCAL): Ditto.
354 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
355 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
356 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
358 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
360 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
361 RS6000_OUTPUT_BASENAME unconditionally.
362 (rs6000_output_function_epilogue): Likewise.
364 2010-05-30 Jan Hubicka <jh@suse.cz>
366 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
369 2010-05-30 Richard Guenther <rguenther@suse.de>
371 * tree-cfg.c (verify_gimple_assign_single): Implement
372 verification for COND_EXPR rhs.
374 2010-05-30 Jan Hubicka <jh@suse.cz>
376 * cgraph.h (cgraph_dump_file): Declare.
377 * cgraphunit.c (cgraph_dump_file): Export.
378 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less
381 2010-05-30 Jan Hubicka <jh@suse.cz>
383 * dwarf2out.c (reference_to_unused,
384 premark_types_used_by_global_vars_helper): Avoid creation of new
387 2010-05-30 Jan Hubicka <jh@suse.cz>
389 * cgraph.h (cgraph_node_cannot_return,
390 cgraph_edge_cannot_lead_to_return): New functions.
391 * cgraph.c (cgraph_node_cannot_return,
392 cgraph_edge_cannot_lead_to_return): Use them.
393 * ipa-pure-const.c (pure_const_names): New static var.
394 (check_call): Handle calls not leading to return.
395 (pure_const_read_summary): Dump info read.
396 (propagate): Dump info about propagation process; ignore side
397 effects of functions not leading to exit; fix handling of
400 2010-05-30 Jan Hubicka <jh@suse.cz>
402 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
403 for tail call epilogues.
405 2010-05-30 Jan Hubicka <jh@suse.cz>
407 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
408 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
411 2010-05-29 Jan Hubicka <jh@suse.cz>
413 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
414 node; remove references in node we no longer keep in cgrpah but need
417 2010-05-29 Jan Hubicka <jh@suse.cz>
419 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
421 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
424 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
426 2010-05-29 Jan Hubicka <jh@suse.cz>
428 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
429 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
430 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
431 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
432 debug_names_replaced_by, debug_update_ssa): Likewise.
433 * sbitmap.c (debug_sbitmap): Likewise.
434 * genrecog.c (debug_decision, debug_decision_list): Likewise.
435 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
436 debug_tree_chain): Likewise.
437 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
438 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
439 * optabs.c (debug_optab_libfuncs): Likewise.
440 (verify_loop_closed_ssa): Likewise.
441 * value-prof.c (verify_histograms): Likewise.
442 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
443 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
444 * cfghooks.c (verify_flow_info): Likewise.
445 * fold-const.c (debug_fold_checksum): Likewise.
446 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
447 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
449 * omega.c (debug_omega_problem): Likewise.
450 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
451 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
452 * dominance.c (verify_dominators, debug_dominance_info,
453 debug_dominance_tree): Likewise.
454 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
455 * df_regno_debug, df_ref_debug,
456 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
457 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
458 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
459 * sel-sched.c (debug_state): Likewise.
460 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
462 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
463 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
464 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
465 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
467 * c-pretty-print.c (debug_c_tree): Likewise.
468 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
469 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
470 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
471 * ebitmap.c (debug_ebitmap): Likewise.
472 * function.c (debug_find_var_in_block_tree): Likewise.
473 * print-rtl.c (debug_rtx): Likewise.
474 (debug_rtx_count): Likewise.
475 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
476 * stor-layout.c (debug_rli): Likewise.
477 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
478 * tree-data-ref.c (debug_data_references,
479 debug_data_dependence_relations, debug_data_reference,
480 debug_data_dependence_relation, debug_rdg_vertex,
481 debug_rdg_component, debug_rdg): Likewise.
482 * tree-affine.c (debug_aff): Likewise.
483 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
485 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
486 * emit-rtl.c (verify_rtl_sharing): Likewise.
487 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
488 debug_value_expressions): Likewise.
489 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
490 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
491 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
492 * cfglayout.c (verify_insn_chain): Likewise.
493 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
494 debug_clast_stmt, debug_generated_program): Likewise.
495 * ggc-page.c (debug_print_page_list): Likewise.
496 * tree-ssa-ter.c (debug_ter): Likewise.
497 * graphite-dependences.c (debug_pddr): Likewise.
498 * sched-deps.c (debug_ds): Likewise.
499 * tree-ssa.c (verify_ssa): Likewise.
500 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
501 debug_scattering_functions, debug_iteration_domains, debug_pdr,
502 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
503 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
504 * tree-inline.c (debug_find_tree): Likewise.
505 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
506 debug_ppl_powerset_matrix): Likewise.
507 * var-tracking.c (debug_dv): Likewise.
508 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
509 * cfgloop.c (verify_loop_structure): Likewise.
510 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
511 * c-common.c (verify_sequence_points): Likewise.
512 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
513 debug_candidates, debug_rgn_dependencies): Likewise.
514 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
515 * debug_constraint_graph, debug_solution_for_var,
516 debug_sa_points_to_info): Likewise.
517 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
519 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
520 debug_loops, debug_loop, debug_loop_num): Likewise.
521 * passes.c (debug_pass): Likewise.
522 (dump_properties): Likewise; add cfglayout property.
523 (debug_properties): Likewise.
524 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
525 * varpool.c (debug_varpool): Likewise.
526 * regcprop.c (debug_value_data): Likewise.
527 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
528 debug_immediate_uses_for): Likewise.
530 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
533 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
534 Filter out insn-flags.h.
536 2010-05-29 Jan Hubicka <jh@suse.cz>
538 * cgraph.h (struct varpool_node_set_def,
539 struct cgraph_node_set_def): Remove unused AUX pointer.
540 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
543 2010-05-29 Jan Hubicka <jh@suse.cz>
546 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
548 2010-05-29 Richard Guenther <rguenther@suse.de>
550 * lto-streamer.c (cached_bp): New global variable.
551 (bitpack_create): Return the cached bitpack, if available.
552 (bitpack_delete): Clear and cache the bitpack, if appropriate.
553 (bp_pack_value): Remove redundant asserts.
555 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
558 * tree-if-conv.c (is_true_predicate): New.
559 (is_predicated): Use is_true_predicate.
560 (add_to_predicate_list): Same. Do not use unshare_expr.
561 (add_to_dst_predicate_list): Same.
563 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
565 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
567 (predicate_bbs): Same.
568 (clean_predicate_lists): Same.
569 (find_phi_replacement_condition): Do not AND the predicate from
572 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
575 * Makefile.in (build/gencondmd.o): Add a missing `\'.
577 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
580 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
581 (negdf2): Adjust expander pattern and use negdf2_slow.
584 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
586 * basic-block.h (struct control_flow_graph): Move last_label_uid field
588 * df.h (struct df_base_ref): Move regno field up.
589 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
590 * expr.h (struct separate_ops): Move location field up.
591 * optabs.h (struct optab_d): Move libcall_basename field down.
592 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
593 * config/i386/i386.h (struct machine_function): Convert call_abi field
594 into a bitfield. Move cfa field to the end of the structure.
596 2010-05-29 Jan Hubicka <jh@suse.cz>
598 * varpool.c (varpool_get_node): Fix lookup.
600 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
602 * config/spu/spu-protos.h: Do not include rtl.h. Protect
603 RTL specific prototypes with #ifdef RTX_CODE.
604 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
605 * config/spu/t-spu-elf: Fix dependencies.
607 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
609 2010-05-29 Mike Stump <mikestump@comcast.net>
612 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
613 TM_H when building to avoid dependency loops.
615 2010-05-29 Jan Hubicka <jh@suse.cz>
617 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
618 refs and body; not the whole node for masters of materialized
621 2010-05-29 Mike Stump <mikestump@comcast.net>
623 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
625 2010-05-29 Jan Hubicka <jh@suse.cz>
627 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
628 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
629 use of clone_function_name.
630 * cgraph.h (cgraph_create_virtual_clone,
631 cgraph_function_versioning): update prototypes.
632 (clone_function_name): Declare.
633 * ipa-cp.c (ipcp_insert_stage): Update call of
634 cgraph_create_virtual_clone.
635 * omp-low.c (create_omp_child_function_name): Use
636 cgraph_create_virtual_clone.
637 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
638 (cgraph_function_versioning): Take SUFFIX argument; produce new name
641 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
643 * vec.h: Include statistics.h
644 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
647 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
649 * c-lex.c: Do not include c-tree.h.
650 * c-pretty-print.c: Likewise.
651 * c-opts.c: Likewise.
652 * c-gimplify.c: Likewise.
653 * c-common.c: Likewise.
654 * c-dump.c: Likewise. Include c-common.h.
656 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
658 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
659 before including diagnostic-core.h.
660 (c_cpp_error): New prototype moved from c-tree.h.
661 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
662 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
663 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
664 (c_cpp_error): Prototype moved to c-common.h.
665 * Makefile.in: Update dependency for C_COMMON_H.
667 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
669 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
670 * c-common.c (c_register_addr_space): Remove here.
671 * c-decl.c (c_register_addr_space): Re-add here.
673 2010-05-28 Mike Stump <mikestump@comcast.net>
675 * config/darwin-c.c: Remove c-tree.h include.
677 2010-05-28 Joseph Myers <joseph@codesourcery.com>
679 * gcc.c: Include diagnostic.h.
680 (error_count): Remove. All users changed to use errorcount.
681 (programname): Remove. All users changed to use progname.
682 (fancy_abort, internal_error, fatal_error, error, warning, inform,
684 (execute): Don't include "Internal error" and bug reporting
685 information in argument of internal_error call.
686 (process_command): Don't increment error_count after calling
688 (input_filename): Rename to gcc_input_filename. All users
690 (main): Call diagnostic_initialize. Register delete_temp_files
691 with atexit. Use seen_error to test for errors.
692 * gcc.h: Include diagnostic-core.h.
693 (fatal_error, error, warning): Remove.
694 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
695 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
696 (gcc.o): Update dependencies.
698 2010-05-28 Jeff Law <law@redhat.com>
700 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
702 * ira.h (ira_bad_reload_regno): Declare
703 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
705 * ira-color.c (update_curr_costs): Free updated hard reg costs.
706 (ira_reassign_conflict_allocnos): Remove bogus asserts.
707 (allocno_reload_assign): Likewise.
709 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
711 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
714 2010-05-28 Richard Guenther <rguenther@suse.de>
717 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
718 Stream fixed-point constants mode.
719 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
721 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
722 Stream fixed-point constants mode.
723 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
726 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
728 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
729 only place it was called from.
730 (number_of_latch_executions): Do not return chrec_dont_know when the
731 may_be_zero is a runtime condition: instead, return a COND_EXPR
732 including the may_be_zero condition.
733 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
735 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
738 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
740 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
741 generate COND_EXPRs for degenerate_phi_result.
743 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
746 * tree-if-conv.c (if_convertible_loop_p): Check the
747 if-convertibility of phi nodes in non predicated BBs.
749 2010-05-28 Joseph Myers <joseph@codesourcery.com>
751 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
753 2010-05-28 Joseph Myers <joseph@codesourcery.com>
756 * gcc.c (inform, warning, inform): New functions.
757 (fatal_ice): Rename to internal_error; change cmsgid parameter to
758 gmsgid. All callers changed.
759 (notice): Rename to fnotice; add parameter fp. All callers
761 (fatal_error): Rename to fatal_signal. All users changed.
762 (fatal): Rename to fatal_error; change cmsgid parameter to
763 gmsgid. All callers changed.
764 (process_command): Use warning instead of error for warnings.
765 (end_going_arg): Don't use _() around argument of error.
766 (do_spec_1): Use inform for message from %n specs. Use warning
767 instead of error for warnings.
768 (main): Use inform for comparison messages. Use warning for
769 message about unused linker input.
770 (error): Increment error_count. Print "error: ".
771 * gcc.h (fatal): Change to fatal_error.
773 * config/darwin-driver.c (darwin_default_min_version): Use warning
774 instead of fprintf for warnings.
775 * cppspec.c (lang_specific_driver): Use fatal_error instead of
778 2010-05-28 Julian Brown <julian@codesourcery.com>
780 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
781 (*thumb2_addsi3_compare0_scratch): New.
782 * config/arm/constraints.md (Pv): New.
783 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
785 (*addsi3_compare0_scratch): Likewise.
787 2010-05-28 Jan Hubicka <jh@suse.cz>
789 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
791 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
792 only on local statics.
794 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
796 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
798 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
801 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
802 (OPTION_GLIBC): Define.
804 2010-05-28 Jakub Jelinek <jakub@redhat.com>
807 * dwarf2out.c (double_int_type_size_in_bits): New function.
808 (round_up_to_align): Change first argument and return value to
810 (field_byte_offset): Work internally on double_ints.
813 * builtins.c (expand_movstr): Use a temporary pseudo instead
814 of target even when target is not NULL and not const0_rtx, but
815 fails movstr predicate.
816 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
818 2010-05-28 Joseph Myers <joseph@codesourcery.com>
820 * final.c (rest_of_clean_state): Use %m in errors instead of
822 * gengtype.c (read_input_list, close_output_files): Use xstrerror
824 * toplev.c (process_options): Use %m in errors instead of strerror
826 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
829 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
831 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
832 (ix86_canonical_va_list_type): Make static. Add declaration.
833 (ix86_enum_va_list): Make static. Reindent.
834 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
835 (ix86_canonical_va_list_type): Ditto.
836 (ix86_enum_va_list): Ditto.
838 2010-05-28 Richard Guenther <rguenther@suse.de>
840 * lto-wrapper.c (run_gcc): With -save-temps generate a
841 user-visible ltrans filename. Fixup ltrans unit numbering.
843 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
845 * c-common.c (c_common_nodes_and_builtins): Replace use
846 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
847 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
848 to ix86_enum_va_list.
849 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
850 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
851 (TARGET_ENUM_VA_LIST_P): Add hook description.
852 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
853 * target.h (gcc_target): Add enum_va_list hook.
856 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
857 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
858 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
860 2010-05-28 Alan Modra <amodra@gmail.com>
863 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
864 emit_library_call machinery to set up __tls_get_addr calls.
866 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
868 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
870 2010-05-28 Dodji Seketeli <dodji@redhat.com>
872 Revert fix for PR c++/44188
873 * c-common.c (is_typedef_decl): Revert the moving of this
875 * tree.c (is_typedef_decl): ... here.
876 (typdef_variant_p): Revert the moving of this definition
877 here from gcc/cp/tree.c.
878 * c-common.h (is_typedef_decl): Revert the moving of this
880 * tree.h (is_typedef_decl): ... here.
881 (typedef_variant_p): Revert the moving of this declaration here
882 from gcc/cp/cp-tree.h
883 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
884 (gen_tagged_type_die): Revert the splitting out of ...
885 (gen_type_die_with_usage): ... this function. Revert the anonymous
886 tagged type handling.
887 (gen_typedef_die): Revert emitting DW_TAG_typedef for
888 typedefs naming anonymous tagged types.
890 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
892 * config/rs6000/rs6000-modes.def (PSImode): Delete.
894 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
896 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
897 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
899 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
901 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
902 XER_REGS to CA_REGS throughout.
903 * config/rs6000/rs6000.h: Same.
904 (ADDITIONAL_REGISTER_NAMES): Add "xer".
905 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
906 that mode_iterator "P" is the size for arithmetic carries as well.
907 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
909 2010-05-28 Jakub Jelinek <jakub@redhat.com>
912 * combine.c (struct rtx_subst_pair): Define unconditionally.
913 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
914 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
915 Call make_compound_operation on pair->to.
916 (propagate_for_debug): Don't call make_compound_operation here.
917 Always use simplify_replace_fn_rtx.
919 2010-05-27 Sterling Augustine <sterling@tensilica.com>
921 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
922 * config/xtensa/xtensa.c (override_options): Check
923 TARGET_FORCE_NO_PIC and set flag_pic.
924 * config/xtensa/xtensa.opt: Document -mforce-no-pic
926 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
929 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
930 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
932 2010-05-27 Joseph Myers <joseph@codesourcery.com>
934 * diagnostic-core.h: New. Contents moved from diagnostic.h and
936 * diagnostic.c: Don't include toplev.h.
937 (progname): Define. Moved from toplev.c.
938 (seen_error): New function.
939 * diagnostic.h: Include diagnostic-core.h.
940 (diagnostic_t, emit_diagnostic): Don't declare here.
941 * toplev.c (progname): Move to toplev.c.
942 (emit_debug_global_declarations, compile_file, finalize,
943 do_compile, toplev_main): Use seen_error.
944 * toplev.h: Include diagnostic-core.h.
945 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
946 internal_error, warning, warning_at, error, error_n, error_at,
947 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
948 verbatim, fnotice, progname): Move to diagnostic-core.h.
949 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
950 (expand_builtin_expect): Use seen_error.
951 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
952 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
953 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
954 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
955 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
956 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
957 errorcount for errors.
958 * c-opts.c (c_common_finish): Use seen_error.
959 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
960 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
961 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
962 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
963 (get_coverage_counts): Use seen_error.
964 * dwarf2out.c (dwarf2out_finish): Use seen_error.
965 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
966 gimplify_body): Use seen_error.
967 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
968 * ipa-pure-const.c (gate_pure_const): Use seen_error.
969 * ipa-reference.c (gate_reference): Use seen_error.
970 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
971 * lambda-code.c: Include diagnostic-core.h instead of
973 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
974 * lto-compress.c: Include diagnostic-core.h instead of
976 * lto-section-in.c: Include diagnostic-core.h instead of
978 * lto-streamer-out.c: Include diagnostic-core.h instead of
980 * lto-streamer.c: Include diagnostic-core.h instead of
982 (gate_lto_out): Use seen_error.
983 * matrix-reorg.c: Include diagnostic-core.h instead of
985 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
986 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
987 (gate_expand_omp, lower_omp_1): Use seen_error.
988 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
989 (rest_of_decl_compilation, rest_of_type_compilation,
990 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
991 * tree-cfg.c (label_to_block_fn): Use seen_error.
992 * tree-inline.c (optimize_inline_calls): Use seen_error.
993 * tree-mudflap.c (mudflap_finish_file): Use
995 * tree-optimize.c (gate_all_optimizations,
996 gate_all_early_local_passes, gate_all_early_optimizations): Use
998 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
999 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
1000 (varpool_remove_unreferenced_decls,
1001 varpool_assemble_pending_decls): Use seen_error.
1002 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
1003 (TOPLEV_H, DIAGNOSTIC_H): Update.
1004 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
1005 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
1006 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
1007 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
1008 coverage.o, lambda-code.o): Update dependencies.
1010 2010-05-25 Dodji Seketeli <dodji@redhat.com>
1013 * c-common.c (is_typedef_decl): Move this definition ...
1014 * tree.c (is_typedef_decl): ... here.
1015 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
1016 * c-common.h (is_typedef_decl): Move this declaration ...
1017 * tree.h (is_typedef_decl): ... here.
1018 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
1019 * dwarf2out.c (is_naming_typedef_decl): New function.
1020 (gen_tagged_type_die): Split out of ...
1021 (gen_type_die_with_usage): ... this function. When an anonymous
1022 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
1023 is emitted for the typedef.
1024 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
1025 anonymous tagged types.
1027 2010-05-27 Jason Merrill <jason@redhat.com>
1029 * print-tree.c (debug_vec_tree): New fn.
1030 (print_vec_tree): New fn.
1031 * tree.h: Declare them.
1032 * gdbinit.in (pvt): New command.
1034 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
1036 * gdbinit.in (pdd): New command.
1038 2010-05-27 Jan Hubicka <jh@suse.cz>
1040 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
1041 (update_caller_keys): Return early if there are no callers;
1042 only update fibheap when decresing the key.
1043 (update_callee_keys): Avoid recursion.
1044 (decide_inlining_of_small_functions): When badness does not match;
1045 re-insert into fibheap.
1047 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
1049 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
1050 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
1051 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
1052 (ALL_HOST_OBJS): Now a union of the above two.
1053 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
1054 all files in ALL_HOST_FRONTEND_OBJS.
1055 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
1057 * c-common.c: Pretend to be a backend file by undefining
1058 IN_GCC_FRONTEND (still need rtl.h here).
1060 2010-05-27 Jan Hubicka <jh@suse.cz>
1062 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
1063 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
1065 2010-05-27 Jan Hubicka <jh@suse.cz>
1067 * sched-ebb.c: Rename struct deps to struct deps_desc.
1069 * sel-sched-ir.c: Likewise.
1070 * sched-deps.c: Likewise.
1071 * sched-int.h: Likewise.
1072 * sched-rgn.c: Likewise.
1074 2010-05-27 Jon Beniston <jon@beniston.com>
1077 * config/lm32/lm32.h: Remove definition of
1078 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
1080 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
1083 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
1085 2010-05-27 Richard Guenther <rguenther@suse.de>
1087 PR tree-optimization/44284
1088 * tree-vect-stmts.c (vectorizable_assignment): Handle
1089 sign-changing conversions as simple copy.
1091 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1093 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
1095 (__gthread_active_p): Check for pthread_create if compiling against
1098 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1100 Support compilation for Android platform. Reimplement -mandroid.
1102 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
1103 (*android*): Set ANDROID_DEFAULT.
1104 (arm*-*-linux*): Include linux-android.h.
1105 (arm*-*-eabi*): Don't include previous -mandroid implementation.
1106 * config/arm/eabi.h: Remove, move Android-specific parts ...
1107 * config/linux-android.h: ... here. New file.
1108 * config/arm/eabi.opt: Rename to ...
1109 * config/linux-android.opt: ... this.
1110 (mandroid): Allow -mno-android option. Initialize based on
1112 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
1113 Move logic to corresponding LINUX_TARGET_* macros.
1114 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
1115 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
1116 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
1117 Android definitions.
1118 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
1119 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
1122 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1124 Add support for Bionic C library
1126 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
1128 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
1129 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
1131 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
1132 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
1133 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
1134 to support multiple C libraries. Handle Bionic.
1135 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
1136 (BIONIC_DYNAMIC_LINKER64): Define.
1137 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
1139 (TARGET_HAS_SINCOS): Enable for Bionic.
1141 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
1142 the last option specified on command line take effect.
1143 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
1145 (mglibc, muclibc): Update.
1147 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
1148 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
1151 * doc/invoke.texi (-mglibc, -muclibc): Update.
1152 (-mbionic): Document.
1154 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1156 * c-common.h (c_register_addr_space): Add prototype.
1157 (ADDR_SPACE_KEYWORD): Remove.
1158 * c-common.c (c_register_addr_space): New function.
1159 (c_addr_space_name): Reimplement.
1160 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
1162 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
1163 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
1165 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
1166 Remove TARGET_ADDR_SPACE_KEYWORDS.
1168 2010-05-27 Joseph Myers <joseph@codesourcery.com>
1170 * input.c: New file.
1171 * input.h (main_input_filename): Move declaration to toplev.h.
1172 * toplev.c (input_location, line_table): Move to input.c
1173 * toplev.h (main_input_filename): Move declaration from input.h.
1174 * tree.c (expand_location): Move to input.c.
1175 * Makefile.in (OBJS-common): Add input.o.
1176 (input.o): Add dependencies.
1178 2010-05-27 Richard Guenther <rguenther@suse.de>
1180 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
1181 for non-existant files.
1182 (fork_execute): Mark args_name file as deleted.
1184 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
1187 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
1188 (narrow_signed_type): Likewise.
1190 2010-05-26 Jan Hubicka <jh@suse.cz>
1192 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
1193 edge only when checking is enabled; check using former_clone_of;
1194 check inline clones too.
1195 (cgraph_materialize_clone): Record former_clone_of pointer.
1196 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
1197 combining redirections; dump args_to_skip bitmap
1198 (cgraph_materialize_all_clones): Do no redirection here.
1199 * ipa-inline.c (inline_transform): Do redirection here.
1200 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
1203 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1205 * config/avr/avr-c.c: Do not include regs.h.
1206 Include cpplib.h for cpp_define and tree.h for c-common.h.
1207 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
1208 * config/avr/t-avr: Fix dependencies for avr-c.o.
1210 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1212 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
1213 string instead of SYMBOL_REF rtx.
1214 * rtl.h (set_stack_check_libfunc): Move prototype from here...
1215 * libfuncs.h: ...to here. Adjust for explow.c change.
1217 2010-05-26 Joseph Myers <joseph@codesourcery.com>
1219 * pretty-print.c: Don't include ggc.h.
1220 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
1221 (identifier_to_locale): Use them for allocation.
1222 * pretty-print.h (identifier_to_locale_alloc,
1223 identifier_to_locale_free): Declare.
1224 * toplev.c (alloc_for_identifier_to_locale): New.
1225 (general_init): Set identifier_to_locale_alloc and
1226 identifier_to_locale_free.
1227 * Makefile.in (pretty-print.o): Update dependencies.
1229 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
1231 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
1232 pointer types if they have different alignment or mode.
1234 2010-05-26 Anatoly Sokolov <aesok@post.ru>
1236 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1237 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1238 * config/sparc/sparc-protos.h (function_value): Remove declaration.
1239 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
1240 sparc_function_value_regno_p): New functions.
1241 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1242 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1243 (function_value): Rename to...
1244 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
1245 argument to 'outgoing'.
1246 (function_arg_record_value, function_arg_union_value,
1247 function_arg_vector_value): Update comment.
1249 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
1251 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
1252 (fde_needed_for_eh_p): New predicate.
1253 (output_call_frame_info): Use it throughout to decide whether FDEs
1254 are needed for EH purpose.
1255 (dwarf2out_begin_prologue): Reorder assignments.
1257 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1259 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
1260 special case loop->header.
1261 (is_predicated): New.
1262 (if_convertible_loop_p): Call it.
1264 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1266 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
1267 iterator in parameter. Do not generate code during the analysis.
1268 (tree_if_convert_cond_stmt): Removed.
1269 (tree_if_convert_stmt): Removed.
1270 (predicate_bbs): New.
1271 (if_convertible_loop_p): Call predicate_bbs.
1272 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
1273 now contains all the analysis part.
1275 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1277 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
1278 statements in the analysis part.
1279 (tree_if_convert_stmt): Update comment.
1280 (remove_conditions_and_labels): New.
1281 (combine_blocks): Call remove_conditions_and_labels.
1282 (tree_if_conversion): Update comment.
1284 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1286 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
1287 than 2 predecessors or more than 2 successors.
1289 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1291 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
1292 of loops in which the data dependence analysis fails.
1294 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1296 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
1297 CDI_POST_DOMINATORS.
1298 (tree_if_conversion): Same.
1300 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1302 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
1304 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1306 * tree-if-conv.c: Update copyright years. Fix comments.
1309 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
1311 * builtin-types.def (BT_INT128): New primitive type.
1312 (BT_UINT128): Likewise.
1313 * c-common.c (c_common_r): Add __int128 keyword.
1314 (c_common_type_for_size): Handle __int128.
1315 (c_common_type_for_mode): Likewise.
1316 (c_common_signed_or_unsigned_type): Likewise.
1317 (c_common_nodes_and_builtins): Add builtin type
1318 if target supports 128-bit integer scalar.
1319 * c-common.h (enum rid): Add RID_INT128.
1320 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
1321 if target supports 128-bit integer scalar.
1322 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
1323 (finish_declspecs): Likewise.
1324 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
1325 (c_token_starts_declspecs): Likewise.
1326 (c_parser_declspecs): Likewise.
1327 (c_parser_attributes): Likewise.
1328 (c_parser_objc_selector): Likewise.
1329 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
1330 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
1331 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
1332 * tree.c (make_or_reuse_type): Likewise.
1333 (make_unsigned_type): Likewise.
1334 (build_common_tree_nodes_2): Likewise.
1335 * tree.h (enum integer_type_kind): Add itk_int128 and
1336 itk_unsigned_int128.
1337 (int128_integer_type_node): New define.
1338 (int128_unsigned_type_node): New define.
1339 * doc/extend.texi: Add documentation about __int128 type.
1341 2010-05-26 Richard Guenther <rguenther@suse.de>
1343 * tree-ssa-sccvn.c (copy_nary): Adjust.
1344 (copy_phis): Rename to ...
1345 (copy_phi): ... this. Adjust.
1346 (copy_references): Rename to ...
1347 (copy_reference): ... this. Adjust.
1348 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
1349 result into the valid table.
1351 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1353 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
1354 insn-config.h, insn-codes.h, recog.h, and optabs.h.
1356 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1358 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
1360 2010-05-26 Richard Guenther <rguenther@suse.de>
1362 * opts.c (common_handle_option): Handle OPT_Ofast.
1364 2010-05-26 Joseph Myers <joseph@codesourcery.com>
1366 * diagnostic.c: Don't include opts.h.
1367 (permissive_error_option): Define.
1368 (diagnostic_initialize): Take n_opts parameter. Allocate memory
1369 for classify_diagnostic. Don't use memset for
1370 classify_diagnostic. Initialize new and recently added fields.
1371 (diagnostic_classify_diagnostic): Use context->n_opts instead of
1373 (diagnostic_report_diagnostic): Pass context parameter to
1374 diagnostic_report_warnings_p. Use option_enabled and option_name
1376 (emit_diagnostic): Use permissive_error_option.
1377 (permerror): Likewise.
1378 * diagnostic.h: Don't include options.h.
1379 (struct diagnostic_context): Add n_opts, opt_permissive,
1380 inhibit_warnings, warn_system_headers, option_enabled and
1381 option_name fields. Change classify_diagnostic to a pointer.
1382 * opts-diagnostic.h: New file.
1383 * opts.c: Include opts-diagnostic.h.
1384 (common_handle_option): Set global_dc fields for -Wfatal-errors,
1385 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
1386 (option_name): New function.
1387 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
1388 (c_common_handle_option): Set global_dc->permissive for
1390 * c-common.c (c_cpp_error): Save and restore
1391 global_dc->warn_system_headers, not variable warn_system_headers.
1392 * toplev.c: Include opts-diagnostic.h.
1393 (general_init): Update call to diagnostic_initialize. Set
1394 global_dc->show_column, global_dc->option_enabled and
1395 global_dc->option_name.
1396 (process_options): Don't set global_dc fields here.
1397 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
1398 (diagnostic.o, opts.o, toplev.o): Update dependencies.
1400 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
1402 * config/picochip/picochip.md (movsi): Split a movsi from a
1405 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1407 * ggc-zone.c: Update copyright year.
1408 (poison_region): Mark memory for Valgrind as undefined before
1409 memset () call and inaccessible afterwards.
1410 (ggc_pch_total_size): Change type of i to int.
1412 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1414 * ggc-common.c (ggc_free_overhead): Allow empty slot.
1416 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1418 * ggc-common.c: Update copyright year.
1419 (ggc_rlimit_bound): Remove prototype. Compile only if
1420 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
1421 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
1422 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
1423 (ggc_min_heapsize_heuristic): Likewise.
1425 2010-05-26 Richard Guenther <rguenther@suse.de>
1427 PR rtl-optimization/44164
1428 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
1429 no-common access-path disambiguation.
1430 (indirect_ref_may_alias_decl_p): Adjust.
1431 (indirect_refs_may_alias_p): Likewise.
1432 (refs_may_alias_p_1): Likewise.
1434 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1436 * c-typeck.c: Do not include expr.h.
1438 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1440 * rtl.h (decl_default_tls_model): Move prototype from here...
1441 * output.h: ...to here.
1442 * c-decl.c: Do not include rtl.h.
1443 * c-pragma.c: Likewise.
1444 * c-parser.c: Likewise.
1445 * c-gimplify.c: Likewise. And also not hard-reg-set.
1446 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
1447 FIXME note for it. Add a FIXME note for expr.h.
1448 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
1449 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
1452 2010-05-26 Jakub Jelinek <jakub@redhat.com>
1455 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
1456 or total_size is larger than red zone size for non-V4 ABI, emit a
1457 stack_tie resp. frame_tie insn before stack pointer restore.
1458 * config/rs6000/rs6000.md (frame_tie): New insn.
1460 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
1462 * function.h (struct function): Add can_throw_non_call_exceptions bit.
1463 * lto-streamer-in.c (input_function): Stream it in.
1464 * lto-streamer-out.c (output_function): Stream it out.
1465 * function.c (allocate_struct_function): Set it.
1466 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
1467 for flag_non_call_exceptions.
1468 * cfgbuild.c (control_flow_insn_p): Likewise.
1469 (make_edges): Likewise.
1470 * cfgexpand.c (expand_stack_alignment): Likewise.
1471 * combine.c (distribute_notes): Likewise.
1472 * cse.c (cse_extended_basic_block): Likewise.
1473 * except.c (insn_could_throw_p): Likewise.
1474 * gcse.c (simple_mem): Likewise.
1475 * ipa-pure-const.c (check_call): Likewise.
1476 (check_stmt ): Likewise.
1477 * lower-subreg.c (lower-subreg.c): Likewise.
1478 * optabs.c (emit_libcall_block): Likewise.
1479 (prepare_cmp_insn): Likewise.
1480 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
1481 * postreload.c (rest_of_handle_postreload): Likewise.
1482 * reload1.c (reload_as_needed): Likewise.
1483 (emit_input_reload_insns): Likewise.
1484 (emit_output_reload_insns): Likewise.
1485 (fixup_abnormal_edges): Likewise.
1486 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
1487 * store-motion.c (find_moveable_store): Likewise.
1488 * tree-eh.c (stmt_could_throw_p): Likewise.
1489 (tree_could_throw_p): Likewise.
1490 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1491 * config/arm/arm.c (arm_expand_prologue): Likewise.
1492 (thumb1_expand_prologue): Likewise.
1493 * config/rx/rx.md (cbranchsf4): Likewise.
1495 * config/s390/s390.c (s390_emit_prologue): Likewise.
1496 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
1497 (inline_forbidden_into_p): New predicate.
1498 (expand_call_inline): Use it to forbid inlining.
1499 (tree_can_inline_p): Likewise.
1501 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1503 * config/i386/i386-c.c: Do not include rtl.h.
1504 * config/i386/t-i386: Update dependencies.
1506 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1508 * attribs.c: Do not include rtl.h.
1509 * Makefile.in: Update dependencies.
1511 2010-05-25 Anatoly Sokolov <aesok@post.ru>
1513 * double-int.h (double_int_and): New.
1514 * combine.c (try_combine): Clean up, use double_int_* and
1515 immed_double_int_const functions.
1517 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1519 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
1520 stderr to /dev/null instead of grep -q.
1521 * configure: Regenerate.
1523 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1525 * Makefile.in (EXCEPT_H): Fix typo.
1527 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
1529 * ira-build.c (update_conflict_hard_reg_costs): New.
1530 (ira_build): Call update_conflict_hard_reg_costs.
1532 2010-05-25 Jakub Jelinek <jakub@redhat.com>
1535 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
1537 (intersect_loc_chains): Walk the s2var's loc_chain together
1538 with s1node chain as long as the locations are equal, don't
1539 call find_loc_in_1pdv in that case.
1542 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
1543 (copy_bind_expr): ... instead of here.
1544 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
1545 if the block hasn't been remapped.
1546 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
1547 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
1549 2010-05-25 Richard Guenther <rguenther@suse.de>
1552 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
1553 out-of-bounds array accesses.
1555 2010-05-25 Richard Guenther <rguenther@suse.de>
1557 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
1558 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
1559 (run_gcc): Re-organize to make cleanup easier.
1561 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1563 * config/s390/s390.c (optimization_options): Fix and move the
1564 flag_prefetch_loop_arrays override ...
1565 (override_options): ... here.
1567 2010-05-25 Joseph Myers <joseph@codesourcery.com>
1569 * diagnostic.c: Don't include plugin.h.
1570 (diagnostic_report_diagnostic): Don't handle plugins specially
1571 here. Pass context to internal_error callback.
1572 * diagnostic.h (struct diagnostic_context): Add context parameter
1573 to internal_error callback.
1574 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
1575 * plugin.h (struct diagnostic_context): Declare.
1576 (warn_if_plugins, plugins_internal_error_function): Declare.
1577 * toplev.c (general_init): Set global_dc->internal_error.
1578 * Makefile.in (diagnostic.o): Update dependencies.
1580 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
1582 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
1583 * config/rs6000/t-darwin64: New.
1584 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
1587 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
1590 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
1591 match the original (and intended) behaviour before r159557. This
1592 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
1595 2010-05-25 Richard Guenther <rguenther@suse.de>
1597 * doc/invoke.texi: Document -Ofast.
1598 * target.h (struct gcc_target): Add handle_ofast.
1599 * target-def.h (TARGET_HANDLE_OFAST): Add.
1600 (TARGET_INITIALIZER): Adjust.
1601 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
1602 * common.opt (Ofast): Add.
1604 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
1606 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
1607 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
1609 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
1612 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
1613 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
1614 false_rtx. Use false_rtx to compute the correct *ptest for reversed
1615 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
1617 2010-05-25 Jakub Jelinek <jakub@redhat.com>
1619 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
1620 DW_OP_minus with negated offset instead of DW_OP_plus.
1621 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
1623 2010-05-25 Wei Guozhi <carrot@google.com>
1625 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
1626 tst instruction and a new alternative.
1627 * config/arm/constraints.md (Pu): New constraint.
1629 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
1631 * function.c (assign_stack_local_1): Initialize variable
1632 to avoid warning when bootstrapping at -O3.
1634 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
1636 * configure.ac (all_lang_makefiles): Remove everything related to it.
1637 * configure: Regenerate.
1638 * Makefile.in: Fix reference to ada Make-lang.in.
1639 Remove support for LANG_MAKEFILES.
1641 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
1642 Sandra Loosemore <sandra@codesourcery.com>
1644 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
1645 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
1646 description. Add arm_neon_fp16_ok.
1647 (Add Options): Add arm_neon and arm_neon_fp16.
1649 2010-05-24 Joseph Myers <joseph@codesourcery.com>
1651 * diagnostic.c: Don't include flags.h.
1652 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
1653 context parameters. Check flags in the context passed as a parameter.
1654 (diagnostic_build_prefix): Add context parameter. Check
1655 show_column flag in context.
1656 (diagnostic_action_after_output): Check fatal_errors flag in context.
1657 (diagnostic_report_current_module): Check show_column flag in context.
1658 (default_diagnostic_starter): Update call to
1659 diagnostic_build_prefix.
1660 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
1661 (emit_diagnostic): Pass context to permissive_error_kind.
1662 (permerror): Pass context to permissive_error_kind.
1663 * diagnostic.h (struct diagnostic_context): Add show_column,
1664 pedantic_errors, permissive and fatal_errors fields.
1665 (diagnostic_build_prefix): Update prototype.
1667 * toplev.c (process_options): Set flags in global_dc from
1668 flag_show_column, flag_pedantic_errors, flag_permissive,
1670 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
1671 to diagnostic_build_prefix.
1672 * Makefile.in (diagnostic.o): Update dependencies.
1674 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
1676 * config/i386/ia32intrin.h (__crc32q): Define only if
1677 __SSE4_2__ is defined.
1679 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
1683 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
1684 DECL_VISIBILITY_SPECIFIED.
1685 (emutls_decl): Set DECL_PRESERVE_P and copy
1686 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
1687 (emutls_finalize_control_var): New callback.
1688 (emutls_finish): Finalize emutls control variables.
1689 * toplev.c (compile_file): Move the call to emutls_finish ()
1690 before varpool_assemble_pending_decls ().
1692 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
1694 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
1695 added to the preprocessor condition.
1697 2010-05-24 Paul Brook <paul@codesourcery.com>
1699 * gengtype-lex.l: Add HARD_REG_SET.
1700 * expr.c (expand_expr_real_1): Record writes to hard registers.
1701 * function.c (rtl_data): Add asm_clobbers.
1702 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
1703 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
1704 Use crtl->asm_clobbers.
1706 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1708 * doc/makefile.texi (Makefile): Mention stages 'profile'
1709 and 'feedback' for profiledbootstrap.
1711 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
1714 * config/i386/i386.c (def_builtin): Properly check
1715 OPTION_MASK_ISA_64BIT.
1717 2010-05-23 Joseph Myers <joseph@codesourcery.com>
1719 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
1720 typedefs with different but compatible types. Allow duplicate
1721 typedefs with the same type except for pedantic non-C1X, but give
1722 warning for variably modified types.
1723 * c-typeck.c (tagged_types_tu_compatible_p,
1724 function_types_compatible_p, type_lists_compatible_p,
1725 comptypes_internal): Add parameter different_types_p; set
1726 *different_types_p for different but compatible types. All
1728 (comptypes_check_different_types): New.
1729 * c-tree.h (comptypes_check_different_types): Declare.
1731 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
1733 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
1734 * jump.c: Include basic-block.h.
1735 * profile.c: Likewise.
1736 * tree-profile.c: Likewise.
1737 * coverage.c: Likewise.
1738 * basic-block.h (optimize_function_for_size_p): Move to function.h.
1739 (optimize_function_for_speed_p): Likewise.
1740 * function.h (optimize_function_for_size_p,
1741 optimize_function_for_speed_p): Moved here from basic-block.h.
1742 * Makefile.in: Update dependencies.
1744 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1746 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
1747 before calling make; allow override through $MAKE.
1748 * doc/invoke.texi (Optimize Options): Document override.
1750 2010-05-23 Anatoly Sokolov <aesok@post.ru>
1752 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
1753 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1754 (rs6000_mode_dependent_address_ptr): Make static.
1755 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1756 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
1759 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
1762 * config/i386/i386.c: Make sure that the correct regparm is passed.
1764 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
1766 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
1767 * sbitmap.c: ...to here to internalize sbitmap element access.
1768 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
1769 Explain why basic-block.h is included.
1770 * function.h: Include tm.h for CUMULATIVE_ARGS.
1771 * Makefile.in: Update dependencies.
1773 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1775 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
1777 * sbitmap.h (struct sbitmap_def): Do not typedef here.
1778 * sbitmap.c: Include sbitmap.h.
1779 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
1780 hard-reg-set.h. Split everything related to regsets out from here...
1781 * regset.h: ...to here. New file.
1782 * df.h: Include regset.h and sbitmap.h.
1783 * tree-flow.h: Likewise.
1784 * cfgloop.h: Likewise.
1785 * except.h: Do not include sbitmap.h. Include hashtab.h.
1786 * cgraph.h: Include vec.h and function.h.
1787 * reload.h (struct insn_chain): Change types of live_throughout
1788 and dead_or_set from regset_head to bitmap_head.
1789 (compute_use_by_pseudos): Be defined also if regset.h is not included.
1790 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
1791 spilled_regs from regset_head to bitmap_head to avoid dependency
1793 * sel-sched-ir.h: Include regset.h.
1794 * reload.c: Include df.h before reload.h.
1795 * caller-save.c: Likewise.
1796 * reload1.c: Likewise.
1798 (mark_elimination): Update type of r to bitmap, consistent with
1800 * dominance.c: Include bitmap.h.
1801 * modulo-sched.c: Include df.h.
1802 * cfganal.c: Include bitmap.h and sbitmap.h.
1803 * cfgbuild.c: Include sbitmap.h.
1804 * lcm.c: Include sbitmap.h.
1805 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
1806 * domwalk.c: Include sbitmap.h, exclude ggc.h.
1807 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
1808 * cselib.c: Include bitmap.h.
1809 * tree-optimize.c: Include regset.h.
1810 * stmt.c: Include bitmap.h.
1811 * Makefile.in: Update dependencies.
1813 2010-05-22 Jan Hubicka <jh@suse.cz>
1815 * cgraph.h (struct varpool_node): Add same_comdat_group.
1816 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
1818 (output_varpool): Update call of lto_output_varpool_node.
1819 (input_varpool): Read same_comdat_group pointer.
1820 (input_varpool_1): Fixup same_comdat_group pointer.
1821 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
1822 group is needed, all are.
1823 * varpool.c (varpool_remove_node): Remove node from same comdat group
1825 (varpool_analyze_pending_decls): Walk same comdat groups.
1827 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1829 * rtl.h (union rtunion_def): Remove rt_bit member.
1830 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
1831 * print-rtl (print_rtx): Do not print the member.
1832 * gengtype.c (adjust_field_rtx_def): Do not handle it.
1833 * gengenrtl.c (type_from_format): Likewise.
1834 (accessor_from_format): Likewise.
1836 2010-05-22 Joseph Myers <joseph@codesourcery.com>
1838 * dbgcnt.c: Include toplev.h instead of errors.h.
1839 * ira-emit.c: Don't include errors.h.
1840 * ira.c: Include toplev.h instead of errors.h.
1841 * lto-compress.c: Include toplev.h instead of errors.h.
1842 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
1843 ira.o, dbgcnt.o): Update dependencies.
1845 2010-05-22 Richard Guenther <rguenther@suse.de>
1847 * gimple.c (gimple_types_compatible_p): Check type qualifications
1848 before merging pointer to complete and pointer to incomplete type.
1849 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
1850 we use our own resolution algorithm. The gold linker plugin
1851 doesn't do the job we want it to do here.
1853 2010-05-22 Anatoly Sokolov <aesok@post.ru>
1855 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1856 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1857 (sparc_mode_dependent_address_p): New function.
1859 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1861 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
1863 * timevar.c: Do not include any core headers.
1864 (timevar_print): De-i18n-ize.
1865 (print_time): Likewise.
1866 * timevar.h (timevar_push, timevar_pop): Make inline functions.
1868 2010-05-21 Joseph Myers <joseph@codesourcery.com>
1870 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
1872 (diagnostic_initialize): Initialize x_data not last_function.
1873 (diagnostic_report_current_function): Move to tree-diagnostic.c.
1874 (default_diagnostic_starter): Call
1875 diagnostic_report_current_module not
1876 diagnostic_report_current_function.
1877 (diagnostic_report_diagnostic): Initialize x_data not
1879 (verbatim): Likewise.
1880 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
1882 (struct diagnostic_context): Change last_function to x_data.
1883 (diagnostic_auxiliary_data): Replace with
1884 diagnostic_context_auxiliary_data and
1885 diagnostic_info_auxiliary_data.
1886 (diagnostic_last_function_changed, diagnostic_set_last_function,
1887 diagnostic_report_current_function): Move to tree-diagnostic.h.
1888 (print_declaration, dump_generic_node, print_generic_stmt,
1889 print_generic_stmt_indented, print_generic_expr,
1890 print_generic_decl, debug_c_tree, dump_omp_clauses,
1891 print_call_name, debug_generic_expr, debug_generic_stmt,
1892 debug_tree_chain, default_tree_printer): Move to
1893 tree-pretty-print.h.
1894 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
1895 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
1896 gimple-pretty-print.h.
1897 * pretty-print.c: Don't include tree.h
1898 (pp_base_format): Don't handle %K here.
1899 (pp_base_tree_identifier): Move to tree-pretty-print.c.
1900 * pretty-print.h (text_info): Change abstract_origin to x_data.
1901 (pp_tree_identifier, pp_unsupported_tree,
1902 pp_base_tree_identifier): Move to tree-pretty-print.h.
1903 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
1904 tree-pretty-print.h: New files.
1905 * tree-pretty-print.c: Include tree-pretty-print.h.
1906 (percent_K_format): New. Moved from pretty-print.c.
1907 (pp_base_tree_identifier): Move from pretty-print.c.
1908 * c-objc-common.c: Include tree-pretty-print.h.
1909 (c_tree_printer): Handle %K here.
1910 * langhooks.c: Include tree-diagnostic.h.
1911 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
1912 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
1913 (default_tree_printer): Handle %K using percent_K_format.
1914 (general_init): Use default_tree_diagnostic_starter.
1915 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
1916 (free_lang_data): Use default_tree_diagnostic_starter.
1917 * c-pretty-print.c: Include tree-pretty-print.h.
1918 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1919 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1920 * dwarf2out.c: Include tree-pretty-print.h.
1921 * except.c: Include tree-pretty-print.h.
1922 * gimple-pretty-print.c: Include tree-pretty-print.h and
1923 gimple-pretty-print.h.
1924 * gimplify.c: Include tree-pretty-print.h.
1925 * graphite-poly.c: Include tree-pretty-print.h and
1926 gimple-pretty-print.h.
1927 * ipa-cp.c: Include tree-pretty-print.h.
1928 * ipa-inline.c: Include gimple-pretty-print.h.
1929 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1930 * ipa-pure-const.c: Include gimple-pretty-print.h.
1931 * ipa-struct-reorg.c: Include tree-pretty-print.h and
1932 gimple-pretty-print.h.
1933 * ipa-type-escape.c: Include tree-pretty-print.h.
1934 * print-rtl.c: Include tree-pretty-print.h.
1935 * print-tree.c: Include gimple-pretty-print.h.
1936 * sese.c: Include tree-pretty-print.h.
1937 * tree-affine.c: Include tree-pretty-print.h.
1938 * tree-browser.c: Include tree-pretty-print.h.
1939 * tree-call-cdce.c: Include gimple-pretty-print.h.
1940 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1941 * tree-chrec.c: Include tree-pretty-print.h.
1942 * tree-data-ref.c: Include tree-pretty-print.h and
1943 gimple-pretty-print.h.
1944 * tree-dfa.c: Include tree-pretty-print.h.
1945 * tree-if-conv.c: Include tree-pretty-print.h and
1946 gimple-pretty-print.h.
1947 * tree-inline.c: Include tree-pretty-print.h.
1948 * tree-into-ssa.c: Include tree-pretty-print.h and
1949 gimple-pretty-print.h.
1950 * tree-nrv.c: Include tree-pretty-print.h.
1951 * tree-object-size.c: Include tree-pretty-print.h and
1952 gimple-pretty-print.h.
1953 * tree-outof-ssa.c: Include tree-pretty-print.h and
1954 gimple-pretty-print.h.
1955 * tree-parloops.c: Include tree-pretty-print.h and
1956 gimple-pretty-print.h.
1957 * tree-predcom.c: Include tree-pretty-print.h and
1958 gimple-pretty-print.h.
1959 * tree-scalar-evolution.c: Include tree-pretty-print.h and
1960 gimple-pretty-print.h.
1961 * tree-sra.c: Include tree-pretty-print.h.
1962 * tree-ssa-address.c: Include tree-pretty-print.h.
1963 * tree-ssa-alias.c: Include tree-pretty-print.h.
1964 * tree-ssa-ccp.c: Include tree-pretty-print.h and
1965 gimple-pretty-print.h.
1966 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
1967 * tree-ssa-copy.c: Include tree-pretty-print.h and
1968 gimple-pretty-print.h.
1969 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
1970 * tree-ssa-dce.c: Include tree-pretty-print.h and
1971 gimple-pretty-print.h.
1972 * tree-ssa-dom.c: Include tree-pretty-print.h and
1973 gimple-pretty-print.h.
1974 * tree-ssa-dse.c: Include gimple-pretty-print.h.
1975 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
1976 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
1977 * tree-ssa-live.c: Include tree-pretty-print.h and
1978 gimple-pretty-print.h.
1979 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
1980 gimple-pretty-print.h.
1981 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
1982 gimple-pretty-print.h.
1983 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
1984 gimple-pretty-print.h.
1985 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
1986 gimple-pretty-print.h.
1987 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
1988 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
1989 * tree-ssa-operands.c: Include tree-pretty-print.h and
1990 gimple-pretty-print.h.
1991 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
1992 gimple-pretty-print.h.
1993 * tree-ssa-pre.c: Include tree-pretty-print.h and
1994 gimple-pretty-print.h.
1995 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
1996 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
1997 gimple-pretty-print.h.
1998 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
1999 gimple-pretty-print.h.
2000 * tree-ssa-sink.c: Include gimple-pretty-print.h.
2001 * tree-ssa-ter.c: Include tree-pretty-print.h and
2002 gimple-pretty-print.h.
2003 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
2004 * tree-ssa.c: Include tree-pretty-print.h and
2005 gimple-pretty-print.h.
2006 * tree-stdarg.c: Include gimple-pretty-print.h.
2007 * tree-switch-conversion.c: Include gimple-pretty-print.h.
2008 * tree-tailcall.c: Include tree-pretty-print.h and
2009 gimple-pretty-print.h.
2010 * tree-vect-data-refs.c: Include tree-pretty-print.h and
2011 gimple-pretty-print.h.
2012 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
2013 gimple-pretty-print.h.
2014 * tree-vect-loop.c: Include tree-pretty-print.h and
2015 gimple-pretty-print.h.
2016 * tree-vect-patterns.c: Include gimple-pretty-print.h.
2017 * tree-vect-slp.c: Include tree-pretty-print.h and
2018 gimple-pretty-print.h.
2019 * tree-vect-stmts.c: Include tree-pretty-print.h and
2020 gimple-pretty-print.h.
2021 * tree-vectorizer.c: Include tree-pretty-print.h.
2022 * tree-vrp.c: Include tree-pretty-print.h and
2023 gimple-pretty-print.h.
2024 * value-prof.c: Include tree-pretty-print.h and
2025 gimple-pretty-print.h.
2026 * var-tracking.c: Include tree-pretty-print.h.
2027 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
2028 (tree-diagnostic.o): New dependencies.
2029 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
2030 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
2031 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
2032 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
2033 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
2034 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
2035 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
2036 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
2037 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
2038 tree-ssa-address.o, tree-ssa-loop-niter.o,
2039 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
2040 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
2041 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
2042 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
2043 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
2044 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
2045 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
2046 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
2047 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
2048 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
2049 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
2050 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
2051 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
2052 tree-switch-conversion.o, var-tracking.o, value-prof.o,
2053 cfgexpand.o, pretty-print.o): Update dependencies.
2055 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
2057 * tree-ssa-structalias.c: Remove tm_p.h from include.
2059 2010-05-21 Jeff Law <law@redhat.com>
2061 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
2063 2010-05-21 Jason Merrill <jason@redhat.com>
2065 * tree-eh.c (cleanup_is_dead_in): New.
2066 (lower_try_finally): Don't generate a dead cleanup region.
2067 (lower_cleanup): Likewise.
2069 2010-05-21 Jakub Jelinek <jakub@redhat.com>
2072 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
2073 unchain each use from the cyclic next_regno_use chain first.
2075 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
2077 * real: Do not include gmp.h, mpfr.h, and mpc.h.
2078 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
2079 (real_value_negate, real_value_abs): New prototypes.
2080 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
2081 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
2082 new include file for interface between MPFR and REAL_VALUE_TYPE.
2083 * real.c: Include realmpfr.h.
2084 (real_arithmetic2): Remove legacy function.
2085 (real_value_negate): New.
2086 (real_value_abs): New.
2087 (mfpr_from_real, real_from_mpfr): Move from here...
2088 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
2089 * builtins.c: Include realmpfr.h.
2090 * fold-const.c: Include realmpfr.h.
2091 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
2092 (fold_negate_const): Likewise.
2093 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
2094 * toplev.c: Include realmpfr.h.
2095 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
2096 and real_value_negate.
2097 * fixed-value.c (check_real_for_fixed_mode): Likewise.
2098 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
2099 (vfp3_const_double_index): Likewise.
2100 (arm_print_operand): Likewise.
2101 * Makefile.in: Update dependencies.
2103 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2105 * config/s390/s390.c (override_options): Increase the default
2106 of max-completely-peel-times.
2108 2010-05-21 Julian Brown <julian@codesourcery.com>
2109 Mark Mitchell <mark@codesourcery.com>
2111 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
2112 sibling calls for Thumb-1.
2113 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
2114 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
2116 (*call_insn, *call_value_insn): Don't use for Thumb-2.
2117 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
2119 (return): New expander.
2120 (*arm_return): New name for ARM return insn.
2121 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
2123 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
2125 * config.gcc (sparc64-*-rtems*): New target.
2127 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
2129 * tree.c (build_function_decl_skip_args): Fix grammar.
2130 (build_function_type_list_1): Fix typos, adjust formatting.
2132 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
2134 * tree.h: Include real.h and fixed-value.h as basic datatypes.
2135 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
2136 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
2137 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
2138 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
2139 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
2140 tree-pretty-print.c, tree-loop-distribution.c,
2141 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
2142 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
2143 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
2144 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
2145 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
2146 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
2147 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
2148 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
2149 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
2150 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
2151 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
2152 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
2153 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
2154 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
2155 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
2156 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
2157 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
2158 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
2159 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
2160 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
2161 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
2162 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
2163 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
2164 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
2165 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
2166 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
2167 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
2168 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
2169 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
2170 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
2171 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
2172 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
2173 config/score/score7.c, config/score/score.c, config/arm/arm.c,
2174 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
2175 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
2176 config/bfin/bfin.c: Clean up redundant includes.
2177 * Makefile.in: Update accordingly.
2179 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
2182 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
2183 statement has no arguments.
2185 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
2188 * varasm.c (emutls_decl): Merge attributes to new decl.
2190 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
2193 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
2194 around the uniquized constructor if its type requires a conversion.
2196 2010-05-21 Jakub Jelinek <jakub@redhat.com>
2199 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
2200 at -O0 goto_locus of any of the incoming edges differs from
2201 goto_locus of outgoing edge, or gimple_location of any of the
2204 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
2206 * ira.c (ira_non_ordered_class_hard_regs): Define.
2207 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
2208 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
2209 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
2210 cost of unaligned hard regs when allocating multi-reg pseudos.
2212 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
2214 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
2215 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
2216 for TARGET_NO_FLOAT.
2217 * config/mips/mips.c (mips_file_start): Expand conditional expression
2218 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
2219 (mips_override_options): Move -mno-float override -msoft-float and
2221 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
2222 Condition(TARGET_SUPPORTS_NO_FLOAT).
2223 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
2224 __mips_no_float here.
2225 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
2226 (TARGET_SUPPORTS_NO_FLOAT): Define.
2227 * config/mips/sdemtk.opt: Delete.
2229 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
2231 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
2233 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
2236 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
2237 * configure: Regenerate.
2238 * config.in: Regenerate.
2239 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
2240 instead of sahf only for 64bit targets.
2242 2010-05-20 Jakub Jelinek <jakub@redhat.com>
2245 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
2246 setup_ref_regs for DEBUG_INSNs.
2248 2010-05-20 Jan Hubicka <jh@suse.cz>
2251 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
2253 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2256 * df-scan.c (df_ref_compare): Stabilize sort.
2258 2010-05-20 Jakub Jelinek <jakub@redhat.com>
2260 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
2261 argument. Don't use DW_OP_piece if offset is non-zero,
2262 put offset into second DW_OP_bit_piece argument.
2263 (dw_sra_loc_expr): Adjust callers. For memory expressions
2266 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
2269 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
2270 settings for 16-bit-constant "addo" alternative.
2272 2010-05-19 James E. Wilson <wilson@codesourcery.com>
2274 * config/mips/mips-dsp.md (add<DSPV:mode>3,
2275 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
2278 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
2279 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
2282 2010-05-19 Joseph Myers <joseph@codesourcery.com>
2284 * diagnostic.c (FLOAT, FFS): Don't undefine.
2285 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
2286 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
2289 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2291 * combine.c (propagate_for_debug): Call make_compound_operation
2292 on the source value.
2293 (try_combine): When implementing a split chosen by find_split_point,
2294 either copy i2src or set it to null. Assert that i2src is not null
2295 before substituting into CALL_INSN_FUNCTION_USAGE.
2297 2010-05-19 Anatoly Sokolov <aesok@post.ru>
2299 * double-int.h (double_int_ior): New function.
2300 * tree.h (build_int_cst_wide_type): Remove.
2301 * tree.c (build_int_cst_wide_type): Remove.
2302 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
2303 of build_int_cst_wide_type.
2304 * stor-layout.c (set_sizetype): (Ditto.).
2305 * dojump.c (do_jump): Use build_int_cstu instead of
2306 build_int_cst_wide_type.
2308 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
2310 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
2311 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
2312 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
2313 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
2314 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
2315 propagate the 'data' argument to copy_tree_r.
2316 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
2317 Propagate 'data' argument to walk_tree.
2318 (copy_if_shared): New function.
2319 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
2320 (unmark_visited): New function.
2321 (unshare_body): Call copy_if_shared instead of doing it manually.
2322 (unvisit_body): Call unmark_visited instead of doing it manually.
2324 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
2326 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
2327 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
2328 * hooks.c: Likewise.
2329 * target-def.h (TARGET_FOLD_BUILTIN): Define to
2330 hook_tree_tree_int_treep_bool_null.
2331 * target.h (struct gcc_target): Update signature of fold_builtin
2333 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
2334 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
2335 instead of the call expression.
2336 (fold_builtin_call_array): Pass n and argarray directly.
2337 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
2339 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
2340 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
2341 `i' and use it in place of `arity'.
2342 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
2343 Dereference `args' directly.
2344 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
2346 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2348 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2350 (Directives): Document optional dg-require-effective-target
2353 2010-05-19 Richard Guenther <rguenther@suse.de>
2356 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
2358 2010-05-19 Richard Guenther <rguenther@suse.de>
2360 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
2361 * common.opt (fwhopr=): New.
2362 * opts.c (common_handle_option): Handle OPT_fwhopr.
2363 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
2364 * collect2.c (main): Match -fwhopr*.
2365 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
2366 Execute ltrans stage in parallel when jobs is bigger than 1.
2368 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2370 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2371 pentiumpro on Solaris 8/x86 with Sun as.
2372 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
2374 (gcc_cv_as_ix86_quad): Check for .quad directive.
2375 * configure: Regenerate.
2376 * config.in: Regenerate.
2377 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
2379 2010-05-19 Martin Jambor <mjambor@suse.cz>
2381 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
2382 also for indirect edges. Actual printing moved...
2383 (ipa_print_node_jump_functions_for_edge): ...here.
2384 (ipa_compute_jump_functions): Renamed to
2385 ipa_compute_jump_functions_for_edge and made static.
2386 (ipa_compute_jump_functions): New function.
2387 (make_edge_direct_to_target): Check if the number of arguments on
2388 the newly direct edge is the same as the number of parametrs of
2390 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
2391 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
2392 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2393 analysis functions unconditionally, call the new
2394 ipa_analyze_params_uses on the node instead of every edge.
2396 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
2398 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
2400 (dump_mem_ref): Adopt debug code to handle a tree as step. This
2401 also checks for a constant int vs. non-constant but
2402 loop-invariant steps.
2403 (find_or_create_group): Change the sort algorithm to only consider
2404 steps that are constant ints.
2405 (idx_analyze_ref): Adopt code to handle a tree instead of a
2406 HOST_WIDE_INT for step.
2407 (gather_memory_references_ref): Handle tree instead of int and be
2408 prepared to see a NULL_TREE.
2409 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
2410 prefetches if the step cannot be calculated at compile time.
2411 (issue_prefetch_ref): Issue prefetches for non-constant but
2412 loop-invariant steps.
2414 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2417 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2419 * tree.h (build_call_list): Remove.
2420 * tree.c (build_call_list): Remove.
2422 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2424 * tree.h (build_call_list): Remove.
2425 * tree.c (build_call_list): Remove.
2427 2010-05-18 Jan Hubicka <jh@suse.cz>
2429 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
2431 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
2433 PR rtl-optimization/43332
2434 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
2436 2010-05-18 Anatoly Sokolov <aesok@post.ru>
2438 * tree.h (build_int_cstu): Implement as static inline.
2439 * tree.c (build_int_cstu): Remove function.
2440 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
2443 2010-05-18 Richard Guenther <rguenther@suse.de>
2446 * lto-wrapper.c (verbose): New variable. Initialize from -v.
2447 (debug): Initialize from -save-temps.
2448 (collect_execute): Print command-line when verbose.
2449 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
2450 for ltrans invocation. Produce -dumpbase flag again.
2451 (process_args): Remove.
2453 * collect2.c (maybe_run_lto_and_relink): Only pass object
2454 files to lto-wrapper.
2455 * gcc.c (LINK_COMMAND_SPEC): Likewise.
2457 2010-05-18 Jan Hubicka <jh@suse.cz>
2459 * opts.c (decode_options): Do not disable whopr at ipa_cp.
2460 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
2462 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
2465 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
2467 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
2470 2010-05-18 Jakub Jelinek <jakub@redhat.com>
2473 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
2476 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
2478 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
2479 lto-macho as lto_binary_reader.
2481 * darwin.c (darwin_asm_named_section): Do not add assembler comment
2482 after .section directive; just print it before the directive instead.
2484 2010-05-17 Jan Hubicka <jh@suse.cz>
2486 * cgraph.c (cgraph_create_virtual_clone): Only check
2487 versionable_function_p when not in wpa and checking is enabled.
2488 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
2489 there are no more functions to materialize.
2491 2010-05-17 Jan Hubicka <jh@suse.cz>
2493 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
2494 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
2496 (output_cgraph): Call output_cgraph_opt_summary.
2497 (input_cgrpah): Call input_cgraph_opt_summary.
2498 (output_cgraph_opt_summary_p, output_node_opt_summary,
2499 input_node_opt_summary, input_cgraph_opt_section): New functions.
2500 * lto-section-in.c (lto_section_name): Add cgraphopt.
2501 * tree-inline.c (tree_function_versioning): Handle parm_num.
2502 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
2503 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
2505 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
2507 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
2508 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
2509 the insn to prefetch ratio heuristic to loops with known trip count.
2511 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
2513 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
2514 (schedule_prefetches): Do not generate a prefetch if the unroll factor
2515 is far from what is required by the prefetch.
2517 2010-05-17 Jan Hubicka <jh@suse.cz>
2519 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
2520 (ipcp_estimate_growth): Likewise.
2521 (ipcp_const_param_count): Likewise.
2522 (ipcp_insert_stage): Likewise.
2523 * ipa-prop.c (visit_load_for_mod_analysis): New function.
2524 (visit_store_addr_for_mod_analysis): Set used flag.
2525 (ipa_detect_param_modifications): Set used flag for SSE params;
2526 update use of walk_stmt_load_store_addr_ops.
2527 (ipa_print_node_params): Print used flag.
2528 (ipa_write_node_info): Stream used flag.
2529 (ipa_read_node_info): Likewise.
2530 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
2531 (ipa_is_param_used): New function.
2532 (lto_ipa_fixup_call_notes): Remove unused declaration.
2534 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2537 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
2538 * configure: Regenerate.
2539 * config.in: Regenerate.
2540 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
2541 !HAVE_AS_IX86_REP_LOCK_PREFIX.
2542 Don't emit whitespace.
2543 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
2544 (*rep_movsi): Likewise.
2545 (*rep_movsi_rex64): Likewise.
2546 (*rep_movqi): Likewise.
2547 (*rep_movqi_rex64): Likewise.
2548 (*rep_stosdi_rex64): Likewise.
2549 (*rep_stossi): Likewise.
2550 (*rep_stossi_rex64): Likewise.
2551 (*rep_stosqi): Likewise.
2552 (*rep_stosqi_rex64): Likewise.
2553 (*cmpstrnqi_nz_1): Use {%;} after repz.
2554 (*cmpstrnqi_nz_rex_1): Likewise.
2555 (*cmpstrnqi_1): Likewise.
2556 (*cmpstrnqi_rex_1): Likewise.
2557 (*strlenqi_1): Use {%;} after repnz.
2558 (*strlenqi_rex_1): Likewise.
2559 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
2560 (*sync_compare_and_swap<mode>): Likewise.
2561 (sync_double_compare_and_swap<mode>): Likewise.
2562 (*sync_double_compare_and_swapdi_pic): Likewise.
2563 (sync_old_add<mode>): Likewise.
2564 (sync_add<mode>): Likewise.
2565 (sync_sub<mode>): Likewise.
2566 (sync_<code><mode>): Likewise.
2568 2010-05-17 Martin Jambor <mjambor@suse.cz>
2570 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
2571 otr_token and polymorphic.
2572 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
2573 (cgraph_clone_edge): Copy the above fields.
2574 * tree.c (get_binfo_at_offset): New function.
2575 * tree.h (get_binfo_at_offset): Declare.
2576 * ipa-prop.h (enum jump_func_type): Added known_type jump function
2577 type, reordered items, updated comments.
2578 (union jump_func_value): Added base_type field, reordered fields.
2579 (enum ipa_lattice_type): Moved down in the file.
2580 (struct ipa_param_descriptor): New field polymorphic.
2581 (ipa_is_param_polymorphic): New function.
2582 * ipa-prop.c: Include gimple.h and gimple-fold.h.
2583 (ipa_print_node_jump_functions): Print known type jump functions.
2584 (compute_complex_pass_through): Renamed to...
2585 (compute_complex_assign_jump_func): this.
2586 (compute_complex_ancestor_jump_func): New function.
2587 (compute_known_type_jump_func): Likewise.
2588 (compute_scalar_jump_functions): Create known type and complex ancestor
2590 (ipa_note_param_call): New parameter polymorphic, set the corresponding
2591 flag in the call note accordingly.
2592 (ipa_analyze_call_uses): Renamed to...
2593 (ipa_analyze_indirect_call_uses): this. New parameter target, define
2594 variable var only in the block where it is used.
2595 (ipa_analyze_virtual_call_uses): New function.
2596 (ipa_analyze_call_uses): Likewise.
2597 (combine_known_type_and_ancestor_jfs): Likewise.
2598 (update_jump_functions_after_inlining): Implemented handling of a
2599 number of new jump function types combination.
2600 (print_edge_addition_message): Removed.
2601 (make_edge_direct_to_target): New function.
2602 (try_make_edge_direct_simple_call): Likewise.
2603 (try_make_edge_direct_virtual_call): Likewise.
2604 (update_call_notes_after_inlining): Renamed to...
2605 (update_indirect_edges_after_inlining): this. Moved edge creation for
2606 indirect calls to try_make_edge_direct_simple_call, also calls
2607 try_make_edge_direct_virtual_call for virtual calls.
2608 (ipa_print_node_params): Changed the header message.
2609 (ipa_write_jump_function): Stream also known type jump functions.
2610 (ipa_read_jump_function): Likewise.
2611 (ipa_write_indirect_edge_info): Stream new fields in
2612 cgraph_indirect_call_info.
2613 (ipa_read_indirect_edge_info): Likewise.
2614 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
2617 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2619 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
2621 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2623 * tree.h (CALL_EXPR_ARGS): Delete.
2624 (call_expr_arglist): Delete.
2625 * tree.c (call_expr_arglist): Delete.
2626 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
2627 targetm.fold_builtin.
2628 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
2629 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
2630 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
2631 arglist parameter. Use CALL_EXPR_ARG.
2632 (picochip_expand_builtin_3op): Likewise.
2633 (picochip_expand_builtin_2opvoid): Likewise.
2634 (picochip_expand_array_get): Likewise.
2635 (picochip_expand_array_put): Likewise.
2636 (picochip_expand_array_testport): Likewise.
2637 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
2638 rather than arglist.
2639 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
2641 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
2642 than TREE_VALUE and TREE_CHAIN.
2643 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2644 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
2647 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2650 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
2651 to have no fallthru edge.
2654 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
2655 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
2656 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
2657 add BARRIER after previous bb if needed.
2659 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2661 * tree.c (build_function_type_list_1): Remove bogus assert condition.
2663 2010-05-17 Alan Modra <amodra@gmail.com>
2665 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
2666 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
2667 with copy_reg rtx param.
2668 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
2669 Correct cases where code for ABI_V4 did not initialise the reg
2670 used to access frame. Also leave frame_reg_rtx as sp for large
2671 frames that save no regs.
2673 2010-05-17 Martin Jambor <mjambor@suse.cz>
2676 * tree-sra.c (create_access_replacement): New parameter rename, mark
2677 the replaement for renaming only when it is true.
2678 (get_access_replacement): Pass true in the rename parameter of
2679 create_access_replacement.
2680 (get_unrenamed_access_replacement): New function.
2681 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
2682 replacement declaration from it.
2684 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
2686 * function.c (try_fit_stack_local, add_frame_space): New static
2688 (assign_stack_local_1): Use them. Look for opportunities to use
2689 space previously wasted on alignment.
2690 * function.h (struct frame_space): New.
2691 (struct rtl_data): Add FRAME_SPACE_LIST member.
2692 * reload1.c (something_was_spilled): New static variable.
2693 (alter_reg): Set it.
2694 (reload): Test it in addition to testing if the frame size changed.
2696 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
2698 * config/s390/s390.c: Define sane prefetch settings and activate
2699 flag_prefetch_loop_arrays on -O3.
2700 * config/s390/s390.h: Declare that read can use write prefetch.
2702 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2704 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
2707 2010-05-16 Jan Hubicka <jh@suse.cz>
2709 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
2710 function body; do not check stdarg field of struct function.
2712 2010-05-16 Jan Hubicka <jh@suse.cz>
2714 * cgraph.c (dump_cgraph_node): Dump versionable flag.
2715 * cgraph.h (cgraph_local_info): Add versionable flag.
2716 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
2717 (ipcp_versionable_function_p): Use it.
2718 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2721 2010-05-16 Jan Hubicka <jh@suse.cz>
2723 * cgraph.c (cgraph_clone_node): Take decl argument and insert
2724 clone into hash when it is different from orig.
2725 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
2726 * cgraph.h (cgraph_clone_node): Update prototype.
2727 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
2728 (lto_cgraph_encoder_delete): Delete body map.
2729 (lto_cgraph_encoder_size): Move to header.
2730 (lto_cgraph_encoder_encode_body_p,
2731 lto_set_cgraph_encoder_encode_body): New.
2732 (lto_output_node): Do not take written_decls argument; output clone_of
2734 (add_node_to): Add include_body_argument; call
2735 lto_set_cgraph_encoder_encode_body on master of the clone.
2736 (add_references): Update use of add_node_to.
2737 (compute_ltrans_boundary): Likewise.
2738 (output_cgraph): Do not create written_decls bitmap.
2739 (input_node): Take nodes argument; stream in clone_of correctly.
2740 (input_cgraph_1): Update use of input_node.
2741 * lto-streamer-out.c (lto_output): Use encoder info to decide
2742 what bodies to output.
2743 * ipa-inline.c (cgraph_clone_inlined_nodes,
2744 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
2745 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
2746 (lto_cgraph_encoder_size): Define here.
2747 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
2750 2010-05-16 Richard Guenther <rguenther@suse.de>
2752 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
2754 * ipa-type-escape.c (gate_type_escape_vars): Run when
2755 -fipa-struct-reorg runs.
2756 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
2757 * common.opt (fipa-type-escape): Remove.
2759 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
2761 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
2762 (decode_options): Likewise.
2763 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
2765 2010-05-16 Jan Hubicka <jh@suse.cz>
2767 * ipa.c (function_and_variable_visibility): Also bring local all
2770 2010-05-16 Richard Guenther <rguenther@suse.de>
2772 * alias.c (nonoverlapping_memrefs_p): Remove use of
2773 IPA type-escape information.
2775 2010-05-16 Joseph Myers <joseph@codesourcery.com>
2777 * c-common.c (c_common_reswords): Add _Static_assert for C.
2778 * c-parser.c (c_token_starts_declaration,
2779 c_parser_next_token_starts_declaration,
2780 c_parser_static_assert_declaration_no_semi,
2781 c_parser_static_assert_declaration): New.
2782 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
2783 Handle static assertions if static_assert_ok.
2784 (c_parser_external_declaration, c_parser_declaration_or_fndef,
2785 c_parser_compound_statement_nostart, c_parser_label,
2786 c_parser_for_statement, c_parser_objc_methodprotolist,
2787 c_parser_omp_for_loop): All callers of
2788 c_parser_declaration_or_fndef changed.
2789 (c_parser_struct_declaration): Handle static assertions.
2790 (c_parser_compound_statement_nostart): Use
2791 c_parser_next_token_starts_declaration and
2792 c_token_starts_declaration to detect start of declarations.
2793 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
2796 2010-05-16 Anatoly Sokolov <aesok@post.ru>
2798 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2799 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2800 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2801 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2802 (mmix_function_outgoing_value): Rename to...
2803 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
2804 (mmix_function_value_regno_p): Make static.
2805 (mmix_libcall_value): New function.
2806 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
2807 mmix_function_value_regno_p): Remove declaration.
2809 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
2811 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
2812 BUILT_IN_ALLOCA if stack checking is enabled.
2814 2010-05-16 Richard Guenther <rguenther@suse.de>
2816 * var-tracking.c (vars_copy_1): Inline ...
2817 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
2818 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
2819 (variable_merge_over_cur): Adjust. Merge asserts.
2820 (variable_merge_over_src): Likewise.
2821 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
2822 (variable_post_merge_new_vals): Merge asserts.
2823 (variable_post_merge_perm_vals): Likewise.
2824 (find_mem_expr_in_1pdv): Likewise.
2825 (dataflow_set_different_value): Remove.
2826 (onepart_variable_different_p): Merge asserts.
2827 (variable_different_p): Likewise.
2828 (dataflow_set_different_1): Inline ...
2829 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
2830 (emit_notes_for_differences_1): Merge asserts.
2832 2010-05-16 Richard Guenther <rguenther@suse.de>
2834 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
2835 * optabs.c (libfunc_decl_hash): Likewise.
2836 * varasm.c (emutls_decl): Likewise.
2838 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
2840 * c-decl.c: Don't include gimple.h.
2841 (merge_decls): Do not copy gimple_body.
2843 2010-05-15 Jason Merrill <jason@redhat.com>
2845 * c.opt: Add -fnothrow-opt.
2847 2010-05-15 Jan Hubicka <jh@suse.cz>
2849 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
2851 * passes.c (ipa_write_summaries): Write all analyzed nodes.
2853 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
2855 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
2856 * Makefile.in: Add it.
2857 Fix all other Makefile dependencies for changes below.
2858 * tree.h: Include it instead of defining VEC primitives here.
2859 * gimple.h: Likewise.
2861 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
2862 * except.h: Include vecir.h, break dependence on tree.h.
2864 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
2866 * tree-iterator.c: ...to here.
2867 * tree-iterator.h: Fix file introduction comment. Add extern markers.
2869 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
2871 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
2872 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
2873 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
2874 tree-mudflap.h, and target.h.
2875 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
2876 predict.h, tree-inline.h, gimple.h, and langhooks.h.
2877 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
2878 Add FIXME for why gimple.h is still included (should be unnecessary
2879 since GCC 4.5 gimplification unit-at-a-time).
2880 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
2881 * c-pragma.c: Add FIXME for why function.h needs to be included just
2882 for cfun, at front-end level.
2883 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
2884 Do not include ggc.h, but include vecprim.h for VEC(char).
2885 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
2886 Explain why target.h is included.
2887 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
2888 Explain why gimple.h is included.
2889 * c-ppoutput.c: Do not include tm.h.
2890 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
2891 * c-parses.c: Explain why rtl.h is included, and that this (and only
2892 this) is also why tm.h must be included.
2893 Do not include except.h.
2894 * c-lang.c: Do not include ggc.h.
2896 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
2898 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
2900 2010-05-15 Joseph Myers <joseph@codesourcery.com>
2902 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
2903 unions by default if those structs and unions have no tags. Do
2904 not condition anonymous struct and unions handling on flag_iso.
2905 Allow anonymous structs and unions for C1X.
2906 (finish_struct): Do not diagnose lack of named fields when
2907 anonymous structs and unions present for C1X. Accept flexible
2908 array members in structure with anonymous structs or unions but no
2909 directly named fields.
2910 * doc/extend.texi (Unnamed Fields): Update.
2912 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
2914 * gimple.h (compare_field_offset): Rename into...
2915 (gimple_compare_field_offset): ...this.
2916 * gimple.c (compare_field_offset): Rename into...
2917 (gimple_compare_field_offset): ...this. Compare the full access if
2918 the offset is self-referential.
2919 (gimple_types_compatible_p): Adjust for above renaming.
2920 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
2921 DECL_NONADDRESSABLE_P flag of fields before merging them.
2923 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
2925 * tree.h (ctor_to_list): Delete.
2926 * tree.c (ctor_to_list): Delete.
2928 2010-05-15 Jan Hubicka <jh@suse.cz>
2930 * ipa-reference.c: Include toplev.h
2931 (is_proper_for_analysis): Only add to all_module_statics
2933 (write_node_summary_p, stream_out_bitmap,
2934 ipa_reference_write_optimization_summary,
2935 ipa_reference_read_optimization_summary): New.
2936 (struct ipa_opt_pass_d pass_ipa_reference): Add
2937 optimization summary streaming.
2938 * lto-cgraph.c (referenced_from_this_partition_p,
2939 reachable_from_this_partition_p): New functions.
2940 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2941 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
2942 * opts.c (decode_options): Enable ipa_reference.
2943 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
2944 * lto-streamer.h (referenced_from_this_partition_p,
2945 reachable_from_this_partition_p): Declare.
2947 2010-05-15 Richard Guenther <rguenther@suse.de>
2949 PR tree-optimization/44038
2950 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
2951 taking the address of a V_C_E of a constant.
2953 2010-05-14 Jan Hubicka <jh@suse.cz>
2955 * tree.h (memory_identifier_string): Remove.
2956 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
2957 (ipa_reference_global_vars_info_d): Remove statics_not_read and
2958 statics_not_written.
2959 (ipa_reference_optimization_summary_d): New structure.
2960 (ipa_reference_optimization_summary_t): New type and vector.
2961 (ipa_reference_vars_info_d): Embedd structures instead of using
2963 (reference_vars_to_consider): Remove out of GGC space.
2964 (module_statics_escape): Remove.
2965 (global_info_obstack): Rename to ...
2966 (optimization_summary_obstack): ... this one.
2967 (initialization_status_t): Remove.
2968 (memory_identifier_string): Remove.
2969 (get_reference_vars_info): Fix indenting.
2970 (set_reference_vars_info): Likewise.
2971 (get_reference_optimization_summary): New.
2972 (set_reference_optimization_summary): New.
2973 (get_global_reference_vars_info): Remove.
2974 (ipa_reference_get_read_global): Remove.
2975 (ipa_reference_get_written_global): Remove.
2976 (ipa_reference_get_not_read_global): Update.
2977 (ipa_reference_get_not_written_global): Update.
2978 (is_proper_for_analysis): Outlaw addressable.
2979 (propagate_bits): Update for new datastructures.
2980 (analyze_variable): Remove.
2981 (init_function_info): Update for new datastructures.
2982 (clean_function_local_data): Remove.
2983 (clean_function): Remove.
2984 (copy_global_bitmap): Use optimizations_summary_obstack.
2985 (duplicate_node_data): Duplicate optimization summary only.
2986 (remove_node_data): Remove optimization summary only.
2987 (generate_summary): Do not analyze variables; do not compute
2988 module_statics_escape; do not prune solutions by it.
2989 (read_write_all_from_decl): Fix typos in comments.
2990 (propagate): Doscover readonly and nonaddressable first;
2991 update for new datastructures; share global bitmaps.
2992 * ipa-reference.h (ipa_reference_get_read_global,
2993 ipa_reference_get_written_global): Remove.
2994 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
2995 * Makefile.in: Remove ipa-refereference from GT files.
2997 2010-05-14 Jakub Jelinek <jakub@redhat.com>
3000 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
3001 for all SYMBOL_REF_DECLs.
3003 2010-05-14 Jan Hubicka <jh@suse.cz>
3005 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
3006 (varpool_all_refs_explicit_p): New inline function.
3007 * ipa-reference.c: Update comment.
3008 (module_statics_written): Remove.
3009 (get_static_decl): Remove.
3010 (ipa_init): Do not initialize module_statics_written.
3011 (analyze_function): Likewise.
3012 (generate_summary): Likewise; do not compute module_statics_readonly
3013 and do not update variable flags.
3014 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
3015 * ipa.c: Inlucde flags.h
3016 (cgraph_local_node_p): New.
3017 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
3018 promote functions to local.
3019 (ipa_discover_readonly_nonaddressable_vars): New function.
3020 (function_and_variable_visibility): Use cgraph_local_node_p.
3021 * varpool.c (varpool_finalize_decl): Set force_output for
3022 DECL_PRESERVE_P vars.
3024 2010-05-14 Jan Hubicka <jh@suse.cz>
3026 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
3028 2010-05-14 Richard Guenther <rguenther@suse.de>
3030 PR tree-optimization/44119
3031 * tree-ssa-pre.c (eliminate): Properly mark replacement of
3032 a PHI node necessary.
3034 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
3036 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
3038 2010-05-14 Jason Merrill <jason@redhat.com>
3041 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
3042 (gimple_call_set_nothrow): New.
3043 * gimple.c (gimple_build_call_from_tree): Call it.
3044 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
3047 * gimplify.c (gimplify_seq_add_stmt): No longer static.
3048 * gimple.h: Declare it.
3049 * gimple.c (gimple_build_eh_filter): No ops.
3051 2010-05-14 Jan Hubicka <jh@suse.cz>
3053 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
3054 nodes already in queue.
3055 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
3058 2010-05-14 Jakub Jelinek <jakub@redhat.com>
3061 * cfgexpand.c (expand_debug_expr): If non-memory op0
3062 has BLKmode, return NULL.
3064 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
3066 * config.gcc: Add support for --with-cpu option for bdver1.
3067 * config/i386/i386.h (TARGET_BDVER1): New macro.
3068 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
3069 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
3070 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
3071 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
3072 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
3073 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
3074 (processor_type): Add PROCESSOR_BDVER1.
3075 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
3076 processor_type in config/i386/i386.h.
3077 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
3078 movaps <reg, reg> instead of movapd <reg, reg> when replacing
3079 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
3080 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
3081 to emit packed xor instead of packed double/packed integer
3082 xor for SSE and AVX when moving a zero value.
3083 * config/i386/sse.md: Add check for
3084 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
3085 movapd/movdqa for SSE and AVX.
3086 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
3087 single logical operations i.e and, or and xor instead of packed double
3088 logical operations for SSE and AVX.
3089 * config/i386/i386-c.c (ix86_target_macros_internal):
3090 Add PROCESSOR_BDVER1.
3091 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
3092 (has_fma4, has_xop): New.
3093 * config/i386/i386.c (bdver1_cost): New variable.
3094 (m_BDVER1): New macro.
3095 (m_AMD_MULTIPLE): Add m_BDVER1.
3096 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
3097 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
3098 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
3099 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
3100 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
3101 x86_tune_sse_partial_reg_dependency,
3102 x86_tune_sse_unaligned_load_optimal,
3103 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
3104 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
3105 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
3106 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
3107 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
3108 Enable/disable for bdver1.
3109 (processor_target_table): Add bdver1_cost.
3110 (cpu_names): Add bdver1.
3111 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
3112 processor_alias_table.
3113 (ix86_expand_vector_move_misalign): Change.
3114 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
3115 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
3116 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
3117 of movupd/movdqu for SSE and AVX.
3118 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
3119 (ix86_tune_adjust_cost): Add code for bdver1.
3120 (standard_sse_constant_opcode): Add check for
3121 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
3122 of packed double xor for SSE and AVX.
3124 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
3126 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
3129 2010-05-14 Tristan Gingold <gingold@adacore.com>
3131 * toplev.c (default_debug_hooks): Remove this variable.
3132 (process_options): Remove assignments to default_debug_hooks.
3134 2010-05-14 Martin Jambor <mjambor@suse.cz>
3136 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
3137 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
3138 * langhooks.h (struct lang_hooks_for_decls): Removed field
3140 * tree.c (free_lang_data): Remove assignment to
3141 lang_hooks.fold_obj_type_ref.
3142 * tree.def (OBJ_TYPE_REF): Update comment.
3144 2010-05-14 Richard Guenther <rguenther@suse.de>
3146 PR tree-optimization/44124
3147 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
3149 2010-05-14 Alan Modra <amodra@gmail.com>
3152 * config/rs6000/rs6000.c (struct machine_function): Reorder
3153 fields for better packing. Add lr_save_state.
3154 (rs6000_ra_ever_killed): Return lr_save_state if set.
3155 (rs6000_emit_eh_reg_restore): Set lr_save_state.
3157 2010-05-13 Jan Hubicka <jh@suse.cz>
3159 * varpool.c (decide_is_variable_needed): Drop code checking
3160 TREE_SYMBOL_REFERENCED.
3162 2010-05-13 Jan Hubicka <jh@suse.cz>
3164 * final.c (output_addr_const): Do not call mark_decl_referenced.
3165 * cgraphunit.c (process_function_and_variable_attributes): Use
3166 mark_needed_node dirrectly.
3167 (assemble_thunk): Do not call mark_decl_referenced.
3169 2010-05-13 Anatoly Sokolov <aesok@post.ru>
3171 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
3173 2010-05-13 Jeff Law <law@redhat.com>
3175 * ira-conflicts.c (print_allocno_conflicts): New function broken out
3177 (print_conflicts): Call print_allocno_conflicts.
3179 2010-05-13 Jakub Jelinek <jakub@redhat.com>
3182 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
3185 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
3187 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
3188 t-mingw-w64 or t-mingw-w32 for multilib configuration.
3189 * config/i386/t-mingw-w32: New.
3190 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
3192 2010-05-13 Martin Jambor <mjambor@suse.cz>
3194 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
3196 * gimple-fold.c (get_base_binfo_for_type): New function.
3197 (gimple_get_relevant_ref_binfo): Likewise.
3198 (gimple_fold_obj_type_ref_known_binfo): Likewise.
3199 (gimple_fold_obj_type_ref): Likewise.
3200 (fold_gimple_call): Simplify condition for folding virtual calls
3201 and call gimple_fold_obj_type_ref.
3202 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
3203 (gimple_fold_obj_type_ref_known_binfo): Likewise.
3205 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
3207 * config/rs6000/rs6000-protos.h
3208 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
3209 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
3210 (rs6000_debug_mode_dependent_address)
3211 (rs6000_mode_dependent_address_ptr): Likewise.
3213 2010-05-13 Jakub Jelinek <jakub@redhat.com>
3216 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
3218 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
3219 * tree-sra.c (create_access_replacement): Call unshare_expr before
3220 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
3221 * dwarf2out.c: Include tree-flow.h.
3222 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
3223 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
3224 Handle DW_OP_bit_piece.
3225 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
3226 construct_piece_list, adjust_piece_list): New functions.
3227 (add_var_loc_to_decl): Handle SRA optimized variables.
3228 Adjust for var_loc_note to loc field renaming.
3229 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
3230 in VAR_LOCATION note.
3231 (new_loc_descr_op_bit_piece): New function.
3232 (dw_sra_loc_expr): New function.
3233 (dw_loc_list): Use it. Don't handle the last range after the
3234 loop, handle it inside of the loop. Adjust for var_loc_note
3235 to loc field renaming.
3236 (add_location_or_const_value_attribute): Only special case
3237 single entry loc lists if loc is NOTE_P. Adjust for
3238 var_loc_note to loc field renaming.
3239 (dwarf2out_var_location): Don't set newloc->var_loc_note
3240 and newloc->next here.
3242 2010-05-12 Jan Hubicka <jh@suse.cz>
3244 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
3246 * cgraph.h (cgraph_only_called_directly_p,
3247 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
3248 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
3249 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
3251 * ipa.c (cgraph_remove_unreachable_nodes): Use
3252 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
3254 * tree-inline.c (copy_bb): Check address_taken flag.
3255 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
3256 externally_visible flag.
3258 2010-05-12 Jason Merrill <jason@redhat.com>
3262 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
3263 * sdbout.c (plain_type_1): Likewise.
3264 * dwarf2out.c (is_base_type): Likewise.
3265 (gen_type_die_with_usage): Likewise. Generate
3266 DW_TAG_unspecified_type for any LANG_TYPE.
3268 2010-05-12 Jan Hubicka <jh@suse.cz>
3270 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
3272 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
3273 (cgraph_clone_edge): Update.
3274 (cgraph_node_remove_callees): Remove indirect calls too.
3275 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
3276 (cgraph_create_indirect_edge): Update prototype.
3277 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
3278 is_proper_for_analysis.
3279 (add_new_function, visited_nodes, function_insertion_hook_holder,
3280 get_local_reference_vars_info, mark_address_taken, mark_address,
3281 mark_load, mark_store, check_asm_memory_clobber, check_call,
3282 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
3283 (ipa_init): Do not initialize visited_nodes;
3284 function_insertion_hook_holder.
3285 (analyze_variable): Rewrite.
3286 (analyze_function): Rewrite.
3287 (copy_local_bitmap): Remove.
3288 (duplicate_node_dat): Do not duplicate local info.
3289 (generate_summary): Simplify to only walk cgraph.
3290 (write_node_summary_p, ipa_reference_write_summary,
3291 ipa_reference_read_summary): Remove.
3292 (propagate): Do not remove function insertion;
3294 (pass_ipa_reference): NULLify summary handling fields.
3295 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
3296 (input_edge): Input ecf_flags.
3297 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
3298 (update_indirect_edges_after_inlining): Ignore edges with unknown
3301 2010-05-12 Sriraman Tallam <tmsriram@google.com>
3303 * implicit-zee.c: New file.
3304 * tree-pass.h (pass_implicit_zee): Declare.
3305 * passes.c (init_optimization_passes): Add zee pass.
3306 * common.opt (fzee): New flag.
3307 * timevar.def (TV_ZEE): Define.
3308 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
3310 * Makefile.in (implicit-zee.o): Add new build file.
3312 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3313 Nathan Froyd <froydnj@codesourcery.com>
3315 * c-common.c (sync_resolve_params): Remove write-only variable.
3317 2010-05-12 Anatoly Sokolov <aesok@post.ru>
3319 * target.h (struct gcc_target): Add mode_dependent_address_p field.
3320 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3321 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
3322 * targhooks.c (default_mode_dependent_address_p): New function.
3323 * targhooks.h (default_mode_dependent_address_p): Declare function.
3324 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3325 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
3326 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
3327 target hook. Change return type to bool.
3328 * recog.h (mode_dependent_address_p): Change return type to bool.
3330 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3331 Nathan Froyd <froydnj@codesourcery.com>
3333 * tree-mudflap.c (build_function_type_0, build_function_type_1,
3334 build_function_type_2, build_function_type_3): Remove.
3335 (mudflap_init): Use build_function_type_list.
3337 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3338 Nathan Froyd <froydnj@codesourcery.com>
3340 * coverage.c (build_fn_info_value): Call build_constructor instead of
3341 build_constructor_from_list.
3342 (build_ctr_info_value): Likewise.
3343 (build_gcov_info): Likewise.
3345 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
3347 * tree.c (build_constructor): Compute TREE_CONSTANT for the
3348 resultant constructor.
3349 (build_constructor_single): Don't set TREE_CONSTANT.
3350 (build_constructor_from_list): Don't compute TREE_CONSTANT.
3352 2010-05-12 Jan Hubicka <jh@suse.cz>
3354 * cgraph.h (struct varpool_node): Add aux.
3355 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
3356 * varpool.c (varpool_remove_node): Do not remove initializer.
3357 (varpool_reset_queue): Export.
3358 (varpool_finalize_decl): Volatile vars are forced to be output.
3359 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
3361 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
3362 process_references, varpool_can_remove_if_no_refs): New functions.
3363 (cgraph_remove_unreachable_nodes): Handle variables too.
3365 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
3368 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
3370 2010-05-12 Jakub Jelinek <jakub@redhat.com>
3373 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
3374 change value of ORT_TASK.
3375 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
3376 (omp_notice_threadprivate_variable): New function.
3377 (omp_notice_variable): Call it for threadprivate variables.
3378 If enclosing ctx is a task, print enclosing task rather than
3379 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
3380 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
3381 if task has untied clause.
3384 * dwarf2out.c (base_type_die): Don't add name attribute here.
3385 (modified_type_die): Instead of sizetype use
3386 its underlying original type. If a DW_TAG_base_type doesn't
3387 have name added, add __unknown__.
3388 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
3389 always call force_type_die instead.
3391 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
3393 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
3394 for __stack_chk_guard.
3396 2010-05-11 Jakub Jelinek <jakub@redhat.com>
3398 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
3399 don't call start_source_file debug hook here...
3400 (finish_options): ... but here, after outputting predefined and
3401 command line defines and undefs.
3404 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
3406 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
3407 optimizing away empty bb with no successors, move over its
3408 footer chain to fallthru predecessor.
3409 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
3410 (rtl_split_edge): For asm goto call patch_jump_insn even if
3411 splitting fallthru edge.
3414 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
3415 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
3416 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3417 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
3421 * c-parser.c (c_parser_expression): Mark LHS of a comma
3422 expression as read if it is a decl, handled component or
3423 COMPOUND_EXPR with that on the RHS.
3424 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
3425 if it is a decl or handled component.
3427 2010-05-11 Jan Hubicka <jh@suse.cz>
3429 * lto-symtab.c (lto_symtab_free): New function.
3430 * lto-streamer.h (lto_symtab_free): Declare.
3432 2010-05-11 Jan Hubicka <jh@suse.cz>
3434 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
3435 that if function is needed it is reachable.
3436 (lto_output_node): See if it the function is reachable or referenced.
3437 (output_cgraph): Update call of lto_output_node.
3438 * lto-streamer.h (reachable_from_other_partition_p): Declare.
3440 2010-05-11 Jan Hubicka <jh@suse.cz>
3442 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
3445 2010-05-11 Jan Hubicka <jh@suse.cz>
3447 PR tree-optimize/44063
3448 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
3450 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
3452 (estimate_function_body_sizes): Compute sizes even when disregarding.
3454 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
3456 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
3458 2010-05-11 Jan Hubicka <jh@suse.cz>
3460 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
3461 into every boundary.
3463 2010-05-11 Jan Hubicka <jh@suse.cz>
3465 * matrix-reorg.c (matrix_reorg): Rebuild edges.
3467 2010-05-11 Jan Hubicka <jh@suse.cz>
3469 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
3470 lto_streamer_cache_delete): Put nodes into heap.
3471 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
3474 2010-05-11 Jan Hubicka <jh@suse.cz>
3476 * cgraphbuild.c (cgraph_rebuild_references): New.
3477 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
3479 * cgraph.h (cgraph_rebuild_references): Declare.
3480 * tree-inline.c (tree_function_versioning): Use it.
3481 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
3483 2010-05-11 Jan Hubicka <jh@suse.cz>
3485 * cgraph.c: Include ipa-utils.h
3486 (cgraph_create_virtual_clone): Update references.
3487 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
3489 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
3491 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
3492 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
3495 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
3497 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
3499 2010-05-11 Jakub Jelinek <jakub@redhat.com>
3501 * gcc.c (execute): For -### don't quote arguments that
3502 contain just alphanumerics and _/-. characters.
3503 * doc/invoke.texi: Document that change for -###.
3506 * df-problems.c (struct dead_debug): Add to_rescan field.
3507 (dead_debug_init): Clear to_rescan field.
3508 (dead_debug_finish): Rescan all debug insns in to_rescan
3509 bitmap and free the bitmap.
3510 (dead_debug_insert_before): Instead of rescanning debug insns
3511 immediately queue their rescanning until dead_debug_finish.
3512 (df_note_bb_compute): After dead_debug_add do continue instead
3515 2010-05-10 Jakub Jelinek <jakub@redhat.com>
3518 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
3519 clear also INSN_REG_USE_LIST.
3521 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3523 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
3525 2010-05-10 Jan Hubicka <jh@suse.cz>
3527 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
3530 2010-05-10 Jan Hubicka <jh@suse.cz>
3532 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
3534 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
3535 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
3536 (lto_streamer_cache_create): Init alloc pool.
3537 (lto_streamer_cache_delete): Free alloc pool.
3538 * lto-streamer.h: Include alloc pool.
3539 (lto_streamer_cache_d): Use alloc pool.
3540 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
3542 2010-05-10 Jan Hubicka <jh@suse.cz>
3544 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
3545 * cgraphbuild.c: Include except.h
3546 (record_type_list, record_eh_tables): New function.
3547 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
3549 2010-05-10 Jan Hubicka <jh@suse.cz>
3551 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
3552 __frame_dummy_init_array_entry, force_to_data): Attribute as used
3555 2010-05-10 Michael Matz <matz@suse.de>
3557 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
3558 (can_reassociate_p): Use FLOAT_TYPE_P.
3559 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
3560 (vect_force_simple_reduction): ... this.
3561 * tree-parloops.c (gather_scalar_reductions): Use
3562 vect_force_simple_reduction.
3563 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
3564 vect_is_simple_reduction, add modify argument, if true rewrite
3565 "a-b" into "a+(-b)".
3566 (vect_is_simple_reduction, vect_force_simple_reduction): New
3568 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
3570 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
3571 Vladimir Makarov <vmakarov@redhat.com>
3573 PR rtl-optimization/44012
3574 * ira-build.c (remove_unnecessary_allocnos): Nullify
3575 regno_allocno_map of the removed allocno.
3577 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3579 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
3581 * configure: Regenerate.
3583 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3585 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
3587 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
3588 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
3590 * configure: Regenerate.
3592 2010-05-10 Richard Guenther <rguenther@suse.de>
3594 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
3595 marked if the entry identifier is marked.
3597 2010-05-10 Richard Guenther <rguenther@suse.de>
3599 * c-common.c (struct c_common_attributes): Add fnspec attribute.
3600 (handle_fnspec_attribute): New function.
3601 * gimple.h (gimple_call_return_flags): Declare.
3602 (gimple_call_arg_flags): Likewise.
3603 * gimple.c (gimple_call_arg_flags): New function.
3604 (gimple_call_return_flags): Likewise.
3605 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
3607 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
3609 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
3610 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
3612 (make_heapvar_for): ... this new function.
3613 (handle_rhs_call): Handle fnspec attribute argument specifiers.
3614 (handle_lhs_call): Likewise.
3615 (find_func_aliases): Adjust.
3617 2010-05-10 Richard Guenther <rguenther@suse.de>
3619 PR tree-optimization/44050
3620 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
3622 2010-05-10 Wei Guozhi <carrot@google.com>
3625 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
3627 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3630 * c-typeck.c (lookup_field): Take a type directly. Update
3632 (build_component_ref): Update call to lookup_field.
3633 (set_init_label): Use lookup_field to find initialized field.
3634 Handle returned list of fields like a sequence of designators.
3636 2010-05-09 Richard Guenther <rguenther@suse.de>
3639 * fold-const.c (tree_single_nonzero_warnv_p): Properly
3640 handle &FUNCTION_DECL.
3642 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3645 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
3646 structures and unions recursively.
3647 (detect_field_duplicates): Move duplicate detection with a hash to
3648 detect_field_duplicates_hash. Always use a hash if anonymous
3649 structures or unions are present.
3650 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
3653 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
3656 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
3657 detect Atom, Core 2 and Core i7.
3659 2010-05-09 Richard Guenther <rguenther@suse.de>
3661 * gcc.c (store_arg): Handle temporary file deletion for
3664 2010-05-09 Richard Guenther <rguenther@suse.de>
3667 * ipa-inline.c (estimate_function_body_sizes): Return after
3668 disregarding inline limits.
3670 2010-05-09 Richard Guenther <rguenther@suse.de>
3672 * gcc.c (store_arg): Revert last change.
3674 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
3677 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
3678 (optimize_ops_list): Call it.
3680 2010-05-08 Richard Guenther <rguenther@suse.de>
3682 PR tree-optimization/44030
3683 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
3684 NECESSARY flag if we propagate from a inserted expression.
3686 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3688 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
3689 domain types as equal if they are both PLACEHOLDER_EXPRs.
3691 2010-05-08 Richard Guenther <rguenther@suse.de>
3693 * lto-wrapper.c (run_gcc): Remove linker output from
3694 command line for LTRANS invocation.
3696 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3698 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3699 lto-macho as lto_binary_reader.
3700 * target.h (struct gcc_target): New hooks lto_start and lto_end.
3701 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
3702 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
3703 in lto_start and lto_end calls.
3704 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
3706 (scan_prog_file): Update is_elf_or_coff call.
3707 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
3709 * collect2.c (main): Fix enum comparison.
3711 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
3713 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
3714 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
3715 and TARGET_ASM_LTO_END.
3716 * darwin.c: Include obstack.h and lto-streamer.h.
3717 (lto_section_names_offset, lto_section_names_obstack,
3718 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
3720 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
3721 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
3722 to a temporary file.
3723 (darwin_asm_lto_end): New function. Restore asm_out_file.
3724 (darwin_asm_named_section): For LTO sections, replace the name with
3725 the offset of the section name in a string table, and build this
3727 (darwin_file_start): Initialize global vars for LTO support.
3728 (darwin_file_end): If output to asm_out_file was redirected, append it
3729 to the proper asm_out_file here. Add the section names section.
3731 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3733 * c-pragma.c (pending_weak_d, pending_weak): New.
3734 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
3735 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
3736 handle_pragma_weak): Update the uses of pending_weaks.
3738 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3740 PR documentation/44016
3741 * doc/standards.texi (Standards): Link to unversioned
3742 cxx0x_status.html page.
3744 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
3747 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
3748 in addition to TREE_USED, to avoid "set but unused" warnings.
3750 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3752 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
3753 (is_loop_prefetching_profitable): Do not insert prefetches
3754 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
3755 times the prefetch ahead distance.
3757 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3759 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
3760 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
3761 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
3764 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3766 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
3767 a diagnostic info when the insn-to-mem ratio is too small.
3769 2010-05-07 Richard Guenther <rguenther@suse.de>
3771 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
3773 (store_arg): Queue temp_filename for deletion instead of
3776 2010-05-07 Richard Guenther <rguenther@suse.de>
3778 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
3779 (run_gcc): Handle LTRANS phase invocation.
3780 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
3782 2010-05-07 Jakub Jelinek <jakub@redhat.com>
3784 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
3785 this is also meaningful on PARM_DECLs and RESULT_DECLs.
3787 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3789 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
3791 2010-05-07 Richard Guenther <rguenther@suse.de>
3793 PR tree-optimization/44020
3794 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
3795 code when PRE is not yet initialized.
3797 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3799 * config/mips/dbxmdebug.h: Remove.
3800 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
3802 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
3804 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
3805 with null pointer and also warn about ordered comparison of zero with
3808 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3810 * graphite-blocking.c
3811 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
3812 * graphite-clast-to-gimple.c
3813 (clast_to_gcc_expression): Same.
3814 (precision_for_value): Same.
3815 (precision_for_interval): Same.
3816 (gcc_type_for_interval): Same.
3817 (graphite_create_new_guard): Same.
3818 (compute_bounds_for_level): Same.
3819 (graphite_create_new_loop_guard): Same.
3820 * graphite-interchange.c
3821 (build_linearized_memory_access): Same.
3822 (pdr_stride_in_loop): Same.
3823 (memory_strides_in_loop_1): Same.
3824 (memory_strides_in_loop): Same.
3825 (extend_scattering): Same.
3826 (psct_scattering_dim_for_loop_depth): Same.
3827 (pbb_number_of_iterations): Same.
3829 (debug_iteration_domains): Same.
3831 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3832 (ppl_set_inhomogeneous_gmp): Same.
3833 (ppl_strip_loop): Same.
3834 (ppl_lexico_compare_linear_expressions): Same.
3835 (ppl_read_polyhedron_matrix): Same.
3836 (ppl_max_for_le_pointset): Same.
3838 (ppl_read_polyhedron_matrix): Same.
3839 (tree_int_to_gmp): Same.
3840 (gmp_cst_to_tree): Same.
3841 (ppl_set_inhomogeneous): Same.
3842 (ppl_set_inhomogeneous_tree): Same.
3843 (ppl_set_coef): Same.
3844 (ppl_set_coef_tree): Same.
3845 * graphite-sese-to-poly.c
3846 (build_pbb_scattering_polyhedrons): Same.
3847 (build_scop_scattering): Same.
3848 (scan_tree_for_params_right_scev): Same.
3849 (scan_tree_for_params): Same.
3850 (find_params_in_bb): Same.
3851 (find_scop_parameters): Same.
3852 (add_upper_bounds_from_estimated_nit): Same.
3853 (build_loop_iteration_domains): Same.
3854 (add_condition_to_domain): Same.
3855 (pdr_add_memory_accesses): Same.
3857 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3859 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
3860 CLooG's value_* macros to their respective mpz_* counterparts.
3861 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
3862 (graphite_create_new_loop_guard): Same.
3863 * graphite-interchange.c (build_linearized_memory_access): Same.
3864 (pdr_stride_in_loop): Same.
3865 (memory_strides_in_loop_1): Same.
3866 (1st_interchange_profitable_p): Same.
3867 * graphite-poly.c (extend_scattering): Same.
3868 (psct_scattering_dim_for_loop_depth): Same.
3869 (pbb_number_of_iterations): Same.
3870 (pbb_number_of_iterations_at_time): Same.
3871 * graphite-poly.h (new_1st_loop): Same.
3872 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
3873 (oppose_constraint): Same.
3874 (insert_constraint_into_matrix): Same.
3875 (ppl_set_inhomogeneous_gmp): Same.
3876 (ppl_set_coef_gmp): Same.
3877 (ppl_strip_loop): Same.
3878 (ppl_lexico_compare_linear_expressions): Same.
3879 (ppl_max_for_le_pointset): Same.
3880 (ppl_min_for_le_pointset): Same.
3881 (ppl_build_realtion): Same.
3882 * graphite-ppl.h (gmp_cst_to_tree): Same.
3883 (ppl_set_inhomogeneous): Same.
3884 (ppl_set_inhomogeneous_tree): Same.
3885 (ppl_set_coef): Same.
3886 (ppl_set_coef_tree): Same.
3887 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3888 (build_scop_scattering): Same.
3889 (add_value_to_dim): Same.
3890 (scan_tree_for_params_right_scev): Same.
3891 (scan_tree_for_params_int): Same.
3892 (scan_tree_for_params): Same.
3893 (find_params_in_bb): Same.
3894 (find_scop_parameters): Same.
3895 (add_upper_bounds_from_estimated_nit): Same.
3896 (build_loop_iteration_domains): Same.
3897 (create_linear_expr_from_tree): Same.
3898 (add_condition_to_domain): Same.
3899 (pdr_add_memory_accesses): Same.
3901 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
3902 Jason Merrill <jason@redhat.com>
3904 * c-common.c (c_common_reswords): Add nullptr.
3905 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
3906 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
3907 (gen_type_die_with_usage): Likewise.
3908 * dbxout.c (dbxout_type): Likewise.
3909 * sdbout.c (plain_type_1): Likewise.
3911 2010-05-06 Jason Merrill <jason@redhat.com>
3913 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
3914 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
3916 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
3918 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
3919 stripping WITH_SIZE_EXPR.
3920 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
3923 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3925 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
3926 list of obsolete configurations.
3927 Disabled check for obsolete configurations.
3928 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
3929 Removed support for previous versions.
3930 * config/mips/iris.h: Removed.
3931 * config/mips/iris5.h: Removed.
3932 * config/mips/iris6.h: Merged old iris.h contents.
3933 (TARGET_IRIX): Removed.
3934 (DRIVER_SELF_SPECS): Removed mabi=32.
3935 (IDENT_ASM_OP): Removed undef.
3936 (STARTFILE_SPEC): Removed mabi=32.
3937 (ENDFILE_SPEC): Likewise.
3938 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
3939 (MACHINE_TYPE): Update for IRIX 6.5.
3940 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
3941 TARGET_IRIX by TARGET_IRIX6.
3942 (mips_file_start): Likewise.
3943 (mips_output_external): Remove IRIX 5/6 O32 support.
3944 (mips_output_function_prologue): Likewise.
3945 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
3947 (TARGET_CPU_CPP_BUILTINS): Likewise.
3948 (TARGET_IRIX): Removed.
3949 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
3950 (MULTILIB_DIRNAMES): Removed 32.
3951 (MULTILIB_OSDIRNAMES): Removed ../lib.
3952 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
3953 (Specific, mips-sgi-irix5): Document removal.
3954 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
3955 Remove references to older IRIX 6 releases and the O32 ABI.
3957 2010-05-06 Jakub Jelinek <jakub@redhat.com>
3960 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
3961 instead of DF_REF_REAL_REG.
3963 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
3966 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
3967 handling to still return true for x64 targets.
3969 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
3971 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
3973 2010-05-06 Jan Hubicka <jh@suse.cz>
3975 PR tree-optimization/43791
3976 * ipa-inline.c (update_caller_keys): Remove bogus
3977 disregard_inline_limits check.
3979 2010-05-06 Michael Matz <matz@suse.de>
3981 PR tree-optimization/43984
3982 * tree-ssa-pre.c (inserted_phi_names): Remove.
3983 (inserted_exprs): Change to bitmap.
3984 (create_expression_by_pieces): Set bits, don't append to vector.
3985 (insert_into_preds_of_block): Don't handle inserted_phi_names.
3986 (eliminate): Don't look at inserted_phi_names, remove deleted
3987 insns from inserted_exprs.
3988 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
3989 (init_pre, fini_pre): Allocate and free bitmaps.
3990 (execute_pre): Insert insns on edges before elimination.
3992 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
3994 * tree.c (initializer_zerop): Handle STRING_CST.
3996 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3999 * doc/invoke.texi (Wimplicit): Document as C only.
4000 * opts.c (common_handle_option): Add argument kind.
4001 (handle_option): Rename as read_cmdline_option. Factor out code to...
4002 (handle_option): ... here. New.
4003 (handle_options): Rename as read_cmdline_options.
4004 (decode_options): Update call.
4005 (set_option): Use option index instead of option pointer. Classify
4006 diagnostics correctly.
4007 (enable_warning_as_error): Call handle_option.
4008 * opts.h (set_option): Update declaration.
4009 (handle_option): Declare.
4010 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
4011 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
4012 * c-opts.c (set_Wimplicit): Delete.
4013 (c_family_lang_mask): New static constant.
4014 (c_common_handle_option): Add argument kind. Use handle_option
4015 instead of set_Wimplicit.
4016 (c_common_post_options): warn_implicit and warn_implicit_int
4017 are disabled by default.
4018 * c-common.c (warn_implicit): Do not define here.
4019 * c-common.h (warn_implicit): Do not declare here.
4020 (c_common_handle_option): Update declaration.
4021 * lto-opts.c (lto_reissue_options): Update call to set_option.
4023 2010-05-06 Richard Guenther <rguenther@suse.de>
4025 PR tree-optimization/43571
4026 * domwalk.c (walk_dominator_tree): Walk the dominator
4027 sons in more optimal order.
4029 2010-05-06 Richard Guenther <rguenther@suse.de>
4031 PR tree-optimization/43934
4032 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
4033 (stmt_cost): Likewise.
4034 (extract_true_false_args_from_phi): New helper.
4035 (determine_max_movement): For PHI nodes verify we can hoist them
4036 and compute their cost.
4037 (determine_invariantness_stmt): Handle PHI nodes.
4038 (move_computations_stmt): Likewise. Hoist PHI nodes in
4039 if-converted form using COND_EXPRs.
4040 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
4041 (tree_ssa_lim): Likewise.
4042 * tree-flow.h (tree_ssa_lim): Adjust prototype.
4043 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
4045 2010-05-06 Richard Guenther <rguenther@suse.de>
4047 PR tree-optimization/43987
4048 * tree-ssa-structalias.c (could_have_pointers): For possibly
4049 address-taken variables force pointers to be recorded.
4050 (create_variable_info_for_1): Likewise.
4051 (push_fields_onto_fieldstack): Pass in wheter all fields
4053 (find_func_aliases): Query types instead of vars whether
4054 they contain pointers where appropriate.
4056 2010-05-06 Jan Hubicka <jh@suse.cz>
4058 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
4059 (record_reference, mark_address, mark_load, mark_store): Record
4061 (record_references_in_initializer): Update call of record_references.
4062 (rebuild_cgraph_edges): Remove all references before rebuiding.
4063 * cgraph.c (cgraph_create_node): Clear ref list.
4064 (cgraph_remove_node): Remove references.
4065 (dump_cgraph_node): Dump references.
4066 (cgraph_clone_node): Clone references.
4067 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
4068 (struct cgraph_node, varpool_node): Add ref_lst.
4069 * ipa-ref.c: New file.
4070 * ipa-ref.h: New file.
4071 * ipa-ref-inline.h: New file.
4072 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
4073 (referenced_from_other_partition_p): New function.
4074 (lto_output_varpool_node): Take set arugment; call
4075 referenced_from_other_partition.
4076 (lto_output_ref): New.
4077 (add_references): New.
4079 (output_cgraph): Compute boundary based on references; output refs.
4080 (output_varpool): Accept cgraph_node_set argument.
4083 (input_cgraph): Call input_refs.
4084 * lto-section-in.c (lto_section_name): Add refs.
4085 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
4086 (ipa-ref.o): New file.
4087 * varpool.c (varpool_node): Clear ipa ref list.
4088 (varpool_remove_node): Remove references.
4089 (dump_varpool_node): Dump references.
4090 (varpool_assemble_decl): Only compile finalized ones.
4091 (varpool_extra_name_alias): Initialize ref list.
4092 * lto-streamer.c (lto-get_section_name): Add .refs section.
4093 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
4094 (referenced_from_other_partition_p): Declared.
4096 2010-05-06 Ira Rosen <irar@il.ibm.com>
4098 PR tree-optimization/43901
4099 * tree-vect-stmts.c (vectorizable_call): Assert that vector
4100 type is not NULL if it's transformation phase, and return
4101 FALSE if it's analysis.
4102 (vectorizable_conversion, vectorizable_operation,
4103 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
4105 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
4107 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
4109 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
4111 * config/mips/mips-protos.h
4112 (mips_small_register_classes_for_mode_p): Delete prototype.
4114 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
4116 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
4117 * config/arm/arm.c (multiple_operation_profitable_p,
4118 compute_offset_order): New static functions.
4119 (load_multiple_sequence, store_multiple_sequence): Use them.
4120 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
4121 memory offsets, not register numbers.
4122 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
4124 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
4126 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
4127 (get_pending_sizes, put_pending_size, put_pending_sizes):
4128 Update the uses of pending_sizes.
4129 * c-decl.c (store_parm_decls): Likewise.
4130 * c-tree.h (struct c_arg_info): Likewise.
4131 * tree.h: Update the prototype for get_pending_sizes and
4134 2010-05-05 Jason Merrill <jason@redhat.com>
4137 * c-common.c (handle_aligned_attribute): Respect
4138 ATTR_FLAG_TYPE_IN_PLACE.
4141 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
4142 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4143 (TARGET_INITIALIZER): Use it.
4144 * c-common.c (attribute_takes_identifier_p): Call it.
4145 * c-common.h: Update prototype.
4146 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
4147 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4149 2010-05-05 Jakub Jelinek <jakub@redhat.com>
4152 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
4153 DW_ID_down_case for Fortran compilation units.
4155 2010-05-05 Jan Hubicka <jh@suse.cz>
4157 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
4160 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
4162 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
4163 a variable-sized RESULT_DECL.
4165 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
4167 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
4169 2010-05-05 Jason Merrill <jason@redhat.com>
4172 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
4174 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
4176 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
4177 Jakub Jelinek <jakub@redhat.com>
4180 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
4181 (dead_debug_init, dead_debug_finish): New functions.
4182 (dead_debug_add, dead_debug_insert_before): Likewise.
4183 (df_note_bb_compute): Initialize a dead_debug object, add dead
4184 debug uses to it, insert debug bind insns before death insns,
4185 reset debug insns that refer to pending uses at the end.
4186 * rtl.h (make_debug_expr_from_rtl): New prototype.
4187 * varasm.c (make_debug_expr_from_rtl): New function.
4189 2010-05-05 Jan Hubicka <jh@suse.cz>
4191 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
4192 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
4193 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
4194 lto_varpool_encoder_deref, lto_varpool_encoder_size,
4195 lto_varpool_encoder_encode_initializer_p,
4196 lto_set_varpool_encoder_encode_initializer): New functions.
4197 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
4198 call output_varpool.
4199 (input_varpool_node): Do not always set analyzed.
4200 (input_cgraph_1): Return vector of cgraph nodes.
4201 (input_varpool_1): Return vector of varpools.
4202 (input_cgraph): Free the vectors.
4203 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4204 output only initializers needed.
4205 (lto_output): Only call output_cgraph.
4206 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
4207 * lto-section-out.c (lto_new_out_decl_state): Initialize
4208 state->varpool_node_encoder.
4209 * lto-streamer.h (lto_varpool_encoder_d): New.
4210 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
4211 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
4212 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
4213 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
4214 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
4216 (output_varpool, input_varpool): Remove declarations.
4218 2010-05-05 Jan Hubicka <jh@suse.cz>
4220 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
4221 with body can prevail.
4223 2010-05-05 Jan Hubicka <jh@suse.cz>
4225 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
4228 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4230 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
4232 * gengtype.h (erro_at_line): Constify pos argument.
4234 * gengtype.c: Include hashtab.h.
4235 (enum gc_used): Document GC_MAYBE_POINTED_TO.
4236 (error_at_line): Constify pos argument.
4237 (do_typedef): Initialize p->opt field.
4238 (get_file_gtfilename): Fix comment typo.
4239 (struct walk_type_data): Constify line field.
4240 (get_output_file_for_structure): New function.
4241 (write_local_func_for_structure): Constify orig_s argument.
4242 Use get_output_file_for_structure.
4243 (write_func_for_structure): Use get_output_file_for_structure.
4244 (INDENT): New define.
4245 (dump_pair, dump_type, dump_type_list, dump_typekind)
4246 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
4247 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
4249 (seen_types): New variable.
4250 (main): New variable do_dump. Process "-d" command line option.
4251 Call dump_everything if dump requested.
4253 2010-05-05 Jakub Jelinek <jakub@redhat.com>
4255 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
4256 in a temporary instead of invoking the macro multiple times.
4257 (track_expr_p): Likewise.
4259 2010-05-04 Neil Vachharajani <nvachhar@google.com>
4261 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
4263 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
4264 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
4265 conditions for printing notes.
4266 * common.opt (-Wcoverage-mismatch): Allow negative, default to
4267 true, update documentation.
4268 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
4270 2010-05-04 Jakub Jelinek <jakub@redhat.com>
4273 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
4276 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
4279 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
4280 (*sse_prologue_save_insn1): Likewise.
4281 (SSE prologue save splitter): Likewise.
4283 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
4285 * tree.c (free_lang_data_in_one_sizepos): New inline function.
4286 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
4287 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
4288 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
4289 all decls. Call it on DECL_FIELD_OFFSET of fields.
4290 (find_decls_types_r): Follow DECL_VALUE_EXPR.
4291 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
4293 2010-05-04 Martin Jambor <mjambor@suse.cz>
4295 * tree-sra.c (build_access_from_expr_1): The first parameter type
4296 changed to simple tree.
4297 (build_access_from_expr): Likewise, gsi parameter was eliminated.
4298 (scan_assign_result): Renamed to assignment_mod_result, enum elements
4300 (build_accesses_from_assign): Removed all parameters except for a
4301 simple gimple statement. Now returns a simple bool.
4302 (scan_function): All non-analysis parts moved to separate functions
4303 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
4304 parameters and updated both callers.
4305 (sra_modify_expr): Removed parameter data.
4306 (sra_modify_function_body): New function.
4307 (perform_intra_sra): Call sra_modify_function_body to modify the
4309 (replace_removed_params_ssa_names): Parameter data changed into
4311 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
4312 changed the parameter dont_convert to convert with the opposite
4314 (sra_ipa_modify_assign): Parameter data changed into adjustments
4315 vector, return value changed to bool.
4316 (ipa_sra_modify_function_body): New function.
4317 (sra_ipa_reset_debug_stmts): Updated a comment.
4318 (modify_function): Use ipa_sra_modify_function_body to modify function
4321 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
4324 * alias.c (true_dependence): Handle the same VALUE in x and mem.
4325 (canon_true_dependence): Likewise.
4326 (write_dependence_p): Likewise.
4328 2010-05-04 Jan Hubicka <jh@suse.cz>
4330 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
4331 * cgraphbuild.c: Include ipa-utils.h
4332 (record_reference_ctx): New struct.
4333 (record_reference): Simplify to work on initializers; not statements.
4334 (mark_address, mark_load, mark_store): New.
4335 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4337 (record_references_in_initializer): Update use of record_reference.
4338 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4341 2010-05-04 Jan Hubicka <jh@suse.cz>
4343 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
4344 node will be removed anyway.
4345 (lto_varpool_replace_node): Allow also unanalyzed nodes;
4346 relink aliases of node into prevailing node.
4347 * varpool.c (varpool_remove_node): Remove aliases properly;
4348 when removing node, remove all its aliases too; remove DECL_INITIAL
4349 of removed node; ggc_free the varpool node.
4351 2010-05-04 Richard Guenther <rguenther@suse.de>
4353 PR tree-optimization/43879
4354 * tree-ssa-structalias.c (alias_get_name): Use
4355 DECL_ASSEMBLER_NAME if available.
4356 (create_function_info_for): Return the varinfo node.
4357 (ipa_pta_execute): Associate same-body aliases and extra names
4358 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
4360 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
4362 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
4364 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
4367 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
4368 only if HONOR_REG_ALLOC_ORDER is not defined.
4370 2010-05-04 Richard Guenther <rguenther@suse.de>
4372 PR tree-optimization/43949
4373 * tree-vrp.c (extract_range_from_binary_expr): Only handle
4376 2010-04-26 Jason Merrill <jason@redhat.com>
4378 * c.opt (-fstrict-enums): New.
4379 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
4381 2010-05-03 David Ung <davidu@mips.com>
4382 James E. Wilson <wilson@codesourcery.com>
4384 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
4385 emit the trap instruction before the divide for TUNE_74K.
4387 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
4389 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
4390 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
4391 based on the above, for new target hook.
4393 * hooks.c (hook_bool_mode_true): New generic hook.
4394 * hooks.h (hook_bool_mode_true): Add prototype.
4396 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
4398 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
4399 target hook, set to hook_bool_mode_false.
4400 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
4401 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
4402 with targetm.small_register_classes_for_mode_p.
4403 (find_reusable_reload): Likewise.
4404 (combine_reloads): Likewise.
4405 * reload1.c (reload_as_needed): Likewise.
4406 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
4407 * ifcvt.c (noce_process_if_block, check_cond_move_block,
4408 dead_or_predicable): Likewise.
4409 * regmove.c (optimize_reg_copy_1): Likewise.
4410 * calls.c (prepare_call_address): Likewise.
4411 (precompute_register_parameters): Likewise.
4413 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
4415 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
4416 implementation of the hook that considers all register classes
4417 small except for SH64.
4418 (sh_override_options): Use the new hook.
4419 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
4422 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
4424 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
4425 implementation of the hook that considers all register classes
4427 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
4430 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
4432 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
4433 implementation of the hook that considers all register classes
4435 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
4438 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
4440 * config/m32c/m32c.h: Likewise.
4441 * config/pdp11/pdp11.h: Likewise.
4442 * config/avr/avr.h: Likewise.
4443 * config/xtensa/xtensa.h: Likewise.
4444 * config/m68hc11/m68hc11.h: Likewise.
4445 * config/mn10300/mn10300.h: Likewise.
4446 * config/mcore/mcore.h: Likewise.
4447 * config/h8300/h8300.h: Likewise.
4448 * config/bfin/bfin.h: Likewise.
4450 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
4451 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
4453 2010-05-03 Anatoly Sokolov <aesok@post.ru>
4455 * double-int.h (tree_to_double_int): Remove macro.
4456 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
4457 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4458 (tree_to_double_int): New function.
4459 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
4461 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4463 2010-05-03 Richard Guenther <rguenther@suse.de>
4465 PR tree-optimization/43971
4466 * tree-ssa-structalias.c (get_constraint_for_1): Fix
4467 constraints in the !flag_delete_null_pointer_checks case.
4469 2010-05-03 Jakub Jelinek <jakub@redhat.com>
4472 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
4473 result mode matches original rtl mode.
4475 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
4478 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
4480 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4482 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
4483 when processing flag options.
4485 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4487 * gcov-iov.c (main): Change format string placeholder
4488 from %#08x to 0x%08x.
4489 * genchecksum.c (dosum): Change format string placeholder
4490 from %#02x to 0x%02x.
4492 2010-05-02 Richard Guenther <rguenther@suse.de>
4494 PR tree-optimization/43879
4495 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
4497 2010-05-02 Bruno Haible <bruno@clisp.org>
4499 * doc/extend.texi (Function Attributes): Fix a typo.
4501 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4504 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
4505 placeholder from 0x%x to %#x.
4506 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4507 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4508 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4509 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4510 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4511 * config/i386/i386.c (ix86_target_string): Ditto.
4512 * config/i386/i386.c (output_pic_addr_const): Ditto.
4513 (print_operand): Ditto.
4515 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4517 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
4518 placeholder from 0x%x to %#x.
4519 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
4520 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
4521 (ASM_OUTPUT_DEBUG_DATA): Ditto.
4522 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
4523 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
4524 * optc-gen.awk: Ditto.
4525 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
4526 (HOST_WIDE_INT_PRINT_HEX): Ditto.
4527 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
4528 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4530 2010-05-01 Anatoly Sokolov <aesok@post.ru>
4532 * target.h (struct calls): Add function_value_regno_p field.
4533 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4534 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
4535 * targhooks.c (default_function_value_regno_p): New function.
4536 * targhooks.h (default_function_value_regno_p): Declare function.
4537 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
4538 * builtins.c. (apply_result_size): (Ditto.).
4539 * combine.c. (likely_spilled_retval_p): (Ditto.).
4540 * mode-switching.c. Include 'target.h'.
4541 (create_pre_exit): Use function_value_regno_p hook.
4542 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
4543 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
4544 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
4546 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
4547 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
4548 (ix86_function_value_regno_p): Declare as static, change argument
4549 type to const unsigned int.
4550 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
4552 2010-05-01 Richard Guenther <rguenther@suse.de>
4554 PR tree-optimization/43949
4555 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
4557 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
4559 2010-05-01 Anatoly Sokolov <aesok@post.ru>
4561 * rtl.h (CONST_DOUBLE_P): Define.
4562 (rtx_to_double_int): Declare.
4563 * emit-rtl.c (rtx_to_double_int): New function.
4564 * dwarf2out.c (insert_double): New function.
4565 (loc_descriptor, add_const_value_attribute): Clean up, use
4566 rtx_to_double_int and insert_double functions.
4568 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
4570 * doc/extend.texi (Inline): Add missing return keyword to examples.
4571 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
4574 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
4576 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
4577 the variable part of the offset as well. Use highest_pow2_factor for
4578 all alignment checks.
4580 2010-04-30 Richard Guenther <rguenther@suse.de>
4582 PR tree-optimization/43879
4583 * tree-ssa-structalias.c (type_could_have_pointers): Functions
4586 2010-04-30 Jan Hubicka <jh@suse.cz>
4588 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
4590 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
4592 2010-04-30 Jan Hubicka <jh@suse.cz>
4594 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
4596 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
4597 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
4598 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
4599 cgraph_node_set_needs_ltrans_p): Remove.
4601 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
4603 * sdbout.c: Include vec.h, do not include varray.h.
4604 (deferred_global_decls, sdbout_global_decl,
4605 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
4606 * toplev.c: Do not include varray.h.
4607 (dump_memory_report): Do not dump VARRAY statistics.
4608 * gengtype.c (open_base_file): Ignore varray.h.
4609 * Makefile.in: Update for abovementioned changes.
4610 Remove all traces of varray.c and varray.h.
4611 * varray.c: Remove file.
4612 * varray.h: Remove file.
4614 2010-04-30 Jan Hubicka <jh@suse.cz>
4616 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
4619 2010-04-30 Jan Hubicka <jh@suse.cz>
4621 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
4624 2010-04-30 Richard Guenther <rguenther@suse.de>
4626 * tree-ssa-structalias.c (get_constraint_for_1): Generate
4627 constraints for CONSTRUCTOR.
4629 2010-04-30 Richard Guenther <rguenther@suse.de>
4632 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
4633 first after all lowering passes.
4635 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
4637 * toplev.c: Include varray.h for statistics dumping.
4638 * tree.h: Do not declare varray_head_tag.
4639 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
4640 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
4641 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
4642 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
4643 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
4644 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
4645 c-common.c, c-common.h, reg-stack.c, basic-block.h,
4646 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
4648 * Makefile.in: Update for abovementioned changes.
4650 2010-04-30 Jakub Jelinek <jakub@redhat.com>
4653 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
4655 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
4657 * config/picochip/picochip.c (picochip_legitimize_address): Define.
4658 Use this function to do machine-specific conversion.
4659 (picochip_legitimize_reload_address): Likewise.
4660 (picochip_legitimate_address_p): Check valid base register only if
4662 (picochip_check_conditional_copy): Check for modw only if opnd is
4664 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
4665 to call the function in c.
4666 * config/picochip/picochip-protos.h
4667 (picochip_legitimize_reload_address): Define.
4668 * config/picochip/picochip.md (supported_compare1): Define.
4670 2010-04-30 Jan Hubicka <jh@suse.cz>
4672 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
4673 (cgraph_global_info): Remove inlined.
4674 (LTO_cgraph_tag_names): Remove.
4675 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
4676 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
4677 simplify cgraph tags and document.
4678 (lto_output_node): Use only LTO_cgraph_unavail_node and
4679 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
4680 for_functions_valid, global info, process and output flags.
4681 (input_overwrite_node): Initialize estimated stack size and
4682 estimated growth. Do not read flags we no longer store.
4683 (input_node): Likewise do not read info no longer stored.
4684 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
4687 2010-04-30 Richard Guenther <rguenther@suse.de>
4689 PR tree-optimization/43879
4690 * tree-ssa-structalias.c (get_constraint_for_1): Properly
4691 handle non-zero initializers.
4693 2010-04-30 Richard Guenther <rguenther@suse.de>
4695 * builtins.c (fold_builtin_1): Delete free (0).
4697 2010-04-29 Jan Hubicka <jh@suse.cz>
4699 * gengtype.c (open_base_files): Add lto-streamer.h
4700 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
4701 (pass_ipa_cp): GGC collect.
4702 * toplev. (compile_file): Do not output symbols.
4703 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
4704 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
4705 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
4706 * lto-section-in.c: Include ggc.h
4707 (lto_new_in_decl_state): Alloc in GGC.
4708 (lto_delete_in_decl_state): Likewise.
4709 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
4712 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
4715 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
4716 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
4717 (HONOR_REG_ALLOC_ORDER): Describe new macro.
4718 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
4719 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
4720 account only if HONOR_REG_ALLOC_ORDER is not defined.
4721 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
4722 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
4724 2010-04-29 Jon Grant <04@jguk.org>
4726 * collect2.c (vflag): Change type from int to bool.
4728 (helpflag): New global bool.
4729 (main): Set vflag and debug with boolean, not integer truth values.
4730 Accept new "--help" option and output usage text if found.
4731 * collect2.h (vflag): Update prototype.
4734 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
4737 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
4739 2010-04-29 Richard Guenther <rguenther@suse.de>
4742 * plugin.h (invoke_plugin_callbacks): Annotate arguments
4743 with ATTRIBUTE_UNUSED.
4745 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
4748 * config/i386/i386.c (get_some_local_dynamic_name): Replace
4749 INSN_P with NONDEBUG_INSN_P.
4750 (distance_non_agu_define): Likewise.
4751 (distance_agu_use): Likewise.
4753 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
4755 From Dominique d'Humieres <dominiq@lps.ens.fr>
4757 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
4760 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
4762 * plugin.h (invoke_plugin_callbacks): New inline function.
4763 * plugin.c (flag_plugin_added): New global flag.
4764 (add_new_plugin): Initialize above flag.
4765 (invoke_plugin_callbacks): Rename to ...
4766 (invoke_plugin_callbacks_full): ... this.
4768 2010-04-28 Jan Hubicka <jh@suse.cz>
4770 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
4771 (lto_varpool_replace_node): New.
4772 (lto_symtab_resolve_symbols): Resolve varpool nodes.
4773 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
4774 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
4775 * cgraph.h (varpool_node_ptr): New type.
4776 (varpool_node_ptr): New vector.
4777 (varpool_node_set_def): New structure.
4778 (varpool_node_set): New type.
4779 (varpool_node_set): New vector.
4780 (varpool_node_set_element_def): New structure.
4781 (varpool_node_set_element, const_varpool_node_set_element): New types.
4782 (varpool_node_set_iterator): New type.
4783 (varpool_node): Add prev pointers, add used_from_other_partition,
4785 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
4786 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
4787 varpool_get_node, varpool_remove_node): Declare.
4788 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
4789 varpool_node_set_size): New inlines.
4790 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
4791 * tree-pass.h (varpool_node_set_def): Forward declare.
4792 (ipa_opt_pass_d): Summary writting takes vnode sets too.
4793 (ipa_write_optimization_summaries): Update prototype.
4794 * ipa-cp.c (ipcp_write_summary): Update.
4795 * ipa-reference.c (ipa_reference_write_summary): Update.
4796 * lto-cgraph.c (lto_output_varpool_node): New static function.
4797 (output_varpool): New function.
4798 (input_varpool_node): New static function.
4799 (input_varpool_1): New function.
4800 (input_cgraph): Input varpool.
4801 * ipa-pure-const.c (pure_const_write_summary): Update.
4802 * lto-streamer-out.c (lto_output): Update, output varpool too.
4803 (write_global_stream): Kill WPA hack.
4804 (produce_asm_for_decls): Update.
4805 (output_alias_pair_p): Handle variables.
4806 (output_unreferenced_globals): Output only needed partition of varpool.
4807 * ipa-inline.c (inline_write_summary): Update.
4808 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
4810 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
4811 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
4812 varpool_node_set_new, varpool_node_set_add,
4813 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
4814 debug_varpool_node_set): New functions.
4815 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
4816 (execute_one_pass): Process new decls too.
4817 (ipa_write_summaries_2): Pass around vsets.
4818 (ipa_write_summaries_1): Likewise.
4819 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
4821 (ipa_write_optimization_summaries_1): Pass around vsets.
4822 (ipa_write_optimization_summaries): Likewise.
4823 * varpool.c (varpool_get_node): New.
4824 (varpool_node): Update doubly linked lists.
4825 (varpool_remove_node): New.
4826 (dump_varpool_node): More dumping.
4827 (varpool_enqueue_needed_node): Update doubly linked lists.
4828 (decide_is_variable_needed): Kill ltrans hack.
4829 (varpool_finalize_decl): Kill lto hack.
4830 (varpool_assemble_decl): Skip decls in other partitions.
4831 (varpool_assemble_pending_decls): Update doubly linkes lists.
4832 (varpool_empty_needed_queue): Likewise.
4833 (varpool_extra_name_alias): Likewise.
4834 * lto-streamer.c (lto_get_section_name): Add vars section.
4835 * lto-streamer.h (lto_section_type): Update.
4836 (output_varpool, input_varpool): Declare.
4838 2010-04-28 Mike Stump <mikestump@comcast.net>
4840 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
4842 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4844 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
4845 record or union type with RECORD_OR_UNION_TYPE_P predicate.
4846 (lto_input_ts_type_tree_pointers): Likewise.
4847 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
4848 (lto_output_ts_type_tree_pointers): Likewise.
4850 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4852 Uniquization of constants at the Tree level
4853 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
4854 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
4856 (tree_output_constant_def): Declare.
4857 * gimplify.c (gimplify_init_constructor): When using block copy, first
4858 uniquize the constant constructor on the RHS.
4859 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
4860 DECL_IN_CONSTANT_POOL flag.
4861 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
4862 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
4864 (assemble_variable): Deal with symbols belonging to the tree constant
4866 (get_constant_section): Add ALIGN parameter and simplify.
4867 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
4868 (assemble_constant_contents): Use the expression of the VAR_DECL.
4869 (output_constant_def_contents): Use the alignment of the VAR_DECL.
4870 (tree_output_constant_def): New global function.
4871 (mark_constant): Use the expression of the VAR_DECL.
4872 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
4874 (output_object_block): Likewise and assemble the expression.
4876 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4878 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
4879 hash_tree, eq_tree): New tree hash table.
4880 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
4881 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
4882 lto_orig_address_remove): Reimplement.
4884 2010-04-28 Xinliang David Li <davidxl@google.com>
4887 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
4888 (compute_uninit_opnds_pos): New function.
4889 (is_non_loop_exit_postdominating): New function.
4890 (compute_control_dep_chain): New function.
4891 (find_pdom): New function.
4892 (convert_control_dep_chain_into_preds): New function.
4893 (find_predicates): New function.
4894 (find_control_equiv_block): New function.
4895 (collect_phi_def_edges): New function.
4896 (find_def_preds): New function.
4897 (find_dom): New function.
4898 (dump_predicates): New function.
4899 (get_cmp_code): New function.
4900 (is_value_included_in): New function.
4901 (find_matching_predicate_in_rest_chains): New function.
4902 (use_pred_not_overlap_with_undef_path_pred): New function.
4903 (is_use_properly_guarded): New function.
4904 (normalize_cond_1): New function.
4905 (is_and_or_or): New function.
4906 (normalize_cond): New function.
4907 (is_gcond_subset_of): New function.
4908 (is_subset_of_any): New function.
4909 (is_or_set_subset_of): New function.
4910 (is_and_set_subset_of): New function.
4911 (is_norm_cond_subset_of): New function.
4912 (is_pred_expr_subset_of): New function.
4913 (is_pred_chain_subset_of): New function.
4914 (is_included_in): New function.
4915 (is_superset_of): New function.
4916 (find_uninit_use): New function.
4917 (warn_uninitialized_phi): New function.
4918 (compute_possibly_undefined_names): New function.
4919 (ssa_undefined_value_p): New function.
4920 (execute_late_warn_uninitialized): New function.
4921 * tree-ssa.c (ssa_undefined_value_p): Removed.
4922 (warn_uninit): Changed to extern.
4923 (warn_uninitialized_phi): Removed.
4924 (warn_uninitialized_vars): Changed to extern.
4925 (execute_late_warn_uninitialized): Removed
4926 * tree-flow.h: Add new prototypes.
4927 * timevar.def: Add new time variable.
4928 * Makefile.in: Add new build file.
4930 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
4932 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
4935 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4938 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
4940 2010-04-28 Martin Jambor <mjambor@suse.cz>
4942 * cgraph.h (struct cgraph_node): New field indirect_calls.
4943 (struct cgraph_indirect_call_info): New type.
4944 (struct cgraph_edge): Removed field indirect_call. New fields
4945 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
4946 (cgraph_create_indirect_edge): Declare.
4947 (cgraph_make_edge_direct): Likewise.
4948 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
4949 * ipa-prop.h (struct ipa_param_call_note): Removed.
4950 (struct ipa_node_params): Removed field param_calls.
4951 (ipa_create_all_structures_for_iinln): Declare.
4952 * cgraph.c: Described indirect edges and uids in initial comment.
4953 (cgraph_add_edge_to_call_site_hash): New function.
4954 (cgraph_edge): Search also among the indirect edges, use
4955 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
4956 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
4957 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
4959 (initialize_inline_failed): Assign a reason to indirect edges.
4960 (cgraph_create_edge_1): New function.
4961 (cgraph_create_edge): Moved some functionality to
4962 cgraph_create_edge_1.
4963 (cgraph_create_indirect_edge): New function.
4964 (cgraph_edge_remove_callee): Add an assert checking for
4966 (cgraph_edge_remove_caller): Special-case indirect edges.
4967 (cgraph_remove_edge): Likewise.
4968 (cgraph_set_edge_callee): New function.
4969 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
4970 (cgraph_make_edge_direct): New function.
4971 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
4972 the declaration of the call statement matches.
4973 (cgraph_node_remove_callees): Special-case indirect edges.
4974 (cgraph_clone_edge): Likewise.
4975 (cgraph_clone_node): Clone also the indirect edges.
4976 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
4977 indirect_call, dump count of indirect_calls edges.
4978 * ipa-prop.c (iinlining_processed_edges): New variable.
4979 (ipa_note_param_call): Create indirect edges instead of
4980 creating notes. New parameter node.
4981 (ipa_analyze_call_uses): New parameter node, pass it on to
4982 ipa_note_param_call.
4983 (ipa_analyze_stmt_uses): Likewise.
4984 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
4985 (print_edge_addition_message): Work on edges rather than on notes.
4986 (update_call_notes_after_inlining): Likewise, renamed to
4987 update_indirect_edges_after_inlining.
4988 (ipa_create_all_structures_for_iinln): New function.
4989 (ipa_free_node_params_substructures): Do not free notes.
4990 (ipa_edge_duplication_hook): Propagate bits within
4991 iinlining_processed_edges bitmap.
4992 (ipa_node_duplication_hook): Do not duplicate notes.
4993 (free_all_ipa_structures_after_ipa_cp): Renamed to
4994 ipa_free_all_structures_after_ipa_cp.
4995 (free_all_ipa_structures_after_iinln): Renamed to
4996 ipa_free_all_structures_after_iinln.
4997 (ipa_write_param_call_note): Removed.
4998 (ipa_read_param_call_note): Removed.
4999 (ipa_write_indirect_edge_info): New function.
5000 (ipa_read_indirect_edge_info): Likewise.
5001 (ipa_write_node_info): Do not stream notes, do stream information
5003 (ipa_read_node_info): Likewise.
5004 (lto_ipa_fixup_call_notes): Removed.
5005 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
5006 * ipa-inline.c (pass_ipa_inline): Likewise.
5007 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
5008 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
5009 * tree-inline.c (copy_bb): Removed an unnecessary double check for
5011 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
5013 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
5014 (output_cgraph): Stream also indirect edges.
5015 (lto_output_edge): Added capability to stream indirect edges.
5016 (input_edge): Likewise.
5017 (input_cgraph_1): Likewise.
5018 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
5021 2010-04-28 Richard Guenther <rguenther@suse.de>
5023 PR tree-optimization/43879
5024 PR tree-optimization/43909
5025 * tree-ssa-structalias.c (struct variable_info): Add
5026 only_restrict_pointers flag.
5027 (new_var_info): Initialize it. Increment stats.total_vars here.
5028 (create_function_info_for): Do not increment stats.total_vars here.
5029 (get_function_part_constraint): Fix build with C++.
5030 (insert_into_field_list): Remove.
5031 (push_fields_onto_fieldstack): Properly merge fields.
5032 (create_variable_info_for): Split and simplify.
5033 (create_variable_info_for_1): New piece.
5034 (intra_create_variable_infos): Properly make restrict constraints
5037 2010-04-28 Richard Guenther <rguenther@suse.de>
5040 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
5042 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
5043 Jan Hubicka <hubicka@ucw.cz>
5045 * doc/invoke.texi (-Wsuggest-attribute=const,
5046 -Wsuggest-attribute=pure): Document.
5047 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
5048 (function_always_visible_to_compiler_p,
5049 suggest_attribute, warn_function_pure, warn_function_const):
5051 (check_call): Improve debug info.
5052 (analyze_function): Do not check availability.
5053 (add_new_function): Check availability.
5054 (propagate): Output warnings.
5055 (skip_function_for_local_pure_const): New function.
5056 (local_pure_const): Use it; output warnings.
5057 * common.opt (Wsuggest-attribute=const,
5058 Wsuggest-attribute=pure): New.
5060 2010-04-27 Jakub Jelinek <jakub@redhat.com>
5062 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
5063 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
5064 or DW_CFA_def_cfa_offset{,_sf}.
5066 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
5068 * tree.h: Fix truncated long macros.
5070 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
5072 * collect2.c (TARGET_64BIT): Redefine to target's default.
5073 * tlink.c: Likewise.
5074 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
5075 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
5076 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
5077 for underscoring __USER_LABEL_PREFIX__.
5078 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
5079 (SUB_LINK_ENTRY32): New.
5080 (SUB_LINK_ENTRY64): New.
5081 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
5082 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
5083 (SUB_LINK_ENTRY64): New.
5084 (SUB_LINK_ENTRY): New.
5085 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
5086 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
5087 x64 target is choosen.
5088 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
5089 * configure: Regenerated.
5090 * configure.ac (leading-mingw64-underscores): Option added.
5092 2010-04-27 Jan Hubicka <jh@suse.cz>
5094 * doc/invoke.texi (-fipa-profile): Document.
5095 * opts.c (decode_options): Enable ipa-profile at -O1.
5096 * timevar.def (TV_IPA_PROFILE): Define.
5097 * common.opt (fipa-profile): Add.
5098 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
5100 (cgraph_propagate_frequency): Handle only local ones.
5101 * tree-pass.h (pass_ipa_profile): Declare.
5102 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
5103 (pass_ipa_profile): Use TV_IPA_PROFILE.
5104 * ipa.c (ipa_profile): New function.
5105 (gate_ipa_profile): Likewise.
5106 (pass_ipa_profile): New global variable.
5107 * passes.c (pass_ipa_profile): New.
5109 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
5111 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
5113 2010-04-27 Martin Jambor <mjambor@suse.cz>
5116 * ipa.c (dissolve_same_comdat_group_list): New function.
5117 (function_and_variable_visibility): Call
5118 dissolve_same_comdat_group_list when comdat group contains external or
5120 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
5121 lists are circular and that they contain only DECL_ONE_ONLY nodes.
5123 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
5125 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
5126 (const_hash_1) <VECTOR_CST>: New case.
5127 (compare_constant) <VECTOR_CST>: Likewise.
5128 <ADDR_EXPR>: Deal with LABEL_REFs.
5129 (copy_constant) <VECTOR_CST>: New case.
5131 2010-04-27 Jan Hubicka <jh@suse.cz>
5133 * cgraph.c (cgraph_propagate_frequency): New function.
5134 * cgraph.h (cgraph_propagate_frequency): Declare.
5135 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
5136 cgraph_propagate_frequency.
5138 2010-04-27 Jakub Jelinek <jakub@redhat.com>
5140 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
5142 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
5145 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
5146 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
5147 here to determine which regs to push and how much stack to reserve.
5149 2010-04-27 Jie Zhang <jie@codesourcery.com>
5151 * doc/gimple.texi (gimple_statement_with_ops): Remove
5152 addresses_taken field.
5153 (gimple_statement_with_memory_ops): Likewise.
5155 2010-04-27 Jan Hubicka <jh@suse.cz>
5157 * tree-inline.c (eni_inlining_weights): Remove.
5158 (estimate_num_insns): Special case more builtins.
5160 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
5163 * c-typeck.c (build_binary_op): Move forward check for comparison
5164 pointer with null pointer constant and adjust the diagnostic message.
5166 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
5169 * configure.ac (gcc_cv_as_section_has_align): Set if installed
5170 binutils supports extended .section directive needed by LTO, or
5171 warn if older binutils found.
5172 (LTO_BINARY_READER): New AC_SUBST'd variable.
5173 (LTO_USE_LIBELF): Likewise.
5174 * gcc/config.gcc (lto_binary_reader): New target-specific configure
5176 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
5177 (LTO_USE_LIBELF): Likewise.
5178 * configure: Regenerate.
5180 * collect2.c (is_elf): Rename from this ...
5181 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
5182 object files in addition to ELF-formatted ones.
5183 (scan_prog_file): Caller updated. Also allow for LTO info marker
5184 symbol to be prefixed or not by an extra underscore.
5186 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
5187 * config/i386/winnt.c: Also #include lto-streamer.h
5188 (i386_pe_asm_named_section): Specify 1-byte section alignment for
5190 (i386_pe_asm_output_aligned_decl_common): Add comment.
5191 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
5193 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
5196 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
5197 Add missing earlyclobber for second alternative.
5199 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
5201 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
5202 bits for artificial defs at the top of the block.
5203 * fwprop.c (single_def_use_enter_block): Don't call it.
5205 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
5208 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
5209 instead of "$gcc_cv_objdump -T".
5210 Use "-undefined dynamic_lookup" on darwin.
5211 * gcc/configure: Regenerate.
5213 2010-04-26 Jakub Jelinek <jakub@redhat.com>
5216 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
5218 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
5220 * c-parser.c (struct c_token): Move location field up.
5221 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
5222 (struct c_declspecs): Convert typespec_word, storage_class, and
5223 default_int_p into bitfields.
5224 (struct c_declarator): Move loc field up.
5226 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
5228 * cfgloop.h (struct loop): Move can_be_parallel field up.
5229 * ipa-prop.h (struct ip_node_params): Move bitfields up.
5230 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
5232 (struct iv_cand): Convert pos field into a bitfield.
5233 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
5235 (struct _stmt_vec_info): Shuffle fields for better packing.
5237 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
5239 * varasm.c (IN_NAMED_SECTION): Remove guard.
5240 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
5241 (IN_NAMED_SECTION_P): ...this.
5242 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
5243 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5245 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
5247 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
5248 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
5249 of shadowing it. Fix comments.
5251 2010-04-26 Jan Hubicka <jh@suse.cz>
5253 * cgraph.c (cgraph_create_node): Set node frequency to normal.
5254 (cgraph_clone_node): Copy function frequency.
5255 * cgraph.h (node_frequency): New enum
5256 (struct cgraph_node): Add.
5257 * final.c (rest_of_clean_state): Update.
5258 * lto-cgraph.c (lto_output_node): Output node frequency.
5259 (input_overwrite_node): Input node frequency.
5260 * tre-ssa-loop-ivopts (computation_cost): Update.
5261 * lto-streamer-out.c (output_function): Do not output function
5263 * predict.c (maybe_hot_frequency_p): Update and handle functions
5265 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
5267 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
5268 (compute_function_frequency): Set noreturn functions to be executed
5270 (choose_function_section): Update.
5271 * lto-streamer-in.c (input_function): Do not input function frequency.
5272 * function.c (allocate_struct_function): Do not initialize function
5274 * function.h (function_frequency): Remove.
5275 (struct function): Remove function frequency.
5276 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
5277 (try_update): Update.
5278 * tree-inline.c (initialize_cfun): Do not update function frequency.
5279 * passes.c (pass_init_dump_file): Update.
5280 * i386.c (ix86_compute_frame_layout): Update.
5281 (ix86_pad_returns): Update.
5283 2010-04-26 Jie Zhang <jie@codesourcery.com>
5285 PR tree-optimization/43833
5286 * tree-vrp.c (range_int_cst_p): New.
5287 (range_int_cst_singleton_p): New.
5288 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
5289 when both operands are constants. Use range_int_cst_p in
5292 2010-04-26 Jan Hubicka <jh@suse.cz>
5294 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
5296 2010-04-26 Richard Guenther <rguenther@suse.de>
5299 * gimple.c (gimple_decl_printable_name): Deal gracefully
5300 with a NULL DECL_NAME.
5302 2010-04-26 Richard Guenther <rguenther@suse.de>
5305 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
5306 if emitting debug information and it is either a function
5307 or a namespace decl.
5309 2010-04-26 Ira Rosen <irar@il.ibm.com>
5311 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
5312 determine if the statement is vectorizable, and a macro to access it.
5313 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5314 Skip statements that can't be vectorized. If the analysis fails,
5315 mark the statement as unvectorizable if vectorizing basic block.
5316 (vect_compute_data_refs_alignment): Likewise.
5317 (vect_verify_datarefs_alignment): Skip statements marked as
5318 unvectorizable. Add print.
5319 (vect_analyze_group_access): Skip statements that can't be
5320 vectorized. If the analysis fails, mark the statement as
5321 unvectorizable if vectorizing basic block.
5322 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
5323 * tree-vect-stmts.c (vectorizable_store): Fix the number of
5324 generated stmts for SLP.
5325 (new_stmt_vec_info): Initialize the new field.
5326 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
5327 statements marked as unvectorizable.
5329 2010-04-25 Joseph Myers <joseph@codesourcery.com>
5331 * c-common.c (flag_isoc1x): New.
5332 (flag_isoc99): Update comment.
5333 * c-common.h (flag_isoc1x): New.
5334 (flag_isoc99): Update comment.
5335 * c-cppbuiltin.c (builtin_define_float_constants): Also define
5336 __<type>_DECIMAL_DIG__.
5337 * c-opts.c (set_std_c1x): New.
5338 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
5339 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
5340 * c.opt (-std=c1x, -std=gnu1x): New options.
5341 * doc/cpp.texi: Mention -std=c1x.
5342 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
5343 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
5344 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
5345 * doc/standards.texi: Mention C1X.
5346 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
5347 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
5348 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5351 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
5353 * config/i386/gmon-sol2.c (_mcleanup): Change format string
5354 placeholder from 0x%x to %#x.
5355 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
5356 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
5357 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
5358 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
5359 * config/i386/i386.c (ix86_target_string): Ditto.
5360 (output_pic_addr_const): Ditto.
5361 (print_operand): Ditto.
5363 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
5365 * combine.c (find_split_point): Add third argument. Use it
5366 to find nested multiply-accumulate instructions. Adjust calls.
5367 (try_combine): Adjust call to find_split_point.
5369 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5371 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
5373 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
5375 PR tree-optimization/41442
5376 * fold-const.c (merge_truthop_with_opposite_arm): New function.
5377 (fold_binary_loc): Call it.
5379 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5381 * toplev.c (general_init): Set default for fdiagnostics-show-option.
5382 * opts.c (common_handle_option): Allow disabling it.
5383 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
5385 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
5387 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
5388 between modes if both types are integral.
5390 2010-04-23 Richard Guenther <rguenther@suse.de>
5392 PR tree-optimization/43572
5393 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
5395 2010-04-23 Richard Guenther <rguenther@suse.de>
5398 * tree-inline.c (tree_can_inline_p): Also check compatibility
5401 2010-04-23 Martin Jambor <mjambor@suse.cz>
5403 PR tree-optimization/43846
5404 * tree-sra.c (struct access): New flag grp_assignment_read.
5405 (build_accesses_from_assign): Set grp_assignment_read.
5406 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
5407 (enum mark_read_status): New type.
5408 (analyze_access_subtree): Propagate grp_assignment_read, create
5409 accesses also if both direct_read and root->grp_assignment_read.
5411 2010-04-23 Martin Jambor <mjambor@suse.cz>
5414 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
5415 function does not have type attributes.
5417 2010-04-23 Richard Guenther <rguenther@suse.de>
5420 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
5423 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5425 * sese.h (create_if_region_on_edge): Remove.
5427 * sese.c (create_if_region_on_edge): Make static.
5429 * tree-inline.c: Do not include ggc.h.
5431 * expr.c: Do not include ggc.h.
5433 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
5436 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
5439 * config/sh/sh.c (find_barrier): Don't emit a constant pool
5440 in the middle of insns for casesi_worker_2.
5442 2010-04-22 David Edelsohn <edelsohn@gnu.org>
5444 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
5446 2010-04-22 Ira Rosen <irar@il.ibm.com>
5448 PR tree-optimization/43842
5449 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
5450 loop unrolling in update of exit phis. Fix comment.
5451 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
5452 least two reduction statements in the loop before starting SLP
5455 2010-04-22 Nick Clifton <nickc@redhat.com>
5457 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
5459 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
5461 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
5464 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5466 * tree-parloops.c (loop_parallel_p): New argument
5467 parloop_obstack. Pass it down.
5468 (parallelize_loops): New variable parloop_obstack. Initialize it,
5469 pass it down, free it.
5471 * tree-loop-linear.c (linear_transform_loops): Pass down
5474 * tree-data-ref.h (lambda_compute_access_matrices): New argument
5475 of type struct obstack *.
5477 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
5478 scratch_obstack. Initialize it, pass down, free it.
5480 * lambda.h (lambda_loop_new): Remove.
5481 (lambda_matrix_new, lambda_matrix_inverse)
5482 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
5483 argument of type struct obstack *.
5485 * lambda-trans.c (lambda_trans_matrix_new): New argument
5486 lambda_obstack. Pass it down, use obstack allocation for ret.
5487 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
5490 * lambda-mat.c (lambda_matrix_get_column)
5491 (lambda_matrix_project_to_null): Remove.
5492 (lambda_matrix_new): New argument lambda_obstack. Use obstack
5494 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
5497 * lambda-code.c (lambda_loop_new): New function.
5498 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
5499 (lambda_compute_auxillary_space, lambda_compute_target_space)
5500 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
5501 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
5502 (build_access_matrix): New argument lambda_obstack. Use obstack
5504 (lambda_compute_step_signs, lambda_compute_access_matrices): New
5505 argument lambda_obstack. Pass it down.
5507 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5509 * optabs.h (expand_widening_mult): Declare.
5511 2010-04-22 Richard Guenther <rguenther@suse.de>
5513 PR tree-optimization/43845
5514 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
5515 lookup the CALL_EXPR function and arguments.
5517 2010-04-22 Nick Clifton <nickc@redhat.com>
5519 * config/stormy16/stormy16.c
5520 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
5521 * config/stormy16/stormy16.h: Tidy up formatting.
5522 (DONT_USE_BUILTIN_SETJMP): Remove definition.
5523 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
5524 (ineqbranchsi): Delete pattern.
5525 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
5526 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
5527 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
5528 stormy16-lib2-ucmpsi2.c.
5530 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5532 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
5533 df_simulate_find_noclobber_defs as appropriate. Keep track of an
5534 extra set merge_set_noclobber, and use it to relax the final test
5536 * df.h (df_simulate_find_noclobber_defs): Declare.
5537 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
5539 (df_simulate_find_noclobber_defs): New function.
5541 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
5543 * config/i386/i386.md: Use {} around multi-line preparation statements.
5545 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5547 * c-tree.h (push_init_level, pop_init_level, set_init_index)
5548 (process_init_element): New argument of type struct obstack *.
5550 * c-typeck.c (push_init_level, pop_init_level, set_designator)
5551 (set_init_index, set_init_label, set_nonincremental_init)
5552 (set_nonincremental_init_from_string, find_init_member)
5553 (output_init_element, output_pending_init_elements)
5554 (process_init_element): New argument braced_init_obstack. Pass it
5556 (push_range_stack, add_pending_init): New argument
5557 braced_init_obstack. Use obstack allocation.
5559 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
5560 braced_init_obstack. Pass it down.
5561 (c_parser_braced_init): New variables ret, braced_init_obstack.
5562 Initialize obstack, pass it down and finally free it.
5564 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5567 * tree-pass.h (pass_optimize_widening_mul): Declare.
5568 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
5569 gate_optimize_widening_mul): New static functions.
5570 (pass_optimize_widening_mul): New.
5571 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
5572 <case MULT_EXPR>: Remove support for widening multiplies.
5573 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
5574 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
5575 simplify_gen_unary rather than directly building extensions.
5576 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
5578 * expmed.c (expand_widening_mult): New function.
5579 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
5581 2010-04-21 Jan Hubicka <jh@suse.cz>
5583 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
5584 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
5585 * lto-wpa-fixup.c: Remove.
5586 * Makefile.in (lto-wpa-fixup.o): Remove.
5587 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
5588 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
5589 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
5591 2010-04-21 Jan Hubicka <jh@suse.cz>
5593 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
5594 add write_optimization_summary, read_optimization_summary.
5595 (ipa_write_summaries_of_cgraph_node_set): Remove.
5596 (ipa_write_optimization_summaries): Declare.
5597 (ipa_read_optimization_summaries): Declare.
5598 * ipa-cp.c (pass_ipa_cp): Update.
5599 * ipa-reference.c (pass_ipa_reference): Update.
5600 * ipa-pure-const.c (pass_ipa_pure_const): Update.
5601 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
5603 * ipa-inline.c (pass_ipa_inline): Update.
5604 * ipa.c (pass_ipa_whole_program): Update.
5605 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
5606 * passes.c (ipa_write_summaries_1): Do not test wpa.
5607 (ipa_write_optimization_summaries_1): New.
5608 (ipa_write_optimization_summaries): New.
5609 (ipa_read_summaries): Do not test ltrans.
5610 (ipa_read_optimization_summaries_1): New.
5611 (ipa_read_optimization_summaries): New.
5613 2010-04-21 Jan Hubicka <jh@suse.cz>
5615 * lto-cgraph.c (lto_output_node): Do not output comdat groups
5617 (output_cgraph): Do not arrange comdat groups for boundary nodes.
5619 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5622 * dwarf2out.c (add_name_and_src_coords_attributes): Add
5623 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
5625 2010-04-21 Jan Hubicka <jh@suse.cz>
5627 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
5629 2010-04-21 Jan Hubicka <jh@suse.cz>
5631 * varpool.c (decide_is_variable_needed): Variable is always needed
5634 2010-04-21 Jan Hubicka <jh@suse.cz>
5636 * opts.c (decode_options): Enable pure-const pass for whopr.
5638 2010-04-21 Jan Hubicka <jh@suse.cz>
5640 * cgraph.c (dump_cgraph_node): Dump also assembler name.
5641 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
5643 (cgraph_decide_inlining): Do not expect callee to be removed in all
5646 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
5648 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
5650 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5652 * config/i386/i386.md (x86_shrd): Add athlon_decode and
5653 amdfam10_decode attributes.
5655 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5658 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
5659 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
5660 (lower_copyprivate_clauses): Use private var in outer
5661 context instead of original var. Make sure the types
5662 are correct for VLAs.
5664 2010-04-21 Richard Guenther <rguenther@suse.de>
5666 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
5667 to non-pointer objects.
5669 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5671 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
5672 last chain entry if it starts with the still current label.
5673 (add_location_or_const_value_attribute): Check that
5674 loc_list->first->next is NULL instead of comparing ->first with ->last.
5675 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
5676 to add_var_loc_to_decl.
5678 * dwarf2out.c (output_call_frame_info): For dw_cie_version
5679 >= 4 add also address size and segment size fields into CIE header.
5681 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
5682 long as address size is the same as sizeof (void *) and
5684 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
5685 address size or segment size is unexpected, return DW_EH_PE_omit.
5686 (classify_object_over_fdes): If get_cie_encoding returned
5687 DW_EH_PE_omit, return -1.
5688 (init_object): If classify_object_over_fdes returned -1,
5689 pretend there were no FDEs at all.
5691 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5693 * config/i386/i386.md (bswap<mode>2): Macroize expander from
5694 bswap{si,di}2 using SWI48 mode iterator.
5695 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
5696 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
5697 set modrm attribute of bswap insn to 0 and remove length attribute.
5698 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
5699 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
5700 set mode attribute to <MODE> and remove length attribute.
5702 2010-04-20 James E. Wilson <wilson@codesourcery.com>
5704 PR rtl-optimization/43520
5705 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
5706 zero available registers.
5708 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5710 * builtins.c (fold_builtin_cproj): Fold more cases.
5712 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5714 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
5715 (fold_builtin_1): Fold builtin cproj.
5716 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
5717 Use ATTR_CONST_NOTHROW_LIST.
5719 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
5721 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
5722 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
5723 ffsi2_no_cmove for !TARGET_CMOVE.
5724 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
5725 (ffssi2): Remove expander.
5726 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
5728 (ctz<mode>2): Ditto from ctz{si,di}2.
5729 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
5731 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
5734 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5736 * dwarf2out.c (AT_linkage_name): Define.
5737 (clone_as_declaration): Handle DW_AT_linkage_name.
5738 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
5739 of DW_AT_MIPS_linkage_name.
5740 (move_linkage_attr): Likewise.
5741 (dwarf2out_finish): Likewise.
5743 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
5746 * fold-const.c (fold_comparison): New folding rule.
5748 2010-04-20 Anatoly Sokolov <aesok@post.ru>
5750 * double-int.h (double_int_setbit): Declare.
5751 * double-int.c (double_int_setbit): New function.
5752 * rtl.h (immed_double_int_const): Declare.
5753 * emit-rtl.c (immed_double_int_const): New function.
5754 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
5755 and immed_double_int_const functions.
5756 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
5757 expand_copysign_bit): (Ditto.).
5758 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
5759 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
5760 * dojump.c (prefer_and_bit_test): (Ditto.).
5761 * expr.c (convert_modes, reduce_to_bit_field_precision,
5762 const_vector_from_tree): (Ditto.).
5763 * expmed.c (mask_rtx, lshift_value): (Ditto.).
5765 2010-04-20 Jan Hubicka <jh@suse.cz>
5767 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
5768 (dump_cgraph_node): Dump new flags.
5769 * cgraph.h (struct cgraph_node): Add flags
5770 reachable_from_other_partition and in_other_partition.
5771 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
5772 other partition can not be removed.
5773 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
5774 the other partition must be output; silence sanity checking on
5775 leaking functions bodies from other paritition.
5776 * lto-cgraph.c (reachable_from_other_partition_p): New function.
5777 (lto_output_node): Output new flags; do not sanity check that inline
5778 clones are output; drop lto_forced_extern_inline_p code; do not mock
5779 visibility flags at partition boundaries.
5780 (add_node_to): New function.
5781 (output_cgraph): Use it to sort functions so masters appear before
5783 (input_overwrite_node): Input new flags.
5784 * passes.c (ipa_write_summaries): Do not call
5785 lto_new_extern_inline_states.
5786 * lto-section-out.c (forced_extern_inline,
5787 lto_new_extern_inline_states lto_delete_extern_inline_states,
5788 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
5789 * lto-streamer.h (lto_new_extern_inline_states,
5790 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
5791 lto_forced_extern_inline_p): Kill.
5793 2010-04-20 Richard Guenther <rguenther@suse.de>
5795 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
5796 from vars that can have pointers.
5797 (process_constraint): Dump useless constraints.
5799 2010-04-20 Richard Guenther <rguenther@suse.de>
5801 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
5802 (dump_sa_points_to_info): Remove asserts.
5803 (init_base_vars): nothing_id isn't an escape point nor does it
5806 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5808 * tree.h (TYPE_REF_IS_RVALUE): Define.
5809 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
5810 should_move_die_to_comdat, prune_unused_types_walk): Handle
5811 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
5812 (modified_type_die, gen_reference_type_die): Emit
5813 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
5814 if TYPE_REF_IS_RVALUE and -gdwarf-4.
5816 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5819 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
5820 calls for -fpic -m31 if they have been sibcall optimized.
5822 2010-04-19 James E. Wilson <wilson@codesourcery.com>
5824 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
5825 ar.lc fixed and call-used.
5827 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
5829 2010-04-19 Jan Hubicka <jh@suse.cz>
5831 * opts.c (decode_options): Disable whpr incompatible passes.
5832 * lto/lto.c (lto_1_to_1_map): Skip clones.
5833 (read_cgraph_and_symbols): Do not mark everything as needed.
5834 (do_whole_program_analysis): Do map only after optimizing;
5835 set proper cgraph_state; use passmanager.
5837 2010-04-19 DJ Delorie <dj@redhat.com>
5839 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
5840 POINTER_PLUS_EXPR and fix them.
5842 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
5844 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
5845 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
5846 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
5847 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
5848 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
5849 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
5850 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
5851 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
5852 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
5853 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
5854 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
5856 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
5858 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
5859 (check_cond_move_block): Likewise.
5860 (cond_move_process_if_block): Likewise.
5861 (noce_find_if_block): Improve formatting.
5862 (find_if_header): Pass 0 to memset and tweak conditions.
5863 (cond_exec_find_if_block): Fix long lines and tweak conditions.
5865 2010-04-19 Jakub Jelinek <jakub@redhat.com>
5867 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
5871 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
5872 with non-local decl doesn't need chain.
5874 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
5876 * ira-color.c (allocno_reload_assign): Avoid accumulating
5877 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
5879 2010-04-19 Martin Jambor <mjambor@suse.cz>
5881 * gimple.h (create_tmp_reg): Declare.
5882 * gimplify.c (create_tmp_reg): New function.
5883 (gimplify_return_expr): Use create_tmp_reg.
5884 (gimplify_omp_atomic): Likewise.
5885 (gimple_regimplify_operands): Likewise.
5886 * tree-dfa.c (make_rename_temp): Likewise.
5887 * tree-predcom.c (predcom_tmp_var): Likewise.
5888 (reassociate_to_the_same_stmt): Likewise.
5889 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
5890 (get_replaced_param_substitute): Likewise.
5891 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5892 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
5893 * tree-ssa-pre.c (get_representative_for): Likewise.
5894 (create_expression_by_pieces): Likewise.
5895 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
5896 (create_tailcall_accumulator): Likewise.
5898 2010-04-19 Martin Jambor <mjambor@suse.cz>
5900 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
5902 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
5904 2010-04-19 Richard Guenther <rguenther@suse.de>
5906 PR tree-optimization/43796
5907 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
5908 from SCEV in the lattice.
5909 (vrp_visit_phi_node): Dump change.
5911 2010-04-19 Richard Guenther <rguenther@suse.de>
5913 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
5914 * configure: Re-generated.
5916 2010-04-19 Richard Guenther <rguenther@suse.de>
5918 PR tree-optimization/43783
5919 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
5920 constant ARRAY_REF operands two and three if possible.
5922 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
5925 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
5927 2010-04-19 Jie Zhang <jie@codesourcery.com>
5930 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
5932 2010-04-19 Ira Rosen <irar@il.ibm.com>
5934 PR tree-optimization/37027
5935 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
5936 and macro to access it.
5937 (vectorizable_reduction): Add argument.
5938 (vect_get_slp_defs): Likewise.
5939 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
5940 statements for possible use in SLP.
5941 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
5942 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
5943 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
5945 (vectorizable_reduction): Likewise.
5946 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
5948 (vectorizable_type_demotion, vectorizable_type_promotion,
5949 vectorizable_store): Likewise.
5950 (vect_analyze_stmt): Update call to vectorizable_reduction.
5951 (vect_transform_stmt): Likewise.
5952 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
5953 (vect_build_slp_tree): Fix indentation. Check that there are no loads
5954 from different interleaving chains in same node.
5955 (vect_slp_rearrange_stmts): New function.
5956 (vect_supported_load_permutation_p): Allow load permutations for
5957 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
5958 inside SLP nodes if necessary.
5959 (vect_analyze_slp_instance): Handle reductions.
5960 (vect_analyze_slp): Try to build SLP instances originating from groups
5962 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
5963 (vect_get_constant_vectors): Create initial vectors for reductions
5964 according to reduction code. Add new argument.
5965 (vect_get_slp_defs): Add new argument, pass it to
5966 vect_get_constant_vectors.
5967 (vect_schedule_slp_instance): Remove SLP tree root statements.
5969 2010-04-19 Jakub Jelinek <jakub@redhat.com>
5971 * tree.h (ENUM_IS_SCOPED): Define.
5972 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
5973 for ENUM_IS_SCOPED enums.
5975 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
5977 * fold-const.c (fold_comparison): Use ssizetype.
5978 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5979 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
5980 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
5981 * tree-object-size.c (compute_object_sizes): Use size_type_node.
5983 * tree.h (initialize_sizetypes): Remove parameter.
5984 (build_common_tree_nodes): Remove second parameter.
5985 * stor-layout.c (initialize_sizetypes): Remove parameter.
5986 Always create an unsigned type.
5987 (set_sizetype): Assert that the passed type is unsigned and simplify.
5988 * tree.c (build_common_tree_nodes): Remove second parameter.
5989 Adjust call to initialize_sizetypes.
5990 * c-decl.c (c_init_decl_processing): Remove second argument in call to
5991 build_common_tree_nodes.
5993 2010-04-18 Matthias Klose <doko@ubuntu.com>
5995 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
5997 2010-04-18 Ira Rosen <irar@il.ibm.com>
5999 PR tree-optimization/43771
6000 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
6001 load permutation doesn't have gaps.
6003 2010-04-18 Jan Hubicka <jh@suse.cz>
6005 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
6006 (sse_prologue_save_insn expander): Use new pattern.
6007 (sse_prologue_save_insn1): New pattern and splitter.
6008 (sse_prologue_save_insn): Update to deal also with 64bit aligned
6010 * i386.c (setup_incoming_varargs_64): Do not compute jump
6012 (ix86_gimplify_va_arg): Update alignment needed.
6013 (ix86_local_alignment): Do not align all local arrays to 128bit.
6015 2010-04-17 Jan Hubicka <jh@suse.cz>
6017 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
6019 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
6021 * arm.md (negdi2): Remove redundant code to force values into a
6024 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
6026 * arm/bpabi.S: Add EABI alignment attributes to objects.
6027 * arm/bpabi-v6m.S: Likewise.
6028 * arm/crti.asm: Likewise.
6029 * arm/crtn.asm: Likewise.
6030 * arm/lib1funcs.asm: Likewise.
6031 * arm/libunwind.S: Likewise.
6033 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
6035 * arm-protos.h (tune_params): New structure.
6036 * arm.c (current_tune): New variable.
6037 (arm_constant_limit): Delete.
6038 (struct processors): Add pointer to the tune parameters.
6039 (arm_slowmul_tune): New tuning option.
6040 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
6041 (all_cores): Adjust to pick up the tuning model.
6042 (arm_constant_limit): New function.
6043 (arm_override_options): Select the appropriate tuning model. Delete
6044 initialization of arm_const_limit.
6045 (arm_split_constant): Use the new constant-limit model.
6046 (arm_rtx_costs): Pick up the current tuning model.
6047 * arm.md (is_strongarm, is_xscale): Delete.
6048 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
6049 for Xscale variant architectures.
6050 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
6052 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6054 * config/arm/arm.c (arm_gen_constant): Remove unused variable
6056 (arm_rtx_costs_1): Remove unused variable extra_cost.
6057 (arm_unwind_emit_set): Use variable offset.
6058 (thumb1_output_casesi): Remove unused variable flags.
6060 2010-04-16 Jeff Law <law@redhat.com>
6062 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
6063 needing assignment rather than doing a two-phase assignment. Remove
6064 unused variable 'm'.
6066 2010-04-16 Jakub Jelinek <jakub@redhat.com>
6069 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
6071 2010-04-16 Doug Kwan <dougkwan@google.com>
6073 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
6074 (next_operand_entry_id): New static variable.
6075 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
6076 (add_to_ops_vec): Assigned unique ID to operand entry.
6077 (struct oecount_s): New field ID.
6078 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
6079 (undistribute_ops_list): Assign unique IDs to oecounts.
6080 (init_reassoc): reset next_operand_entry_id.
6082 2010-04-16 Doug Kwan <dougkwan@google.com>
6084 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
6085 missing left parenthesis.
6087 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
6089 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
6090 *btdi_rex64 using SWI48 mode iterator.
6091 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
6092 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
6093 *jcc_btdi_mask_rex64.
6095 2010-04-16 Anatoly Sokolov <aesok@post.ru>
6097 * double-int.h (tree_to_double_int): Convert to macro.
6098 * double-int.c (tree_to_double_int): Remove.
6100 2010-04-16 Jakub Jelinek <jakub@redhat.com>
6103 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
6104 with want_address 2 and in case a single element list might be
6105 possible, call it again with want_address 0.
6107 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
6109 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
6110 case 'W' print operands for HI mode.
6111 * config/h8300/h8300.h (Y0, Y2) : New constraints.
6112 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
6113 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
6114 * config/h8300/predicate.md (bit_register_indirect_operand): New.
6116 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
6118 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
6119 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
6120 #xx:3 and #xx:4 mode.
6122 * config/h8300/h8300.md (inverted load with HImode dest): Add
6123 support for H8300SX.
6125 * config/h8300/predicate.md (bit_operand): Allow immediate values that
6126 satisfy 'U' constraint.
6128 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6130 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
6131 * configure: Regenerate.
6132 * config.in: Regenerate.
6133 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
6136 2010-04-16 Richard Guenther <rguenther@suse.de>
6138 * tree.h (struct tree_decl_minimal): Move pt_uid ...
6139 (struct tree_decl_common): ... here.
6140 (DECL_PT_UID): Adjust.
6141 (SET_DECL_PT_UID): Likewise.
6142 (DECL_PT_UID_SET_P): Likewise.
6144 2010-04-16 Richard Guenther <rguenther@suse.de>
6146 PR tree-optimization/43572
6147 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
6148 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
6149 * tree-flow.h (is_call_clobbered): Remove.
6150 * tree-flow-inline.h (is_call_clobbered): Likewise.
6151 * tree-dfa.c (dump_variable): Do not dump call clobber state.
6152 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
6153 (execute_return_slot_opt): Adjust.
6154 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
6155 check for call clobbered vars here.
6156 (find_tail_calls): Move tailcall verification to the
6159 2010-04-16 Diego Novillo <dnovillo@google.com>
6161 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
6163 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
6166 * config/arm/arm.md (cbranchqi4): New pattern.
6167 * config/arm/predicates.md (const0_operand,
6168 cbranchqi4_comparison_operator): New predicates.
6170 2010-04-16 Richard Guenther <rguenther@suse.de>
6172 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
6173 (dump_gimple_stmt): Likewise.
6175 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
6177 * recog.h (struct recog_data): New field is_operator.
6178 (struct insn_operand_data): New field is_operator.
6179 * recog.c (extract_insn): Set recog_data.is_operator.
6180 * genoutput.c (output_operand_data): Emit code to set the
6182 * reload.c (find_reloads): Use it rather than testing for an
6183 empty constraint string.
6186 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
6187 If the previous insn is a cbranchsi4_insn with the same arguments,
6188 omit the compare instruction.
6190 * config/arm/arm.md (addsi3_cbranch): If destination is a high
6191 register, inputs must be low registers and we need a low register
6192 scratch. Handle alternative 2 like alternative 3.
6194 2010-04-16 Jakub Jelinek <jakub@redhat.com>
6196 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
6197 don't call get_addr on both. If one expression is a VALUE and
6198 the other a REG, check VALUE's locs if the REG isn't among them.
6200 2010-04-16 Christian Bruel <christian.bruel@st.com>
6202 * config/sh/sh.h (sh_frame_pointer_required): New function.
6203 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
6204 (flag_omit_frame_pointer) Set.
6205 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
6206 (rounded_frame_size): Adjust size with outgoing_args_size.
6207 (sh_set_return_address): Must return from stack pointer.
6208 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
6209 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
6210 (ACCUMULATE_OUTGOING_ARGS): Define.
6211 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
6212 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
6214 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
6217 * config/sh/sh.c (sh_legitimize_reload_address): Use
6218 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
6219 Remove a unneeded check for offset_base.
6221 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
6223 * configure: Regenerated.
6225 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6227 * config/s390/s390.c (s390_call_save_register_used): Switch back
6228 to HARD_REGNO_NREGS.
6230 2010-04-15 Richard Guenther <rguenther@suse.de>
6232 * alias.c (alias_set_subset_of): Handle alias-set zero
6235 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
6236 Julian Brown <julian@codesourcery.com>
6238 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
6239 alternatives according to use of high and low regs.
6240 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
6241 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
6242 optimizing for size on Thumb-2.
6244 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
6246 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
6248 2010-04-15 Richard Guenther <rguenther@suse.de>
6250 * tree-ssa-structalias.c (struct variable_info): Add
6252 (new_var_info): Initialize it.
6253 (dump_constraints): Support printing last added constraints.
6254 (debug_constraints): Adjust.
6255 (dump_constraint_graph): Likewise.
6256 (make_heapvar_for): Check for NULL cfun.
6257 (get_function_part_constraint): New function.
6258 (get_fi_for_callee): Likewise.
6259 (find_func_aliases): Properly implement IPA PTA constraints.
6260 (process_ipa_clobber): New function.
6261 (find_func_clobbers): Likewise.
6262 (insert_into_field_list_sorted): Remove.
6263 (create_function_info_for): Properly allocate vars for IPA mode.
6264 Do not use insert_into_field_list_sorted.
6265 (create_variable_info_for): Properly generate constraints for
6266 global vars in IPA mode.
6267 (dump_solution_for_var): Always dump the solution.
6268 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
6269 (find_what_var_points_to): Adjust.
6270 (pt_solution_set): Change.
6271 (pt_solution_ior_into): New function.
6272 (pt_solution_empty_p): Export.
6273 (pt_solution_includes_global): Adjust.
6274 (pt_solution_includes_1): Likewise.
6275 (pt_solutions_intersect_1): Likewise.
6276 (dump_sa_points_to_info): Check some invariants.
6277 (solve_constraints): Move constraint dumping ...
6278 (compute_points_to_sets): ... here.
6279 (ipa_pta_execute): ... and here.
6280 (compute_may_aliases): Do not re-compute points-to info
6281 locally if IPA info is available.
6282 (ipa_escaped_pt): New global var.
6283 (ipa_pta_execute): Properly implement IPA PTA.
6284 * tree-into-ssa.c (dump_decl_set): Support dumping
6285 decls not in referenced-vars.
6286 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
6287 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
6288 (dump_points_to_solution): Likewise.
6289 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
6290 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
6291 (remap_gimple_stmt): Reset call clobber/use information if necessary.
6292 (copy_decl_to_var): Copy DECL_PT_UID.
6293 (copy_result_decl_to_var): Likewise.
6294 * tree.c (make_node_stat): Initialize DECL_PT_UID.
6295 (copy_node_stat): Copy it.
6296 * tree.h (DECL_PT_UID): New macro.
6297 (SET_DECL_PT_UID): Likewise.
6298 (DECL_PT_UID_SET_P): Likewise.
6299 (struct tree_decl_minimal): Add pt_uid member.
6300 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
6301 (pt_solution_empty_p): Declare.
6302 (pt_solution_set): Adjust.
6303 (ipa_escaped_pt): Declare.
6304 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
6305 * gimple-pretty-print.c (pp_points_to_solution): New function.
6306 (dump_gimple_call): Dump call clobber/use information.
6307 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
6308 * tree-pass.h (TDF_ALIAS): New dump option.
6309 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
6310 * doc/invoke.texi (-fipa-pta): Update documentation.
6312 2010-04-15 Richard Guenther <rguenther@suse.de>
6314 * Makefile.in (OBJS-common): Add gimple-fold.o.
6315 (gimple-fold.o): New rule.
6316 * tree.h (maybe_fold_offset_to_reference,
6317 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
6319 * gimple.h: ... here.
6320 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
6321 may_propagate_address_into_dereference): Move prototypes ...
6322 * gimple.h: ... here.
6323 * tree-ssa-ccp.c (get_symbol_constant_value,
6324 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
6325 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
6326 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
6327 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
6328 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
6329 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
6330 gimplify_and_update_call_from_tree): Move ...
6331 * gimple-fold.c: ... here. New file.
6332 (ccp_fold_builtin): Rename to ...
6333 (gimple_fold_builtin): ... this.
6334 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
6336 2010-04-15 Richard Guenther <rguenther@suse.de>
6338 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
6339 fit_double_type, force_fit_type_double, add_double_with_sign,
6340 neg_double, mul_double_with_sign, lshift_double, rshift_double,
6341 lrotate_double, rrotate_double, div_and_round_double): Move ...
6342 * double-int.c: ... here.
6343 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
6344 add_double, neg_double, mul_double_with_sign, mul_double,
6345 lshift_double, rshift_double, lrotate_double, rrotate_double,
6346 div_and_round_double): Move prototypes ...
6347 * double-int.h: ... here.
6349 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
6352 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
6353 matching constraints to ensure inputs match the output.
6355 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
6358 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
6359 in an input-only operand.
6361 2010-04-15 Anatoly Sokolov <aesok@post.ru>
6363 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
6364 (double_int_not, double_int_lshift, double_int_rshift): Declare.
6365 (double_int_negative_p): Convert to static inline function.
6366 * double-int.c (double_int_lshift, double_int_lshift): New functions.
6367 (double_int_negative_p): Remove.
6368 * tree.h (lshift_double, rshift_double):
6369 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
6370 * fold-const.c (fold_convert_const_int_from_real,
6371 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
6372 (lshift_double): Change type of arith argument to bool.
6373 (rshift_double): Change type of arith argument to bool. Correct
6375 * expmed.c (mask_rtx, lshift_value): (Ditto.).
6377 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
6380 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
6381 at the start and end of the then/else blocks, and omit them from the
6383 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
6384 argument; all callers changed. Pass zero to old_insns_match_p instead.
6385 (flow_find_head_matching_sequence): New function.
6386 (old_insns_match_p): Check REG_EH_REGION notes for calls.
6387 * basic-block.h (flow_find_cross_jump,
6388 flow_find_head_matching_sequence): Declare functions.
6390 2010-04-14 Jason Merrill <jason@redhat.com>
6393 * c-common.c (attribute_takes_identifier_p): New fn.
6394 * c-common.h: Declare it.
6396 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6398 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
6400 (*udivmod<mode>4): Ditto.
6402 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6404 * config/i386/i386.md (maxmin_int): Rename code attribute from
6405 maxminiprefix and update all users.
6406 (maxmin_float): Ditto from maxminfprefix.
6407 (logic): Ditto from logicprefix.
6408 (absneg_mnemonic): Ditto from absnegprefix.
6409 * config/i386/mmx.md: Update all users of maxminiprefix,
6410 maxminfprefix and logicprefix for rename.
6411 * config/i386/sse.md: Ditto.
6412 * config/i386/sync.md (sync_<code><mode>): Update for
6415 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6418 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
6419 warnings converted to errors.
6421 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6423 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
6424 used insn_type variable.
6425 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
6426 to avoid set-but-not-used warning.
6428 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6430 * df-core.c (df_ref_debug): Change format string placeholder
6432 * dwarf2asm.c (dw2_asm_output_data_raw,
6433 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
6434 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
6435 * dwarf2out.c (output_cfi, output_cfi_directive,
6436 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
6437 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
6439 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
6440 * print-rtl.c (print_rtx): Ditto.
6442 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6445 * builtins.c (expand_builtin_pow_root): New function to expand pow
6446 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
6447 series of sqrt and cbrt calls under -ffast-math.
6448 (expand_builtin_pow): Call it.
6450 2010-04-14 Michael Matz <matz@suse.de>
6452 PR tree-optimization/42963
6453 * tree-cfg.c (touched_switch_bbs): New static variable.
6454 (group_case_labels_stmt): New function broken out from ...
6455 (group_case_labels): ... here, use the above.
6456 (start_recording_case_labels): Allocate touched_switch_bbs.
6457 (end_recording_case_labels): Deallocate it, call
6458 group_case_labels_stmt.
6459 (gimple_redirect_edge_and_branch): Remember index of affected BB.
6461 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6463 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
6466 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6468 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
6470 2010-04-13 Jan Hubicka <jh@suse.cz>
6472 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
6473 of optimized out static functions.
6474 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
6475 cost computation. Also sanity check for overflows.
6476 (update_caller_keys): Update cgraph_edge_badness call; properly
6477 update fibheap and sanity check that it is up to date.
6478 (add_new_edges_to_heap): Update cgraph_edge_badness.
6479 (cgraph_decide_inlining_of_small_function): Likewise;
6480 add sanity checking that badness in heap is up to date;
6481 improve dumping of reason; Update badness of calls to the
6482 offline copy of function currently inlined; dump badness
6483 of functions not inlined because of unit growth limits.
6485 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6488 * c-common.c (pointer_int_sum): Disregard overflow that occured only
6489 because of sign-extension change when converting to sizetype here...
6490 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
6492 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
6493 the folding to constants. Remove redundant final conversion.
6494 (fold_binary) <associate>: Do not associate if the re-association of
6495 constants alone overflows.
6496 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
6497 to the end of the list.
6498 (multiple_of_p) <COND_EXPR>: New case.
6500 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6502 * opt-functions.awk (opt_sanitized_name): New.
6504 * optc-gen.awk: Use it
6505 * opth-gen.awk: Use it.
6507 2010-04-13 Martin Jambor <mjambor@suse.cz>
6509 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
6510 (sra_modify_assign): Delete stmts loading dead data even if racc has no
6511 children. Call replace_uses_with_default_def_ssa_name to handle
6514 2010-04-13 Michael Matz <matz@suse.de>
6517 * builtins.c (expand_builtin_interclass_mathfn): Also create
6518 a register if the predicate doesn't match.
6520 2010-04-13 Diego Novillo <dnovillo@google.com>
6522 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
6523 * c-pch.c: Include timevar.h.
6524 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
6525 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
6526 * ggc-common.c: Include timevar.h.
6527 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
6528 * timevar.def (TV_PCH_SAVE): Define.
6529 (TV_PCH_CPP_SAVE): Define.
6530 (TV_PCH_PTR_REALLOC): Define.
6531 (TV_PCH_PTR_SORT): Define.
6532 (TV_PCH_RESTORE): Define.
6533 (TV_PCH_CPP_RESTORE): Define.
6535 2010-04-13 Michael Matz <matz@suse.de>
6537 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
6539 (can_reassociate_p): New function.
6540 (break_up_subtract_bb, reassociate_bb): Use it.
6542 2010-04-13 Richard Guenther <rguenther@suse.de>
6545 * builtins.c (c_readstr): Fix assert.
6547 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
6549 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
6550 when generating cltd insn.
6552 (*ashl<mode>3_1): Remove special handling for register operand 2.
6553 (*ashlsi3_1_zext): Ditto.
6554 (*ashlhi3_1): Ditto.
6555 (*ashlhi3_1_lea): Ditto.
6556 (*ashlqi3_1): Ditto.
6557 (*ashlqi3_1_lea): Ditto.
6558 (*<shiftrt_insn><mode>3_1): Ditto.
6559 (*<shiftrt_insn>si3_1_zext): Ditto.
6560 (*<shiftrt_insn>qi3_1_slp): Ditto.
6561 (*<rotate_insn><mode>3_1): Ditto.
6562 (*<rotate_insn>si3_1_zext): Ditto.
6563 (*<rotate_insn>qi3_1_slp): Ditto.
6565 2010-04-13 Richard Guenther <rguenther@suse.de>
6567 * tree-ssa-structalias.c (callused_id): Remove.
6568 (call_stmt_vars): New.
6569 (get_call_vi): Likewise.
6570 (lookup_call_use_vi): Likewise.
6571 (lookup_call_clobber_vi): Likewise.
6572 (get_call_use_vi): Likewise.
6573 (get_call_clobber_vi): Likewise.
6574 (make_transitive_closure_constraints): Likewise.
6575 (handle_const_call): Adjust to do per-call call-used handling.
6576 (handle_pure_call): Likewise.
6577 (find_what_var_points_to): Remove general callused handling.
6578 (init_base_vars): Likewise.
6579 (init_alias_vars): Initialize call_stmt_vars.
6580 (compute_points_to_sets): Process call-used and call-clobbered
6581 vars for call statements.
6582 (delete_points_to_sets): Free call_stmt_vars.
6584 2010-04-13 Richard Guenther <rguenther@suse.de>
6586 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6587 Only add RW dependence for dependence distance zero.
6588 Adjust maximal vectorization factor according to dependences.
6589 Move alignment handling ...
6590 (vect_find_same_alignment_drs): ... here. New function.
6591 (vect_analyze_data_ref_dependences): Adjust.
6592 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
6593 (vect_analyze_data_refs): Adjust minimal vectorization factor
6594 according to data references.
6595 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
6596 dependences before determining the vectorization factor.
6597 Analyze alignment after determining the vectorization factor.
6598 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
6599 dependences before alignment.
6600 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
6602 (vect_analyze_data_refs): Likewise.
6603 (MAX_VECTORIZATION_FACTOR): New define.
6605 2010-04-13 Duncan Sands <baldrick@free.fr>
6607 * except.h (lang_eh_type_covers): Remove.
6608 * except.c (lang_eh_type_covers): Likewise.
6610 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6611 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6613 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
6614 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
6615 UNITS_PER_LONG where it is ABI relevant.
6616 (s390_return_addr_rtx): Likewise.
6617 (s390_back_chain_rtx): Likewise.
6618 (s390_frame_area): Likewise.
6619 (s390_frame_info): Likewise.
6620 (s390_initial_elimination_offset): Likewise.
6621 (save_gprs): Likewise.
6622 (s390_emit_prologue): Likewise.
6623 (s390_emit_epilogue): Likewise.
6624 (s390_function_arg_advance): Likewise.
6625 (s390_function_arg): Likewise.
6626 (s390_va_start): Likewise.
6627 (s390_gimplify_va_arg): Likewise.
6628 (s390_function_profiler): Likewise.
6629 (s390_optimize_prologue): Likewise.
6630 (s390_rtx_costs): Likewise.
6631 (s390_secondary_reload): Likewise.
6632 (s390_promote_function_mode): Likewise.
6633 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
6634 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
6635 registers available.
6636 (s390_unwind_word_mode): New function.
6637 (s390_function_value): Split 64 bit values into register pair if
6638 used as return value.
6639 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
6640 function call parameters. Handle parallels.
6641 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
6642 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
6643 (DWARF_CIE_DATA_ALIGNMENT): New macro.
6644 (s390_expand_setmem): Remove unused variable src_addr.
6645 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
6646 deal with 64 bit registers.
6647 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
6648 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
6649 (UNITS_PER_LONG): New macro.
6650 * libjava/include/s390-signal.h: Define extended ucontext
6651 structure containing the upper halfs of the 64 bit registers.
6653 2010-04-13 Simon Baldwin <simonb@google.com>
6655 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
6657 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6659 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
6660 rvalue on the RHS if the LHS is of a non-renamable type.
6661 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
6663 2010-04-13 Matthias Klose <doko@ubuntu.com>
6665 * gcc.c (cc1_options): Handle -iplugindir before processing
6666 the cc1 spec. Only add -iplugindir once.
6667 (cpp_unique_options): Add -iplugindir option if -fplugin* options
6669 * common.opt (iplugindir): Remove `Separate' property, initialize.
6670 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
6672 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
6673 (distclean): Remove plugin dir.
6674 * doc/invoke.texi: Document -iplugindir.
6676 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
6678 * doc/plugins.texi (Loading Plugins): Document short
6679 -fplugin=foo option.
6680 (Plugin API): Mention default_plugin_dir_name function.
6682 * gcc.c (find_file_spec_function): Add new declaration.
6683 (static_spec_func): Use it for "find-file".
6684 (find_file_spec_function): Add new function.
6685 (cc1_options): Add -iplugindir option if -fplugin* options found.
6687 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
6689 * plugin.c (add_new_plugin): Updated comment, and handle short
6691 (default_plugin_dir_name): Added new function.
6693 * common.opt (iplugindir): New option to set the plugin directory.
6695 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
6697 * config/i386/i386.md (any_rotate): New code iterator.
6698 (rotate_insn): New code attribute.
6700 (SWIM124): New mode iterator.
6701 (<rotate_insn>ti3): New expander.
6702 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
6703 any_rotate code iterator.
6704 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
6705 using any_rotate code iterator and SWIM124 mode iterator.
6706 (ix86_rotlti3): New insn_and_split pattern.
6707 (ix86_rotrti3): Ditto.
6708 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
6709 ix86_rotl{di,ti}3 patterns.
6710 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
6711 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
6712 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
6713 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
6714 code iterator and SWI mode iterator.
6715 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
6716 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
6718 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
6719 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
6720 (bswap rotatert splitter): Add splitter.
6721 (bswap splitter): Macroize splitter using any_rotate code iterator.
6722 Add insn predicate to split only for TARGET_USE_XCHGB or when
6723 optimizing function for size.
6725 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6727 * config/pa/pa.c (emit_move_sequence): Remove use of
6728 deleted variable flag_argument_noalias.
6730 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6732 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
6734 Add to unsupported targets list.
6735 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
6736 sparc*-sun-solaris2.[567]* from target lists.
6737 * configure: Regenerate.
6738 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
6740 Remove Solaris 7 patch references.
6741 (Specific, sparc-sun-solaris2.7): Removed.
6742 (sparc-sun-solaris2*): Update Solaris 7 example.
6743 (sparc64-*-solaris2*): Likewise.
6745 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6747 * config.build (alpha*-dec-osf4*): Remove.
6748 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
6749 of obsolete configurations.
6750 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
6752 * config/alpha/t-osf4: Renamed to ...
6753 * config/alpha/t-osf5: ... this.
6754 * config/alpha/osf.h: Renamed to ...
6755 * config/alpha/osf5.h: ... this.
6756 Merged old osf5.h contents.
6758 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
6759 (EXTRA_SPECS): Removed.
6760 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
6761 reflect removal of Tru64 UNIX V4.0/V5.0 support.
6764 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6766 * doc/contrib.texi (Contributors, Rainer Orth): Update.
6768 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
6771 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
6772 __thiscall convention.
6774 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6776 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
6778 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
6780 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6782 * function.c (assign_parms_initialize_all): Add unused attribute
6785 2010-04-12 Richard Guenther <rguenther@suse.de>
6787 * gsstruct.def (GSS_CALL): New.
6788 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
6789 * gimple.h: Include tree-ssa-alias.h.
6790 (struct gimple_statement_call): New.
6791 (union gimple_statement_struct_d): Add gimple_call member.
6792 (gimple_call_reset_alias_info): Declare.
6793 (gimple_call_use_set): New function.
6794 (gimple_call_clobber_set): Likewise.
6795 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
6796 * gimple.c (gimple_call_reset_alias_info): New function.
6797 (gimple_build_call_1): Call it.
6798 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6799 * tree-inline.c (remap_gimple_stmt): Likewise.
6800 (expand_call_inline): Remove callused handling.
6801 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
6802 * tree-dfa.c (dump_variable): Likewise.
6803 * tree-parloops.c (parallelize_loops): Likewise.
6804 * tree-ssa.c (init_tree_ssa): Likewise.
6805 (delete_tree_ssa): Likewise.
6806 * tree-flow-inline.h (is_call_used): Remove.
6807 * tree-flow.h (struct gimple_df): Remove callused member.
6808 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
6809 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
6810 (ref_maybe_used_by_call_p_1): Simplify.
6811 (call_may_clobber_ref_p_1): Likewise.
6812 * tree-ssa-structalias.c (compute_points_to_sets): Set
6813 the call stmt used and clobbered sets.
6814 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
6815 (find_tail_calls): Verify the tail call.
6817 2010-04-12 Richard Guenther <rguenther@suse.de>
6819 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
6820 single-iteration always-inline inlining.
6821 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
6822 (cgraph_decide_inlining): Do not handle always-inline specially.
6823 (try_inline): Remove always-inline cycle detection special case.
6824 Do not recurse on always-inlines.
6825 (cgraph_early_inlining): Do not iterate if not optimizing.
6826 (cgraph_gate_early_inlining): remove.
6827 (pass_early_inline): Run unconditionally.
6828 (gate_cgraph_decide_inlining): New function.
6829 (pass_ipa_inline): Use it. Do not run the IPA inliner if
6830 not inlining or optimizing.
6831 (cgraph_decide_inlining_of_small_functions): Also consider
6832 always-inline functions.
6833 (cgraph_default_inline_p): Return true for nodes which should
6834 disregard inline limits.
6835 (estimate_function_body_sizes): Assume zero size and time for
6836 nodes which are marked as disregarding inline limits.
6837 (cgraph_decide_recursive_inlining): Do not perform recursive
6838 inlining on always-inline nodes.
6840 2010-04-12 Jakub Jelinek <jakub@redhat.com>
6843 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
6844 for exprs satisfying handled_component_p.
6846 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
6848 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
6849 non-constant aggregate elements.
6851 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
6852 is a real initialization.
6854 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
6857 * c-decl.c (start_function): Move forward check for nested function.
6859 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
6861 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
6862 * config/sh/sh.c: Include reload.h.
6863 (sh_legitimize_reload_address): New.
6864 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
6865 sh_legitimize_reload_address.
6867 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
6869 * config/sh/sh.md (*movqi_pop): New insn pattern.
6870 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
6872 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6874 * config/i386/i386.md (any_shiftrt): New code iterator.
6875 (shiftrt_insn): New code attribute.
6877 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
6878 using any_shiftrt code iterator.
6879 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
6880 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
6881 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
6882 pattern from corresponding peephole2 patterns.
6883 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
6884 using any_shiftrt code iterator.
6885 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
6886 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
6887 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
6888 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
6889 *{ashr,lshr}<mode>3_cmp_zext.
6890 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
6892 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6894 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
6896 (*lshr<mode>3_cconly): Ditto.
6898 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6900 * config/i386/i386.md (lshr<mode>3): Macroize expander from
6901 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6902 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
6903 pattern from *lshr{di,ti}3_1 and corresponding splitters using
6905 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6906 from corresponding peephole2 patterns.
6907 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
6908 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
6909 and *lshrdi3_1_rex64 using SWI mode iterator.
6910 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
6911 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
6912 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
6913 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
6914 and *lshrdi3_cmp_rex64 using SWI mode iterator.
6915 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
6916 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
6917 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
6918 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
6921 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
6923 * config/i386/i386.md (ashr<mode>3): Macroize expander from
6924 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6925 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
6926 pattern from *ashr{di,ti}3_1 and corresponding splitters using
6928 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6929 from corresponding peephole2 patterns.
6930 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
6931 (ashrsi3_cvt): Rename from ashrsi3_31.
6932 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
6933 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
6934 and x86_64_shift_adj_3 using SWI48 mode iterator.
6935 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
6936 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
6937 and *ashrdi3_1_rex64 using SWI mode iterator.
6938 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
6939 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
6940 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
6941 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
6942 and *ashrdi3_cmp_rex64 using SWI mode iterator.
6943 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
6944 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
6945 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
6946 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
6948 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
6949 * config/i386/i386.c (ix86_split_ashr): Update for renamed
6950 x86_shift<mode>_adj_3 expanders.
6952 2010-04-10 Wei Guozhi <carrot@google.com>
6955 * config/arm/arm.c (arm_pic_static_addr): New function.
6956 (legitimize_pic_address): Call arm_pic_static_addr when it detects
6958 (arm_output_addr_const_extra): Output expression for new pattern.
6959 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
6961 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
6963 * ira-costs.c (record_reg_classes): Ignore alternatives that are
6966 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
6967 * web.c: Include "insn-config.h" and "recog.h".
6968 (union_match_dups): New function.
6969 (web_main): Call it.
6970 (union_defs): Don't try to recognize match_dups.
6972 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
6973 if doing so would replace the entire pattern.
6975 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
6979 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
6980 and splitter pattern. Change splitter operand 1 predicate to
6983 2010-04-09 Martin Jambor <mjambor@suse.cz>
6985 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
6986 lattices are addresses of CONST_DECLs with the same initial value.
6987 (ipcp_print_all_lattices): Print values of CONST_DECLs.
6988 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
6990 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
6991 Bernd Schmidt <bernds@codesourcery.com>
6993 * loop-invariant.c (replace_uses): New static function.
6994 (move_invariant_reg): Use it to ensure we can replace the uses.
6996 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
6998 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
7000 (picochip_override_options): Enable section anchors only above -O1.
7001 (picochip_reorg): Fixed a couple of build warnings.
7003 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7005 * configure.ac (plugin -rdynamic test): Log result.
7006 * configure: Regenerate.
7007 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
7008 (RDYNAMIC_SPEC): Define.
7009 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
7011 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7013 * configure.ac: Determine Sun ld version numbers.
7014 (comdat_group): Restrict GNU ld version checks to gld.
7015 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
7016 (enable_comdat): Support --enable-comdat.
7017 * configure: Regenerate.
7018 * doc/install.texi (Configuration): Document --enable-comdat.
7020 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7022 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
7023 * config/sol2-gld.h: ... here.
7024 * config.gcc (sparc*-*-solaris2*): Reflect this.
7025 (i[34567]86-*-solaris2*): Use it.
7027 2010-04-09 Steve Ellcey <sje@cup.hp.com>
7029 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
7031 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
7033 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7036 * diagnostic.c (diagnostic_initialize): Initialize
7037 some_warnings_are_errors.
7038 (diagnostic_finish): New.
7039 (diagnostic_action_after_output): Call it before exiting.
7040 (diagnostic_report_diagnostic): Do not print message here. Set
7041 some_warnings_are_errors.
7042 * diagnostic.h (diagnostic_context): Delete
7043 issue_warnings_are_errors_message. Add some_warnings_are_errors.
7044 (diagnostic_finish): Declare.
7045 * toplev.c (toplev_main): Call it before exit.
7047 2010-04-09 Jason Merrill <jason@redhat.com>
7050 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
7051 for incomplete type.
7054 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
7055 based on a warning flag.
7057 2010-04-09 Richard Guenther <rguenther@suse.de>
7059 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
7061 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
7064 * varasm.c (default_assemble_visibility): Wrap vars that are
7065 set, but unused, by targets without GAS.
7066 * config/rs6000/rs6000.c (paired_emit_vector_compare):
7067 Remove set, but unused, vars.
7068 (rs6000_legitimize_tls_address): Likewise.
7069 (altivec_expand_dst_builtin): Likewise.
7070 * config/darwin.c (machopic_classify_symbol): Likewise.
7071 (machopic_indirection_name): Likewise.
7073 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
7075 * config/i386/i386.md (DWI): New mode iterator.
7076 (S): New mode attribute.
7077 (shift_operand): Ditto.
7078 (shift_immediate_operand): Ditto.
7079 (ashl_input_operand): Ditto.
7080 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
7081 using SDWIM mode iterator.
7082 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
7083 pattern from *ashl{di,ti}3_1 and corresponding splitters using
7085 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
7086 from corresponding peephole2 patterns.
7087 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
7088 and x86_64_shift_adj_1 using SWI48 mode iterator.
7089 (x86_shift<mode>_adj_2): Ditto.
7090 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
7091 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
7092 using SWI48 mode iterator.
7093 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
7094 *ashldi3_cmp_rex64 using SWI mode iterator.
7095 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
7096 *ashldi3_cconly_rex64 using SWI mode iterator.
7097 * config/i386/i386.c (ix86_split_ashl): Update for renamed
7098 x86_shift<mode>_adj_{1,2}.
7099 (ix86_split_ashr): Ditto.
7100 (ix86_split_lshr): Ditto.
7102 2010-04-09 Richard Guenther <rguenther@suse.de>
7104 * target.h (builtin_conversion): Pass in input and output types.
7105 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
7106 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
7107 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
7108 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
7110 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
7112 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
7114 2010-04-09 Richard Guenther <rguenther@suse.de>
7117 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
7119 2010-04-09 Richard Guenther <rguenther@suse.de>
7121 * tree-vectorizer.h (struct _stmt_vec_info): Document
7122 that vectype is the type of the LHS.
7123 (supportable_widening_operation, supportable_narrowing_operation):
7124 Get both input and output vector types as arguments.
7125 (vect_is_simple_use_1): Declare.
7126 (get_same_sized_vectype): Likewise.
7127 * tree-vect-loop.c (vect_determine_vectorization_factor):
7128 Set STMT_VINFO_VECTYPE to the vector type of the def.
7129 (vectorizable_reduction): Adjust.
7130 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
7131 Adjust. Specify the output vector type.
7132 (vect_pattern_recog_1): Adjust.
7133 * tree-vect-stmts.c (get_same_sized_vectype): New function.
7134 (vectorizable_call): Adjust.
7135 (vectorizable_conversion): Likewise.
7136 (vectorizable_operation): Likewise.
7137 (vectorizable_type_demotion): Likewise.
7138 (vectorizable_type_promotion): Likewise.
7139 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
7141 (vect_is_simple_use_1): New function.
7142 (supportable_widening_operation): Get both input and output
7144 (supportable_narrowing_operation): Likewise.
7145 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
7147 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
7149 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
7150 __thiscall and _thiscall as predefined macros.
7151 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
7152 thiscall attribute handling.
7153 (ix86_comp_type_attributes): Likewise.
7154 (ix86_function_regparm): Likewise.
7155 (ix86_return_pops_args): Likewise.
7156 (init_cumulative_args): Likewise.
7157 (find_drap_reg): Likewise.
7158 (ix86_static_chain): Likewise.
7159 (x86_this_parameter): Likewise.
7160 (x86_output_mi_thunk): Likewise.
7161 (ix86_attribute_table): Add description for thiscall attribute.
7162 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
7163 * doc/extend.texi: Add documentation for thiscall.
7165 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7168 * c.opt (Wint-to-pointer-cast): Available in C++.
7169 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
7171 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
7173 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
7174 * calls.c (expand_call): Pass the function type to aggregate_value_p.
7175 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
7176 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
7177 function type instead. Reorder and simplify checks.
7179 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
7181 2010-04-08 Jing Yu <jingyu@google.com>
7182 Zdenek Dvorak <ook@ucw.cz>
7184 PR tree-optimization/42720
7185 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
7186 loop unswitch conditions here from ...
7187 (tree_unswitch_single_loop): ... here.
7189 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
7191 * tree-if-conv.c: Fix comments and simplify logic.
7193 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
7195 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
7196 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
7197 (main_tree_if_conversion): Update call to tree_if_conversion.
7199 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7202 * doc/invoke.texi (-b,-V): Delete.
7203 * doc/tm.texi: Do not mention -b.
7204 * gcc.c (display_help): Delete -b and -V.
7205 (process_command): Delete -b and -V.
7206 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
7208 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
7209 Wolfgang Gellerich <gellerich@de.ibm.com>
7211 Implement target hook for loop unrolling
7212 * target.h (loop_unroll_adjust): Add a new target hook function.
7213 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
7214 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
7215 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
7216 (s390_loop_unroll_adjust): Implement the new target hook for s390.
7217 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
7219 (decide_unroll_stupid): Likewise.
7221 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7224 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
7226 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7228 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
7229 (Specific, *-*-solaris2*): Likewise.
7230 Don't prefer Sun as over GNU as.
7232 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
7234 * config/s390/s390.c (override_options): Adjust the z10 defaults
7235 for max-unroll-times, max-completely-peeled-insns
7236 and max-completely-peel-times.
7238 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7240 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
7241 instructions for z10.
7242 (s390_expand_setmem): Likewise.
7243 (s390_expand_cmpmem): Likewise.
7245 2010-04-08 Richard Guenther <rguenther@suse.de>
7247 PR tree-optimization/43679
7248 * tree-ssa-pre.c (eliminate): Only propagate copies.
7250 2010-04-08 Jakub Jelinek <jakub@redhat.com>
7253 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
7254 set but not used variable warning.
7256 2010-04-08 Wei Guozhi <carrot@google.com>
7259 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
7260 (arm_size_rtx_costs): Call the new function when optimized for size.
7262 2010-04-08 Jakub Jelinek <jakub@redhat.com>
7265 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
7266 op0 is not a MEM, just return NULL instead of assertion
7268 (discover_nonconstant_array_refs): Don't walk debug stmts.
7270 2010-04-08 Doug Kwan <dougkwan@google.com>
7272 * configure.ac: Recognize gold and do not use its version number
7273 to test ld features.
7274 * configure: Regenerate.
7276 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
7279 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
7280 (negate_value): Move code to push elements to broken_up_substracts ...
7281 (eliminate_plus_minus_pair): ... here. Push operands that have no
7282 negative pair to plus_negates.
7283 (repropagate_negates, init_reassoc, fini_reassoc): Update.
7285 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7287 * doc/install.texi (Configuration): Move description of
7288 --enable-lto, --with-libelf*, --enable-gold from Java section to
7291 * doc/generic.texi (Working with declarations)
7292 (Function Properties, C and C++ Trees): Fix typos.
7293 * doc/sourcebuild.texi (Top Level): Likewise.
7295 2010-04-07 Jakub Jelinek <jakub@redhat.com>
7298 * tree.h (DECL_READ_P): Define.
7299 (struct tree_decl_common): Add decl_read_flag.
7300 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
7301 a set but not used warning.
7302 (merge_decls): Merge DECL_READ_P flag.
7303 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
7304 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
7305 * c-common.c (handle_used_attribute, handle_unused_attribute):
7307 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
7309 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
7311 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
7312 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
7313 c_parser_binary_expression, c_parser_cast_expression,
7314 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
7315 Call default_function_array_read_conversion instead of
7316 default_function_array_conversion where needed.
7317 (c_parser_unary_expression, c_parser_conditional_expression,
7318 c_parser_postfix_expression_after_primary, c_parser_initelt):
7319 Likewise. Call mark_exp_read where needed.
7320 (c_parser_statement_after_labels, c_parser_asm_operands,
7321 c_parser_typeof_specifier, c_parser_sizeof_expression,
7322 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
7324 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
7326 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
7327 (warn_unused_but_set_parameter): Default to warn_unused
7329 * doc/invoke.texi: Document -Wunused-but-set-variable and
7330 -Wunused-but-set-parameter.
7332 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
7333 used count variable.
7334 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
7335 when operandN variables aren't used in the body of the expander
7337 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
7338 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
7339 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
7340 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
7341 FOR_EACH_IMM_USE_ON_STMT): Likewise.
7342 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
7343 * tree.c (PROCESS_ARG): Likewise.
7345 2010-04-07 Simon Baldwin <simonb@google.com>
7347 * diagnostic.h (diagnostic_override_option_index): New macro to
7348 set a diagnostic's option_index.
7349 * c-tree.h (c_cpp_error): Add warning reason argument.
7350 * opts.c (_warning_as_error_callback): New.
7351 (register_warning_as_error_callback): Store callback for
7352 warnings enabled via enable_warning_as_error.
7353 (enable_warning_as_error): Call callback, minor code tidy.
7354 * opts.h (register_warning_as_error_callback): Declare.
7355 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
7356 response to -Werror=.
7357 (c_common_init_options): Register warning_as_error_callback in opts.c.
7358 * common.opt: Add -Wno-cpp option.
7359 * c-common.c (struct reason_option_codes_t): Map cpp warning
7360 reason codes to gcc option indexes.
7361 * (c_option_controlling_cpp_error): New function, lookup the gcc
7362 option index for a cpp warning reason code.
7363 * (c_cpp_error): Add warning reason argument, call
7364 c_option_controlling_cpp_error for diagnostic_override_option_index.
7365 * doc/invoke.texi: Document -Wno-cpp.
7367 2010-04-07 Richard Guenther <rguenther@suse.de>
7369 * ipa-reference.c (mark_load): Use get_base_address.
7370 (mark_store): Likewise.
7372 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
7373 inserting GIMPLE_NOPs into the IL.
7374 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7375 Explicitly strip handled components and indirect references.
7377 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
7378 folding address expressions.
7379 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
7380 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
7381 operand_equal_p to compare decls.
7382 (ptr_deref_may_alias_decl_p): Likewise.
7383 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
7384 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7385 Handle reversed comparison ops.
7386 * tree-sra.c (asm_visit_addr): Use get_base_address.
7387 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
7388 * ipa-reference.c (mark_address): Use get_base_address.
7390 2010-04-07 Richard Guenther <rguenther@suse.de>
7392 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
7393 Propagate constants everywhere.
7395 2010-04-07 Jakub Jelinek <jakub@redhat.com>
7398 * tree.c (MAX_INT_CACHED_PREC): Define.
7399 (nonstandard_integer_type_cache): New array.
7400 (build_nonstandard_integer_type): Cache results for precision
7401 <= MAX_INT_CACHED_PREC.
7403 2010-04-07 Richard Guenther <rguenther@suse.de>
7405 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
7406 -fargument-noalias-global, -fargument-noalias-anything): Remove.
7407 * common.opt: Likewise.
7408 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
7409 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
7410 (nonoverlapping_memrefs_p): Likewise.
7411 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7412 * opts.c (common_handle_option): Handle OPT_fargument_alias,
7413 OPT_fargument_noalias, OPT_fargument_noalias_anything and
7414 OPT_fargument_noalias_global for backward compatibility.
7416 2010-04-07 Richard Guenther <rguenther@suse.de>
7418 PR tree-optimization/43270
7419 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
7420 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
7421 * tree-ssa-pre.c (phi_translate_1): Adjust.
7422 (fully_constant_expression): Split out vn_reference handling to ...
7423 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
7424 Fold reads from constant strings.
7425 (vn_reference_lookup): Handle fully constant references.
7426 (vn_reference_lookup_pieces): Likewise.
7427 * Makefile.in (expmed.o-warn): Add -Wno-error.
7429 2010-04-07 Martin Jambor <mjambor@suse.cz>
7431 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
7433 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
7436 * gcc.c: Add -static-libstdc++ to list of recognized options.
7438 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7440 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
7442 2010-04-07 Richard Guenther <rguenther@suse.de>
7445 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
7446 bases build simple mem attributes to retain points-to information.
7448 2010-04-07 Richard Guenther <rguenther@suse.de>
7451 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
7452 preserve points-to related information.
7454 2010-04-07 Richard Guenther <rguenther@suse.de>
7457 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
7458 discard plain indirect references.
7459 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
7460 * tree.c (tree_nop_conversion): Likewise.
7462 2010-04-07 Dodji Seketeli <dodji@redhat.com>
7465 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
7467 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
7469 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
7470 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
7472 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7474 * tree-if-conv.c: Fix indentation and comments.
7476 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7478 * tree-if-conv.c: Sort static functions in topological order.
7480 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7482 * tree-if-conv.c: Fix indentation and comments.
7484 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7487 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
7488 lang_hooks.types.type_for_size instead of
7489 build_nonstandard_integer_type.
7490 When converting an unsigned type to signed, double its precision.
7491 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
7492 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
7493 (graphite_create_new_loop_guard): When ub + 1 wraps around,
7496 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7499 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7500 POINTER_PLUS_EXPR for pointer types.
7502 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7505 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
7506 * graphite-clast-to-gimple.c: Include langhooks.h.
7507 (max_signed_precision_type): New.
7508 (max_precision_type): Takes two types as arguments.
7509 (precision_for_value): New.
7510 (precision_for_interval): New.
7511 (gcc_type_for_interval): New.
7512 (gcc_type_for_value): New.
7513 (gcc_type_for_clast_term): New.
7514 (gcc_type_for_clast_red): New.
7515 (gcc_type_for_clast_bin): New.
7516 (gcc_type_for_clast_expr): Split up into several functions.
7517 (gcc_type_for_clast_eq): Rewritten.
7518 (compute_bounds_for_level): New.
7519 (compute_type_for_level_1): New.
7520 (compute_type_for_level): New.
7521 (gcc_type_for_cloog_iv): Removed.
7522 (gcc_type_for_iv_of_clast_loop): Rewritten.
7523 (graphite_create_new_loop): Compute the lower and upper bound types
7524 with gcc_type_for_clast_expr.
7525 (graphite_create_new_loop_guard): Same.
7526 (find_cloog_iv_in_expr): Removed.
7527 (compute_cloog_iv_types_1): Removed.
7528 (compute_cloog_iv_types): Removed.
7529 (gloog): Do not call compute_cloog_iv_types.
7530 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
7532 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
7533 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
7534 (GBB_CLOOG_IV_TYPES): Removed.
7536 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7538 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
7539 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
7540 (detect_commutative_reduction): Same.
7542 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7544 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
7545 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
7547 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
7548 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
7549 (rewrite_commutative_reductions_out_of_ssa): Same.
7550 * passes.c (execute_function_todo): Call verify_ssa for every pass
7551 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
7552 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
7553 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
7554 with an extra argument.
7555 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
7556 verify_ssa only when the extra argument is true.
7557 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
7558 with an extra argument.
7559 (tree_transform_and_unroll_loop): Same.
7561 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7563 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
7564 for all the passes of the LNO having LOOP_CLOSED_SSA.
7565 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
7566 * tree-loop-distribution.c (pass_loop_distribution): Same.
7567 * tree-pass.h (TODO_verify_loops): Removed.
7568 * tree-ssa-loop.c (pass_tree_loop_init): Same.
7570 (pass_tree_unswitch): Same.
7571 (pass_predcom): Same.
7572 (pass_vectorize): Same.
7573 (pass_linear_transform): Same.
7574 (pass_graphite_transforms): Same.
7575 (pass_iv_canon): Same.
7576 (pass_complete_unroll): Same.
7577 (pass_complete_unrolli): Same.
7578 (pass_parallelize_loops): Same.
7579 (pass_loop_prefetch): Same.
7580 (pass_iv_optimize): Same.
7582 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
7585 * passes.c (init_optimization_passes): Move pass_lim before
7586 pass_copy_prop and pass_dce_loop.
7588 2010-04-06 Jakub Jelinek <jakub@redhat.com>
7591 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
7592 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
7593 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
7594 MULTI_* defines for 4 argument vpermil2p* builtins.
7596 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
7598 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
7599 * config/i386/i386.c (x86_maybe_negate_const_int): New.
7600 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
7601 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
7602 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
7603 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
7604 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
7605 Use x86_maybe_negate_const_int to output insn mnemonic.
7606 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
7607 check from instruction predicate. Update comments.
7608 * config/i386/sync.md (sync_add<mode>): Use
7609 x86_maybe_negate_const_int to output insn mnemonic.
7611 2010-04-06 Jan Hubicka <jh@suse.cz>
7613 PR tree-optimization/42906
7614 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
7615 IGNORE_SELF argument. Set visited_control_parents for fully
7617 (find_obviously_necessary_stmts): Update call of
7618 mark_control_dependent_edges_necessary.
7619 (propagate_necessity): Likewise. Handle PHI edges more curefully.
7621 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
7623 * config/i386/i386.md: Remove comment about 'e' and 'E'
7626 2010-04-06 Richard Guenther <rguenther@suse.de>
7628 PR tree-optimization/43627
7629 * tree-vrp.c (extract_range_from_unary_expr): Widenings
7630 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
7633 2010-04-06 Jakub Jelinek <jakub@redhat.com>
7635 * BASE-VER: Change to 4.6.0.
7638 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
7641 2010-04-06 Richard Guenther <rguenther@suse.de>
7644 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
7646 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7648 * doc/invoke.texi (Optimize Options): Document that LTO
7649 won't remove object access purely due to incompatible
7652 2010-04-04 Matthias Klose <doko@ubuntu.com>
7654 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
7655 Initialize variable.
7657 2010-04-03 Richard Guenther <rguenther@suse.de>
7660 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
7661 require a non-NULL MEM_OFFSET.
7663 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
7665 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
7666 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
7667 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
7668 config/alpha/predicates.md, config/arm/arm.md,
7669 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
7670 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
7671 config/darwin9.h, config/darwin.c, config/darwin.h,
7672 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
7673 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
7674 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
7675 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
7676 config/mips/mips.md, config/mn10300/mn10300.c,
7677 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
7678 config/rs6000/aix.h, config/rs6000/dfp.md,
7679 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
7680 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
7681 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
7682 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
7683 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
7684 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
7685 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
7686 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
7687 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
7688 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
7689 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
7690 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
7691 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
7692 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
7693 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
7694 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
7695 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
7696 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
7697 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
7698 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
7699 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
7700 opt-functions.awk, opth-gen.awk, params.def, passes.c,
7701 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
7702 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
7703 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
7704 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
7705 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
7706 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
7707 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
7708 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
7709 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7710 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
7711 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
7712 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
7713 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
7714 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
7716 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7719 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
7720 * aclocal.m4: Regenerate.
7722 2010-04-02 Richard Guenther <rguenther@suse.de>
7724 PR tree-optimization/43629
7725 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
7726 if we have seen a constant value.
7728 2010-04-02 Joseph Myers <joseph@codesourcery.com>
7730 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
7732 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
7735 * arm.c (legitimize_tls_address): Adjust call to
7736 gen_tls_load_dot_plus_four.
7737 (arm_note_pic_base): New function.
7738 (arm_cannot_copy_insn_p): Use it.
7739 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
7742 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7747 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7749 * Makefile.in ($(out_object_file)): Depend on
7750 gt-$(basename $(notdir $(out_file))).h.
7752 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
7754 * config.gcc (lm32-*-rtems*): Add t-lm32.
7756 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
7758 * config.gcc: Add lm32-*-rtems*.
7759 * config/lm32/rtems.h: New file.
7761 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
7764 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
7766 2010-04-01 Jakub Jelinek <jakub@redhat.com>
7768 * dwarf2out.c (output_compilation_unit_header): For
7769 -gdwarf-4 use version 4 instead of version 3.
7770 (output_line_info): For version 4 and above emit additional
7771 maximum ops per insn header field.
7772 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
7774 * dwarf2out.c (is_c_family, is_java): Remove.
7775 (lower_bound_default): New function.
7776 (add_bound_info, gen_descr_array_type_die): Use it.
7778 2010-04-01 Dodji Seketeli <dodji@redhat.com>
7781 * dwarf2out.c (gen_variable_die): Allow debug info for variable
7782 re-declaration when it happens in a function.
7784 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
7786 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
7787 (cgraph_remove_function_insertion_hook): Same.
7788 (cgraph_call_function_insertion_hooks): Same.
7790 2010-04-01 Richard Guenther <rguenther@suse.de>
7793 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
7794 and TREE_THIS_VOLATILE.
7795 (copy_ref_info): Likewise.
7796 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
7797 * tree.c (build6_stat): Ignore side-effects of all but arg5
7798 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
7801 2010-04-01 Richard Guenther <rguenther@suse.de>
7803 PR tree-optimization/43607
7804 * ipa-type-escape.c (check_call): Do not access non-existing
7807 2010-04-01 Richard Guenther <rguenther@suse.de>
7811 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
7812 Jack Howarth <howarth@bromo.med.uc.edu>
7814 * tree-profile.c (tree_init_ic_make_global_vars): Make static
7817 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7819 * doc/install.texi (Prerequisites): Document libelf usability on
7820 IRIX 5/6 and Solaris 2.
7821 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
7822 Update GNU as, GNU ld requirements.
7823 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
7824 Document Sun Studio compiler download.
7825 Update and simplify as, ld recommendations.
7826 (Specific, *-*-solaris2.7): Note obsoletion, removal.
7828 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7830 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
7831 with_tune_32 to pentium4.
7833 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
7835 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
7837 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7839 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
7840 obsoletion, removal.
7842 Document GNU as requirement.
7843 Update configure requirements.
7844 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
7845 Recomment IRIX 6.5.18+.
7846 Document IDF/IDL requirement.
7847 Document GNU as requirement.
7848 Document GNU ld bootstrap failure.
7849 Remove freeware.sgi.com reference.
7851 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7853 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
7854 UNIX V4.0, V5.0 obsoletion, removal.
7855 Remove --with-gc=simple reference.
7856 Update VM requirements during bootstrap.
7857 Remove -oldas bootstrap description.
7858 Update binutils reference.
7859 Remove comparison failure note.
7861 2010-03-31 Richard Guenther <rguenther@suse.de>
7862 Zdenek Dvorak <ook@ucw.cz>
7863 Sebastian Pop <sebastian.pop@amd.com>
7866 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
7867 with multiple arguments.
7868 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
7870 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7872 * graphite-dependences.c (print_pddr): Call print_pdr with an
7874 * graphite-poly.c (debug_pdr): Add an extra argument for the
7877 (print_pbb_domain): Same.
7879 (print_scop_context): Same.
7881 (print_cloog): Same.
7882 (debug_pbb_domain): Same.
7886 (debug_scop_context): Same.
7888 (debug_cloog): Same.
7889 (print_scop_params): Same.
7890 (debug_scop_params): Same.
7891 (print_iteration_domain): Same.
7892 (print_iteration_domains): Same.
7893 (debug_iteration_domain): Same.
7894 (debug_iteration_domains): Same.
7895 (print_scattering_function): Same.
7896 (print_scattering_functions): Same.
7897 (debug_scattering_function): Same.
7898 (debug_scattering_functions): Same.
7899 * graphite-poly.h (debug_pdr): Update declaration.
7901 (print_pbb_domain): Same.
7903 (print_scop_context): Same.
7905 (print_cloog): Same.
7906 (debug_pbb_domain): Same.
7910 (debug_scop_context): Same.
7912 (debug_cloog): Same.
7913 (print_scop_params): Same.
7914 (debug_scop_params): Same.
7915 (print_iteration_domain): Same.
7916 (print_iteration_domains): Same.
7917 (debug_iteration_domain): Same.
7918 (debug_iteration_domains): Same.
7919 (print_scattering_function): Same.
7920 (print_scattering_functions): Same.
7921 (debug_scattering_function): Same.
7922 (debug_scattering_functions): Same.
7924 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7926 * graphite-poly.c (print_scattering_function_1): New.
7927 (print_scattering_function): Call it.
7928 (print_scop_params): Remove spaces at the end of lines.
7931 * graphite-poly.h (print_cloog): Declared.
7932 (debug_cloog): Declared.
7934 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7936 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
7938 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
7939 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
7940 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
7941 to switch between adding the IV bump in loop->latch or in loop->header.
7943 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7945 * graphite-poly.c (print_scattering_function): Pretty print following
7948 (print_pbb_domain): Same.
7949 (dump_gbb_cases): Same.
7950 (dump_gbb_conditions): Same.
7953 (print_scop_params): Same.
7954 (print_scop_context): Same.
7956 (print_pbb_body): New.
7957 (lst_indent_to): New.
7958 (print_lst): Start new lines with a #.
7959 * graphite-poly.h (pbb_bb): New.
7960 (pbb_index): Use pbb_bb.
7961 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
7963 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
7965 2010-03-31 Jakub Jelinek <jakub@redhat.com>
7967 * dwarf2out.c (size_of_die): For -gdwarf-4 use
7968 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
7969 and 0 instead of 1 for dw_val_class_flag.
7970 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
7971 dw_val_class_range_list, dw_val_class_loc_list,
7972 dw_val_class_lineptr and dw_val_class_macptr, use
7973 DW_FORM_flag_present for dw_val_class_flag and
7974 DW_FORM_exprloc for dw_val_class_loc.
7975 (output_die): For -gdwarf-4 print dw_val_class_loc
7976 size as uleb128 instead of 1 or 2 bytes and don't print
7977 anything for dw_val_class_flag.
7979 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
7980 instead of cselib_lookup following by tweaking locs->setting_insn.
7983 * cselib.c (cselib_process_insn): Clear cselib_current_insn
7984 even before returning from label, setjmp call or volatile asm
7987 2010-03-31 Richard Guenther <rguenther@suse.de>
7990 * cgraphunit.c (cgraph_output_in_order): Do not allocate
7991 temporary data on stack.
7993 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7995 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
7996 (PUSHSECTION_ASM_OP): Remove.
7997 (POPSECTION_ASM_OP): Remove.
7998 (PUSHSECTION_FORMAT): Remove.
7999 * config/sol2.h (PUSHSECTION_FORMAT): Define.
8000 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
8001 * config/sol2.c (solaris_output_init_fini): Use it.
8003 2010-03-31 Jie Zhang <jie@codesourcery.com>
8006 * opt-functions.awk (var_type_struct): Use signed char type
8007 for simple variables.
8009 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8011 * config/sol2.c: Include output.h.
8012 (solaris_assemble_visibility): New function.
8013 * config/t-sol2 (sol2.o): Add output.h dependency.
8014 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
8015 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
8018 2010-03-31 Jakub Jelinek <jakub@redhat.com>
8021 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
8022 V2SImode or XFmode on PRE_DEC.
8025 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
8028 2010-03-31 Jie Zhang <jie@codesourcery.com>
8031 * reload.h (caller_save_initialized_p): Declare.
8032 * toplev.c (backend_init_target): Don't call
8033 init_caller_save but set caller_save_initialized_p to false.
8034 * caller-save.c (caller_save_initialized_p): Define.
8035 (init_caller_save): Check caller_save_initialized_p.
8036 * ira.c (ira): Call init_caller_save if flag_caller_saves.
8038 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8041 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
8042 and soft-fp/t-softfp to tmake_file.
8043 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
8044 (LIBGCC2_TF_CEXT): Define.
8047 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
8050 * cselib.c (n_useless_values): Document handling of debug locs.
8051 (n_useless_debug_values, n_debug_values): New variables.
8052 (new_elt_loc_list): Don't add to debug values, keep count.
8053 (promote_debug_loc): New.
8054 (cselib_reset_table): Zero new variables.
8055 (entry_and_rtx_equal_p): Promote debug locs.
8056 (discard_useless_locs): Increment n_useless_debug_values for
8058 (remove_useless_values): Adjust n_useless_values and n_debug_values
8059 with n_useless_debug_values.
8060 (add_mem_for_addr): Promote debug locs.
8061 (cselib_lookup_mem): Likewise.
8062 (cselib_lookup_addr): Renamed to...
8063 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
8064 (cselib_log_lookup): ... this. Turn into...
8065 (cselib_lookup_addr): ... new wrapper.
8066 (cselib_lookup_from_insn): New.
8067 (cselib_invalidate_regno): Increment n_useless_debug_values for
8069 (cselib_invalidate_mem): Likewise.
8070 (cselib_process_insn): Take n_deleted and n_debug_values into
8071 account to guard remove_useless_value call.
8072 (cselib_finish): Zero n_useless_debug_values.
8073 * cselib.h (cselib_lookup_from_insn): Declare.
8074 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
8075 (sched_analyze_2): Likewise.
8077 2010-03-30 Jakub Jelinek <jakub@redhat.com>
8079 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
8081 (adjust_mems): Replace narrowing SUBREG of expression containing
8082 just PLUS, MINUS, MULT and ASHIFT of registers and constants
8083 with operations in the narrower mode.
8086 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
8087 regs_invalidated_by_call instead all call_used_reg_set registers.
8089 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
8092 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
8093 pointer comparisons with types_compatible_p.
8094 * tree-vect-stmts.c (vectorizable_call): Same.
8095 (vectorizable_condition): Same.
8097 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8099 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
8100 stack check if the mask would be zero.
8102 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
8103 Jack Howarth <howarth@bromo.med.uc.edu>
8105 * tree-profile.c (tree_init_ic_make_global_vars): Make static
8108 2010-03-30 Joseph Myers <joseph@codesourcery.com>
8111 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
8113 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
8114 Include ___unordxf2 and ___unordtf2.
8115 * config/i386/libgcc-glibc.ver: Do not define inheritance from
8118 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
8120 * config/lm32/t-lm32: New file.
8121 * config.gcc: Use the above file when targetting lm32.
8123 2010-03-28 Duncan Sands <baldrick@free.fr>
8125 * Makefile.in (PLUGIN_HEADERS): Add except.h.
8127 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
8130 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
8131 Improve vectorization cost model diagnostic.
8133 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
8136 * tree-vect-data-refs.c (vect_analyze_data_refs): When
8137 compute_data_dependences_for_loop returns false, early exit
8138 and output an extra diagnostic for the failed data reference
8141 2010-03-29 Richard Guenther <rguenther@suse.de>
8143 PR tree-optimization/43560
8144 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
8145 (can_sm_ref_p): Treat stores to readonly locations as trapping.
8147 2010-03-29 Jie Zhang <jie@codesourcery.com>
8150 * toplev.c (process_options): Set optimization_default_node
8151 and optimization_current_node.
8152 * opts.c (decode_options): Don't set optimization_default_node
8153 and optimization_current_node.
8155 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
8157 * config/rtems.h: Abandon -qrtems_debug.
8159 2010-03-28 Jan Hubicka <jh@suse.cz>
8161 PR tree-optimization/43505
8162 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
8163 map should not be copied.
8165 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8168 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
8169 cdtors, set DECL_PRESERVE_P.
8170 * ipa.c (cgraph_externally_visible_p): Return true if declaration
8173 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
8175 PR tree-optimization/43528
8176 * stor-layout.c (place_field): Check that constant fits into
8177 unsigned HWI when skipping calculation of MS bitfield layout.
8179 2010-03-27 Jan Hubicka <jh@suse.cz>
8182 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
8183 notice_global_symbol work.
8185 2010-03-27 Jakub Jelinek <jakub@redhat.com>
8187 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
8188 instead of dwarf2out_decl.
8189 (struct var_loc_node): Remove section_label field.
8190 (dwarf2out_function_decl): New function.
8191 (dwarf2out_var_location): Don't set section_label field.
8192 (dwarf2out_begin_function): Don't empty decl_loc_table here.
8194 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8196 PR tree-optimization/43544
8197 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
8198 First argument for builtin vectorized function hook is now a
8199 tree to be able to distinguish between machine specific and
8201 * targhooks.c (default_builtin_vectorized_function): Ditto.
8202 * targhooks.h (default_builtin_vectorized_function): Ditto.
8203 * target.h (struct gcc_target): Ditto.
8204 * tree-vect-stmts.c (vectorizable_function): Ditto.
8205 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
8206 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8209 2010-03-26 Joseph Myers <joseph@codesourcery.com>
8212 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
8213 nested binding iff it is a FUNCTION_DECL.
8214 (store_parm_decls_newstyle): Pass nested=true to bind for
8215 FUNCTION_DECLs amongst parameters.
8217 2010-03-26 Jakub Jelinek <jakub@redhat.com>
8219 * var-tracking.c (vt_expand_loc_callback): Don't run
8220 cselib_expand_value_rtx_cb in dummy mode if
8221 cselib_dummy_expand_value_rtx_cb returned false.
8223 * var-tracking.c (emit_note_insn_var_location): For one part
8224 notes with offset 0, don't add EXPR_LIST around the location.
8225 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
8226 add_location_or_const_value_attribute): Adjust for that change.
8229 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
8230 into first operand and location into second.
8231 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
8232 dw_cfi_oprnd_loc for DW_CFA_expression.
8233 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
8234 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
8235 assume first argument is regnum and second argument is location.
8237 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
8240 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
8241 of scratch register to DImode. Split to DImode comparison operator.
8242 Use SImode subreg of scratch register in the multiplication.
8243 (*cmp_sadd_sidi): Ditto.
8244 (*cmp_ssub_si): Ditto.
8245 (*cmp_ssub_sidi): Ditto.
8247 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
8250 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
8251 Remove invalid assert and wrong comment.
8253 2010-03-26 Jakub Jelinek <jakub@redhat.com>
8256 * flags.h (final_insns_dump_p): New extern.
8257 * final.c (final_insns_dump_p): New variable.
8258 (rest_of_clean_state): Set it before -fdump-final-insns=
8259 dumping, clear afterwards.
8260 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
8261 MEM_ALIAS_SET on MEMs.
8263 2010-03-26 David S. Miller <davem@davemloft.net>
8265 * configure.ac: Fix sparc GOTDATA_OP bug check.
8266 * configure: Rebuild.
8268 2010-03-26 Alan Modra <amodra@gmail.com>
8270 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
8272 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8274 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
8275 TLS_SECTION_ASM_FLAG.
8277 2010-03-25 Jakub Jelinek <jakub@redhat.com>
8280 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
8281 Clear first_function_block_is_cold.
8284 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
8285 argument if the argument is truth_value_p.
8287 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8289 * config/rs6000/constraints.md: Update copyright year for my changes.
8292 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
8293 used in reg+reg addressing, swap registers.
8295 2010-03-24 Jakub Jelinek <jakub@redhat.com>
8298 * target.h (struct gcc_target): Add code_end hook.
8299 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
8301 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
8302 * toplev.c (compile_file): Call targetm.asm_out.code_end
8303 hook before unwind info/debug info output.
8304 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
8305 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
8306 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8307 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
8308 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8309 * config/i386/i386.c (ix86_file_end): Renamed to...
8310 (ix86_code_end): ... this. Make static. Don't call
8311 file_end_indicate_exec_stack. Emit unwind info using
8312 final_start_function/final_end_function.
8313 (darwin_x86_file_end): Remove.
8314 (TARGET_ASM_CODE_END): Define.
8315 * config/i386/i386.h (TARGET_ASM_FILE_END,
8316 NEED_INDICATE_EXEC_STACK): Don't define.
8317 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
8318 (TARGET_ASM_FILE_END): Define to darwin_file_end.
8319 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
8320 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
8323 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
8324 at the beginning and final_end_function at the end.
8325 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8327 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8329 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
8330 and Sun as TLS syntax.
8331 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
8332 * configure: Regenerate.
8333 * config.in: Regenerate.
8334 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
8335 (default_elf_asm_named_section): Use it.
8336 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
8337 (i386_output_dwarf_dtprel): Likewise.
8338 (output_addr_const_extra): Likewise.
8339 (output_pic_addr_const): Lowercase @GOTTPOFF.
8340 (output_addr_const_extra): Likewise.
8341 (output_pic_addr_const): Lowercase @GOTNTPOFF.
8342 (output_addr_const_extra): Likewise.
8343 (output_pic_addr_const): Lowercase @INDNTPOFF.
8344 (output_addr_const_extra): Likewise.
8345 (output_pic_addr_const): Lowercase @NTPOFF.
8346 (output_addr_const_extra): Likewise.
8347 (output_pic_addr_const): Lowercase @TPOFF.
8348 (output_addr_const_extra): Likewise.
8349 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
8350 (*tls_global_dynamic_64): Likewise.
8351 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
8352 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
8354 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
8355 (ASM_OUTPUT_TLS_COMMON): Use it.
8356 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
8359 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
8360 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
8361 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
8362 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
8363 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8364 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
8366 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8368 * config/i386/i386.c (override_options): Don't accept
8369 -mtls-dialect=sun any longer.
8370 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
8371 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
8372 (*tls_local_dynamic_base_32_sun): Likewise.
8373 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8375 2010-03-24 Jakub Jelinek <jakub@redhat.com>
8378 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
8379 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
8382 * ira.c (adjust_cleared_regs): New function.
8383 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
8387 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
8389 * expr.c (expand_expr_real): Restore previous
8390 curr_insn_source_location and curr_insn_block after
8391 expand_expr_real_1 call.
8392 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
8393 instead of expand_expr_real_1.
8395 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
8397 PR rtl-optimization/43413
8398 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
8401 2010-03-22 James E. Wilson <wilson@codesourcery.com>
8404 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
8405 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
8407 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
8409 * config/i386/i386.c (ix86_target_string): Add -mfma.
8410 Fix a typo in comment.
8412 2010-03-22 Mike Stump <mikestump@comcast.net>
8415 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
8416 Don't overly align based upon packed packed fields.
8418 2010-03-22 Jason Merrill <jason@redhat.com>
8420 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
8421 Use () rather than [], and move before the element type.
8423 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8425 * doc/configfiles.texi (Configuration Files): Removed
8426 fixinc/Makefile*, intl/Makefile.*.
8427 * doc/makefile.texi: Fixed markup. Abstract from version
8428 control system used.
8429 (Makefile): Removed obsolete gcc/java/parse.y example.
8430 * doc/sourcebuild.texi: Likewise.
8431 (Top Level): Added config, gnattools, libdecnumber, libgcc,
8432 libgomp, libssp. Removed fastjar.
8433 (Miscellaneous Docs): Clarify location.
8434 Added COPYING3, COPYING3.LIB.
8435 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
8437 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8440 * config/i386/i386.c (x86_function_profiler)
8441 [!NO_PROFILE_COUNTERS]: Fix typo.
8442 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
8445 2010-03-22 Janis Johnson <janis187@us.ibm.com>
8446 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8448 * doc/sourcebuild.texi (Test Directives): Split into six
8449 subsections, with most of the current text in new subsections
8450 Directives, Selectors, and Final Actions.
8451 (Directives): Split list of test directives into multiple
8453 (Selectors): Describe use and syntax of selectors.
8454 (Effective-Target Keywords): Describe all existing keywords.
8455 (Add Options): Describe features for dg-add-options.
8456 (Require Support): Describe variants of dg-require-support.
8457 (Final Actions): Describe commands to use in dg-final.
8459 2010-03-22 Michael Matz <matz@suse.de>
8462 * recog.c (validate_replace_rtx_group): Replace also in
8463 REG_EQUAL and REG_EQUIV notes.
8465 2010-03-22 Richard Guenther <rguenther@suse.de>
8467 PR tree-optimization/43390
8468 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
8469 sure vector extracts are type correct.
8471 2010-03-22 Richard Guenther <rguenther@suse.de>
8474 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
8475 x * sqrt (x) even when optimizing for size if the target
8476 has native support for sqrt.
8478 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8480 * varasm.c (make_decl_rtl_for_debug): Also clear
8481 flag_mudflap for the duration of make_decl_rtl call.
8484 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
8485 locs from preserved VALUEs.
8487 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8490 * pa.md (movmemsi): Set align to one if zero.
8491 (movmemdi): Likewise.
8493 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
8496 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
8497 with their corresponding prologue pushes.
8499 2010-03-20 Andrew Pinski <pinskia@gmail.com>
8502 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
8503 at the begining or end.
8504 (spu_expand_epilogue): Likewise.
8506 2010-03-20 Richard Guenther <rguenther@suse.de>
8508 PR rtl-optimization/43438
8509 * combine.c (make_extraction): Properly zero-/sign-extend an
8510 extraction of the low part of a CONST_INT. Also handle
8513 2010-03-19 Mike Stump <mikestump@comcast.net>
8515 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
8516 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
8517 (override_options): Use SUBTARGET32_DEFAULT_CPU.
8519 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
8522 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
8525 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
8527 PR rtl-optimization/42258
8528 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
8529 use that may match DEF.
8532 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
8533 the cost of loading the constant rather than assuming
8535 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
8536 outer code is AND, do the same tests as the andsi3 expander and
8537 return COSTS_N_INSNS (1) if and is cheap.
8539 * optabs.c (avoid_expensive_constant): Fix formatting.
8541 2010-03-19 Michael Matz <matz@suse.de>
8544 * attribs.c (decl_attributes): When rebuilding a function pointer
8545 type use the same qualifiers as the original pointer type.
8547 2010-03-19 Martin Jambor <mjambor@suse.cz>
8549 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
8550 and is_gimple_ip_invariant_address.
8552 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8555 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8557 * config/arm/arm.c (arm_override_options): Turn off
8558 flag_dwarf2_cfi_asm for AAPCS variants.
8560 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8563 * config/arm/arm.c (emit_multi_reg_push): Update comments.
8564 Use PRE_MODIFY instead of PRE_DEC.
8565 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
8566 (vfp_emit_fstmd): Likewise.
8568 2010-03-19 Michael Matz <matz@suse.de>
8571 * builtins.c (expand_builtin_interclass_mathfn,
8572 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
8575 2010-03-19 Richard Guenther <rguenther@suse.de>
8577 PR tree-optimization/43415
8578 * tree-ssa-pre.c (phi_translate): Split out worker to ...
8579 (phi_translate_1): ... this.
8580 (phi_translate): Move all caching here. Cache all NARY
8581 and REFERENCE translations.
8583 2010-03-19 David S. Miller <davem@davemloft.net>
8585 With help from Eric Botcazou.
8586 * config/sparc/sparc.c: Include dwarf2out.h.
8587 (emit_pic_helper): Delete.
8588 (pic_helper_symbol_name): Delete.
8589 (pic_helper_emitted_p): Delete.
8590 (pic_helper_needed): New.
8591 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
8592 (get_pc_thunk_name): New.
8593 (load_pic_register): Remove 'delay_pic_helper' arg. Use
8594 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
8595 Set pic_helper_needed to true. Don't call emit_pic_helper.
8596 (sparc_expand_prologue): Update load_pic_register call.
8597 (sparc_output_mi_thunk): Likewise.
8598 (sparc_file_end): Emit a hidden comdat symbol for the PIC
8599 thunk if possible. Output CFI information as needed.
8601 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8602 Jack Howarth <howarth@bromo.med.uc.edu>
8605 * config/i386/i386.h: Fix ABI on darwin x86-32.
8607 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
8609 * tree.h: Declare make_decl_rtl_for_debug.
8610 * varasm.c (make_decl_rtl_for_debug): New.
8611 * dwarf2out.c (rtl_for_decl_location): Call it.
8612 * cfgexpand.c (expand_debug_expr): Call it.
8614 2010-03-18 Jakub Jelinek <jakub@redhat.com>
8617 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
8621 * var-tracking.c (vt_init_cfa_base): Do nothing if
8622 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
8624 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
8627 * var-tracking.c (canonicalize_vars_star): New.
8628 (dataflow_post_merge_adjust): Use it.
8630 2010-03-18 Jakub Jelinek <jakub@redhat.com>
8633 * var-tracking.c (non_suitable_const): New function.
8634 (add_uses): For DEBUG_INSNs with constants, don't record any
8635 value, instead just the constant value itself.
8636 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
8637 is not VAR_LOC_UNKNOWN_P, set var to the constant.
8638 (emit_notes_in_bb): Likewise.
8639 (emit_note_insn_var_location): For onepart variables if
8640 cur_loc is a VOIDmode constant, use DECL_MODE.
8642 2010-03-18 Martin Jambor <mjambor@suse.cz>
8645 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
8646 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
8647 all non-clones. Moved call redirection...
8648 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
8649 (cgraph_materialize_all_clones): Dispose of all
8650 combined_args_to_skip bitmaps.
8651 (verify_cgraph_node): Do not check for edges pointing to wrong
8652 nodes in inline clones.
8653 * tree-inline.c (copy_bb): Call
8654 cgraph_redirect_edge_call_stmt_to_callee.
8655 * ipa.c (cgraph_remove_unreachable_nodes): Call
8656 cgraph_node_remove_callees even when there are used clones.
8658 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8660 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
8662 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8665 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
8668 2010-03-18 Michael Matz <matz@suse.de>
8671 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
8672 into sqrt(x) if we need to preserve signed zeros.
8674 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
8675 Eric Botcazou <ebotcazou@adacore.com>
8677 PR rtl-optimization/43360
8678 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
8679 note if we don't know its invariant status.
8681 2010-03-18 Michael Matz <matz@suse.de>
8683 PR tree-optimization/43402
8684 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
8685 PHI chains of ssa names registered for update.
8687 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
8690 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
8691 non-offsettable and pre_modify update addressing.
8692 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
8693 and "2" alternatives "#".
8694 (*movdd_softfloat32): Make all alternatives "#";
8695 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
8696 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
8697 (*movdf_softfloat32): Make all alternatives "#";
8698 (movdi): Use the new DIFD mode iterator to create a common splitter
8699 for movdi, movdf and movdd patterns.
8701 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
8703 * common.opt (dumpdir): Remove redundant tab.
8705 2010-03-17 Martin Jambor <mjambor@suse.cz>
8707 PR tree-optimization/43347
8708 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
8709 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
8711 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
8713 PR rtl-optimization/42216
8714 * regrename.c (create_new_chain): New function, broken out from...
8715 (scan_rtx_reg): ... here. Call it. Handle the case where we are
8716 appending a use to an empty chain.
8717 (build_def_use): Remove previous changes that convert OP_INOUT to
8718 OP_OUT operands; instead detect the case where an OP_INOUT operand
8719 uses a previously untracked register and create an empty chain for it.
8721 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8723 * doc/extend.texi (Function Attributes): Rewrite unfinished
8724 sentence in ms_abi documentation.
8726 2010-03-17 Alan Modra <amodra@gmail.com>
8728 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
8729 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
8730 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
8731 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
8733 2010-03-16 Richard Henderson <rth@redhat.com>
8736 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
8737 (lower_try_finally): Save and restore eh_seq around the expansion
8740 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
8742 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
8743 statements before splitting block.
8745 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8747 * doc/sourcebuild.texi (Testsuites): Fix markup.
8748 Use pathnames relative to gcc/testsuite.
8749 (Test Directives): Move description of how timeout is determined.
8750 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
8751 (C Tests): Correct gcc.misc-tests directory.
8752 Framework tests now live in gcc.test-framework.
8754 2010-03-16 Richard Guenther <rguenther@suse.de>
8757 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
8758 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
8760 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
8761 Alexandre Oliva <aoliva@redhat.com>
8763 PR tree-optimization/42917
8764 * lambda-code.c (remove_iv): Skip debug statements.
8765 (lambda_loopnest_to_gcc_loopnest): Likewise.
8766 (not_interesting_stmt): Debug statements are not interesting.
8768 2010-03-16 Jakub Jelinek <jakub@redhat.com>
8772 * cselib.c (cselib_preserve_constants,
8773 cfa_base_preserved_val): New static variables.
8774 (preserve_only_constants): New function.
8775 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
8776 clear its REG_VALUES. If cselib_preserve_constants, don't
8777 empty the whole hash table, but preserve there VALUEs with constants,
8778 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
8779 (cselib_preserve_cfa_base_value): New function.
8780 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
8781 (cselib_init): Change argument to int bitfield. Set
8782 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
8784 (cselib_finish): Clear cselib_preserve_constants and
8785 cfa_base_preserved_val.
8786 * cselib.h (enum cselib_record_what): New enum.
8787 (cselib_init): Change argument to int.
8788 (cselib_preserve_cfa_base_value): New prototype.
8789 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
8790 * dse.c (dse_step1): Likewise.
8791 * cfgcleanup.c (thread_jump): Likewise.
8792 * sched-deps.c (sched_analyze): Likewise.
8793 * gcse.c (local_cprop_pass): Likewise.
8794 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
8795 If FN is non-NULL, call the callback always and whenever it returns
8796 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
8797 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
8798 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
8799 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
8800 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
8801 * var-tracking.c: Include recog.h.
8802 (bb_stack_adjust_offset): Remove.
8803 (vt_stack_adjustments): Don't call it, instead just gather the
8804 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
8805 (adjust_stack_reference): Remove.
8806 (compute_cfa_pointer): New function.
8807 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
8808 (struct adjust_mem_data): New type.
8809 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
8811 (get_address_mode): New function.
8812 (replace_expr_with_values): Use it.
8813 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
8814 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
8815 (adjust_sets): Remove.
8816 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
8817 Use get_address_mode.
8818 (get_adjusted_src): Remove.
8819 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
8820 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
8821 (add_with_sets): Don't call adjust_sets.
8822 (fp_setter, vt_init_cfa_base): New functions.
8823 (vt_initialize): Change return type to bool. Move most of pool etc.
8824 initialization to the beginning of the function from end. Pass
8825 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
8826 If !frame_pointer_needed, call vt_stack_adjustment before mos
8827 vector is filled, call vt_init_cfa_base if argp/framep has been
8828 eliminated to sp. If frame_pointer_needed and argp/framep has
8829 been eliminated to hard frame pointer, set
8830 hard_frame_pointer_adjustment and call vt_init_cfa_base after
8831 encountering fp setter in the prologue. For MO_ADJUST, call
8832 log_op_type before pusing the op into mos vector, not afterwards.
8833 Call adjust_insn before cselib_process_insn/add_with_sets,
8834 call cancel_changes (0) afterwards.
8835 (variable_tracking_main_1): Adjust for vt_initialize calling
8836 vt_stack_adjustments and returning whether it succeeded or not.
8838 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
8840 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
8843 2010-03-15 Jakub Jelinek <jakub@redhat.com>
8845 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
8847 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
8848 drap_reg has not been set.
8850 2010-03-15 Michael Matz <matz@suse.de>
8853 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
8854 use it to expand block copies.
8855 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8856 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
8857 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
8859 2010-03-15 Richard Guenther <rguenther@suse.de>
8861 PR tree-optimization/43367
8862 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
8865 2010-03-15 Richard Guenther <rguenther@suse.de>
8867 PR tree-optimization/43317
8868 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
8870 2010-03-15 Martin Jambor <mjambor@suse.cz>
8872 PR tree-optimization/43141
8873 * tree-sra.c (create_abstract_origin): New function.
8874 (modify_function): Call create_abstract_origin.
8876 2010-03-15 Chris Demetriou <cgd@google.com>
8878 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
8881 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8884 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
8885 call insert_out_of_ssa_copy for default definitions.
8887 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8889 * graphite-clast-to-gimple.c (my_long_long): Defined.
8890 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
8891 * graphite-sese-to-poly.c (my_long_long): Defined.
8892 (scop_ivs_can_be_represented): Use it.
8894 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8896 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
8897 graphite-max-bbs-per-function, and loop-block-tile-size.
8898 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
8900 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
8902 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8904 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
8905 forward declaration.
8906 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
8907 (add_upper_bounds_from_estimated_nit): New.
8908 (build_loop_iteration_domains): Use it.
8910 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8912 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
8914 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8917 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
8918 should be an INTEGER_CST. Also handle CASE_CONVERT.
8920 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8922 * graphite.c (graphite_initialize): To bound the number of bbs per
8923 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8924 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
8925 * doc/invoke.texi: Document it.
8927 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8929 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
8930 * graphite-sese-to-poly.h (build_poly_scop): Same.
8932 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8934 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
8935 the number of parameters in the scop. Use as an upper bound
8936 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
8937 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
8938 * doc/invoke.texi: Document it.
8940 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
8942 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
8943 * doc/c-tree.texi: Remove.
8944 * doc/generic.texi: Merge c-tree.texi here.
8945 * doc/gccint.texi (Trees): Remove menu entry.
8946 (c-tree.texi): Remove @include.
8947 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
8948 * doc/languages.texi (Reading RTL): Ditto.
8950 2010-03-12 Steve Ellcey <sje@cup.hp.com>
8953 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
8955 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8958 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
8959 code added to work around reload clobbering CONST insns.
8961 2010-03-12 Jakub Jelinek <jakub@redhat.com>
8963 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
8964 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
8965 (cselib_preserve_only_values): Remove retain argument, don't
8966 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
8967 * cselib.h (cselib_preserve_only_values): Remove retain argument.
8968 * var-tracking.c (micro_operation): Move insn field before union.
8969 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
8970 (struct variable_tracking_info_def): Remove n_mos field, change
8971 mos into a vector of micro_operations.
8972 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
8973 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
8974 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
8975 changing into a vector.
8976 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
8977 come before all other uops generated by add_stores.
8978 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
8980 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
8981 a vector. Run just one pass over the bbs instead of separate counting
8982 and computation phase.
8983 (vt_finalize): Free VTI (bb)->mos vector instead of array.
8986 * tree-inline.c (remap_decls): Put old_var rather than origin_var
8987 into *nonlocalized_list vector.
8988 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
8989 even if origin is non-NULL.
8990 (gen_variable_die): Likewise.
8991 (process_scope_var): Don't change origin.
8992 (gen_decl_die): Likewise.
8993 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
8994 before adding new edges instead of after it, fix moving over
8997 2010-03-11 David S. Miller <davem@davemloft.net>
8999 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
9001 * configure: Rebuild.
9003 2010-03-11 Martin Jambor <mjambor@suse.cz>
9005 PR tree-optimization/43257
9006 * tree.c (assign_assembler_name_if_neeeded): New function.
9007 (free_lang_data_in_cgraph): Assembler name assignment moved to the
9009 * tree.h (assign_assembler_name_if_neeeded): Declare.
9010 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
9011 the function if needed.
9013 2010-03-11 Chris Demetriou <cgd@google.com>
9015 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
9016 include/stdint-gcc.h, and include/stdint.h world-readable.
9018 2010-03-11 Richard Guenther <rguenther@suse.de>
9020 PR tree-optimization/43255
9021 * tree-vrp.c (process_assert_insertions_for): Do not insert
9022 asserts for trivial conditions.
9024 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9026 PR tree-optimization/43280
9027 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
9028 generation. Move calculation of size out of the if branch.
9029 (find_bswap): Modify compare number generation.
9031 2010-03-11 Richard Guenther <rguenther@suse.de>
9034 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
9035 (input_gimple_stmt): Fixup handled component types during
9036 operand read. Also fix up decls in ADDR_EXPRs.
9038 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
9040 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
9041 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
9043 2010-03-10 Jan Hubicka <jh@suse.cz>
9046 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
9047 * varasm.c (get_variable_section): Don't do that here...
9048 (make_decl_rtl): ... and here.
9049 (do_assemble_alias): Produce decl RTL.
9050 (assemble_alias): Likewise.
9052 2010-03-10 Jakub Jelinek <jakub@redhat.com>
9055 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
9056 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
9058 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
9059 (based_loc_descr): Only express drap or vdrap regno based expressions
9060 using DW_OP_fbreg when not optimizing.
9061 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
9062 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
9063 REG_CFA_SET_VDRAP note.
9065 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
9067 PR tree-optimization/43236
9068 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
9069 error in calculation of base address in reverse iteration case.
9070 (generate_builtin): Take number of latch executions if the statement
9073 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
9076 * tree-eh.c: Include pointer-set.h.
9077 (lower_eh_dispatch): Filter out duplicate case labels and
9078 remove the unneeded edge when the label is unused. Return
9079 true when some edges are removed.
9080 (execute_lower_eh_dispatch): When any lowering resulted in
9081 removing an edge, also delete unreachable blocks.
9083 2010-03-10 Jakub Jelinek <jakub@redhat.com>
9086 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9087 UNSPEC_MACHOPIC_OFFSET.
9089 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
9092 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
9093 (m68k_delegitimize_address): New function.
9095 2010-03-09 Jakub Jelinek <jakub@redhat.com>
9098 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
9101 * var-tracking.c (adjust_sets): New function.
9102 (count_with_sets, add_with_sets): Use it.
9103 (get_adjusted_src): New inline function.
9104 (add_stores): Use it.
9107 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
9108 call cselib_dummy_expand_value_rtx_cb instead of
9109 cselib_expand_value_rtx_cb.
9112 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
9113 * config/i386/i386.c: Include debug.h and dwarf2out.h.
9114 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
9115 and .cfi_endproc around the pic thunks.
9116 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
9117 all queued unwind info register saves are saved before the call.
9118 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
9119 considered as sp-=4 for unwind info and the pop as sp+=4 which
9120 also clobbers dest, but doesn't actually restore it.
9123 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
9124 RTX_FRAME_RELATED_P.
9126 2010-03-09 Jie Zhang <jie@codesourcery.com>
9128 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
9129 whitespaces in output template.
9131 2010-03-09 Jie Zhang <jie@codesourcery.com>
9133 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
9136 2010-03-08 Jakub Jelinek <jakub@redhat.com>
9138 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
9139 builtins.exp in a separate job.
9141 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9143 * graphite-sese-to-poly.c (add_param_constraints): Use
9144 lower_bound_in_type and upper_bound_in_type.
9146 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9148 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
9149 instead of unsigned_type_node.
9151 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9152 Reza Yazdani <reza.yazdani@amd.com>
9155 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
9156 on pointer type parameters.
9158 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9162 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
9163 handle conversions from pointer to integers.
9164 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
9165 induction variable, to be able to work with code generated by CLooG.
9166 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
9167 (build_poly_scop): Bail out if we cannot codegen a loop.
9169 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9171 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
9172 code generation with gloog_error.
9174 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9176 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
9177 Call fold_convert on all the returned values.
9178 (expand_scalar_variables_expr): Pass to
9179 expand_scalar_variables_ssa_name the type of the resulting expression.
9181 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9183 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
9184 ppl_min_for_le_pointset.
9185 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
9186 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
9188 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9190 * graphite-dependences.c (map_into_dep_poly): Removed.
9191 (dependence_polyhedron_1): Use combine_context_id_scat.
9193 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9195 * graphite-poly.h (struct poly_scattering): Add layout documentation.
9196 (struct poly_bb): Same.
9197 (combine_context_id_scat): New.
9199 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9202 * sese.c (name_defined_in_loop_p): Return false for default
9205 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9207 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
9208 and clean up the logic.
9210 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9212 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
9215 2010-03-08 Jakub Jelinek <jakub@redhat.com>
9217 * var-tracking.c (remove_cselib_value_chains): Define only for
9219 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
9220 delete_slot_part, emit_notes_for_differences_1): Don't call
9221 remove_cselib_value_chains here.
9222 (set_slot_part, emit_notes_for_differences_2): Don't call
9223 add_cselib_value_chains here.
9224 (preserved_values): New vector.
9225 (preserve_value): New function.
9226 (add_uses, add_stores, vt_add_function_parameters): Use it
9227 instead of cselib_preserve_value.
9228 (changed_values_stack): New vector.
9229 (check_changed_vars_0): New function.
9230 (check_changed_vars_1, check_changed_vars_2): Use it.
9231 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
9232 changed_values_stack VALUEs.
9233 (vt_emit_notes): For all preserved_values call
9234 add_cselib_value_chains. If ENABLE_CHECKING call
9235 remove_cselib_value_chains before verifying value_chains is empty.
9236 Initialize and free changed_values_stack.
9237 (vt_initialize): Initialize preserved_values.
9238 (vt_finalize): Free preserved_values.
9240 2010-03-08 Richard Guenther <rguenther@suse.de>
9242 PR tree-optimization/43269
9243 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
9246 2010-03-08 Martin Jambor <mjambor@suse.cz>
9248 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
9249 (ipa_is_param_called): Removed.
9250 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
9251 (ipa_print_node_params): Do not print the called flag.
9252 (ipa_write_node_info): Do not stream the called flag.
9253 (ipa_read_node_info): Likewise.
9255 2010-03-07 Jakub Jelinek <jakub@redhat.com>
9258 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
9259 * cselib.c (struct expand_value_data): Add dummy field.
9260 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
9262 (cselib_dummy_expand_value_rtx_cb): New function.
9263 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
9265 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
9266 * var-tracking.c: Include pointer-set.h.
9267 (variable): Change n_var_parts to char from int. Add
9268 cur_loc_changed and in_changed_variables fields.
9269 (variable_canonicalize): Remove.
9270 (shared_var_p): New inline function.
9271 (unshare_variable): Maintain cur_loc_changed and
9272 in_changed_variables fields. If var was in changed_variables,
9273 replace it there with new_var. Just copy cur_loc instead of
9274 resetting it to something else.
9275 (variable_union): Don't recompute cur_loc. Use shared_var_p.
9276 (dataflow_set_union): Don't call variable_canonicalize.
9277 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
9278 of their DEBUG_EXPR_TREE_DECLs.
9279 (canonicalize_loc_order_check): Verify that cur_loc is NULL
9280 and in_changed_variables and cur_loc_changed is false.
9281 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
9282 and cur_loc_changed. Don't update cur_loc here.
9283 (variable_merge_over_src): Don't call variable_canonicalize.
9284 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
9285 removing loc that is equal to cur_loc, clear cur_loc,
9286 set cur_loc_changed and ensure variable_was_changed is called.
9287 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
9288 compare pointers in cur_loc check, if it is equal to loc,
9289 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
9290 (variable_different_p): Remove compare_current_location argument,
9291 don't compare cur_loc.
9292 (dataflow_set_different_1): Adjust variable_different_p caller.
9293 (variable_was_changed): If dv had some var in changed_variables
9294 already, reset in_changed_variables flag for it and propagate
9295 cur_loc_changed over to the new variable. On empty var
9296 always set cur_loc_changed. Set in_changed_variables on whatever
9297 var is added to changed_variables.
9298 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
9299 Use shared_var_p. When removing loc that is equal to cur_loc,
9300 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
9301 end, don't set it to something else, just call variable_was_changed.
9302 (delete_slot_part): Use shared_var_p. When cur_loc equals to
9303 loc being removed, clear cur_loc and set cur_loc_changed.
9304 Set cur_loc_changed if all locations have been removed.
9305 (struct expand_loc_callback_data): New type.
9306 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
9307 allocated. Always create SUBREGs if simplify_subreg failed.
9308 Prefer to use cur_loc, when that fails and still in
9309 changed_variables (and seen first time) recompute it. Set
9310 cur_loc_changed of variables which had to change cur_loc and
9311 compute elcd->cur_loc_changed if any of the subexpressions used
9312 had to change cur_loc.
9313 (vt_expand_loc): Adjust to pass arguments in
9314 expand_loc_callback_data structure.
9315 (vt_expand_loc_dummy): New function.
9316 (emitted_notes): New variable.
9317 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
9318 that weren't used for any other decl in current
9319 emit_notes_for_changes call call vt_expand_loc_dummy to update
9320 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
9321 first loc_chain location if NULL before. Always use just
9322 cur_loc instead of first loc_chain location. When cur_loc_changed
9323 is false, when not --enable-checking=rtl just don't emit any note.
9324 When rtl checking, compute the note and assert it is the same
9325 as previous note. Clear cur_loc_changed and in_changed_variables
9326 at the end before removing from changed_variables.
9327 (check_changed_vars_3): New function.
9328 (emit_notes_for_changes): Traverse changed_vars to call
9329 check_changed_vars_3 on each changed var.
9330 (emit_notes_for_differences_1): Clear cur_loc_changed and
9331 in_changed_variables. Recompute cur_loc of new_var.
9332 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
9333 (vt_emit_notes): Initialize and destroy emitted_notes.
9335 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
9337 PR rtl-optimization/42220
9338 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
9339 Use verify_reg_tracked to determine if we should use OP_OUT rather
9341 (build_def_use): If we see an in-out operand for a register that we
9342 know nothing about, treat is an output if possible, fail the block if
9345 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9348 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
9351 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9354 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
9355 uses of relevant DEFs that are dead outside the loop too.
9357 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9359 * var-tracking.c (dataflow_set_merge): Swap src and src2.
9361 2010-01-13 Jakub Jelinek <jakub@redhat.com>
9363 * var-tracking.c (values_to_unmark): New variable.
9364 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9365 values_to_unmark vector. Moved body to...
9366 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
9367 instead queue it into values_to_unmark vector.
9368 (vt_find_locations): Free values_to_unmark vector.
9370 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
9372 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
9373 (site.exp): Export them when plugins are enabled.
9375 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
9378 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
9380 (chrec_fold_multiply): Same.
9382 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
9385 * c-decl.c (build_compound_literal): Return early if init is
9388 2010-03-04 Martin Jambor <mjambor@suse.cz>
9390 PR tree-optimization/43164
9391 PR tree-optimization/43191
9392 * tree-sra.c (type_consists_of_records_p): Reject records with
9393 zero-size bit-fields at the end.
9395 2010-03-04 Mike Stump <mikestump@comcast.net>
9397 * Makefile.in (TAGS): Remove *.y.
9399 2010-03-04 Richard Guenther <rguenther@suse.de>
9401 PR tree-optimization/40761
9402 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
9404 (my_rev_post_order_compute): New function.
9405 (init_pre): Call it.
9407 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
9410 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
9411 decrease the cost of an IV candidate when the cost is infinite.
9413 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9415 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
9416 Use '3DNow!' for the extension of that name, ensure normal space
9418 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
9420 2010-03-03 Jeff Law <law@redhat.com>
9422 * PR middle-end/32693
9423 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
9424 than gen_rtx_SUBREG.
9425 (extract_bit_field_1): Likewise.
9427 2010-03-03 Janis Johnson <janis187@us.ibm.com>
9429 * doc/sourcebuild.texi (Test directives): Document that arguments
9430 include-opts and exclude-opts are now optional for dg-skip-if,
9431 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
9433 2010-03-03 Jason Merrill <jason@redhat.com>
9436 * cgraph.h (varpool_node): Add extra_name field.
9437 * varpool.c (varpool_extra_name_alias): New.
9438 (varpool_assemble_decl): Emit extra name aliases.
9439 (varpool_mark_needed_node): Look past an extra name alias.
9440 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
9441 * lto-streamer-in.c (lto_input_tree): Read it.
9442 * lto-streamer-out.c (output_unreferenced_globals): Write it.
9444 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
9446 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
9447 (sparc*-*-solaris2*): ...this.
9449 2010-03-03 Jakub Jelinek <jakub@redhat.com>
9452 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
9453 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
9454 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
9455 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
9458 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
9459 fallthrough to default handling, just with want_address 0 instead of 2.
9460 For single element lists, add_AT_loc directly, otherwise create an
9461 artificial variable DIE and stick location list to it.
9464 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
9465 (VAL_EXPR_HAS_REVERSE): Define.
9466 (reverse_op): New function.
9467 (add_stores): For reversible operations add an extra MO_VAL_USE.
9469 2010-03-02 Jason Merrill <jason@redhat.com>
9471 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
9473 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
9475 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
9476 (sparc64-*-linux*): Likewise.
9477 (sparc64-*-solaris2*): Include assembler files before linker ones.
9478 (sparc-*-solaris2*): Simplify and reorder to match previous case.
9479 * config/sparc/gas.h: Delete.
9480 * config/sparc/sol2-64.h: Add copyright notice.
9481 * config/sparc/sol2-gas-bi.h: Likewise.
9482 * config/sparc/sol2-gld.h: Likewise.
9483 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
9484 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
9485 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
9486 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
9487 (sparc_elf_asm_named_section): Rename into...
9488 (sparc_solaris_elf_asm_named_section): ...this. Always define.
9490 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
9492 * config/alpha/alpha.c (override_options): Fix -mtune error message.
9494 2010-03-02 Jeff Law <law@redhat.com>
9497 * reload1.c (rtx_p, substitute_stack): Declare.
9498 (substitute): Record addresses of changed rtxs.
9499 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
9500 Restore the original rtx when complete.
9501 (reload): Free subsitute_stack when complete.
9503 2010-03-02 Janis Johnson <janis187@us.ibm.com>
9505 * doc/gccint.texi (menu): Add Testsuites as a chapter.
9506 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
9508 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
9509 LTO Testing, gcov Testing, profopt Testing, compat Testing,
9510 Torture Tests): Change from subsection to section.
9512 2010-03-02 Jakub Jelinek <jakub@redhat.com>
9513 Steven Bosscher <steven@gcc.gnu.org>
9515 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
9518 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
9521 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
9522 the assignment from the new induction variable to the assignment
9523 of the value from the original loop PHI function.
9525 2010-03-01 Janis Johnson <janis187@us.ibm.com>
9526 Daniel Jacobowitz <dan@codesourcery.com>
9528 * doc/sourcebuild.texi (Test directives): Clarify options to
9531 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9533 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
9534 Disable cfi directives unless GCC and gas agree on using read-only
9535 .eh_frame sections for 64-bit.
9536 * configure: Regenerate.
9538 2010-03-01 Richard Guenther <rguenther@suse.de>
9540 PR tree-optimization/43220
9541 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
9542 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
9544 2010-03-01 Richard Guenther <rguenther@suse.de>
9545 Martin Jambor <mjambor@suse.cz>
9548 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
9549 gimplified parameters.
9551 2010-03-01 Christian Bruel <christian.bruel@st.com>
9553 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
9555 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9557 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
9559 2010-03-01 Richard Guenther <rguenther@suse.de>
9562 * expr.c (expand_assignment): Use the alias-oracle to tell
9563 if the rhs aliases the result decl.
9565 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9568 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
9569 to sol_gt_pch_get_address.
9570 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
9571 64-bit, SPARC and x86.
9572 (sol_gt_pch_get_address): New function.
9574 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
9576 * toplev.h (inform_n, error_n): Declare.
9577 * diagnostic.c (inform_n, error_n): New function.
9579 2010-03-01 Jakub Jelinek <jakub@redhat.com>
9581 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
9582 has no rtl yet when processing local_decls, queue it and recheck
9583 if deferred stack allocation hasn't assigned it rtl.
9585 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
9587 * config/sh/sh.c (unspec_bbr_uid): New.
9588 (gen_block_redirect): Use it instead of INSN_UID.
9589 (gen_far_branch): Likewise.
9591 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
9593 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
9594 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
9596 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9598 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
9599 (Warning Options): -Wno-conversion-null is valid for
9600 Objective-C++ as well.
9601 * doc/tm.texi (Named Address Spaces): Likewise.
9602 * doc/plugins.texi (Plugins): Replace TABs with spaces.
9603 * doc/tree-ssa.texi (Tree SSA): Likewise.
9605 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9608 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
9609 by default. Don't set the default arch for
9610 i[34567]86-*-darwin*|x86_64-*-darwin*.
9612 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9615 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
9616 default. Set the default 32bit/64bit archs with $with_arch
9617 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
9619 2010-02-27 Richard Guenther <rguenther@suse.de>
9621 PR tree-optimization/43186
9622 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
9623 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
9624 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
9625 unroller iterations.
9627 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9629 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
9630 required and i[34567]86-*-* targets don't support 64bit ISA.
9632 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
9635 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
9638 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9640 * config.gcc: Set the default arch at least to Prescott for
9641 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
9642 if SSE math is enabled.
9644 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9646 * diagnostic.c (diagnostic_initialize): Update.
9647 (diagnostic_report_diagnostic): Test inhibit_notes_p for
9649 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
9650 (diagnostic_inhibit_notes): New.
9651 * toplev.c (process_options): inhibit notes with -fcompare-debug.
9653 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9656 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
9657 * doc/standards.texi: Likewise.
9658 * doc/extend.texi: Likewise.
9659 * doc/trouble.texi: Likewise.
9660 * doc/cppopts.texi: Likewise.
9661 * doc/install.texi: Likewise.
9662 * c.opt (std=c90,std=gnu90): New options.
9663 * c-opts.c (c_common_handle_option): Handle them.
9665 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9668 * c-decl.c (undeclared_variable): Use an informative note.
9670 2010-02-26 Richard Guenther <rguenther@suse.de>
9672 PR tree-optimization/43186
9673 * gimple.h (gimple_fold): Remove.
9674 * gimple.c (gimple_fold): Remove. Inline into single user ...
9675 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
9676 Try harder for conditions.
9678 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9681 * function.c (used_types_insert): Don't skip through named pointer
9682 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
9683 and it is different from the main variant's type.
9685 2010-02-26 Nick Clifton <nickc@redhat.com>
9687 * config/rx/rx.md (sminsi3): Remove bogus alternative.
9689 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9691 * config.gcc: Support --with-fpmath=sse for x86.
9693 * config/i386/ssemath.h: New.
9695 * doc/install.texi (--with-fpmath=sse): Documented.
9697 2010-02-26 Richard Guenther <rguenther@suse.de>
9699 PR tree-optimization/43188
9700 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
9701 vector types of over-aligned element type.
9703 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
9706 * config/i386/i386.c (expand_vec_perm_blend): Use correct
9707 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
9709 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9711 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
9713 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9715 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
9716 * var-tracking.c: Include diagnostic.h.
9717 (debug_dv): New function.
9718 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
9721 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
9722 (add_value_chain, add_value_chains, remove_value_chain,
9723 remove_value_chains): Handle DEBUG_EXPRs.
9724 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
9727 * regcprop.c (struct queued_debug_insn_change): New type.
9728 (struct value_data_entry): Add debug_insn_changes field.
9729 (struct value_data): Add n_debug_insn_changes field.
9730 (debug_insn_changes_pool): New variable.
9731 (free_debug_insn_changes, apply_debug_insn_changes,
9732 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
9733 (kill_value_one_regno): Call free_debug_insn_changes if needed.
9734 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
9736 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
9738 (copyprop_hardreg_forward_1): Don't call apply_change_group for
9739 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
9740 changes, call cprop_find_used_regs via note_stores.
9741 (copyprop_hardreg_forward): When copying vd from predecessor
9742 which has any queued DEBUG_INSN changes, make sure the pointers are
9743 cleared. At the end call df_analyze and then if there are any
9744 DEBUG_INSN changes queued at the end of some basic block for still
9745 live registers, apply them.
9746 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
9748 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
9750 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
9753 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
9755 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
9756 targets. Set the default with_cpu/with_arch from arch/cpu.
9757 Allow x86-64 and native for with_cpu/with_arch.
9759 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
9761 * ebitmap.c: Change calls to verify_popcount with calls to
9762 sbitmap_verify_popcount.
9763 (ebitmap_clear_bit): Fixed map->cacheindex test and
9764 map>cache update when bit clearing results in an empty
9767 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
9770 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
9771 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
9772 and support both V2DF and V2DI modes.
9773 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
9774 support both V2DF and V2DI modes.
9775 (general): Delete trailing whitespace from a few patterns.
9777 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9778 V2DF/V2DI interleave high/low builtins.
9780 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
9783 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
9784 interleave high/low functions.
9786 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9788 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
9789 #pragma extern_prefix.
9791 2010-02-25 Jakub Jelinek <jakub@redhat.com>
9794 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
9795 BLKmode, assert op0 is a MEM and just adjust its mode.
9798 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
9799 if bitpos isn't multiple of mode's bitsize.
9801 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9803 * c.opt (-ftemplate-depth=): New.
9804 (-ftemplate-depth-): Deprecate.
9805 * optc-gen.awk: Handle -ftemplate-depth=.
9806 * opth-gen.awk: Likewise.
9807 * c-opts.c (c_common_handle_option): Likewise.
9808 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
9810 2010-02-24 Jason Merrill <jason@redhat.com>
9812 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
9814 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9816 * cfg.c (alloc_aux_for_block): Remove inline.
9817 (alloc_aux_for_edge): Likewise.
9819 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9821 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
9823 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9825 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
9826 * config/i386/sol2-gas.h: New file.
9827 * config.gcc (i[34567]86-*-solaris2*): Use it.
9829 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9832 * c-typeck.c (ep_convert_and_check): New.
9833 (build_conditional_expr): Use it.
9834 (build_binary_op): Likewise.
9836 2010-02-24 Jakub Jelinek <jakub@redhat.com>
9838 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
9841 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
9842 bounds even for -O+.
9843 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
9844 expr needs to have DECL_NAME set.
9846 2010-02-24 Nick Clifton <nickc@redhat.com>
9848 * config/mep/mep.c: Include gimple.h.
9849 (mep_function_uses_sp): Delete unused function.
9850 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
9851 parameters. Use unsigned integers to count args. Return a
9852 NULL_RTX instead of an error_mark_node. Toidy up formatting.
9854 2010-02-23 Jakub Jelinek <jakub@redhat.com>
9857 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
9858 greater or equal to nelt instead of 2 * nelt.
9859 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
9862 2010-02-23 Jason Merrill <jason@redhat.com>
9865 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
9866 in cfun->local_decls even if they have register types.
9869 * stor-layout.c (place_field): Don't warn about unnecessary
9870 DECL_PACKED if the type is packed.
9872 2010-02-23 Jakub Jelinek <jakub@redhat.com>
9875 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
9876 GOTOFF relocs, even when the base reg isn't pic pointer.
9878 2010-02-23 Michael Matz <matz@suse.de>
9881 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
9882 (expand_gimple_basic_block): Generate and use debug temps if there
9883 are debug uses left after the last real use of TERed ssa names.
9884 Unlink debug immediate uses when they are expanded.
9886 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9889 * config/i386/i386.c (override_options): Reorganise to provide
9890 better error messages.
9892 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9895 * graphite-scop-detection.c (create_single_exit_edge): Move
9896 the call to find_single_exit_edge to....
9897 (create_sese_edges): ...here. Don't handle multiple edges
9898 exiting the function.
9899 (build_graphite_scops): Don't handle multiple edges
9900 exiting the function.
9902 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9905 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
9906 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
9908 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9911 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
9913 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9916 * c-typeck.c (convert_arguments): Print declaration location.
9917 * c-common.c (validate_nargs): Rename as
9918 builtin_function_validate_nargs.
9919 (check_builtin_function_arguments): Update.
9921 2010-02-22 Richard Guenther <rguenther@suse.de>
9924 * tree-inline.c (declare_return_variable): Use the type of
9925 the call stmt lhs if available.
9927 2010-02-22 Duncan Sands <baldrick@free.fr>
9929 * passes.c (register_pass): Always consider all pass lists when
9930 ref_pass_instance_number is zero.
9932 2010-02-22 Richard Guenther <rguenther@suse.de>
9934 PR tree-optimization/42749
9935 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
9936 parameter. Do arithmetic in the original type.
9937 (update_accumulator_with_ops): Likewise.
9938 (adjust_accumulator_values): Adjust.
9940 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9942 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
9943 (QI to BLKmode splitter): New splitter.
9945 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
9947 * config/i386/i386.c (initial_ix86_tune_features): Turn on
9948 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
9950 2010-02-22 Richard Guenther <rguenther@suse.de>
9952 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
9954 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
9956 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
9957 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
9958 ($(T)crti.o, $(T)crtn.o): Remove rules.
9960 2010-02-21 Tobias Burnus <burnus@net-b.de>
9963 * doc/invoke.texi (-fassociative-math): Document that this
9964 option is automatically enabled for Fortran.
9966 2010-02-20 David S. Miller <davem@davemloft.net>
9968 * configure.ac: Test if linker and assembler properly support
9969 GOTDATA_OP relocations.
9970 * configure: Rebuild.
9971 * config.in: Likewise.
9972 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
9973 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
9974 (movsi_high_pic): Likewise.
9975 (movdi_lo_sum_pic): Likewise.
9976 (movdi_high_pic): Likewise.
9977 (movsi_pic_gotdata_op): New pattern.
9978 (movdi_pic_gotdata_op): Likewise.
9979 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
9980 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
9982 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
9985 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
9986 attribute to ssemul.
9987 (xop_mulv2div2di3_high): Ditto.
9989 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9992 * c.opt (Wconversion-null): New option.
9993 * doc/invoke.texi (Wconversion-null): Document.
9995 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9997 * common.opt (Wlarger-than-): Add Undocumented.
9999 2010-02-19 Mike Stump <mikestump@comcast.net>
10001 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
10003 2010-02-19 Jason Merrill <jason@redhat.com>
10006 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
10007 * configure: Likewise.
10009 2010-02-20 Alan Modra <amodra@gmail.com>
10011 PR middle-end/42344
10012 * cgraph.h (cgraph_make_decl_local): Declare.
10013 * cgraph.c (cgraph_make_decl_local): New function.
10014 (cgraph_make_node_local): Use it.
10015 * cgraphunit.c (cgraph_function_versioning): Likewise.
10016 * ipa.c (function_and_variable_visibility): Likewise.
10018 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10021 * except.c (sjlj_emit_function_enter): Don't call
10022 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
10024 * rtl.h (add_reg_br_prob_note): Remove prototype.
10026 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
10029 * c-common.c (conversion_warning): Remove widening conversions
10030 before checking the conversion of integers to reals.
10032 2010-02-19 Mike Stump <mikestump@comcast.net>
10034 PR middle-end/43125
10035 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
10038 * cgraphunit.c (process_function_and_variable_attributes): Check
10039 DECL_PRESERVE_P instead of looking up attribute "used".
10040 * ipa-pure-const.c (check_decl): Likewise.
10041 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
10042 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
10043 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
10044 instead of attribute "used".
10045 * config/sol2-c.c (solaris_pragma_init): Likewise.
10046 (solaris_pragma_fini): Likewise.
10048 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10050 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
10051 Use XCNEW instead of xcalloc.
10052 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
10053 XNEW instead of xmalloc.
10054 (get_fields): Use XNEWVEC instead of xmalloc.
10057 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
10058 populate vars array.
10059 (create_new_general_access): For debug stmts just reset value.
10060 (get_stmt_accesses): For accesses within debug stmts just record them
10061 using add_access_to_acc_sites instead of preventing the peeling or
10062 counting them as accesses.
10064 PR middle-end/42233
10065 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
10067 2010-02-19 Richard Guenther <rguenther@suse.de>
10069 PR tree-optimization/42916
10070 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
10073 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
10075 * configure.ac: Replace all uses of changequote in macro arguments
10076 with proper quoting.
10078 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10080 PR middle-end/42233
10081 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
10083 2010-02-19 Richard Guenther <rguenther@suse.de>
10085 PR tree-optimization/42944
10086 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
10087 test for aliasing with errno.
10089 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10091 PR middle-end/42233
10092 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
10093 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
10094 * dojump.c: Include output.h.
10095 (inv): New inline function.
10096 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
10097 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
10098 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
10099 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
10100 argument, pass it down to other calls.
10101 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
10102 add REG_BR_PROB note to the conditional jump.
10103 * cfgexpand.c (add_reg_br_prob_note): Removed.
10104 (expand_gimple_cond): Don't call it, add the probability
10105 as last argument to jumpif_1/jumpifnot_1.
10106 * Makefile.in (dojump.o): Depend on output.h.
10107 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
10109 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
10110 * stmt.c (do_jump_if_equal): Likewise.
10111 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
10112 * loop-unswitch.c (compare_and_jump_seq): Likewise.
10113 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
10115 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
10116 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
10117 jumpifnot_1 callers.
10118 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
10120 (store_expr): Adjust jumpifnot caller.
10121 (store_constructor): Adjust jumpif caller.
10123 PR middle-end/42233
10124 * gimplify.c (gimple_boolify): For __builtin_expect call
10125 gimple_boolify also on its first argument.
10127 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
10129 * configure.ac (gnu-unique-object): Wrap regexps using [] in
10131 (__stack_chk_fail): Ditto. Remove quadrigraphs.
10132 * configure: Regenerated.
10134 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10136 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
10137 lang_hooks.types_compatible_p instead of comptypes.
10139 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
10141 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
10142 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
10143 if __prefer_thumb__ is defined.
10145 2010-02-18 Martin Jambor <mjambor@suse.cz>
10147 PR tree-optimization/43066
10148 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
10149 array with zero-sized element type.
10151 2010-02-18 Jakub Jelinek <jakub@redhat.com>
10153 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
10154 rtx, allocate struct var_loc_node here and return it to the
10155 caller, and only if it is actually needed.
10156 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
10157 move it earlier and return immediately if it returns NULL.
10159 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
10161 * config/sparc/gas.h: New file. Restore
10162 TARGET_ASM_NAMED_SECTION to its ELF default.
10163 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
10164 check !HAVE_GNU_AS.
10165 * config/sparc/sparc.c (sparc_elf_asm_named_section):
10166 Likewise. Add ATTRIBUTE_UNUSED to prototype.
10167 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
10168 after sparc/sysv4.h.
10170 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
10172 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
10174 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
10176 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
10177 patterns from predicated pattern.
10179 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
10182 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
10183 for insn mnemonic suffix.
10185 2010-02-17 Richard Guenther <rguenther@suse.de>
10187 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
10190 2010-02-17 Jakub Jelinek <jakub@redhat.com>
10193 * caller-save.c (save_call_clobbered_regs): If BB ends with
10194 a DEBUG_INSN, move any notes in between last real insn and the last
10195 DEBUG_INSN after the last DEBUG_INSN.
10197 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
10199 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
10200 Fix return type. Fix argument type. Explain meaning of return value.
10202 2010-02-16 Richard Guenther <rguenther@suse.de>
10204 PR tree-optimization/41043
10205 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
10206 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
10208 (vrp_visit_phi_node): ... but only for loop PHI nodes.
10210 2010-02-16 Ira Rosen <irar@il.ibm.com>
10212 PR tree-optimization/43074
10213 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
10214 * tree-vect-loop.c (vect_analyze_loop_operations): Add
10215 vectorizable cycles in hybrid SLP check.
10216 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
10218 2010-02-16 Richard Guenther <rguenther@suse.de>
10220 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
10221 (true_dependence): If memrefs_conflict_p computes must-alias
10222 trust it. Move TBAA check after offset-based disambiguation.
10223 (canon_true_dependence): Likewise.
10225 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
10227 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
10228 * doc/invoke.texi: Document it.
10229 * var-tracking.c: Include toplev.h and params.h.
10230 (vt_find_locations): Return bool indicating success. Compute
10231 hash sizes unconditionally. Check new parameter, report.
10232 (variable_tracking_main_1): Check vt_find_locations results and
10233 retry. Renamed from...
10234 (variable_tracking_main): ... this. New wrapper to preserve
10235 flag_var_tracking_assignments.
10236 * Makefile.in (var-tracking.o): Adjust dependencies.
10238 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
10239 Jakub Jelinek <jakub@redhat.com>
10242 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
10243 if weak_import attribute is present.
10244 * config/darwin.c (machopic_select_section): Likewise.
10246 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
10248 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
10249 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
10250 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
10251 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
10253 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
10256 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
10257 Fix argument types.
10259 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
10260 Rewrite text to refer to the names.
10262 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
10264 * config/i386/i386-builtin-types.def
10265 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
10266 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
10267 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
10268 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
10269 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
10270 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
10271 IX86_BUILTIN_VPERMIL2PS256.
10272 (MULTI_ARG_4_DF2_DI_I): Defined.
10273 (MULTI_ARG_4_DF2_DI_I1): Defined.
10274 (MULTI_ARG_4_SF2_SI_I): Defined.
10275 (MULTI_ARG_4_SF2_SI_I1): Defined.
10276 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
10277 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
10278 __builtin_ia32_vpermil2ps256.
10279 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10280 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10281 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
10282 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10283 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10284 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
10285 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
10286 CODE_FOR_xop_vpermil2v8sf3.
10287 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
10288 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
10289 * config/i386/xopintrin.h (_mm_permute2_pd): New.
10290 (_mm256_permute2_pd): New.
10291 (_mm_permute2_ps): New.
10292 (_mm256_permute2_ps): New.
10294 2010-02-15 Nick Clifton <nickc@redhat.com>
10296 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
10297 boolean parameters. Use emit_jump_insn when emitting a pop
10298 instruction containing a return insn.
10299 (push): Use 'true' rather than '1' as second parameter to F.
10300 (h8300_expand_prologue): Likewise.
10301 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
10302 (h8300_expand_epilogue): Likewise.
10304 2010-02-15 Richard Guenther <rguenther@suse.de>
10306 PR middle-end/43068
10307 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
10310 2010-02-15 Nick Clifton <nickc@redhat.com>
10312 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
10315 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
10317 * intl.c (fake_ngettext): New function.
10318 * intl.h (fake_ngettext): Declare.
10319 (ngettext): Define macro.
10320 * collect2.c (notice_translated): New function.
10321 (main): Use notice_translated and ngettext.
10322 * collect2.h (notice_translated): Declare.
10324 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
10326 * reorg.c (delete_computation): Comment fixes.
10327 * caller-save.c (setup_save_areas): Idem.
10328 * sel-sched-dump.c (dump_lv_set): Idem.
10331 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10333 * config/s390/s390.c (s390_sched_init): New function.
10334 (TARGET_SCHED_INIT): Target hook defined.
10336 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
10337 Jack Howarth <howarth@bromo.med.uc.edu>
10338 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10341 Partial revert of unintended change in fix for PR41605.
10342 * config/darwin.h: Fix typo.
10343 * config/darwin9.h: Same.
10345 2010-02-11 Jakub Jelinek <jakub@redhat.com>
10347 * c-pch.c (pch_init): Clear v.
10349 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10351 PR middle-end/42930
10352 * graphite-scop-detection.c (graphite_can_represent_scev): Call
10353 graphite_can_represent_init for MULT_EXPR.
10355 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10357 PR middle-end/42914
10358 PR middle-end/42530
10359 * graphite-sese-to-poly.c (remove_phi): New.
10360 (translate_scalar_reduction_to_array): Call remove_phi.
10362 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10364 PR middle-end/42771
10365 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
10366 * graphite-clast-to-gimple.h (gloog): Update declaration.
10367 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
10368 * graphite-poly.h (struct poly_bb): Add missing comments.
10369 (struct scop): Add poly_scop_p field.
10370 (POLY_SCOP_P): New.
10371 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
10372 * graphite.c (graphite_transform_loops): Build the polyhedral
10373 representation for each scop before code generation.
10374 * sese.c (rename_variables_in_operand): Removed.
10375 (rename_variables_in_expr): Return the renamed expression.
10376 (rename_sese_parameters): New.
10377 * sese.h (rename_sese_parameters): Declared.
10379 2010-02-11 Richard Guenther <rguenther@suse.de>
10381 PR tree-optimization/42998
10382 * tree-ssa-pre.c (create_expression_by_pieces): Treat
10383 POINTER_PLUS_EXPR properly.
10385 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10386 Changpeng Fang <changpeng.fang@amd.com>
10388 PR middle-end/40886
10389 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
10390 the cost of an IV candidate when the IV is used in a test against zero.
10392 * gcc.dg/tree-ssa/ivopts-3.c: New.
10394 2010-02-11 Richard Guenther <rguenther@suse.de>
10397 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
10398 pointer-vs-decl case by swapping refs. Handle some cases
10399 of pointer-vs-decl disambiguations more conservatively.
10400 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
10401 to false after expanding.
10403 2010-02-11 Richard Guenther <rguenther@suse.de>
10406 * gcc.c (process_command): Handle LTO file@offset case more
10409 2010-02-11 Jakub Jelinek <jakub@redhat.com>
10411 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
10412 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
10414 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
10416 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
10417 if MEM's mode size isn't DWARF2_ADDR_SIZE.
10418 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
10419 Optimize eq/ne comparisons when both arguments are known to be
10421 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
10422 Don't mask operands unnecessarily if they are known to be already
10425 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
10427 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
10430 2010-02-10 Richard Guenther <rguenther@suse.de>
10432 PR tree-optimization/43017
10433 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
10434 for wrapping signed arithmetic.
10436 2010-02-10 Jakub Jelinek <jakub@redhat.com>
10439 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
10440 if no debug info should be emitted for it.
10442 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
10444 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
10445 note when flag_exceptions is set.
10447 2010-02-10 Duncan Sands <baldrick@free.fr>
10449 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
10451 2010-02-10 Richard Guenther <rguenther@suse.de>
10454 * tree.c (get_unwidened): Handle constants.
10455 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
10457 2010-02-10 Martin Jambor <mjambor@suse.cz>
10460 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
10461 check for variable argument counts independently.
10463 2010-02-10 Christian Bruel <christian.bruel@st.com>
10466 * config/sh/sh.c (find_barrier): Increase length for non delayed
10467 conditional branches.
10469 2010-02-10 Christian Bruel <christian.bruel@st.com>
10471 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
10473 2010-02-10 Jakub Jelinek <jakub@redhat.com>
10475 * builtins.c (set_builtin_user_assembler_name): Also handle
10476 ffs if int is smaller than word.
10478 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
10480 PR middle-end/42973
10481 * ira-conflicts.c (get_dup): Remove.
10482 (process_reg_shuffles): Add new parameter. Use it as an
10483 additional guard for copy generation.
10484 (add_insn_allocno_copies): Rewrite.
10486 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
10488 * common.opt (fsched2-use-traces): Preserved for backward
10490 * doc/invoke.texi: Remove the documentation about option
10491 -fsched2-use-traces.
10492 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
10493 flag_sched2_use_traces.
10494 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
10495 the backward compatibility flag section.
10497 2010-02-09 Richard Guenther <rguenther@suse.de>
10499 PR tree-optimization/43008
10500 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
10501 make HEAP variables initialized from global memory if they
10502 are not known builtin functions.
10503 (find_func_aliases): Adjust.
10505 2010-02-09 Richard Guenther <rguenther@suse.de>
10507 PR tree-optimization/43000
10508 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
10509 arithmetic manually.
10511 2010-02-08 Jakub Jelinek <jakub@redhat.com>
10513 PR tree-optimization/42931
10514 * tree-loop-linear.c (try_interchange_loops): Don't call
10515 double_int_mul if estimated_loop_iterations failed.
10517 2010-02-08 Martin Jambor <mjambor@suse.cz>
10519 PR middle-end/42898
10520 * tree-sra.c (build_accesses_from_assign): Do not mark in
10521 should_scalarize_away_bitmap if stmt has volatile ops.
10522 (sra_modify_assign): Do not process assigns piecemeal if if stmt
10525 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
10527 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
10529 2010-02-07 Adam Nemet <adambnmet@gmail.com>
10531 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
10532 before the pattern.
10534 2010-02-07 Andrew Pinski <pinskia@gmail.com>
10536 PR middle-end/42946
10537 * df-core.c (df_finish_pass): Change type of saved_flags to int.
10539 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
10541 PR middle-end/42988
10542 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
10543 to unknown_dependence.
10544 (graphite_legal_transform_dr): Handle the unknown_dependence.
10545 (graphite_carried_dependence_level_k): Same.
10547 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
10549 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
10551 2010-02-07 Richard Guenther <rguenther@suse.de>
10553 PR middle-end/42991
10554 * expr.c (get_inner_reference): Always initialize *pbitsize.
10556 2010-02-07 Richard Guenther <rguenther@suse.de>
10558 PR middle-end/42956
10559 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
10560 new ARRAY_REFs on variable size element or minimal index arrays.
10562 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
10563 gimple_fold_indirect_ref.
10565 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
10568 * arm.c (arm_override_options): Just return if the user has specified
10569 an invalid fpu name.
10571 2010-02-03 Jason Merrill <jason@redhat.com>
10574 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
10575 i386_pe_maybe_record_exported_symbol.
10577 2010-02-05 Steve Ellcey <sje@cup.hp.com>
10580 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10581 (pa_delegitimize_address): New function.
10583 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
10585 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
10586 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
10588 2010-02-05 Richard Guenther <rguenther@suse.de>
10591 * lto-streamer-in.c (get_resolution): Deal with references
10592 to undefined functions.
10594 2010-02-05 Richard Guenther <rguenther@suse.de>
10596 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
10597 (fold_const_aggregate_ref): Likewise.
10598 (ccp_fold_stmt): Substitute loads.
10599 (maybe_fold_reference): Verify types before substituting.
10601 (fold_gimple_assign): Unshare properly.
10602 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
10604 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
10606 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
10607 for rs6000_gen_cell_microcode.
10609 2010-02-04 Richard Guenther <rguenther@suse.de>
10611 PR rtl-optimization/42952
10612 * dse.c (const_or_frame_p): Remove MEM handling.
10614 2010-02-04 Nick Clifton <nickc@redhat.com>
10616 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10617 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
10618 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
10619 (mn10300_asm_output_mi_thunk): New function.
10620 (mn10300_can_output_mu_thunk): New function.
10621 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
10622 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
10623 (FUNCTION_ARG): Delete incorrect comment.
10625 2010-02-03 Jason Merrill <jason@redhat.com>
10628 * fold-const.c (operand_equal_p): Handle erroneous types.
10630 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10632 * config/h8300/h8300.md (can_delay): Fix attibute condition.
10634 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
10636 PR rtl-optimization/42941
10637 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
10640 2010-02-03 Jason Merrill <jason@redhat.com>
10643 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
10645 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
10648 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
10649 (cselib_reset_table): Renamed from...
10650 (cselib_reset_table_with_next_value): ... this.
10651 (cselib_get_next_uid): Renamed from...
10652 (cselib_get_next_unknown_value): ... this.
10653 * cselib.c (next_uid): Renamed from...
10654 (next_unknown_value): ... this.
10655 (cselib_clear_table): Adjust.
10656 (cselib_reset_table): Adjust. Renamed from...
10657 (cselib_reset_table_with_next_value): ... this.
10658 (cselib_get_next_uid): Adjust. Renamed from...
10659 (cselib_get_next_unknown_value): ... this.
10660 (get_value_hash): Use hash.
10661 (cselib_hash_rtx): Likewise.
10662 (new_cselib_val): Adjust. Set and dump uid.
10663 (cselib_lookup_mem): Pass next_uid as hash.
10664 (cselib_subst_to_values): Likewise.
10665 (cselib_log_lookup): Dump uid.
10666 (cselib_lookup): Pass next_uid as hash. Adjust.
10667 (cselib_process_insn): Adjust.
10668 (cselib_init): Initialize next_uid.
10669 (cselib_finish): Adjust.
10670 (dump_cselib_table): Likewise.
10671 * dse.c (canon_address): Dump value uid.
10672 * print-rtl.c (print_rtx): Print value uid.
10673 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
10675 (dv_uid): New function, sort of renamed from...
10676 (dv_htab_hash): ... this, reimplemented in terms of it and...
10677 (dv_uid2hash): ... this. New.
10678 (variable_htab_eq): Drop excess assertions.
10679 (tie_break_pointers): Removed.
10680 (canon_value_cmp): Compare uids.
10681 (variable_post_merge_New_vals): Print uids.
10682 (vt_add_function_parameters): Adjust.
10683 (vt_initialize): Reset table. Adjust.
10685 2010-02-03 Richard Guenther <rguenther@suse.de>
10687 PR tree-optimization/42944
10688 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
10689 (call_may_clobber_ref_p_1): Likewise. Properly handle
10690 malloc and calloc clobbering errno.
10692 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
10694 * doc/invoke.texi: Fix name of sched1 dump.
10696 * opts.c (decode_options): Set flag_tree_switch_conversion
10697 only conditionally on optimize >= 2.
10699 * gcse.c: Assorted comment fixes in pass description.
10701 2010-02-03 Anthony Green <green@moxielogic.com>
10703 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
10704 nop padding in order to maintain alignment of storage location of
10705 target function address.
10706 (moxie_trampoline_init): Store target function address at newly
10708 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
10710 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
10712 2010-02-03 Richard Guenther <rguenther@suse.de>
10714 PR middle-end/42927
10715 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
10717 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10719 * config.gcc: Reenable check for obsolete targets.
10720 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
10721 mips-sgi-irix6.[0-4]*.
10723 2010-02-02 Nick Clifton <nickc@redhat.com>
10725 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
10726 constant size of 4 as being the same as 0.
10727 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
10728 can take values in the range 0..4.
10730 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
10733 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
10734 as _darwin10_Unwind_FindEnclosingFunction().
10735 * libgcc-libsystem.ver: New.
10737 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
10740 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
10741 implicitly set registers.
10743 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
10745 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
10746 (arm_override_options): Allow automatic selection of the thread
10747 pointer register if thumb2.
10748 (legitimize_pic_address): Improve code sequences for Thumb2.
10749 (arm_call_tls_get_addr): Likewise.
10750 (legitimize_tls_address): Likewise.
10751 * arm.md (pic_load_addr_arm): Delete. Replace with ...
10752 (pic_load_addr_32bit): ... this. New named pattern.
10753 * thumb2.md (pic_load_addr_thumb2): Delete.
10754 (pic_load_dot_plus_four): Delete.
10755 (tls_load_dot_plus_four): New named pattern.
10757 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10760 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
10761 Document fix for TLS bug.
10763 2010-01-31 Richard Guenther <rguenther@suse.de>
10765 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
10766 conservatively correct.
10768 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10772 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10774 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10776 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10778 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
10780 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
10782 * config.gcc: Adjust order of makefile fragments for mingw targets.
10784 2010-01-31 Richard Guenther <rguenther@suse.de>
10786 PR middle-end/42898
10787 * gimplify.c (gimplify_init_constructor): For volatile LHS
10788 initialize a temporary.
10790 2010-01-31 Matthias Klose <doko@ubuntu.com>
10792 * configure.ac: Fix __stack_chk_fail check for cross builds configured
10794 * configure: Regenerate.
10796 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
10798 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
10799 the same alias set and their sizes different constantness.
10800 (aliasing_component_refs_p): Revert 2009-10-24 change.
10802 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10804 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
10807 2010-01-29 Richard Guenther <rguenther@suse.de>
10809 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
10810 Assert we successfully updated the call.
10812 2010-01-29 Jakub Jelinek <jakub@redhat.com>
10814 PR rtl-optimization/42889
10815 * df.h (df_set_bb_dirty_nonlr): New prototype.
10816 * df-core.c (df_set_bb_dirty_nonlr): New function.
10817 * df-scan.c (df_insn_rescan): Call it instead of
10818 df_set_bb_dirty for DEBUG_INSNs.
10820 2010-01-29 Richard Guenther <rguenther@suse.de>
10822 PR middle-end/37448
10823 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
10824 quadratic behavior in most cases.
10826 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
10829 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
10830 in the call to gen_x86_movsicc_0_m1.
10832 2010-01-28 Richard Guenther <rguenther@suse.de>
10834 PR tree-optimization/42871
10835 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
10837 2010-01-28 Richard Guenther <rguenther@suse.de>
10839 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
10840 into call arguments.
10842 2010-01-28 Richard Guenther <rguenther@suse.de>
10844 PR middle-end/42883
10845 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
10846 the forwarder if the destination is an EH landing pad.
10848 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
10850 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
10851 block list passed to gimple_duplicate_sese_tail.
10852 (parallelize_loops): Avoid parallelization when the function
10853 has_nonlocal_label.
10854 Avoid parallelization when the preheader is IRREDUCIBLE.
10855 Try to optimize when estimated_loop_iterations_int is unresolved.
10856 Add the loop's location to the dump file.
10857 * tree-cfg.c (add_phi_args_after_redirect): Remove.
10858 (gimple_duplicate_sese_tail): Remove the check for the latch.
10859 Redirect nexits to the exit block.
10860 Remove handling of the incoming edges to the latch.
10861 Redirect the backedge from the copied latch to the exit bb.
10863 2010-01-28 Michael Matz <matz@suse.de>
10866 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
10867 Wrap force_reg into a sequence, emit it before user.
10869 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
10871 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
10873 (arm_legacy_rev): Likewise.
10874 (thumb_legacy_rev): Likewise.
10876 2010-01-27 Jakub Jelinek <jakub@redhat.com>
10878 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
10879 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
10880 on MEM's address failed, try avoid_constant_pool_reference and
10881 recurse if it returned something different.
10882 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
10883 address, try avoid_constant_pool_reference and recurse if it
10884 returned something different.
10885 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
10886 address and avoid_constant_pool_reference returned something
10887 different, don't set have_address.
10889 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
10892 * var-tracking.c (val_store): Add modified argument, obey it.
10894 (count_uses): Move down logging of main.
10895 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
10896 don't need resolution.
10897 (emit_notes_in_bb): Likewise.
10899 2010-01-27 Richard Guenther <rguenther@suse.de>
10901 PR middle-end/42878
10902 * tree-inline.c (remap_decl): Delay remapping of SSA name
10903 default definitions until we need them.
10905 2010-01-27 Jakub Jelinek <jakub@redhat.com>
10907 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10908 (rs6000_delegitimize_address): New function.
10910 * config/s390/s390.c (s390_delegitimize_address): Call
10911 delegitimize_mem_from_attrs.
10913 PR middle-end/42874
10914 * tree-inline.c (cannot_copy_type_1): Removed.
10915 (copy_forbidden): Don't forbid copying of functions containing
10916 records/unions with variable length fields.
10918 2010-01-27 Christian Bruel <christian.bruel@st.com>
10922 * config/sh/sh.c (find_barrier): Increase length for non delayed
10923 conditional branches.
10925 2010-01-27 Matthias Klose <doko@ubuntu.com>
10927 * configure.ac (gnu-unique-object): Fix ldd version check.
10928 * configure: Regenerate.
10930 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10932 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
10934 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
10935 Test for HAVE_GNU_AS value.
10937 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10939 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
10940 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
10941 INT64_TYPE): Define.
10942 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
10943 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10944 INT_LEAST64_TYPE): Define.
10945 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
10946 UINT_LEAST64_TYPE): Define.
10947 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
10948 INT_FAST64_TYPE): Define.
10949 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10950 UINT_FAST64_TYPE): Define.
10951 (INTMAX_TYPE, UINTMAX_TYPE): Define.
10952 (INTPTR_TYPE, UINTPTR_TYPE): Define.
10953 (SIG_ATOMIC_TYPE): Define.
10955 2010-01-26 Richard Guenther <rguenther@suse.de>
10957 * df-scan.c (df_scan_set_bb_info): Remove assert.
10958 (df_insn_rescan_debug_internal): Merge asserts.
10959 (df_install_ref): Likewise.
10960 (df_mark_reg): Use bitmap_set_range.
10961 (df_hard_reg_used_p): Remove assert.
10962 (df_hard_reg_used_count): Likewise.
10964 2010-01-26 Richard Guenther <rguenther@suse.de>
10966 PR rtl-optimization/42685
10967 * web.c (web_main): Ignore DEBUG_INSNs.
10969 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
10971 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
10973 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
10974 Fix types of fndecl and arglist parameters.
10976 2010-01-26 Richard Guenther <rguenther@suse.de>
10978 PR middle-end/42806
10979 * tree-eh.c (unsplit_eh): Skip debug insns.
10981 2010-01-26 Richard Guenther <rguenther@suse.de>
10983 PR tree-optimization/42250
10984 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
10986 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10989 * omp-low.c (expand_omp_sections): Only use single_pred if
10990 l2_bb is single_pred_p.
10992 2010-01-25 Christian Bruel <christian.bruel@st.com>
10995 * config/sh/sh.c (find_barrier): Increase length for non delayed
10996 conditional branches.
10997 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
10999 2010-01-24 David S. Miller <davem@davemloft.net>
11001 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
11002 define if not using GAS.
11003 * config/sparc/sparc.c (sparc_elf_asm_named_section):
11004 Likewise. Delete SECTION_MERGE code, which is only applicable
11007 2010-01-24 Mark Mitchell <mark@codesourcery.com>
11010 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
11011 mangling of va_list in system headers.
11013 2010-01-23 Toon Moene <toon@moene.org>
11015 * tree-predcom.c (combine_chains): Return NULL, not false.
11017 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
11019 * tree-loop-distribution.c (distribute_loop): Fix declaration and
11020 initialization of variable res to agree with return type.
11022 2010-01-22 Steve Ellcey <sje@cup.hp.com>
11024 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
11025 * tree-sra.c: Add include of expr.h.
11027 2010-01-22 Jakub Jelinek <jakub@redhat.com>
11029 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
11030 insert the debug stmt on the single non-EH edge from the stmt.
11032 2010-01-22 Richard Henderson <rth@redhat.com>
11035 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
11036 the RHS until after generate_subtree_copies has insertted its
11037 code before the current statement.
11039 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
11041 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
11043 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
11045 2010-01-21 Martin Jambor <mjambor@suse.cz>
11047 PR tree-optimization/42585
11048 * tree-sra.c (struct access): New field grp_total_scalarization.
11049 (dump_access): Dump the new field.
11050 (should_scalarize_away_bitmap): New variable.
11051 (cannot_scalarize_away_bitmap): Likewise.
11052 (sra_initialize): Allocate new bitmaps.
11053 (sra_deinitialize): Free new bitmaps.
11054 (create_access_1): New function.
11055 (create_access): Parts moved to create_access_1.
11056 (type_consists_of_records_p): New function.
11057 (completely_scalarize_record): Likewise.
11058 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
11059 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
11060 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
11062 (analyze_all_variable_accesses): Completely scalarize small eligible
11065 2010-01-21 Martin Jambor <mjambor@suse.cz>
11067 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
11069 2010-01-21 Andrew Haley <aph@redhat.com>
11071 * gcc.c (process_command): Move lang_specific_driver before
11072 setting cc_libexec_prefix.
11074 2010-01-21 Richard Guenther <rguenther@suse.de>
11076 PR middle-end/19988
11077 * fold-const.c (negate_expr_p): Pretend only negative
11078 real constants are easily negatable.
11080 2010-01-20 Janis Johnson <janis187@us.ibm.com>
11081 Jason Merrill <jason@redhat.com>
11083 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
11084 (TYPE_TRANSPARENT_AGGR): this, for union and record.
11085 * calls.c (initialize argument_information): Handle it.
11086 * c-common.c (handle_transparent_union_attribute): Use new name.
11087 * c-decl.c (finish_struct): Ditto.
11088 * c-typeck.c (type_lists_compatible_p): Ditto.
11089 (convert_for_assignment): Use new name and also handle record.
11090 * function.c (aggregate_value_p): Handle it.
11091 (pass_by_reference): Ditto.
11092 (assign_parm_data_types): Ditto.
11093 * print-tree.c (print_node): Ditto.
11094 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
11095 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
11096 * tree.c (first_field): New fn.
11098 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
11101 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
11102 even when linking statically, for now.
11104 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
11107 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
11108 without a cselib val.
11109 (count_uses): Accept MO_VAL_SET with no val on stores.
11110 (add_stores): Likewise.
11112 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11114 * var-tracking.c (check_value_val): Add a compile time assertion.
11115 (dv_is_decl_p): Simplify.
11116 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
11117 gcc_assert if ENABLE_CHECKING.
11119 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
11122 * var-tracking.c: Include tree-flow.h.
11123 (mem_dies_at_call): New.
11124 (dataflow_set_preserve_mem_locs): Use it.
11125 (dataflow_set_remove_mem_locs): Likewise.
11126 (dump_var): Renamed from dump_variable. Adjust all callers.
11127 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
11128 * Makefile.in (var-tracking.o): Adjust deps.
11130 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
11132 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
11134 2010-01-20 Richard Guenther <rguenther@suse.de>
11136 PR tree-optimization/42717
11137 * tree-ssa-dce.c (get_live_post_dom): Remove.
11138 (forward_edge_to_pdom): Take an arbitrary edge to copy
11139 degenerate PHI args from.
11140 (remove_dead_stmt): Use the first post-dominator even if it
11141 does not contain live statements as redirection destination.
11143 2010-01-20 Richard Guenther <rguenther@suse.de>
11145 * tree-inline.c (estimate_num_insns): Handle EH builtins.
11147 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11149 * sel-sched.c (create_speculation_check): Remove set but not used
11151 (try_transformation_cache): Remove set but not used variable ds.
11152 (calculate_privileged_insns): Remove set but not used variables
11153 cur_insn and min_spec_insn.
11154 (find_best_expr): Remove set but not used variable avail_n.
11155 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
11157 * cgraphunit.c (assemble_thunk): Remove set but not used variable
11159 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
11160 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
11161 new_scop_exit_edge.
11163 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
11166 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
11167 cpu types. Add support for *-sse3 cpu types.
11168 (x86_64-*-*): Ditto.
11170 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11172 PR middle-end/42803
11173 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
11174 argument, call initializer_constant_valid_p_1 instead of
11175 initializer_constant_valid_p, pass CACHE to it, return NULL
11176 immediately if first call returns NULL.
11177 (initializer_constant_valid_p_1): New function.
11178 (initializer_constant_valid_p): Use it.
11180 2010-01-20 Thomas Quinot <quinot@adacore.com>
11182 * tree.def (PLACEHOLDER_EXPR): Fix comment.
11184 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11186 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
11187 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
11188 (loc_list_from_tree): Don't handle unsigned division. Handle
11189 signed modulo using DW_OP_{over,over,div,mul,minus}.
11190 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
11191 modulo instead of signed.
11193 2010-01-20 DJ Delorie <dj@redhat.com>
11195 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
11197 (h8300_emit_stack_adjustment): Propogate it.
11199 (h8300_expand_prologue): Likewise.
11200 (h8300_expand_epilogue): Likewise.
11202 2010-01-19 Michael Matz <matz@suse.de>
11204 PR tree-optimization/41783
11205 * tree-data-ref.c (toplevel): Include flags.h.
11206 (dump_data_dependence_relation): Also dump the inputs if the
11207 result will be unknown.
11208 (split_constant_offset_1): Look through some conversions.
11209 * tree-predcom.c (determine_roots_comp): Restart a new chain if
11210 the offset from last element is too large.
11211 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
11212 (reassociate_to_the_same_stmt): Handle vector registers.
11213 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
11214 (e.g. conversions).
11215 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
11216 wide_prolog_niters argument, emit widening instructions.
11217 (vect_do_peeling_for_alignment): Adjust caller, use widened
11218 variant of the iteration cound.
11219 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
11221 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11224 * config/arm/neon-testgen.m (emit_automatics): New parameter
11225 features. Adjust for Fixed_return_reg feature.
11226 (test_intrinsic): Call emit_automatics with new feature.
11227 * config/arm/neon.ml: Update copyright years.
11228 (features): New Fixed_return_reg feature.
11229 (ops): Update feature for Vget_low.
11231 2010-01-19 Jakub Jelinek <jakub@redhat.com>
11233 PR tree-optimization/42719
11234 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
11238 * fwprop.c (all_uses_available_at): Return false if def_set dest
11239 is a REG that is used in def_insn.
11241 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
11243 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
11245 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
11246 Add argument names.
11248 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
11250 * target.h (struct gcc_target) <secondary_reload>: Change type
11251 of last argument to secondary_reload_info *.
11253 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
11256 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
11257 memory references with unaligned offsets. Remove CQImode handling.
11258 (unaligned_memory_operand): Return 1 for memory references with
11259 unaligned offsets. Remove CQImode handling.
11261 2010-01-18 Richard Guenther <rguenther@suse.de>
11263 PR middle-end/39954
11264 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
11267 2010-01-18 Richard Guenther <rguenther@suse.de>
11269 PR tree-optimization/42781
11270 * tree-ssa-structalias.c (find_what_var_points_to): Skip
11271 restrict processing only if the original variable was artificial.
11273 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
11275 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
11276 find number of popped argument bytes.
11278 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
11279 Fix the text that describes the return value for invalid insns.
11281 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
11283 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
11284 Clarify what 'cost of the -dependence' is. Fix quoting.
11286 * toplev.c (default_get_pch_validity): Rename argument to "sz".
11287 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
11289 2010-01-17 Jakub Jelinek <jakub@redhat.com>
11291 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
11292 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
11294 2010-01-17 Richard Guenther <rguenther@suse.de>
11296 PR middle-end/42248
11297 * function.c (split_complex_args): Take a VEC to modify.
11298 (assign_parms_augmented_arg_list): Build a VEC instead of
11299 a chain of PARM_DECLs.
11300 (assign_parms_unsplit_complex): Take a VEC of arguments.
11301 Do not fixup unmodified parms.
11302 (assign_parms): Deal with the VEC.
11303 (gimplify_parameters): Likewise.
11305 2010-01-17 Richard Guenther <rguenther@suse.de>
11307 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
11308 node existence check.
11309 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
11310 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
11311 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
11312 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
11313 (gimple_execute_on_growing_pred): Likewise.
11315 2010-01-17 Richard Guenther <rguenther@suse.de>
11317 PR tree-optimization/42773
11318 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
11319 (compute_antic_aux): Likewise.
11320 (compute_partial_antic_aux): Likewise.
11322 2010-01-17 Jie Zhang <jie.zhang@analog.com>
11325 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
11328 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
11330 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
11333 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
11334 Fix markup for strict argument.
11336 (TARGET_SCHED_REORDER2): Fix argument types.
11338 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
11339 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
11341 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
11342 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
11344 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
11347 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
11348 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
11349 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
11350 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
11351 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
11353 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
11355 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
11357 (TARGET_ASM_RELOC_RW_MASK): Add return type.
11358 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
11360 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
11362 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
11365 (TARGET_ASM_NAMED_SECTION): Fix argument list.
11367 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
11368 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
11370 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
11372 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
11374 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
11375 referring to it. Fix language.
11377 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
11379 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
11381 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
11383 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
11385 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
11386 '@var{stream}. Remove stray 'and'.
11388 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
11390 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
11392 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
11394 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
11395 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
11397 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
11398 Fix description of return value.
11399 Rename argument "sz" to "len."
11401 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
11402 Clarify meaning of 'true' return value.
11404 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
11406 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
11407 rep_mode versus mode_rep.
11409 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
11411 (TARGET_BUILTIN_DECL): Fix name.
11413 (TARGET_COMMUTATIVE_P): Fix type of first argument.
11415 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
11417 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
11419 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
11421 (TARGET_RELAXED_ORDERING): Use @deftypevr.
11423 (TARGET_GET_DRAP_RTX): Note that this is a hook.
11426 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
11427 Rename argument tm_fn to md_fn.
11429 (TARGET_OPTION_PRINT): Fix argument list.
11431 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
11434 * config/i386/i386.c (ix86_fixup_binary_operands):
11435 Revert FMA4 fixup of operands.
11437 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11440 * Makefile.in (write_entries_to_file, install-plugin):
11441 Use \012 instead of \n with tr.
11443 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
11445 * configure.ac (HAVE_AS_REF): New C macro.
11446 * configure: Regenerate.
11447 * config.in: Likewise.
11448 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
11450 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
11453 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
11455 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
11457 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
11459 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
11461 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
11463 (TARGET_IN_SMALL_DATA_P): Fix argument type.
11465 (TARGET_BINDS_LOCAL_P): Fix argument type.
11467 (TARGET_ASM_FILE_END): Use prototype.
11469 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
11471 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
11473 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
11475 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
11477 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
11478 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
11480 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
11481 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
11483 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
11484 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
11485 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
11486 (TARGET_ADDR_SPACE_CONVERT): Likewise.
11488 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
11490 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
11492 (TARGET_INIT_BUILTINS): Use prototype.
11494 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
11495 Put 'const char *' in braces. Fix parameter types.
11496 (TARGET_INVALID_CONVERSION): Fix parameter types.
11497 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
11498 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
11500 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
11503 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
11505 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
11507 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
11509 * doc/tm.texi (TARGET_HELP): Fix return type.
11511 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
11512 in braces. Fix argument types.
11514 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
11516 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
11518 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
11520 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
11521 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
11523 (TARGET_MANGLE_TYPE): Fix argument types.
11525 (TARGET_IRA_COVER_CLASSES): Use prototype.
11527 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
11529 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
11531 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
11533 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
11535 (TARGET_CALLEE_COPIES): Fix argument types.
11537 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
11539 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
11541 (TARGET_FUNCTION_VALUE): Fix argument types.
11543 (TARGET_RETURN_IN_MSB): Fix argument type.
11545 (TARGET_RETURN_IN_MEMORY): Fix argument types.
11547 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
11549 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
11551 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
11552 agree with return type.
11554 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
11556 2010-01-15 Jing Yu <jingyu@google.com>
11558 PR rtl-optimization/42691
11559 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
11560 a pseudo to a constant and are merged, and adjust comments.
11562 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
11564 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
11566 2010-01-15 Richard Guenther <rguenther@suse.de>
11568 PR middle-end/42739
11569 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
11570 labels of computed or non-local gotos to the destination.
11571 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
11572 landing pad label is the first label.
11574 2010-01-15 Richard Guenther <rguenther@suse.de>
11576 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
11578 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11581 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
11582 to allow generation of the xssqrtdp instruction on power7.
11583 (sqrtdf2_fpr): Ditto.
11585 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11587 PR middle-end/42674
11588 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
11589 functions with noreturn attribute.
11592 * varasm.c (declare_weak): Add weak attribute to decl if it
11593 doesn't have one already.
11594 (assemble_external): Only add decls to weak_decls if they also
11595 have weak attribute.
11597 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
11599 * var-tracking.c (var_reg_delete): Don't delete the association
11600 between REGs and values or one-part variables if the register
11603 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11606 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
11607 because its first operand is a non-localized variable.
11609 2010-01-14 Martin Jambor <mjambor@suse.cz>
11611 PR tree-optimization/42706
11612 * tree-sra.c (encountered_recursive_call): New variable.
11613 (encountered_unchangable_recursive_call): Likewise.
11614 (sra_initialize): Initialize both new variables.
11615 (callsite_has_enough_arguments_p): New function.
11616 (scan_function): Call decl and flags check only for IPA-SRA, check
11617 whether there is a recursive call and whether it has enough arguments.
11618 (all_callers_have_enough_arguments_p): New function.
11619 (convert_callers): Look for recursive calls only when
11620 encountered_recursive_call is set.
11621 (ipa_early_sra): Bail out either if
11622 !all_callers_have_enough_arguments_p or
11623 encountered_unchangable_recursive_call.
11625 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11627 * sel-sched.c: Add 2010 to copyright years.
11628 * sel-sched-ir.c: Likewise.
11629 * sel-sched-ir.h: Likewise.
11631 2010-01-14 Martin Jambor <mjambor@suse.cz>
11633 PR tree-optimization/42714
11634 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
11635 constructors specially.
11637 2010-01-14 Andi Kleen <ak@linux.intel.com>
11639 * config/i386/drivers-i386.c (detect_caches_intel):
11640 Add l2sizekb parameter and fill in.
11641 (host_detect_local_cpu): Add l2sizekb, fill in.
11642 Add Atom small cache heuristic.
11644 2010-01-14 Andi Kleen <ak@linux.intel.com>
11646 * config/i386/drivers-i386.c (detect_caches_cpuid4):
11647 Add level3 parameter and fill in.
11648 (detect_caches_intel): Handle level3 cache.
11650 2010-01-14 Andi Kleen <ak@linux.intel.com>
11652 * config/i386/drivers-i386.c (host_detect_local_cpu):
11653 Fix core duo detection.
11655 2010-01-14 Andi Kleen <ak@linux.intel.com>
11657 * config/i386/drivers-i386.c (host_detect_local_cpu):
11658 Fix Atom detection.
11660 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11662 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
11663 (rs6000_variable_issue_1): this. Use...
11664 (rs6000_variable_issue): here. Reimplement. Print debug info.
11666 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11668 * sel-sched-ir.c (sel_restore_other_notes): Rename to
11669 sel_restore_notes. Update all callers. Call reemit_notes
11672 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11674 PR rtl-optimization/42246
11675 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
11678 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11680 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
11681 all successors is the same as number of successors in current region.
11683 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11685 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
11686 to rename is not separable. Otherwise check that its LHS is not NULL.
11688 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11690 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
11692 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11694 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
11695 available registers when failed to discover LHS register class.
11696 Fix indentation. Update comment.
11698 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11699 Alexander Monakov <amonakov@ispras.ru>
11701 PR rtl-optimization/42389
11702 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
11704 (advance_state_on_fence): Likewise.
11705 (sel_target_adjust_priority): Print debug output only when
11706 sched_verbose >= 4, not 2.
11707 (get_expr_cost): Do not issue all unique insns on the next cycle.
11708 (fill_insns): Initialize can_issue_more from the value saved
11710 * sel-sched-ir.c (flist_add): New parameter issue_more.
11711 Init FENCE_ISSUE_MORE with it.
11712 (merge_fences): Likewise.
11713 (init_fences): Update call to flist_add.
11714 (add_to_fences, add_clean_fence_to_fences)
11715 (add_dirty_fence_to_fences): Likewise.
11716 (move_fence_to_fences): Update call to merge_fences.
11717 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
11719 * sel-sched-ir.h (struct _fence): New field issue_more.
11720 (FENCE_ISSUE_MORE): New accessor macro.
11722 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11724 PR rtl-optimization/42388
11725 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
11726 that have no predecessors nor successors. Do not call move_bb_info
11727 for empty blocks outside of current region.
11729 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11731 PR rtl-optimization/42294
11732 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
11733 * sel-sched.c (move_exprs_to_boundary): Transitively add all
11734 originators' originators.
11736 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11738 PR rtl-optimization/39453
11739 PR rtl-optimization/42246
11740 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
11742 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
11744 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11745 Alexander Monakov <amonakov@ispras.ru>
11747 PR middle-end/42245
11748 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
11749 (maybe_tidy_empty_bb): ... here. Make static. Add new
11750 argument. Update all callers.
11751 (tidy_control_flow): ... and here. Recompute topological order
11752 of basic blocks in region if necessary.
11753 (sel_redirect_edge_and_branch): Change return type. Return true
11754 if topological order might have been invalidated.
11755 (purge_empty_blocks): Export and move from...
11756 * sel-sched.c (purge_empty_blocks): ... here.
11757 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
11758 (maybe_tidy_empty_bb): Delete prototype.
11759 (purge_empty_blocks): Declare.
11761 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11763 PR rtl-optimization/42249
11764 * sel-sched.c (try_replace_dest_reg): When chosen register
11765 and original register is the same, do not bail out early, but
11766 still check all original insns for validity of replacing destination
11767 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
11770 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11773 Port from no-undefined-overflow branch:
11774 2009-03-09 Richard Guenther <rguenther@suse.de>
11776 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
11778 2010-01-14 Richard Guenther <rguenther@suse.de>
11781 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
11783 2010-01-14 Ira Rosen <irar@il.ibm.com>
11785 PR tree-optimization/42709
11786 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
11787 as scalar type in creation of constant vector operand.
11789 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11792 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
11793 (check-parallel-%): Match `testsuite' directory component only
11796 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
11798 PR translation/39521
11799 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
11802 2010-01-13 Richard Guenther <rguenther@suse.de>
11804 PR tree-optimization/42730
11805 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
11808 2010-01-13 Steve Ellcey <sje@cup.hp.com>
11811 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
11812 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
11815 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
11817 * config/bfin/libgcc-bfin.ver: Regenerate based on current
11818 libgcc-std.ver. Add entries for ___smulsi3_highpart and
11819 ___umulsi3_highpart.
11821 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
11822 rather than schedule_insns if the pass is enabled.
11824 2010-01-13 Martin Jambor <mjambor@suse.cz>
11826 PR tree-optimization/42704
11827 * tree-sra.c (sra_modify_assign): Do not delete assignments to
11830 2010-01-13 Martin Jambor <mjambor@suse.cz>
11832 PR tree-optimization/42703
11833 * tree-sra.c (analyze_access_subtree): Check that we can build a
11834 reference to the original data within the aggregate.
11836 2010-01-13 Richard Guenther <rguenther@suse.de>
11838 PR tree-optimization/42705
11839 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
11841 2010-01-13 Richard Guenther <rguenther@suse.de>
11843 PR middle-end/42716
11844 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
11846 2010-01-13 Jakub Jelinek <jakub@redhat.com>
11849 * var-tracking.c (values_to_unmark): New variable.
11850 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
11851 values_to_unmark vector. Moved body to...
11852 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
11853 instead queue it into values_to_unmark vector.
11854 (vt_find_locations): Free values_to_unmark vector.
11856 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
11858 * config/s390/s390.c (override_options): Set
11859 default of max-pending-list-length to 256
11861 2010-01-13 Richard Guenther <rguenther@suse.de>
11864 * tree-pass.h (PROP_gimple_lcx): New.
11865 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
11866 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
11867 before the final cleanup_eh.
11868 (dump_properties): Dump PROP_gimple_lcx.
11869 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
11870 (tree_lower_complex_O0): Remove.
11871 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
11872 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
11873 tree_lower_complex, schedule TODO_update_ssa.
11874 * lto-streamer-out.c (output_function): Stream the functions
11876 * lto-streamer-in.c (input_function): Likewise.
11877 (lto_read_body): Do not override them here.
11879 2010-01-12 Joseph Myers <joseph@codesourcery.com>
11882 * c-typeck.c (build_c_cast): Fold value cast to union type before
11883 wrapping it in a CONSTRUCTOR.
11885 2010-01-12 Jakub Jelinek <jakub@redhat.com>
11887 PR rtl-optimization/42699
11888 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
11891 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11893 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11894 SUBTARGET_WARN_UNUSED_SPEC): Move ...
11895 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11896 SUBTARGET_WARN_UNUSED_SPEC): ... here
11897 * config/mips/iris5.h (LIBGCC_SPEC): Define.
11899 2010-01-12 Julian Brown <julian@codesourcery.com>
11901 * config/arm/neon-schedgen.ml (Utils): Don't try to
11902 open missing module.
11903 (find_with_result): New.
11905 2010-01-12 Jakub Jelinek <jakub@redhat.com>
11908 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
11909 sharing when canonicalizing ({lt,ge}u (plus a b) b).
11911 PR tree-optimization/42645
11912 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
11913 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
11914 decl_map, set processing_debug_stmt to -1 and return name without
11917 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
11919 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
11920 binutils version, and reword target configuration description.
11922 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
11924 * config/avr/avr.h (LINKER_NAME): Remove.
11926 2010-01-11 Janis Johnson <janis187@us.ibm.com>
11929 * config/rs6000/rs6000.c (rs6000_override_options): On targets
11930 that support VSX, warn for -mno-altivec if vsx is not disabled,
11933 2010-01-11 Joseph Myers <joseph@codesourcery.com>
11934 Shujing Zhao <pearly.zhao@oracle.com>
11936 PR translation/42469
11937 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
11938 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
11939 character between option name and help text.
11940 * c.opt (imultilib): Likewise.
11942 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
11944 * lto-streamer-out.c (output_unreferenced_globals): Output static
11947 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
11949 PR rtl-optimization/42621
11950 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
11951 optimizing for size.
11952 (duplicate_computed_gotos): Remove now-redundant check.
11954 2010-01-10 Steve Ellcey <sje@cup.hp.com>
11957 * configure.ac: Save and restore LDFLAGS and LIBS
11958 * configure: Regenerate.
11960 2010-01-10 Richard Guenther <rguenther@suse.de>
11962 PR middle-end/42667
11963 * builtins.c (fold_builtin_strlen): Add type argument and
11964 convert the resulting length to it.
11965 (fold_builtin_1): Adjust.
11967 2010-01-09 Jakub Jelinek <jakub@redhat.com>
11969 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
11970 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
11972 (num_insns_constant_wide): Adjust for that change.
11974 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11977 * web.c (union_defs): Add used argument, to combine uses of
11978 uninitialized regs.
11979 (entry_register): Adjust type and tests of used argument.
11980 (web_main): Widen used for new use. Pass it to union_defs.
11981 * df.h (union_defs): Adjust prototype.
11983 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11986 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
11987 uses in new incoming argument. Free body.
11988 (reset_debug_uses_in_loop): New.
11989 (analyze_insn_to_expand_var): Call the latter if the former found
11990 anything. Fix whitespace. Reject invalid dest overlaps before
11991 going through all insns in the loop.
11993 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11996 * haifa-sched.c (dying_use_p): Debug insns don't count.
11998 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12000 PR middle-end/42363
12001 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
12002 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
12003 (verify_gimple_call): Reject LHS in noreturn calls.
12005 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12009 * tree-vect-loop-manip.c (adjust_info): New type.
12010 (adjust_vec): New pointer to vector.
12011 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
12012 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
12013 (slpeel_update_phis_for_duplicate_loop): Use them.
12014 (slpeel_update_phi_nodes_for_guard1): Likewise.
12015 (slpeel_update_phi_nodes_for_guard2): Likewise.
12016 (slpeel_tree_peel_loop_to_edge): Likewise.
12017 (vect_update_ivs_after_vectorizer): Likewise.
12019 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12021 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
12022 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
12024 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12026 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
12027 bogus uninitialized warning.
12029 2010-01-09 Richard Guenther <rguenther@suse.de>
12031 PR middle-end/42512
12032 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
12033 the evolution is compatible with the initial condition.
12035 2010-01-09 Jakub Jelinek <jakub@redhat.com>
12037 * gcc.c (process_command): Update copyright notice dates.
12038 * gcov.c (print_version): Likewise.
12039 * gcov-dump.c (print_version): Likewise.
12040 * mips-tfile.c (main): Likewise.
12041 * mips-tdump.c (main): Likewise.
12043 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
12046 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
12048 (rotlhi3_8): Delete.
12050 (rotlsi3_8): Delete.
12051 (rotlsi3_16): Delete.
12052 (rotlsi3_24): Delete.
12053 (rotl<mode>3): New.
12054 (*rotw<mode>3): New.
12055 (*rotb<mode>3): New.
12056 * config/avr/avr.c (avr_rotate_bytes): New function.
12057 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
12059 2010-01-08 Steve Ellcey <sje@cup.hp.com>
12062 * configure.ac: Modify -rdynamic check.
12063 * configure: Regenerate.
12065 2010-01-08 DJ Delorie <dj@redhat.com>
12067 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
12068 register popping order.
12070 2010-01-08 Richard Guenther <rguenther@suse.de>
12073 * c.opt (fsigned-char): Also let LTO handle this option.
12074 (funsigned-char): Likewise.
12076 2010-01-07 Richard Guenther <rguenther@suse.de>
12078 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
12079 (gimple_op): Likewise.
12080 (gimple_op_ptr): Likewise.
12081 (gimple_assign_set_lhs): Remove gcc_assert.
12082 (gimple_assign_set_rhs1): Likewise.
12083 (gimple_assign_set_rhs2): Likewise.
12084 (gimple_call_set_lhs): Likewise.
12085 (gimple_call_set_fn): Likewise.
12086 (gimple_call_set_fndecl): Likewise.
12087 (gimple_call_fndecl): Likewise.
12088 (gimple_call_return_type): Likewise.
12089 (gimple_call_set_chain): Likewise.
12090 (gimple_call_num_args): Likewise.
12091 (gimple_call_set_arg): Likewise.
12092 (gimple_cond_set_code): Likewise.
12093 (gimple_cond_set_lhs): Likewise.
12094 (gimple_cond_set_rhs): Likewise.
12095 (gimple_cond_set_true_label): Likewise.
12096 (gimple_cond_set_false_label): Likewise.
12097 (gimple_label_set_label): Likewise.
12098 (gimple_goto_set_dest): Likewise.
12099 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
12100 (gimple_debug_bind_get_value): Likewise.
12101 (gimple_debug_bind_get_value_ptr): Likewise.
12102 (gimple_debug_bind_set_var): Likewise.
12103 (gimple_debug_bind_set_value): Likewise.
12104 (gimple_debug_bind_reset_value): Likewise.
12105 (gimple_debug_bind_has_value_p): Likewise.
12106 (gimple_return_retval_ptr): Remove gcc_assert.
12107 (gimple_return_retval): Likewise.
12108 (gimple_return_set_retval): Likewise.
12109 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
12110 (safe_referenced_var_iterator): Remove.
12111 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
12112 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
12113 (fill_referenced_var_vec): Remove.
12114 (first_readonly_imm_use): Remove redundant gcc_assert.
12115 (phi_arg_index_from_use): Combine gcc_asserts.
12116 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
12117 (first_imm_use_stmt): Remove redundant gcc_assert.
12118 * tree-cfg.c (verify_gimple_call): Verify function and chain
12119 operands. Verify arguments.
12120 (verify_types_in_gimple_stmt): Verify condition code and labels.
12122 2010-01-07 Richard Guenther <rguenther@suse.de>
12124 PR tree-optimization/42641
12125 * sese.c (rename_map_elt_info): Use the SSA name version, do
12128 2010-01-07 Jakub Jelinek <jakub@redhat.com>
12130 PR tree-optimization/42625
12131 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
12132 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
12134 2010-01-07 Duncan Sands <baldrick@free.fr>
12136 * Makefile.in (PLUGIN_HEADERS): Add version.h.
12138 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
12141 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
12142 note itself is not function_invariant_p.
12144 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
12146 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
12147 Do not add the DF_NOTE problem.
12148 * store-motion.c (execute_rtl_store_motion): Likewise.
12150 2010-01-07 Martin Jambor <mjambor@suse.cz>
12152 PR tree-optimization/42157
12153 * tree-sra.c (compare_access_positions): Stabilize sort if both
12154 accesses have integer types, return zero immediately if they are the
12157 2010-01-06 Richard Henderson <rth@redhat.com>
12159 PR middle-end/41883
12160 * haifa-sched.c (add_to_note_list): Merge into ...
12161 (concat_note_lists): ... here, and ...
12162 (unlink_other_notes, rm_other_notes): Merge into...
12163 (remove_notes): ... here. Create REG_SAVE_NOTEs for
12164 NOTE_INSN_EPILOGUE_BEG.
12166 2010-01-06 Richard Guenther <rguenther@suse.de>
12168 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
12169 not inline regular functions into always-inline functions.
12171 2010-01-06 Nick Clifton <nickc@redhat.com>
12173 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
12174 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
12176 (OVERRIDE_OPTIONS): Delete.
12177 (OPTIMIZATION_OPTIONS): Define.
12178 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
12179 * config/rx/rx.c (rx_handle_option): Issue an error message if
12180 -mcpu=rx200 and -fpu are used together.
12181 (rx_set_optimization_options): New function. Issue an error
12182 message if an optimization attribute attempts to reset the FPU/
12183 math optimization pairing.
12184 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
12185 * config/rx/rx.opt: Set the default to 32-bit doubles.
12186 * config/rx/t-rx: Add multilibs for -nofpu option.
12187 * doc/invoke.texi: Update documentation of RX options.
12189 2010-01-06 Richard Guenther <rguenther@suse.de>
12191 * tree-ssa-pre.c (name_to_id): New global.
12192 (alloc_expression_id): Simplify SSA name handling.
12193 (lookup_expression_id): Likewise.
12194 (init_pre): Zero name_to_id.
12195 (fini_pre): Free it.
12197 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
12199 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
12201 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
12204 * config/i386/sse.md (smaxv2di3): New.
12205 (umaxv2di3): Likewise.
12206 (sminv2di3): Likewise.
12207 (uminv2di3): Likewise.
12209 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
12212 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
12213 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
12214 (legitimize_tls_address): Likewise.
12215 (sparc_tls_referenced_p): Likewise.
12216 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
12217 and adjust calls to legitimize_pic_address.
12218 (legitimate_constant_p) Use sparc_tls_referenced_p.
12219 (legitimate_pic_operand_p): Likewise.
12220 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
12221 (sparc_tls_symbol_ref_1): Delete.
12222 (sparc_tls_referenced_p): Make static, recognize specific patterns.
12223 (legitimize_tls_address): Make static, handle CONST patterns.
12224 (legitimize_pic_address): Make static, remove unused parameter and
12225 adjust recursive calls.
12226 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
12227 and adjust call to legitimize_pic_address.
12228 (sparc_output_mi_thunk): Likewise.
12230 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
12231 H.J. Lu <hongjiu.lu@intel.com>
12234 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
12235 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
12236 operands to make them signed.
12239 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12242 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12243 GTU to GT for V4SI and V2DI.
12245 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12246 (umin<mode>3): Removed.
12248 (uminv4si3): Likewise.
12250 2010-01-05 Martin Jambor <mjambor@suse.cz>
12252 PR tree-optimization/42462
12253 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
12254 current_function_decl to helper functions and macros.
12256 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12259 * flags.h: Don't include real.h.
12260 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
12261 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
12262 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
12263 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
12264 * dominance.c: Update copyright.
12265 * gimple.c (walk_gimple_op): Remove inline.
12266 * tree-ssa-reassoc.c: Include real.h.
12267 * Makefile.in (FLAGS_H): Remove $(REAL_H).
12268 (tree-ssa-reassoc.o): Depend on $(REAL_H).
12270 2010-01-05 Nick Clifton <nickc@redhat.com>
12272 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
12273 register to push into the stack frame when the accumulator has to
12274 be saved during interrupts.
12276 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
12278 * doc/invoke.texi: Remove the documentation about option
12279 -Wunreachable-code.
12280 * common.opt (Wunreachable-code): Preserved for backward
12282 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
12283 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
12284 the backward compatibility flag section.
12286 2010-01-05 Richard Guenther <rguenther@suse.de>
12288 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
12290 2010-01-05 Jakub Jelinek <jakub@redhat.com>
12293 * cfgexpand.c (expand_one_var): Diagnose too large variables.
12295 PR tree-optimization/42508
12296 * tree-sra.c (convert_callers): Check for recursive call
12297 by comparing cgraph nodes instead of decls.
12298 (modify_function): Call ipa_modify_formal_parameters also
12299 on all same_body aliases.
12301 * cgraphunit.c (cgraph_materialize_all_clones): Compare
12302 cgraph nodes when checking for same_body aliases.
12304 2010-01-05 Richard Guenther <rguenther@suse.de>
12306 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
12307 allocation and lookup.
12308 (get_or_alloc_expr_for_constant): Likewise.
12309 (phi_translate): Sink allocation.
12311 2010-01-04 Richard Guenther <rguenther@suse.de>
12313 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
12314 a new entry only if needed.
12315 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
12316 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
12318 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
12320 (phi_translate): Handle CONSTANTs early.
12322 2010-01-04 Martin Jambor <mjambor@suse.cz>
12324 PR tree-optimization/42398
12325 * tree-sra.c (struct access): Removed flag grp_different_types.
12326 (dump_access): Do not dump the removed flag.
12327 (sort_and_splice_var_accesses): Do not set the removed flag.
12328 (sra_modify_expr): Check for type compatibility directly.
12330 2010-01-04 Martin Jambor <mjambor@suse.cz>
12332 PR tree-optimization/42366
12333 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
12334 edges with variable number of parameters.
12335 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
12336 flag instead of asserting it.
12337 (ipa_read_node_info): Read uses_analysis_done flag.
12339 2010-01-04 Richard Guenther <rguenther@suse.de>
12341 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
12342 iterative_hash_* as intended.
12343 (vn_reference_compute_hash): Likewise. Simplify hashing
12345 (vn_reference_lookup_2): Likewise.
12346 (vn_nary_op_compute_hash): Likewise.
12347 (vn_phi_compute_hash): Likewise.
12348 (expressions_equal_p): Remove strange code.
12349 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
12350 (pre_expr_hash): Likewise. Simplify hashing SSA names.
12351 (bitmap_insert_into_set_1): Take value-id as parameter.
12352 (add_to_value): Pass it.
12353 (bitmap_insert_into_set): Likewise.
12354 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
12356 2010-01-04 Jakub Jelinek <jakub@redhat.com>
12359 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
12360 (do_self_spec): For switches with SWITCH_IGNORE set set also
12361 SWITCH_IGNORE_PERMANENTLY.
12362 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
12365 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
12367 * lto-streamer-out.c (output_unreferenced_globals): Output the full
12368 tree of an unreferenced global var.
12370 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12373 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12374 GTU to GT for V4SI and V2DI.
12376 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12377 (umin<mode>3): Removed.
12379 (uminv4si3): Likewise.
12381 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12384 * collect2.c (main): Turn on trace in collect2 if -v is passed
12387 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
12389 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
12390 description of expression operand.
12392 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
12394 * configure.ac: Add install-html to target_list for Make-hooks.
12395 * configure: Regenerate.
12396 * fortran/Make-lang.in (F95_HTMLFILES): New.
12397 (fortran.html): Use it.
12398 (fortran.install-html): New.
12399 * Makefile.in (install-html): Add lang.install-html.
12400 * java/Make-lang.in (JAVA_HTMLFILES): New.
12401 (java.html): Use it.
12402 (java.install-html): New.
12403 * objc/Make-lang.in (objc.install-html): New.
12404 * objcp/Make-lang.in (obj-c++.install-html): New.
12405 * cp/Make-lang.in (c++.install-html): New.
12406 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
12407 * lto/Make-lang.in (lto.install-html): New.
12409 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
12412 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
12414 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
12416 PR rtl-optimization/41862
12417 * store-motion.c (store_killed_in_insn, compute_store_table,
12418 remove_reachable_equiv_notes, replace_store_insn,
12419 build_store_vectors): Ignore all DEBUG_INSNs.
12421 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
12424 * common.opt: Add dumpdir.
12426 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
12428 (option_map): Add --dumpdir.
12430 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
12432 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
12434 * opts.c (decode_options): Try dump_dir_name first if
12435 dump_base_name isn't an absolute path.
12436 (common_handle_option): Handle OPT_dumpdir.
12438 * toplev.c (dump_dir_name): New.
12439 (print_switch_values): Also ignore -dumpdir.
12441 * toplev.h (dump_dir_name): New.
12443 2010-01-03 Richard Guenther <rguenther@suse.de>
12445 PR tree-optimization/42589
12446 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
12447 double-word expansion of bswap32.
12449 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
12451 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
12452 with BLOCK_FOR_INSN.
12453 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
12454 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
12455 noce_process_if_block): Likewise.
12456 * gcse.c (compute_local_properties, insert_expr_in_table,
12457 insert_set_in_table, canon_list_insert, find_avail_set,
12458 pre_insert_copy_insn): Likewise.
12460 * basic-block.h (BLOCK_NUM): Move from here...
12461 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
12463 2010-01-03 Richard Guenther <rguenther@suse.de>
12465 PR tree-optimization/42438
12466 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
12467 contains_may_not_return_call flag.
12468 (BB_MAY_NOTRETURN): New.
12469 (valid_in_sets): Trapping nary operations are not valid
12470 in blocks that may not return.
12471 (insert_into_preds_of_block): Remove check for trapping expressions.
12472 (compute_avail): Compute also BB_MAY_NOTRETURN.
12474 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
12476 * doc/invoke.texi: Add 2010 to copyright years.
12478 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
12480 * config/sparc/sparc.c: Fix formatting nits.
12482 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
12483 Alexander Monakov <amonakov@ispras.ru>
12485 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
12487 2010-01-02 Richard Guenther <rguenther@suse.de>
12489 PR middle-end/42577
12490 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
12491 (simplify_switch_using_ranges): Mark to be removed edges
12494 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12496 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12498 * collect2.c (scan_libraries): Add missing argument in call to
12501 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
12504 * config/alpha/predicates.md (aligned_memory_operand): Return false
12506 (unaligned_memory_operand): Return true for CQImode.
12507 * config/alpha/alpha.c (get_aligned_mem): Assert that location
12508 doesn not cross aligned SImode word boundary.
12510 2010-01-02 Anatoly Sokolov <aesok@post.ru>
12512 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
12514 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
12515 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
12517 2010-01-02 Richard Guenther <rguenther@suse.de>
12520 * toplev.c (compile_file): Emit LTO marker properly. Change
12521 it to __gnu_lto_v1.
12522 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
12524 2010-01-01 Richard Guenther <rguenther@suse.de>
12527 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
12529 2010-01-01 Richard Guenther <rguenther@suse.de>
12532 * c-decl.c (grokdeclarator): For zero-size arrays force
12533 structural equality checks as layout_type does.
12535 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
12537 * builtins.c: Update copyright to 2010.
12539 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
12542 * lto-streamer-out.c (produce_asm): Revert the last change.
12543 (copy_function): Likewise.
12545 * lto-streamer.c (lto_get_section_name): Skip any leading
12548 2010-01-01 Richard Guenther <rguenther@suse.de>
12550 PR middle-end/42559
12551 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
12555 Copyright (C) 2010 Free Software Foundation, Inc.
12557 Copying and distribution of this file, with or without modification,
12558 are permitted in any medium without royalty provided the copyright
12559 notice and this notice are preserved.