1 2010-06-02 Richard Guenther <rguenther@suse.de>
3 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
5 2010-06-02 Richard Guenther <rguenther@suse.de>
7 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
8 (lto_wrapper_cleanup): ... this. Do not exit.
9 (fatal): Adjust. Exit here.
10 (fatal_perror): Likewise.
11 (fatal_signal): New function.
12 (main): Set up signal handlers to cleanup temporary files.
13 * Makefile.in (lto-wrapper.o): Adjust dependencies.
15 2010-06-02 Richard Guenther <rguenther@suse.de>
17 PR tree-optimization/44377
18 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
20 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22 * config/s390/2097.md (z10_fhex): Remove insn reservation.
23 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
24 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
25 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
27 * config/s390/s390.c: Don't accept fp zeros as valid constants
30 2010-06-02 Jan Hubicka <jh@suse.cz>
32 * bitmap.c (bitmap_descriptor): Add search_iter.
33 (bitmap_find_bit): Increment it.
34 (print_statistics): Print it.
36 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
38 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
39 instead of gimple_build_call_vec. Delete unnecessary local variable.
41 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
43 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
44 change from yesterday.
46 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
48 * c-ada-spec.c: Clean up redundant includes.
50 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
52 * gimplify.c: Do not include except.h and optabs.h.
53 (gimplify_body): Do not initialize RTL profiling.
54 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
55 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
56 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
57 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
60 * tree-pretty-print.h: Include pretty-print.h.
61 * gimple-pretty-print.h: Include pretty-print.h.
63 * tree-pretty-print.c: Do not include diagnostic.h.
64 * tree-vrp.c: Likewise.
65 * tree-tailcall.c: Likewise
66 * tree-scalar-evolution.c: Likewise
67 * tree-ssa-dse.c: Likewise
68 * tree-chrec.c: Likewise
69 * tree-ssa-sccvn.c: Likewise
70 * tree-ssa-copyrename.c: Likewise
71 * tree-nomudflap.c: Likewise
72 * tree-call-cdce.c: Likewise
73 * tree-stdarg.c: Likewise
74 * tree-ssa-math-opts.c: Likewise
75 * tree-nrv.c: Likewise
76 * tree-ssa-sink.c: Likewise
77 * tree-browser.c: Likewise
78 * tree-ssa-loop-ivcanon.c: Likewise
79 * tree-ssa-loop.c: Likewise
80 * tree-parloops.c: Likewise
81 * tree-ssa-address.c: Likewise
82 * tree-ssa-ifcombine.c: Likewise
83 * tree-if-conv.c: Likewise
84 * tree-data-ref.c: Likewise
85 * tree-affine.c: Likewise
86 * tree-ssa-phiopt.c: Likewise
87 * tree-ssa-coalesce.c: Likewise
88 * tree-ssa-pre.c: Likewise
89 * tree-ssa-live.c: Likewise
90 * tree-predcom.c: Likewise
91 * tree-ssa-forwprop.c: Likewise
92 * tree-ssa-dce.c: Likewise
93 * tree-ssa-ter.c: Likewise
94 * tree-ssa-loop-prefetch.c: Likewise
95 * tree-optimize.c: Likewise
96 * tree-ssa-phiprop.c: Likewise
97 * tree-object-size.c: Likewise
98 * tree-outof-ssa.c: Likewise
99 * tree-ssa-structalias.c: Likewise
100 * tree-switch-conversion.c: Likewise
101 * tree-ssa-reassoc.c: Likewise
102 * tree-ssa-operands.c: Likewise
103 * tree-vectorizer.c: Likewise
104 * tree-vect-data-refs.c: Likewise
105 * tree-vect-generic.c: Likewise
106 * tree-vect-stmts.c: Likewise
107 * tree-vect-patterns.c: Likewise
108 * tree-vect-slp.c: Likewise
109 * tree-vect-loop.c: Likewise
110 * tree-ssa-loop-ivopts.c: Likewise
111 * tree-ssa-loop-im.c: Likewise
112 * tree-ssa-loop-niter.c: Likewise
113 * tree-ssa-loop-unswitch.c: Likewise
114 * tree-ssa-loop-manip.c: Likewise
115 * tree-ssa-loop-ch.c: Likewise
116 * tree-dump.c: Likewise
117 * tree-complex.c: Likewise
119 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
120 * tree-ssa-uninit.c: Likewise
121 * tree-ssa-threadupdate.c: Likewise
122 * tree-ssa-uncprop.c: Likewise
123 * tree-ssa-ccp.c: Likewise
124 * tree-ssa-dom.c: Likewise
125 * tree-ssa-propagate.c: Likewise
126 * tree-ssa-alias.c: Likewise
127 * tree-dfa.c: Likewise
128 * tree-cfgcleanup.c: Likewise
129 * tree-sra.c: Likewise
130 * tree-ssa-copy.c: Likewise
131 * tree-ssa.c: Likewise
132 * tree-profile.c: Likewise
133 * tree-cfg.c: Likewise
134 * tree-ssa-threadedge.c: Likewise
135 * tree-vect-loop-manip.c: Likewise
137 * tree-inline.c: Do not include diagnostic.h and expr.h.
139 (copy_decl_for_dup_finish): Do not use NULL_RTX.
141 * tree-loop-linear.c: Do not include diagnostic.h, expr.h,
143 * tree-loop-distribution.c: Likewise.
145 2010-06-01 Jan Hubicka <jh@suse.cz>
147 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
149 2010-06-01 Jan Hubicka <jh@suse.cz>
151 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
153 (split_bbs_on_noreturn_calls) .... here.
154 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
155 * tree-flow.h (fixup_noreturn_call): New.
157 2010-06-01 Jan Hubicka <jh@suse.cz>
159 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
161 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
163 * tree.h (build_nt_call_list): Delete.
164 * tree.c (build_nt_call_list): Delete.
166 2010-06-01 Jan Hubicka <jh@suse.cz>
168 * fwprop.c: Make emit-rtl.h include last.
169 * rtlanal.c: Include emit-rtl.h.
170 * genautomata.c: Output emit-rtl include into insn-automata.c
171 * df-scan.c: Include emit-rtl.h.
172 * haifa-sched.c: Indlude emit-rtl.h.
173 * mode-switching.c: Indlude emit-rtl.h.
174 * graph.c: Indlude emit-rtl.h.
175 * sel-sched.c: Include emit-rtl.h.
176 * sel-sched-ir.c: Include emit-rtl.h.
177 * ira-build.c: Include emit-rtl.h.
178 * emit-rtl.c: (first_insn, last_insn): Remove defines.
179 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
181 (set_new_first_and_last_insn, get_last_insn_anywhere, get_first_nonnote_insn,
182 get_last_nonnote_insn, try_split, make_call_insn_raw, add_insn_after,
183 add_insn_before, remove_insn, delete_insns_since, reorder_insns_nobb,
184 emit_insn_after_1, emit_debug_insn_before, emit_insn, start_sequence,
185 push_to_sequence, push_to_sequence2, push_topmost_sequence, end_sequence,
186 copy_insn): Use accessor functions.
187 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
188 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
189 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
190 mem_expr_equal_p): Move here from rtl.h
191 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
192 Move here from emit-rtl.c; make inline.
193 * cfglayout.h: Include emit-rtl.h
194 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
195 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
196 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
197 mem_expr_equal_p, get_insns, set_first-insn, get_last_insn, set_last_insn,
198 get_max_uid): Move to emit-rtl.h.
199 * reg-stack.c: Include emit-rtl.h
202 2010-06-01 Jan Hubicka <jh@suse.cz>
204 * cgraph.h (tree_function_versioning): Update prototype.
205 (cgraph_function_versioning): Update prototype.
206 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
208 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
209 (cgraph_materialize_clone, save_inline_function_body): Update use of
210 tree_function_versioning.
211 * tree-inline.c (copy_bb): Look for previous copied block to link after;
213 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
214 (copy_body): Likewise.
215 (expand_call_inline): Update use of copy_body.
216 (tree_function_versioning): Update use of copy body; accept
217 blocks_to_copy and new_entry.
219 2010-06-01 Jan Hubicka <jh@suse.cz>
221 * gegenrtl.c: Remove unnecesary prototypes.
223 (gendef): Produce static inline.
225 (main): Do not decode parameters; generate header only.
226 * Makefile.in (genrtl.c): Remove.
228 2010-06-01 Jan Hubicka <jh@suse.cz>
230 * tree-switch-conversion.c (build_one_array): Make it readonly.
232 2010-06-01 Richard Guenther <rguenther@suse.de>
234 * optabs.c (init_optabs): Guard all accesses to reinit.
235 * ipa-pure-const.c (propagate): Fix another typo.
236 * opts.c (common_handle_option): Split assignment to bool.
237 * c-opts.c (c_common_handle_option): Likewise.
239 2010-06-01 Arnaud Charlet <charlet@adacore.com>
240 Matthew Gingell <gingell@adacore.com>
242 * doc/invoke.texi: Mention -fdump-ada-spec.
243 * tree-dump.c (dump_files): Add ada-spec.
244 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
245 * tree-pass.h (tree_dump_index): Add TDI_ada.
246 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
247 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
248 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
249 * c-decl.c: Include c-ada-spec.h.
250 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
252 (c_write_global_declarations): Add handling of -fdump-ada-spec.
253 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
254 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
255 * c-ada-spec.h, c-ada-spec.c: New files.
257 2010-06-01 Richard Guenther <rguenther@suse.de>
260 * ipa-pure-const.c (get_function_state): Hand back varying state
261 if we do not have one.
262 (has_function_state): New function.
263 (duplicate_node_data): Adjust.
264 (remove_node_data): Likewise.
265 (pure_const_write_summary): Likewise.
266 (propagate): Likewise. Fix typo.
268 2010-06-01 Jan Hubicka <jh@suse.cz>
270 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
271 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
272 (execute_all_ipa_transforms): Do not play with the states.
274 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
276 * config/arm/t-linux-androideabi: New.
277 * config.gcc (arm*-*-linux-androideabi): Include multilib configuration.
279 2010-06-01 Jan Hubicka <jh@suse.cz>
281 * tree-inline.c (estimate_num_insns): For stdarg functions look
282 into call statement to count cost of argument passing.
286 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
287 argument for fprintf.
288 (ix86_output_addr_diff_elt): Likewise.
289 (x86_function_profiler): Likewise.
290 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix
291 for x64 no-underscore.
293 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
295 2010-05-31 Jakub Jelinek <jakub@redhat.com>
298 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
299 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
300 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
301 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
302 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
303 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
304 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
305 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
308 2010-05-31 Jan Hubicka <jh@suse.cz>
310 * tree.h (tree_range_check_failed): Declare noreturn.
312 2010-05-31 Jan Hubicka <jh@suse.cz>
314 * gimple.c (gimple_call_builtin_p): New function.
315 * gimple.h (gimple_call_builtin_p): Declare.
316 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
318 (execute_warn_function_return): BUILT_IN_RETURN is return.
319 (split_critical_edges): Return edges are not critical.
320 (is_ctrl_altering_stmt): Builtin_in_return is altering.
321 (gimple_verify_flow_info): Handle built_in_return.
322 (execute_warn_function_return): Handle built_in_return.
323 * ipa-pure-const.c (check_call): Ignore builtin_return.
325 2010-05-31 Jakub Jelinek <jakub@redhat.com>
328 * expr.c (expand_assignment): Don't store anything for out-of-bounds
329 array accesses with non-MEM.
331 PR tree-optimization/44182
332 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
333 newly needs to end a bb is followed by debug stmts, instead return
334 true from the function at the end.
335 (maybe_move_debug_stmts_to_successors): New function.
336 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
338 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
341 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
344 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
346 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
347 for nested functions in non-optimized compilation.
349 2010-05-31 Richard Guenther <rguenther@suse.de>
351 * tree-ssa-structalias.c (find_func_aliases): Handle
354 2010-05-30 Jan Hubicka <jh@suse.cz>
356 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
358 2010-05-30 Richard Guenther <rguenther@suse.de>
361 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
362 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
365 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
367 * config/darwin.c (output_objc_section_asm_op): Add comment.
368 (name_needs_quotes): Add '_' to list of valid comment chars.
369 (machopic_output_function_base_name): Remove unneeded quotes.
370 (darwin_encode_section_info): Adjust asm whitespace.
371 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
372 (ASM_OUTPUT_LOCAL): Ditto.
373 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
374 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
375 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
377 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
379 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
380 RS6000_OUTPUT_BASENAME unconditionally.
381 (rs6000_output_function_epilogue): Likewise.
383 2010-05-30 Jan Hubicka <jh@suse.cz>
385 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
388 2010-05-30 Richard Guenther <rguenther@suse.de>
390 * tree-cfg.c (verify_gimple_assign_single): Implement
391 verification for COND_EXPR rhs.
393 2010-05-30 Jan Hubicka <jh@suse.cz>
395 * cgraph.h (cgraph_dump_file): Declare.
396 * cgraphunit.c (cgraph_dump_file): Export.
397 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less
400 2010-05-30 Jan Hubicka <jh@suse.cz>
402 * dwarf2out.c (reference_to_unused,
403 premark_types_used_by_global_vars_helper): Avoid creation of new
406 2010-05-30 Jan Hubicka <jh@suse.cz>
408 * cgraph.h (cgraph_node_cannot_return,
409 cgraph_edge_cannot_lead_to_return): New functions.
410 * cgraph.c (cgraph_node_cannot_return,
411 cgraph_edge_cannot_lead_to_return): Use them.
412 * ipa-pure-const.c (pure_const_names): New static var.
413 (check_call): Handle calls not leading to return.
414 (pure_const_read_summary): Dump info read.
415 (propagate): Dump info about propagation process; ignore side
416 effects of functions not leading to exit; fix handling of
419 2010-05-30 Jan Hubicka <jh@suse.cz>
421 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
422 for tail call epilogues.
424 2010-05-30 Jan Hubicka <jh@suse.cz>
426 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
427 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
430 2010-05-29 Jan Hubicka <jh@suse.cz>
432 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
433 node; remove references in node we no longer keep in cgrpah but need
436 2010-05-29 Jan Hubicka <jh@suse.cz>
438 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
440 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
443 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
445 2010-05-29 Jan Hubicka <jh@suse.cz>
447 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
448 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
449 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
450 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
451 debug_names_replaced_by, debug_update_ssa): Likewise.
452 * sbitmap.c (debug_sbitmap): Likewise.
453 * genrecog.c (debug_decision, debug_decision_list): Likewise.
454 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
455 debug_tree_chain): Likewise.
456 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
457 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
458 * optabs.c (debug_optab_libfuncs): Likewise.
459 (verify_loop_closed_ssa): Likewise.
460 * value-prof.c (verify_histograms): Likewise.
461 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
462 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
463 * cfghooks.c (verify_flow_info): Likewise.
464 * fold-const.c (debug_fold_checksum): Likewise.
465 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
466 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
468 * omega.c (debug_omega_problem): Likewise.
469 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
470 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
471 * dominance.c (verify_dominators, debug_dominance_info,
472 debug_dominance_tree): Likewise.
473 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
474 * df_regno_debug, df_ref_debug,
475 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
476 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
477 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
478 * sel-sched.c (debug_state): Likewise.
479 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
481 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
482 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
483 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
484 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
486 * c-pretty-print.c (debug_c_tree): Likewise.
487 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
488 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
489 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
490 * ebitmap.c (debug_ebitmap): Likewise.
491 * function.c (debug_find_var_in_block_tree): Likewise.
492 * print-rtl.c (debug_rtx): Likewise.
493 (debug_rtx_count): Likewise.
494 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
495 * stor-layout.c (debug_rli): Likewise.
496 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
497 * tree-data-ref.c (debug_data_references,
498 debug_data_dependence_relations, debug_data_reference,
499 debug_data_dependence_relation, debug_rdg_vertex,
500 debug_rdg_component, debug_rdg): Likewise.
501 * tree-affine.c (debug_aff): Likewise.
502 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
504 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
505 * emit-rtl.c (verify_rtl_sharing): Likewise.
506 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
507 debug_value_expressions): Likewise.
508 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
509 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
510 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
511 * cfglayout.c (verify_insn_chain): Likewise.
512 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
513 debug_clast_stmt, debug_generated_program): Likewise.
514 * ggc-page.c (debug_print_page_list): Likewise.
515 * tree-ssa-ter.c (debug_ter): Likewise.
516 * graphite-dependences.c (debug_pddr): Likewise.
517 * sched-deps.c (debug_ds): Likewise.
518 * tree-ssa.c (verify_ssa): Likewise.
519 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
520 debug_scattering_functions, debug_iteration_domains, debug_pdr,
521 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
522 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
523 * tree-inline.c (debug_find_tree): Likewise.
524 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
525 debug_ppl_powerset_matrix): Likewise.
526 * var-tracking.c (debug_dv): Likewise.
527 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
528 * cfgloop.c (verify_loop_structure): Likewise.
529 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
530 * c-common.c (verify_sequence_points): Likewise.
531 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
532 debug_candidates, debug_rgn_dependencies): Likewise.
533 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
534 * debug_constraint_graph, debug_solution_for_var,
535 debug_sa_points_to_info): Likewise.
536 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
538 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
539 debug_loops, debug_loop, debug_loop_num): Likewise.
540 * passes.c (debug_pass): Likewise.
541 (dump_properties): Likewise; add cfglayout property.
542 (debug_properties): Likewise.
543 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
544 * varpool.c (debug_varpool): Likewise.
545 * regcprop.c (debug_value_data): Likewise.
546 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
547 debug_immediate_uses_for): Likewise.
549 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
552 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
553 Filter out insn-flags.h.
555 2010-05-29 Jan Hubicka <jh@suse.cz>
557 * cgraph.h (struct varpool_node_set_def,
558 struct cgraph_node_set_def): Remove unused AUX pointer.
559 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
562 2010-05-29 Jan Hubicka <jh@suse.cz>
565 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
567 2010-05-29 Richard Guenther <rguenther@suse.de>
569 * lto-streamer.c (cached_bp): New global variable.
570 (bitpack_create): Return the cached bitpack, if available.
571 (bitpack_delete): Clear and cache the bitpack, if appropriate.
572 (bp_pack_value): Remove redundant asserts.
574 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
577 * tree-if-conv.c (is_true_predicate): New.
578 (is_predicated): Use is_true_predicate.
579 (add_to_predicate_list): Same. Do not use unshare_expr.
580 (add_to_dst_predicate_list): Same.
582 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
584 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
586 (predicate_bbs): Same.
587 (clean_predicate_lists): Same.
588 (find_phi_replacement_condition): Do not AND the predicate from
591 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
594 * Makefile.in (build/gencondmd.o): Add a missing `\'.
596 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
599 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
600 (negdf2): Adjust expander pattern and use negdf2_slow.
603 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
605 * basic-block.h (struct control_flow_graph): Move last_label_uid field
607 * df.h (struct df_base_ref): Move regno field up.
608 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
609 * expr.h (struct separate_ops): Move location field up.
610 * optabs.h (struct optab_d): Move libcall_basename field down.
611 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
612 * config/i386/i386.h (struct machine_function): Convert call_abi field
613 into a bitfield. Move cfa field to the end of the structure.
615 2010-05-29 Jan Hubicka <jh@suse.cz>
617 * varpool.c (varpool_get_node): Fix lookup.
619 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
621 * config/spu/spu-protos.h: Do not include rtl.h. Protect
622 RTL specific prototypes with #ifdef RTX_CODE.
623 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
624 * config/spu/t-spu-elf: Fix dependencies.
626 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
628 2010-05-29 Mike Stump <mikestump@comcast.net>
631 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
632 TM_H when building to avoid dependency loops.
634 2010-05-29 Jan Hubicka <jh@suse.cz>
636 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
637 refs and body; not the whole node for masters of materialized
640 2010-05-29 Mike Stump <mikestump@comcast.net>
642 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
644 2010-05-29 Jan Hubicka <jh@suse.cz>
646 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
647 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
648 use of clone_function_name.
649 * cgraph.h (cgraph_create_virtual_clone,
650 cgraph_function_versioning): update prototypes.
651 (clone_function_name): Declare.
652 * ipa-cp.c (ipcp_insert_stage): Update call of
653 cgraph_create_virtual_clone.
654 * omp-low.c (create_omp_child_function_name): Use
655 cgraph_create_virtual_clone.
656 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
657 (cgraph_function_versioning): Take SUFFIX argument; produce new name
660 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
662 * vec.h: Include statistics.h
663 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
666 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
668 * c-lex.c: Do not include c-tree.h.
669 * c-pretty-print.c: Likewise.
670 * c-opts.c: Likewise.
671 * c-gimplify.c: Likewise.
672 * c-common.c: Likewise.
673 * c-dump.c: Likewise. Include c-common.h.
675 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
677 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
678 before including diagnostic-core.h.
679 (c_cpp_error): New prototype moved from c-tree.h.
680 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
681 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
682 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
683 (c_cpp_error): Prototype moved to c-common.h.
684 * Makefile.in: Update dependency for C_COMMON_H.
686 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
688 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
689 * c-common.c (c_register_addr_space): Remove here.
690 * c-decl.c (c_register_addr_space): Re-add here.
692 2010-05-28 Mike Stump <mikestump@comcast.net>
694 * config/darwin-c.c: Remove c-tree.h include.
696 2010-05-28 Joseph Myers <joseph@codesourcery.com>
698 * gcc.c: Include diagnostic.h.
699 (error_count): Remove. All users changed to use errorcount.
700 (programname): Remove. All users changed to use progname.
701 (fancy_abort, internal_error, fatal_error, error, warning, inform,
703 (execute): Don't include "Internal error" and bug reporting
704 information in argument of internal_error call.
705 (process_command): Don't increment error_count after calling
707 (input_filename): Rename to gcc_input_filename. All users
709 (main): Call diagnostic_initialize. Register delete_temp_files
710 with atexit. Use seen_error to test for errors.
711 * gcc.h: Include diagnostic-core.h.
712 (fatal_error, error, warning): Remove.
713 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
714 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
715 (gcc.o): Update dependencies.
717 2010-05-28 Jeff Law <law@redhat.com>
719 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
721 * ira.h (ira_bad_reload_regno): Declare
722 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
724 * ira-color.c (update_curr_costs): Free updated hard reg costs.
725 (ira_reassign_conflict_allocnos): Remove bogus asserts.
726 (allocno_reload_assign): Likewise.
728 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
730 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
733 2010-05-28 Richard Guenther <rguenther@suse.de>
736 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
737 Stream fixed-point constants mode.
738 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
740 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
741 Stream fixed-point constants mode.
742 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
745 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
747 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
748 only place it was called from.
749 (number_of_latch_executions): Do not return chrec_dont_know when the
750 may_be_zero is a runtime condition: instead, return a COND_EXPR
751 including the may_be_zero condition.
752 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
754 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
757 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
759 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
760 generate COND_EXPRs for degenerate_phi_result.
762 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
765 * tree-if-conv.c (if_convertible_loop_p): Check the
766 if-convertibility of phi nodes in non predicated BBs.
768 2010-05-28 Joseph Myers <joseph@codesourcery.com>
770 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
772 2010-05-28 Joseph Myers <joseph@codesourcery.com>
775 * gcc.c (inform, warning, inform): New functions.
776 (fatal_ice): Rename to internal_error; change cmsgid parameter to
777 gmsgid. All callers changed.
778 (notice): Rename to fnotice; add parameter fp. All callers
780 (fatal_error): Rename to fatal_signal. All users changed.
781 (fatal): Rename to fatal_error; change cmsgid parameter to
782 gmsgid. All callers changed.
783 (process_command): Use warning instead of error for warnings.
784 (end_going_arg): Don't use _() around argument of error.
785 (do_spec_1): Use inform for message from %n specs. Use warning
786 instead of error for warnings.
787 (main): Use inform for comparison messages. Use warning for
788 message about unused linker input.
789 (error): Increment error_count. Print "error: ".
790 * gcc.h (fatal): Change to fatal_error.
792 * config/darwin-driver.c (darwin_default_min_version): Use warning
793 instead of fprintf for warnings.
794 * cppspec.c (lang_specific_driver): Use fatal_error instead of
797 2010-05-28 Julian Brown <julian@codesourcery.com>
799 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
800 (*thumb2_addsi3_compare0_scratch): New.
801 * config/arm/constraints.md (Pv): New.
802 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
804 (*addsi3_compare0_scratch): Likewise.
806 2010-05-28 Jan Hubicka <jh@suse.cz>
808 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
810 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
811 only on local statics.
813 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
815 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
817 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
820 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
821 (OPTION_GLIBC): Define.
823 2010-05-28 Jakub Jelinek <jakub@redhat.com>
826 * dwarf2out.c (double_int_type_size_in_bits): New function.
827 (round_up_to_align): Change first argument and return value to
829 (field_byte_offset): Work internally on double_ints.
832 * builtins.c (expand_movstr): Use a temporary pseudo instead
833 of target even when target is not NULL and not const0_rtx, but
834 fails movstr predicate.
835 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
837 2010-05-28 Joseph Myers <joseph@codesourcery.com>
839 * final.c (rest_of_clean_state): Use %m in errors instead of
841 * gengtype.c (read_input_list, close_output_files): Use xstrerror
843 * toplev.c (process_options): Use %m in errors instead of strerror
845 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
848 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
850 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
851 (ix86_canonical_va_list_type): Make static. Add declaration.
852 (ix86_enum_va_list): Make static. Reindent.
853 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
854 (ix86_canonical_va_list_type): Ditto.
855 (ix86_enum_va_list): Ditto.
857 2010-05-28 Richard Guenther <rguenther@suse.de>
859 * lto-wrapper.c (run_gcc): With -save-temps generate a
860 user-visible ltrans filename. Fixup ltrans unit numbering.
862 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
864 * c-common.c (c_common_nodes_and_builtins): Replace use
865 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
866 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
867 to ix86_enum_va_list.
868 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
869 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
870 (TARGET_ENUM_VA_LIST_P): Add hook description.
871 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
872 * target.h (gcc_target): Add enum_va_list hook.
875 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
876 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
877 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
879 2010-05-28 Alan Modra <amodra@gmail.com>
882 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
883 emit_library_call machinery to set up __tls_get_addr calls.
885 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
887 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
889 2010-05-28 Dodji Seketeli <dodji@redhat.com>
891 Revert fix for PR c++/44188
892 * c-common.c (is_typedef_decl): Revert the moving of this
894 * tree.c (is_typedef_decl): ... here.
895 (typdef_variant_p): Revert the moving of this definition
896 here from gcc/cp/tree.c.
897 * c-common.h (is_typedef_decl): Revert the moving of this
899 * tree.h (is_typedef_decl): ... here.
900 (typedef_variant_p): Revert the moving of this declaration here
901 from gcc/cp/cp-tree.h
902 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
903 (gen_tagged_type_die): Revert the splitting out of ...
904 (gen_type_die_with_usage): ... this function. Revert the anonymous
905 tagged type handling.
906 (gen_typedef_die): Revert emitting DW_TAG_typedef for
907 typedefs naming anonymous tagged types.
909 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
911 * config/rs6000/rs6000-modes.def (PSImode): Delete.
913 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
915 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
916 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
918 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
920 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
921 XER_REGS to CA_REGS throughout.
922 * config/rs6000/rs6000.h: Same.
923 (ADDITIONAL_REGISTER_NAMES): Add "xer".
924 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
925 that mode_iterator "P" is the size for arithmetic carries as well.
926 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
928 2010-05-28 Jakub Jelinek <jakub@redhat.com>
931 * combine.c (struct rtx_subst_pair): Define unconditionally.
932 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
933 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
934 Call make_compound_operation on pair->to.
935 (propagate_for_debug): Don't call make_compound_operation here.
936 Always use simplify_replace_fn_rtx.
938 2010-05-27 Sterling Augustine <sterling@tensilica.com>
940 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
941 * config/xtensa/xtensa.c (override_options): Check
942 TARGET_FORCE_NO_PIC and set flag_pic.
943 * config/xtensa/xtensa.opt: Document -mforce-no-pic
945 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
948 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
949 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
951 2010-05-27 Joseph Myers <joseph@codesourcery.com>
953 * diagnostic-core.h: New. Contents moved from diagnostic.h and
955 * diagnostic.c: Don't include toplev.h.
956 (progname): Define. Moved from toplev.c.
957 (seen_error): New function.
958 * diagnostic.h: Include diagnostic-core.h.
959 (diagnostic_t, emit_diagnostic): Don't declare here.
960 * toplev.c (progname): Move to toplev.c.
961 (emit_debug_global_declarations, compile_file, finalize,
962 do_compile, toplev_main): Use seen_error.
963 * toplev.h: Include diagnostic-core.h.
964 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
965 internal_error, warning, warning_at, error, error_n, error_at,
966 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
967 verbatim, fnotice, progname): Move to diagnostic-core.h.
968 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
969 (expand_builtin_expect): Use seen_error.
970 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
971 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
972 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
973 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
974 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
975 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
976 errorcount for errors.
977 * c-opts.c (c_common_finish): Use seen_error.
978 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
979 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
980 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
981 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
982 (get_coverage_counts): Use seen_error.
983 * dwarf2out.c (dwarf2out_finish): Use seen_error.
984 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
985 gimplify_body): Use seen_error.
986 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
987 * ipa-pure-const.c (gate_pure_const): Use seen_error.
988 * ipa-reference.c (gate_reference): Use seen_error.
989 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
990 * lambda-code.c: Include diagnostic-core.h instead of
992 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
993 * lto-compress.c: Include diagnostic-core.h instead of
995 * lto-section-in.c: Include diagnostic-core.h instead of
997 * lto-streamer-out.c: Include diagnostic-core.h instead of
999 * lto-streamer.c: Include diagnostic-core.h instead of
1001 (gate_lto_out): Use seen_error.
1002 * matrix-reorg.c: Include diagnostic-core.h instead of
1004 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
1005 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
1006 (gate_expand_omp, lower_omp_1): Use seen_error.
1007 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
1008 (rest_of_decl_compilation, rest_of_type_compilation,
1009 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
1010 * tree-cfg.c (label_to_block_fn): Use seen_error.
1011 * tree-inline.c (optimize_inline_calls): Use seen_error.
1012 * tree-mudflap.c (mudflap_finish_file): Use
1014 * tree-optimize.c (gate_all_optimizations,
1015 gate_all_early_local_passes, gate_all_early_optimizations): Use
1017 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
1018 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
1019 (varpool_remove_unreferenced_decls,
1020 varpool_assemble_pending_decls): Use seen_error.
1021 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
1022 (TOPLEV_H, DIAGNOSTIC_H): Update.
1023 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
1024 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
1025 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
1026 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
1027 coverage.o, lambda-code.o): Update dependencies.
1029 2010-05-25 Dodji Seketeli <dodji@redhat.com>
1032 * c-common.c (is_typedef_decl): Move this definition ...
1033 * tree.c (is_typedef_decl): ... here.
1034 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
1035 * c-common.h (is_typedef_decl): Move this declaration ...
1036 * tree.h (is_typedef_decl): ... here.
1037 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
1038 * dwarf2out.c (is_naming_typedef_decl): New function.
1039 (gen_tagged_type_die): Split out of ...
1040 (gen_type_die_with_usage): ... this function. When an anonymous
1041 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
1042 is emitted for the typedef.
1043 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
1044 anonymous tagged types.
1046 2010-05-27 Jason Merrill <jason@redhat.com>
1048 * print-tree.c (debug_vec_tree): New fn.
1049 (print_vec_tree): New fn.
1050 * tree.h: Declare them.
1051 * gdbinit.in (pvt): New command.
1053 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
1055 * gdbinit.in (pdd): New command.
1057 2010-05-27 Jan Hubicka <jh@suse.cz>
1059 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
1060 (update_caller_keys): Return early if there are no callers;
1061 only update fibheap when decresing the key.
1062 (update_callee_keys): Avoid recursion.
1063 (decide_inlining_of_small_functions): When badness does not match;
1064 re-insert into fibheap.
1066 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
1068 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
1069 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
1070 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
1071 (ALL_HOST_OBJS): Now a union of the above two.
1072 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
1073 all files in ALL_HOST_FRONTEND_OBJS.
1074 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
1076 * c-common.c: Pretend to be a backend file by undefining
1077 IN_GCC_FRONTEND (still need rtl.h here).
1079 2010-05-27 Jan Hubicka <jh@suse.cz>
1081 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
1082 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
1084 2010-05-27 Jan Hubicka <jh@suse.cz>
1086 * sched-ebb.c: Rename struct deps to struct deps_desc.
1088 * sel-sched-ir.c: Likewise.
1089 * sched-deps.c: Likewise.
1090 * sched-int.h: Likewise.
1091 * sched-rgn.c: Likewise.
1093 2010-05-27 Jon Beniston <jon@beniston.com>
1096 * config/lm32/lm32.h: Remove definition of
1097 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
1099 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
1102 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
1104 2010-05-27 Richard Guenther <rguenther@suse.de>
1106 PR tree-optimization/44284
1107 * tree-vect-stmts.c (vectorizable_assignment): Handle
1108 sign-changing conversions as simple copy.
1110 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1112 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
1114 (__gthread_active_p): Check for pthread_create if compiling against
1117 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1119 Support compilation for Android platform. Reimplement -mandroid.
1121 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
1122 (*android*): Set ANDROID_DEFAULT.
1123 (arm*-*-linux*): Include linux-android.h.
1124 (arm*-*-eabi*): Don't include previous -mandroid implementation.
1125 * config/arm/eabi.h: Remove, move Android-specific parts ...
1126 * config/linux-android.h: ... here. New file.
1127 * config/arm/eabi.opt: Rename to ...
1128 * config/linux-android.opt: ... this.
1129 (mandroid): Allow -mno-android option. Initialize based on
1131 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
1132 Move logic to corresponding LINUX_TARGET_* macros.
1133 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
1134 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
1135 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
1136 Android definitions.
1137 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
1138 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
1141 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1143 Add support for Bionic C library
1145 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
1147 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
1148 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
1150 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
1151 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
1152 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
1153 to support multiple C libraries. Handle Bionic.
1154 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
1155 (BIONIC_DYNAMIC_LINKER64): Define.
1156 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
1158 (TARGET_HAS_SINCOS): Enable for Bionic.
1160 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
1161 the last option specified on command line take effect.
1162 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
1164 (mglibc, muclibc): Update.
1166 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
1167 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
1170 * doc/invoke.texi (-mglibc, -muclibc): Update.
1171 (-mbionic): Document.
1173 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1175 * c-common.h (c_register_addr_space): Add prototype.
1176 (ADDR_SPACE_KEYWORD): Remove.
1177 * c-common.c (c_register_addr_space): New function.
1178 (c_addr_space_name): Reimplement.
1179 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
1181 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
1182 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
1184 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
1185 Remove TARGET_ADDR_SPACE_KEYWORDS.
1187 2010-05-27 Joseph Myers <joseph@codesourcery.com>
1189 * input.c: New file.
1190 * input.h (main_input_filename): Move declaration to toplev.h.
1191 * toplev.c (input_location, line_table): Move to input.c
1192 * toplev.h (main_input_filename): Move declaration from input.h.
1193 * tree.c (expand_location): Move to input.c.
1194 * Makefile.in (OBJS-common): Add input.o.
1195 (input.o): Add dependencies.
1197 2010-05-27 Richard Guenther <rguenther@suse.de>
1199 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
1200 for non-existant files.
1201 (fork_execute): Mark args_name file as deleted.
1203 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
1206 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
1207 (narrow_signed_type): Likewise.
1209 2010-05-26 Jan Hubicka <jh@suse.cz>
1211 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
1212 edge only when checking is enabled; check using former_clone_of;
1213 check inline clones too.
1214 (cgraph_materialize_clone): Record former_clone_of pointer.
1215 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
1216 combining redirections; dump args_to_skip bitmap
1217 (cgraph_materialize_all_clones): Do no redirection here.
1218 * ipa-inline.c (inline_transform): Do redirection here.
1219 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
1222 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1224 * config/avr/avr-c.c: Do not include regs.h.
1225 Include cpplib.h for cpp_define and tree.h for c-common.h.
1226 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
1227 * config/avr/t-avr: Fix dependencies for avr-c.o.
1229 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1231 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
1232 string instead of SYMBOL_REF rtx.
1233 * rtl.h (set_stack_check_libfunc): Move prototype from here...
1234 * libfuncs.h: ...to here. Adjust for explow.c change.
1236 2010-05-26 Joseph Myers <joseph@codesourcery.com>
1238 * pretty-print.c: Don't include ggc.h.
1239 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
1240 (identifier_to_locale): Use them for allocation.
1241 * pretty-print.h (identifier_to_locale_alloc,
1242 identifier_to_locale_free): Declare.
1243 * toplev.c (alloc_for_identifier_to_locale): New.
1244 (general_init): Set identifier_to_locale_alloc and
1245 identifier_to_locale_free.
1246 * Makefile.in (pretty-print.o): Update dependencies.
1248 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
1250 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
1251 pointer types if they have different alignment or mode.
1253 2010-05-26 Anatoly Sokolov <aesok@post.ru>
1255 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1256 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1257 * config/sparc/sparc-protos.h (function_value): Remove declaration.
1258 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
1259 sparc_function_value_regno_p): New functions.
1260 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1261 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1262 (function_value): Rename to...
1263 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
1264 argument to 'outgoing'.
1265 (function_arg_record_value, function_arg_union_value,
1266 function_arg_vector_value): Update comment.
1268 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
1270 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
1271 (fde_needed_for_eh_p): New predicate.
1272 (output_call_frame_info): Use it throughout to decide whether FDEs
1273 are needed for EH purpose.
1274 (dwarf2out_begin_prologue): Reorder assignments.
1276 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1278 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
1279 special case loop->header.
1280 (is_predicated): New.
1281 (if_convertible_loop_p): Call it.
1283 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1285 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
1286 iterator in parameter. Do not generate code during the analysis.
1287 (tree_if_convert_cond_stmt): Removed.
1288 (tree_if_convert_stmt): Removed.
1289 (predicate_bbs): New.
1290 (if_convertible_loop_p): Call predicate_bbs.
1291 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
1292 now contains all the analysis part.
1294 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1296 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
1297 statements in the analysis part.
1298 (tree_if_convert_stmt): Update comment.
1299 (remove_conditions_and_labels): New.
1300 (combine_blocks): Call remove_conditions_and_labels.
1301 (tree_if_conversion): Update comment.
1303 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1305 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
1306 than 2 predecessors or more than 2 successors.
1308 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1310 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
1311 of loops in which the data dependence analysis fails.
1313 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1315 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
1316 CDI_POST_DOMINATORS.
1317 (tree_if_conversion): Same.
1319 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1321 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
1323 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1325 * tree-if-conv.c: Update copyright years. Fix comments.
1328 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
1330 * builtin-types.def (BT_INT128): New primitive type.
1331 (BT_UINT128): Likewise.
1332 * c-common.c (c_common_r): Add __int128 keyword.
1333 (c_common_type_for_size): Handle __int128.
1334 (c_common_type_for_mode): Likewise.
1335 (c_common_signed_or_unsigned_type): Likewise.
1336 (c_common_nodes_and_builtins): Add builtin type
1337 if target supports 128-bit integer scalar.
1338 * c-common.h (enum rid): Add RID_INT128.
1339 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
1340 if target supports 128-bit integer scalar.
1341 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
1342 (finish_declspecs): Likewise.
1343 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
1344 (c_token_starts_declspecs): Likewise.
1345 (c_parser_declspecs): Likewise.
1346 (c_parser_attributes): Likewise.
1347 (c_parser_objc_selector): Likewise.
1348 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
1349 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
1350 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
1351 * tree.c (make_or_reuse_type): Likewise.
1352 (make_unsigned_type): Likewise.
1353 (build_common_tree_nodes_2): Likewise.
1354 * tree.h (enum integer_type_kind): Add itk_int128 and
1355 itk_unsigned_int128.
1356 (int128_integer_type_node): New define.
1357 (int128_unsigned_type_node): New define.
1358 * doc/extend.texi: Add documentation about __int128 type.
1360 2010-05-26 Richard Guenther <rguenther@suse.de>
1362 * tree-ssa-sccvn.c (copy_nary): Adjust.
1363 (copy_phis): Rename to ...
1364 (copy_phi): ... this. Adjust.
1365 (copy_references): Rename to ...
1366 (copy_reference): ... this. Adjust.
1367 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
1368 result into the valid table.
1370 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1372 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
1373 insn-config.h, insn-codes.h, recog.h, and optabs.h.
1375 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1377 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
1379 2010-05-26 Richard Guenther <rguenther@suse.de>
1381 * opts.c (common_handle_option): Handle OPT_Ofast.
1383 2010-05-26 Joseph Myers <joseph@codesourcery.com>
1385 * diagnostic.c: Don't include opts.h.
1386 (permissive_error_option): Define.
1387 (diagnostic_initialize): Take n_opts parameter. Allocate memory
1388 for classify_diagnostic. Don't use memset for
1389 classify_diagnostic. Initialize new and recently added fields.
1390 (diagnostic_classify_diagnostic): Use context->n_opts instead of
1392 (diagnostic_report_diagnostic): Pass context parameter to
1393 diagnostic_report_warnings_p. Use option_enabled and option_name
1395 (emit_diagnostic): Use permissive_error_option.
1396 (permerror): Likewise.
1397 * diagnostic.h: Don't include options.h.
1398 (struct diagnostic_context): Add n_opts, opt_permissive,
1399 inhibit_warnings, warn_system_headers, option_enabled and
1400 option_name fields. Change classify_diagnostic to a pointer.
1401 * opts-diagnostic.h: New file.
1402 * opts.c: Include opts-diagnostic.h.
1403 (common_handle_option): Set global_dc fields for -Wfatal-errors,
1404 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
1405 (option_name): New function.
1406 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
1407 (c_common_handle_option): Set global_dc->permissive for
1409 * c-common.c (c_cpp_error): Save and restore
1410 global_dc->warn_system_headers, not variable warn_system_headers.
1411 * toplev.c: Include opts-diagnostic.h.
1412 (general_init): Update call to diagnostic_initialize. Set
1413 global_dc->show_column, global_dc->option_enabled and
1414 global_dc->option_name.
1415 (process_options): Don't set global_dc fields here.
1416 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
1417 (diagnostic.o, opts.o, toplev.o): Update dependencies.
1419 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
1421 * config/picochip/picochip.md (movsi): Split a movsi from a
1424 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1426 * ggc-zone.c: Update copyright year.
1427 (poison_region): Mark memory for Valgrind as undefined before
1428 memset () call and inaccessible afterwards.
1429 (ggc_pch_total_size): Change type of i to int.
1431 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1433 * ggc-common.c (ggc_free_overhead): Allow empty slot.
1435 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1437 * ggc-common.c: Update copyright year.
1438 (ggc_rlimit_bound): Remove prototype. Compile only if
1439 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
1440 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
1441 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
1442 (ggc_min_heapsize_heuristic): Likewise.
1444 2010-05-26 Richard Guenther <rguenther@suse.de>
1446 PR rtl-optimization/44164
1447 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
1448 no-common access-path disambiguation.
1449 (indirect_ref_may_alias_decl_p): Adjust.
1450 (indirect_refs_may_alias_p): Likewise.
1451 (refs_may_alias_p_1): Likewise.
1453 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1455 * c-typeck.c: Do not include expr.h.
1457 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1459 * rtl.h (decl_default_tls_model): Move prototype from here...
1460 * output.h: ...to here.
1461 * c-decl.c: Do not include rtl.h.
1462 * c-pragma.c: Likewise.
1463 * c-parser.c: Likewise.
1464 * c-gimplify.c: Likewise. And also not hard-reg-set.
1465 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
1466 FIXME note for it. Add a FIXME note for expr.h.
1467 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
1468 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
1471 2010-05-26 Jakub Jelinek <jakub@redhat.com>
1474 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
1475 or total_size is larger than red zone size for non-V4 ABI, emit a
1476 stack_tie resp. frame_tie insn before stack pointer restore.
1477 * config/rs6000/rs6000.md (frame_tie): New insn.
1479 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
1481 * function.h (struct function): Add can_throw_non_call_exceptions bit.
1482 * lto-streamer-in.c (input_function): Stream it in.
1483 * lto-streamer-out.c (output_function): Stream it out.
1484 * function.c (allocate_struct_function): Set it.
1485 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
1486 for flag_non_call_exceptions.
1487 * cfgbuild.c (control_flow_insn_p): Likewise.
1488 (make_edges): Likewise.
1489 * cfgexpand.c (expand_stack_alignment): Likewise.
1490 * combine.c (distribute_notes): Likewise.
1491 * cse.c (cse_extended_basic_block): Likewise.
1492 * except.c (insn_could_throw_p): Likewise.
1493 * gcse.c (simple_mem): Likewise.
1494 * ipa-pure-const.c (check_call): Likewise.
1495 (check_stmt ): Likewise.
1496 * lower-subreg.c (lower-subreg.c): Likewise.
1497 * optabs.c (emit_libcall_block): Likewise.
1498 (prepare_cmp_insn): Likewise.
1499 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
1500 * postreload.c (rest_of_handle_postreload): Likewise.
1501 * reload1.c (reload_as_needed): Likewise.
1502 (emit_input_reload_insns): Likewise.
1503 (emit_output_reload_insns): Likewise.
1504 (fixup_abnormal_edges): Likewise.
1505 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
1506 * store-motion.c (find_moveable_store): Likewise.
1507 * tree-eh.c (stmt_could_throw_p): Likewise.
1508 (tree_could_throw_p): Likewise.
1509 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1510 * config/arm/arm.c (arm_expand_prologue): Likewise.
1511 (thumb1_expand_prologue): Likewise.
1512 * config/rx/rx.md (cbranchsf4): Likewise.
1514 * config/s390/s390.c (s390_emit_prologue): Likewise.
1515 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
1516 (inline_forbidden_into_p): New predicate.
1517 (expand_call_inline): Use it to forbid inlining.
1518 (tree_can_inline_p): Likewise.
1520 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1522 * config/i386/i386-c.c: Do not include rtl.h.
1523 * config/i386/t-i386: Update dependencies.
1525 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1527 * attribs.c: Do not include rtl.h.
1528 * Makefile.in: Update dependencies.
1530 2010-05-25 Anatoly Sokolov <aesok@post.ru>
1532 * double-int.h (double_int_and): New.
1533 * combine.c (try_combine): Clean up, use double_int_* and
1534 immed_double_int_const functions.
1536 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1538 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
1539 stderr to /dev/null instead of grep -q.
1540 * configure: Regenerate.
1542 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1544 * Makefile.in (EXCEPT_H): Fix typo.
1546 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
1548 * ira-build.c (update_conflict_hard_reg_costs): New.
1549 (ira_build): Call update_conflict_hard_reg_costs.
1551 2010-05-25 Jakub Jelinek <jakub@redhat.com>
1554 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
1556 (intersect_loc_chains): Walk the s2var's loc_chain together
1557 with s1node chain as long as the locations are equal, don't
1558 call find_loc_in_1pdv in that case.
1561 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
1562 (copy_bind_expr): ... instead of here.
1563 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
1564 if the block hasn't been remapped.
1565 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
1566 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
1568 2010-05-25 Richard Guenther <rguenther@suse.de>
1571 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
1572 out-of-bounds array accesses.
1574 2010-05-25 Richard Guenther <rguenther@suse.de>
1576 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
1577 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
1578 (run_gcc): Re-organize to make cleanup easier.
1580 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1582 * config/s390/s390.c (optimization_options): Fix and move the
1583 flag_prefetch_loop_arrays override ...
1584 (override_options): ... here.
1586 2010-05-25 Joseph Myers <joseph@codesourcery.com>
1588 * diagnostic.c: Don't include plugin.h.
1589 (diagnostic_report_diagnostic): Don't handle plugins specially
1590 here. Pass context to internal_error callback.
1591 * diagnostic.h (struct diagnostic_context): Add context parameter
1592 to internal_error callback.
1593 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
1594 * plugin.h (struct diagnostic_context): Declare.
1595 (warn_if_plugins, plugins_internal_error_function): Declare.
1596 * toplev.c (general_init): Set global_dc->internal_error.
1597 * Makefile.in (diagnostic.o): Update dependencies.
1599 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
1601 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
1602 * config/rs6000/t-darwin64: New.
1603 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
1606 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
1609 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
1610 match the original (and intended) behaviour before r159557. This
1611 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
1614 2010-05-25 Richard Guenther <rguenther@suse.de>
1616 * doc/invoke.texi: Document -Ofast.
1617 * target.h (struct gcc_target): Add handle_ofast.
1618 * target-def.h (TARGET_HANDLE_OFAST): Add.
1619 (TARGET_INITIALIZER): Adjust.
1620 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
1621 * common.opt (Ofast): Add.
1623 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
1625 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
1626 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
1628 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
1631 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
1632 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
1633 false_rtx. Use false_rtx to compute the correct *ptest for reversed
1634 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
1636 2010-05-25 Jakub Jelinek <jakub@redhat.com>
1638 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
1639 DW_OP_minus with negated offset instead of DW_OP_plus.
1640 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
1642 2010-05-25 Wei Guozhi <carrot@google.com>
1644 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
1645 tst instruction and a new alternative.
1646 * config/arm/constraints.md (Pu): New constraint.
1648 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
1650 * function.c (assign_stack_local_1): Initialize variable
1651 to avoid warning when bootstrapping at -O3.
1653 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
1655 * configure.ac (all_lang_makefiles): Remove everything related to it.
1656 * configure: Regenerate.
1657 * Makefile.in: Fix reference to ada Make-lang.in.
1658 Remove support for LANG_MAKEFILES.
1660 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
1661 Sandra Loosemore <sandra@codesourcery.com>
1663 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
1664 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
1665 description. Add arm_neon_fp16_ok.
1666 (Add Options): Add arm_neon and arm_neon_fp16.
1668 2010-05-24 Joseph Myers <joseph@codesourcery.com>
1670 * diagnostic.c: Don't include flags.h.
1671 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
1672 context parameters. Check flags in the context passed as a parameter.
1673 (diagnostic_build_prefix): Add context parameter. Check
1674 show_column flag in context.
1675 (diagnostic_action_after_output): Check fatal_errors flag in context.
1676 (diagnostic_report_current_module): Check show_column flag in context.
1677 (default_diagnostic_starter): Update call to
1678 diagnostic_build_prefix.
1679 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
1680 (emit_diagnostic): Pass context to permissive_error_kind.
1681 (permerror): Pass context to permissive_error_kind.
1682 * diagnostic.h (struct diagnostic_context): Add show_column,
1683 pedantic_errors, permissive and fatal_errors fields.
1684 (diagnostic_build_prefix): Update prototype.
1686 * toplev.c (process_options): Set flags in global_dc from
1687 flag_show_column, flag_pedantic_errors, flag_permissive,
1689 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
1690 to diagnostic_build_prefix.
1691 * Makefile.in (diagnostic.o): Update dependencies.
1693 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
1695 * config/i386/ia32intrin.h (__crc32q): Define only if
1696 __SSE4_2__ is defined.
1698 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
1702 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
1703 DECL_VISIBILITY_SPECIFIED.
1704 (emutls_decl): Set DECL_PRESERVE_P and copy
1705 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
1706 (emutls_finalize_control_var): New callback.
1707 (emutls_finish): Finalize emutls control variables.
1708 * toplev.c (compile_file): Move the call to emutls_finish ()
1709 before varpool_assemble_pending_decls ().
1711 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
1713 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
1714 added to the preprocessor condition.
1716 2010-05-24 Paul Brook <paul@codesourcery.com>
1718 * gengtype-lex.l: Add HARD_REG_SET.
1719 * expr.c (expand_expr_real_1): Record writes to hard registers.
1720 * function.c (rtl_data): Add asm_clobbers.
1721 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
1722 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
1723 Use crtl->asm_clobbers.
1725 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1727 * doc/makefile.texi (Makefile): Mention stages 'profile'
1728 and 'feedback' for profiledbootstrap.
1730 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
1733 * config/i386/i386.c (def_builtin): Properly check
1734 OPTION_MASK_ISA_64BIT.
1736 2010-05-23 Joseph Myers <joseph@codesourcery.com>
1738 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
1739 typedefs with different but compatible types. Allow duplicate
1740 typedefs with the same type except for pedantic non-C1X, but give
1741 warning for variably modified types.
1742 * c-typeck.c (tagged_types_tu_compatible_p,
1743 function_types_compatible_p, type_lists_compatible_p,
1744 comptypes_internal): Add parameter different_types_p; set
1745 *different_types_p for different but compatible types. All
1747 (comptypes_check_different_types): New.
1748 * c-tree.h (comptypes_check_different_types): Declare.
1750 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
1752 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
1753 * jump.c: Include basic-block.h.
1754 * profile.c: Likewise.
1755 * tree-profile.c: Likewise.
1756 * coverage.c: Likewise.
1757 * basic-block.h (optimize_function_for_size_p): Move to function.h.
1758 (optimize_function_for_speed_p): Likewise.
1759 * function.h (optimize_function_for_size_p,
1760 optimize_function_for_speed_p): Moved here from basic-block.h.
1761 * Makefile.in: Update dependencies.
1763 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1765 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
1766 before calling make; allow override through $MAKE.
1767 * doc/invoke.texi (Optimize Options): Document override.
1769 2010-05-23 Anatoly Sokolov <aesok@post.ru>
1771 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
1772 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1773 (rs6000_mode_dependent_address_ptr): Make static.
1774 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1775 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
1778 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
1781 * config/i386/i386.c: Make sure that the correct regparm is passed.
1783 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
1785 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
1786 * sbitmap.c: ...to here to internalize sbitmap element access.
1787 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
1788 Explain why basic-block.h is included.
1789 * function.h: Include tm.h for CUMULATIVE_ARGS.
1790 * Makefile.in: Update dependencies.
1792 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1794 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
1796 * sbitmap.h (struct sbitmap_def): Do not typedef here.
1797 * sbitmap.c: Include sbitmap.h.
1798 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
1799 hard-reg-set.h. Split everything related to regsets out from here...
1800 * regset.h: ...to here. New file.
1801 * df.h: Include regset.h and sbitmap.h.
1802 * tree-flow.h: Likewise.
1803 * cfgloop.h: Likewise.
1804 * except.h: Do not include sbitmap.h. Include hashtab.h.
1805 * cgraph.h: Include vec.h and function.h.
1806 * reload.h (struct insn_chain): Change types of live_throughout
1807 and dead_or_set from regset_head to bitmap_head.
1808 (compute_use_by_pseudos): Be defined also if regset.h is not included.
1809 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
1810 spilled_regs from regset_head to bitmap_head to avoid dependency
1812 * sel-sched-ir.h: Include regset.h.
1813 * reload.c: Include df.h before reload.h.
1814 * caller-save.c: Likewise.
1815 * reload1.c: Likewise.
1817 (mark_elimination): Update type of r to bitmap, consistent with
1819 * dominance.c: Include bitmap.h.
1820 * modulo-sched.c: Include df.h.
1821 * cfganal.c: Include bitmap.h and sbitmap.h.
1822 * cfgbuild.c: Include sbitmap.h.
1823 * lcm.c: Include sbitmap.h.
1824 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
1825 * domwalk.c: Include sbitmap.h, exclude ggc.h.
1826 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
1827 * cselib.c: Include bitmap.h.
1828 * tree-optimize.c: Include regset.h.
1829 * stmt.c: Include bitmap.h.
1830 * Makefile.in: Update dependencies.
1832 2010-05-22 Jan Hubicka <jh@suse.cz>
1834 * cgraph.h (struct varpool_node): Add same_comdat_group.
1835 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
1837 (output_varpool): Update call of lto_output_varpool_node.
1838 (input_varpool): Read same_comdat_group pointer.
1839 (input_varpool_1): Fixup same_comdat_group pointer.
1840 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
1841 group is needed, all are.
1842 * varpool.c (varpool_remove_node): Remove node from same comdat group
1844 (varpool_analyze_pending_decls): Walk same comdat groups.
1846 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1848 * rtl.h (union rtunion_def): Remove rt_bit member.
1849 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
1850 * print-rtl (print_rtx): Do not print the member.
1851 * gengtype.c (adjust_field_rtx_def): Do not handle it.
1852 * gengenrtl.c (type_from_format): Likewise.
1853 (accessor_from_format): Likewise.
1855 2010-05-22 Joseph Myers <joseph@codesourcery.com>
1857 * dbgcnt.c: Include toplev.h instead of errors.h.
1858 * ira-emit.c: Don't include errors.h.
1859 * ira.c: Include toplev.h instead of errors.h.
1860 * lto-compress.c: Include toplev.h instead of errors.h.
1861 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
1862 ira.o, dbgcnt.o): Update dependencies.
1864 2010-05-22 Richard Guenther <rguenther@suse.de>
1866 * gimple.c (gimple_types_compatible_p): Check type qualifications
1867 before merging pointer to complete and pointer to incomplete type.
1868 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
1869 we use our own resolution algorithm. The gold linker plugin
1870 doesn't do the job we want it to do here.
1872 2010-05-22 Anatoly Sokolov <aesok@post.ru>
1874 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1875 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1876 (sparc_mode_dependent_address_p): New function.
1878 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1880 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
1882 * timevar.c: Do not include any core headers.
1883 (timevar_print): De-i18n-ize.
1884 (print_time): Likewise.
1885 * timevar.h (timevar_push, timevar_pop): Make inline functions.
1887 2010-05-21 Joseph Myers <joseph@codesourcery.com>
1889 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
1891 (diagnostic_initialize): Initialize x_data not last_function.
1892 (diagnostic_report_current_function): Move to tree-diagnostic.c.
1893 (default_diagnostic_starter): Call
1894 diagnostic_report_current_module not
1895 diagnostic_report_current_function.
1896 (diagnostic_report_diagnostic): Initialize x_data not
1898 (verbatim): Likewise.
1899 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
1901 (struct diagnostic_context): Change last_function to x_data.
1902 (diagnostic_auxiliary_data): Replace with
1903 diagnostic_context_auxiliary_data and
1904 diagnostic_info_auxiliary_data.
1905 (diagnostic_last_function_changed, diagnostic_set_last_function,
1906 diagnostic_report_current_function): Move to tree-diagnostic.h.
1907 (print_declaration, dump_generic_node, print_generic_stmt,
1908 print_generic_stmt_indented, print_generic_expr,
1909 print_generic_decl, debug_c_tree, dump_omp_clauses,
1910 print_call_name, debug_generic_expr, debug_generic_stmt,
1911 debug_tree_chain, default_tree_printer): Move to
1912 tree-pretty-print.h.
1913 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
1914 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
1915 gimple-pretty-print.h.
1916 * pretty-print.c: Don't include tree.h
1917 (pp_base_format): Don't handle %K here.
1918 (pp_base_tree_identifier): Move to tree-pretty-print.c.
1919 * pretty-print.h (text_info): Change abstract_origin to x_data.
1920 (pp_tree_identifier, pp_unsupported_tree,
1921 pp_base_tree_identifier): Move to tree-pretty-print.h.
1922 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
1923 tree-pretty-print.h: New files.
1924 * tree-pretty-print.c: Include tree-pretty-print.h.
1925 (percent_K_format): New. Moved from pretty-print.c.
1926 (pp_base_tree_identifier): Move from pretty-print.c.
1927 * c-objc-common.c: Include tree-pretty-print.h.
1928 (c_tree_printer): Handle %K here.
1929 * langhooks.c: Include tree-diagnostic.h.
1930 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
1931 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
1932 (default_tree_printer): Handle %K using percent_K_format.
1933 (general_init): Use default_tree_diagnostic_starter.
1934 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
1935 (free_lang_data): Use default_tree_diagnostic_starter.
1936 * c-pretty-print.c: Include tree-pretty-print.h.
1937 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1938 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1939 * dwarf2out.c: Include tree-pretty-print.h.
1940 * except.c: Include tree-pretty-print.h.
1941 * gimple-pretty-print.c: Include tree-pretty-print.h and
1942 gimple-pretty-print.h.
1943 * gimplify.c: Include tree-pretty-print.h.
1944 * graphite-poly.c: Include tree-pretty-print.h and
1945 gimple-pretty-print.h.
1946 * ipa-cp.c: Include tree-pretty-print.h.
1947 * ipa-inline.c: Include gimple-pretty-print.h.
1948 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1949 * ipa-pure-const.c: Include gimple-pretty-print.h.
1950 * ipa-struct-reorg.c: Include tree-pretty-print.h and
1951 gimple-pretty-print.h.
1952 * ipa-type-escape.c: Include tree-pretty-print.h.
1953 * print-rtl.c: Include tree-pretty-print.h.
1954 * print-tree.c: Include gimple-pretty-print.h.
1955 * sese.c: Include tree-pretty-print.h.
1956 * tree-affine.c: Include tree-pretty-print.h.
1957 * tree-browser.c: Include tree-pretty-print.h.
1958 * tree-call-cdce.c: Include gimple-pretty-print.h.
1959 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1960 * tree-chrec.c: Include tree-pretty-print.h.
1961 * tree-data-ref.c: Include tree-pretty-print.h and
1962 gimple-pretty-print.h.
1963 * tree-dfa.c: Include tree-pretty-print.h.
1964 * tree-if-conv.c: Include tree-pretty-print.h and
1965 gimple-pretty-print.h.
1966 * tree-inline.c: Include tree-pretty-print.h.
1967 * tree-into-ssa.c: Include tree-pretty-print.h and
1968 gimple-pretty-print.h.
1969 * tree-nrv.c: Include tree-pretty-print.h.
1970 * tree-object-size.c: Include tree-pretty-print.h and
1971 gimple-pretty-print.h.
1972 * tree-outof-ssa.c: Include tree-pretty-print.h and
1973 gimple-pretty-print.h.
1974 * tree-parloops.c: Include tree-pretty-print.h and
1975 gimple-pretty-print.h.
1976 * tree-predcom.c: Include tree-pretty-print.h and
1977 gimple-pretty-print.h.
1978 * tree-scalar-evolution.c: Include tree-pretty-print.h and
1979 gimple-pretty-print.h.
1980 * tree-sra.c: Include tree-pretty-print.h.
1981 * tree-ssa-address.c: Include tree-pretty-print.h.
1982 * tree-ssa-alias.c: Include tree-pretty-print.h.
1983 * tree-ssa-ccp.c: Include tree-pretty-print.h and
1984 gimple-pretty-print.h.
1985 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
1986 * tree-ssa-copy.c: Include tree-pretty-print.h and
1987 gimple-pretty-print.h.
1988 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
1989 * tree-ssa-dce.c: Include tree-pretty-print.h and
1990 gimple-pretty-print.h.
1991 * tree-ssa-dom.c: Include tree-pretty-print.h and
1992 gimple-pretty-print.h.
1993 * tree-ssa-dse.c: Include gimple-pretty-print.h.
1994 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
1995 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
1996 * tree-ssa-live.c: Include tree-pretty-print.h and
1997 gimple-pretty-print.h.
1998 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
1999 gimple-pretty-print.h.
2000 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
2001 gimple-pretty-print.h.
2002 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
2003 gimple-pretty-print.h.
2004 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
2005 gimple-pretty-print.h.
2006 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
2007 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
2008 * tree-ssa-operands.c: Include tree-pretty-print.h and
2009 gimple-pretty-print.h.
2010 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
2011 gimple-pretty-print.h.
2012 * tree-ssa-pre.c: Include tree-pretty-print.h and
2013 gimple-pretty-print.h.
2014 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
2015 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
2016 gimple-pretty-print.h.
2017 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
2018 gimple-pretty-print.h.
2019 * tree-ssa-sink.c: Include gimple-pretty-print.h.
2020 * tree-ssa-ter.c: Include tree-pretty-print.h and
2021 gimple-pretty-print.h.
2022 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
2023 * tree-ssa.c: Include tree-pretty-print.h and
2024 gimple-pretty-print.h.
2025 * tree-stdarg.c: Include gimple-pretty-print.h.
2026 * tree-switch-conversion.c: Include gimple-pretty-print.h.
2027 * tree-tailcall.c: Include tree-pretty-print.h and
2028 gimple-pretty-print.h.
2029 * tree-vect-data-refs.c: Include tree-pretty-print.h and
2030 gimple-pretty-print.h.
2031 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
2032 gimple-pretty-print.h.
2033 * tree-vect-loop.c: Include tree-pretty-print.h and
2034 gimple-pretty-print.h.
2035 * tree-vect-patterns.c: Include gimple-pretty-print.h.
2036 * tree-vect-slp.c: Include tree-pretty-print.h and
2037 gimple-pretty-print.h.
2038 * tree-vect-stmts.c: Include tree-pretty-print.h and
2039 gimple-pretty-print.h.
2040 * tree-vectorizer.c: Include tree-pretty-print.h.
2041 * tree-vrp.c: Include tree-pretty-print.h and
2042 gimple-pretty-print.h.
2043 * value-prof.c: Include tree-pretty-print.h and
2044 gimple-pretty-print.h.
2045 * var-tracking.c: Include tree-pretty-print.h.
2046 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
2047 (tree-diagnostic.o): New dependencies.
2048 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
2049 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
2050 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
2051 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
2052 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
2053 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
2054 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
2055 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
2056 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
2057 tree-ssa-address.o, tree-ssa-loop-niter.o,
2058 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
2059 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
2060 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
2061 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
2062 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
2063 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
2064 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
2065 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
2066 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
2067 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
2068 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
2069 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
2070 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
2071 tree-switch-conversion.o, var-tracking.o, value-prof.o,
2072 cfgexpand.o, pretty-print.o): Update dependencies.
2074 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
2076 * tree-ssa-structalias.c: Remove tm_p.h from include.
2078 2010-05-21 Jeff Law <law@redhat.com>
2080 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
2082 2010-05-21 Jason Merrill <jason@redhat.com>
2084 * tree-eh.c (cleanup_is_dead_in): New.
2085 (lower_try_finally): Don't generate a dead cleanup region.
2086 (lower_cleanup): Likewise.
2088 2010-05-21 Jakub Jelinek <jakub@redhat.com>
2091 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
2092 unchain each use from the cyclic next_regno_use chain first.
2094 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
2096 * real: Do not include gmp.h, mpfr.h, and mpc.h.
2097 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
2098 (real_value_negate, real_value_abs): New prototypes.
2099 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
2100 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
2101 new include file for interface between MPFR and REAL_VALUE_TYPE.
2102 * real.c: Include realmpfr.h.
2103 (real_arithmetic2): Remove legacy function.
2104 (real_value_negate): New.
2105 (real_value_abs): New.
2106 (mfpr_from_real, real_from_mpfr): Move from here...
2107 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
2108 * builtins.c: Include realmpfr.h.
2109 * fold-const.c: Include realmpfr.h.
2110 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
2111 (fold_negate_const): Likewise.
2112 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
2113 * toplev.c: Include realmpfr.h.
2114 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
2115 and real_value_negate.
2116 * fixed-value.c (check_real_for_fixed_mode): Likewise.
2117 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
2118 (vfp3_const_double_index): Likewise.
2119 (arm_print_operand): Likewise.
2120 * Makefile.in: Update dependencies.
2122 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2124 * config/s390/s390.c (override_options): Increase the default
2125 of max-completely-peel-times.
2127 2010-05-21 Julian Brown <julian@codesourcery.com>
2128 Mark Mitchell <mark@codesourcery.com>
2130 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
2131 sibling calls for Thumb-1.
2132 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
2133 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
2135 (*call_insn, *call_value_insn): Don't use for Thumb-2.
2136 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
2138 (return): New expander.
2139 (*arm_return): New name for ARM return insn.
2140 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
2142 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
2144 * config.gcc (sparc64-*-rtems*): New target.
2146 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
2148 * tree.c (build_function_decl_skip_args): Fix grammar.
2149 (build_function_type_list_1): Fix typos, adjust formatting.
2151 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
2153 * tree.h: Include real.h and fixed-value.h as basic datatypes.
2154 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
2155 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
2156 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
2157 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
2158 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
2159 tree-pretty-print.c, tree-loop-distribution.c,
2160 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
2161 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
2162 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
2163 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
2164 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
2165 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
2166 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
2167 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
2168 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
2169 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
2170 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
2171 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
2172 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
2173 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
2174 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
2175 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
2176 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
2177 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
2178 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
2179 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
2180 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
2181 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
2182 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
2183 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
2184 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
2185 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
2186 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
2187 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
2188 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
2189 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
2190 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
2191 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
2192 config/score/score7.c, config/score/score.c, config/arm/arm.c,
2193 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
2194 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
2195 config/bfin/bfin.c: Clean up redundant includes.
2196 * Makefile.in: Update accordingly.
2198 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
2201 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
2202 statement has no arguments.
2204 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
2207 * varasm.c (emutls_decl): Merge attributes to new decl.
2209 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
2212 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
2213 around the uniquized constructor if its type requires a conversion.
2215 2010-05-21 Jakub Jelinek <jakub@redhat.com>
2218 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
2219 at -O0 goto_locus of any of the incoming edges differs from
2220 goto_locus of outgoing edge, or gimple_location of any of the
2223 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
2225 * ira.c (ira_non_ordered_class_hard_regs): Define.
2226 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
2227 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
2228 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
2229 cost of unaligned hard regs when allocating multi-reg pseudos.
2231 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
2233 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
2234 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
2235 for TARGET_NO_FLOAT.
2236 * config/mips/mips.c (mips_file_start): Expand conditional expression
2237 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
2238 (mips_override_options): Move -mno-float override -msoft-float and
2240 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
2241 Condition(TARGET_SUPPORTS_NO_FLOAT).
2242 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
2243 __mips_no_float here.
2244 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
2245 (TARGET_SUPPORTS_NO_FLOAT): Define.
2246 * config/mips/sdemtk.opt: Delete.
2248 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
2250 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
2252 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
2255 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
2256 * configure: Regenerate.
2257 * config.in: Regenerate.
2258 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
2259 instead of sahf only for 64bit targets.
2261 2010-05-20 Jakub Jelinek <jakub@redhat.com>
2264 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
2265 setup_ref_regs for DEBUG_INSNs.
2267 2010-05-20 Jan Hubicka <jh@suse.cz>
2270 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
2272 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2275 * df-scan.c (df_ref_compare): Stabilize sort.
2277 2010-05-20 Jakub Jelinek <jakub@redhat.com>
2279 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
2280 argument. Don't use DW_OP_piece if offset is non-zero,
2281 put offset into second DW_OP_bit_piece argument.
2282 (dw_sra_loc_expr): Adjust callers. For memory expressions
2285 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
2288 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
2289 settings for 16-bit-constant "addo" alternative.
2291 2010-05-19 James E. Wilson <wilson@codesourcery.com>
2293 * config/mips/mips-dsp.md (add<DSPV:mode>3,
2294 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
2297 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
2298 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
2301 2010-05-19 Joseph Myers <joseph@codesourcery.com>
2303 * diagnostic.c (FLOAT, FFS): Don't undefine.
2304 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
2305 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
2308 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2310 * combine.c (propagate_for_debug): Call make_compound_operation
2311 on the source value.
2312 (try_combine): When implementing a split chosen by find_split_point,
2313 either copy i2src or set it to null. Assert that i2src is not null
2314 before substituting into CALL_INSN_FUNCTION_USAGE.
2316 2010-05-19 Anatoly Sokolov <aesok@post.ru>
2318 * double-int.h (double_int_ior): New function.
2319 * tree.h (build_int_cst_wide_type): Remove.
2320 * tree.c (build_int_cst_wide_type): Remove.
2321 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
2322 of build_int_cst_wide_type.
2323 * stor-layout.c (set_sizetype): (Ditto.).
2324 * dojump.c (do_jump): Use build_int_cstu instead of
2325 build_int_cst_wide_type.
2327 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
2329 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
2330 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
2331 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
2332 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
2333 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
2334 propagate the 'data' argument to copy_tree_r.
2335 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
2336 Propagate 'data' argument to walk_tree.
2337 (copy_if_shared): New function.
2338 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
2339 (unmark_visited): New function.
2340 (unshare_body): Call copy_if_shared instead of doing it manually.
2341 (unvisit_body): Call unmark_visited instead of doing it manually.
2343 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
2345 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
2346 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
2347 * hooks.c: Likewise.
2348 * target-def.h (TARGET_FOLD_BUILTIN): Define to
2349 hook_tree_tree_int_treep_bool_null.
2350 * target.h (struct gcc_target): Update signature of fold_builtin
2352 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
2353 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
2354 instead of the call expression.
2355 (fold_builtin_call_array): Pass n and argarray directly.
2356 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
2358 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
2359 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
2360 `i' and use it in place of `arity'.
2361 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
2362 Dereference `args' directly.
2363 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
2365 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2367 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2369 (Directives): Document optional dg-require-effective-target
2372 2010-05-19 Richard Guenther <rguenther@suse.de>
2375 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
2377 2010-05-19 Richard Guenther <rguenther@suse.de>
2379 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
2380 * common.opt (fwhopr=): New.
2381 * opts.c (common_handle_option): Handle OPT_fwhopr.
2382 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
2383 * collect2.c (main): Match -fwhopr*.
2384 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
2385 Execute ltrans stage in parallel when jobs is bigger than 1.
2387 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2389 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2390 pentiumpro on Solaris 8/x86 with Sun as.
2391 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
2393 (gcc_cv_as_ix86_quad): Check for .quad directive.
2394 * configure: Regenerate.
2395 * config.in: Regenerate.
2396 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
2398 2010-05-19 Martin Jambor <mjambor@suse.cz>
2400 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
2401 also for indirect edges. Actual printing moved...
2402 (ipa_print_node_jump_functions_for_edge): ...here.
2403 (ipa_compute_jump_functions): Renamed to
2404 ipa_compute_jump_functions_for_edge and made static.
2405 (ipa_compute_jump_functions): New function.
2406 (make_edge_direct_to_target): Check if the number of arguments on
2407 the newly direct edge is the same as the number of parametrs of
2409 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
2410 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
2411 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2412 analysis functions unconditionally, call the new
2413 ipa_analyze_params_uses on the node instead of every edge.
2415 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
2417 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
2419 (dump_mem_ref): Adopt debug code to handle a tree as step. This
2420 also checks for a constant int vs. non-constant but
2421 loop-invariant steps.
2422 (find_or_create_group): Change the sort algorithm to only consider
2423 steps that are constant ints.
2424 (idx_analyze_ref): Adopt code to handle a tree instead of a
2425 HOST_WIDE_INT for step.
2426 (gather_memory_references_ref): Handle tree instead of int and be
2427 prepared to see a NULL_TREE.
2428 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
2429 prefetches if the step cannot be calculated at compile time.
2430 (issue_prefetch_ref): Issue prefetches for non-constant but
2431 loop-invariant steps.
2433 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2436 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2438 * tree.h (build_call_list): Remove.
2439 * tree.c (build_call_list): Remove.
2441 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2443 * tree.h (build_call_list): Remove.
2444 * tree.c (build_call_list): Remove.
2446 2010-05-18 Jan Hubicka <jh@suse.cz>
2448 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
2450 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
2452 PR rtl-optimization/43332
2453 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
2455 2010-05-18 Anatoly Sokolov <aesok@post.ru>
2457 * tree.h (build_int_cstu): Implement as static inline.
2458 * tree.c (build_int_cstu): Remove function.
2459 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
2462 2010-05-18 Richard Guenther <rguenther@suse.de>
2465 * lto-wrapper.c (verbose): New variable. Initialize from -v.
2466 (debug): Initialize from -save-temps.
2467 (collect_execute): Print command-line when verbose.
2468 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
2469 for ltrans invocation. Produce -dumpbase flag again.
2470 (process_args): Remove.
2472 * collect2.c (maybe_run_lto_and_relink): Only pass object
2473 files to lto-wrapper.
2474 * gcc.c (LINK_COMMAND_SPEC): Likewise.
2476 2010-05-18 Jan Hubicka <jh@suse.cz>
2478 * opts.c (decode_options): Do not disable whopr at ipa_cp.
2479 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
2481 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
2484 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
2486 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
2489 2010-05-18 Jakub Jelinek <jakub@redhat.com>
2492 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
2495 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
2497 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
2498 lto-macho as lto_binary_reader.
2500 * darwin.c (darwin_asm_named_section): Do not add assembler comment
2501 after .section directive; just print it before the directive instead.
2503 2010-05-17 Jan Hubicka <jh@suse.cz>
2505 * cgraph.c (cgraph_create_virtual_clone): Only check
2506 versionable_function_p when not in wpa and checking is enabled.
2507 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
2508 there are no more functions to materialize.
2510 2010-05-17 Jan Hubicka <jh@suse.cz>
2512 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
2513 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
2515 (output_cgraph): Call output_cgraph_opt_summary.
2516 (input_cgrpah): Call input_cgraph_opt_summary.
2517 (output_cgraph_opt_summary_p, output_node_opt_summary,
2518 input_node_opt_summary, input_cgraph_opt_section): New functions.
2519 * lto-section-in.c (lto_section_name): Add cgraphopt.
2520 * tree-inline.c (tree_function_versioning): Handle parm_num.
2521 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
2522 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
2524 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
2526 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
2527 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
2528 the insn to prefetch ratio heuristic to loops with known trip count.
2530 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
2532 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
2533 (schedule_prefetches): Do not generate a prefetch if the unroll factor
2534 is far from what is required by the prefetch.
2536 2010-05-17 Jan Hubicka <jh@suse.cz>
2538 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
2539 (ipcp_estimate_growth): Likewise.
2540 (ipcp_const_param_count): Likewise.
2541 (ipcp_insert_stage): Likewise.
2542 * ipa-prop.c (visit_load_for_mod_analysis): New function.
2543 (visit_store_addr_for_mod_analysis): Set used flag.
2544 (ipa_detect_param_modifications): Set used flag for SSE params;
2545 update use of walk_stmt_load_store_addr_ops.
2546 (ipa_print_node_params): Print used flag.
2547 (ipa_write_node_info): Stream used flag.
2548 (ipa_read_node_info): Likewise.
2549 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
2550 (ipa_is_param_used): New function.
2551 (lto_ipa_fixup_call_notes): Remove unused declaration.
2553 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2556 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
2557 * configure: Regenerate.
2558 * config.in: Regenerate.
2559 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
2560 !HAVE_AS_IX86_REP_LOCK_PREFIX.
2561 Don't emit whitespace.
2562 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
2563 (*rep_movsi): Likewise.
2564 (*rep_movsi_rex64): Likewise.
2565 (*rep_movqi): Likewise.
2566 (*rep_movqi_rex64): Likewise.
2567 (*rep_stosdi_rex64): Likewise.
2568 (*rep_stossi): Likewise.
2569 (*rep_stossi_rex64): Likewise.
2570 (*rep_stosqi): Likewise.
2571 (*rep_stosqi_rex64): Likewise.
2572 (*cmpstrnqi_nz_1): Use {%;} after repz.
2573 (*cmpstrnqi_nz_rex_1): Likewise.
2574 (*cmpstrnqi_1): Likewise.
2575 (*cmpstrnqi_rex_1): Likewise.
2576 (*strlenqi_1): Use {%;} after repnz.
2577 (*strlenqi_rex_1): Likewise.
2578 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
2579 (*sync_compare_and_swap<mode>): Likewise.
2580 (sync_double_compare_and_swap<mode>): Likewise.
2581 (*sync_double_compare_and_swapdi_pic): Likewise.
2582 (sync_old_add<mode>): Likewise.
2583 (sync_add<mode>): Likewise.
2584 (sync_sub<mode>): Likewise.
2585 (sync_<code><mode>): Likewise.
2587 2010-05-17 Martin Jambor <mjambor@suse.cz>
2589 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
2590 otr_token and polymorphic.
2591 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
2592 (cgraph_clone_edge): Copy the above fields.
2593 * tree.c (get_binfo_at_offset): New function.
2594 * tree.h (get_binfo_at_offset): Declare.
2595 * ipa-prop.h (enum jump_func_type): Added known_type jump function
2596 type, reordered items, updated comments.
2597 (union jump_func_value): Added base_type field, reordered fields.
2598 (enum ipa_lattice_type): Moved down in the file.
2599 (struct ipa_param_descriptor): New field polymorphic.
2600 (ipa_is_param_polymorphic): New function.
2601 * ipa-prop.c: Include gimple.h and gimple-fold.h.
2602 (ipa_print_node_jump_functions): Print known type jump functions.
2603 (compute_complex_pass_through): Renamed to...
2604 (compute_complex_assign_jump_func): this.
2605 (compute_complex_ancestor_jump_func): New function.
2606 (compute_known_type_jump_func): Likewise.
2607 (compute_scalar_jump_functions): Create known type and complex ancestor
2609 (ipa_note_param_call): New parameter polymorphic, set the corresponding
2610 flag in the call note accordingly.
2611 (ipa_analyze_call_uses): Renamed to...
2612 (ipa_analyze_indirect_call_uses): this. New parameter target, define
2613 variable var only in the block where it is used.
2614 (ipa_analyze_virtual_call_uses): New function.
2615 (ipa_analyze_call_uses): Likewise.
2616 (combine_known_type_and_ancestor_jfs): Likewise.
2617 (update_jump_functions_after_inlining): Implemented handling of a
2618 number of new jump function types combination.
2619 (print_edge_addition_message): Removed.
2620 (make_edge_direct_to_target): New function.
2621 (try_make_edge_direct_simple_call): Likewise.
2622 (try_make_edge_direct_virtual_call): Likewise.
2623 (update_call_notes_after_inlining): Renamed to...
2624 (update_indirect_edges_after_inlining): this. Moved edge creation for
2625 indirect calls to try_make_edge_direct_simple_call, also calls
2626 try_make_edge_direct_virtual_call for virtual calls.
2627 (ipa_print_node_params): Changed the header message.
2628 (ipa_write_jump_function): Stream also known type jump functions.
2629 (ipa_read_jump_function): Likewise.
2630 (ipa_write_indirect_edge_info): Stream new fields in
2631 cgraph_indirect_call_info.
2632 (ipa_read_indirect_edge_info): Likewise.
2633 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
2636 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2638 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
2640 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2642 * tree.h (CALL_EXPR_ARGS): Delete.
2643 (call_expr_arglist): Delete.
2644 * tree.c (call_expr_arglist): Delete.
2645 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
2646 targetm.fold_builtin.
2647 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
2648 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
2649 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
2650 arglist parameter. Use CALL_EXPR_ARG.
2651 (picochip_expand_builtin_3op): Likewise.
2652 (picochip_expand_builtin_2opvoid): Likewise.
2653 (picochip_expand_array_get): Likewise.
2654 (picochip_expand_array_put): Likewise.
2655 (picochip_expand_array_testport): Likewise.
2656 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
2657 rather than arglist.
2658 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
2660 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
2661 than TREE_VALUE and TREE_CHAIN.
2662 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2663 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
2666 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2669 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
2670 to have no fallthru edge.
2673 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
2674 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
2675 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
2676 add BARRIER after previous bb if needed.
2678 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2680 * tree.c (build_function_type_list_1): Remove bogus assert condition.
2682 2010-05-17 Alan Modra <amodra@gmail.com>
2684 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
2685 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
2686 with copy_reg rtx param.
2687 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
2688 Correct cases where code for ABI_V4 did not initialise the reg
2689 used to access frame. Also leave frame_reg_rtx as sp for large
2690 frames that save no regs.
2692 2010-05-17 Martin Jambor <mjambor@suse.cz>
2695 * tree-sra.c (create_access_replacement): New parameter rename, mark
2696 the replaement for renaming only when it is true.
2697 (get_access_replacement): Pass true in the rename parameter of
2698 create_access_replacement.
2699 (get_unrenamed_access_replacement): New function.
2700 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
2701 replacement declaration from it.
2703 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
2705 * function.c (try_fit_stack_local, add_frame_space): New static
2707 (assign_stack_local_1): Use them. Look for opportunities to use
2708 space previously wasted on alignment.
2709 * function.h (struct frame_space): New.
2710 (struct rtl_data): Add FRAME_SPACE_LIST member.
2711 * reload1.c (something_was_spilled): New static variable.
2712 (alter_reg): Set it.
2713 (reload): Test it in addition to testing if the frame size changed.
2715 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
2717 * config/s390/s390.c: Define sane prefetch settings and activate
2718 flag_prefetch_loop_arrays on -O3.
2719 * config/s390/s390.h: Declare that read can use write prefetch.
2721 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2723 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
2726 2010-05-16 Jan Hubicka <jh@suse.cz>
2728 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
2729 function body; do not check stdarg field of struct function.
2731 2010-05-16 Jan Hubicka <jh@suse.cz>
2733 * cgraph.c (dump_cgraph_node): Dump versionable flag.
2734 * cgraph.h (cgraph_local_info): Add versionable flag.
2735 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
2736 (ipcp_versionable_function_p): Use it.
2737 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2740 2010-05-16 Jan Hubicka <jh@suse.cz>
2742 * cgraph.c (cgraph_clone_node): Take decl argument and insert
2743 clone into hash when it is different from orig.
2744 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
2745 * cgraph.h (cgraph_clone_node): Update prototype.
2746 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
2747 (lto_cgraph_encoder_delete): Delete body map.
2748 (lto_cgraph_encoder_size): Move to header.
2749 (lto_cgraph_encoder_encode_body_p,
2750 lto_set_cgraph_encoder_encode_body): New.
2751 (lto_output_node): Do not take written_decls argument; output clone_of
2753 (add_node_to): Add include_body_argument; call
2754 lto_set_cgraph_encoder_encode_body on master of the clone.
2755 (add_references): Update use of add_node_to.
2756 (compute_ltrans_boundary): Likewise.
2757 (output_cgraph): Do not create written_decls bitmap.
2758 (input_node): Take nodes argument; stream in clone_of correctly.
2759 (input_cgraph_1): Update use of input_node.
2760 * lto-streamer-out.c (lto_output): Use encoder info to decide
2761 what bodies to output.
2762 * ipa-inline.c (cgraph_clone_inlined_nodes,
2763 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
2764 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
2765 (lto_cgraph_encoder_size): Define here.
2766 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
2769 2010-05-16 Richard Guenther <rguenther@suse.de>
2771 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
2773 * ipa-type-escape.c (gate_type_escape_vars): Run when
2774 -fipa-struct-reorg runs.
2775 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
2776 * common.opt (fipa-type-escape): Remove.
2778 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
2780 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
2781 (decode_options): Likewise.
2782 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
2784 2010-05-16 Jan Hubicka <jh@suse.cz>
2786 * ipa.c (function_and_variable_visibility): Also bring local all
2789 2010-05-16 Richard Guenther <rguenther@suse.de>
2791 * alias.c (nonoverlapping_memrefs_p): Remove use of
2792 IPA type-escape information.
2794 2010-05-16 Joseph Myers <joseph@codesourcery.com>
2796 * c-common.c (c_common_reswords): Add _Static_assert for C.
2797 * c-parser.c (c_token_starts_declaration,
2798 c_parser_next_token_starts_declaration,
2799 c_parser_static_assert_declaration_no_semi,
2800 c_parser_static_assert_declaration): New.
2801 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
2802 Handle static assertions if static_assert_ok.
2803 (c_parser_external_declaration, c_parser_declaration_or_fndef,
2804 c_parser_compound_statement_nostart, c_parser_label,
2805 c_parser_for_statement, c_parser_objc_methodprotolist,
2806 c_parser_omp_for_loop): All callers of
2807 c_parser_declaration_or_fndef changed.
2808 (c_parser_struct_declaration): Handle static assertions.
2809 (c_parser_compound_statement_nostart): Use
2810 c_parser_next_token_starts_declaration and
2811 c_token_starts_declaration to detect start of declarations.
2812 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
2815 2010-05-16 Anatoly Sokolov <aesok@post.ru>
2817 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2818 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2819 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2820 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2821 (mmix_function_outgoing_value): Rename to...
2822 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
2823 (mmix_function_value_regno_p): Make static.
2824 (mmix_libcall_value): New function.
2825 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
2826 mmix_function_value_regno_p): Remove declaration.
2828 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
2830 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
2831 BUILT_IN_ALLOCA if stack checking is enabled.
2833 2010-05-16 Richard Guenther <rguenther@suse.de>
2835 * var-tracking.c (vars_copy_1): Inline ...
2836 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
2837 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
2838 (variable_merge_over_cur): Adjust. Merge asserts.
2839 (variable_merge_over_src): Likewise.
2840 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
2841 (variable_post_merge_new_vals): Merge asserts.
2842 (variable_post_merge_perm_vals): Likewise.
2843 (find_mem_expr_in_1pdv): Likewise.
2844 (dataflow_set_different_value): Remove.
2845 (onepart_variable_different_p): Merge asserts.
2846 (variable_different_p): Likewise.
2847 (dataflow_set_different_1): Inline ...
2848 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
2849 (emit_notes_for_differences_1): Merge asserts.
2851 2010-05-16 Richard Guenther <rguenther@suse.de>
2853 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
2854 * optabs.c (libfunc_decl_hash): Likewise.
2855 * varasm.c (emutls_decl): Likewise.
2857 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
2859 * c-decl.c: Don't include gimple.h.
2860 (merge_decls): Do not copy gimple_body.
2862 2010-05-15 Jason Merrill <jason@redhat.com>
2864 * c.opt: Add -fnothrow-opt.
2866 2010-05-15 Jan Hubicka <jh@suse.cz>
2868 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
2870 * passes.c (ipa_write_summaries): Write all analyzed nodes.
2872 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
2874 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
2875 * Makefile.in: Add it.
2876 Fix all other Makefile dependencies for changes below.
2877 * tree.h: Include it instead of defining VEC primitives here.
2878 * gimple.h: Likewise.
2880 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
2881 * except.h: Include vecir.h, break dependence on tree.h.
2883 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
2885 * tree-iterator.c: ...to here.
2886 * tree-iterator.h: Fix file introduction comment. Add extern markers.
2888 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
2890 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
2891 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
2892 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
2893 tree-mudflap.h, and target.h.
2894 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
2895 predict.h, tree-inline.h, gimple.h, and langhooks.h.
2896 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
2897 Add FIXME for why gimple.h is still included (should be unnecessary
2898 since GCC 4.5 gimplification unit-at-a-time).
2899 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
2900 * c-pragma.c: Add FIXME for why function.h needs to be included just
2901 for cfun, at front-end level.
2902 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
2903 Do not include ggc.h, but include vecprim.h for VEC(char).
2904 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
2905 Explain why target.h is included.
2906 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
2907 Explain why gimple.h is included.
2908 * c-ppoutput.c: Do not include tm.h.
2909 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
2910 * c-parses.c: Explain why rtl.h is included, and that this (and only
2911 this) is also why tm.h must be included.
2912 Do not include except.h.
2913 * c-lang.c: Do not include ggc.h.
2915 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
2917 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
2919 2010-05-15 Joseph Myers <joseph@codesourcery.com>
2921 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
2922 unions by default if those structs and unions have no tags. Do
2923 not condition anonymous struct and unions handling on flag_iso.
2924 Allow anonymous structs and unions for C1X.
2925 (finish_struct): Do not diagnose lack of named fields when
2926 anonymous structs and unions present for C1X. Accept flexible
2927 array members in structure with anonymous structs or unions but no
2928 directly named fields.
2929 * doc/extend.texi (Unnamed Fields): Update.
2931 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
2933 * gimple.h (compare_field_offset): Rename into...
2934 (gimple_compare_field_offset): ...this.
2935 * gimple.c (compare_field_offset): Rename into...
2936 (gimple_compare_field_offset): ...this. Compare the full access if
2937 the offset is self-referential.
2938 (gimple_types_compatible_p): Adjust for above renaming.
2939 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
2940 DECL_NONADDRESSABLE_P flag of fields before merging them.
2942 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
2944 * tree.h (ctor_to_list): Delete.
2945 * tree.c (ctor_to_list): Delete.
2947 2010-05-15 Jan Hubicka <jh@suse.cz>
2949 * ipa-reference.c: Include toplev.h
2950 (is_proper_for_analysis): Only add to all_module_statics
2952 (write_node_summary_p, stream_out_bitmap,
2953 ipa_reference_write_optimization_summary,
2954 ipa_reference_read_optimization_summary): New.
2955 (struct ipa_opt_pass_d pass_ipa_reference): Add
2956 optimization summary streaming.
2957 * lto-cgraph.c (referenced_from_this_partition_p,
2958 reachable_from_this_partition_p): New functions.
2959 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2960 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
2961 * opts.c (decode_options): Enable ipa_reference.
2962 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
2963 * lto-streamer.h (referenced_from_this_partition_p,
2964 reachable_from_this_partition_p): Declare.
2966 2010-05-15 Richard Guenther <rguenther@suse.de>
2968 PR tree-optimization/44038
2969 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
2970 taking the address of a V_C_E of a constant.
2972 2010-05-14 Jan Hubicka <jh@suse.cz>
2974 * tree.h (memory_identifier_string): Remove.
2975 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
2976 (ipa_reference_global_vars_info_d): Remove statics_not_read and
2977 statics_not_written.
2978 (ipa_reference_optimization_summary_d): New structure.
2979 (ipa_reference_optimization_summary_t): New type and vector.
2980 (ipa_reference_vars_info_d): Embedd structures instead of using
2982 (reference_vars_to_consider): Remove out of GGC space.
2983 (module_statics_escape): Remove.
2984 (global_info_obstack): Rename to ...
2985 (optimization_summary_obstack): ... this one.
2986 (initialization_status_t): Remove.
2987 (memory_identifier_string): Remove.
2988 (get_reference_vars_info): Fix indenting.
2989 (set_reference_vars_info): Likewise.
2990 (get_reference_optimization_summary): New.
2991 (set_reference_optimization_summary): New.
2992 (get_global_reference_vars_info): Remove.
2993 (ipa_reference_get_read_global): Remove.
2994 (ipa_reference_get_written_global): Remove.
2995 (ipa_reference_get_not_read_global): Update.
2996 (ipa_reference_get_not_written_global): Update.
2997 (is_proper_for_analysis): Outlaw addressable.
2998 (propagate_bits): Update for new datastructures.
2999 (analyze_variable): Remove.
3000 (init_function_info): Update for new datastructures.
3001 (clean_function_local_data): Remove.
3002 (clean_function): Remove.
3003 (copy_global_bitmap): Use optimizations_summary_obstack.
3004 (duplicate_node_data): Duplicate optimization summary only.
3005 (remove_node_data): Remove optimization summary only.
3006 (generate_summary): Do not analyze variables; do not compute
3007 module_statics_escape; do not prune solutions by it.
3008 (read_write_all_from_decl): Fix typos in comments.
3009 (propagate): Doscover readonly and nonaddressable first;
3010 update for new datastructures; share global bitmaps.
3011 * ipa-reference.h (ipa_reference_get_read_global,
3012 ipa_reference_get_written_global): Remove.
3013 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
3014 * Makefile.in: Remove ipa-refereference from GT files.
3016 2010-05-14 Jakub Jelinek <jakub@redhat.com>
3019 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
3020 for all SYMBOL_REF_DECLs.
3022 2010-05-14 Jan Hubicka <jh@suse.cz>
3024 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
3025 (varpool_all_refs_explicit_p): New inline function.
3026 * ipa-reference.c: Update comment.
3027 (module_statics_written): Remove.
3028 (get_static_decl): Remove.
3029 (ipa_init): Do not initialize module_statics_written.
3030 (analyze_function): Likewise.
3031 (generate_summary): Likewise; do not compute module_statics_readonly
3032 and do not update variable flags.
3033 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
3034 * ipa.c: Inlucde flags.h
3035 (cgraph_local_node_p): New.
3036 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
3037 promote functions to local.
3038 (ipa_discover_readonly_nonaddressable_vars): New function.
3039 (function_and_variable_visibility): Use cgraph_local_node_p.
3040 * varpool.c (varpool_finalize_decl): Set force_output for
3041 DECL_PRESERVE_P vars.
3043 2010-05-14 Jan Hubicka <jh@suse.cz>
3045 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
3047 2010-05-14 Richard Guenther <rguenther@suse.de>
3049 PR tree-optimization/44119
3050 * tree-ssa-pre.c (eliminate): Properly mark replacement of
3051 a PHI node necessary.
3053 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
3055 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
3057 2010-05-14 Jason Merrill <jason@redhat.com>
3060 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
3061 (gimple_call_set_nothrow): New.
3062 * gimple.c (gimple_build_call_from_tree): Call it.
3063 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
3066 * gimplify.c (gimplify_seq_add_stmt): No longer static.
3067 * gimple.h: Declare it.
3068 * gimple.c (gimple_build_eh_filter): No ops.
3070 2010-05-14 Jan Hubicka <jh@suse.cz>
3072 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
3073 nodes already in queue.
3074 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
3077 2010-05-14 Jakub Jelinek <jakub@redhat.com>
3080 * cfgexpand.c (expand_debug_expr): If non-memory op0
3081 has BLKmode, return NULL.
3083 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
3085 * config.gcc: Add support for --with-cpu option for bdver1.
3086 * config/i386/i386.h (TARGET_BDVER1): New macro.
3087 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
3088 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
3089 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
3090 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
3091 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
3092 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
3093 (processor_type): Add PROCESSOR_BDVER1.
3094 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
3095 processor_type in config/i386/i386.h.
3096 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
3097 movaps <reg, reg> instead of movapd <reg, reg> when replacing
3098 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
3099 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
3100 to emit packed xor instead of packed double/packed integer
3101 xor for SSE and AVX when moving a zero value.
3102 * config/i386/sse.md: Add check for
3103 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
3104 movapd/movdqa for SSE and AVX.
3105 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
3106 single logical operations i.e and, or and xor instead of packed double
3107 logical operations for SSE and AVX.
3108 * config/i386/i386-c.c (ix86_target_macros_internal):
3109 Add PROCESSOR_BDVER1.
3110 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
3111 (has_fma4, has_xop): New.
3112 * config/i386/i386.c (bdver1_cost): New variable.
3113 (m_BDVER1): New macro.
3114 (m_AMD_MULTIPLE): Add m_BDVER1.
3115 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
3116 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
3117 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
3118 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
3119 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
3120 x86_tune_sse_partial_reg_dependency,
3121 x86_tune_sse_unaligned_load_optimal,
3122 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
3123 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
3124 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
3125 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
3126 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
3127 Enable/disable for bdver1.
3128 (processor_target_table): Add bdver1_cost.
3129 (cpu_names): Add bdver1.
3130 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
3131 processor_alias_table.
3132 (ix86_expand_vector_move_misalign): Change.
3133 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
3134 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
3135 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
3136 of movupd/movdqu for SSE and AVX.
3137 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
3138 (ix86_tune_adjust_cost): Add code for bdver1.
3139 (standard_sse_constant_opcode): Add check for
3140 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
3141 of packed double xor for SSE and AVX.
3143 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
3145 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
3148 2010-05-14 Tristan Gingold <gingold@adacore.com>
3150 * toplev.c (default_debug_hooks): Remove this variable.
3151 (process_options): Remove assignments to default_debug_hooks.
3153 2010-05-14 Martin Jambor <mjambor@suse.cz>
3155 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
3156 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
3157 * langhooks.h (struct lang_hooks_for_decls): Removed field
3159 * tree.c (free_lang_data): Remove assignment to
3160 lang_hooks.fold_obj_type_ref.
3161 * tree.def (OBJ_TYPE_REF): Update comment.
3163 2010-05-14 Richard Guenther <rguenther@suse.de>
3165 PR tree-optimization/44124
3166 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
3168 2010-05-14 Alan Modra <amodra@gmail.com>
3171 * config/rs6000/rs6000.c (struct machine_function): Reorder
3172 fields for better packing. Add lr_save_state.
3173 (rs6000_ra_ever_killed): Return lr_save_state if set.
3174 (rs6000_emit_eh_reg_restore): Set lr_save_state.
3176 2010-05-13 Jan Hubicka <jh@suse.cz>
3178 * varpool.c (decide_is_variable_needed): Drop code checking
3179 TREE_SYMBOL_REFERENCED.
3181 2010-05-13 Jan Hubicka <jh@suse.cz>
3183 * final.c (output_addr_const): Do not call mark_decl_referenced.
3184 * cgraphunit.c (process_function_and_variable_attributes): Use
3185 mark_needed_node dirrectly.
3186 (assemble_thunk): Do not call mark_decl_referenced.
3188 2010-05-13 Anatoly Sokolov <aesok@post.ru>
3190 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
3192 2010-05-13 Jeff Law <law@redhat.com>
3194 * ira-conflicts.c (print_allocno_conflicts): New function broken out
3196 (print_conflicts): Call print_allocno_conflicts.
3198 2010-05-13 Jakub Jelinek <jakub@redhat.com>
3201 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
3204 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
3206 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
3207 t-mingw-w64 or t-mingw-w32 for multilib configuration.
3208 * config/i386/t-mingw-w32: New.
3209 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
3211 2010-05-13 Martin Jambor <mjambor@suse.cz>
3213 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
3215 * gimple-fold.c (get_base_binfo_for_type): New function.
3216 (gimple_get_relevant_ref_binfo): Likewise.
3217 (gimple_fold_obj_type_ref_known_binfo): Likewise.
3218 (gimple_fold_obj_type_ref): Likewise.
3219 (fold_gimple_call): Simplify condition for folding virtual calls
3220 and call gimple_fold_obj_type_ref.
3221 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
3222 (gimple_fold_obj_type_ref_known_binfo): Likewise.
3224 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
3226 * config/rs6000/rs6000-protos.h
3227 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
3228 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
3229 (rs6000_debug_mode_dependent_address)
3230 (rs6000_mode_dependent_address_ptr): Likewise.
3232 2010-05-13 Jakub Jelinek <jakub@redhat.com>
3235 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
3237 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
3238 * tree-sra.c (create_access_replacement): Call unshare_expr before
3239 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
3240 * dwarf2out.c: Include tree-flow.h.
3241 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
3242 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
3243 Handle DW_OP_bit_piece.
3244 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
3245 construct_piece_list, adjust_piece_list): New functions.
3246 (add_var_loc_to_decl): Handle SRA optimized variables.
3247 Adjust for var_loc_note to loc field renaming.
3248 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
3249 in VAR_LOCATION note.
3250 (new_loc_descr_op_bit_piece): New function.
3251 (dw_sra_loc_expr): New function.
3252 (dw_loc_list): Use it. Don't handle the last range after the
3253 loop, handle it inside of the loop. Adjust for var_loc_note
3254 to loc field renaming.
3255 (add_location_or_const_value_attribute): Only special case
3256 single entry loc lists if loc is NOTE_P. Adjust for
3257 var_loc_note to loc field renaming.
3258 (dwarf2out_var_location): Don't set newloc->var_loc_note
3259 and newloc->next here.
3261 2010-05-12 Jan Hubicka <jh@suse.cz>
3263 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
3265 * cgraph.h (cgraph_only_called_directly_p,
3266 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
3267 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
3268 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
3270 * ipa.c (cgraph_remove_unreachable_nodes): Use
3271 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
3273 * tree-inline.c (copy_bb): Check address_taken flag.
3274 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
3275 externally_visible flag.
3277 2010-05-12 Jason Merrill <jason@redhat.com>
3281 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
3282 * sdbout.c (plain_type_1): Likewise.
3283 * dwarf2out.c (is_base_type): Likewise.
3284 (gen_type_die_with_usage): Likewise. Generate
3285 DW_TAG_unspecified_type for any LANG_TYPE.
3287 2010-05-12 Jan Hubicka <jh@suse.cz>
3289 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
3291 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
3292 (cgraph_clone_edge): Update.
3293 (cgraph_node_remove_callees): Remove indirect calls too.
3294 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
3295 (cgraph_create_indirect_edge): Update prototype.
3296 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
3297 is_proper_for_analysis.
3298 (add_new_function, visited_nodes, function_insertion_hook_holder,
3299 get_local_reference_vars_info, mark_address_taken, mark_address,
3300 mark_load, mark_store, check_asm_memory_clobber, check_call,
3301 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
3302 (ipa_init): Do not initialize visited_nodes;
3303 function_insertion_hook_holder.
3304 (analyze_variable): Rewrite.
3305 (analyze_function): Rewrite.
3306 (copy_local_bitmap): Remove.
3307 (duplicate_node_dat): Do not duplicate local info.
3308 (generate_summary): Simplify to only walk cgraph.
3309 (write_node_summary_p, ipa_reference_write_summary,
3310 ipa_reference_read_summary): Remove.
3311 (propagate): Do not remove function insertion;
3313 (pass_ipa_reference): NULLify summary handling fields.
3314 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
3315 (input_edge): Input ecf_flags.
3316 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
3317 (update_indirect_edges_after_inlining): Ignore edges with unknown
3320 2010-05-12 Sriraman Tallam <tmsriram@google.com>
3322 * implicit-zee.c: New file.
3323 * tree-pass.h (pass_implicit_zee): Declare.
3324 * passes.c (init_optimization_passes): Add zee pass.
3325 * common.opt (fzee): New flag.
3326 * timevar.def (TV_ZEE): Define.
3327 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
3329 * Makefile.in (implicit-zee.o): Add new build file.
3331 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3332 Nathan Froyd <froydnj@codesourcery.com>
3334 * c-common.c (sync_resolve_params): Remove write-only variable.
3336 2010-05-12 Anatoly Sokolov <aesok@post.ru>
3338 * target.h (struct gcc_target): Add mode_dependent_address_p field.
3339 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3340 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
3341 * targhooks.c (default_mode_dependent_address_p): New function.
3342 * targhooks.h (default_mode_dependent_address_p): Declare function.
3343 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3344 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
3345 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
3346 target hook. Change return type to bool.
3347 * recog.h (mode_dependent_address_p): Change return type to bool.
3349 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3350 Nathan Froyd <froydnj@codesourcery.com>
3352 * tree-mudflap.c (build_function_type_0, build_function_type_1,
3353 build_function_type_2, build_function_type_3): Remove.
3354 (mudflap_init): Use build_function_type_list.
3356 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3357 Nathan Froyd <froydnj@codesourcery.com>
3359 * coverage.c (build_fn_info_value): Call build_constructor instead of
3360 build_constructor_from_list.
3361 (build_ctr_info_value): Likewise.
3362 (build_gcov_info): Likewise.
3364 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
3366 * tree.c (build_constructor): Compute TREE_CONSTANT for the
3367 resultant constructor.
3368 (build_constructor_single): Don't set TREE_CONSTANT.
3369 (build_constructor_from_list): Don't compute TREE_CONSTANT.
3371 2010-05-12 Jan Hubicka <jh@suse.cz>
3373 * cgraph.h (struct varpool_node): Add aux.
3374 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
3375 * varpool.c (varpool_remove_node): Do not remove initializer.
3376 (varpool_reset_queue): Export.
3377 (varpool_finalize_decl): Volatile vars are forced to be output.
3378 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
3380 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
3381 process_references, varpool_can_remove_if_no_refs): New functions.
3382 (cgraph_remove_unreachable_nodes): Handle variables too.
3384 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
3387 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
3389 2010-05-12 Jakub Jelinek <jakub@redhat.com>
3392 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
3393 change value of ORT_TASK.
3394 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
3395 (omp_notice_threadprivate_variable): New function.
3396 (omp_notice_variable): Call it for threadprivate variables.
3397 If enclosing ctx is a task, print enclosing task rather than
3398 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
3399 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
3400 if task has untied clause.
3403 * dwarf2out.c (base_type_die): Don't add name attribute here.
3404 (modified_type_die): Instead of sizetype use
3405 its underlying original type. If a DW_TAG_base_type doesn't
3406 have name added, add __unknown__.
3407 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
3408 always call force_type_die instead.
3410 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
3412 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
3413 for __stack_chk_guard.
3415 2010-05-11 Jakub Jelinek <jakub@redhat.com>
3417 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
3418 don't call start_source_file debug hook here...
3419 (finish_options): ... but here, after outputting predefined and
3420 command line defines and undefs.
3423 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
3425 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
3426 optimizing away empty bb with no successors, move over its
3427 footer chain to fallthru predecessor.
3428 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
3429 (rtl_split_edge): For asm goto call patch_jump_insn even if
3430 splitting fallthru edge.
3433 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
3434 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
3435 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3436 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
3440 * c-parser.c (c_parser_expression): Mark LHS of a comma
3441 expression as read if it is a decl, handled component or
3442 COMPOUND_EXPR with that on the RHS.
3443 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
3444 if it is a decl or handled component.
3446 2010-05-11 Jan Hubicka <jh@suse.cz>
3448 * lto-symtab.c (lto_symtab_free): New function.
3449 * lto-streamer.h (lto_symtab_free): Declare.
3451 2010-05-11 Jan Hubicka <jh@suse.cz>
3453 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
3454 that if function is needed it is reachable.
3455 (lto_output_node): See if it the function is reachable or referenced.
3456 (output_cgraph): Update call of lto_output_node.
3457 * lto-streamer.h (reachable_from_other_partition_p): Declare.
3459 2010-05-11 Jan Hubicka <jh@suse.cz>
3461 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
3464 2010-05-11 Jan Hubicka <jh@suse.cz>
3466 PR tree-optimize/44063
3467 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
3469 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
3471 (estimate_function_body_sizes): Compute sizes even when disregarding.
3473 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
3475 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
3477 2010-05-11 Jan Hubicka <jh@suse.cz>
3479 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
3480 into every boundary.
3482 2010-05-11 Jan Hubicka <jh@suse.cz>
3484 * matrix-reorg.c (matrix_reorg): Rebuild edges.
3486 2010-05-11 Jan Hubicka <jh@suse.cz>
3488 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
3489 lto_streamer_cache_delete): Put nodes into heap.
3490 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
3493 2010-05-11 Jan Hubicka <jh@suse.cz>
3495 * cgraphbuild.c (cgraph_rebuild_references): New.
3496 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
3498 * cgraph.h (cgraph_rebuild_references): Declare.
3499 * tree-inline.c (tree_function_versioning): Use it.
3500 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
3502 2010-05-11 Jan Hubicka <jh@suse.cz>
3504 * cgraph.c: Include ipa-utils.h
3505 (cgraph_create_virtual_clone): Update references.
3506 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
3508 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
3510 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
3511 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
3514 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
3516 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
3518 2010-05-11 Jakub Jelinek <jakub@redhat.com>
3520 * gcc.c (execute): For -### don't quote arguments that
3521 contain just alphanumerics and _/-. characters.
3522 * doc/invoke.texi: Document that change for -###.
3525 * df-problems.c (struct dead_debug): Add to_rescan field.
3526 (dead_debug_init): Clear to_rescan field.
3527 (dead_debug_finish): Rescan all debug insns in to_rescan
3528 bitmap and free the bitmap.
3529 (dead_debug_insert_before): Instead of rescanning debug insns
3530 immediately queue their rescanning until dead_debug_finish.
3531 (df_note_bb_compute): After dead_debug_add do continue instead
3534 2010-05-10 Jakub Jelinek <jakub@redhat.com>
3537 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
3538 clear also INSN_REG_USE_LIST.
3540 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3542 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
3544 2010-05-10 Jan Hubicka <jh@suse.cz>
3546 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
3549 2010-05-10 Jan Hubicka <jh@suse.cz>
3551 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
3553 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
3554 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
3555 (lto_streamer_cache_create): Init alloc pool.
3556 (lto_streamer_cache_delete): Free alloc pool.
3557 * lto-streamer.h: Include alloc pool.
3558 (lto_streamer_cache_d): Use alloc pool.
3559 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
3561 2010-05-10 Jan Hubicka <jh@suse.cz>
3563 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
3564 * cgraphbuild.c: Include except.h
3565 (record_type_list, record_eh_tables): New function.
3566 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
3568 2010-05-10 Jan Hubicka <jh@suse.cz>
3570 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
3571 __frame_dummy_init_array_entry, force_to_data): Attribute as used
3574 2010-05-10 Michael Matz <matz@suse.de>
3576 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
3577 (can_reassociate_p): Use FLOAT_TYPE_P.
3578 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
3579 (vect_force_simple_reduction): ... this.
3580 * tree-parloops.c (gather_scalar_reductions): Use
3581 vect_force_simple_reduction.
3582 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
3583 vect_is_simple_reduction, add modify argument, if true rewrite
3584 "a-b" into "a+(-b)".
3585 (vect_is_simple_reduction, vect_force_simple_reduction): New
3587 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
3589 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
3590 Vladimir Makarov <vmakarov@redhat.com>
3592 PR rtl-optimization/44012
3593 * ira-build.c (remove_unnecessary_allocnos): Nullify
3594 regno_allocno_map of the removed allocno.
3596 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3598 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
3600 * configure: Regenerate.
3602 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3604 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
3606 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
3607 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
3609 * configure: Regenerate.
3611 2010-05-10 Richard Guenther <rguenther@suse.de>
3613 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
3614 marked if the entry identifier is marked.
3616 2010-05-10 Richard Guenther <rguenther@suse.de>
3618 * c-common.c (struct c_common_attributes): Add fnspec attribute.
3619 (handle_fnspec_attribute): New function.
3620 * gimple.h (gimple_call_return_flags): Declare.
3621 (gimple_call_arg_flags): Likewise.
3622 * gimple.c (gimple_call_arg_flags): New function.
3623 (gimple_call_return_flags): Likewise.
3624 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
3626 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
3628 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
3629 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
3631 (make_heapvar_for): ... this new function.
3632 (handle_rhs_call): Handle fnspec attribute argument specifiers.
3633 (handle_lhs_call): Likewise.
3634 (find_func_aliases): Adjust.
3636 2010-05-10 Richard Guenther <rguenther@suse.de>
3638 PR tree-optimization/44050
3639 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
3641 2010-05-10 Wei Guozhi <carrot@google.com>
3644 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
3646 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3649 * c-typeck.c (lookup_field): Take a type directly. Update
3651 (build_component_ref): Update call to lookup_field.
3652 (set_init_label): Use lookup_field to find initialized field.
3653 Handle returned list of fields like a sequence of designators.
3655 2010-05-09 Richard Guenther <rguenther@suse.de>
3658 * fold-const.c (tree_single_nonzero_warnv_p): Properly
3659 handle &FUNCTION_DECL.
3661 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3664 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
3665 structures and unions recursively.
3666 (detect_field_duplicates): Move duplicate detection with a hash to
3667 detect_field_duplicates_hash. Always use a hash if anonymous
3668 structures or unions are present.
3669 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
3672 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
3675 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
3676 detect Atom, Core 2 and Core i7.
3678 2010-05-09 Richard Guenther <rguenther@suse.de>
3680 * gcc.c (store_arg): Handle temporary file deletion for
3683 2010-05-09 Richard Guenther <rguenther@suse.de>
3686 * ipa-inline.c (estimate_function_body_sizes): Return after
3687 disregarding inline limits.
3689 2010-05-09 Richard Guenther <rguenther@suse.de>
3691 * gcc.c (store_arg): Revert last change.
3693 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
3696 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
3697 (optimize_ops_list): Call it.
3699 2010-05-08 Richard Guenther <rguenther@suse.de>
3701 PR tree-optimization/44030
3702 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
3703 NECESSARY flag if we propagate from a inserted expression.
3705 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3707 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
3708 domain types as equal if they are both PLACEHOLDER_EXPRs.
3710 2010-05-08 Richard Guenther <rguenther@suse.de>
3712 * lto-wrapper.c (run_gcc): Remove linker output from
3713 command line for LTRANS invocation.
3715 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3717 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3718 lto-macho as lto_binary_reader.
3719 * target.h (struct gcc_target): New hooks lto_start and lto_end.
3720 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
3721 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
3722 in lto_start and lto_end calls.
3723 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
3725 (scan_prog_file): Update is_elf_or_coff call.
3726 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
3728 * collect2.c (main): Fix enum comparison.
3730 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
3732 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
3733 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
3734 and TARGET_ASM_LTO_END.
3735 * darwin.c: Include obstack.h and lto-streamer.h.
3736 (lto_section_names_offset, lto_section_names_obstack,
3737 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
3739 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
3740 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
3741 to a temporary file.
3742 (darwin_asm_lto_end): New function. Restore asm_out_file.
3743 (darwin_asm_named_section): For LTO sections, replace the name with
3744 the offset of the section name in a string table, and build this
3746 (darwin_file_start): Initialize global vars for LTO support.
3747 (darwin_file_end): If output to asm_out_file was redirected, append it
3748 to the proper asm_out_file here. Add the section names section.
3750 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3752 * c-pragma.c (pending_weak_d, pending_weak): New.
3753 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
3754 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
3755 handle_pragma_weak): Update the uses of pending_weaks.
3757 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3759 PR documentation/44016
3760 * doc/standards.texi (Standards): Link to unversioned
3761 cxx0x_status.html page.
3763 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
3766 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
3767 in addition to TREE_USED, to avoid "set but unused" warnings.
3769 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3771 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
3772 (is_loop_prefetching_profitable): Do not insert prefetches
3773 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
3774 times the prefetch ahead distance.
3776 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3778 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
3779 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
3780 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
3783 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3785 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
3786 a diagnostic info when the insn-to-mem ratio is too small.
3788 2010-05-07 Richard Guenther <rguenther@suse.de>
3790 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
3792 (store_arg): Queue temp_filename for deletion instead of
3795 2010-05-07 Richard Guenther <rguenther@suse.de>
3797 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
3798 (run_gcc): Handle LTRANS phase invocation.
3799 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
3801 2010-05-07 Jakub Jelinek <jakub@redhat.com>
3803 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
3804 this is also meaningful on PARM_DECLs and RESULT_DECLs.
3806 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3808 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
3810 2010-05-07 Richard Guenther <rguenther@suse.de>
3812 PR tree-optimization/44020
3813 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
3814 code when PRE is not yet initialized.
3816 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3818 * config/mips/dbxmdebug.h: Remove.
3819 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
3821 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
3823 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
3824 with null pointer and also warn about ordered comparison of zero with
3827 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3829 * graphite-blocking.c
3830 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
3831 * graphite-clast-to-gimple.c
3832 (clast_to_gcc_expression): Same.
3833 (precision_for_value): Same.
3834 (precision_for_interval): Same.
3835 (gcc_type_for_interval): Same.
3836 (graphite_create_new_guard): Same.
3837 (compute_bounds_for_level): Same.
3838 (graphite_create_new_loop_guard): Same.
3839 * graphite-interchange.c
3840 (build_linearized_memory_access): Same.
3841 (pdr_stride_in_loop): Same.
3842 (memory_strides_in_loop_1): Same.
3843 (memory_strides_in_loop): Same.
3844 (extend_scattering): Same.
3845 (psct_scattering_dim_for_loop_depth): Same.
3846 (pbb_number_of_iterations): Same.
3848 (debug_iteration_domains): Same.
3850 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3851 (ppl_set_inhomogeneous_gmp): Same.
3852 (ppl_strip_loop): Same.
3853 (ppl_lexico_compare_linear_expressions): Same.
3854 (ppl_read_polyhedron_matrix): Same.
3855 (ppl_max_for_le_pointset): Same.
3857 (ppl_read_polyhedron_matrix): Same.
3858 (tree_int_to_gmp): Same.
3859 (gmp_cst_to_tree): Same.
3860 (ppl_set_inhomogeneous): Same.
3861 (ppl_set_inhomogeneous_tree): Same.
3862 (ppl_set_coef): Same.
3863 (ppl_set_coef_tree): Same.
3864 * graphite-sese-to-poly.c
3865 (build_pbb_scattering_polyhedrons): Same.
3866 (build_scop_scattering): Same.
3867 (scan_tree_for_params_right_scev): Same.
3868 (scan_tree_for_params): Same.
3869 (find_params_in_bb): Same.
3870 (find_scop_parameters): Same.
3871 (add_upper_bounds_from_estimated_nit): Same.
3872 (build_loop_iteration_domains): Same.
3873 (add_condition_to_domain): Same.
3874 (pdr_add_memory_accesses): Same.
3876 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3878 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
3879 CLooG's value_* macros to their respective mpz_* counterparts.
3880 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
3881 (graphite_create_new_loop_guard): Same.
3882 * graphite-interchange.c (build_linearized_memory_access): Same.
3883 (pdr_stride_in_loop): Same.
3884 (memory_strides_in_loop_1): Same.
3885 (1st_interchange_profitable_p): Same.
3886 * graphite-poly.c (extend_scattering): Same.
3887 (psct_scattering_dim_for_loop_depth): Same.
3888 (pbb_number_of_iterations): Same.
3889 (pbb_number_of_iterations_at_time): Same.
3890 * graphite-poly.h (new_1st_loop): Same.
3891 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
3892 (oppose_constraint): Same.
3893 (insert_constraint_into_matrix): Same.
3894 (ppl_set_inhomogeneous_gmp): Same.
3895 (ppl_set_coef_gmp): Same.
3896 (ppl_strip_loop): Same.
3897 (ppl_lexico_compare_linear_expressions): Same.
3898 (ppl_max_for_le_pointset): Same.
3899 (ppl_min_for_le_pointset): Same.
3900 (ppl_build_realtion): Same.
3901 * graphite-ppl.h (gmp_cst_to_tree): Same.
3902 (ppl_set_inhomogeneous): Same.
3903 (ppl_set_inhomogeneous_tree): Same.
3904 (ppl_set_coef): Same.
3905 (ppl_set_coef_tree): Same.
3906 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3907 (build_scop_scattering): Same.
3908 (add_value_to_dim): Same.
3909 (scan_tree_for_params_right_scev): Same.
3910 (scan_tree_for_params_int): Same.
3911 (scan_tree_for_params): Same.
3912 (find_params_in_bb): Same.
3913 (find_scop_parameters): Same.
3914 (add_upper_bounds_from_estimated_nit): Same.
3915 (build_loop_iteration_domains): Same.
3916 (create_linear_expr_from_tree): Same.
3917 (add_condition_to_domain): Same.
3918 (pdr_add_memory_accesses): Same.
3920 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
3921 Jason Merrill <jason@redhat.com>
3923 * c-common.c (c_common_reswords): Add nullptr.
3924 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
3925 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
3926 (gen_type_die_with_usage): Likewise.
3927 * dbxout.c (dbxout_type): Likewise.
3928 * sdbout.c (plain_type_1): Likewise.
3930 2010-05-06 Jason Merrill <jason@redhat.com>
3932 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
3933 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
3935 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
3937 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
3938 stripping WITH_SIZE_EXPR.
3939 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
3942 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3944 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
3945 list of obsolete configurations.
3946 Disabled check for obsolete configurations.
3947 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
3948 Removed support for previous versions.
3949 * config/mips/iris.h: Removed.
3950 * config/mips/iris5.h: Removed.
3951 * config/mips/iris6.h: Merged old iris.h contents.
3952 (TARGET_IRIX): Removed.
3953 (DRIVER_SELF_SPECS): Removed mabi=32.
3954 (IDENT_ASM_OP): Removed undef.
3955 (STARTFILE_SPEC): Removed mabi=32.
3956 (ENDFILE_SPEC): Likewise.
3957 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
3958 (MACHINE_TYPE): Update for IRIX 6.5.
3959 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
3960 TARGET_IRIX by TARGET_IRIX6.
3961 (mips_file_start): Likewise.
3962 (mips_output_external): Remove IRIX 5/6 O32 support.
3963 (mips_output_function_prologue): Likewise.
3964 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
3966 (TARGET_CPU_CPP_BUILTINS): Likewise.
3967 (TARGET_IRIX): Removed.
3968 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
3969 (MULTILIB_DIRNAMES): Removed 32.
3970 (MULTILIB_OSDIRNAMES): Removed ../lib.
3971 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
3972 (Specific, mips-sgi-irix5): Document removal.
3973 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
3974 Remove references to older IRIX 6 releases and the O32 ABI.
3976 2010-05-06 Jakub Jelinek <jakub@redhat.com>
3979 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
3980 instead of DF_REF_REAL_REG.
3982 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
3985 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
3986 handling to still return true for x64 targets.
3988 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
3990 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
3992 2010-05-06 Jan Hubicka <jh@suse.cz>
3994 PR tree-optimization/43791
3995 * ipa-inline.c (update_caller_keys): Remove bogus
3996 disregard_inline_limits check.
3998 2010-05-06 Michael Matz <matz@suse.de>
4000 PR tree-optimization/43984
4001 * tree-ssa-pre.c (inserted_phi_names): Remove.
4002 (inserted_exprs): Change to bitmap.
4003 (create_expression_by_pieces): Set bits, don't append to vector.
4004 (insert_into_preds_of_block): Don't handle inserted_phi_names.
4005 (eliminate): Don't look at inserted_phi_names, remove deleted
4006 insns from inserted_exprs.
4007 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
4008 (init_pre, fini_pre): Allocate and free bitmaps.
4009 (execute_pre): Insert insns on edges before elimination.
4011 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
4013 * tree.c (initializer_zerop): Handle STRING_CST.
4015 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
4018 * doc/invoke.texi (Wimplicit): Document as C only.
4019 * opts.c (common_handle_option): Add argument kind.
4020 (handle_option): Rename as read_cmdline_option. Factor out code to...
4021 (handle_option): ... here. New.
4022 (handle_options): Rename as read_cmdline_options.
4023 (decode_options): Update call.
4024 (set_option): Use option index instead of option pointer. Classify
4025 diagnostics correctly.
4026 (enable_warning_as_error): Call handle_option.
4027 * opts.h (set_option): Update declaration.
4028 (handle_option): Declare.
4029 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
4030 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
4031 * c-opts.c (set_Wimplicit): Delete.
4032 (c_family_lang_mask): New static constant.
4033 (c_common_handle_option): Add argument kind. Use handle_option
4034 instead of set_Wimplicit.
4035 (c_common_post_options): warn_implicit and warn_implicit_int
4036 are disabled by default.
4037 * c-common.c (warn_implicit): Do not define here.
4038 * c-common.h (warn_implicit): Do not declare here.
4039 (c_common_handle_option): Update declaration.
4040 * lto-opts.c (lto_reissue_options): Update call to set_option.
4042 2010-05-06 Richard Guenther <rguenther@suse.de>
4044 PR tree-optimization/43571
4045 * domwalk.c (walk_dominator_tree): Walk the dominator
4046 sons in more optimal order.
4048 2010-05-06 Richard Guenther <rguenther@suse.de>
4050 PR tree-optimization/43934
4051 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
4052 (stmt_cost): Likewise.
4053 (extract_true_false_args_from_phi): New helper.
4054 (determine_max_movement): For PHI nodes verify we can hoist them
4055 and compute their cost.
4056 (determine_invariantness_stmt): Handle PHI nodes.
4057 (move_computations_stmt): Likewise. Hoist PHI nodes in
4058 if-converted form using COND_EXPRs.
4059 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
4060 (tree_ssa_lim): Likewise.
4061 * tree-flow.h (tree_ssa_lim): Adjust prototype.
4062 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
4064 2010-05-06 Richard Guenther <rguenther@suse.de>
4066 PR tree-optimization/43987
4067 * tree-ssa-structalias.c (could_have_pointers): For possibly
4068 address-taken variables force pointers to be recorded.
4069 (create_variable_info_for_1): Likewise.
4070 (push_fields_onto_fieldstack): Pass in wheter all fields
4072 (find_func_aliases): Query types instead of vars whether
4073 they contain pointers where appropriate.
4075 2010-05-06 Jan Hubicka <jh@suse.cz>
4077 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
4078 (record_reference, mark_address, mark_load, mark_store): Record
4080 (record_references_in_initializer): Update call of record_references.
4081 (rebuild_cgraph_edges): Remove all references before rebuiding.
4082 * cgraph.c (cgraph_create_node): Clear ref list.
4083 (cgraph_remove_node): Remove references.
4084 (dump_cgraph_node): Dump references.
4085 (cgraph_clone_node): Clone references.
4086 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
4087 (struct cgraph_node, varpool_node): Add ref_lst.
4088 * ipa-ref.c: New file.
4089 * ipa-ref.h: New file.
4090 * ipa-ref-inline.h: New file.
4091 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
4092 (referenced_from_other_partition_p): New function.
4093 (lto_output_varpool_node): Take set arugment; call
4094 referenced_from_other_partition.
4095 (lto_output_ref): New.
4096 (add_references): New.
4098 (output_cgraph): Compute boundary based on references; output refs.
4099 (output_varpool): Accept cgraph_node_set argument.
4102 (input_cgraph): Call input_refs.
4103 * lto-section-in.c (lto_section_name): Add refs.
4104 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
4105 (ipa-ref.o): New file.
4106 * varpool.c (varpool_node): Clear ipa ref list.
4107 (varpool_remove_node): Remove references.
4108 (dump_varpool_node): Dump references.
4109 (varpool_assemble_decl): Only compile finalized ones.
4110 (varpool_extra_name_alias): Initialize ref list.
4111 * lto-streamer.c (lto-get_section_name): Add .refs section.
4112 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
4113 (referenced_from_other_partition_p): Declared.
4115 2010-05-06 Ira Rosen <irar@il.ibm.com>
4117 PR tree-optimization/43901
4118 * tree-vect-stmts.c (vectorizable_call): Assert that vector
4119 type is not NULL if it's transformation phase, and return
4120 FALSE if it's analysis.
4121 (vectorizable_conversion, vectorizable_operation,
4122 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
4124 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
4126 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
4128 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
4130 * config/mips/mips-protos.h
4131 (mips_small_register_classes_for_mode_p): Delete prototype.
4133 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
4135 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
4136 * config/arm/arm.c (multiple_operation_profitable_p,
4137 compute_offset_order): New static functions.
4138 (load_multiple_sequence, store_multiple_sequence): Use them.
4139 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
4140 memory offsets, not register numbers.
4141 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
4143 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
4145 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
4146 (get_pending_sizes, put_pending_size, put_pending_sizes):
4147 Update the uses of pending_sizes.
4148 * c-decl.c (store_parm_decls): Likewise.
4149 * c-tree.h (struct c_arg_info): Likewise.
4150 * tree.h: Update the prototype for get_pending_sizes and
4153 2010-05-05 Jason Merrill <jason@redhat.com>
4156 * c-common.c (handle_aligned_attribute): Respect
4157 ATTR_FLAG_TYPE_IN_PLACE.
4160 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
4161 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4162 (TARGET_INITIALIZER): Use it.
4163 * c-common.c (attribute_takes_identifier_p): Call it.
4164 * c-common.h: Update prototype.
4165 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
4166 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4168 2010-05-05 Jakub Jelinek <jakub@redhat.com>
4171 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
4172 DW_ID_down_case for Fortran compilation units.
4174 2010-05-05 Jan Hubicka <jh@suse.cz>
4176 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
4179 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
4181 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
4182 a variable-sized RESULT_DECL.
4184 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
4186 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
4188 2010-05-05 Jason Merrill <jason@redhat.com>
4191 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
4193 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
4195 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
4196 Jakub Jelinek <jakub@redhat.com>
4199 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
4200 (dead_debug_init, dead_debug_finish): New functions.
4201 (dead_debug_add, dead_debug_insert_before): Likewise.
4202 (df_note_bb_compute): Initialize a dead_debug object, add dead
4203 debug uses to it, insert debug bind insns before death insns,
4204 reset debug insns that refer to pending uses at the end.
4205 * rtl.h (make_debug_expr_from_rtl): New prototype.
4206 * varasm.c (make_debug_expr_from_rtl): New function.
4208 2010-05-05 Jan Hubicka <jh@suse.cz>
4210 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
4211 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
4212 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
4213 lto_varpool_encoder_deref, lto_varpool_encoder_size,
4214 lto_varpool_encoder_encode_initializer_p,
4215 lto_set_varpool_encoder_encode_initializer): New functions.
4216 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
4217 call output_varpool.
4218 (input_varpool_node): Do not always set analyzed.
4219 (input_cgraph_1): Return vector of cgraph nodes.
4220 (input_varpool_1): Return vector of varpools.
4221 (input_cgraph): Free the vectors.
4222 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4223 output only initializers needed.
4224 (lto_output): Only call output_cgraph.
4225 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
4226 * lto-section-out.c (lto_new_out_decl_state): Initialize
4227 state->varpool_node_encoder.
4228 * lto-streamer.h (lto_varpool_encoder_d): New.
4229 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
4230 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
4231 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
4232 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
4233 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
4235 (output_varpool, input_varpool): Remove declarations.
4237 2010-05-05 Jan Hubicka <jh@suse.cz>
4239 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
4240 with body can prevail.
4242 2010-05-05 Jan Hubicka <jh@suse.cz>
4244 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
4247 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4249 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
4251 * gengtype.h (erro_at_line): Constify pos argument.
4253 * gengtype.c: Include hashtab.h.
4254 (enum gc_used): Document GC_MAYBE_POINTED_TO.
4255 (error_at_line): Constify pos argument.
4256 (do_typedef): Initialize p->opt field.
4257 (get_file_gtfilename): Fix comment typo.
4258 (struct walk_type_data): Constify line field.
4259 (get_output_file_for_structure): New function.
4260 (write_local_func_for_structure): Constify orig_s argument.
4261 Use get_output_file_for_structure.
4262 (write_func_for_structure): Use get_output_file_for_structure.
4263 (INDENT): New define.
4264 (dump_pair, dump_type, dump_type_list, dump_typekind)
4265 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
4266 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
4268 (seen_types): New variable.
4269 (main): New variable do_dump. Process "-d" command line option.
4270 Call dump_everything if dump requested.
4272 2010-05-05 Jakub Jelinek <jakub@redhat.com>
4274 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
4275 in a temporary instead of invoking the macro multiple times.
4276 (track_expr_p): Likewise.
4278 2010-05-04 Neil Vachharajani <nvachhar@google.com>
4280 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
4282 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
4283 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
4284 conditions for printing notes.
4285 * common.opt (-Wcoverage-mismatch): Allow negative, default to
4286 true, update documentation.
4287 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
4289 2010-05-04 Jakub Jelinek <jakub@redhat.com>
4292 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
4295 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
4298 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
4299 (*sse_prologue_save_insn1): Likewise.
4300 (SSE prologue save splitter): Likewise.
4302 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
4304 * tree.c (free_lang_data_in_one_sizepos): New inline function.
4305 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
4306 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
4307 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
4308 all decls. Call it on DECL_FIELD_OFFSET of fields.
4309 (find_decls_types_r): Follow DECL_VALUE_EXPR.
4310 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
4312 2010-05-04 Martin Jambor <mjambor@suse.cz>
4314 * tree-sra.c (build_access_from_expr_1): The first parameter type
4315 changed to simple tree.
4316 (build_access_from_expr): Likewise, gsi parameter was eliminated.
4317 (scan_assign_result): Renamed to assignment_mod_result, enum elements
4319 (build_accesses_from_assign): Removed all parameters except for a
4320 simple gimple statement. Now returns a simple bool.
4321 (scan_function): All non-analysis parts moved to separate functions
4322 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
4323 parameters and updated both callers.
4324 (sra_modify_expr): Removed parameter data.
4325 (sra_modify_function_body): New function.
4326 (perform_intra_sra): Call sra_modify_function_body to modify the
4328 (replace_removed_params_ssa_names): Parameter data changed into
4330 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
4331 changed the parameter dont_convert to convert with the opposite
4333 (sra_ipa_modify_assign): Parameter data changed into adjustments
4334 vector, return value changed to bool.
4335 (ipa_sra_modify_function_body): New function.
4336 (sra_ipa_reset_debug_stmts): Updated a comment.
4337 (modify_function): Use ipa_sra_modify_function_body to modify function
4340 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
4343 * alias.c (true_dependence): Handle the same VALUE in x and mem.
4344 (canon_true_dependence): Likewise.
4345 (write_dependence_p): Likewise.
4347 2010-05-04 Jan Hubicka <jh@suse.cz>
4349 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
4350 * cgraphbuild.c: Include ipa-utils.h
4351 (record_reference_ctx): New struct.
4352 (record_reference): Simplify to work on initializers; not statements.
4353 (mark_address, mark_load, mark_store): New.
4354 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4356 (record_references_in_initializer): Update use of record_reference.
4357 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4360 2010-05-04 Jan Hubicka <jh@suse.cz>
4362 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
4363 node will be removed anyway.
4364 (lto_varpool_replace_node): Allow also unanalyzed nodes;
4365 relink aliases of node into prevailing node.
4366 * varpool.c (varpool_remove_node): Remove aliases properly;
4367 when removing node, remove all its aliases too; remove DECL_INITIAL
4368 of removed node; ggc_free the varpool node.
4370 2010-05-04 Richard Guenther <rguenther@suse.de>
4372 PR tree-optimization/43879
4373 * tree-ssa-structalias.c (alias_get_name): Use
4374 DECL_ASSEMBLER_NAME if available.
4375 (create_function_info_for): Return the varinfo node.
4376 (ipa_pta_execute): Associate same-body aliases and extra names
4377 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
4379 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
4381 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
4383 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
4386 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
4387 only if HONOR_REG_ALLOC_ORDER is not defined.
4389 2010-05-04 Richard Guenther <rguenther@suse.de>
4391 PR tree-optimization/43949
4392 * tree-vrp.c (extract_range_from_binary_expr): Only handle
4395 2010-04-26 Jason Merrill <jason@redhat.com>
4397 * c.opt (-fstrict-enums): New.
4398 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
4400 2010-05-03 David Ung <davidu@mips.com>
4401 James E. Wilson <wilson@codesourcery.com>
4403 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
4404 emit the trap instruction before the divide for TUNE_74K.
4406 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
4408 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
4409 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
4410 based on the above, for new target hook.
4412 * hooks.c (hook_bool_mode_true): New generic hook.
4413 * hooks.h (hook_bool_mode_true): Add prototype.
4415 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
4417 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
4418 target hook, set to hook_bool_mode_false.
4419 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
4420 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
4421 with targetm.small_register_classes_for_mode_p.
4422 (find_reusable_reload): Likewise.
4423 (combine_reloads): Likewise.
4424 * reload1.c (reload_as_needed): Likewise.
4425 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
4426 * ifcvt.c (noce_process_if_block, check_cond_move_block,
4427 dead_or_predicable): Likewise.
4428 * regmove.c (optimize_reg_copy_1): Likewise.
4429 * calls.c (prepare_call_address): Likewise.
4430 (precompute_register_parameters): Likewise.
4432 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
4434 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
4435 implementation of the hook that considers all register classes
4436 small except for SH64.
4437 (sh_override_options): Use the new hook.
4438 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
4441 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
4443 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
4444 implementation of the hook that considers all register classes
4446 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
4449 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
4451 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
4452 implementation of the hook that considers all register classes
4454 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
4457 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
4459 * config/m32c/m32c.h: Likewise.
4460 * config/pdp11/pdp11.h: Likewise.
4461 * config/avr/avr.h: Likewise.
4462 * config/xtensa/xtensa.h: Likewise.
4463 * config/m68hc11/m68hc11.h: Likewise.
4464 * config/mn10300/mn10300.h: Likewise.
4465 * config/mcore/mcore.h: Likewise.
4466 * config/h8300/h8300.h: Likewise.
4467 * config/bfin/bfin.h: Likewise.
4469 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
4470 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
4472 2010-05-03 Anatoly Sokolov <aesok@post.ru>
4474 * double-int.h (tree_to_double_int): Remove macro.
4475 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
4476 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4477 (tree_to_double_int): New function.
4478 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
4480 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4482 2010-05-03 Richard Guenther <rguenther@suse.de>
4484 PR tree-optimization/43971
4485 * tree-ssa-structalias.c (get_constraint_for_1): Fix
4486 constraints in the !flag_delete_null_pointer_checks case.
4488 2010-05-03 Jakub Jelinek <jakub@redhat.com>
4491 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
4492 result mode matches original rtl mode.
4494 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
4497 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
4499 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4501 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
4502 when processing flag options.
4504 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4506 * gcov-iov.c (main): Change format string placeholder
4507 from %#08x to 0x%08x.
4508 * genchecksum.c (dosum): Change format string placeholder
4509 from %#02x to 0x%02x.
4511 2010-05-02 Richard Guenther <rguenther@suse.de>
4513 PR tree-optimization/43879
4514 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
4516 2010-05-02 Bruno Haible <bruno@clisp.org>
4518 * doc/extend.texi (Function Attributes): Fix a typo.
4520 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4523 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
4524 placeholder from 0x%x to %#x.
4525 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4526 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4527 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4528 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4529 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4530 * config/i386/i386.c (ix86_target_string): Ditto.
4531 * config/i386/i386.c (output_pic_addr_const): Ditto.
4532 (print_operand): Ditto.
4534 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4536 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
4537 placeholder from 0x%x to %#x.
4538 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
4539 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
4540 (ASM_OUTPUT_DEBUG_DATA): Ditto.
4541 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
4542 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
4543 * optc-gen.awk: Ditto.
4544 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
4545 (HOST_WIDE_INT_PRINT_HEX): Ditto.
4546 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
4547 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4549 2010-05-01 Anatoly Sokolov <aesok@post.ru>
4551 * target.h (struct calls): Add function_value_regno_p field.
4552 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4553 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
4554 * targhooks.c (default_function_value_regno_p): New function.
4555 * targhooks.h (default_function_value_regno_p): Declare function.
4556 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
4557 * builtins.c. (apply_result_size): (Ditto.).
4558 * combine.c. (likely_spilled_retval_p): (Ditto.).
4559 * mode-switching.c. Include 'target.h'.
4560 (create_pre_exit): Use function_value_regno_p hook.
4561 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
4562 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
4563 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
4565 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
4566 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
4567 (ix86_function_value_regno_p): Declare as static, change argument
4568 type to const unsigned int.
4569 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
4571 2010-05-01 Richard Guenther <rguenther@suse.de>
4573 PR tree-optimization/43949
4574 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
4576 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
4578 2010-05-01 Anatoly Sokolov <aesok@post.ru>
4580 * rtl.h (CONST_DOUBLE_P): Define.
4581 (rtx_to_double_int): Declare.
4582 * emit-rtl.c (rtx_to_double_int): New function.
4583 * dwarf2out.c (insert_double): New function.
4584 (loc_descriptor, add_const_value_attribute): Clean up, use
4585 rtx_to_double_int and insert_double functions.
4587 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
4589 * doc/extend.texi (Inline): Add missing return keyword to examples.
4590 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
4593 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
4595 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
4596 the variable part of the offset as well. Use highest_pow2_factor for
4597 all alignment checks.
4599 2010-04-30 Richard Guenther <rguenther@suse.de>
4601 PR tree-optimization/43879
4602 * tree-ssa-structalias.c (type_could_have_pointers): Functions
4605 2010-04-30 Jan Hubicka <jh@suse.cz>
4607 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
4609 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
4611 2010-04-30 Jan Hubicka <jh@suse.cz>
4613 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
4615 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
4616 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
4617 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
4618 cgraph_node_set_needs_ltrans_p): Remove.
4620 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
4622 * sdbout.c: Include vec.h, do not include varray.h.
4623 (deferred_global_decls, sdbout_global_decl,
4624 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
4625 * toplev.c: Do not include varray.h.
4626 (dump_memory_report): Do not dump VARRAY statistics.
4627 * gengtype.c (open_base_file): Ignore varray.h.
4628 * Makefile.in: Update for abovementioned changes.
4629 Remove all traces of varray.c and varray.h.
4630 * varray.c: Remove file.
4631 * varray.h: Remove file.
4633 2010-04-30 Jan Hubicka <jh@suse.cz>
4635 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
4638 2010-04-30 Jan Hubicka <jh@suse.cz>
4640 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
4643 2010-04-30 Richard Guenther <rguenther@suse.de>
4645 * tree-ssa-structalias.c (get_constraint_for_1): Generate
4646 constraints for CONSTRUCTOR.
4648 2010-04-30 Richard Guenther <rguenther@suse.de>
4651 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
4652 first after all lowering passes.
4654 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
4656 * toplev.c: Include varray.h for statistics dumping.
4657 * tree.h: Do not declare varray_head_tag.
4658 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
4659 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
4660 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
4661 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
4662 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
4663 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
4664 c-common.c, c-common.h, reg-stack.c, basic-block.h,
4665 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
4667 * Makefile.in: Update for abovementioned changes.
4669 2010-04-30 Jakub Jelinek <jakub@redhat.com>
4672 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
4674 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
4676 * config/picochip/picochip.c (picochip_legitimize_address): Define.
4677 Use this function to do machine-specific conversion.
4678 (picochip_legitimize_reload_address): Likewise.
4679 (picochip_legitimate_address_p): Check valid base register only if
4681 (picochip_check_conditional_copy): Check for modw only if opnd is
4683 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
4684 to call the function in c.
4685 * config/picochip/picochip-protos.h
4686 (picochip_legitimize_reload_address): Define.
4687 * config/picochip/picochip.md (supported_compare1): Define.
4689 2010-04-30 Jan Hubicka <jh@suse.cz>
4691 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
4692 (cgraph_global_info): Remove inlined.
4693 (LTO_cgraph_tag_names): Remove.
4694 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
4695 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
4696 simplify cgraph tags and document.
4697 (lto_output_node): Use only LTO_cgraph_unavail_node and
4698 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
4699 for_functions_valid, global info, process and output flags.
4700 (input_overwrite_node): Initialize estimated stack size and
4701 estimated growth. Do not read flags we no longer store.
4702 (input_node): Likewise do not read info no longer stored.
4703 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
4706 2010-04-30 Richard Guenther <rguenther@suse.de>
4708 PR tree-optimization/43879
4709 * tree-ssa-structalias.c (get_constraint_for_1): Properly
4710 handle non-zero initializers.
4712 2010-04-30 Richard Guenther <rguenther@suse.de>
4714 * builtins.c (fold_builtin_1): Delete free (0).
4716 2010-04-29 Jan Hubicka <jh@suse.cz>
4718 * gengtype.c (open_base_files): Add lto-streamer.h
4719 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
4720 (pass_ipa_cp): GGC collect.
4721 * toplev. (compile_file): Do not output symbols.
4722 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
4723 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
4724 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
4725 * lto-section-in.c: Include ggc.h
4726 (lto_new_in_decl_state): Alloc in GGC.
4727 (lto_delete_in_decl_state): Likewise.
4728 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
4731 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
4734 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
4735 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
4736 (HONOR_REG_ALLOC_ORDER): Describe new macro.
4737 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
4738 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
4739 account only if HONOR_REG_ALLOC_ORDER is not defined.
4740 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
4741 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
4743 2010-04-29 Jon Grant <04@jguk.org>
4745 * collect2.c (vflag): Change type from int to bool.
4747 (helpflag): New global bool.
4748 (main): Set vflag and debug with boolean, not integer truth values.
4749 Accept new "--help" option and output usage text if found.
4750 * collect2.h (vflag): Update prototype.
4753 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
4756 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
4758 2010-04-29 Richard Guenther <rguenther@suse.de>
4761 * plugin.h (invoke_plugin_callbacks): Annotate arguments
4762 with ATTRIBUTE_UNUSED.
4764 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
4767 * config/i386/i386.c (get_some_local_dynamic_name): Replace
4768 INSN_P with NONDEBUG_INSN_P.
4769 (distance_non_agu_define): Likewise.
4770 (distance_agu_use): Likewise.
4772 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
4774 From Dominique d'Humieres <dominiq@lps.ens.fr>
4776 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
4779 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
4781 * plugin.h (invoke_plugin_callbacks): New inline function.
4782 * plugin.c (flag_plugin_added): New global flag.
4783 (add_new_plugin): Initialize above flag.
4784 (invoke_plugin_callbacks): Rename to ...
4785 (invoke_plugin_callbacks_full): ... this.
4787 2010-04-28 Jan Hubicka <jh@suse.cz>
4789 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
4790 (lto_varpool_replace_node): New.
4791 (lto_symtab_resolve_symbols): Resolve varpool nodes.
4792 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
4793 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
4794 * cgraph.h (varpool_node_ptr): New type.
4795 (varpool_node_ptr): New vector.
4796 (varpool_node_set_def): New structure.
4797 (varpool_node_set): New type.
4798 (varpool_node_set): New vector.
4799 (varpool_node_set_element_def): New structure.
4800 (varpool_node_set_element, const_varpool_node_set_element): New types.
4801 (varpool_node_set_iterator): New type.
4802 (varpool_node): Add prev pointers, add used_from_other_partition,
4804 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
4805 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
4806 varpool_get_node, varpool_remove_node): Declare.
4807 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
4808 varpool_node_set_size): New inlines.
4809 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
4810 * tree-pass.h (varpool_node_set_def): Forward declare.
4811 (ipa_opt_pass_d): Summary writting takes vnode sets too.
4812 (ipa_write_optimization_summaries): Update prototype.
4813 * ipa-cp.c (ipcp_write_summary): Update.
4814 * ipa-reference.c (ipa_reference_write_summary): Update.
4815 * lto-cgraph.c (lto_output_varpool_node): New static function.
4816 (output_varpool): New function.
4817 (input_varpool_node): New static function.
4818 (input_varpool_1): New function.
4819 (input_cgraph): Input varpool.
4820 * ipa-pure-const.c (pure_const_write_summary): Update.
4821 * lto-streamer-out.c (lto_output): Update, output varpool too.
4822 (write_global_stream): Kill WPA hack.
4823 (produce_asm_for_decls): Update.
4824 (output_alias_pair_p): Handle variables.
4825 (output_unreferenced_globals): Output only needed partition of varpool.
4826 * ipa-inline.c (inline_write_summary): Update.
4827 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
4829 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
4830 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
4831 varpool_node_set_new, varpool_node_set_add,
4832 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
4833 debug_varpool_node_set): New functions.
4834 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
4835 (execute_one_pass): Process new decls too.
4836 (ipa_write_summaries_2): Pass around vsets.
4837 (ipa_write_summaries_1): Likewise.
4838 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
4840 (ipa_write_optimization_summaries_1): Pass around vsets.
4841 (ipa_write_optimization_summaries): Likewise.
4842 * varpool.c (varpool_get_node): New.
4843 (varpool_node): Update doubly linked lists.
4844 (varpool_remove_node): New.
4845 (dump_varpool_node): More dumping.
4846 (varpool_enqueue_needed_node): Update doubly linked lists.
4847 (decide_is_variable_needed): Kill ltrans hack.
4848 (varpool_finalize_decl): Kill lto hack.
4849 (varpool_assemble_decl): Skip decls in other partitions.
4850 (varpool_assemble_pending_decls): Update doubly linkes lists.
4851 (varpool_empty_needed_queue): Likewise.
4852 (varpool_extra_name_alias): Likewise.
4853 * lto-streamer.c (lto_get_section_name): Add vars section.
4854 * lto-streamer.h (lto_section_type): Update.
4855 (output_varpool, input_varpool): Declare.
4857 2010-04-28 Mike Stump <mikestump@comcast.net>
4859 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
4861 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4863 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
4864 record or union type with RECORD_OR_UNION_TYPE_P predicate.
4865 (lto_input_ts_type_tree_pointers): Likewise.
4866 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
4867 (lto_output_ts_type_tree_pointers): Likewise.
4869 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4871 Uniquization of constants at the Tree level
4872 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
4873 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
4875 (tree_output_constant_def): Declare.
4876 * gimplify.c (gimplify_init_constructor): When using block copy, first
4877 uniquize the constant constructor on the RHS.
4878 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
4879 DECL_IN_CONSTANT_POOL flag.
4880 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
4881 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
4883 (assemble_variable): Deal with symbols belonging to the tree constant
4885 (get_constant_section): Add ALIGN parameter and simplify.
4886 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
4887 (assemble_constant_contents): Use the expression of the VAR_DECL.
4888 (output_constant_def_contents): Use the alignment of the VAR_DECL.
4889 (tree_output_constant_def): New global function.
4890 (mark_constant): Use the expression of the VAR_DECL.
4891 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
4893 (output_object_block): Likewise and assemble the expression.
4895 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4897 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
4898 hash_tree, eq_tree): New tree hash table.
4899 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
4900 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
4901 lto_orig_address_remove): Reimplement.
4903 2010-04-28 Xinliang David Li <davidxl@google.com>
4906 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
4907 (compute_uninit_opnds_pos): New function.
4908 (is_non_loop_exit_postdominating): New function.
4909 (compute_control_dep_chain): New function.
4910 (find_pdom): New function.
4911 (convert_control_dep_chain_into_preds): New function.
4912 (find_predicates): New function.
4913 (find_control_equiv_block): New function.
4914 (collect_phi_def_edges): New function.
4915 (find_def_preds): New function.
4916 (find_dom): New function.
4917 (dump_predicates): New function.
4918 (get_cmp_code): New function.
4919 (is_value_included_in): New function.
4920 (find_matching_predicate_in_rest_chains): New function.
4921 (use_pred_not_overlap_with_undef_path_pred): New function.
4922 (is_use_properly_guarded): New function.
4923 (normalize_cond_1): New function.
4924 (is_and_or_or): New function.
4925 (normalize_cond): New function.
4926 (is_gcond_subset_of): New function.
4927 (is_subset_of_any): New function.
4928 (is_or_set_subset_of): New function.
4929 (is_and_set_subset_of): New function.
4930 (is_norm_cond_subset_of): New function.
4931 (is_pred_expr_subset_of): New function.
4932 (is_pred_chain_subset_of): New function.
4933 (is_included_in): New function.
4934 (is_superset_of): New function.
4935 (find_uninit_use): New function.
4936 (warn_uninitialized_phi): New function.
4937 (compute_possibly_undefined_names): New function.
4938 (ssa_undefined_value_p): New function.
4939 (execute_late_warn_uninitialized): New function.
4940 * tree-ssa.c (ssa_undefined_value_p): Removed.
4941 (warn_uninit): Changed to extern.
4942 (warn_uninitialized_phi): Removed.
4943 (warn_uninitialized_vars): Changed to extern.
4944 (execute_late_warn_uninitialized): Removed
4945 * tree-flow.h: Add new prototypes.
4946 * timevar.def: Add new time variable.
4947 * Makefile.in: Add new build file.
4949 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
4951 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
4954 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4957 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
4959 2010-04-28 Martin Jambor <mjambor@suse.cz>
4961 * cgraph.h (struct cgraph_node): New field indirect_calls.
4962 (struct cgraph_indirect_call_info): New type.
4963 (struct cgraph_edge): Removed field indirect_call. New fields
4964 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
4965 (cgraph_create_indirect_edge): Declare.
4966 (cgraph_make_edge_direct): Likewise.
4967 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
4968 * ipa-prop.h (struct ipa_param_call_note): Removed.
4969 (struct ipa_node_params): Removed field param_calls.
4970 (ipa_create_all_structures_for_iinln): Declare.
4971 * cgraph.c: Described indirect edges and uids in initial comment.
4972 (cgraph_add_edge_to_call_site_hash): New function.
4973 (cgraph_edge): Search also among the indirect edges, use
4974 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
4975 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
4976 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
4978 (initialize_inline_failed): Assign a reason to indirect edges.
4979 (cgraph_create_edge_1): New function.
4980 (cgraph_create_edge): Moved some functionality to
4981 cgraph_create_edge_1.
4982 (cgraph_create_indirect_edge): New function.
4983 (cgraph_edge_remove_callee): Add an assert checking for
4985 (cgraph_edge_remove_caller): Special-case indirect edges.
4986 (cgraph_remove_edge): Likewise.
4987 (cgraph_set_edge_callee): New function.
4988 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
4989 (cgraph_make_edge_direct): New function.
4990 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
4991 the declaration of the call statement matches.
4992 (cgraph_node_remove_callees): Special-case indirect edges.
4993 (cgraph_clone_edge): Likewise.
4994 (cgraph_clone_node): Clone also the indirect edges.
4995 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
4996 indirect_call, dump count of indirect_calls edges.
4997 * ipa-prop.c (iinlining_processed_edges): New variable.
4998 (ipa_note_param_call): Create indirect edges instead of
4999 creating notes. New parameter node.
5000 (ipa_analyze_call_uses): New parameter node, pass it on to
5001 ipa_note_param_call.
5002 (ipa_analyze_stmt_uses): Likewise.
5003 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
5004 (print_edge_addition_message): Work on edges rather than on notes.
5005 (update_call_notes_after_inlining): Likewise, renamed to
5006 update_indirect_edges_after_inlining.
5007 (ipa_create_all_structures_for_iinln): New function.
5008 (ipa_free_node_params_substructures): Do not free notes.
5009 (ipa_edge_duplication_hook): Propagate bits within
5010 iinlining_processed_edges bitmap.
5011 (ipa_node_duplication_hook): Do not duplicate notes.
5012 (free_all_ipa_structures_after_ipa_cp): Renamed to
5013 ipa_free_all_structures_after_ipa_cp.
5014 (free_all_ipa_structures_after_iinln): Renamed to
5015 ipa_free_all_structures_after_iinln.
5016 (ipa_write_param_call_note): Removed.
5017 (ipa_read_param_call_note): Removed.
5018 (ipa_write_indirect_edge_info): New function.
5019 (ipa_read_indirect_edge_info): Likewise.
5020 (ipa_write_node_info): Do not stream notes, do stream information
5022 (ipa_read_node_info): Likewise.
5023 (lto_ipa_fixup_call_notes): Removed.
5024 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
5025 * ipa-inline.c (pass_ipa_inline): Likewise.
5026 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
5027 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
5028 * tree-inline.c (copy_bb): Removed an unnecessary double check for
5030 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
5032 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
5033 (output_cgraph): Stream also indirect edges.
5034 (lto_output_edge): Added capability to stream indirect edges.
5035 (input_edge): Likewise.
5036 (input_cgraph_1): Likewise.
5037 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
5040 2010-04-28 Richard Guenther <rguenther@suse.de>
5042 PR tree-optimization/43879
5043 PR tree-optimization/43909
5044 * tree-ssa-structalias.c (struct variable_info): Add
5045 only_restrict_pointers flag.
5046 (new_var_info): Initialize it. Increment stats.total_vars here.
5047 (create_function_info_for): Do not increment stats.total_vars here.
5048 (get_function_part_constraint): Fix build with C++.
5049 (insert_into_field_list): Remove.
5050 (push_fields_onto_fieldstack): Properly merge fields.
5051 (create_variable_info_for): Split and simplify.
5052 (create_variable_info_for_1): New piece.
5053 (intra_create_variable_infos): Properly make restrict constraints
5056 2010-04-28 Richard Guenther <rguenther@suse.de>
5059 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
5061 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
5062 Jan Hubicka <hubicka@ucw.cz>
5064 * doc/invoke.texi (-Wsuggest-attribute=const,
5065 -Wsuggest-attribute=pure): Document.
5066 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
5067 (function_always_visible_to_compiler_p,
5068 suggest_attribute, warn_function_pure, warn_function_const):
5070 (check_call): Improve debug info.
5071 (analyze_function): Do not check availability.
5072 (add_new_function): Check availability.
5073 (propagate): Output warnings.
5074 (skip_function_for_local_pure_const): New function.
5075 (local_pure_const): Use it; output warnings.
5076 * common.opt (Wsuggest-attribute=const,
5077 Wsuggest-attribute=pure): New.
5079 2010-04-27 Jakub Jelinek <jakub@redhat.com>
5081 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
5082 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
5083 or DW_CFA_def_cfa_offset{,_sf}.
5085 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
5087 * tree.h: Fix truncated long macros.
5089 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
5091 * collect2.c (TARGET_64BIT): Redefine to target's default.
5092 * tlink.c: Likewise.
5093 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
5094 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
5095 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
5096 for underscoring __USER_LABEL_PREFIX__.
5097 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
5098 (SUB_LINK_ENTRY32): New.
5099 (SUB_LINK_ENTRY64): New.
5100 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
5101 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
5102 (SUB_LINK_ENTRY64): New.
5103 (SUB_LINK_ENTRY): New.
5104 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
5105 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
5106 x64 target is choosen.
5107 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
5108 * configure: Regenerated.
5109 * configure.ac (leading-mingw64-underscores): Option added.
5111 2010-04-27 Jan Hubicka <jh@suse.cz>
5113 * doc/invoke.texi (-fipa-profile): Document.
5114 * opts.c (decode_options): Enable ipa-profile at -O1.
5115 * timevar.def (TV_IPA_PROFILE): Define.
5116 * common.opt (fipa-profile): Add.
5117 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
5119 (cgraph_propagate_frequency): Handle only local ones.
5120 * tree-pass.h (pass_ipa_profile): Declare.
5121 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
5122 (pass_ipa_profile): Use TV_IPA_PROFILE.
5123 * ipa.c (ipa_profile): New function.
5124 (gate_ipa_profile): Likewise.
5125 (pass_ipa_profile): New global variable.
5126 * passes.c (pass_ipa_profile): New.
5128 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
5130 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
5132 2010-04-27 Martin Jambor <mjambor@suse.cz>
5135 * ipa.c (dissolve_same_comdat_group_list): New function.
5136 (function_and_variable_visibility): Call
5137 dissolve_same_comdat_group_list when comdat group contains external or
5139 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
5140 lists are circular and that they contain only DECL_ONE_ONLY nodes.
5142 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
5144 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
5145 (const_hash_1) <VECTOR_CST>: New case.
5146 (compare_constant) <VECTOR_CST>: Likewise.
5147 <ADDR_EXPR>: Deal with LABEL_REFs.
5148 (copy_constant) <VECTOR_CST>: New case.
5150 2010-04-27 Jan Hubicka <jh@suse.cz>
5152 * cgraph.c (cgraph_propagate_frequency): New function.
5153 * cgraph.h (cgraph_propagate_frequency): Declare.
5154 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
5155 cgraph_propagate_frequency.
5157 2010-04-27 Jakub Jelinek <jakub@redhat.com>
5159 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
5161 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
5164 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
5165 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
5166 here to determine which regs to push and how much stack to reserve.
5168 2010-04-27 Jie Zhang <jie@codesourcery.com>
5170 * doc/gimple.texi (gimple_statement_with_ops): Remove
5171 addresses_taken field.
5172 (gimple_statement_with_memory_ops): Likewise.
5174 2010-04-27 Jan Hubicka <jh@suse.cz>
5176 * tree-inline.c (eni_inlining_weights): Remove.
5177 (estimate_num_insns): Special case more builtins.
5179 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
5182 * c-typeck.c (build_binary_op): Move forward check for comparison
5183 pointer with null pointer constant and adjust the diagnostic message.
5185 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
5188 * configure.ac (gcc_cv_as_section_has_align): Set if installed
5189 binutils supports extended .section directive needed by LTO, or
5190 warn if older binutils found.
5191 (LTO_BINARY_READER): New AC_SUBST'd variable.
5192 (LTO_USE_LIBELF): Likewise.
5193 * gcc/config.gcc (lto_binary_reader): New target-specific configure
5195 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
5196 (LTO_USE_LIBELF): Likewise.
5197 * configure: Regenerate.
5199 * collect2.c (is_elf): Rename from this ...
5200 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
5201 object files in addition to ELF-formatted ones.
5202 (scan_prog_file): Caller updated. Also allow for LTO info marker
5203 symbol to be prefixed or not by an extra underscore.
5205 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
5206 * config/i386/winnt.c: Also #include lto-streamer.h
5207 (i386_pe_asm_named_section): Specify 1-byte section alignment for
5209 (i386_pe_asm_output_aligned_decl_common): Add comment.
5210 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
5212 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
5215 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
5216 Add missing earlyclobber for second alternative.
5218 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
5220 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
5221 bits for artificial defs at the top of the block.
5222 * fwprop.c (single_def_use_enter_block): Don't call it.
5224 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
5227 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
5228 instead of "$gcc_cv_objdump -T".
5229 Use "-undefined dynamic_lookup" on darwin.
5230 * gcc/configure: Regenerate.
5232 2010-04-26 Jakub Jelinek <jakub@redhat.com>
5235 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
5237 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
5239 * c-parser.c (struct c_token): Move location field up.
5240 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
5241 (struct c_declspecs): Convert typespec_word, storage_class, and
5242 default_int_p into bitfields.
5243 (struct c_declarator): Move loc field up.
5245 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
5247 * cfgloop.h (struct loop): Move can_be_parallel field up.
5248 * ipa-prop.h (struct ip_node_params): Move bitfields up.
5249 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
5251 (struct iv_cand): Convert pos field into a bitfield.
5252 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
5254 (struct _stmt_vec_info): Shuffle fields for better packing.
5256 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
5258 * varasm.c (IN_NAMED_SECTION): Remove guard.
5259 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
5260 (IN_NAMED_SECTION_P): ...this.
5261 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
5262 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5264 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
5266 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
5267 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
5268 of shadowing it. Fix comments.
5270 2010-04-26 Jan Hubicka <jh@suse.cz>
5272 * cgraph.c (cgraph_create_node): Set node frequency to normal.
5273 (cgraph_clone_node): Copy function frequency.
5274 * cgraph.h (node_frequency): New enum
5275 (struct cgraph_node): Add.
5276 * final.c (rest_of_clean_state): Update.
5277 * lto-cgraph.c (lto_output_node): Output node frequency.
5278 (input_overwrite_node): Input node frequency.
5279 * tre-ssa-loop-ivopts (computation_cost): Update.
5280 * lto-streamer-out.c (output_function): Do not output function
5282 * predict.c (maybe_hot_frequency_p): Update and handle functions
5284 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
5286 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
5287 (compute_function_frequency): Set noreturn functions to be executed
5289 (choose_function_section): Update.
5290 * lto-streamer-in.c (input_function): Do not input function frequency.
5291 * function.c (allocate_struct_function): Do not initialize function
5293 * function.h (function_frequency): Remove.
5294 (struct function): Remove function frequency.
5295 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
5296 (try_update): Update.
5297 * tree-inline.c (initialize_cfun): Do not update function frequency.
5298 * passes.c (pass_init_dump_file): Update.
5299 * i386.c (ix86_compute_frame_layout): Update.
5300 (ix86_pad_returns): Update.
5302 2010-04-26 Jie Zhang <jie@codesourcery.com>
5304 PR tree-optimization/43833
5305 * tree-vrp.c (range_int_cst_p): New.
5306 (range_int_cst_singleton_p): New.
5307 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
5308 when both operands are constants. Use range_int_cst_p in
5311 2010-04-26 Jan Hubicka <jh@suse.cz>
5313 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
5315 2010-04-26 Richard Guenther <rguenther@suse.de>
5318 * gimple.c (gimple_decl_printable_name): Deal gracefully
5319 with a NULL DECL_NAME.
5321 2010-04-26 Richard Guenther <rguenther@suse.de>
5324 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
5325 if emitting debug information and it is either a function
5326 or a namespace decl.
5328 2010-04-26 Ira Rosen <irar@il.ibm.com>
5330 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
5331 determine if the statement is vectorizable, and a macro to access it.
5332 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5333 Skip statements that can't be vectorized. If the analysis fails,
5334 mark the statement as unvectorizable if vectorizing basic block.
5335 (vect_compute_data_refs_alignment): Likewise.
5336 (vect_verify_datarefs_alignment): Skip statements marked as
5337 unvectorizable. Add print.
5338 (vect_analyze_group_access): Skip statements that can't be
5339 vectorized. If the analysis fails, mark the statement as
5340 unvectorizable if vectorizing basic block.
5341 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
5342 * tree-vect-stmts.c (vectorizable_store): Fix the number of
5343 generated stmts for SLP.
5344 (new_stmt_vec_info): Initialize the new field.
5345 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
5346 statements marked as unvectorizable.
5348 2010-04-25 Joseph Myers <joseph@codesourcery.com>
5350 * c-common.c (flag_isoc1x): New.
5351 (flag_isoc99): Update comment.
5352 * c-common.h (flag_isoc1x): New.
5353 (flag_isoc99): Update comment.
5354 * c-cppbuiltin.c (builtin_define_float_constants): Also define
5355 __<type>_DECIMAL_DIG__.
5356 * c-opts.c (set_std_c1x): New.
5357 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
5358 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
5359 * c.opt (-std=c1x, -std=gnu1x): New options.
5360 * doc/cpp.texi: Mention -std=c1x.
5361 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
5362 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
5363 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
5364 * doc/standards.texi: Mention C1X.
5365 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
5366 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
5367 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5370 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
5372 * config/i386/gmon-sol2.c (_mcleanup): Change format string
5373 placeholder from 0x%x to %#x.
5374 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
5375 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
5376 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
5377 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
5378 * config/i386/i386.c (ix86_target_string): Ditto.
5379 (output_pic_addr_const): Ditto.
5380 (print_operand): Ditto.
5382 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
5384 * combine.c (find_split_point): Add third argument. Use it
5385 to find nested multiply-accumulate instructions. Adjust calls.
5386 (try_combine): Adjust call to find_split_point.
5388 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5390 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
5392 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
5394 PR tree-optimization/41442
5395 * fold-const.c (merge_truthop_with_opposite_arm): New function.
5396 (fold_binary_loc): Call it.
5398 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5400 * toplev.c (general_init): Set default for fdiagnostics-show-option.
5401 * opts.c (common_handle_option): Allow disabling it.
5402 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
5404 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
5406 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
5407 between modes if both types are integral.
5409 2010-04-23 Richard Guenther <rguenther@suse.de>
5411 PR tree-optimization/43572
5412 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
5414 2010-04-23 Richard Guenther <rguenther@suse.de>
5417 * tree-inline.c (tree_can_inline_p): Also check compatibility
5420 2010-04-23 Martin Jambor <mjambor@suse.cz>
5422 PR tree-optimization/43846
5423 * tree-sra.c (struct access): New flag grp_assignment_read.
5424 (build_accesses_from_assign): Set grp_assignment_read.
5425 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
5426 (enum mark_read_status): New type.
5427 (analyze_access_subtree): Propagate grp_assignment_read, create
5428 accesses also if both direct_read and root->grp_assignment_read.
5430 2010-04-23 Martin Jambor <mjambor@suse.cz>
5433 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
5434 function does not have type attributes.
5436 2010-04-23 Richard Guenther <rguenther@suse.de>
5439 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
5442 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5444 * sese.h (create_if_region_on_edge): Remove.
5446 * sese.c (create_if_region_on_edge): Make static.
5448 * tree-inline.c: Do not include ggc.h.
5450 * expr.c: Do not include ggc.h.
5452 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
5455 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
5458 * config/sh/sh.c (find_barrier): Don't emit a constant pool
5459 in the middle of insns for casesi_worker_2.
5461 2010-04-22 David Edelsohn <edelsohn@gnu.org>
5463 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
5465 2010-04-22 Ira Rosen <irar@il.ibm.com>
5467 PR tree-optimization/43842
5468 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
5469 loop unrolling in update of exit phis. Fix comment.
5470 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
5471 least two reduction statements in the loop before starting SLP
5474 2010-04-22 Nick Clifton <nickc@redhat.com>
5476 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
5478 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
5480 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
5483 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5485 * tree-parloops.c (loop_parallel_p): New argument
5486 parloop_obstack. Pass it down.
5487 (parallelize_loops): New variable parloop_obstack. Initialize it,
5488 pass it down, free it.
5490 * tree-loop-linear.c (linear_transform_loops): Pass down
5493 * tree-data-ref.h (lambda_compute_access_matrices): New argument
5494 of type struct obstack *.
5496 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
5497 scratch_obstack. Initialize it, pass down, free it.
5499 * lambda.h (lambda_loop_new): Remove.
5500 (lambda_matrix_new, lambda_matrix_inverse)
5501 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
5502 argument of type struct obstack *.
5504 * lambda-trans.c (lambda_trans_matrix_new): New argument
5505 lambda_obstack. Pass it down, use obstack allocation for ret.
5506 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
5509 * lambda-mat.c (lambda_matrix_get_column)
5510 (lambda_matrix_project_to_null): Remove.
5511 (lambda_matrix_new): New argument lambda_obstack. Use obstack
5513 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
5516 * lambda-code.c (lambda_loop_new): New function.
5517 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
5518 (lambda_compute_auxillary_space, lambda_compute_target_space)
5519 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
5520 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
5521 (build_access_matrix): New argument lambda_obstack. Use obstack
5523 (lambda_compute_step_signs, lambda_compute_access_matrices): New
5524 argument lambda_obstack. Pass it down.
5526 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5528 * optabs.h (expand_widening_mult): Declare.
5530 2010-04-22 Richard Guenther <rguenther@suse.de>
5532 PR tree-optimization/43845
5533 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
5534 lookup the CALL_EXPR function and arguments.
5536 2010-04-22 Nick Clifton <nickc@redhat.com>
5538 * config/stormy16/stormy16.c
5539 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
5540 * config/stormy16/stormy16.h: Tidy up formatting.
5541 (DONT_USE_BUILTIN_SETJMP): Remove definition.
5542 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
5543 (ineqbranchsi): Delete pattern.
5544 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
5545 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
5546 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
5547 stormy16-lib2-ucmpsi2.c.
5549 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5551 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
5552 df_simulate_find_noclobber_defs as appropriate. Keep track of an
5553 extra set merge_set_noclobber, and use it to relax the final test
5555 * df.h (df_simulate_find_noclobber_defs): Declare.
5556 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
5558 (df_simulate_find_noclobber_defs): New function.
5560 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
5562 * config/i386/i386.md: Use {} around multi-line preparation statements.
5564 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5566 * c-tree.h (push_init_level, pop_init_level, set_init_index)
5567 (process_init_element): New argument of type struct obstack *.
5569 * c-typeck.c (push_init_level, pop_init_level, set_designator)
5570 (set_init_index, set_init_label, set_nonincremental_init)
5571 (set_nonincremental_init_from_string, find_init_member)
5572 (output_init_element, output_pending_init_elements)
5573 (process_init_element): New argument braced_init_obstack. Pass it
5575 (push_range_stack, add_pending_init): New argument
5576 braced_init_obstack. Use obstack allocation.
5578 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
5579 braced_init_obstack. Pass it down.
5580 (c_parser_braced_init): New variables ret, braced_init_obstack.
5581 Initialize obstack, pass it down and finally free it.
5583 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5586 * tree-pass.h (pass_optimize_widening_mul): Declare.
5587 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
5588 gate_optimize_widening_mul): New static functions.
5589 (pass_optimize_widening_mul): New.
5590 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
5591 <case MULT_EXPR>: Remove support for widening multiplies.
5592 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
5593 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
5594 simplify_gen_unary rather than directly building extensions.
5595 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
5597 * expmed.c (expand_widening_mult): New function.
5598 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
5600 2010-04-21 Jan Hubicka <jh@suse.cz>
5602 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
5603 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
5604 * lto-wpa-fixup.c: Remove.
5605 * Makefile.in (lto-wpa-fixup.o): Remove.
5606 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
5607 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
5608 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
5610 2010-04-21 Jan Hubicka <jh@suse.cz>
5612 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
5613 add write_optimization_summary, read_optimization_summary.
5614 (ipa_write_summaries_of_cgraph_node_set): Remove.
5615 (ipa_write_optimization_summaries): Declare.
5616 (ipa_read_optimization_summaries): Declare.
5617 * ipa-cp.c (pass_ipa_cp): Update.
5618 * ipa-reference.c (pass_ipa_reference): Update.
5619 * ipa-pure-const.c (pass_ipa_pure_const): Update.
5620 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
5622 * ipa-inline.c (pass_ipa_inline): Update.
5623 * ipa.c (pass_ipa_whole_program): Update.
5624 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
5625 * passes.c (ipa_write_summaries_1): Do not test wpa.
5626 (ipa_write_optimization_summaries_1): New.
5627 (ipa_write_optimization_summaries): New.
5628 (ipa_read_summaries): Do not test ltrans.
5629 (ipa_read_optimization_summaries_1): New.
5630 (ipa_read_optimization_summaries): New.
5632 2010-04-21 Jan Hubicka <jh@suse.cz>
5634 * lto-cgraph.c (lto_output_node): Do not output comdat groups
5636 (output_cgraph): Do not arrange comdat groups for boundary nodes.
5638 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5641 * dwarf2out.c (add_name_and_src_coords_attributes): Add
5642 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
5644 2010-04-21 Jan Hubicka <jh@suse.cz>
5646 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
5648 2010-04-21 Jan Hubicka <jh@suse.cz>
5650 * varpool.c (decide_is_variable_needed): Variable is always needed
5653 2010-04-21 Jan Hubicka <jh@suse.cz>
5655 * opts.c (decode_options): Enable pure-const pass for whopr.
5657 2010-04-21 Jan Hubicka <jh@suse.cz>
5659 * cgraph.c (dump_cgraph_node): Dump also assembler name.
5660 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
5662 (cgraph_decide_inlining): Do not expect callee to be removed in all
5665 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
5667 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
5669 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5671 * config/i386/i386.md (x86_shrd): Add athlon_decode and
5672 amdfam10_decode attributes.
5674 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5677 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
5678 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
5679 (lower_copyprivate_clauses): Use private var in outer
5680 context instead of original var. Make sure the types
5681 are correct for VLAs.
5683 2010-04-21 Richard Guenther <rguenther@suse.de>
5685 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
5686 to non-pointer objects.
5688 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5690 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
5691 last chain entry if it starts with the still current label.
5692 (add_location_or_const_value_attribute): Check that
5693 loc_list->first->next is NULL instead of comparing ->first with ->last.
5694 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
5695 to add_var_loc_to_decl.
5697 * dwarf2out.c (output_call_frame_info): For dw_cie_version
5698 >= 4 add also address size and segment size fields into CIE header.
5700 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
5701 long as address size is the same as sizeof (void *) and
5703 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
5704 address size or segment size is unexpected, return DW_EH_PE_omit.
5705 (classify_object_over_fdes): If get_cie_encoding returned
5706 DW_EH_PE_omit, return -1.
5707 (init_object): If classify_object_over_fdes returned -1,
5708 pretend there were no FDEs at all.
5710 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5712 * config/i386/i386.md (bswap<mode>2): Macroize expander from
5713 bswap{si,di}2 using SWI48 mode iterator.
5714 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
5715 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
5716 set modrm attribute of bswap insn to 0 and remove length attribute.
5717 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
5718 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
5719 set mode attribute to <MODE> and remove length attribute.
5721 2010-04-20 James E. Wilson <wilson@codesourcery.com>
5723 PR rtl-optimization/43520
5724 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
5725 zero available registers.
5727 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5729 * builtins.c (fold_builtin_cproj): Fold more cases.
5731 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5733 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
5734 (fold_builtin_1): Fold builtin cproj.
5735 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
5736 Use ATTR_CONST_NOTHROW_LIST.
5738 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
5740 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
5741 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
5742 ffsi2_no_cmove for !TARGET_CMOVE.
5743 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
5744 (ffssi2): Remove expander.
5745 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
5747 (ctz<mode>2): Ditto from ctz{si,di}2.
5748 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
5750 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
5753 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5755 * dwarf2out.c (AT_linkage_name): Define.
5756 (clone_as_declaration): Handle DW_AT_linkage_name.
5757 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
5758 of DW_AT_MIPS_linkage_name.
5759 (move_linkage_attr): Likewise.
5760 (dwarf2out_finish): Likewise.
5762 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
5765 * fold-const.c (fold_comparison): New folding rule.
5767 2010-04-20 Anatoly Sokolov <aesok@post.ru>
5769 * double-int.h (double_int_setbit): Declare.
5770 * double-int.c (double_int_setbit): New function.
5771 * rtl.h (immed_double_int_const): Declare.
5772 * emit-rtl.c (immed_double_int_const): New function.
5773 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
5774 and immed_double_int_const functions.
5775 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
5776 expand_copysign_bit): (Ditto.).
5777 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
5778 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
5779 * dojump.c (prefer_and_bit_test): (Ditto.).
5780 * expr.c (convert_modes, reduce_to_bit_field_precision,
5781 const_vector_from_tree): (Ditto.).
5782 * expmed.c (mask_rtx, lshift_value): (Ditto.).
5784 2010-04-20 Jan Hubicka <jh@suse.cz>
5786 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
5787 (dump_cgraph_node): Dump new flags.
5788 * cgraph.h (struct cgraph_node): Add flags
5789 reachable_from_other_partition and in_other_partition.
5790 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
5791 other partition can not be removed.
5792 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
5793 the other partition must be output; silence sanity checking on
5794 leaking functions bodies from other paritition.
5795 * lto-cgraph.c (reachable_from_other_partition_p): New function.
5796 (lto_output_node): Output new flags; do not sanity check that inline
5797 clones are output; drop lto_forced_extern_inline_p code; do not mock
5798 visibility flags at partition boundaries.
5799 (add_node_to): New function.
5800 (output_cgraph): Use it to sort functions so masters appear before
5802 (input_overwrite_node): Input new flags.
5803 * passes.c (ipa_write_summaries): Do not call
5804 lto_new_extern_inline_states.
5805 * lto-section-out.c (forced_extern_inline,
5806 lto_new_extern_inline_states lto_delete_extern_inline_states,
5807 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
5808 * lto-streamer.h (lto_new_extern_inline_states,
5809 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
5810 lto_forced_extern_inline_p): Kill.
5812 2010-04-20 Richard Guenther <rguenther@suse.de>
5814 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
5815 from vars that can have pointers.
5816 (process_constraint): Dump useless constraints.
5818 2010-04-20 Richard Guenther <rguenther@suse.de>
5820 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
5821 (dump_sa_points_to_info): Remove asserts.
5822 (init_base_vars): nothing_id isn't an escape point nor does it
5825 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5827 * tree.h (TYPE_REF_IS_RVALUE): Define.
5828 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
5829 should_move_die_to_comdat, prune_unused_types_walk): Handle
5830 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
5831 (modified_type_die, gen_reference_type_die): Emit
5832 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
5833 if TYPE_REF_IS_RVALUE and -gdwarf-4.
5835 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5838 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
5839 calls for -fpic -m31 if they have been sibcall optimized.
5841 2010-04-19 James E. Wilson <wilson@codesourcery.com>
5843 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
5844 ar.lc fixed and call-used.
5846 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
5848 2010-04-19 Jan Hubicka <jh@suse.cz>
5850 * opts.c (decode_options): Disable whpr incompatible passes.
5851 * lto/lto.c (lto_1_to_1_map): Skip clones.
5852 (read_cgraph_and_symbols): Do not mark everything as needed.
5853 (do_whole_program_analysis): Do map only after optimizing;
5854 set proper cgraph_state; use passmanager.
5856 2010-04-19 DJ Delorie <dj@redhat.com>
5858 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
5859 POINTER_PLUS_EXPR and fix them.
5861 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
5863 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
5864 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
5865 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
5866 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
5867 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
5868 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
5869 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
5870 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
5871 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
5872 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
5873 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
5875 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
5877 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
5878 (check_cond_move_block): Likewise.
5879 (cond_move_process_if_block): Likewise.
5880 (noce_find_if_block): Improve formatting.
5881 (find_if_header): Pass 0 to memset and tweak conditions.
5882 (cond_exec_find_if_block): Fix long lines and tweak conditions.
5884 2010-04-19 Jakub Jelinek <jakub@redhat.com>
5886 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
5890 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
5891 with non-local decl doesn't need chain.
5893 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
5895 * ira-color.c (allocno_reload_assign): Avoid accumulating
5896 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
5898 2010-04-19 Martin Jambor <mjambor@suse.cz>
5900 * gimple.h (create_tmp_reg): Declare.
5901 * gimplify.c (create_tmp_reg): New function.
5902 (gimplify_return_expr): Use create_tmp_reg.
5903 (gimplify_omp_atomic): Likewise.
5904 (gimple_regimplify_operands): Likewise.
5905 * tree-dfa.c (make_rename_temp): Likewise.
5906 * tree-predcom.c (predcom_tmp_var): Likewise.
5907 (reassociate_to_the_same_stmt): Likewise.
5908 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
5909 (get_replaced_param_substitute): Likewise.
5910 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5911 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
5912 * tree-ssa-pre.c (get_representative_for): Likewise.
5913 (create_expression_by_pieces): Likewise.
5914 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
5915 (create_tailcall_accumulator): Likewise.
5917 2010-04-19 Martin Jambor <mjambor@suse.cz>
5919 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
5921 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
5923 2010-04-19 Richard Guenther <rguenther@suse.de>
5925 PR tree-optimization/43796
5926 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
5927 from SCEV in the lattice.
5928 (vrp_visit_phi_node): Dump change.
5930 2010-04-19 Richard Guenther <rguenther@suse.de>
5932 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
5933 * configure: Re-generated.
5935 2010-04-19 Richard Guenther <rguenther@suse.de>
5937 PR tree-optimization/43783
5938 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
5939 constant ARRAY_REF operands two and three if possible.
5941 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
5944 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
5946 2010-04-19 Jie Zhang <jie@codesourcery.com>
5949 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
5951 2010-04-19 Ira Rosen <irar@il.ibm.com>
5953 PR tree-optimization/37027
5954 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
5955 and macro to access it.
5956 (vectorizable_reduction): Add argument.
5957 (vect_get_slp_defs): Likewise.
5958 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
5959 statements for possible use in SLP.
5960 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
5961 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
5962 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
5964 (vectorizable_reduction): Likewise.
5965 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
5967 (vectorizable_type_demotion, vectorizable_type_promotion,
5968 vectorizable_store): Likewise.
5969 (vect_analyze_stmt): Update call to vectorizable_reduction.
5970 (vect_transform_stmt): Likewise.
5971 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
5972 (vect_build_slp_tree): Fix indentation. Check that there are no loads
5973 from different interleaving chains in same node.
5974 (vect_slp_rearrange_stmts): New function.
5975 (vect_supported_load_permutation_p): Allow load permutations for
5976 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
5977 inside SLP nodes if necessary.
5978 (vect_analyze_slp_instance): Handle reductions.
5979 (vect_analyze_slp): Try to build SLP instances originating from groups
5981 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
5982 (vect_get_constant_vectors): Create initial vectors for reductions
5983 according to reduction code. Add new argument.
5984 (vect_get_slp_defs): Add new argument, pass it to
5985 vect_get_constant_vectors.
5986 (vect_schedule_slp_instance): Remove SLP tree root statements.
5988 2010-04-19 Jakub Jelinek <jakub@redhat.com>
5990 * tree.h (ENUM_IS_SCOPED): Define.
5991 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
5992 for ENUM_IS_SCOPED enums.
5994 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
5996 * fold-const.c (fold_comparison): Use ssizetype.
5997 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5998 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
5999 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
6000 * tree-object-size.c (compute_object_sizes): Use size_type_node.
6002 * tree.h (initialize_sizetypes): Remove parameter.
6003 (build_common_tree_nodes): Remove second parameter.
6004 * stor-layout.c (initialize_sizetypes): Remove parameter.
6005 Always create an unsigned type.
6006 (set_sizetype): Assert that the passed type is unsigned and simplify.
6007 * tree.c (build_common_tree_nodes): Remove second parameter.
6008 Adjust call to initialize_sizetypes.
6009 * c-decl.c (c_init_decl_processing): Remove second argument in call to
6010 build_common_tree_nodes.
6012 2010-04-18 Matthias Klose <doko@ubuntu.com>
6014 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
6016 2010-04-18 Ira Rosen <irar@il.ibm.com>
6018 PR tree-optimization/43771
6019 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
6020 load permutation doesn't have gaps.
6022 2010-04-18 Jan Hubicka <jh@suse.cz>
6024 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
6025 (sse_prologue_save_insn expander): Use new pattern.
6026 (sse_prologue_save_insn1): New pattern and splitter.
6027 (sse_prologue_save_insn): Update to deal also with 64bit aligned
6029 * i386.c (setup_incoming_varargs_64): Do not compute jump
6031 (ix86_gimplify_va_arg): Update alignment needed.
6032 (ix86_local_alignment): Do not align all local arrays to 128bit.
6034 2010-04-17 Jan Hubicka <jh@suse.cz>
6036 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
6038 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
6040 * arm.md (negdi2): Remove redundant code to force values into a
6043 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
6045 * arm/bpabi.S: Add EABI alignment attributes to objects.
6046 * arm/bpabi-v6m.S: Likewise.
6047 * arm/crti.asm: Likewise.
6048 * arm/crtn.asm: Likewise.
6049 * arm/lib1funcs.asm: Likewise.
6050 * arm/libunwind.S: Likewise.
6052 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
6054 * arm-protos.h (tune_params): New structure.
6055 * arm.c (current_tune): New variable.
6056 (arm_constant_limit): Delete.
6057 (struct processors): Add pointer to the tune parameters.
6058 (arm_slowmul_tune): New tuning option.
6059 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
6060 (all_cores): Adjust to pick up the tuning model.
6061 (arm_constant_limit): New function.
6062 (arm_override_options): Select the appropriate tuning model. Delete
6063 initialization of arm_const_limit.
6064 (arm_split_constant): Use the new constant-limit model.
6065 (arm_rtx_costs): Pick up the current tuning model.
6066 * arm.md (is_strongarm, is_xscale): Delete.
6067 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
6068 for Xscale variant architectures.
6069 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
6071 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6073 * config/arm/arm.c (arm_gen_constant): Remove unused variable
6075 (arm_rtx_costs_1): Remove unused variable extra_cost.
6076 (arm_unwind_emit_set): Use variable offset.
6077 (thumb1_output_casesi): Remove unused variable flags.
6079 2010-04-16 Jeff Law <law@redhat.com>
6081 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
6082 needing assignment rather than doing a two-phase assignment. Remove
6083 unused variable 'm'.
6085 2010-04-16 Jakub Jelinek <jakub@redhat.com>
6088 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
6090 2010-04-16 Doug Kwan <dougkwan@google.com>
6092 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
6093 (next_operand_entry_id): New static variable.
6094 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
6095 (add_to_ops_vec): Assigned unique ID to operand entry.
6096 (struct oecount_s): New field ID.
6097 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
6098 (undistribute_ops_list): Assign unique IDs to oecounts.
6099 (init_reassoc): reset next_operand_entry_id.
6101 2010-04-16 Doug Kwan <dougkwan@google.com>
6103 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
6104 missing left parenthesis.
6106 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
6108 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
6109 *btdi_rex64 using SWI48 mode iterator.
6110 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
6111 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
6112 *jcc_btdi_mask_rex64.
6114 2010-04-16 Anatoly Sokolov <aesok@post.ru>
6116 * double-int.h (tree_to_double_int): Convert to macro.
6117 * double-int.c (tree_to_double_int): Remove.
6119 2010-04-16 Jakub Jelinek <jakub@redhat.com>
6122 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
6123 with want_address 2 and in case a single element list might be
6124 possible, call it again with want_address 0.
6126 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
6128 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
6129 case 'W' print operands for HI mode.
6130 * config/h8300/h8300.h (Y0, Y2) : New constraints.
6131 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
6132 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
6133 * config/h8300/predicate.md (bit_register_indirect_operand): New.
6135 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
6137 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
6138 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
6139 #xx:3 and #xx:4 mode.
6141 * config/h8300/h8300.md (inverted load with HImode dest): Add
6142 support for H8300SX.
6144 * config/h8300/predicate.md (bit_operand): Allow immediate values that
6145 satisfy 'U' constraint.
6147 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6149 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
6150 * configure: Regenerate.
6151 * config.in: Regenerate.
6152 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
6155 2010-04-16 Richard Guenther <rguenther@suse.de>
6157 * tree.h (struct tree_decl_minimal): Move pt_uid ...
6158 (struct tree_decl_common): ... here.
6159 (DECL_PT_UID): Adjust.
6160 (SET_DECL_PT_UID): Likewise.
6161 (DECL_PT_UID_SET_P): Likewise.
6163 2010-04-16 Richard Guenther <rguenther@suse.de>
6165 PR tree-optimization/43572
6166 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
6167 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
6168 * tree-flow.h (is_call_clobbered): Remove.
6169 * tree-flow-inline.h (is_call_clobbered): Likewise.
6170 * tree-dfa.c (dump_variable): Do not dump call clobber state.
6171 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
6172 (execute_return_slot_opt): Adjust.
6173 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
6174 check for call clobbered vars here.
6175 (find_tail_calls): Move tailcall verification to the
6178 2010-04-16 Diego Novillo <dnovillo@google.com>
6180 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
6182 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
6185 * config/arm/arm.md (cbranchqi4): New pattern.
6186 * config/arm/predicates.md (const0_operand,
6187 cbranchqi4_comparison_operator): New predicates.
6189 2010-04-16 Richard Guenther <rguenther@suse.de>
6191 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
6192 (dump_gimple_stmt): Likewise.
6194 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
6196 * recog.h (struct recog_data): New field is_operator.
6197 (struct insn_operand_data): New field is_operator.
6198 * recog.c (extract_insn): Set recog_data.is_operator.
6199 * genoutput.c (output_operand_data): Emit code to set the
6201 * reload.c (find_reloads): Use it rather than testing for an
6202 empty constraint string.
6205 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
6206 If the previous insn is a cbranchsi4_insn with the same arguments,
6207 omit the compare instruction.
6209 * config/arm/arm.md (addsi3_cbranch): If destination is a high
6210 register, inputs must be low registers and we need a low register
6211 scratch. Handle alternative 2 like alternative 3.
6213 2010-04-16 Jakub Jelinek <jakub@redhat.com>
6215 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
6216 don't call get_addr on both. If one expression is a VALUE and
6217 the other a REG, check VALUE's locs if the REG isn't among them.
6219 2010-04-16 Christian Bruel <christian.bruel@st.com>
6221 * config/sh/sh.h (sh_frame_pointer_required): New function.
6222 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
6223 (flag_omit_frame_pointer) Set.
6224 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
6225 (rounded_frame_size): Adjust size with outgoing_args_size.
6226 (sh_set_return_address): Must return from stack pointer.
6227 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
6228 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
6229 (ACCUMULATE_OUTGOING_ARGS): Define.
6230 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
6231 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
6233 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
6236 * config/sh/sh.c (sh_legitimize_reload_address): Use
6237 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
6238 Remove a unneeded check for offset_base.
6240 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
6242 * configure: Regenerated.
6244 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6246 * config/s390/s390.c (s390_call_save_register_used): Switch back
6247 to HARD_REGNO_NREGS.
6249 2010-04-15 Richard Guenther <rguenther@suse.de>
6251 * alias.c (alias_set_subset_of): Handle alias-set zero
6254 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
6255 Julian Brown <julian@codesourcery.com>
6257 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
6258 alternatives according to use of high and low regs.
6259 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
6260 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
6261 optimizing for size on Thumb-2.
6263 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
6265 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
6267 2010-04-15 Richard Guenther <rguenther@suse.de>
6269 * tree-ssa-structalias.c (struct variable_info): Add
6271 (new_var_info): Initialize it.
6272 (dump_constraints): Support printing last added constraints.
6273 (debug_constraints): Adjust.
6274 (dump_constraint_graph): Likewise.
6275 (make_heapvar_for): Check for NULL cfun.
6276 (get_function_part_constraint): New function.
6277 (get_fi_for_callee): Likewise.
6278 (find_func_aliases): Properly implement IPA PTA constraints.
6279 (process_ipa_clobber): New function.
6280 (find_func_clobbers): Likewise.
6281 (insert_into_field_list_sorted): Remove.
6282 (create_function_info_for): Properly allocate vars for IPA mode.
6283 Do not use insert_into_field_list_sorted.
6284 (create_variable_info_for): Properly generate constraints for
6285 global vars in IPA mode.
6286 (dump_solution_for_var): Always dump the solution.
6287 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
6288 (find_what_var_points_to): Adjust.
6289 (pt_solution_set): Change.
6290 (pt_solution_ior_into): New function.
6291 (pt_solution_empty_p): Export.
6292 (pt_solution_includes_global): Adjust.
6293 (pt_solution_includes_1): Likewise.
6294 (pt_solutions_intersect_1): Likewise.
6295 (dump_sa_points_to_info): Check some invariants.
6296 (solve_constraints): Move constraint dumping ...
6297 (compute_points_to_sets): ... here.
6298 (ipa_pta_execute): ... and here.
6299 (compute_may_aliases): Do not re-compute points-to info
6300 locally if IPA info is available.
6301 (ipa_escaped_pt): New global var.
6302 (ipa_pta_execute): Properly implement IPA PTA.
6303 * tree-into-ssa.c (dump_decl_set): Support dumping
6304 decls not in referenced-vars.
6305 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
6306 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
6307 (dump_points_to_solution): Likewise.
6308 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
6309 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
6310 (remap_gimple_stmt): Reset call clobber/use information if necessary.
6311 (copy_decl_to_var): Copy DECL_PT_UID.
6312 (copy_result_decl_to_var): Likewise.
6313 * tree.c (make_node_stat): Initialize DECL_PT_UID.
6314 (copy_node_stat): Copy it.
6315 * tree.h (DECL_PT_UID): New macro.
6316 (SET_DECL_PT_UID): Likewise.
6317 (DECL_PT_UID_SET_P): Likewise.
6318 (struct tree_decl_minimal): Add pt_uid member.
6319 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
6320 (pt_solution_empty_p): Declare.
6321 (pt_solution_set): Adjust.
6322 (ipa_escaped_pt): Declare.
6323 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
6324 * gimple-pretty-print.c (pp_points_to_solution): New function.
6325 (dump_gimple_call): Dump call clobber/use information.
6326 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
6327 * tree-pass.h (TDF_ALIAS): New dump option.
6328 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
6329 * doc/invoke.texi (-fipa-pta): Update documentation.
6331 2010-04-15 Richard Guenther <rguenther@suse.de>
6333 * Makefile.in (OBJS-common): Add gimple-fold.o.
6334 (gimple-fold.o): New rule.
6335 * tree.h (maybe_fold_offset_to_reference,
6336 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
6338 * gimple.h: ... here.
6339 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
6340 may_propagate_address_into_dereference): Move prototypes ...
6341 * gimple.h: ... here.
6342 * tree-ssa-ccp.c (get_symbol_constant_value,
6343 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
6344 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
6345 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
6346 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
6347 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
6348 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
6349 gimplify_and_update_call_from_tree): Move ...
6350 * gimple-fold.c: ... here. New file.
6351 (ccp_fold_builtin): Rename to ...
6352 (gimple_fold_builtin): ... this.
6353 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
6355 2010-04-15 Richard Guenther <rguenther@suse.de>
6357 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
6358 fit_double_type, force_fit_type_double, add_double_with_sign,
6359 neg_double, mul_double_with_sign, lshift_double, rshift_double,
6360 lrotate_double, rrotate_double, div_and_round_double): Move ...
6361 * double-int.c: ... here.
6362 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
6363 add_double, neg_double, mul_double_with_sign, mul_double,
6364 lshift_double, rshift_double, lrotate_double, rrotate_double,
6365 div_and_round_double): Move prototypes ...
6366 * double-int.h: ... here.
6368 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
6371 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
6372 matching constraints to ensure inputs match the output.
6374 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
6377 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
6378 in an input-only operand.
6380 2010-04-15 Anatoly Sokolov <aesok@post.ru>
6382 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
6383 (double_int_not, double_int_lshift, double_int_rshift): Declare.
6384 (double_int_negative_p): Convert to static inline function.
6385 * double-int.c (double_int_lshift, double_int_lshift): New functions.
6386 (double_int_negative_p): Remove.
6387 * tree.h (lshift_double, rshift_double):
6388 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
6389 * fold-const.c (fold_convert_const_int_from_real,
6390 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
6391 (lshift_double): Change type of arith argument to bool.
6392 (rshift_double): Change type of arith argument to bool. Correct
6394 * expmed.c (mask_rtx, lshift_value): (Ditto.).
6396 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
6399 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
6400 at the start and end of the then/else blocks, and omit them from the
6402 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
6403 argument; all callers changed. Pass zero to old_insns_match_p instead.
6404 (flow_find_head_matching_sequence): New function.
6405 (old_insns_match_p): Check REG_EH_REGION notes for calls.
6406 * basic-block.h (flow_find_cross_jump,
6407 flow_find_head_matching_sequence): Declare functions.
6409 2010-04-14 Jason Merrill <jason@redhat.com>
6412 * c-common.c (attribute_takes_identifier_p): New fn.
6413 * c-common.h: Declare it.
6415 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6417 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
6419 (*udivmod<mode>4): Ditto.
6421 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6423 * config/i386/i386.md (maxmin_int): Rename code attribute from
6424 maxminiprefix and update all users.
6425 (maxmin_float): Ditto from maxminfprefix.
6426 (logic): Ditto from logicprefix.
6427 (absneg_mnemonic): Ditto from absnegprefix.
6428 * config/i386/mmx.md: Update all users of maxminiprefix,
6429 maxminfprefix and logicprefix for rename.
6430 * config/i386/sse.md: Ditto.
6431 * config/i386/sync.md (sync_<code><mode>): Update for
6434 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6437 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
6438 warnings converted to errors.
6440 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6442 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
6443 used insn_type variable.
6444 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
6445 to avoid set-but-not-used warning.
6447 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6449 * df-core.c (df_ref_debug): Change format string placeholder
6451 * dwarf2asm.c (dw2_asm_output_data_raw,
6452 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
6453 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
6454 * dwarf2out.c (output_cfi, output_cfi_directive,
6455 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
6456 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
6458 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
6459 * print-rtl.c (print_rtx): Ditto.
6461 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6464 * builtins.c (expand_builtin_pow_root): New function to expand pow
6465 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
6466 series of sqrt and cbrt calls under -ffast-math.
6467 (expand_builtin_pow): Call it.
6469 2010-04-14 Michael Matz <matz@suse.de>
6471 PR tree-optimization/42963
6472 * tree-cfg.c (touched_switch_bbs): New static variable.
6473 (group_case_labels_stmt): New function broken out from ...
6474 (group_case_labels): ... here, use the above.
6475 (start_recording_case_labels): Allocate touched_switch_bbs.
6476 (end_recording_case_labels): Deallocate it, call
6477 group_case_labels_stmt.
6478 (gimple_redirect_edge_and_branch): Remember index of affected BB.
6480 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6482 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
6485 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6487 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
6489 2010-04-13 Jan Hubicka <jh@suse.cz>
6491 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
6492 of optimized out static functions.
6493 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
6494 cost computation. Also sanity check for overflows.
6495 (update_caller_keys): Update cgraph_edge_badness call; properly
6496 update fibheap and sanity check that it is up to date.
6497 (add_new_edges_to_heap): Update cgraph_edge_badness.
6498 (cgraph_decide_inlining_of_small_function): Likewise;
6499 add sanity checking that badness in heap is up to date;
6500 improve dumping of reason; Update badness of calls to the
6501 offline copy of function currently inlined; dump badness
6502 of functions not inlined because of unit growth limits.
6504 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6507 * c-common.c (pointer_int_sum): Disregard overflow that occured only
6508 because of sign-extension change when converting to sizetype here...
6509 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
6511 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
6512 the folding to constants. Remove redundant final conversion.
6513 (fold_binary) <associate>: Do not associate if the re-association of
6514 constants alone overflows.
6515 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
6516 to the end of the list.
6517 (multiple_of_p) <COND_EXPR>: New case.
6519 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6521 * opt-functions.awk (opt_sanitized_name): New.
6523 * optc-gen.awk: Use it
6524 * opth-gen.awk: Use it.
6526 2010-04-13 Martin Jambor <mjambor@suse.cz>
6528 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
6529 (sra_modify_assign): Delete stmts loading dead data even if racc has no
6530 children. Call replace_uses_with_default_def_ssa_name to handle
6533 2010-04-13 Michael Matz <matz@suse.de>
6536 * builtins.c (expand_builtin_interclass_mathfn): Also create
6537 a register if the predicate doesn't match.
6539 2010-04-13 Diego Novillo <dnovillo@google.com>
6541 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
6542 * c-pch.c: Include timevar.h.
6543 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
6544 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
6545 * ggc-common.c: Include timevar.h.
6546 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
6547 * timevar.def (TV_PCH_SAVE): Define.
6548 (TV_PCH_CPP_SAVE): Define.
6549 (TV_PCH_PTR_REALLOC): Define.
6550 (TV_PCH_PTR_SORT): Define.
6551 (TV_PCH_RESTORE): Define.
6552 (TV_PCH_CPP_RESTORE): Define.
6554 2010-04-13 Michael Matz <matz@suse.de>
6556 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
6558 (can_reassociate_p): New function.
6559 (break_up_subtract_bb, reassociate_bb): Use it.
6561 2010-04-13 Richard Guenther <rguenther@suse.de>
6564 * builtins.c (c_readstr): Fix assert.
6566 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
6568 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
6569 when generating cltd insn.
6571 (*ashl<mode>3_1): Remove special handling for register operand 2.
6572 (*ashlsi3_1_zext): Ditto.
6573 (*ashlhi3_1): Ditto.
6574 (*ashlhi3_1_lea): Ditto.
6575 (*ashlqi3_1): Ditto.
6576 (*ashlqi3_1_lea): Ditto.
6577 (*<shiftrt_insn><mode>3_1): Ditto.
6578 (*<shiftrt_insn>si3_1_zext): Ditto.
6579 (*<shiftrt_insn>qi3_1_slp): Ditto.
6580 (*<rotate_insn><mode>3_1): Ditto.
6581 (*<rotate_insn>si3_1_zext): Ditto.
6582 (*<rotate_insn>qi3_1_slp): Ditto.
6584 2010-04-13 Richard Guenther <rguenther@suse.de>
6586 * tree-ssa-structalias.c (callused_id): Remove.
6587 (call_stmt_vars): New.
6588 (get_call_vi): Likewise.
6589 (lookup_call_use_vi): Likewise.
6590 (lookup_call_clobber_vi): Likewise.
6591 (get_call_use_vi): Likewise.
6592 (get_call_clobber_vi): Likewise.
6593 (make_transitive_closure_constraints): Likewise.
6594 (handle_const_call): Adjust to do per-call call-used handling.
6595 (handle_pure_call): Likewise.
6596 (find_what_var_points_to): Remove general callused handling.
6597 (init_base_vars): Likewise.
6598 (init_alias_vars): Initialize call_stmt_vars.
6599 (compute_points_to_sets): Process call-used and call-clobbered
6600 vars for call statements.
6601 (delete_points_to_sets): Free call_stmt_vars.
6603 2010-04-13 Richard Guenther <rguenther@suse.de>
6605 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6606 Only add RW dependence for dependence distance zero.
6607 Adjust maximal vectorization factor according to dependences.
6608 Move alignment handling ...
6609 (vect_find_same_alignment_drs): ... here. New function.
6610 (vect_analyze_data_ref_dependences): Adjust.
6611 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
6612 (vect_analyze_data_refs): Adjust minimal vectorization factor
6613 according to data references.
6614 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
6615 dependences before determining the vectorization factor.
6616 Analyze alignment after determining the vectorization factor.
6617 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
6618 dependences before alignment.
6619 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
6621 (vect_analyze_data_refs): Likewise.
6622 (MAX_VECTORIZATION_FACTOR): New define.
6624 2010-04-13 Duncan Sands <baldrick@free.fr>
6626 * except.h (lang_eh_type_covers): Remove.
6627 * except.c (lang_eh_type_covers): Likewise.
6629 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6630 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6632 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
6633 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
6634 UNITS_PER_LONG where it is ABI relevant.
6635 (s390_return_addr_rtx): Likewise.
6636 (s390_back_chain_rtx): Likewise.
6637 (s390_frame_area): Likewise.
6638 (s390_frame_info): Likewise.
6639 (s390_initial_elimination_offset): Likewise.
6640 (save_gprs): Likewise.
6641 (s390_emit_prologue): Likewise.
6642 (s390_emit_epilogue): Likewise.
6643 (s390_function_arg_advance): Likewise.
6644 (s390_function_arg): Likewise.
6645 (s390_va_start): Likewise.
6646 (s390_gimplify_va_arg): Likewise.
6647 (s390_function_profiler): Likewise.
6648 (s390_optimize_prologue): Likewise.
6649 (s390_rtx_costs): Likewise.
6650 (s390_secondary_reload): Likewise.
6651 (s390_promote_function_mode): Likewise.
6652 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
6653 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
6654 registers available.
6655 (s390_unwind_word_mode): New function.
6656 (s390_function_value): Split 64 bit values into register pair if
6657 used as return value.
6658 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
6659 function call parameters. Handle parallels.
6660 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
6661 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
6662 (DWARF_CIE_DATA_ALIGNMENT): New macro.
6663 (s390_expand_setmem): Remove unused variable src_addr.
6664 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
6665 deal with 64 bit registers.
6666 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
6667 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
6668 (UNITS_PER_LONG): New macro.
6669 * libjava/include/s390-signal.h: Define extended ucontext
6670 structure containing the upper halfs of the 64 bit registers.
6672 2010-04-13 Simon Baldwin <simonb@google.com>
6674 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
6676 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6678 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
6679 rvalue on the RHS if the LHS is of a non-renamable type.
6680 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
6682 2010-04-13 Matthias Klose <doko@ubuntu.com>
6684 * gcc.c (cc1_options): Handle -iplugindir before processing
6685 the cc1 spec. Only add -iplugindir once.
6686 (cpp_unique_options): Add -iplugindir option if -fplugin* options
6688 * common.opt (iplugindir): Remove `Separate' property, initialize.
6689 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
6691 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
6692 (distclean): Remove plugin dir.
6693 * doc/invoke.texi: Document -iplugindir.
6695 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
6697 * doc/plugins.texi (Loading Plugins): Document short
6698 -fplugin=foo option.
6699 (Plugin API): Mention default_plugin_dir_name function.
6701 * gcc.c (find_file_spec_function): Add new declaration.
6702 (static_spec_func): Use it for "find-file".
6703 (find_file_spec_function): Add new function.
6704 (cc1_options): Add -iplugindir option if -fplugin* options found.
6706 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
6708 * plugin.c (add_new_plugin): Updated comment, and handle short
6710 (default_plugin_dir_name): Added new function.
6712 * common.opt (iplugindir): New option to set the plugin directory.
6714 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
6716 * config/i386/i386.md (any_rotate): New code iterator.
6717 (rotate_insn): New code attribute.
6719 (SWIM124): New mode iterator.
6720 (<rotate_insn>ti3): New expander.
6721 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
6722 any_rotate code iterator.
6723 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
6724 using any_rotate code iterator and SWIM124 mode iterator.
6725 (ix86_rotlti3): New insn_and_split pattern.
6726 (ix86_rotrti3): Ditto.
6727 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
6728 ix86_rotl{di,ti}3 patterns.
6729 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
6730 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
6731 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
6732 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
6733 code iterator and SWI mode iterator.
6734 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
6735 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
6737 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
6738 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
6739 (bswap rotatert splitter): Add splitter.
6740 (bswap splitter): Macroize splitter using any_rotate code iterator.
6741 Add insn predicate to split only for TARGET_USE_XCHGB or when
6742 optimizing function for size.
6744 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6746 * config/pa/pa.c (emit_move_sequence): Remove use of
6747 deleted variable flag_argument_noalias.
6749 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6751 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
6753 Add to unsupported targets list.
6754 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
6755 sparc*-sun-solaris2.[567]* from target lists.
6756 * configure: Regenerate.
6757 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
6759 Remove Solaris 7 patch references.
6760 (Specific, sparc-sun-solaris2.7): Removed.
6761 (sparc-sun-solaris2*): Update Solaris 7 example.
6762 (sparc64-*-solaris2*): Likewise.
6764 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6766 * config.build (alpha*-dec-osf4*): Remove.
6767 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
6768 of obsolete configurations.
6769 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
6771 * config/alpha/t-osf4: Renamed to ...
6772 * config/alpha/t-osf5: ... this.
6773 * config/alpha/osf.h: Renamed to ...
6774 * config/alpha/osf5.h: ... this.
6775 Merged old osf5.h contents.
6777 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
6778 (EXTRA_SPECS): Removed.
6779 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
6780 reflect removal of Tru64 UNIX V4.0/V5.0 support.
6783 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6785 * doc/contrib.texi (Contributors, Rainer Orth): Update.
6787 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
6790 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
6791 __thiscall convention.
6793 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6795 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
6797 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
6799 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6801 * function.c (assign_parms_initialize_all): Add unused attribute
6804 2010-04-12 Richard Guenther <rguenther@suse.de>
6806 * gsstruct.def (GSS_CALL): New.
6807 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
6808 * gimple.h: Include tree-ssa-alias.h.
6809 (struct gimple_statement_call): New.
6810 (union gimple_statement_struct_d): Add gimple_call member.
6811 (gimple_call_reset_alias_info): Declare.
6812 (gimple_call_use_set): New function.
6813 (gimple_call_clobber_set): Likewise.
6814 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
6815 * gimple.c (gimple_call_reset_alias_info): New function.
6816 (gimple_build_call_1): Call it.
6817 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6818 * tree-inline.c (remap_gimple_stmt): Likewise.
6819 (expand_call_inline): Remove callused handling.
6820 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
6821 * tree-dfa.c (dump_variable): Likewise.
6822 * tree-parloops.c (parallelize_loops): Likewise.
6823 * tree-ssa.c (init_tree_ssa): Likewise.
6824 (delete_tree_ssa): Likewise.
6825 * tree-flow-inline.h (is_call_used): Remove.
6826 * tree-flow.h (struct gimple_df): Remove callused member.
6827 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
6828 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
6829 (ref_maybe_used_by_call_p_1): Simplify.
6830 (call_may_clobber_ref_p_1): Likewise.
6831 * tree-ssa-structalias.c (compute_points_to_sets): Set
6832 the call stmt used and clobbered sets.
6833 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
6834 (find_tail_calls): Verify the tail call.
6836 2010-04-12 Richard Guenther <rguenther@suse.de>
6838 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
6839 single-iteration always-inline inlining.
6840 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
6841 (cgraph_decide_inlining): Do not handle always-inline specially.
6842 (try_inline): Remove always-inline cycle detection special case.
6843 Do not recurse on always-inlines.
6844 (cgraph_early_inlining): Do not iterate if not optimizing.
6845 (cgraph_gate_early_inlining): remove.
6846 (pass_early_inline): Run unconditionally.
6847 (gate_cgraph_decide_inlining): New function.
6848 (pass_ipa_inline): Use it. Do not run the IPA inliner if
6849 not inlining or optimizing.
6850 (cgraph_decide_inlining_of_small_functions): Also consider
6851 always-inline functions.
6852 (cgraph_default_inline_p): Return true for nodes which should
6853 disregard inline limits.
6854 (estimate_function_body_sizes): Assume zero size and time for
6855 nodes which are marked as disregarding inline limits.
6856 (cgraph_decide_recursive_inlining): Do not perform recursive
6857 inlining on always-inline nodes.
6859 2010-04-12 Jakub Jelinek <jakub@redhat.com>
6862 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
6863 for exprs satisfying handled_component_p.
6865 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
6867 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
6868 non-constant aggregate elements.
6870 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
6871 is a real initialization.
6873 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
6876 * c-decl.c (start_function): Move forward check for nested function.
6878 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
6880 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
6881 * config/sh/sh.c: Include reload.h.
6882 (sh_legitimize_reload_address): New.
6883 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
6884 sh_legitimize_reload_address.
6886 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
6888 * config/sh/sh.md (*movqi_pop): New insn pattern.
6889 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
6891 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6893 * config/i386/i386.md (any_shiftrt): New code iterator.
6894 (shiftrt_insn): New code attribute.
6896 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
6897 using any_shiftrt code iterator.
6898 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
6899 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
6900 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
6901 pattern from corresponding peephole2 patterns.
6902 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
6903 using any_shiftrt code iterator.
6904 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
6905 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
6906 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
6907 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
6908 *{ashr,lshr}<mode>3_cmp_zext.
6909 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
6911 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6913 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
6915 (*lshr<mode>3_cconly): Ditto.
6917 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6919 * config/i386/i386.md (lshr<mode>3): Macroize expander from
6920 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6921 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
6922 pattern from *lshr{di,ti}3_1 and corresponding splitters using
6924 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6925 from corresponding peephole2 patterns.
6926 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
6927 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
6928 and *lshrdi3_1_rex64 using SWI mode iterator.
6929 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
6930 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
6931 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
6932 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
6933 and *lshrdi3_cmp_rex64 using SWI mode iterator.
6934 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
6935 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
6936 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
6937 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
6940 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
6942 * config/i386/i386.md (ashr<mode>3): Macroize expander from
6943 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6944 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
6945 pattern from *ashr{di,ti}3_1 and corresponding splitters using
6947 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6948 from corresponding peephole2 patterns.
6949 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
6950 (ashrsi3_cvt): Rename from ashrsi3_31.
6951 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
6952 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
6953 and x86_64_shift_adj_3 using SWI48 mode iterator.
6954 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
6955 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
6956 and *ashrdi3_1_rex64 using SWI mode iterator.
6957 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
6958 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
6959 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
6960 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
6961 and *ashrdi3_cmp_rex64 using SWI mode iterator.
6962 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
6963 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
6964 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
6965 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
6967 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
6968 * config/i386/i386.c (ix86_split_ashr): Update for renamed
6969 x86_shift<mode>_adj_3 expanders.
6971 2010-04-10 Wei Guozhi <carrot@google.com>
6974 * config/arm/arm.c (arm_pic_static_addr): New function.
6975 (legitimize_pic_address): Call arm_pic_static_addr when it detects
6977 (arm_output_addr_const_extra): Output expression for new pattern.
6978 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
6980 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
6982 * ira-costs.c (record_reg_classes): Ignore alternatives that are
6985 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
6986 * web.c: Include "insn-config.h" and "recog.h".
6987 (union_match_dups): New function.
6988 (web_main): Call it.
6989 (union_defs): Don't try to recognize match_dups.
6991 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
6992 if doing so would replace the entire pattern.
6994 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
6998 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
6999 and splitter pattern. Change splitter operand 1 predicate to
7002 2010-04-09 Martin Jambor <mjambor@suse.cz>
7004 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
7005 lattices are addresses of CONST_DECLs with the same initial value.
7006 (ipcp_print_all_lattices): Print values of CONST_DECLs.
7007 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
7009 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
7010 Bernd Schmidt <bernds@codesourcery.com>
7012 * loop-invariant.c (replace_uses): New static function.
7013 (move_invariant_reg): Use it to ensure we can replace the uses.
7015 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
7017 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
7019 (picochip_override_options): Enable section anchors only above -O1.
7020 (picochip_reorg): Fixed a couple of build warnings.
7022 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7024 * configure.ac (plugin -rdynamic test): Log result.
7025 * configure: Regenerate.
7026 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
7027 (RDYNAMIC_SPEC): Define.
7028 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
7030 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7032 * configure.ac: Determine Sun ld version numbers.
7033 (comdat_group): Restrict GNU ld version checks to gld.
7034 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
7035 (enable_comdat): Support --enable-comdat.
7036 * configure: Regenerate.
7037 * doc/install.texi (Configuration): Document --enable-comdat.
7039 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7041 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
7042 * config/sol2-gld.h: ... here.
7043 * config.gcc (sparc*-*-solaris2*): Reflect this.
7044 (i[34567]86-*-solaris2*): Use it.
7046 2010-04-09 Steve Ellcey <sje@cup.hp.com>
7048 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
7050 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
7052 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7055 * diagnostic.c (diagnostic_initialize): Initialize
7056 some_warnings_are_errors.
7057 (diagnostic_finish): New.
7058 (diagnostic_action_after_output): Call it before exiting.
7059 (diagnostic_report_diagnostic): Do not print message here. Set
7060 some_warnings_are_errors.
7061 * diagnostic.h (diagnostic_context): Delete
7062 issue_warnings_are_errors_message. Add some_warnings_are_errors.
7063 (diagnostic_finish): Declare.
7064 * toplev.c (toplev_main): Call it before exit.
7066 2010-04-09 Jason Merrill <jason@redhat.com>
7069 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
7070 for incomplete type.
7073 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
7074 based on a warning flag.
7076 2010-04-09 Richard Guenther <rguenther@suse.de>
7078 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
7080 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
7083 * varasm.c (default_assemble_visibility): Wrap vars that are
7084 set, but unused, by targets without GAS.
7085 * config/rs6000/rs6000.c (paired_emit_vector_compare):
7086 Remove set, but unused, vars.
7087 (rs6000_legitimize_tls_address): Likewise.
7088 (altivec_expand_dst_builtin): Likewise.
7089 * config/darwin.c (machopic_classify_symbol): Likewise.
7090 (machopic_indirection_name): Likewise.
7092 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
7094 * config/i386/i386.md (DWI): New mode iterator.
7095 (S): New mode attribute.
7096 (shift_operand): Ditto.
7097 (shift_immediate_operand): Ditto.
7098 (ashl_input_operand): Ditto.
7099 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
7100 using SDWIM mode iterator.
7101 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
7102 pattern from *ashl{di,ti}3_1 and corresponding splitters using
7104 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
7105 from corresponding peephole2 patterns.
7106 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
7107 and x86_64_shift_adj_1 using SWI48 mode iterator.
7108 (x86_shift<mode>_adj_2): Ditto.
7109 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
7110 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
7111 using SWI48 mode iterator.
7112 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
7113 *ashldi3_cmp_rex64 using SWI mode iterator.
7114 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
7115 *ashldi3_cconly_rex64 using SWI mode iterator.
7116 * config/i386/i386.c (ix86_split_ashl): Update for renamed
7117 x86_shift<mode>_adj_{1,2}.
7118 (ix86_split_ashr): Ditto.
7119 (ix86_split_lshr): Ditto.
7121 2010-04-09 Richard Guenther <rguenther@suse.de>
7123 * target.h (builtin_conversion): Pass in input and output types.
7124 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
7125 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
7126 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
7127 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
7129 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
7131 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
7133 2010-04-09 Richard Guenther <rguenther@suse.de>
7136 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
7138 2010-04-09 Richard Guenther <rguenther@suse.de>
7140 * tree-vectorizer.h (struct _stmt_vec_info): Document
7141 that vectype is the type of the LHS.
7142 (supportable_widening_operation, supportable_narrowing_operation):
7143 Get both input and output vector types as arguments.
7144 (vect_is_simple_use_1): Declare.
7145 (get_same_sized_vectype): Likewise.
7146 * tree-vect-loop.c (vect_determine_vectorization_factor):
7147 Set STMT_VINFO_VECTYPE to the vector type of the def.
7148 (vectorizable_reduction): Adjust.
7149 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
7150 Adjust. Specify the output vector type.
7151 (vect_pattern_recog_1): Adjust.
7152 * tree-vect-stmts.c (get_same_sized_vectype): New function.
7153 (vectorizable_call): Adjust.
7154 (vectorizable_conversion): Likewise.
7155 (vectorizable_operation): Likewise.
7156 (vectorizable_type_demotion): Likewise.
7157 (vectorizable_type_promotion): Likewise.
7158 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
7160 (vect_is_simple_use_1): New function.
7161 (supportable_widening_operation): Get both input and output
7163 (supportable_narrowing_operation): Likewise.
7164 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
7166 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
7168 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
7169 __thiscall and _thiscall as predefined macros.
7170 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
7171 thiscall attribute handling.
7172 (ix86_comp_type_attributes): Likewise.
7173 (ix86_function_regparm): Likewise.
7174 (ix86_return_pops_args): Likewise.
7175 (init_cumulative_args): Likewise.
7176 (find_drap_reg): Likewise.
7177 (ix86_static_chain): Likewise.
7178 (x86_this_parameter): Likewise.
7179 (x86_output_mi_thunk): Likewise.
7180 (ix86_attribute_table): Add description for thiscall attribute.
7181 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
7182 * doc/extend.texi: Add documentation for thiscall.
7184 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7187 * c.opt (Wint-to-pointer-cast): Available in C++.
7188 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
7190 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
7192 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
7193 * calls.c (expand_call): Pass the function type to aggregate_value_p.
7194 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
7195 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
7196 function type instead. Reorder and simplify checks.
7198 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
7200 2010-04-08 Jing Yu <jingyu@google.com>
7201 Zdenek Dvorak <ook@ucw.cz>
7203 PR tree-optimization/42720
7204 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
7205 loop unswitch conditions here from ...
7206 (tree_unswitch_single_loop): ... here.
7208 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
7210 * tree-if-conv.c: Fix comments and simplify logic.
7212 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
7214 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
7215 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
7216 (main_tree_if_conversion): Update call to tree_if_conversion.
7218 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7221 * doc/invoke.texi (-b,-V): Delete.
7222 * doc/tm.texi: Do not mention -b.
7223 * gcc.c (display_help): Delete -b and -V.
7224 (process_command): Delete -b and -V.
7225 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
7227 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
7228 Wolfgang Gellerich <gellerich@de.ibm.com>
7230 Implement target hook for loop unrolling
7231 * target.h (loop_unroll_adjust): Add a new target hook function.
7232 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
7233 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
7234 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
7235 (s390_loop_unroll_adjust): Implement the new target hook for s390.
7236 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
7238 (decide_unroll_stupid): Likewise.
7240 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7243 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
7245 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7247 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
7248 (Specific, *-*-solaris2*): Likewise.
7249 Don't prefer Sun as over GNU as.
7251 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
7253 * config/s390/s390.c (override_options): Adjust the z10 defaults
7254 for max-unroll-times, max-completely-peeled-insns
7255 and max-completely-peel-times.
7257 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7259 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
7260 instructions for z10.
7261 (s390_expand_setmem): Likewise.
7262 (s390_expand_cmpmem): Likewise.
7264 2010-04-08 Richard Guenther <rguenther@suse.de>
7266 PR tree-optimization/43679
7267 * tree-ssa-pre.c (eliminate): Only propagate copies.
7269 2010-04-08 Jakub Jelinek <jakub@redhat.com>
7272 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
7273 set but not used variable warning.
7275 2010-04-08 Wei Guozhi <carrot@google.com>
7278 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
7279 (arm_size_rtx_costs): Call the new function when optimized for size.
7281 2010-04-08 Jakub Jelinek <jakub@redhat.com>
7284 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
7285 op0 is not a MEM, just return NULL instead of assertion
7287 (discover_nonconstant_array_refs): Don't walk debug stmts.
7289 2010-04-08 Doug Kwan <dougkwan@google.com>
7291 * configure.ac: Recognize gold and do not use its version number
7292 to test ld features.
7293 * configure: Regenerate.
7295 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
7298 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
7299 (negate_value): Move code to push elements to broken_up_substracts ...
7300 (eliminate_plus_minus_pair): ... here. Push operands that have no
7301 negative pair to plus_negates.
7302 (repropagate_negates, init_reassoc, fini_reassoc): Update.
7304 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7306 * doc/install.texi (Configuration): Move description of
7307 --enable-lto, --with-libelf*, --enable-gold from Java section to
7310 * doc/generic.texi (Working with declarations)
7311 (Function Properties, C and C++ Trees): Fix typos.
7312 * doc/sourcebuild.texi (Top Level): Likewise.
7314 2010-04-07 Jakub Jelinek <jakub@redhat.com>
7317 * tree.h (DECL_READ_P): Define.
7318 (struct tree_decl_common): Add decl_read_flag.
7319 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
7320 a set but not used warning.
7321 (merge_decls): Merge DECL_READ_P flag.
7322 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
7323 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
7324 * c-common.c (handle_used_attribute, handle_unused_attribute):
7326 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
7328 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
7330 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
7331 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
7332 c_parser_binary_expression, c_parser_cast_expression,
7333 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
7334 Call default_function_array_read_conversion instead of
7335 default_function_array_conversion where needed.
7336 (c_parser_unary_expression, c_parser_conditional_expression,
7337 c_parser_postfix_expression_after_primary, c_parser_initelt):
7338 Likewise. Call mark_exp_read where needed.
7339 (c_parser_statement_after_labels, c_parser_asm_operands,
7340 c_parser_typeof_specifier, c_parser_sizeof_expression,
7341 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
7343 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
7345 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
7346 (warn_unused_but_set_parameter): Default to warn_unused
7348 * doc/invoke.texi: Document -Wunused-but-set-variable and
7349 -Wunused-but-set-parameter.
7351 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
7352 used count variable.
7353 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
7354 when operandN variables aren't used in the body of the expander
7356 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
7357 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
7358 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
7359 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
7360 FOR_EACH_IMM_USE_ON_STMT): Likewise.
7361 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
7362 * tree.c (PROCESS_ARG): Likewise.
7364 2010-04-07 Simon Baldwin <simonb@google.com>
7366 * diagnostic.h (diagnostic_override_option_index): New macro to
7367 set a diagnostic's option_index.
7368 * c-tree.h (c_cpp_error): Add warning reason argument.
7369 * opts.c (_warning_as_error_callback): New.
7370 (register_warning_as_error_callback): Store callback for
7371 warnings enabled via enable_warning_as_error.
7372 (enable_warning_as_error): Call callback, minor code tidy.
7373 * opts.h (register_warning_as_error_callback): Declare.
7374 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
7375 response to -Werror=.
7376 (c_common_init_options): Register warning_as_error_callback in opts.c.
7377 * common.opt: Add -Wno-cpp option.
7378 * c-common.c (struct reason_option_codes_t): Map cpp warning
7379 reason codes to gcc option indexes.
7380 * (c_option_controlling_cpp_error): New function, lookup the gcc
7381 option index for a cpp warning reason code.
7382 * (c_cpp_error): Add warning reason argument, call
7383 c_option_controlling_cpp_error for diagnostic_override_option_index.
7384 * doc/invoke.texi: Document -Wno-cpp.
7386 2010-04-07 Richard Guenther <rguenther@suse.de>
7388 * ipa-reference.c (mark_load): Use get_base_address.
7389 (mark_store): Likewise.
7391 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
7392 inserting GIMPLE_NOPs into the IL.
7393 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7394 Explicitly strip handled components and indirect references.
7396 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
7397 folding address expressions.
7398 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
7399 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
7400 operand_equal_p to compare decls.
7401 (ptr_deref_may_alias_decl_p): Likewise.
7402 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
7403 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7404 Handle reversed comparison ops.
7405 * tree-sra.c (asm_visit_addr): Use get_base_address.
7406 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
7407 * ipa-reference.c (mark_address): Use get_base_address.
7409 2010-04-07 Richard Guenther <rguenther@suse.de>
7411 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
7412 Propagate constants everywhere.
7414 2010-04-07 Jakub Jelinek <jakub@redhat.com>
7417 * tree.c (MAX_INT_CACHED_PREC): Define.
7418 (nonstandard_integer_type_cache): New array.
7419 (build_nonstandard_integer_type): Cache results for precision
7420 <= MAX_INT_CACHED_PREC.
7422 2010-04-07 Richard Guenther <rguenther@suse.de>
7424 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
7425 -fargument-noalias-global, -fargument-noalias-anything): Remove.
7426 * common.opt: Likewise.
7427 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
7428 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
7429 (nonoverlapping_memrefs_p): Likewise.
7430 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7431 * opts.c (common_handle_option): Handle OPT_fargument_alias,
7432 OPT_fargument_noalias, OPT_fargument_noalias_anything and
7433 OPT_fargument_noalias_global for backward compatibility.
7435 2010-04-07 Richard Guenther <rguenther@suse.de>
7437 PR tree-optimization/43270
7438 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
7439 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
7440 * tree-ssa-pre.c (phi_translate_1): Adjust.
7441 (fully_constant_expression): Split out vn_reference handling to ...
7442 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
7443 Fold reads from constant strings.
7444 (vn_reference_lookup): Handle fully constant references.
7445 (vn_reference_lookup_pieces): Likewise.
7446 * Makefile.in (expmed.o-warn): Add -Wno-error.
7448 2010-04-07 Martin Jambor <mjambor@suse.cz>
7450 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
7452 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
7455 * gcc.c: Add -static-libstdc++ to list of recognized options.
7457 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7459 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
7461 2010-04-07 Richard Guenther <rguenther@suse.de>
7464 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
7465 bases build simple mem attributes to retain points-to information.
7467 2010-04-07 Richard Guenther <rguenther@suse.de>
7470 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
7471 preserve points-to related information.
7473 2010-04-07 Richard Guenther <rguenther@suse.de>
7476 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
7477 discard plain indirect references.
7478 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
7479 * tree.c (tree_nop_conversion): Likewise.
7481 2010-04-07 Dodji Seketeli <dodji@redhat.com>
7484 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
7486 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
7488 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
7489 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
7491 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7493 * tree-if-conv.c: Fix indentation and comments.
7495 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7497 * tree-if-conv.c: Sort static functions in topological order.
7499 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7501 * tree-if-conv.c: Fix indentation and comments.
7503 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7506 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
7507 lang_hooks.types.type_for_size instead of
7508 build_nonstandard_integer_type.
7509 When converting an unsigned type to signed, double its precision.
7510 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
7511 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
7512 (graphite_create_new_loop_guard): When ub + 1 wraps around,
7515 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7518 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7519 POINTER_PLUS_EXPR for pointer types.
7521 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7524 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
7525 * graphite-clast-to-gimple.c: Include langhooks.h.
7526 (max_signed_precision_type): New.
7527 (max_precision_type): Takes two types as arguments.
7528 (precision_for_value): New.
7529 (precision_for_interval): New.
7530 (gcc_type_for_interval): New.
7531 (gcc_type_for_value): New.
7532 (gcc_type_for_clast_term): New.
7533 (gcc_type_for_clast_red): New.
7534 (gcc_type_for_clast_bin): New.
7535 (gcc_type_for_clast_expr): Split up into several functions.
7536 (gcc_type_for_clast_eq): Rewritten.
7537 (compute_bounds_for_level): New.
7538 (compute_type_for_level_1): New.
7539 (compute_type_for_level): New.
7540 (gcc_type_for_cloog_iv): Removed.
7541 (gcc_type_for_iv_of_clast_loop): Rewritten.
7542 (graphite_create_new_loop): Compute the lower and upper bound types
7543 with gcc_type_for_clast_expr.
7544 (graphite_create_new_loop_guard): Same.
7545 (find_cloog_iv_in_expr): Removed.
7546 (compute_cloog_iv_types_1): Removed.
7547 (compute_cloog_iv_types): Removed.
7548 (gloog): Do not call compute_cloog_iv_types.
7549 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
7551 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
7552 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
7553 (GBB_CLOOG_IV_TYPES): Removed.
7555 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7557 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
7558 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
7559 (detect_commutative_reduction): Same.
7561 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7563 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
7564 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
7566 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
7567 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
7568 (rewrite_commutative_reductions_out_of_ssa): Same.
7569 * passes.c (execute_function_todo): Call verify_ssa for every pass
7570 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
7571 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
7572 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
7573 with an extra argument.
7574 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
7575 verify_ssa only when the extra argument is true.
7576 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
7577 with an extra argument.
7578 (tree_transform_and_unroll_loop): Same.
7580 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7582 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
7583 for all the passes of the LNO having LOOP_CLOSED_SSA.
7584 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
7585 * tree-loop-distribution.c (pass_loop_distribution): Same.
7586 * tree-pass.h (TODO_verify_loops): Removed.
7587 * tree-ssa-loop.c (pass_tree_loop_init): Same.
7589 (pass_tree_unswitch): Same.
7590 (pass_predcom): Same.
7591 (pass_vectorize): Same.
7592 (pass_linear_transform): Same.
7593 (pass_graphite_transforms): Same.
7594 (pass_iv_canon): Same.
7595 (pass_complete_unroll): Same.
7596 (pass_complete_unrolli): Same.
7597 (pass_parallelize_loops): Same.
7598 (pass_loop_prefetch): Same.
7599 (pass_iv_optimize): Same.
7601 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
7604 * passes.c (init_optimization_passes): Move pass_lim before
7605 pass_copy_prop and pass_dce_loop.
7607 2010-04-06 Jakub Jelinek <jakub@redhat.com>
7610 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
7611 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
7612 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
7613 MULTI_* defines for 4 argument vpermil2p* builtins.
7615 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
7617 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
7618 * config/i386/i386.c (x86_maybe_negate_const_int): New.
7619 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
7620 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
7621 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
7622 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
7623 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
7624 Use x86_maybe_negate_const_int to output insn mnemonic.
7625 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
7626 check from instruction predicate. Update comments.
7627 * config/i386/sync.md (sync_add<mode>): Use
7628 x86_maybe_negate_const_int to output insn mnemonic.
7630 2010-04-06 Jan Hubicka <jh@suse.cz>
7632 PR tree-optimization/42906
7633 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
7634 IGNORE_SELF argument. Set visited_control_parents for fully
7636 (find_obviously_necessary_stmts): Update call of
7637 mark_control_dependent_edges_necessary.
7638 (propagate_necessity): Likewise. Handle PHI edges more curefully.
7640 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
7642 * config/i386/i386.md: Remove comment about 'e' and 'E'
7645 2010-04-06 Richard Guenther <rguenther@suse.de>
7647 PR tree-optimization/43627
7648 * tree-vrp.c (extract_range_from_unary_expr): Widenings
7649 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
7652 2010-04-06 Jakub Jelinek <jakub@redhat.com>
7654 * BASE-VER: Change to 4.6.0.
7657 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
7660 2010-04-06 Richard Guenther <rguenther@suse.de>
7663 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
7665 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7667 * doc/invoke.texi (Optimize Options): Document that LTO
7668 won't remove object access purely due to incompatible
7671 2010-04-04 Matthias Klose <doko@ubuntu.com>
7673 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
7674 Initialize variable.
7676 2010-04-03 Richard Guenther <rguenther@suse.de>
7679 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
7680 require a non-NULL MEM_OFFSET.
7682 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
7684 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
7685 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
7686 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
7687 config/alpha/predicates.md, config/arm/arm.md,
7688 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
7689 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
7690 config/darwin9.h, config/darwin.c, config/darwin.h,
7691 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
7692 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
7693 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
7694 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
7695 config/mips/mips.md, config/mn10300/mn10300.c,
7696 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
7697 config/rs6000/aix.h, config/rs6000/dfp.md,
7698 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
7699 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
7700 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
7701 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
7702 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
7703 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
7704 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
7705 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
7706 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
7707 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
7708 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
7709 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
7710 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
7711 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
7712 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
7713 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
7714 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
7715 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
7716 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
7717 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
7718 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
7719 opt-functions.awk, opth-gen.awk, params.def, passes.c,
7720 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
7721 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
7722 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
7723 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
7724 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
7725 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
7726 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
7727 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
7728 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7729 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
7730 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
7731 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
7732 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
7733 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
7735 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7738 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
7739 * aclocal.m4: Regenerate.
7741 2010-04-02 Richard Guenther <rguenther@suse.de>
7743 PR tree-optimization/43629
7744 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
7745 if we have seen a constant value.
7747 2010-04-02 Joseph Myers <joseph@codesourcery.com>
7749 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
7751 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
7754 * arm.c (legitimize_tls_address): Adjust call to
7755 gen_tls_load_dot_plus_four.
7756 (arm_note_pic_base): New function.
7757 (arm_cannot_copy_insn_p): Use it.
7758 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
7761 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7766 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7768 * Makefile.in ($(out_object_file)): Depend on
7769 gt-$(basename $(notdir $(out_file))).h.
7771 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
7773 * config.gcc (lm32-*-rtems*): Add t-lm32.
7775 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
7777 * config.gcc: Add lm32-*-rtems*.
7778 * config/lm32/rtems.h: New file.
7780 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
7783 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
7785 2010-04-01 Jakub Jelinek <jakub@redhat.com>
7787 * dwarf2out.c (output_compilation_unit_header): For
7788 -gdwarf-4 use version 4 instead of version 3.
7789 (output_line_info): For version 4 and above emit additional
7790 maximum ops per insn header field.
7791 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
7793 * dwarf2out.c (is_c_family, is_java): Remove.
7794 (lower_bound_default): New function.
7795 (add_bound_info, gen_descr_array_type_die): Use it.
7797 2010-04-01 Dodji Seketeli <dodji@redhat.com>
7800 * dwarf2out.c (gen_variable_die): Allow debug info for variable
7801 re-declaration when it happens in a function.
7803 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
7805 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
7806 (cgraph_remove_function_insertion_hook): Same.
7807 (cgraph_call_function_insertion_hooks): Same.
7809 2010-04-01 Richard Guenther <rguenther@suse.de>
7812 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
7813 and TREE_THIS_VOLATILE.
7814 (copy_ref_info): Likewise.
7815 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
7816 * tree.c (build6_stat): Ignore side-effects of all but arg5
7817 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
7820 2010-04-01 Richard Guenther <rguenther@suse.de>
7822 PR tree-optimization/43607
7823 * ipa-type-escape.c (check_call): Do not access non-existing
7826 2010-04-01 Richard Guenther <rguenther@suse.de>
7830 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
7831 Jack Howarth <howarth@bromo.med.uc.edu>
7833 * tree-profile.c (tree_init_ic_make_global_vars): Make static
7836 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7838 * doc/install.texi (Prerequisites): Document libelf usability on
7839 IRIX 5/6 and Solaris 2.
7840 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
7841 Update GNU as, GNU ld requirements.
7842 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
7843 Document Sun Studio compiler download.
7844 Update and simplify as, ld recommendations.
7845 (Specific, *-*-solaris2.7): Note obsoletion, removal.
7847 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7849 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
7850 with_tune_32 to pentium4.
7852 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
7854 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
7856 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7858 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
7859 obsoletion, removal.
7861 Document GNU as requirement.
7862 Update configure requirements.
7863 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
7864 Recomment IRIX 6.5.18+.
7865 Document IDF/IDL requirement.
7866 Document GNU as requirement.
7867 Document GNU ld bootstrap failure.
7868 Remove freeware.sgi.com reference.
7870 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7872 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
7873 UNIX V4.0, V5.0 obsoletion, removal.
7874 Remove --with-gc=simple reference.
7875 Update VM requirements during bootstrap.
7876 Remove -oldas bootstrap description.
7877 Update binutils reference.
7878 Remove comparison failure note.
7880 2010-03-31 Richard Guenther <rguenther@suse.de>
7881 Zdenek Dvorak <ook@ucw.cz>
7882 Sebastian Pop <sebastian.pop@amd.com>
7885 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
7886 with multiple arguments.
7887 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
7889 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7891 * graphite-dependences.c (print_pddr): Call print_pdr with an
7893 * graphite-poly.c (debug_pdr): Add an extra argument for the
7896 (print_pbb_domain): Same.
7898 (print_scop_context): Same.
7900 (print_cloog): Same.
7901 (debug_pbb_domain): Same.
7905 (debug_scop_context): Same.
7907 (debug_cloog): Same.
7908 (print_scop_params): Same.
7909 (debug_scop_params): Same.
7910 (print_iteration_domain): Same.
7911 (print_iteration_domains): Same.
7912 (debug_iteration_domain): Same.
7913 (debug_iteration_domains): Same.
7914 (print_scattering_function): Same.
7915 (print_scattering_functions): Same.
7916 (debug_scattering_function): Same.
7917 (debug_scattering_functions): Same.
7918 * graphite-poly.h (debug_pdr): Update declaration.
7920 (print_pbb_domain): Same.
7922 (print_scop_context): Same.
7924 (print_cloog): Same.
7925 (debug_pbb_domain): Same.
7929 (debug_scop_context): Same.
7931 (debug_cloog): Same.
7932 (print_scop_params): Same.
7933 (debug_scop_params): Same.
7934 (print_iteration_domain): Same.
7935 (print_iteration_domains): Same.
7936 (debug_iteration_domain): Same.
7937 (debug_iteration_domains): Same.
7938 (print_scattering_function): Same.
7939 (print_scattering_functions): Same.
7940 (debug_scattering_function): Same.
7941 (debug_scattering_functions): Same.
7943 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7945 * graphite-poly.c (print_scattering_function_1): New.
7946 (print_scattering_function): Call it.
7947 (print_scop_params): Remove spaces at the end of lines.
7950 * graphite-poly.h (print_cloog): Declared.
7951 (debug_cloog): Declared.
7953 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7955 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
7957 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
7958 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
7959 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
7960 to switch between adding the IV bump in loop->latch or in loop->header.
7962 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7964 * graphite-poly.c (print_scattering_function): Pretty print following
7967 (print_pbb_domain): Same.
7968 (dump_gbb_cases): Same.
7969 (dump_gbb_conditions): Same.
7972 (print_scop_params): Same.
7973 (print_scop_context): Same.
7975 (print_pbb_body): New.
7976 (lst_indent_to): New.
7977 (print_lst): Start new lines with a #.
7978 * graphite-poly.h (pbb_bb): New.
7979 (pbb_index): Use pbb_bb.
7980 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
7982 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
7984 2010-03-31 Jakub Jelinek <jakub@redhat.com>
7986 * dwarf2out.c (size_of_die): For -gdwarf-4 use
7987 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
7988 and 0 instead of 1 for dw_val_class_flag.
7989 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
7990 dw_val_class_range_list, dw_val_class_loc_list,
7991 dw_val_class_lineptr and dw_val_class_macptr, use
7992 DW_FORM_flag_present for dw_val_class_flag and
7993 DW_FORM_exprloc for dw_val_class_loc.
7994 (output_die): For -gdwarf-4 print dw_val_class_loc
7995 size as uleb128 instead of 1 or 2 bytes and don't print
7996 anything for dw_val_class_flag.
7998 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
7999 instead of cselib_lookup following by tweaking locs->setting_insn.
8002 * cselib.c (cselib_process_insn): Clear cselib_current_insn
8003 even before returning from label, setjmp call or volatile asm
8006 2010-03-31 Richard Guenther <rguenther@suse.de>
8009 * cgraphunit.c (cgraph_output_in_order): Do not allocate
8010 temporary data on stack.
8012 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8014 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
8015 (PUSHSECTION_ASM_OP): Remove.
8016 (POPSECTION_ASM_OP): Remove.
8017 (PUSHSECTION_FORMAT): Remove.
8018 * config/sol2.h (PUSHSECTION_FORMAT): Define.
8019 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
8020 * config/sol2.c (solaris_output_init_fini): Use it.
8022 2010-03-31 Jie Zhang <jie@codesourcery.com>
8025 * opt-functions.awk (var_type_struct): Use signed char type
8026 for simple variables.
8028 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8030 * config/sol2.c: Include output.h.
8031 (solaris_assemble_visibility): New function.
8032 * config/t-sol2 (sol2.o): Add output.h dependency.
8033 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
8034 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
8037 2010-03-31 Jakub Jelinek <jakub@redhat.com>
8040 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
8041 V2SImode or XFmode on PRE_DEC.
8044 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
8047 2010-03-31 Jie Zhang <jie@codesourcery.com>
8050 * reload.h (caller_save_initialized_p): Declare.
8051 * toplev.c (backend_init_target): Don't call
8052 init_caller_save but set caller_save_initialized_p to false.
8053 * caller-save.c (caller_save_initialized_p): Define.
8054 (init_caller_save): Check caller_save_initialized_p.
8055 * ira.c (ira): Call init_caller_save if flag_caller_saves.
8057 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8060 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
8061 and soft-fp/t-softfp to tmake_file.
8062 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
8063 (LIBGCC2_TF_CEXT): Define.
8066 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
8069 * cselib.c (n_useless_values): Document handling of debug locs.
8070 (n_useless_debug_values, n_debug_values): New variables.
8071 (new_elt_loc_list): Don't add to debug values, keep count.
8072 (promote_debug_loc): New.
8073 (cselib_reset_table): Zero new variables.
8074 (entry_and_rtx_equal_p): Promote debug locs.
8075 (discard_useless_locs): Increment n_useless_debug_values for
8077 (remove_useless_values): Adjust n_useless_values and n_debug_values
8078 with n_useless_debug_values.
8079 (add_mem_for_addr): Promote debug locs.
8080 (cselib_lookup_mem): Likewise.
8081 (cselib_lookup_addr): Renamed to...
8082 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
8083 (cselib_log_lookup): ... this. Turn into...
8084 (cselib_lookup_addr): ... new wrapper.
8085 (cselib_lookup_from_insn): New.
8086 (cselib_invalidate_regno): Increment n_useless_debug_values for
8088 (cselib_invalidate_mem): Likewise.
8089 (cselib_process_insn): Take n_deleted and n_debug_values into
8090 account to guard remove_useless_value call.
8091 (cselib_finish): Zero n_useless_debug_values.
8092 * cselib.h (cselib_lookup_from_insn): Declare.
8093 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
8094 (sched_analyze_2): Likewise.
8096 2010-03-30 Jakub Jelinek <jakub@redhat.com>
8098 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
8100 (adjust_mems): Replace narrowing SUBREG of expression containing
8101 just PLUS, MINUS, MULT and ASHIFT of registers and constants
8102 with operations in the narrower mode.
8105 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
8106 regs_invalidated_by_call instead all call_used_reg_set registers.
8108 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
8111 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
8112 pointer comparisons with types_compatible_p.
8113 * tree-vect-stmts.c (vectorizable_call): Same.
8114 (vectorizable_condition): Same.
8116 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8118 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
8119 stack check if the mask would be zero.
8121 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
8122 Jack Howarth <howarth@bromo.med.uc.edu>
8124 * tree-profile.c (tree_init_ic_make_global_vars): Make static
8127 2010-03-30 Joseph Myers <joseph@codesourcery.com>
8130 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
8132 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
8133 Include ___unordxf2 and ___unordtf2.
8134 * config/i386/libgcc-glibc.ver: Do not define inheritance from
8137 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
8139 * config/lm32/t-lm32: New file.
8140 * config.gcc: Use the above file when targetting lm32.
8142 2010-03-28 Duncan Sands <baldrick@free.fr>
8144 * Makefile.in (PLUGIN_HEADERS): Add except.h.
8146 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
8149 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
8150 Improve vectorization cost model diagnostic.
8152 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
8155 * tree-vect-data-refs.c (vect_analyze_data_refs): When
8156 compute_data_dependences_for_loop returns false, early exit
8157 and output an extra diagnostic for the failed data reference
8160 2010-03-29 Richard Guenther <rguenther@suse.de>
8162 PR tree-optimization/43560
8163 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
8164 (can_sm_ref_p): Treat stores to readonly locations as trapping.
8166 2010-03-29 Jie Zhang <jie@codesourcery.com>
8169 * toplev.c (process_options): Set optimization_default_node
8170 and optimization_current_node.
8171 * opts.c (decode_options): Don't set optimization_default_node
8172 and optimization_current_node.
8174 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
8176 * config/rtems.h: Abandon -qrtems_debug.
8178 2010-03-28 Jan Hubicka <jh@suse.cz>
8180 PR tree-optimization/43505
8181 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
8182 map should not be copied.
8184 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8187 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
8188 cdtors, set DECL_PRESERVE_P.
8189 * ipa.c (cgraph_externally_visible_p): Return true if declaration
8192 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
8194 PR tree-optimization/43528
8195 * stor-layout.c (place_field): Check that constant fits into
8196 unsigned HWI when skipping calculation of MS bitfield layout.
8198 2010-03-27 Jan Hubicka <jh@suse.cz>
8201 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
8202 notice_global_symbol work.
8204 2010-03-27 Jakub Jelinek <jakub@redhat.com>
8206 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
8207 instead of dwarf2out_decl.
8208 (struct var_loc_node): Remove section_label field.
8209 (dwarf2out_function_decl): New function.
8210 (dwarf2out_var_location): Don't set section_label field.
8211 (dwarf2out_begin_function): Don't empty decl_loc_table here.
8213 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8215 PR tree-optimization/43544
8216 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
8217 First argument for builtin vectorized function hook is now a
8218 tree to be able to distinguish between machine specific and
8220 * targhooks.c (default_builtin_vectorized_function): Ditto.
8221 * targhooks.h (default_builtin_vectorized_function): Ditto.
8222 * target.h (struct gcc_target): Ditto.
8223 * tree-vect-stmts.c (vectorizable_function): Ditto.
8224 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
8225 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8228 2010-03-26 Joseph Myers <joseph@codesourcery.com>
8231 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
8232 nested binding iff it is a FUNCTION_DECL.
8233 (store_parm_decls_newstyle): Pass nested=true to bind for
8234 FUNCTION_DECLs amongst parameters.
8236 2010-03-26 Jakub Jelinek <jakub@redhat.com>
8238 * var-tracking.c (vt_expand_loc_callback): Don't run
8239 cselib_expand_value_rtx_cb in dummy mode if
8240 cselib_dummy_expand_value_rtx_cb returned false.
8242 * var-tracking.c (emit_note_insn_var_location): For one part
8243 notes with offset 0, don't add EXPR_LIST around the location.
8244 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
8245 add_location_or_const_value_attribute): Adjust for that change.
8248 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
8249 into first operand and location into second.
8250 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
8251 dw_cfi_oprnd_loc for DW_CFA_expression.
8252 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
8253 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
8254 assume first argument is regnum and second argument is location.
8256 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
8259 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
8260 of scratch register to DImode. Split to DImode comparison operator.
8261 Use SImode subreg of scratch register in the multiplication.
8262 (*cmp_sadd_sidi): Ditto.
8263 (*cmp_ssub_si): Ditto.
8264 (*cmp_ssub_sidi): Ditto.
8266 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
8269 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
8270 Remove invalid assert and wrong comment.
8272 2010-03-26 Jakub Jelinek <jakub@redhat.com>
8275 * flags.h (final_insns_dump_p): New extern.
8276 * final.c (final_insns_dump_p): New variable.
8277 (rest_of_clean_state): Set it before -fdump-final-insns=
8278 dumping, clear afterwards.
8279 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
8280 MEM_ALIAS_SET on MEMs.
8282 2010-03-26 David S. Miller <davem@davemloft.net>
8284 * configure.ac: Fix sparc GOTDATA_OP bug check.
8285 * configure: Rebuild.
8287 2010-03-26 Alan Modra <amodra@gmail.com>
8289 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
8291 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8293 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
8294 TLS_SECTION_ASM_FLAG.
8296 2010-03-25 Jakub Jelinek <jakub@redhat.com>
8299 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
8300 Clear first_function_block_is_cold.
8303 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
8304 argument if the argument is truth_value_p.
8306 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8308 * config/rs6000/constraints.md: Update copyright year for my changes.
8311 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
8312 used in reg+reg addressing, swap registers.
8314 2010-03-24 Jakub Jelinek <jakub@redhat.com>
8317 * target.h (struct gcc_target): Add code_end hook.
8318 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
8320 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
8321 * toplev.c (compile_file): Call targetm.asm_out.code_end
8322 hook before unwind info/debug info output.
8323 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
8324 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
8325 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8326 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
8327 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8328 * config/i386/i386.c (ix86_file_end): Renamed to...
8329 (ix86_code_end): ... this. Make static. Don't call
8330 file_end_indicate_exec_stack. Emit unwind info using
8331 final_start_function/final_end_function.
8332 (darwin_x86_file_end): Remove.
8333 (TARGET_ASM_CODE_END): Define.
8334 * config/i386/i386.h (TARGET_ASM_FILE_END,
8335 NEED_INDICATE_EXEC_STACK): Don't define.
8336 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
8337 (TARGET_ASM_FILE_END): Define to darwin_file_end.
8338 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
8339 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
8342 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
8343 at the beginning and final_end_function at the end.
8344 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8346 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8348 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
8349 and Sun as TLS syntax.
8350 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
8351 * configure: Regenerate.
8352 * config.in: Regenerate.
8353 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
8354 (default_elf_asm_named_section): Use it.
8355 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
8356 (i386_output_dwarf_dtprel): Likewise.
8357 (output_addr_const_extra): Likewise.
8358 (output_pic_addr_const): Lowercase @GOTTPOFF.
8359 (output_addr_const_extra): Likewise.
8360 (output_pic_addr_const): Lowercase @GOTNTPOFF.
8361 (output_addr_const_extra): Likewise.
8362 (output_pic_addr_const): Lowercase @INDNTPOFF.
8363 (output_addr_const_extra): Likewise.
8364 (output_pic_addr_const): Lowercase @NTPOFF.
8365 (output_addr_const_extra): Likewise.
8366 (output_pic_addr_const): Lowercase @TPOFF.
8367 (output_addr_const_extra): Likewise.
8368 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
8369 (*tls_global_dynamic_64): Likewise.
8370 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
8371 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
8373 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
8374 (ASM_OUTPUT_TLS_COMMON): Use it.
8375 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
8378 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
8379 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
8380 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
8381 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
8382 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8383 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
8385 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8387 * config/i386/i386.c (override_options): Don't accept
8388 -mtls-dialect=sun any longer.
8389 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
8390 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
8391 (*tls_local_dynamic_base_32_sun): Likewise.
8392 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8394 2010-03-24 Jakub Jelinek <jakub@redhat.com>
8397 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
8398 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
8401 * ira.c (adjust_cleared_regs): New function.
8402 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
8406 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
8408 * expr.c (expand_expr_real): Restore previous
8409 curr_insn_source_location and curr_insn_block after
8410 expand_expr_real_1 call.
8411 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
8412 instead of expand_expr_real_1.
8414 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
8416 PR rtl-optimization/43413
8417 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
8420 2010-03-22 James E. Wilson <wilson@codesourcery.com>
8423 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
8424 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
8426 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
8428 * config/i386/i386.c (ix86_target_string): Add -mfma.
8429 Fix a typo in comment.
8431 2010-03-22 Mike Stump <mikestump@comcast.net>
8434 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
8435 Don't overly align based upon packed packed fields.
8437 2010-03-22 Jason Merrill <jason@redhat.com>
8439 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
8440 Use () rather than [], and move before the element type.
8442 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8444 * doc/configfiles.texi (Configuration Files): Removed
8445 fixinc/Makefile*, intl/Makefile.*.
8446 * doc/makefile.texi: Fixed markup. Abstract from version
8447 control system used.
8448 (Makefile): Removed obsolete gcc/java/parse.y example.
8449 * doc/sourcebuild.texi: Likewise.
8450 (Top Level): Added config, gnattools, libdecnumber, libgcc,
8451 libgomp, libssp. Removed fastjar.
8452 (Miscellaneous Docs): Clarify location.
8453 Added COPYING3, COPYING3.LIB.
8454 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
8456 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8459 * config/i386/i386.c (x86_function_profiler)
8460 [!NO_PROFILE_COUNTERS]: Fix typo.
8461 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
8464 2010-03-22 Janis Johnson <janis187@us.ibm.com>
8465 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8467 * doc/sourcebuild.texi (Test Directives): Split into six
8468 subsections, with most of the current text in new subsections
8469 Directives, Selectors, and Final Actions.
8470 (Directives): Split list of test directives into multiple
8472 (Selectors): Describe use and syntax of selectors.
8473 (Effective-Target Keywords): Describe all existing keywords.
8474 (Add Options): Describe features for dg-add-options.
8475 (Require Support): Describe variants of dg-require-support.
8476 (Final Actions): Describe commands to use in dg-final.
8478 2010-03-22 Michael Matz <matz@suse.de>
8481 * recog.c (validate_replace_rtx_group): Replace also in
8482 REG_EQUAL and REG_EQUIV notes.
8484 2010-03-22 Richard Guenther <rguenther@suse.de>
8486 PR tree-optimization/43390
8487 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
8488 sure vector extracts are type correct.
8490 2010-03-22 Richard Guenther <rguenther@suse.de>
8493 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
8494 x * sqrt (x) even when optimizing for size if the target
8495 has native support for sqrt.
8497 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8499 * varasm.c (make_decl_rtl_for_debug): Also clear
8500 flag_mudflap for the duration of make_decl_rtl call.
8503 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
8504 locs from preserved VALUEs.
8506 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8509 * pa.md (movmemsi): Set align to one if zero.
8510 (movmemdi): Likewise.
8512 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
8515 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
8516 with their corresponding prologue pushes.
8518 2010-03-20 Andrew Pinski <pinskia@gmail.com>
8521 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
8522 at the begining or end.
8523 (spu_expand_epilogue): Likewise.
8525 2010-03-20 Richard Guenther <rguenther@suse.de>
8527 PR rtl-optimization/43438
8528 * combine.c (make_extraction): Properly zero-/sign-extend an
8529 extraction of the low part of a CONST_INT. Also handle
8532 2010-03-19 Mike Stump <mikestump@comcast.net>
8534 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
8535 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
8536 (override_options): Use SUBTARGET32_DEFAULT_CPU.
8538 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
8541 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
8544 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
8546 PR rtl-optimization/42258
8547 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
8548 use that may match DEF.
8551 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
8552 the cost of loading the constant rather than assuming
8554 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
8555 outer code is AND, do the same tests as the andsi3 expander and
8556 return COSTS_N_INSNS (1) if and is cheap.
8558 * optabs.c (avoid_expensive_constant): Fix formatting.
8560 2010-03-19 Michael Matz <matz@suse.de>
8563 * attribs.c (decl_attributes): When rebuilding a function pointer
8564 type use the same qualifiers as the original pointer type.
8566 2010-03-19 Martin Jambor <mjambor@suse.cz>
8568 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
8569 and is_gimple_ip_invariant_address.
8571 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8574 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8576 * config/arm/arm.c (arm_override_options): Turn off
8577 flag_dwarf2_cfi_asm for AAPCS variants.
8579 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8582 * config/arm/arm.c (emit_multi_reg_push): Update comments.
8583 Use PRE_MODIFY instead of PRE_DEC.
8584 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
8585 (vfp_emit_fstmd): Likewise.
8587 2010-03-19 Michael Matz <matz@suse.de>
8590 * builtins.c (expand_builtin_interclass_mathfn,
8591 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
8594 2010-03-19 Richard Guenther <rguenther@suse.de>
8596 PR tree-optimization/43415
8597 * tree-ssa-pre.c (phi_translate): Split out worker to ...
8598 (phi_translate_1): ... this.
8599 (phi_translate): Move all caching here. Cache all NARY
8600 and REFERENCE translations.
8602 2010-03-19 David S. Miller <davem@davemloft.net>
8604 With help from Eric Botcazou.
8605 * config/sparc/sparc.c: Include dwarf2out.h.
8606 (emit_pic_helper): Delete.
8607 (pic_helper_symbol_name): Delete.
8608 (pic_helper_emitted_p): Delete.
8609 (pic_helper_needed): New.
8610 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
8611 (get_pc_thunk_name): New.
8612 (load_pic_register): Remove 'delay_pic_helper' arg. Use
8613 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
8614 Set pic_helper_needed to true. Don't call emit_pic_helper.
8615 (sparc_expand_prologue): Update load_pic_register call.
8616 (sparc_output_mi_thunk): Likewise.
8617 (sparc_file_end): Emit a hidden comdat symbol for the PIC
8618 thunk if possible. Output CFI information as needed.
8620 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8621 Jack Howarth <howarth@bromo.med.uc.edu>
8624 * config/i386/i386.h: Fix ABI on darwin x86-32.
8626 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
8628 * tree.h: Declare make_decl_rtl_for_debug.
8629 * varasm.c (make_decl_rtl_for_debug): New.
8630 * dwarf2out.c (rtl_for_decl_location): Call it.
8631 * cfgexpand.c (expand_debug_expr): Call it.
8633 2010-03-18 Jakub Jelinek <jakub@redhat.com>
8636 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
8640 * var-tracking.c (vt_init_cfa_base): Do nothing if
8641 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
8643 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
8646 * var-tracking.c (canonicalize_vars_star): New.
8647 (dataflow_post_merge_adjust): Use it.
8649 2010-03-18 Jakub Jelinek <jakub@redhat.com>
8652 * var-tracking.c (non_suitable_const): New function.
8653 (add_uses): For DEBUG_INSNs with constants, don't record any
8654 value, instead just the constant value itself.
8655 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
8656 is not VAR_LOC_UNKNOWN_P, set var to the constant.
8657 (emit_notes_in_bb): Likewise.
8658 (emit_note_insn_var_location): For onepart variables if
8659 cur_loc is a VOIDmode constant, use DECL_MODE.
8661 2010-03-18 Martin Jambor <mjambor@suse.cz>
8664 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
8665 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
8666 all non-clones. Moved call redirection...
8667 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
8668 (cgraph_materialize_all_clones): Dispose of all
8669 combined_args_to_skip bitmaps.
8670 (verify_cgraph_node): Do not check for edges pointing to wrong
8671 nodes in inline clones.
8672 * tree-inline.c (copy_bb): Call
8673 cgraph_redirect_edge_call_stmt_to_callee.
8674 * ipa.c (cgraph_remove_unreachable_nodes): Call
8675 cgraph_node_remove_callees even when there are used clones.
8677 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8679 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
8681 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8684 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
8687 2010-03-18 Michael Matz <matz@suse.de>
8690 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
8691 into sqrt(x) if we need to preserve signed zeros.
8693 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
8694 Eric Botcazou <ebotcazou@adacore.com>
8696 PR rtl-optimization/43360
8697 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
8698 note if we don't know its invariant status.
8700 2010-03-18 Michael Matz <matz@suse.de>
8702 PR tree-optimization/43402
8703 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
8704 PHI chains of ssa names registered for update.
8706 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
8709 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
8710 non-offsettable and pre_modify update addressing.
8711 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
8712 and "2" alternatives "#".
8713 (*movdd_softfloat32): Make all alternatives "#";
8714 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
8715 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
8716 (*movdf_softfloat32): Make all alternatives "#";
8717 (movdi): Use the new DIFD mode iterator to create a common splitter
8718 for movdi, movdf and movdd patterns.
8720 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
8722 * common.opt (dumpdir): Remove redundant tab.
8724 2010-03-17 Martin Jambor <mjambor@suse.cz>
8726 PR tree-optimization/43347
8727 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
8728 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
8730 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
8732 PR rtl-optimization/42216
8733 * regrename.c (create_new_chain): New function, broken out from...
8734 (scan_rtx_reg): ... here. Call it. Handle the case where we are
8735 appending a use to an empty chain.
8736 (build_def_use): Remove previous changes that convert OP_INOUT to
8737 OP_OUT operands; instead detect the case where an OP_INOUT operand
8738 uses a previously untracked register and create an empty chain for it.
8740 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8742 * doc/extend.texi (Function Attributes): Rewrite unfinished
8743 sentence in ms_abi documentation.
8745 2010-03-17 Alan Modra <amodra@gmail.com>
8747 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
8748 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
8749 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
8750 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
8752 2010-03-16 Richard Henderson <rth@redhat.com>
8755 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
8756 (lower_try_finally): Save and restore eh_seq around the expansion
8759 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
8761 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
8762 statements before splitting block.
8764 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8766 * doc/sourcebuild.texi (Testsuites): Fix markup.
8767 Use pathnames relative to gcc/testsuite.
8768 (Test Directives): Move description of how timeout is determined.
8769 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
8770 (C Tests): Correct gcc.misc-tests directory.
8771 Framework tests now live in gcc.test-framework.
8773 2010-03-16 Richard Guenther <rguenther@suse.de>
8776 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
8777 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
8779 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
8780 Alexandre Oliva <aoliva@redhat.com>
8782 PR tree-optimization/42917
8783 * lambda-code.c (remove_iv): Skip debug statements.
8784 (lambda_loopnest_to_gcc_loopnest): Likewise.
8785 (not_interesting_stmt): Debug statements are not interesting.
8787 2010-03-16 Jakub Jelinek <jakub@redhat.com>
8791 * cselib.c (cselib_preserve_constants,
8792 cfa_base_preserved_val): New static variables.
8793 (preserve_only_constants): New function.
8794 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
8795 clear its REG_VALUES. If cselib_preserve_constants, don't
8796 empty the whole hash table, but preserve there VALUEs with constants,
8797 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
8798 (cselib_preserve_cfa_base_value): New function.
8799 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
8800 (cselib_init): Change argument to int bitfield. Set
8801 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
8803 (cselib_finish): Clear cselib_preserve_constants and
8804 cfa_base_preserved_val.
8805 * cselib.h (enum cselib_record_what): New enum.
8806 (cselib_init): Change argument to int.
8807 (cselib_preserve_cfa_base_value): New prototype.
8808 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
8809 * dse.c (dse_step1): Likewise.
8810 * cfgcleanup.c (thread_jump): Likewise.
8811 * sched-deps.c (sched_analyze): Likewise.
8812 * gcse.c (local_cprop_pass): Likewise.
8813 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
8814 If FN is non-NULL, call the callback always and whenever it returns
8815 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
8816 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
8817 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
8818 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
8819 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
8820 * var-tracking.c: Include recog.h.
8821 (bb_stack_adjust_offset): Remove.
8822 (vt_stack_adjustments): Don't call it, instead just gather the
8823 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
8824 (adjust_stack_reference): Remove.
8825 (compute_cfa_pointer): New function.
8826 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
8827 (struct adjust_mem_data): New type.
8828 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
8830 (get_address_mode): New function.
8831 (replace_expr_with_values): Use it.
8832 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
8833 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
8834 (adjust_sets): Remove.
8835 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
8836 Use get_address_mode.
8837 (get_adjusted_src): Remove.
8838 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
8839 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
8840 (add_with_sets): Don't call adjust_sets.
8841 (fp_setter, vt_init_cfa_base): New functions.
8842 (vt_initialize): Change return type to bool. Move most of pool etc.
8843 initialization to the beginning of the function from end. Pass
8844 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
8845 If !frame_pointer_needed, call vt_stack_adjustment before mos
8846 vector is filled, call vt_init_cfa_base if argp/framep has been
8847 eliminated to sp. If frame_pointer_needed and argp/framep has
8848 been eliminated to hard frame pointer, set
8849 hard_frame_pointer_adjustment and call vt_init_cfa_base after
8850 encountering fp setter in the prologue. For MO_ADJUST, call
8851 log_op_type before pusing the op into mos vector, not afterwards.
8852 Call adjust_insn before cselib_process_insn/add_with_sets,
8853 call cancel_changes (0) afterwards.
8854 (variable_tracking_main_1): Adjust for vt_initialize calling
8855 vt_stack_adjustments and returning whether it succeeded or not.
8857 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
8859 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
8862 2010-03-15 Jakub Jelinek <jakub@redhat.com>
8864 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
8866 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
8867 drap_reg has not been set.
8869 2010-03-15 Michael Matz <matz@suse.de>
8872 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
8873 use it to expand block copies.
8874 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8875 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
8876 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
8878 2010-03-15 Richard Guenther <rguenther@suse.de>
8880 PR tree-optimization/43367
8881 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
8884 2010-03-15 Richard Guenther <rguenther@suse.de>
8886 PR tree-optimization/43317
8887 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
8889 2010-03-15 Martin Jambor <mjambor@suse.cz>
8891 PR tree-optimization/43141
8892 * tree-sra.c (create_abstract_origin): New function.
8893 (modify_function): Call create_abstract_origin.
8895 2010-03-15 Chris Demetriou <cgd@google.com>
8897 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
8900 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8903 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
8904 call insert_out_of_ssa_copy for default definitions.
8906 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8908 * graphite-clast-to-gimple.c (my_long_long): Defined.
8909 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
8910 * graphite-sese-to-poly.c (my_long_long): Defined.
8911 (scop_ivs_can_be_represented): Use it.
8913 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8915 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
8916 graphite-max-bbs-per-function, and loop-block-tile-size.
8917 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
8919 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
8921 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8923 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
8924 forward declaration.
8925 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
8926 (add_upper_bounds_from_estimated_nit): New.
8927 (build_loop_iteration_domains): Use it.
8929 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8931 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
8933 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8936 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
8937 should be an INTEGER_CST. Also handle CASE_CONVERT.
8939 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8941 * graphite.c (graphite_initialize): To bound the number of bbs per
8942 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8943 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
8944 * doc/invoke.texi: Document it.
8946 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8948 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
8949 * graphite-sese-to-poly.h (build_poly_scop): Same.
8951 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8953 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
8954 the number of parameters in the scop. Use as an upper bound
8955 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
8956 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
8957 * doc/invoke.texi: Document it.
8959 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
8961 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
8962 * doc/c-tree.texi: Remove.
8963 * doc/generic.texi: Merge c-tree.texi here.
8964 * doc/gccint.texi (Trees): Remove menu entry.
8965 (c-tree.texi): Remove @include.
8966 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
8967 * doc/languages.texi (Reading RTL): Ditto.
8969 2010-03-12 Steve Ellcey <sje@cup.hp.com>
8972 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
8974 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8977 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
8978 code added to work around reload clobbering CONST insns.
8980 2010-03-12 Jakub Jelinek <jakub@redhat.com>
8982 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
8983 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
8984 (cselib_preserve_only_values): Remove retain argument, don't
8985 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
8986 * cselib.h (cselib_preserve_only_values): Remove retain argument.
8987 * var-tracking.c (micro_operation): Move insn field before union.
8988 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
8989 (struct variable_tracking_info_def): Remove n_mos field, change
8990 mos into a vector of micro_operations.
8991 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
8992 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
8993 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
8994 changing into a vector.
8995 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
8996 come before all other uops generated by add_stores.
8997 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
8999 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
9000 a vector. Run just one pass over the bbs instead of separate counting
9001 and computation phase.
9002 (vt_finalize): Free VTI (bb)->mos vector instead of array.
9005 * tree-inline.c (remap_decls): Put old_var rather than origin_var
9006 into *nonlocalized_list vector.
9007 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
9008 even if origin is non-NULL.
9009 (gen_variable_die): Likewise.
9010 (process_scope_var): Don't change origin.
9011 (gen_decl_die): Likewise.
9012 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
9013 before adding new edges instead of after it, fix moving over
9016 2010-03-11 David S. Miller <davem@davemloft.net>
9018 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
9020 * configure: Rebuild.
9022 2010-03-11 Martin Jambor <mjambor@suse.cz>
9024 PR tree-optimization/43257
9025 * tree.c (assign_assembler_name_if_neeeded): New function.
9026 (free_lang_data_in_cgraph): Assembler name assignment moved to the
9028 * tree.h (assign_assembler_name_if_neeeded): Declare.
9029 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
9030 the function if needed.
9032 2010-03-11 Chris Demetriou <cgd@google.com>
9034 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
9035 include/stdint-gcc.h, and include/stdint.h world-readable.
9037 2010-03-11 Richard Guenther <rguenther@suse.de>
9039 PR tree-optimization/43255
9040 * tree-vrp.c (process_assert_insertions_for): Do not insert
9041 asserts for trivial conditions.
9043 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9045 PR tree-optimization/43280
9046 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
9047 generation. Move calculation of size out of the if branch.
9048 (find_bswap): Modify compare number generation.
9050 2010-03-11 Richard Guenther <rguenther@suse.de>
9053 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
9054 (input_gimple_stmt): Fixup handled component types during
9055 operand read. Also fix up decls in ADDR_EXPRs.
9057 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
9059 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
9060 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
9062 2010-03-10 Jan Hubicka <jh@suse.cz>
9065 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
9066 * varasm.c (get_variable_section): Don't do that here...
9067 (make_decl_rtl): ... and here.
9068 (do_assemble_alias): Produce decl RTL.
9069 (assemble_alias): Likewise.
9071 2010-03-10 Jakub Jelinek <jakub@redhat.com>
9074 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
9075 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
9077 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
9078 (based_loc_descr): Only express drap or vdrap regno based expressions
9079 using DW_OP_fbreg when not optimizing.
9080 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
9081 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
9082 REG_CFA_SET_VDRAP note.
9084 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
9086 PR tree-optimization/43236
9087 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
9088 error in calculation of base address in reverse iteration case.
9089 (generate_builtin): Take number of latch executions if the statement
9092 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
9095 * tree-eh.c: Include pointer-set.h.
9096 (lower_eh_dispatch): Filter out duplicate case labels and
9097 remove the unneeded edge when the label is unused. Return
9098 true when some edges are removed.
9099 (execute_lower_eh_dispatch): When any lowering resulted in
9100 removing an edge, also delete unreachable blocks.
9102 2010-03-10 Jakub Jelinek <jakub@redhat.com>
9105 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9106 UNSPEC_MACHOPIC_OFFSET.
9108 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
9111 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
9112 (m68k_delegitimize_address): New function.
9114 2010-03-09 Jakub Jelinek <jakub@redhat.com>
9117 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
9120 * var-tracking.c (adjust_sets): New function.
9121 (count_with_sets, add_with_sets): Use it.
9122 (get_adjusted_src): New inline function.
9123 (add_stores): Use it.
9126 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
9127 call cselib_dummy_expand_value_rtx_cb instead of
9128 cselib_expand_value_rtx_cb.
9131 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
9132 * config/i386/i386.c: Include debug.h and dwarf2out.h.
9133 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
9134 and .cfi_endproc around the pic thunks.
9135 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
9136 all queued unwind info register saves are saved before the call.
9137 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
9138 considered as sp-=4 for unwind info and the pop as sp+=4 which
9139 also clobbers dest, but doesn't actually restore it.
9142 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
9143 RTX_FRAME_RELATED_P.
9145 2010-03-09 Jie Zhang <jie@codesourcery.com>
9147 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
9148 whitespaces in output template.
9150 2010-03-09 Jie Zhang <jie@codesourcery.com>
9152 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
9155 2010-03-08 Jakub Jelinek <jakub@redhat.com>
9157 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
9158 builtins.exp in a separate job.
9160 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9162 * graphite-sese-to-poly.c (add_param_constraints): Use
9163 lower_bound_in_type and upper_bound_in_type.
9165 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9167 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
9168 instead of unsigned_type_node.
9170 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9171 Reza Yazdani <reza.yazdani@amd.com>
9174 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
9175 on pointer type parameters.
9177 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9181 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
9182 handle conversions from pointer to integers.
9183 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
9184 induction variable, to be able to work with code generated by CLooG.
9185 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
9186 (build_poly_scop): Bail out if we cannot codegen a loop.
9188 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9190 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
9191 code generation with gloog_error.
9193 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9195 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
9196 Call fold_convert on all the returned values.
9197 (expand_scalar_variables_expr): Pass to
9198 expand_scalar_variables_ssa_name the type of the resulting expression.
9200 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9202 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
9203 ppl_min_for_le_pointset.
9204 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
9205 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
9207 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9209 * graphite-dependences.c (map_into_dep_poly): Removed.
9210 (dependence_polyhedron_1): Use combine_context_id_scat.
9212 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9214 * graphite-poly.h (struct poly_scattering): Add layout documentation.
9215 (struct poly_bb): Same.
9216 (combine_context_id_scat): New.
9218 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9221 * sese.c (name_defined_in_loop_p): Return false for default
9224 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9226 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
9227 and clean up the logic.
9229 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9231 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
9234 2010-03-08 Jakub Jelinek <jakub@redhat.com>
9236 * var-tracking.c (remove_cselib_value_chains): Define only for
9238 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
9239 delete_slot_part, emit_notes_for_differences_1): Don't call
9240 remove_cselib_value_chains here.
9241 (set_slot_part, emit_notes_for_differences_2): Don't call
9242 add_cselib_value_chains here.
9243 (preserved_values): New vector.
9244 (preserve_value): New function.
9245 (add_uses, add_stores, vt_add_function_parameters): Use it
9246 instead of cselib_preserve_value.
9247 (changed_values_stack): New vector.
9248 (check_changed_vars_0): New function.
9249 (check_changed_vars_1, check_changed_vars_2): Use it.
9250 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
9251 changed_values_stack VALUEs.
9252 (vt_emit_notes): For all preserved_values call
9253 add_cselib_value_chains. If ENABLE_CHECKING call
9254 remove_cselib_value_chains before verifying value_chains is empty.
9255 Initialize and free changed_values_stack.
9256 (vt_initialize): Initialize preserved_values.
9257 (vt_finalize): Free preserved_values.
9259 2010-03-08 Richard Guenther <rguenther@suse.de>
9261 PR tree-optimization/43269
9262 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
9265 2010-03-08 Martin Jambor <mjambor@suse.cz>
9267 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
9268 (ipa_is_param_called): Removed.
9269 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
9270 (ipa_print_node_params): Do not print the called flag.
9271 (ipa_write_node_info): Do not stream the called flag.
9272 (ipa_read_node_info): Likewise.
9274 2010-03-07 Jakub Jelinek <jakub@redhat.com>
9277 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
9278 * cselib.c (struct expand_value_data): Add dummy field.
9279 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
9281 (cselib_dummy_expand_value_rtx_cb): New function.
9282 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
9284 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
9285 * var-tracking.c: Include pointer-set.h.
9286 (variable): Change n_var_parts to char from int. Add
9287 cur_loc_changed and in_changed_variables fields.
9288 (variable_canonicalize): Remove.
9289 (shared_var_p): New inline function.
9290 (unshare_variable): Maintain cur_loc_changed and
9291 in_changed_variables fields. If var was in changed_variables,
9292 replace it there with new_var. Just copy cur_loc instead of
9293 resetting it to something else.
9294 (variable_union): Don't recompute cur_loc. Use shared_var_p.
9295 (dataflow_set_union): Don't call variable_canonicalize.
9296 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
9297 of their DEBUG_EXPR_TREE_DECLs.
9298 (canonicalize_loc_order_check): Verify that cur_loc is NULL
9299 and in_changed_variables and cur_loc_changed is false.
9300 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
9301 and cur_loc_changed. Don't update cur_loc here.
9302 (variable_merge_over_src): Don't call variable_canonicalize.
9303 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
9304 removing loc that is equal to cur_loc, clear cur_loc,
9305 set cur_loc_changed and ensure variable_was_changed is called.
9306 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
9307 compare pointers in cur_loc check, if it is equal to loc,
9308 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
9309 (variable_different_p): Remove compare_current_location argument,
9310 don't compare cur_loc.
9311 (dataflow_set_different_1): Adjust variable_different_p caller.
9312 (variable_was_changed): If dv had some var in changed_variables
9313 already, reset in_changed_variables flag for it and propagate
9314 cur_loc_changed over to the new variable. On empty var
9315 always set cur_loc_changed. Set in_changed_variables on whatever
9316 var is added to changed_variables.
9317 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
9318 Use shared_var_p. When removing loc that is equal to cur_loc,
9319 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
9320 end, don't set it to something else, just call variable_was_changed.
9321 (delete_slot_part): Use shared_var_p. When cur_loc equals to
9322 loc being removed, clear cur_loc and set cur_loc_changed.
9323 Set cur_loc_changed if all locations have been removed.
9324 (struct expand_loc_callback_data): New type.
9325 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
9326 allocated. Always create SUBREGs if simplify_subreg failed.
9327 Prefer to use cur_loc, when that fails and still in
9328 changed_variables (and seen first time) recompute it. Set
9329 cur_loc_changed of variables which had to change cur_loc and
9330 compute elcd->cur_loc_changed if any of the subexpressions used
9331 had to change cur_loc.
9332 (vt_expand_loc): Adjust to pass arguments in
9333 expand_loc_callback_data structure.
9334 (vt_expand_loc_dummy): New function.
9335 (emitted_notes): New variable.
9336 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
9337 that weren't used for any other decl in current
9338 emit_notes_for_changes call call vt_expand_loc_dummy to update
9339 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
9340 first loc_chain location if NULL before. Always use just
9341 cur_loc instead of first loc_chain location. When cur_loc_changed
9342 is false, when not --enable-checking=rtl just don't emit any note.
9343 When rtl checking, compute the note and assert it is the same
9344 as previous note. Clear cur_loc_changed and in_changed_variables
9345 at the end before removing from changed_variables.
9346 (check_changed_vars_3): New function.
9347 (emit_notes_for_changes): Traverse changed_vars to call
9348 check_changed_vars_3 on each changed var.
9349 (emit_notes_for_differences_1): Clear cur_loc_changed and
9350 in_changed_variables. Recompute cur_loc of new_var.
9351 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
9352 (vt_emit_notes): Initialize and destroy emitted_notes.
9354 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
9356 PR rtl-optimization/42220
9357 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
9358 Use verify_reg_tracked to determine if we should use OP_OUT rather
9360 (build_def_use): If we see an in-out operand for a register that we
9361 know nothing about, treat is an output if possible, fail the block if
9364 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9367 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
9370 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9373 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
9374 uses of relevant DEFs that are dead outside the loop too.
9376 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9378 * var-tracking.c (dataflow_set_merge): Swap src and src2.
9380 2010-01-13 Jakub Jelinek <jakub@redhat.com>
9382 * var-tracking.c (values_to_unmark): New variable.
9383 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9384 values_to_unmark vector. Moved body to...
9385 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
9386 instead queue it into values_to_unmark vector.
9387 (vt_find_locations): Free values_to_unmark vector.
9389 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
9391 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
9392 (site.exp): Export them when plugins are enabled.
9394 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
9397 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
9399 (chrec_fold_multiply): Same.
9401 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
9404 * c-decl.c (build_compound_literal): Return early if init is
9407 2010-03-04 Martin Jambor <mjambor@suse.cz>
9409 PR tree-optimization/43164
9410 PR tree-optimization/43191
9411 * tree-sra.c (type_consists_of_records_p): Reject records with
9412 zero-size bit-fields at the end.
9414 2010-03-04 Mike Stump <mikestump@comcast.net>
9416 * Makefile.in (TAGS): Remove *.y.
9418 2010-03-04 Richard Guenther <rguenther@suse.de>
9420 PR tree-optimization/40761
9421 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
9423 (my_rev_post_order_compute): New function.
9424 (init_pre): Call it.
9426 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
9429 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
9430 decrease the cost of an IV candidate when the cost is infinite.
9432 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9434 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
9435 Use '3DNow!' for the extension of that name, ensure normal space
9437 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
9439 2010-03-03 Jeff Law <law@redhat.com>
9441 * PR middle-end/32693
9442 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
9443 than gen_rtx_SUBREG.
9444 (extract_bit_field_1): Likewise.
9446 2010-03-03 Janis Johnson <janis187@us.ibm.com>
9448 * doc/sourcebuild.texi (Test directives): Document that arguments
9449 include-opts and exclude-opts are now optional for dg-skip-if,
9450 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
9452 2010-03-03 Jason Merrill <jason@redhat.com>
9455 * cgraph.h (varpool_node): Add extra_name field.
9456 * varpool.c (varpool_extra_name_alias): New.
9457 (varpool_assemble_decl): Emit extra name aliases.
9458 (varpool_mark_needed_node): Look past an extra name alias.
9459 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
9460 * lto-streamer-in.c (lto_input_tree): Read it.
9461 * lto-streamer-out.c (output_unreferenced_globals): Write it.
9463 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
9465 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
9466 (sparc*-*-solaris2*): ...this.
9468 2010-03-03 Jakub Jelinek <jakub@redhat.com>
9471 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
9472 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
9473 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
9474 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
9477 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
9478 fallthrough to default handling, just with want_address 0 instead of 2.
9479 For single element lists, add_AT_loc directly, otherwise create an
9480 artificial variable DIE and stick location list to it.
9483 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
9484 (VAL_EXPR_HAS_REVERSE): Define.
9485 (reverse_op): New function.
9486 (add_stores): For reversible operations add an extra MO_VAL_USE.
9488 2010-03-02 Jason Merrill <jason@redhat.com>
9490 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
9492 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
9494 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
9495 (sparc64-*-linux*): Likewise.
9496 (sparc64-*-solaris2*): Include assembler files before linker ones.
9497 (sparc-*-solaris2*): Simplify and reorder to match previous case.
9498 * config/sparc/gas.h: Delete.
9499 * config/sparc/sol2-64.h: Add copyright notice.
9500 * config/sparc/sol2-gas-bi.h: Likewise.
9501 * config/sparc/sol2-gld.h: Likewise.
9502 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
9503 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
9504 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
9505 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
9506 (sparc_elf_asm_named_section): Rename into...
9507 (sparc_solaris_elf_asm_named_section): ...this. Always define.
9509 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
9511 * config/alpha/alpha.c (override_options): Fix -mtune error message.
9513 2010-03-02 Jeff Law <law@redhat.com>
9516 * reload1.c (rtx_p, substitute_stack): Declare.
9517 (substitute): Record addresses of changed rtxs.
9518 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
9519 Restore the original rtx when complete.
9520 (reload): Free subsitute_stack when complete.
9522 2010-03-02 Janis Johnson <janis187@us.ibm.com>
9524 * doc/gccint.texi (menu): Add Testsuites as a chapter.
9525 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
9527 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
9528 LTO Testing, gcov Testing, profopt Testing, compat Testing,
9529 Torture Tests): Change from subsection to section.
9531 2010-03-02 Jakub Jelinek <jakub@redhat.com>
9532 Steven Bosscher <steven@gcc.gnu.org>
9534 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
9537 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
9540 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
9541 the assignment from the new induction variable to the assignment
9542 of the value from the original loop PHI function.
9544 2010-03-01 Janis Johnson <janis187@us.ibm.com>
9545 Daniel Jacobowitz <dan@codesourcery.com>
9547 * doc/sourcebuild.texi (Test directives): Clarify options to
9550 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9552 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
9553 Disable cfi directives unless GCC and gas agree on using read-only
9554 .eh_frame sections for 64-bit.
9555 * configure: Regenerate.
9557 2010-03-01 Richard Guenther <rguenther@suse.de>
9559 PR tree-optimization/43220
9560 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
9561 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
9563 2010-03-01 Richard Guenther <rguenther@suse.de>
9564 Martin Jambor <mjambor@suse.cz>
9567 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
9568 gimplified parameters.
9570 2010-03-01 Christian Bruel <christian.bruel@st.com>
9572 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
9574 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9576 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
9578 2010-03-01 Richard Guenther <rguenther@suse.de>
9581 * expr.c (expand_assignment): Use the alias-oracle to tell
9582 if the rhs aliases the result decl.
9584 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9587 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
9588 to sol_gt_pch_get_address.
9589 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
9590 64-bit, SPARC and x86.
9591 (sol_gt_pch_get_address): New function.
9593 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
9595 * toplev.h (inform_n, error_n): Declare.
9596 * diagnostic.c (inform_n, error_n): New function.
9598 2010-03-01 Jakub Jelinek <jakub@redhat.com>
9600 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
9601 has no rtl yet when processing local_decls, queue it and recheck
9602 if deferred stack allocation hasn't assigned it rtl.
9604 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
9606 * config/sh/sh.c (unspec_bbr_uid): New.
9607 (gen_block_redirect): Use it instead of INSN_UID.
9608 (gen_far_branch): Likewise.
9610 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
9612 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
9613 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
9615 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9617 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
9618 (Warning Options): -Wno-conversion-null is valid for
9619 Objective-C++ as well.
9620 * doc/tm.texi (Named Address Spaces): Likewise.
9621 * doc/plugins.texi (Plugins): Replace TABs with spaces.
9622 * doc/tree-ssa.texi (Tree SSA): Likewise.
9624 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9627 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
9628 by default. Don't set the default arch for
9629 i[34567]86-*-darwin*|x86_64-*-darwin*.
9631 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9634 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
9635 default. Set the default 32bit/64bit archs with $with_arch
9636 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
9638 2010-02-27 Richard Guenther <rguenther@suse.de>
9640 PR tree-optimization/43186
9641 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
9642 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
9643 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
9644 unroller iterations.
9646 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9648 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
9649 required and i[34567]86-*-* targets don't support 64bit ISA.
9651 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
9654 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
9657 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9659 * config.gcc: Set the default arch at least to Prescott for
9660 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
9661 if SSE math is enabled.
9663 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9665 * diagnostic.c (diagnostic_initialize): Update.
9666 (diagnostic_report_diagnostic): Test inhibit_notes_p for
9668 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
9669 (diagnostic_inhibit_notes): New.
9670 * toplev.c (process_options): inhibit notes with -fcompare-debug.
9672 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9675 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
9676 * doc/standards.texi: Likewise.
9677 * doc/extend.texi: Likewise.
9678 * doc/trouble.texi: Likewise.
9679 * doc/cppopts.texi: Likewise.
9680 * doc/install.texi: Likewise.
9681 * c.opt (std=c90,std=gnu90): New options.
9682 * c-opts.c (c_common_handle_option): Handle them.
9684 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9687 * c-decl.c (undeclared_variable): Use an informative note.
9689 2010-02-26 Richard Guenther <rguenther@suse.de>
9691 PR tree-optimization/43186
9692 * gimple.h (gimple_fold): Remove.
9693 * gimple.c (gimple_fold): Remove. Inline into single user ...
9694 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
9695 Try harder for conditions.
9697 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9700 * function.c (used_types_insert): Don't skip through named pointer
9701 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
9702 and it is different from the main variant's type.
9704 2010-02-26 Nick Clifton <nickc@redhat.com>
9706 * config/rx/rx.md (sminsi3): Remove bogus alternative.
9708 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9710 * config.gcc: Support --with-fpmath=sse for x86.
9712 * config/i386/ssemath.h: New.
9714 * doc/install.texi (--with-fpmath=sse): Documented.
9716 2010-02-26 Richard Guenther <rguenther@suse.de>
9718 PR tree-optimization/43188
9719 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
9720 vector types of over-aligned element type.
9722 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
9725 * config/i386/i386.c (expand_vec_perm_blend): Use correct
9726 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
9728 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9730 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
9732 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9734 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
9735 * var-tracking.c: Include diagnostic.h.
9736 (debug_dv): New function.
9737 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
9740 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
9741 (add_value_chain, add_value_chains, remove_value_chain,
9742 remove_value_chains): Handle DEBUG_EXPRs.
9743 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
9746 * regcprop.c (struct queued_debug_insn_change): New type.
9747 (struct value_data_entry): Add debug_insn_changes field.
9748 (struct value_data): Add n_debug_insn_changes field.
9749 (debug_insn_changes_pool): New variable.
9750 (free_debug_insn_changes, apply_debug_insn_changes,
9751 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
9752 (kill_value_one_regno): Call free_debug_insn_changes if needed.
9753 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
9755 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
9757 (copyprop_hardreg_forward_1): Don't call apply_change_group for
9758 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
9759 changes, call cprop_find_used_regs via note_stores.
9760 (copyprop_hardreg_forward): When copying vd from predecessor
9761 which has any queued DEBUG_INSN changes, make sure the pointers are
9762 cleared. At the end call df_analyze and then if there are any
9763 DEBUG_INSN changes queued at the end of some basic block for still
9764 live registers, apply them.
9765 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
9767 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
9769 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
9772 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
9774 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
9775 targets. Set the default with_cpu/with_arch from arch/cpu.
9776 Allow x86-64 and native for with_cpu/with_arch.
9778 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
9780 * ebitmap.c: Change calls to verify_popcount with calls to
9781 sbitmap_verify_popcount.
9782 (ebitmap_clear_bit): Fixed map->cacheindex test and
9783 map>cache update when bit clearing results in an empty
9786 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
9789 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
9790 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
9791 and support both V2DF and V2DI modes.
9792 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
9793 support both V2DF and V2DI modes.
9794 (general): Delete trailing whitespace from a few patterns.
9796 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9797 V2DF/V2DI interleave high/low builtins.
9799 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
9802 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
9803 interleave high/low functions.
9805 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9807 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
9808 #pragma extern_prefix.
9810 2010-02-25 Jakub Jelinek <jakub@redhat.com>
9813 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
9814 BLKmode, assert op0 is a MEM and just adjust its mode.
9817 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
9818 if bitpos isn't multiple of mode's bitsize.
9820 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9822 * c.opt (-ftemplate-depth=): New.
9823 (-ftemplate-depth-): Deprecate.
9824 * optc-gen.awk: Handle -ftemplate-depth=.
9825 * opth-gen.awk: Likewise.
9826 * c-opts.c (c_common_handle_option): Likewise.
9827 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
9829 2010-02-24 Jason Merrill <jason@redhat.com>
9831 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
9833 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9835 * cfg.c (alloc_aux_for_block): Remove inline.
9836 (alloc_aux_for_edge): Likewise.
9838 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9840 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
9842 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9844 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
9845 * config/i386/sol2-gas.h: New file.
9846 * config.gcc (i[34567]86-*-solaris2*): Use it.
9848 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9851 * c-typeck.c (ep_convert_and_check): New.
9852 (build_conditional_expr): Use it.
9853 (build_binary_op): Likewise.
9855 2010-02-24 Jakub Jelinek <jakub@redhat.com>
9857 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
9860 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
9861 bounds even for -O+.
9862 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
9863 expr needs to have DECL_NAME set.
9865 2010-02-24 Nick Clifton <nickc@redhat.com>
9867 * config/mep/mep.c: Include gimple.h.
9868 (mep_function_uses_sp): Delete unused function.
9869 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
9870 parameters. Use unsigned integers to count args. Return a
9871 NULL_RTX instead of an error_mark_node. Toidy up formatting.
9873 2010-02-23 Jakub Jelinek <jakub@redhat.com>
9876 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
9877 greater or equal to nelt instead of 2 * nelt.
9878 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
9881 2010-02-23 Jason Merrill <jason@redhat.com>
9884 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
9885 in cfun->local_decls even if they have register types.
9888 * stor-layout.c (place_field): Don't warn about unnecessary
9889 DECL_PACKED if the type is packed.
9891 2010-02-23 Jakub Jelinek <jakub@redhat.com>
9894 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
9895 GOTOFF relocs, even when the base reg isn't pic pointer.
9897 2010-02-23 Michael Matz <matz@suse.de>
9900 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
9901 (expand_gimple_basic_block): Generate and use debug temps if there
9902 are debug uses left after the last real use of TERed ssa names.
9903 Unlink debug immediate uses when they are expanded.
9905 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9908 * config/i386/i386.c (override_options): Reorganise to provide
9909 better error messages.
9911 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9914 * graphite-scop-detection.c (create_single_exit_edge): Move
9915 the call to find_single_exit_edge to....
9916 (create_sese_edges): ...here. Don't handle multiple edges
9917 exiting the function.
9918 (build_graphite_scops): Don't handle multiple edges
9919 exiting the function.
9921 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9924 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
9925 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
9927 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9930 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
9932 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9935 * c-typeck.c (convert_arguments): Print declaration location.
9936 * c-common.c (validate_nargs): Rename as
9937 builtin_function_validate_nargs.
9938 (check_builtin_function_arguments): Update.
9940 2010-02-22 Richard Guenther <rguenther@suse.de>
9943 * tree-inline.c (declare_return_variable): Use the type of
9944 the call stmt lhs if available.
9946 2010-02-22 Duncan Sands <baldrick@free.fr>
9948 * passes.c (register_pass): Always consider all pass lists when
9949 ref_pass_instance_number is zero.
9951 2010-02-22 Richard Guenther <rguenther@suse.de>
9953 PR tree-optimization/42749
9954 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
9955 parameter. Do arithmetic in the original type.
9956 (update_accumulator_with_ops): Likewise.
9957 (adjust_accumulator_values): Adjust.
9959 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9961 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
9962 (QI to BLKmode splitter): New splitter.
9964 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
9966 * config/i386/i386.c (initial_ix86_tune_features): Turn on
9967 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
9969 2010-02-22 Richard Guenther <rguenther@suse.de>
9971 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
9973 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
9975 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
9976 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
9977 ($(T)crti.o, $(T)crtn.o): Remove rules.
9979 2010-02-21 Tobias Burnus <burnus@net-b.de>
9982 * doc/invoke.texi (-fassociative-math): Document that this
9983 option is automatically enabled for Fortran.
9985 2010-02-20 David S. Miller <davem@davemloft.net>
9987 * configure.ac: Test if linker and assembler properly support
9988 GOTDATA_OP relocations.
9989 * configure: Rebuild.
9990 * config.in: Likewise.
9991 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
9992 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
9993 (movsi_high_pic): Likewise.
9994 (movdi_lo_sum_pic): Likewise.
9995 (movdi_high_pic): Likewise.
9996 (movsi_pic_gotdata_op): New pattern.
9997 (movdi_pic_gotdata_op): Likewise.
9998 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
9999 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
10001 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
10004 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
10005 attribute to ssemul.
10006 (xop_mulv2div2di3_high): Ditto.
10008 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10011 * c.opt (Wconversion-null): New option.
10012 * doc/invoke.texi (Wconversion-null): Document.
10014 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10016 * common.opt (Wlarger-than-): Add Undocumented.
10018 2010-02-19 Mike Stump <mikestump@comcast.net>
10020 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
10022 2010-02-19 Jason Merrill <jason@redhat.com>
10025 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
10026 * configure: Likewise.
10028 2010-02-20 Alan Modra <amodra@gmail.com>
10030 PR middle-end/42344
10031 * cgraph.h (cgraph_make_decl_local): Declare.
10032 * cgraph.c (cgraph_make_decl_local): New function.
10033 (cgraph_make_node_local): Use it.
10034 * cgraphunit.c (cgraph_function_versioning): Likewise.
10035 * ipa.c (function_and_variable_visibility): Likewise.
10037 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10040 * except.c (sjlj_emit_function_enter): Don't call
10041 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
10043 * rtl.h (add_reg_br_prob_note): Remove prototype.
10045 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
10048 * c-common.c (conversion_warning): Remove widening conversions
10049 before checking the conversion of integers to reals.
10051 2010-02-19 Mike Stump <mikestump@comcast.net>
10053 PR middle-end/43125
10054 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
10057 * cgraphunit.c (process_function_and_variable_attributes): Check
10058 DECL_PRESERVE_P instead of looking up attribute "used".
10059 * ipa-pure-const.c (check_decl): Likewise.
10060 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
10061 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
10062 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
10063 instead of attribute "used".
10064 * config/sol2-c.c (solaris_pragma_init): Likewise.
10065 (solaris_pragma_fini): Likewise.
10067 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10069 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
10070 Use XCNEW instead of xcalloc.
10071 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
10072 XNEW instead of xmalloc.
10073 (get_fields): Use XNEWVEC instead of xmalloc.
10076 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
10077 populate vars array.
10078 (create_new_general_access): For debug stmts just reset value.
10079 (get_stmt_accesses): For accesses within debug stmts just record them
10080 using add_access_to_acc_sites instead of preventing the peeling or
10081 counting them as accesses.
10083 PR middle-end/42233
10084 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
10086 2010-02-19 Richard Guenther <rguenther@suse.de>
10088 PR tree-optimization/42916
10089 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
10092 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
10094 * configure.ac: Replace all uses of changequote in macro arguments
10095 with proper quoting.
10097 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10099 PR middle-end/42233
10100 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
10102 2010-02-19 Richard Guenther <rguenther@suse.de>
10104 PR tree-optimization/42944
10105 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
10106 test for aliasing with errno.
10108 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10110 PR middle-end/42233
10111 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
10112 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
10113 * dojump.c: Include output.h.
10114 (inv): New inline function.
10115 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
10116 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
10117 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
10118 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
10119 argument, pass it down to other calls.
10120 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
10121 add REG_BR_PROB note to the conditional jump.
10122 * cfgexpand.c (add_reg_br_prob_note): Removed.
10123 (expand_gimple_cond): Don't call it, add the probability
10124 as last argument to jumpif_1/jumpifnot_1.
10125 * Makefile.in (dojump.o): Depend on output.h.
10126 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
10128 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
10129 * stmt.c (do_jump_if_equal): Likewise.
10130 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
10131 * loop-unswitch.c (compare_and_jump_seq): Likewise.
10132 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
10134 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
10135 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
10136 jumpifnot_1 callers.
10137 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
10139 (store_expr): Adjust jumpifnot caller.
10140 (store_constructor): Adjust jumpif caller.
10142 PR middle-end/42233
10143 * gimplify.c (gimple_boolify): For __builtin_expect call
10144 gimple_boolify also on its first argument.
10146 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
10148 * configure.ac (gnu-unique-object): Wrap regexps using [] in
10150 (__stack_chk_fail): Ditto. Remove quadrigraphs.
10151 * configure: Regenerated.
10153 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10155 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
10156 lang_hooks.types_compatible_p instead of comptypes.
10158 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
10160 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
10161 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
10162 if __prefer_thumb__ is defined.
10164 2010-02-18 Martin Jambor <mjambor@suse.cz>
10166 PR tree-optimization/43066
10167 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
10168 array with zero-sized element type.
10170 2010-02-18 Jakub Jelinek <jakub@redhat.com>
10172 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
10173 rtx, allocate struct var_loc_node here and return it to the
10174 caller, and only if it is actually needed.
10175 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
10176 move it earlier and return immediately if it returns NULL.
10178 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
10180 * config/sparc/gas.h: New file. Restore
10181 TARGET_ASM_NAMED_SECTION to its ELF default.
10182 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
10183 check !HAVE_GNU_AS.
10184 * config/sparc/sparc.c (sparc_elf_asm_named_section):
10185 Likewise. Add ATTRIBUTE_UNUSED to prototype.
10186 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
10187 after sparc/sysv4.h.
10189 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
10191 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
10193 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
10195 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
10196 patterns from predicated pattern.
10198 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
10201 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
10202 for insn mnemonic suffix.
10204 2010-02-17 Richard Guenther <rguenther@suse.de>
10206 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
10209 2010-02-17 Jakub Jelinek <jakub@redhat.com>
10212 * caller-save.c (save_call_clobbered_regs): If BB ends with
10213 a DEBUG_INSN, move any notes in between last real insn and the last
10214 DEBUG_INSN after the last DEBUG_INSN.
10216 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
10218 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
10219 Fix return type. Fix argument type. Explain meaning of return value.
10221 2010-02-16 Richard Guenther <rguenther@suse.de>
10223 PR tree-optimization/41043
10224 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
10225 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
10227 (vrp_visit_phi_node): ... but only for loop PHI nodes.
10229 2010-02-16 Ira Rosen <irar@il.ibm.com>
10231 PR tree-optimization/43074
10232 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
10233 * tree-vect-loop.c (vect_analyze_loop_operations): Add
10234 vectorizable cycles in hybrid SLP check.
10235 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
10237 2010-02-16 Richard Guenther <rguenther@suse.de>
10239 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
10240 (true_dependence): If memrefs_conflict_p computes must-alias
10241 trust it. Move TBAA check after offset-based disambiguation.
10242 (canon_true_dependence): Likewise.
10244 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
10246 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
10247 * doc/invoke.texi: Document it.
10248 * var-tracking.c: Include toplev.h and params.h.
10249 (vt_find_locations): Return bool indicating success. Compute
10250 hash sizes unconditionally. Check new parameter, report.
10251 (variable_tracking_main_1): Check vt_find_locations results and
10252 retry. Renamed from...
10253 (variable_tracking_main): ... this. New wrapper to preserve
10254 flag_var_tracking_assignments.
10255 * Makefile.in (var-tracking.o): Adjust dependencies.
10257 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
10258 Jakub Jelinek <jakub@redhat.com>
10261 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
10262 if weak_import attribute is present.
10263 * config/darwin.c (machopic_select_section): Likewise.
10265 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
10267 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
10268 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
10269 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
10270 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
10272 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
10275 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
10276 Fix argument types.
10278 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
10279 Rewrite text to refer to the names.
10281 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
10283 * config/i386/i386-builtin-types.def
10284 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
10285 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
10286 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
10287 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
10288 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
10289 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
10290 IX86_BUILTIN_VPERMIL2PS256.
10291 (MULTI_ARG_4_DF2_DI_I): Defined.
10292 (MULTI_ARG_4_DF2_DI_I1): Defined.
10293 (MULTI_ARG_4_SF2_SI_I): Defined.
10294 (MULTI_ARG_4_SF2_SI_I1): Defined.
10295 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
10296 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
10297 __builtin_ia32_vpermil2ps256.
10298 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10299 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10300 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
10301 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10302 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10303 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
10304 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
10305 CODE_FOR_xop_vpermil2v8sf3.
10306 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
10307 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
10308 * config/i386/xopintrin.h (_mm_permute2_pd): New.
10309 (_mm256_permute2_pd): New.
10310 (_mm_permute2_ps): New.
10311 (_mm256_permute2_ps): New.
10313 2010-02-15 Nick Clifton <nickc@redhat.com>
10315 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
10316 boolean parameters. Use emit_jump_insn when emitting a pop
10317 instruction containing a return insn.
10318 (push): Use 'true' rather than '1' as second parameter to F.
10319 (h8300_expand_prologue): Likewise.
10320 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
10321 (h8300_expand_epilogue): Likewise.
10323 2010-02-15 Richard Guenther <rguenther@suse.de>
10325 PR middle-end/43068
10326 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
10329 2010-02-15 Nick Clifton <nickc@redhat.com>
10331 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
10334 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
10336 * intl.c (fake_ngettext): New function.
10337 * intl.h (fake_ngettext): Declare.
10338 (ngettext): Define macro.
10339 * collect2.c (notice_translated): New function.
10340 (main): Use notice_translated and ngettext.
10341 * collect2.h (notice_translated): Declare.
10343 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
10345 * reorg.c (delete_computation): Comment fixes.
10346 * caller-save.c (setup_save_areas): Idem.
10347 * sel-sched-dump.c (dump_lv_set): Idem.
10350 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10352 * config/s390/s390.c (s390_sched_init): New function.
10353 (TARGET_SCHED_INIT): Target hook defined.
10355 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
10356 Jack Howarth <howarth@bromo.med.uc.edu>
10357 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10360 Partial revert of unintended change in fix for PR41605.
10361 * config/darwin.h: Fix typo.
10362 * config/darwin9.h: Same.
10364 2010-02-11 Jakub Jelinek <jakub@redhat.com>
10366 * c-pch.c (pch_init): Clear v.
10368 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10370 PR middle-end/42930
10371 * graphite-scop-detection.c (graphite_can_represent_scev): Call
10372 graphite_can_represent_init for MULT_EXPR.
10374 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10376 PR middle-end/42914
10377 PR middle-end/42530
10378 * graphite-sese-to-poly.c (remove_phi): New.
10379 (translate_scalar_reduction_to_array): Call remove_phi.
10381 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10383 PR middle-end/42771
10384 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
10385 * graphite-clast-to-gimple.h (gloog): Update declaration.
10386 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
10387 * graphite-poly.h (struct poly_bb): Add missing comments.
10388 (struct scop): Add poly_scop_p field.
10389 (POLY_SCOP_P): New.
10390 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
10391 * graphite.c (graphite_transform_loops): Build the polyhedral
10392 representation for each scop before code generation.
10393 * sese.c (rename_variables_in_operand): Removed.
10394 (rename_variables_in_expr): Return the renamed expression.
10395 (rename_sese_parameters): New.
10396 * sese.h (rename_sese_parameters): Declared.
10398 2010-02-11 Richard Guenther <rguenther@suse.de>
10400 PR tree-optimization/42998
10401 * tree-ssa-pre.c (create_expression_by_pieces): Treat
10402 POINTER_PLUS_EXPR properly.
10404 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10405 Changpeng Fang <changpeng.fang@amd.com>
10407 PR middle-end/40886
10408 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
10409 the cost of an IV candidate when the IV is used in a test against zero.
10411 * gcc.dg/tree-ssa/ivopts-3.c: New.
10413 2010-02-11 Richard Guenther <rguenther@suse.de>
10416 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
10417 pointer-vs-decl case by swapping refs. Handle some cases
10418 of pointer-vs-decl disambiguations more conservatively.
10419 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
10420 to false after expanding.
10422 2010-02-11 Richard Guenther <rguenther@suse.de>
10425 * gcc.c (process_command): Handle LTO file@offset case more
10428 2010-02-11 Jakub Jelinek <jakub@redhat.com>
10430 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
10431 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
10433 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
10435 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
10436 if MEM's mode size isn't DWARF2_ADDR_SIZE.
10437 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
10438 Optimize eq/ne comparisons when both arguments are known to be
10440 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
10441 Don't mask operands unnecessarily if they are known to be already
10444 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
10446 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
10449 2010-02-10 Richard Guenther <rguenther@suse.de>
10451 PR tree-optimization/43017
10452 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
10453 for wrapping signed arithmetic.
10455 2010-02-10 Jakub Jelinek <jakub@redhat.com>
10458 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
10459 if no debug info should be emitted for it.
10461 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
10463 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
10464 note when flag_exceptions is set.
10466 2010-02-10 Duncan Sands <baldrick@free.fr>
10468 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
10470 2010-02-10 Richard Guenther <rguenther@suse.de>
10473 * tree.c (get_unwidened): Handle constants.
10474 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
10476 2010-02-10 Martin Jambor <mjambor@suse.cz>
10479 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
10480 check for variable argument counts independently.
10482 2010-02-10 Christian Bruel <christian.bruel@st.com>
10485 * config/sh/sh.c (find_barrier): Increase length for non delayed
10486 conditional branches.
10488 2010-02-10 Christian Bruel <christian.bruel@st.com>
10490 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
10492 2010-02-10 Jakub Jelinek <jakub@redhat.com>
10494 * builtins.c (set_builtin_user_assembler_name): Also handle
10495 ffs if int is smaller than word.
10497 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
10499 PR middle-end/42973
10500 * ira-conflicts.c (get_dup): Remove.
10501 (process_reg_shuffles): Add new parameter. Use it as an
10502 additional guard for copy generation.
10503 (add_insn_allocno_copies): Rewrite.
10505 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
10507 * common.opt (fsched2-use-traces): Preserved for backward
10509 * doc/invoke.texi: Remove the documentation about option
10510 -fsched2-use-traces.
10511 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
10512 flag_sched2_use_traces.
10513 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
10514 the backward compatibility flag section.
10516 2010-02-09 Richard Guenther <rguenther@suse.de>
10518 PR tree-optimization/43008
10519 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
10520 make HEAP variables initialized from global memory if they
10521 are not known builtin functions.
10522 (find_func_aliases): Adjust.
10524 2010-02-09 Richard Guenther <rguenther@suse.de>
10526 PR tree-optimization/43000
10527 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
10528 arithmetic manually.
10530 2010-02-08 Jakub Jelinek <jakub@redhat.com>
10532 PR tree-optimization/42931
10533 * tree-loop-linear.c (try_interchange_loops): Don't call
10534 double_int_mul if estimated_loop_iterations failed.
10536 2010-02-08 Martin Jambor <mjambor@suse.cz>
10538 PR middle-end/42898
10539 * tree-sra.c (build_accesses_from_assign): Do not mark in
10540 should_scalarize_away_bitmap if stmt has volatile ops.
10541 (sra_modify_assign): Do not process assigns piecemeal if if stmt
10544 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
10546 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
10548 2010-02-07 Adam Nemet <adambnmet@gmail.com>
10550 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
10551 before the pattern.
10553 2010-02-07 Andrew Pinski <pinskia@gmail.com>
10555 PR middle-end/42946
10556 * df-core.c (df_finish_pass): Change type of saved_flags to int.
10558 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
10560 PR middle-end/42988
10561 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
10562 to unknown_dependence.
10563 (graphite_legal_transform_dr): Handle the unknown_dependence.
10564 (graphite_carried_dependence_level_k): Same.
10566 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
10568 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
10570 2010-02-07 Richard Guenther <rguenther@suse.de>
10572 PR middle-end/42991
10573 * expr.c (get_inner_reference): Always initialize *pbitsize.
10575 2010-02-07 Richard Guenther <rguenther@suse.de>
10577 PR middle-end/42956
10578 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
10579 new ARRAY_REFs on variable size element or minimal index arrays.
10581 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
10582 gimple_fold_indirect_ref.
10584 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
10587 * arm.c (arm_override_options): Just return if the user has specified
10588 an invalid fpu name.
10590 2010-02-03 Jason Merrill <jason@redhat.com>
10593 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
10594 i386_pe_maybe_record_exported_symbol.
10596 2010-02-05 Steve Ellcey <sje@cup.hp.com>
10599 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10600 (pa_delegitimize_address): New function.
10602 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
10604 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
10605 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
10607 2010-02-05 Richard Guenther <rguenther@suse.de>
10610 * lto-streamer-in.c (get_resolution): Deal with references
10611 to undefined functions.
10613 2010-02-05 Richard Guenther <rguenther@suse.de>
10615 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
10616 (fold_const_aggregate_ref): Likewise.
10617 (ccp_fold_stmt): Substitute loads.
10618 (maybe_fold_reference): Verify types before substituting.
10620 (fold_gimple_assign): Unshare properly.
10621 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
10623 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
10625 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
10626 for rs6000_gen_cell_microcode.
10628 2010-02-04 Richard Guenther <rguenther@suse.de>
10630 PR rtl-optimization/42952
10631 * dse.c (const_or_frame_p): Remove MEM handling.
10633 2010-02-04 Nick Clifton <nickc@redhat.com>
10635 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10636 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
10637 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
10638 (mn10300_asm_output_mi_thunk): New function.
10639 (mn10300_can_output_mu_thunk): New function.
10640 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
10641 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
10642 (FUNCTION_ARG): Delete incorrect comment.
10644 2010-02-03 Jason Merrill <jason@redhat.com>
10647 * fold-const.c (operand_equal_p): Handle erroneous types.
10649 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10651 * config/h8300/h8300.md (can_delay): Fix attibute condition.
10653 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
10655 PR rtl-optimization/42941
10656 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
10659 2010-02-03 Jason Merrill <jason@redhat.com>
10662 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
10664 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
10667 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
10668 (cselib_reset_table): Renamed from...
10669 (cselib_reset_table_with_next_value): ... this.
10670 (cselib_get_next_uid): Renamed from...
10671 (cselib_get_next_unknown_value): ... this.
10672 * cselib.c (next_uid): Renamed from...
10673 (next_unknown_value): ... this.
10674 (cselib_clear_table): Adjust.
10675 (cselib_reset_table): Adjust. Renamed from...
10676 (cselib_reset_table_with_next_value): ... this.
10677 (cselib_get_next_uid): Adjust. Renamed from...
10678 (cselib_get_next_unknown_value): ... this.
10679 (get_value_hash): Use hash.
10680 (cselib_hash_rtx): Likewise.
10681 (new_cselib_val): Adjust. Set and dump uid.
10682 (cselib_lookup_mem): Pass next_uid as hash.
10683 (cselib_subst_to_values): Likewise.
10684 (cselib_log_lookup): Dump uid.
10685 (cselib_lookup): Pass next_uid as hash. Adjust.
10686 (cselib_process_insn): Adjust.
10687 (cselib_init): Initialize next_uid.
10688 (cselib_finish): Adjust.
10689 (dump_cselib_table): Likewise.
10690 * dse.c (canon_address): Dump value uid.
10691 * print-rtl.c (print_rtx): Print value uid.
10692 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
10694 (dv_uid): New function, sort of renamed from...
10695 (dv_htab_hash): ... this, reimplemented in terms of it and...
10696 (dv_uid2hash): ... this. New.
10697 (variable_htab_eq): Drop excess assertions.
10698 (tie_break_pointers): Removed.
10699 (canon_value_cmp): Compare uids.
10700 (variable_post_merge_New_vals): Print uids.
10701 (vt_add_function_parameters): Adjust.
10702 (vt_initialize): Reset table. Adjust.
10704 2010-02-03 Richard Guenther <rguenther@suse.de>
10706 PR tree-optimization/42944
10707 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
10708 (call_may_clobber_ref_p_1): Likewise. Properly handle
10709 malloc and calloc clobbering errno.
10711 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
10713 * doc/invoke.texi: Fix name of sched1 dump.
10715 * opts.c (decode_options): Set flag_tree_switch_conversion
10716 only conditionally on optimize >= 2.
10718 * gcse.c: Assorted comment fixes in pass description.
10720 2010-02-03 Anthony Green <green@moxielogic.com>
10722 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
10723 nop padding in order to maintain alignment of storage location of
10724 target function address.
10725 (moxie_trampoline_init): Store target function address at newly
10727 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
10729 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
10731 2010-02-03 Richard Guenther <rguenther@suse.de>
10733 PR middle-end/42927
10734 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
10736 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10738 * config.gcc: Reenable check for obsolete targets.
10739 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
10740 mips-sgi-irix6.[0-4]*.
10742 2010-02-02 Nick Clifton <nickc@redhat.com>
10744 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
10745 constant size of 4 as being the same as 0.
10746 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
10747 can take values in the range 0..4.
10749 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
10752 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
10753 as _darwin10_Unwind_FindEnclosingFunction().
10754 * libgcc-libsystem.ver: New.
10756 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
10759 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
10760 implicitly set registers.
10762 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
10764 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
10765 (arm_override_options): Allow automatic selection of the thread
10766 pointer register if thumb2.
10767 (legitimize_pic_address): Improve code sequences for Thumb2.
10768 (arm_call_tls_get_addr): Likewise.
10769 (legitimize_tls_address): Likewise.
10770 * arm.md (pic_load_addr_arm): Delete. Replace with ...
10771 (pic_load_addr_32bit): ... this. New named pattern.
10772 * thumb2.md (pic_load_addr_thumb2): Delete.
10773 (pic_load_dot_plus_four): Delete.
10774 (tls_load_dot_plus_four): New named pattern.
10776 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10779 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
10780 Document fix for TLS bug.
10782 2010-01-31 Richard Guenther <rguenther@suse.de>
10784 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
10785 conservatively correct.
10787 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10791 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10793 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10795 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10797 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
10799 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
10801 * config.gcc: Adjust order of makefile fragments for mingw targets.
10803 2010-01-31 Richard Guenther <rguenther@suse.de>
10805 PR middle-end/42898
10806 * gimplify.c (gimplify_init_constructor): For volatile LHS
10807 initialize a temporary.
10809 2010-01-31 Matthias Klose <doko@ubuntu.com>
10811 * configure.ac: Fix __stack_chk_fail check for cross builds configured
10813 * configure: Regenerate.
10815 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
10817 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
10818 the same alias set and their sizes different constantness.
10819 (aliasing_component_refs_p): Revert 2009-10-24 change.
10821 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10823 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
10826 2010-01-29 Richard Guenther <rguenther@suse.de>
10828 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
10829 Assert we successfully updated the call.
10831 2010-01-29 Jakub Jelinek <jakub@redhat.com>
10833 PR rtl-optimization/42889
10834 * df.h (df_set_bb_dirty_nonlr): New prototype.
10835 * df-core.c (df_set_bb_dirty_nonlr): New function.
10836 * df-scan.c (df_insn_rescan): Call it instead of
10837 df_set_bb_dirty for DEBUG_INSNs.
10839 2010-01-29 Richard Guenther <rguenther@suse.de>
10841 PR middle-end/37448
10842 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
10843 quadratic behavior in most cases.
10845 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
10848 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
10849 in the call to gen_x86_movsicc_0_m1.
10851 2010-01-28 Richard Guenther <rguenther@suse.de>
10853 PR tree-optimization/42871
10854 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
10856 2010-01-28 Richard Guenther <rguenther@suse.de>
10858 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
10859 into call arguments.
10861 2010-01-28 Richard Guenther <rguenther@suse.de>
10863 PR middle-end/42883
10864 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
10865 the forwarder if the destination is an EH landing pad.
10867 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
10869 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
10870 block list passed to gimple_duplicate_sese_tail.
10871 (parallelize_loops): Avoid parallelization when the function
10872 has_nonlocal_label.
10873 Avoid parallelization when the preheader is IRREDUCIBLE.
10874 Try to optimize when estimated_loop_iterations_int is unresolved.
10875 Add the loop's location to the dump file.
10876 * tree-cfg.c (add_phi_args_after_redirect): Remove.
10877 (gimple_duplicate_sese_tail): Remove the check for the latch.
10878 Redirect nexits to the exit block.
10879 Remove handling of the incoming edges to the latch.
10880 Redirect the backedge from the copied latch to the exit bb.
10882 2010-01-28 Michael Matz <matz@suse.de>
10885 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
10886 Wrap force_reg into a sequence, emit it before user.
10888 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
10890 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
10892 (arm_legacy_rev): Likewise.
10893 (thumb_legacy_rev): Likewise.
10895 2010-01-27 Jakub Jelinek <jakub@redhat.com>
10897 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
10898 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
10899 on MEM's address failed, try avoid_constant_pool_reference and
10900 recurse if it returned something different.
10901 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
10902 address, try avoid_constant_pool_reference and recurse if it
10903 returned something different.
10904 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
10905 address and avoid_constant_pool_reference returned something
10906 different, don't set have_address.
10908 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
10911 * var-tracking.c (val_store): Add modified argument, obey it.
10913 (count_uses): Move down logging of main.
10914 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
10915 don't need resolution.
10916 (emit_notes_in_bb): Likewise.
10918 2010-01-27 Richard Guenther <rguenther@suse.de>
10920 PR middle-end/42878
10921 * tree-inline.c (remap_decl): Delay remapping of SSA name
10922 default definitions until we need them.
10924 2010-01-27 Jakub Jelinek <jakub@redhat.com>
10926 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10927 (rs6000_delegitimize_address): New function.
10929 * config/s390/s390.c (s390_delegitimize_address): Call
10930 delegitimize_mem_from_attrs.
10932 PR middle-end/42874
10933 * tree-inline.c (cannot_copy_type_1): Removed.
10934 (copy_forbidden): Don't forbid copying of functions containing
10935 records/unions with variable length fields.
10937 2010-01-27 Christian Bruel <christian.bruel@st.com>
10941 * config/sh/sh.c (find_barrier): Increase length for non delayed
10942 conditional branches.
10944 2010-01-27 Matthias Klose <doko@ubuntu.com>
10946 * configure.ac (gnu-unique-object): Fix ldd version check.
10947 * configure: Regenerate.
10949 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10951 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
10953 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
10954 Test for HAVE_GNU_AS value.
10956 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10958 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
10959 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
10960 INT64_TYPE): Define.
10961 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
10962 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10963 INT_LEAST64_TYPE): Define.
10964 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
10965 UINT_LEAST64_TYPE): Define.
10966 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
10967 INT_FAST64_TYPE): Define.
10968 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10969 UINT_FAST64_TYPE): Define.
10970 (INTMAX_TYPE, UINTMAX_TYPE): Define.
10971 (INTPTR_TYPE, UINTPTR_TYPE): Define.
10972 (SIG_ATOMIC_TYPE): Define.
10974 2010-01-26 Richard Guenther <rguenther@suse.de>
10976 * df-scan.c (df_scan_set_bb_info): Remove assert.
10977 (df_insn_rescan_debug_internal): Merge asserts.
10978 (df_install_ref): Likewise.
10979 (df_mark_reg): Use bitmap_set_range.
10980 (df_hard_reg_used_p): Remove assert.
10981 (df_hard_reg_used_count): Likewise.
10983 2010-01-26 Richard Guenther <rguenther@suse.de>
10985 PR rtl-optimization/42685
10986 * web.c (web_main): Ignore DEBUG_INSNs.
10988 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
10990 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
10992 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
10993 Fix types of fndecl and arglist parameters.
10995 2010-01-26 Richard Guenther <rguenther@suse.de>
10997 PR middle-end/42806
10998 * tree-eh.c (unsplit_eh): Skip debug insns.
11000 2010-01-26 Richard Guenther <rguenther@suse.de>
11002 PR tree-optimization/42250
11003 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
11005 2010-01-26 Jakub Jelinek <jakub@redhat.com>
11008 * omp-low.c (expand_omp_sections): Only use single_pred if
11009 l2_bb is single_pred_p.
11011 2010-01-25 Christian Bruel <christian.bruel@st.com>
11014 * config/sh/sh.c (find_barrier): Increase length for non delayed
11015 conditional branches.
11016 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
11018 2010-01-24 David S. Miller <davem@davemloft.net>
11020 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
11021 define if not using GAS.
11022 * config/sparc/sparc.c (sparc_elf_asm_named_section):
11023 Likewise. Delete SECTION_MERGE code, which is only applicable
11026 2010-01-24 Mark Mitchell <mark@codesourcery.com>
11029 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
11030 mangling of va_list in system headers.
11032 2010-01-23 Toon Moene <toon@moene.org>
11034 * tree-predcom.c (combine_chains): Return NULL, not false.
11036 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
11038 * tree-loop-distribution.c (distribute_loop): Fix declaration and
11039 initialization of variable res to agree with return type.
11041 2010-01-22 Steve Ellcey <sje@cup.hp.com>
11043 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
11044 * tree-sra.c: Add include of expr.h.
11046 2010-01-22 Jakub Jelinek <jakub@redhat.com>
11048 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
11049 insert the debug stmt on the single non-EH edge from the stmt.
11051 2010-01-22 Richard Henderson <rth@redhat.com>
11054 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
11055 the RHS until after generate_subtree_copies has insertted its
11056 code before the current statement.
11058 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
11060 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
11062 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
11064 2010-01-21 Martin Jambor <mjambor@suse.cz>
11066 PR tree-optimization/42585
11067 * tree-sra.c (struct access): New field grp_total_scalarization.
11068 (dump_access): Dump the new field.
11069 (should_scalarize_away_bitmap): New variable.
11070 (cannot_scalarize_away_bitmap): Likewise.
11071 (sra_initialize): Allocate new bitmaps.
11072 (sra_deinitialize): Free new bitmaps.
11073 (create_access_1): New function.
11074 (create_access): Parts moved to create_access_1.
11075 (type_consists_of_records_p): New function.
11076 (completely_scalarize_record): Likewise.
11077 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
11078 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
11079 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
11081 (analyze_all_variable_accesses): Completely scalarize small eligible
11084 2010-01-21 Martin Jambor <mjambor@suse.cz>
11086 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
11088 2010-01-21 Andrew Haley <aph@redhat.com>
11090 * gcc.c (process_command): Move lang_specific_driver before
11091 setting cc_libexec_prefix.
11093 2010-01-21 Richard Guenther <rguenther@suse.de>
11095 PR middle-end/19988
11096 * fold-const.c (negate_expr_p): Pretend only negative
11097 real constants are easily negatable.
11099 2010-01-20 Janis Johnson <janis187@us.ibm.com>
11100 Jason Merrill <jason@redhat.com>
11102 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
11103 (TYPE_TRANSPARENT_AGGR): this, for union and record.
11104 * calls.c (initialize argument_information): Handle it.
11105 * c-common.c (handle_transparent_union_attribute): Use new name.
11106 * c-decl.c (finish_struct): Ditto.
11107 * c-typeck.c (type_lists_compatible_p): Ditto.
11108 (convert_for_assignment): Use new name and also handle record.
11109 * function.c (aggregate_value_p): Handle it.
11110 (pass_by_reference): Ditto.
11111 (assign_parm_data_types): Ditto.
11112 * print-tree.c (print_node): Ditto.
11113 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
11114 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
11115 * tree.c (first_field): New fn.
11117 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
11120 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
11121 even when linking statically, for now.
11123 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
11126 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
11127 without a cselib val.
11128 (count_uses): Accept MO_VAL_SET with no val on stores.
11129 (add_stores): Likewise.
11131 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11133 * var-tracking.c (check_value_val): Add a compile time assertion.
11134 (dv_is_decl_p): Simplify.
11135 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
11136 gcc_assert if ENABLE_CHECKING.
11138 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
11141 * var-tracking.c: Include tree-flow.h.
11142 (mem_dies_at_call): New.
11143 (dataflow_set_preserve_mem_locs): Use it.
11144 (dataflow_set_remove_mem_locs): Likewise.
11145 (dump_var): Renamed from dump_variable. Adjust all callers.
11146 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
11147 * Makefile.in (var-tracking.o): Adjust deps.
11149 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
11151 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
11153 2010-01-20 Richard Guenther <rguenther@suse.de>
11155 PR tree-optimization/42717
11156 * tree-ssa-dce.c (get_live_post_dom): Remove.
11157 (forward_edge_to_pdom): Take an arbitrary edge to copy
11158 degenerate PHI args from.
11159 (remove_dead_stmt): Use the first post-dominator even if it
11160 does not contain live statements as redirection destination.
11162 2010-01-20 Richard Guenther <rguenther@suse.de>
11164 * tree-inline.c (estimate_num_insns): Handle EH builtins.
11166 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11168 * sel-sched.c (create_speculation_check): Remove set but not used
11170 (try_transformation_cache): Remove set but not used variable ds.
11171 (calculate_privileged_insns): Remove set but not used variables
11172 cur_insn and min_spec_insn.
11173 (find_best_expr): Remove set but not used variable avail_n.
11174 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
11176 * cgraphunit.c (assemble_thunk): Remove set but not used variable
11178 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
11179 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
11180 new_scop_exit_edge.
11182 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
11185 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
11186 cpu types. Add support for *-sse3 cpu types.
11187 (x86_64-*-*): Ditto.
11189 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11191 PR middle-end/42803
11192 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
11193 argument, call initializer_constant_valid_p_1 instead of
11194 initializer_constant_valid_p, pass CACHE to it, return NULL
11195 immediately if first call returns NULL.
11196 (initializer_constant_valid_p_1): New function.
11197 (initializer_constant_valid_p): Use it.
11199 2010-01-20 Thomas Quinot <quinot@adacore.com>
11201 * tree.def (PLACEHOLDER_EXPR): Fix comment.
11203 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11205 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
11206 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
11207 (loc_list_from_tree): Don't handle unsigned division. Handle
11208 signed modulo using DW_OP_{over,over,div,mul,minus}.
11209 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
11210 modulo instead of signed.
11212 2010-01-20 DJ Delorie <dj@redhat.com>
11214 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
11216 (h8300_emit_stack_adjustment): Propogate it.
11218 (h8300_expand_prologue): Likewise.
11219 (h8300_expand_epilogue): Likewise.
11221 2010-01-19 Michael Matz <matz@suse.de>
11223 PR tree-optimization/41783
11224 * tree-data-ref.c (toplevel): Include flags.h.
11225 (dump_data_dependence_relation): Also dump the inputs if the
11226 result will be unknown.
11227 (split_constant_offset_1): Look through some conversions.
11228 * tree-predcom.c (determine_roots_comp): Restart a new chain if
11229 the offset from last element is too large.
11230 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
11231 (reassociate_to_the_same_stmt): Handle vector registers.
11232 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
11233 (e.g. conversions).
11234 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
11235 wide_prolog_niters argument, emit widening instructions.
11236 (vect_do_peeling_for_alignment): Adjust caller, use widened
11237 variant of the iteration cound.
11238 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
11240 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11243 * config/arm/neon-testgen.m (emit_automatics): New parameter
11244 features. Adjust for Fixed_return_reg feature.
11245 (test_intrinsic): Call emit_automatics with new feature.
11246 * config/arm/neon.ml: Update copyright years.
11247 (features): New Fixed_return_reg feature.
11248 (ops): Update feature for Vget_low.
11250 2010-01-19 Jakub Jelinek <jakub@redhat.com>
11252 PR tree-optimization/42719
11253 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
11257 * fwprop.c (all_uses_available_at): Return false if def_set dest
11258 is a REG that is used in def_insn.
11260 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
11262 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
11264 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
11265 Add argument names.
11267 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
11269 * target.h (struct gcc_target) <secondary_reload>: Change type
11270 of last argument to secondary_reload_info *.
11272 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
11275 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
11276 memory references with unaligned offsets. Remove CQImode handling.
11277 (unaligned_memory_operand): Return 1 for memory references with
11278 unaligned offsets. Remove CQImode handling.
11280 2010-01-18 Richard Guenther <rguenther@suse.de>
11282 PR middle-end/39954
11283 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
11286 2010-01-18 Richard Guenther <rguenther@suse.de>
11288 PR tree-optimization/42781
11289 * tree-ssa-structalias.c (find_what_var_points_to): Skip
11290 restrict processing only if the original variable was artificial.
11292 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
11294 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
11295 find number of popped argument bytes.
11297 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
11298 Fix the text that describes the return value for invalid insns.
11300 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
11302 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
11303 Clarify what 'cost of the -dependence' is. Fix quoting.
11305 * toplev.c (default_get_pch_validity): Rename argument to "sz".
11306 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
11308 2010-01-17 Jakub Jelinek <jakub@redhat.com>
11310 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
11311 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
11313 2010-01-17 Richard Guenther <rguenther@suse.de>
11315 PR middle-end/42248
11316 * function.c (split_complex_args): Take a VEC to modify.
11317 (assign_parms_augmented_arg_list): Build a VEC instead of
11318 a chain of PARM_DECLs.
11319 (assign_parms_unsplit_complex): Take a VEC of arguments.
11320 Do not fixup unmodified parms.
11321 (assign_parms): Deal with the VEC.
11322 (gimplify_parameters): Likewise.
11324 2010-01-17 Richard Guenther <rguenther@suse.de>
11326 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
11327 node existence check.
11328 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
11329 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
11330 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
11331 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
11332 (gimple_execute_on_growing_pred): Likewise.
11334 2010-01-17 Richard Guenther <rguenther@suse.de>
11336 PR tree-optimization/42773
11337 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
11338 (compute_antic_aux): Likewise.
11339 (compute_partial_antic_aux): Likewise.
11341 2010-01-17 Jie Zhang <jie.zhang@analog.com>
11344 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
11347 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
11349 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
11352 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
11353 Fix markup for strict argument.
11355 (TARGET_SCHED_REORDER2): Fix argument types.
11357 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
11358 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
11360 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
11361 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
11363 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
11366 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
11367 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
11368 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
11369 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
11370 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
11372 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
11374 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
11376 (TARGET_ASM_RELOC_RW_MASK): Add return type.
11377 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
11379 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
11381 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
11384 (TARGET_ASM_NAMED_SECTION): Fix argument list.
11386 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
11387 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
11389 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
11391 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
11393 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
11394 referring to it. Fix language.
11396 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
11398 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
11400 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
11402 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
11404 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
11405 '@var{stream}. Remove stray 'and'.
11407 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
11409 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
11411 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
11413 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
11414 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
11416 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
11417 Fix description of return value.
11418 Rename argument "sz" to "len."
11420 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
11421 Clarify meaning of 'true' return value.
11423 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
11425 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
11426 rep_mode versus mode_rep.
11428 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
11430 (TARGET_BUILTIN_DECL): Fix name.
11432 (TARGET_COMMUTATIVE_P): Fix type of first argument.
11434 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
11436 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
11438 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
11440 (TARGET_RELAXED_ORDERING): Use @deftypevr.
11442 (TARGET_GET_DRAP_RTX): Note that this is a hook.
11445 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
11446 Rename argument tm_fn to md_fn.
11448 (TARGET_OPTION_PRINT): Fix argument list.
11450 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
11453 * config/i386/i386.c (ix86_fixup_binary_operands):
11454 Revert FMA4 fixup of operands.
11456 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11459 * Makefile.in (write_entries_to_file, install-plugin):
11460 Use \012 instead of \n with tr.
11462 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
11464 * configure.ac (HAVE_AS_REF): New C macro.
11465 * configure: Regenerate.
11466 * config.in: Likewise.
11467 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
11469 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
11472 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
11474 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
11476 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
11478 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
11480 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
11482 (TARGET_IN_SMALL_DATA_P): Fix argument type.
11484 (TARGET_BINDS_LOCAL_P): Fix argument type.
11486 (TARGET_ASM_FILE_END): Use prototype.
11488 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
11490 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
11492 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
11494 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
11496 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
11497 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
11499 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
11500 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
11502 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
11503 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
11504 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
11505 (TARGET_ADDR_SPACE_CONVERT): Likewise.
11507 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
11509 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
11511 (TARGET_INIT_BUILTINS): Use prototype.
11513 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
11514 Put 'const char *' in braces. Fix parameter types.
11515 (TARGET_INVALID_CONVERSION): Fix parameter types.
11516 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
11517 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
11519 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
11522 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
11524 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
11526 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
11528 * doc/tm.texi (TARGET_HELP): Fix return type.
11530 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
11531 in braces. Fix argument types.
11533 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
11535 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
11537 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
11539 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
11540 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
11542 (TARGET_MANGLE_TYPE): Fix argument types.
11544 (TARGET_IRA_COVER_CLASSES): Use prototype.
11546 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
11548 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
11550 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
11552 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
11554 (TARGET_CALLEE_COPIES): Fix argument types.
11556 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
11558 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
11560 (TARGET_FUNCTION_VALUE): Fix argument types.
11562 (TARGET_RETURN_IN_MSB): Fix argument type.
11564 (TARGET_RETURN_IN_MEMORY): Fix argument types.
11566 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
11568 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
11570 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
11571 agree with return type.
11573 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
11575 2010-01-15 Jing Yu <jingyu@google.com>
11577 PR rtl-optimization/42691
11578 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
11579 a pseudo to a constant and are merged, and adjust comments.
11581 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
11583 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
11585 2010-01-15 Richard Guenther <rguenther@suse.de>
11587 PR middle-end/42739
11588 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
11589 labels of computed or non-local gotos to the destination.
11590 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
11591 landing pad label is the first label.
11593 2010-01-15 Richard Guenther <rguenther@suse.de>
11595 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
11597 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11600 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
11601 to allow generation of the xssqrtdp instruction on power7.
11602 (sqrtdf2_fpr): Ditto.
11604 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11606 PR middle-end/42674
11607 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
11608 functions with noreturn attribute.
11611 * varasm.c (declare_weak): Add weak attribute to decl if it
11612 doesn't have one already.
11613 (assemble_external): Only add decls to weak_decls if they also
11614 have weak attribute.
11616 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
11618 * var-tracking.c (var_reg_delete): Don't delete the association
11619 between REGs and values or one-part variables if the register
11622 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11625 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
11626 because its first operand is a non-localized variable.
11628 2010-01-14 Martin Jambor <mjambor@suse.cz>
11630 PR tree-optimization/42706
11631 * tree-sra.c (encountered_recursive_call): New variable.
11632 (encountered_unchangable_recursive_call): Likewise.
11633 (sra_initialize): Initialize both new variables.
11634 (callsite_has_enough_arguments_p): New function.
11635 (scan_function): Call decl and flags check only for IPA-SRA, check
11636 whether there is a recursive call and whether it has enough arguments.
11637 (all_callers_have_enough_arguments_p): New function.
11638 (convert_callers): Look for recursive calls only when
11639 encountered_recursive_call is set.
11640 (ipa_early_sra): Bail out either if
11641 !all_callers_have_enough_arguments_p or
11642 encountered_unchangable_recursive_call.
11644 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11646 * sel-sched.c: Add 2010 to copyright years.
11647 * sel-sched-ir.c: Likewise.
11648 * sel-sched-ir.h: Likewise.
11650 2010-01-14 Martin Jambor <mjambor@suse.cz>
11652 PR tree-optimization/42714
11653 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
11654 constructors specially.
11656 2010-01-14 Andi Kleen <ak@linux.intel.com>
11658 * config/i386/drivers-i386.c (detect_caches_intel):
11659 Add l2sizekb parameter and fill in.
11660 (host_detect_local_cpu): Add l2sizekb, fill in.
11661 Add Atom small cache heuristic.
11663 2010-01-14 Andi Kleen <ak@linux.intel.com>
11665 * config/i386/drivers-i386.c (detect_caches_cpuid4):
11666 Add level3 parameter and fill in.
11667 (detect_caches_intel): Handle level3 cache.
11669 2010-01-14 Andi Kleen <ak@linux.intel.com>
11671 * config/i386/drivers-i386.c (host_detect_local_cpu):
11672 Fix core duo detection.
11674 2010-01-14 Andi Kleen <ak@linux.intel.com>
11676 * config/i386/drivers-i386.c (host_detect_local_cpu):
11677 Fix Atom detection.
11679 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11681 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
11682 (rs6000_variable_issue_1): this. Use...
11683 (rs6000_variable_issue): here. Reimplement. Print debug info.
11685 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11687 * sel-sched-ir.c (sel_restore_other_notes): Rename to
11688 sel_restore_notes. Update all callers. Call reemit_notes
11691 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11693 PR rtl-optimization/42246
11694 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
11697 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11699 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
11700 all successors is the same as number of successors in current region.
11702 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11704 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
11705 to rename is not separable. Otherwise check that its LHS is not NULL.
11707 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11709 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
11711 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11713 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
11714 available registers when failed to discover LHS register class.
11715 Fix indentation. Update comment.
11717 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11718 Alexander Monakov <amonakov@ispras.ru>
11720 PR rtl-optimization/42389
11721 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
11723 (advance_state_on_fence): Likewise.
11724 (sel_target_adjust_priority): Print debug output only when
11725 sched_verbose >= 4, not 2.
11726 (get_expr_cost): Do not issue all unique insns on the next cycle.
11727 (fill_insns): Initialize can_issue_more from the value saved
11729 * sel-sched-ir.c (flist_add): New parameter issue_more.
11730 Init FENCE_ISSUE_MORE with it.
11731 (merge_fences): Likewise.
11732 (init_fences): Update call to flist_add.
11733 (add_to_fences, add_clean_fence_to_fences)
11734 (add_dirty_fence_to_fences): Likewise.
11735 (move_fence_to_fences): Update call to merge_fences.
11736 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
11738 * sel-sched-ir.h (struct _fence): New field issue_more.
11739 (FENCE_ISSUE_MORE): New accessor macro.
11741 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11743 PR rtl-optimization/42388
11744 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
11745 that have no predecessors nor successors. Do not call move_bb_info
11746 for empty blocks outside of current region.
11748 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11750 PR rtl-optimization/42294
11751 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
11752 * sel-sched.c (move_exprs_to_boundary): Transitively add all
11753 originators' originators.
11755 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11757 PR rtl-optimization/39453
11758 PR rtl-optimization/42246
11759 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
11761 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
11763 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11764 Alexander Monakov <amonakov@ispras.ru>
11766 PR middle-end/42245
11767 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
11768 (maybe_tidy_empty_bb): ... here. Make static. Add new
11769 argument. Update all callers.
11770 (tidy_control_flow): ... and here. Recompute topological order
11771 of basic blocks in region if necessary.
11772 (sel_redirect_edge_and_branch): Change return type. Return true
11773 if topological order might have been invalidated.
11774 (purge_empty_blocks): Export and move from...
11775 * sel-sched.c (purge_empty_blocks): ... here.
11776 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
11777 (maybe_tidy_empty_bb): Delete prototype.
11778 (purge_empty_blocks): Declare.
11780 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11782 PR rtl-optimization/42249
11783 * sel-sched.c (try_replace_dest_reg): When chosen register
11784 and original register is the same, do not bail out early, but
11785 still check all original insns for validity of replacing destination
11786 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
11789 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11792 Port from no-undefined-overflow branch:
11793 2009-03-09 Richard Guenther <rguenther@suse.de>
11795 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
11797 2010-01-14 Richard Guenther <rguenther@suse.de>
11800 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
11802 2010-01-14 Ira Rosen <irar@il.ibm.com>
11804 PR tree-optimization/42709
11805 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
11806 as scalar type in creation of constant vector operand.
11808 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11811 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
11812 (check-parallel-%): Match `testsuite' directory component only
11815 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
11817 PR translation/39521
11818 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
11821 2010-01-13 Richard Guenther <rguenther@suse.de>
11823 PR tree-optimization/42730
11824 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
11827 2010-01-13 Steve Ellcey <sje@cup.hp.com>
11830 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
11831 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
11834 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
11836 * config/bfin/libgcc-bfin.ver: Regenerate based on current
11837 libgcc-std.ver. Add entries for ___smulsi3_highpart and
11838 ___umulsi3_highpart.
11840 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
11841 rather than schedule_insns if the pass is enabled.
11843 2010-01-13 Martin Jambor <mjambor@suse.cz>
11845 PR tree-optimization/42704
11846 * tree-sra.c (sra_modify_assign): Do not delete assignments to
11849 2010-01-13 Martin Jambor <mjambor@suse.cz>
11851 PR tree-optimization/42703
11852 * tree-sra.c (analyze_access_subtree): Check that we can build a
11853 reference to the original data within the aggregate.
11855 2010-01-13 Richard Guenther <rguenther@suse.de>
11857 PR tree-optimization/42705
11858 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
11860 2010-01-13 Richard Guenther <rguenther@suse.de>
11862 PR middle-end/42716
11863 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
11865 2010-01-13 Jakub Jelinek <jakub@redhat.com>
11868 * var-tracking.c (values_to_unmark): New variable.
11869 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
11870 values_to_unmark vector. Moved body to...
11871 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
11872 instead queue it into values_to_unmark vector.
11873 (vt_find_locations): Free values_to_unmark vector.
11875 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
11877 * config/s390/s390.c (override_options): Set
11878 default of max-pending-list-length to 256
11880 2010-01-13 Richard Guenther <rguenther@suse.de>
11883 * tree-pass.h (PROP_gimple_lcx): New.
11884 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
11885 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
11886 before the final cleanup_eh.
11887 (dump_properties): Dump PROP_gimple_lcx.
11888 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
11889 (tree_lower_complex_O0): Remove.
11890 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
11891 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
11892 tree_lower_complex, schedule TODO_update_ssa.
11893 * lto-streamer-out.c (output_function): Stream the functions
11895 * lto-streamer-in.c (input_function): Likewise.
11896 (lto_read_body): Do not override them here.
11898 2010-01-12 Joseph Myers <joseph@codesourcery.com>
11901 * c-typeck.c (build_c_cast): Fold value cast to union type before
11902 wrapping it in a CONSTRUCTOR.
11904 2010-01-12 Jakub Jelinek <jakub@redhat.com>
11906 PR rtl-optimization/42699
11907 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
11910 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11912 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11913 SUBTARGET_WARN_UNUSED_SPEC): Move ...
11914 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11915 SUBTARGET_WARN_UNUSED_SPEC): ... here
11916 * config/mips/iris5.h (LIBGCC_SPEC): Define.
11918 2010-01-12 Julian Brown <julian@codesourcery.com>
11920 * config/arm/neon-schedgen.ml (Utils): Don't try to
11921 open missing module.
11922 (find_with_result): New.
11924 2010-01-12 Jakub Jelinek <jakub@redhat.com>
11927 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
11928 sharing when canonicalizing ({lt,ge}u (plus a b) b).
11930 PR tree-optimization/42645
11931 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
11932 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
11933 decl_map, set processing_debug_stmt to -1 and return name without
11936 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
11938 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
11939 binutils version, and reword target configuration description.
11941 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
11943 * config/avr/avr.h (LINKER_NAME): Remove.
11945 2010-01-11 Janis Johnson <janis187@us.ibm.com>
11948 * config/rs6000/rs6000.c (rs6000_override_options): On targets
11949 that support VSX, warn for -mno-altivec if vsx is not disabled,
11952 2010-01-11 Joseph Myers <joseph@codesourcery.com>
11953 Shujing Zhao <pearly.zhao@oracle.com>
11955 PR translation/42469
11956 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
11957 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
11958 character between option name and help text.
11959 * c.opt (imultilib): Likewise.
11961 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
11963 * lto-streamer-out.c (output_unreferenced_globals): Output static
11966 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
11968 PR rtl-optimization/42621
11969 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
11970 optimizing for size.
11971 (duplicate_computed_gotos): Remove now-redundant check.
11973 2010-01-10 Steve Ellcey <sje@cup.hp.com>
11976 * configure.ac: Save and restore LDFLAGS and LIBS
11977 * configure: Regenerate.
11979 2010-01-10 Richard Guenther <rguenther@suse.de>
11981 PR middle-end/42667
11982 * builtins.c (fold_builtin_strlen): Add type argument and
11983 convert the resulting length to it.
11984 (fold_builtin_1): Adjust.
11986 2010-01-09 Jakub Jelinek <jakub@redhat.com>
11988 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
11989 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
11991 (num_insns_constant_wide): Adjust for that change.
11993 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11996 * web.c (union_defs): Add used argument, to combine uses of
11997 uninitialized regs.
11998 (entry_register): Adjust type and tests of used argument.
11999 (web_main): Widen used for new use. Pass it to union_defs.
12000 * df.h (union_defs): Adjust prototype.
12002 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12005 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
12006 uses in new incoming argument. Free body.
12007 (reset_debug_uses_in_loop): New.
12008 (analyze_insn_to_expand_var): Call the latter if the former found
12009 anything. Fix whitespace. Reject invalid dest overlaps before
12010 going through all insns in the loop.
12012 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12015 * haifa-sched.c (dying_use_p): Debug insns don't count.
12017 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12019 PR middle-end/42363
12020 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
12021 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
12022 (verify_gimple_call): Reject LHS in noreturn calls.
12024 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12028 * tree-vect-loop-manip.c (adjust_info): New type.
12029 (adjust_vec): New pointer to vector.
12030 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
12031 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
12032 (slpeel_update_phis_for_duplicate_loop): Use them.
12033 (slpeel_update_phi_nodes_for_guard1): Likewise.
12034 (slpeel_update_phi_nodes_for_guard2): Likewise.
12035 (slpeel_tree_peel_loop_to_edge): Likewise.
12036 (vect_update_ivs_after_vectorizer): Likewise.
12038 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12040 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
12041 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
12043 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12045 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
12046 bogus uninitialized warning.
12048 2010-01-09 Richard Guenther <rguenther@suse.de>
12050 PR middle-end/42512
12051 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
12052 the evolution is compatible with the initial condition.
12054 2010-01-09 Jakub Jelinek <jakub@redhat.com>
12056 * gcc.c (process_command): Update copyright notice dates.
12057 * gcov.c (print_version): Likewise.
12058 * gcov-dump.c (print_version): Likewise.
12059 * mips-tfile.c (main): Likewise.
12060 * mips-tdump.c (main): Likewise.
12062 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
12065 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
12067 (rotlhi3_8): Delete.
12069 (rotlsi3_8): Delete.
12070 (rotlsi3_16): Delete.
12071 (rotlsi3_24): Delete.
12072 (rotl<mode>3): New.
12073 (*rotw<mode>3): New.
12074 (*rotb<mode>3): New.
12075 * config/avr/avr.c (avr_rotate_bytes): New function.
12076 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
12078 2010-01-08 Steve Ellcey <sje@cup.hp.com>
12081 * configure.ac: Modify -rdynamic check.
12082 * configure: Regenerate.
12084 2010-01-08 DJ Delorie <dj@redhat.com>
12086 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
12087 register popping order.
12089 2010-01-08 Richard Guenther <rguenther@suse.de>
12092 * c.opt (fsigned-char): Also let LTO handle this option.
12093 (funsigned-char): Likewise.
12095 2010-01-07 Richard Guenther <rguenther@suse.de>
12097 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
12098 (gimple_op): Likewise.
12099 (gimple_op_ptr): Likewise.
12100 (gimple_assign_set_lhs): Remove gcc_assert.
12101 (gimple_assign_set_rhs1): Likewise.
12102 (gimple_assign_set_rhs2): Likewise.
12103 (gimple_call_set_lhs): Likewise.
12104 (gimple_call_set_fn): Likewise.
12105 (gimple_call_set_fndecl): Likewise.
12106 (gimple_call_fndecl): Likewise.
12107 (gimple_call_return_type): Likewise.
12108 (gimple_call_set_chain): Likewise.
12109 (gimple_call_num_args): Likewise.
12110 (gimple_call_set_arg): Likewise.
12111 (gimple_cond_set_code): Likewise.
12112 (gimple_cond_set_lhs): Likewise.
12113 (gimple_cond_set_rhs): Likewise.
12114 (gimple_cond_set_true_label): Likewise.
12115 (gimple_cond_set_false_label): Likewise.
12116 (gimple_label_set_label): Likewise.
12117 (gimple_goto_set_dest): Likewise.
12118 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
12119 (gimple_debug_bind_get_value): Likewise.
12120 (gimple_debug_bind_get_value_ptr): Likewise.
12121 (gimple_debug_bind_set_var): Likewise.
12122 (gimple_debug_bind_set_value): Likewise.
12123 (gimple_debug_bind_reset_value): Likewise.
12124 (gimple_debug_bind_has_value_p): Likewise.
12125 (gimple_return_retval_ptr): Remove gcc_assert.
12126 (gimple_return_retval): Likewise.
12127 (gimple_return_set_retval): Likewise.
12128 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
12129 (safe_referenced_var_iterator): Remove.
12130 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
12131 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
12132 (fill_referenced_var_vec): Remove.
12133 (first_readonly_imm_use): Remove redundant gcc_assert.
12134 (phi_arg_index_from_use): Combine gcc_asserts.
12135 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
12136 (first_imm_use_stmt): Remove redundant gcc_assert.
12137 * tree-cfg.c (verify_gimple_call): Verify function and chain
12138 operands. Verify arguments.
12139 (verify_types_in_gimple_stmt): Verify condition code and labels.
12141 2010-01-07 Richard Guenther <rguenther@suse.de>
12143 PR tree-optimization/42641
12144 * sese.c (rename_map_elt_info): Use the SSA name version, do
12147 2010-01-07 Jakub Jelinek <jakub@redhat.com>
12149 PR tree-optimization/42625
12150 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
12151 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
12153 2010-01-07 Duncan Sands <baldrick@free.fr>
12155 * Makefile.in (PLUGIN_HEADERS): Add version.h.
12157 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
12160 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
12161 note itself is not function_invariant_p.
12163 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
12165 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
12166 Do not add the DF_NOTE problem.
12167 * store-motion.c (execute_rtl_store_motion): Likewise.
12169 2010-01-07 Martin Jambor <mjambor@suse.cz>
12171 PR tree-optimization/42157
12172 * tree-sra.c (compare_access_positions): Stabilize sort if both
12173 accesses have integer types, return zero immediately if they are the
12176 2010-01-06 Richard Henderson <rth@redhat.com>
12178 PR middle-end/41883
12179 * haifa-sched.c (add_to_note_list): Merge into ...
12180 (concat_note_lists): ... here, and ...
12181 (unlink_other_notes, rm_other_notes): Merge into...
12182 (remove_notes): ... here. Create REG_SAVE_NOTEs for
12183 NOTE_INSN_EPILOGUE_BEG.
12185 2010-01-06 Richard Guenther <rguenther@suse.de>
12187 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
12188 not inline regular functions into always-inline functions.
12190 2010-01-06 Nick Clifton <nickc@redhat.com>
12192 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
12193 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
12195 (OVERRIDE_OPTIONS): Delete.
12196 (OPTIMIZATION_OPTIONS): Define.
12197 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
12198 * config/rx/rx.c (rx_handle_option): Issue an error message if
12199 -mcpu=rx200 and -fpu are used together.
12200 (rx_set_optimization_options): New function. Issue an error
12201 message if an optimization attribute attempts to reset the FPU/
12202 math optimization pairing.
12203 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
12204 * config/rx/rx.opt: Set the default to 32-bit doubles.
12205 * config/rx/t-rx: Add multilibs for -nofpu option.
12206 * doc/invoke.texi: Update documentation of RX options.
12208 2010-01-06 Richard Guenther <rguenther@suse.de>
12210 * tree-ssa-pre.c (name_to_id): New global.
12211 (alloc_expression_id): Simplify SSA name handling.
12212 (lookup_expression_id): Likewise.
12213 (init_pre): Zero name_to_id.
12214 (fini_pre): Free it.
12216 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
12218 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
12220 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
12223 * config/i386/sse.md (smaxv2di3): New.
12224 (umaxv2di3): Likewise.
12225 (sminv2di3): Likewise.
12226 (uminv2di3): Likewise.
12228 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
12231 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
12232 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
12233 (legitimize_tls_address): Likewise.
12234 (sparc_tls_referenced_p): Likewise.
12235 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
12236 and adjust calls to legitimize_pic_address.
12237 (legitimate_constant_p) Use sparc_tls_referenced_p.
12238 (legitimate_pic_operand_p): Likewise.
12239 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
12240 (sparc_tls_symbol_ref_1): Delete.
12241 (sparc_tls_referenced_p): Make static, recognize specific patterns.
12242 (legitimize_tls_address): Make static, handle CONST patterns.
12243 (legitimize_pic_address): Make static, remove unused parameter and
12244 adjust recursive calls.
12245 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
12246 and adjust call to legitimize_pic_address.
12247 (sparc_output_mi_thunk): Likewise.
12249 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
12250 H.J. Lu <hongjiu.lu@intel.com>
12253 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
12254 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
12255 operands to make them signed.
12258 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12261 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12262 GTU to GT for V4SI and V2DI.
12264 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12265 (umin<mode>3): Removed.
12267 (uminv4si3): Likewise.
12269 2010-01-05 Martin Jambor <mjambor@suse.cz>
12271 PR tree-optimization/42462
12272 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
12273 current_function_decl to helper functions and macros.
12275 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12278 * flags.h: Don't include real.h.
12279 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
12280 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
12281 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
12282 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
12283 * dominance.c: Update copyright.
12284 * gimple.c (walk_gimple_op): Remove inline.
12285 * tree-ssa-reassoc.c: Include real.h.
12286 * Makefile.in (FLAGS_H): Remove $(REAL_H).
12287 (tree-ssa-reassoc.o): Depend on $(REAL_H).
12289 2010-01-05 Nick Clifton <nickc@redhat.com>
12291 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
12292 register to push into the stack frame when the accumulator has to
12293 be saved during interrupts.
12295 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
12297 * doc/invoke.texi: Remove the documentation about option
12298 -Wunreachable-code.
12299 * common.opt (Wunreachable-code): Preserved for backward
12301 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
12302 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
12303 the backward compatibility flag section.
12305 2010-01-05 Richard Guenther <rguenther@suse.de>
12307 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
12309 2010-01-05 Jakub Jelinek <jakub@redhat.com>
12312 * cfgexpand.c (expand_one_var): Diagnose too large variables.
12314 PR tree-optimization/42508
12315 * tree-sra.c (convert_callers): Check for recursive call
12316 by comparing cgraph nodes instead of decls.
12317 (modify_function): Call ipa_modify_formal_parameters also
12318 on all same_body aliases.
12320 * cgraphunit.c (cgraph_materialize_all_clones): Compare
12321 cgraph nodes when checking for same_body aliases.
12323 2010-01-05 Richard Guenther <rguenther@suse.de>
12325 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
12326 allocation and lookup.
12327 (get_or_alloc_expr_for_constant): Likewise.
12328 (phi_translate): Sink allocation.
12330 2010-01-04 Richard Guenther <rguenther@suse.de>
12332 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
12333 a new entry only if needed.
12334 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
12335 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
12337 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
12339 (phi_translate): Handle CONSTANTs early.
12341 2010-01-04 Martin Jambor <mjambor@suse.cz>
12343 PR tree-optimization/42398
12344 * tree-sra.c (struct access): Removed flag grp_different_types.
12345 (dump_access): Do not dump the removed flag.
12346 (sort_and_splice_var_accesses): Do not set the removed flag.
12347 (sra_modify_expr): Check for type compatibility directly.
12349 2010-01-04 Martin Jambor <mjambor@suse.cz>
12351 PR tree-optimization/42366
12352 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
12353 edges with variable number of parameters.
12354 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
12355 flag instead of asserting it.
12356 (ipa_read_node_info): Read uses_analysis_done flag.
12358 2010-01-04 Richard Guenther <rguenther@suse.de>
12360 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
12361 iterative_hash_* as intended.
12362 (vn_reference_compute_hash): Likewise. Simplify hashing
12364 (vn_reference_lookup_2): Likewise.
12365 (vn_nary_op_compute_hash): Likewise.
12366 (vn_phi_compute_hash): Likewise.
12367 (expressions_equal_p): Remove strange code.
12368 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
12369 (pre_expr_hash): Likewise. Simplify hashing SSA names.
12370 (bitmap_insert_into_set_1): Take value-id as parameter.
12371 (add_to_value): Pass it.
12372 (bitmap_insert_into_set): Likewise.
12373 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
12375 2010-01-04 Jakub Jelinek <jakub@redhat.com>
12378 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
12379 (do_self_spec): For switches with SWITCH_IGNORE set set also
12380 SWITCH_IGNORE_PERMANENTLY.
12381 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
12384 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
12386 * lto-streamer-out.c (output_unreferenced_globals): Output the full
12387 tree of an unreferenced global var.
12389 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12392 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12393 GTU to GT for V4SI and V2DI.
12395 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12396 (umin<mode>3): Removed.
12398 (uminv4si3): Likewise.
12400 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12403 * collect2.c (main): Turn on trace in collect2 if -v is passed
12406 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
12408 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
12409 description of expression operand.
12411 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
12413 * configure.ac: Add install-html to target_list for Make-hooks.
12414 * configure: Regenerate.
12415 * fortran/Make-lang.in (F95_HTMLFILES): New.
12416 (fortran.html): Use it.
12417 (fortran.install-html): New.
12418 * Makefile.in (install-html): Add lang.install-html.
12419 * java/Make-lang.in (JAVA_HTMLFILES): New.
12420 (java.html): Use it.
12421 (java.install-html): New.
12422 * objc/Make-lang.in (objc.install-html): New.
12423 * objcp/Make-lang.in (obj-c++.install-html): New.
12424 * cp/Make-lang.in (c++.install-html): New.
12425 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
12426 * lto/Make-lang.in (lto.install-html): New.
12428 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
12431 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
12433 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
12435 PR rtl-optimization/41862
12436 * store-motion.c (store_killed_in_insn, compute_store_table,
12437 remove_reachable_equiv_notes, replace_store_insn,
12438 build_store_vectors): Ignore all DEBUG_INSNs.
12440 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
12443 * common.opt: Add dumpdir.
12445 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
12447 (option_map): Add --dumpdir.
12449 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
12451 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
12453 * opts.c (decode_options): Try dump_dir_name first if
12454 dump_base_name isn't an absolute path.
12455 (common_handle_option): Handle OPT_dumpdir.
12457 * toplev.c (dump_dir_name): New.
12458 (print_switch_values): Also ignore -dumpdir.
12460 * toplev.h (dump_dir_name): New.
12462 2010-01-03 Richard Guenther <rguenther@suse.de>
12464 PR tree-optimization/42589
12465 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
12466 double-word expansion of bswap32.
12468 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
12470 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
12471 with BLOCK_FOR_INSN.
12472 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
12473 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
12474 noce_process_if_block): Likewise.
12475 * gcse.c (compute_local_properties, insert_expr_in_table,
12476 insert_set_in_table, canon_list_insert, find_avail_set,
12477 pre_insert_copy_insn): Likewise.
12479 * basic-block.h (BLOCK_NUM): Move from here...
12480 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
12482 2010-01-03 Richard Guenther <rguenther@suse.de>
12484 PR tree-optimization/42438
12485 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
12486 contains_may_not_return_call flag.
12487 (BB_MAY_NOTRETURN): New.
12488 (valid_in_sets): Trapping nary operations are not valid
12489 in blocks that may not return.
12490 (insert_into_preds_of_block): Remove check for trapping expressions.
12491 (compute_avail): Compute also BB_MAY_NOTRETURN.
12493 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
12495 * doc/invoke.texi: Add 2010 to copyright years.
12497 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
12499 * config/sparc/sparc.c: Fix formatting nits.
12501 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
12502 Alexander Monakov <amonakov@ispras.ru>
12504 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
12506 2010-01-02 Richard Guenther <rguenther@suse.de>
12508 PR middle-end/42577
12509 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
12510 (simplify_switch_using_ranges): Mark to be removed edges
12513 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12515 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12517 * collect2.c (scan_libraries): Add missing argument in call to
12520 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
12523 * config/alpha/predicates.md (aligned_memory_operand): Return false
12525 (unaligned_memory_operand): Return true for CQImode.
12526 * config/alpha/alpha.c (get_aligned_mem): Assert that location
12527 doesn not cross aligned SImode word boundary.
12529 2010-01-02 Anatoly Sokolov <aesok@post.ru>
12531 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
12533 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
12534 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
12536 2010-01-02 Richard Guenther <rguenther@suse.de>
12539 * toplev.c (compile_file): Emit LTO marker properly. Change
12540 it to __gnu_lto_v1.
12541 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
12543 2010-01-01 Richard Guenther <rguenther@suse.de>
12546 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
12548 2010-01-01 Richard Guenther <rguenther@suse.de>
12551 * c-decl.c (grokdeclarator): For zero-size arrays force
12552 structural equality checks as layout_type does.
12554 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
12556 * builtins.c: Update copyright to 2010.
12558 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
12561 * lto-streamer-out.c (produce_asm): Revert the last change.
12562 (copy_function): Likewise.
12564 * lto-streamer.c (lto_get_section_name): Skip any leading
12567 2010-01-01 Richard Guenther <rguenther@suse.de>
12569 PR middle-end/42559
12570 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
12574 Copyright (C) 2010 Free Software Foundation, Inc.
12576 Copying and distribution of this file, with or without modification,
12577 are permitted in any medium without royalty provided the copyright
12578 notice and this notice are preserved.