1 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
4 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
5 statement has no arguments.
7 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
10 * varasm.c (emutls_decl): Merge attributes to new decl.
12 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
15 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
16 around the uniquized constructor if its type requires a conversion.
18 2010-05-21 Jakub Jelinek <jakub@redhat.com>
21 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
22 at -O0 goto_locus of any of the incoming edges differs from
23 goto_locus of outgoing edge, or gimple_location of any of the
26 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
28 * ira.c (ira_non_ordered_class_hard_regs): Define.
29 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
30 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
31 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
32 cost of unaligned hard regs when allocating multi-reg pseudos.
34 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
36 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
37 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
39 * config/mips/mips.c (mips_file_start): Expand conditional expression
40 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
41 (mips_override_options): Move -mno-float override -msoft-float and
43 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
44 Condition(TARGET_SUPPORTS_NO_FLOAT).
45 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
47 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
48 (TARGET_SUPPORTS_NO_FLOAT): Define.
49 * config/mips/sdemtk.opt: Delete.
51 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
53 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail
56 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
59 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
60 * configure: Regenerate.
61 * config.in: Regenerate.
62 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
63 instead of sahf only for 64bit targets.
65 2010-05-20 Jakub Jelinek <jakub@redhat.com>
68 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
69 setup_ref_regs for DEBUG_INSNs.
71 2010-05-20 Jan Hubicka <jh@suse.cz>
74 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
76 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
79 * df-scan.c (df_ref_compare): Stabilize sort.
81 2010-05-20 Jakub Jelinek <jakub@redhat.com>
83 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
84 argument. Don't use DW_OP_piece if offset is non-zero,
85 put offset into second DW_OP_bit_piece argument.
86 (dw_sra_loc_expr): Adjust callers. For memory expressions
89 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
92 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
93 settings for 16-bit-constant "addo" alternative.
95 2010-05-19 James E. Wilson <wilson@codesourcery.com>
97 * config/mips/mips-dsp.md (add<DSPV:mode>3,
98 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
101 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
102 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
105 2010-05-19 Joseph Myers <joseph@codesourcery.com>
107 * diagnostic.c (FLOAT, FFS): Don't undefine.
108 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
109 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
112 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
114 * combine.c (propagate_for_debug): Call make_compound_operation
116 (try_combine): When implementing a split chosen by find_split_point,
117 either copy i2src or set it to null. Assert that i2src is not null
118 before substituting into CALL_INSN_FUNCTION_USAGE.
120 2010-05-19 Anatoly Sokolov <aesok@post.ru>
122 * double-int.h (double_int_ior): New function.
123 * tree.h (build_int_cst_wide_type): Remove.
124 * tree.c (build_int_cst_wide_type): Remove.
125 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
126 of build_int_cst_wide_type.
127 * stor-layout.c (set_sizetype): (Ditto.).
128 * dojump.c (do_jump): Use build_int_cstu instead of
129 build_int_cst_wide_type.
131 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
133 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
134 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
135 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
136 * gimplify.c: (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
137 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
138 propagate the 'data' argument to copy_tree_r.
139 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
140 Propagate 'data' argument to walk_tree.
141 (copy_if_shared): New function.
142 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
143 (unmark_visited): New function.
144 (unshare_body): Call copy_if_shared instead of doing it manually.
145 (unvisit_body): Call unmark_visited instead of doing it manually.
147 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
149 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
150 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
152 * target-def.h (TARGET_FOLD_BUILTIN): Define to
153 hook_tree_tree_int_treep_bool_null.
154 * target.h: (struct gcc_target): Update signature of fold_builtin
156 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
157 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
158 instead of the call expression.
159 (fold_builtin_call_array): Pass n and argarray directly.
160 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
162 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
163 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
164 `i' and use it in place of `arity'.
165 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
166 Dereference `args' directly.
167 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
169 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
171 * doc/sourcebuild.texi (Effective-Target Keywords): Document
173 (Directives): Document optional dg-require-effective-target
176 2010-05-19 Richard Guenther <rguenther@suse.de>
179 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
181 2010-05-19 Richard Guenther <rguenther@suse.de>
183 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
184 * common.opt (fwhopr=): New.
185 * opts.c (common_handle_option): Handle OPT_fwhopr.
186 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
187 * collect2.c (main): Match -fwhopr*.
188 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
189 Execute ltrans stage in parallel when jobs is bigger than 1.
191 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
193 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
194 pentiumpro on Solaris 8/x86 with Sun as.
195 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
197 (gcc_cv_as_ix86_quad): Check for .quad directive.
198 * configure: Regenerate.
199 * config.in: Regenerate.
200 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
202 2010-05-19 Martin Jambor <mjambor@suse.cz>
204 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
205 also for indirect edges. Actual printing moved...
206 (ipa_print_node_jump_functions_for_edge): ...here.
207 (ipa_compute_jump_functions): Renamed to
208 ipa_compute_jump_functions_for_edge and made static.
209 (ipa_compute_jump_functions): New function.
210 (make_edge_direct_to_target): Check if the number of arguments on
211 the newly direct edge is the same as the number of parametrs of
213 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
214 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
215 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
216 analysis functions unconditionally, call the new
217 ipa_analyze_params_uses on the node instead of every edge.
219 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
221 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
223 (dump_mem_ref): Adopt debug code to handle a tree as step. This
224 also checks for a constant int vs. non-constant but
225 loop-invariant steps.
226 (find_or_create_group): Change the sort algorithm to only consider
227 steps that are constant ints.
228 (idx_analyze_ref): Adopt code to handle a tree instead of a
229 HOST_WIDE_INT for step.
230 (gather_memory_references_ref): Handle tree instead of int and be
231 prepared to see a NULL_TREE.
232 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
233 prefetches if the step cannot be calculated at compile time.
234 (issue_prefetch_ref): Issue prefetches for non-constant but
235 loop-invariant steps.
237 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
240 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
242 * tree.h (build_call_list): Remove.
243 * tree.c (build_call_list): Remove.
245 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
247 * tree.h (build_call_list): Remove.
248 * tree.c (build_call_list): Remove.
250 2010-05-18 Jan Hubicka <jh@suse.cz>
252 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
254 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
256 PR rtl-optimization/43332
257 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
259 2010-05-18 Anatoly Sokolov <aesok@post.ru>
261 * tree.h (build_int_cstu): Implement as static inline.
262 * tree.c (build_int_cstu): Remove function.
263 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
266 2010-05-18 Richard Guenther <rguenther@suse.de>
269 * lto-wrapper.c (verbose): New variable. Initialize from -v.
270 (debug): Initialize from -save-temps.
271 (collect_execute): Print command-line when verbose.
272 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
273 for ltrans invocation. Produce -dumpbase flag again.
274 (process_args): Remove.
276 * collect2.c (maybe_run_lto_and_relink): Only pass object
277 files to lto-wrapper.
278 * gcc.c (LINK_COMMAND_SPEC): Likewise.
280 2010-05-18 Jan Hubicka <jh@suse.cz>
282 * opts.c (decode_options): Do not disable whopr at ipa_cp.
283 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
285 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
288 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
290 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
293 2010-05-18 Jakub Jelinek <jakub@redhat.com>
296 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
299 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
301 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
302 lto-macho as lto_binary_reader.
304 * darwin.c (darwin_asm_named_section): Do not add assembler comment
305 after .section directive; just print it before the directive instead.
307 2010-05-17 Jan Hubicka <jh@suse.cz>
309 * cgraph.c (cgraph_create_virtual_clone): Only check
310 versionable_function_p when not in wpa and checking is enabled.
311 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
312 there are no more functions to materialize.
314 2010-05-17 Jan Hubicka <jh@suse.cz>
316 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
317 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
319 (output_cgraph): Call output_cgraph_opt_summary.
320 (input_cgrpah): Call input_cgraph_opt_summary.
321 (output_cgraph_opt_summary_p, output_node_opt_summary,
322 input_node_opt_summary, input_cgraph_opt_section): New functions.
323 * lto-section-in.c (lto_section_name): Add cgraphopt.
324 * tree-inline.c (tree_function_versioning): Handle parm_num.
325 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
326 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
328 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
330 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
331 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
332 the insn to prefetch ratio heuristic to loops with known trip count.
334 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
336 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
337 (schedule_prefetches): Do not generate a prefetch if the unroll factor
338 is far from what is required by the prefetch.
340 2010-05-17 Jan Hubicka <jh@suse.cz>
342 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
343 (ipcp_estimate_growth): Likewise.
344 (ipcp_const_param_count): Likewise.
345 (ipcp_insert_stage): Likewise.
346 * ipa-prop.c (visit_load_for_mod_analysis): New function.
347 (visit_store_addr_for_mod_analysis): Set used flag.
348 (ipa_detect_param_modifications): Set used flag for SSE params;
349 update use of walk_stmt_load_store_addr_ops.
350 (ipa_print_node_params): Print used flag.
351 (ipa_write_node_info): Stream used flag.
352 (ipa_read_node_info): Likewise.
353 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
354 (ipa_is_param_used): New function.
355 (lto_ipa_fixup_call_notes): Remove unused declaration.
357 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
360 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
361 * configure: Regenerate.
362 * config.in: Regenerate.
363 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
364 !HAVE_AS_IX86_REP_LOCK_PREFIX.
365 Don't emit whitespace.
366 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
367 (*rep_movsi): Likewise.
368 (*rep_movsi_rex64): Likewise.
369 (*rep_movqi): Likewise.
370 (*rep_movqi_rex64): Likewise.
371 (*rep_stosdi_rex64): Likewise.
372 (*rep_stossi): Likewise.
373 (*rep_stossi_rex64): Likewise.
374 (*rep_stosqi): Likewise.
375 (*rep_stosqi_rex64): Likewise.
376 (*cmpstrnqi_nz_1): Use {%;} after repz.
377 (*cmpstrnqi_nz_rex_1): Likewise.
378 (*cmpstrnqi_1): Likewise.
379 (*cmpstrnqi_rex_1): Likewise.
380 (*strlenqi_1): Use {%;} after repnz.
381 (*strlenqi_rex_1): Likewise.
382 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
383 (*sync_compare_and_swap<mode>): Likewise.
384 (sync_double_compare_and_swap<mode>): Likewise.
385 (*sync_double_compare_and_swapdi_pic): Likewise.
386 (sync_old_add<mode>): Likewise.
387 (sync_add<mode>): Likewise.
388 (sync_sub<mode>): Likewise.
389 (sync_<code><mode>): Likewise.
391 2010-05-17 Martin Jambor <mjambor@suse.cz>
393 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
394 otr_token and polymorphic.
395 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
396 (cgraph_clone_edge): Copy the above fields.
397 * tree.c (get_binfo_at_offset): New function.
398 * tree.h (get_binfo_at_offset): Declare.
399 * ipa-prop.h (enum jump_func_type): Added known_type jump function
400 type, reordered items, updated comments.
401 (union jump_func_value): Added base_type field, reordered fields.
402 (enum ipa_lattice_type): Moved down in the file.
403 (struct ipa_param_descriptor): New field polymorphic.
404 (ipa_is_param_polymorphic): New function.
405 * ipa-prop.c: Include gimple.h and gimple-fold.h.
406 (ipa_print_node_jump_functions): Print known type jump functions.
407 (compute_complex_pass_through): Renamed to...
408 (compute_complex_assign_jump_func): this.
409 (compute_complex_ancestor_jump_func): New function.
410 (compute_known_type_jump_func): Likewise.
411 (compute_scalar_jump_functions): Create known type and complex ancestor
413 (ipa_note_param_call): New parameter polymorphic, set the corresponding
414 flag in the call note accordingly.
415 (ipa_analyze_call_uses): Renamed to...
416 (ipa_analyze_indirect_call_uses): this. New parameter target, define
417 variable var only in the block where it is used.
418 (ipa_analyze_virtual_call_uses): New function.
419 (ipa_analyze_call_uses): Likewise.
420 (combine_known_type_and_ancestor_jfs): Likewise.
421 (update_jump_functions_after_inlining): Implemented handling of a
422 number of new jump function types combination.
423 (print_edge_addition_message): Removed.
424 (make_edge_direct_to_target): New function.
425 (try_make_edge_direct_simple_call): Likewise.
426 (try_make_edge_direct_virtual_call): Likewise.
427 (update_call_notes_after_inlining): Renamed to...
428 (update_indirect_edges_after_inlining): this. Moved edge creation for
429 indirect calls to try_make_edge_direct_simple_call, also calls
430 try_make_edge_direct_virtual_call for virtual calls.
431 (ipa_print_node_params): Changed the header message.
432 (ipa_write_jump_function): Stream also known type jump functions.
433 (ipa_read_jump_function): Likewise.
434 (ipa_write_indirect_edge_info): Stream new fields in
435 cgraph_indirect_call_info.
436 (ipa_read_indirect_edge_info): Likewise.
437 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
440 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
442 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
444 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
446 * tree.h (CALL_EXPR_ARGS): Delete.
447 (call_expr_arglist): Delete.
448 * tree.c (call_expr_arglist): Delete.
449 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
450 targetm.fold_builtin.
451 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
452 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
453 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
454 arglist parameter. Use CALL_EXPR_ARG.
455 (picochip_expand_builtin_3op): Likewise.
456 (picochip_expand_builtin_2opvoid): Likewise.
457 (picochip_expand_array_get): Likewise.
458 (picochip_expand_array_put): Likewise.
459 (picochip_expand_array_testport): Likewise.
460 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
462 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
464 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
465 than TREE_VALUE and TREE_CHAIN.
466 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
467 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
470 2010-05-17 Jakub Jelinek <jakub@redhat.com>
473 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
474 to have no fallthru edge.
477 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
478 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
479 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
480 add BARRIER after previous bb if needed.
482 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
484 * tree.c (build_function_type_list_1): Remove bogus assert condition.
486 2010-05-17 Alan Modra <amodra@gmail.com>
488 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
489 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
490 with copy_reg rtx param.
491 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
492 Correct cases where code for ABI_V4 did not initialise the reg
493 used to access frame. Also leave frame_reg_rtx as sp for large
494 frames that save no regs.
496 2010-05-17 Martin Jambor <mjambor@suse.cz>
499 * tree-sra.c (create_access_replacement): New parameter rename, mark
500 the replaement for renaming only when it is true.
501 (get_access_replacement): Pass true in the rename parameter of
502 create_access_replacement.
503 (get_unrenamed_access_replacement): New function.
504 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
505 replacement declaration from it.
507 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
509 * function.c (try_fit_stack_local, add_frame_space): New static
511 (assign_stack_local_1): Use them. Look for opportunities to use
512 space previously wasted on alignment.
513 * function.h (struct frame_space): New.
514 (struct rtl_data): Add FRAME_SPACE_LIST member.
515 * reload1.c (something_was_spilled): New static variable.
517 (reload): Test it in addition to testing if the frame size changed.
519 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
521 * config/s390/s390.c: Define sane prefetch settings and activate
522 flag_prefetch_loop_arrays on -O3.
523 * config/s390/s390.h: Declare that read can use write prefetch.
525 2010-05-17 Jakub Jelinek <jakub@redhat.com>
527 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
530 2010-05-16 Jan Hubicka <jh@suse.cz>
532 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
533 function body; do not check stdarg field of struct function.
535 2010-05-16 Jan Hubicka <jh@suse.cz>
537 * cgraph.c (dump_cgraph_node): Dump versionable flag.
538 * cgraph.h (cgraph_local_info): Add versionable flag.
539 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
540 (ipcp_versionable_function_p): Use it.
541 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
544 2010-05-16 Jan Hubicka <jh@suse.cz>
546 * cgraph.c (cgraph_clone_node): Take decl argument and insert
547 clone into hash when it is different from orig.
548 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
549 * cgraph.h (cgraph_clone_node): Update prototype.
550 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
551 (lto_cgraph_encoder_delete): Delete body map.
552 (lto_cgraph_encoder_size): Move to header.
553 (lto_cgraph_encoder_encode_body_p,
554 lto_set_cgraph_encoder_encode_body): New.
555 (lto_output_node): Do not take written_decls argument; output clone_of
557 (add_node_to): Add include_body_argument; call
558 lto_set_cgraph_encoder_encode_body on master of the clone.
559 (add_references): Update use of add_node_to.
560 (compute_ltrans_boundary): Likewise.
561 (output_cgraph): Do not create written_decls bitmap.
562 (input_node): Take nodes argument; stream in clone_of correctly.
563 (input_cgraph_1): Update use of input_node.
564 * lto-streamer-out.c (lto_output): Use encoder info to decide
565 what bodies to output.
566 * ipa-inline.c (cgraph_clone_inlined_nodes,
567 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
568 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
569 (lto_cgraph_encoder_size): Define here.
570 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
573 2010-05-16 Richard Guenther <rguenther@suse.de>
575 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
577 * ipa-type-escape.c (gate_type_escape_vars): Run when
578 -fipa-struct-reorg runs.
579 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
580 * common.opt (fipa-type-escape): Remove.
582 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
584 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
585 (decode_options): Likewise.
586 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
588 2010-05-16 Jan Hubicka <jh@suse.cz>
590 * ipa.c (function_and_variable_visibility): Also bring local all
593 2010-05-16 Richard Guenther <rguenther@suse.de>
595 * alias.c (nonoverlapping_memrefs_p): Remove use of
596 IPA type-escape information.
598 2010-05-16 Joseph Myers <joseph@codesourcery.com>
600 * c-common.c (c_common_reswords): Add _Static_assert for C.
601 * c-parser.c (c_token_starts_declaration,
602 c_parser_next_token_starts_declaration,
603 c_parser_static_assert_declaration_no_semi,
604 c_parser_static_assert_declaration): New.
605 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
606 Handle static assertions if static_assert_ok.
607 (c_parser_external_declaration, c_parser_declaration_or_fndef,
608 c_parser_compound_statement_nostart, c_parser_label,
609 c_parser_for_statement, c_parser_objc_methodprotolist,
610 c_parser_omp_for_loop): All callers of
611 c_parser_declaration_or_fndef changed.
612 (c_parser_struct_declaration): Handle static assertions.
613 (c_parser_compound_statement_nostart): Use
614 c_parser_next_token_starts_declaration and
615 c_token_starts_declaration to detect start of declarations.
616 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
619 2010-05-16 Anatoly Sokolov <aesok@post.ru>
621 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
622 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
623 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
624 TARGET_FUNCTION_VALUE_REGNO_P): Define.
625 (mmix_function_outgoing_value): Rename to...
626 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
627 (mmix_function_value_regno_p): Make static.
628 (mmix_libcall_value): New function.
629 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
630 mmix_function_value_regno_p): Remove declaration.
632 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
634 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
635 BUILT_IN_ALLOCA if stack checking is enabled.
637 2010-05-16 Richard Guenther <rguenther@suse.de>
639 * var-tracking.c (vars_copy_1): Inline ...
640 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
641 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
642 (variable_merge_over_cur): Adjust. Merge asserts.
643 (variable_merge_over_src): Likewise.
644 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
645 (variable_post_merge_new_vals): Merge asserts.
646 (variable_post_merge_perm_vals): Likewise.
647 (find_mem_expr_in_1pdv): Likewise.
648 (dataflow_set_different_value): Remove.
649 (onepart_variable_different_p): Merge asserts.
650 (variable_different_p): Likewise.
651 (dataflow_set_different_1): Inline ...
652 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
653 (emit_notes_for_differences_1): Merge asserts.
655 2010-05-16 Richard Guenther <rguenther@suse.de>
657 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
658 * optabs.c (libfunc_decl_hash): Likewise.
659 * varasm.c (emutls_decl): Likewise.
661 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
663 * c-decl.c: Don't include gimple.h.
664 (merge_decls): Do not copy gimple_body.
666 2010-05-15 Jason Merrill <jason@redhat.com>
668 * c.opt: Add -fnothrow-opt.
670 2010-05-15 Jan Hubicka <jh@suse.cz>
672 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
674 * passes.c (ipa_write_summaries): Write all analyzed nodes.
676 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
678 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
679 * Makefile.in: Add it.
680 Fix all other Makefile dependencies for changes below.
681 * tree.h: Include it instead of defining VEC primitives here.
682 * gimple.h: Likewise.
684 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
685 * except.h: Include vecir.h, break dependence on tree.h.
687 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
689 * tree-iterator.c: ...to here.
690 * tree-iterator.h: Fix file introduction comment. Add extern markers.
692 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
694 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
695 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
696 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
697 tree-mudflap.h, and target.h.
698 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
699 predict.h, tree-inline.h, gimple.h, and langhooks.h.
700 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
701 Add FIXME for why gimple.h is still included (should be unnecessary
702 since GCC 4.5 gimplification unit-at-a-time).
703 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
704 * c-pragma.c: Add FIXME for why function.h needs to be included just
705 for cfun, at front-end level.
706 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
707 Do not include ggc.h, but include vecprim.h for VEC(char).
708 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
709 Explain why target.h is included.
710 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
711 Explain why gimple.h is included.
712 * c-ppoutput.c: Do not include tm.h.
713 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
714 * c-parses.c: Explain why rtl.h is included, and that this (and only
715 this) is also why tm.h must be included.
716 Do not include except.h.
717 * c-lang.c: Do not include ggc.h.
719 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
721 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
723 2010-05-15 Joseph Myers <joseph@codesourcery.com>
725 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
726 unions by default if those structs and unions have no tags. Do
727 not condition anonymous struct and unions handling on flag_iso.
728 Allow anonymous structs and unions for C1X.
729 (finish_struct): Do not diagnose lack of named fields when
730 anonymous structs and unions present for C1X. Accept flexible
731 array members in structure with anonymous structs or unions but no
732 directly named fields.
733 * doc/extend.texi (Unnamed Fields): Update.
735 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
737 * gimple.h (compare_field_offset): Rename into...
738 (gimple_compare_field_offset): ...this.
739 * gimple.c (compare_field_offset): Rename into...
740 (gimple_compare_field_offset): ...this. Compare the full access if
741 the offset is self-referential.
742 (gimple_types_compatible_p): Adjust for above renaming.
743 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
744 DECL_NONADDRESSABLE_P flag of fields before merging them.
746 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
748 * tree.h (ctor_to_list): Delete.
749 * tree.c (ctor_to_list): Delete.
751 2010-05-15 Jan Hubicka <jh@suse.cz>
753 * ipa-reference.c: Include toplev.h
754 (is_proper_for_analysis): Only add to all_module_statics
756 (write_node_summary_p, stream_out_bitmap,
757 ipa_reference_write_optimization_summary,
758 ipa_reference_read_optimization_summary): New.
759 (struct ipa_opt_pass_d pass_ipa_reference): Add
760 optimization summary streaming.
761 * lto-cgraph.c (referenced_from_this_partition_p,
762 reachable_from_this_partition_p): New functions.
763 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
764 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
765 * opts.c (decode_options): Enable ipa_reference.
766 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
767 * lto-streamer.h (referenced_from_this_partition_p,
768 reachable_from_this_partition_p): Declare.
770 2010-05-15 Richard Guenther <rguenther@suse.de>
772 PR tree-optimization/44038
773 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
774 taking the address of a V_C_E of a constant.
776 2010-05-14 Jan Hubicka <jh@suse.cz>
778 * tree.h (memory_identifier_string): Remove.
779 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
780 (ipa_reference_global_vars_info_d): Remove statics_not_read and
782 (ipa_reference_optimization_summary_d): New structure.
783 (ipa_reference_optimization_summary_t): New type and vector.
784 (ipa_reference_vars_info_d): Embedd structures instead of using
786 (reference_vars_to_consider): Remove out of GGC space.
787 (module_statics_escape): Remove.
788 (global_info_obstack): Rename to ...
789 (optimization_summary_obstack): ... this one.
790 (initialization_status_t): Remove.
791 (memory_identifier_string): Remove.
792 (get_reference_vars_info): Fix indenting.
793 (set_reference_vars_info): Likewise.
794 (get_reference_optimization_summary): New.
795 (set_reference_optimization_summary): New.
796 (get_global_reference_vars_info): Remove.
797 (ipa_reference_get_read_global): Remove.
798 (ipa_reference_get_written_global): Remove.
799 (ipa_reference_get_not_read_global): Update.
800 (ipa_reference_get_not_written_global): Update.
801 (is_proper_for_analysis): Outlaw addressable.
802 (propagate_bits): Update for new datastructures.
803 (analyze_variable): Remove.
804 (init_function_info): Update for new datastructures.
805 (clean_function_local_data): Remove.
806 (clean_function): Remove.
807 (copy_global_bitmap): Use optimizations_summary_obstack.
808 (duplicate_node_data): Duplicate optimization summary only.
809 (remove_node_data): Remove optimization summary only.
810 (generate_summary): Do not analyze variables; do not compute
811 module_statics_escape; do not prune solutions by it.
812 (read_write_all_from_decl): Fix typos in comments.
813 (propagate): Doscover readonly and nonaddressable first;
814 update for new datastructures; share global bitmaps.
815 * ipa-reference.h (ipa_reference_get_read_global,
816 ipa_reference_get_written_global): Remove.
817 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
818 * Makefile.in: Remove ipa-refereference from GT files.
820 2010-05-14 Jakub Jelinek <jakub@redhat.com>
823 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
824 for all SYMBOL_REF_DECLs.
826 2010-05-14 Jan Hubicka <jh@suse.cz>
828 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
829 (varpool_all_refs_explicit_p): New inline function.
830 * ipa-reference.c: Update comment.
831 (module_statics_written): Remove.
832 (get_static_decl): Remove.
833 (ipa_init): Do not initialize module_statics_written.
834 (analyze_function): Likewise.
835 (generate_summary): Likewise; do not compute module_statics_readonly
836 and do not update variable flags.
837 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
838 * ipa.c: Inlucde flags.h
839 (cgraph_local_node_p): New.
840 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
841 promote functions to local.
842 (ipa_discover_readonly_nonaddressable_vars): New function.
843 (function_and_variable_visibility): Use cgraph_local_node_p.
844 * varpool.c (varpool_finalize_decl): Set force_output for
845 DECL_PRESERVE_P vars.
847 2010-05-14 Jan Hubicka <jh@suse.cz>
849 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
851 2010-05-14 Richard Guenther <rguenther@suse.de>
853 PR tree-optimization/44119
854 * tree-ssa-pre.c (eliminate): Properly mark replacement of
855 a PHI node necessary.
857 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
859 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
861 2010-05-14 Jason Merrill <jason@redhat.com>
864 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
865 (gimple_call_set_nothrow): New.
866 * gimple.c (gimple_build_call_from_tree): Call it.
867 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
870 * gimplify.c (gimplify_seq_add_stmt): No longer static.
871 * gimple.h: Declare it.
872 * gimple.c (gimple_build_eh_filter): No ops.
874 2010-05-14 Jan Hubicka <jh@suse.cz>
876 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
877 nodes already in queue.
878 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
881 2010-05-14 Jakub Jelinek <jakub@redhat.com>
884 * cfgexpand.c (expand_debug_expr): If non-memory op0
885 has BLKmode, return NULL.
887 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
889 * config.gcc: Add support for --with-cpu option for bdver1.
890 * config/i386/i386.h (TARGET_BDVER1): New macro.
891 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
892 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
893 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
894 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
895 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
896 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
897 (processor_type): Add PROCESSOR_BDVER1.
898 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
899 processor_type in config/i386/i386.h.
900 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
901 movaps <reg, reg> instead of movapd <reg, reg> when replacing
902 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
903 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
904 to emit packed xor instead of packed double/packed integer
905 xor for SSE and AVX when moving a zero value.
906 * config/i386/sse.md: Add check for
907 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
908 movapd/movdqa for SSE and AVX.
909 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
910 single logical operations i.e and, or and xor instead of packed double
911 logical operations for SSE and AVX.
912 * config/i386/i386-c.c (ix86_target_macros_internal):
913 Add PROCESSOR_BDVER1.
914 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
915 (has_fma4, has_xop): New.
916 * config/i386/i386.c (bdver1_cost): New variable.
917 (m_BDVER1): New macro.
918 (m_AMD_MULTIPLE): Add m_BDVER1.
919 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
920 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
921 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
922 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
923 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
924 x86_tune_sse_partial_reg_dependency,
925 x86_tune_sse_unaligned_load_optimal,
926 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
927 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
928 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
929 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
930 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
931 Enable/disable for bdver1.
932 (processor_target_table): Add bdver1_cost.
933 (cpu_names): Add bdver1.
934 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
935 processor_alias_table.
936 (ix86_expand_vector_move_misalign): Change.
937 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
938 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
939 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
940 of movupd/movdqu for SSE and AVX.
941 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
942 (ix86_tune_adjust_cost): Add code for bdver1.
943 (standard_sse_constant_opcode): Add check for
944 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
945 of packed double xor for SSE and AVX.
947 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
949 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
952 2010-05-14 Tristan Gingold <gingold@adacore.com>
954 * toplev.c (default_debug_hooks): Remove this variable.
955 (process_options): Remove assignments to default_debug_hooks.
957 2010-05-14 Martin Jambor <mjambor@suse.cz>
959 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
960 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
961 * langhooks.h (struct lang_hooks_for_decls): Removed field
963 * tree.c (free_lang_data): Remove assignment to
964 lang_hooks.fold_obj_type_ref.
965 * tree.def (OBJ_TYPE_REF): Update comment.
967 2010-05-14 Richard Guenther <rguenther@suse.de>
969 PR tree-optimization/44124
970 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
972 2010-05-14 Alan Modra <amodra@gmail.com>
975 * config/rs6000/rs6000.c (struct machine_function): Reorder
976 fields for better packing. Add lr_save_state.
977 (rs6000_ra_ever_killed): Return lr_save_state if set.
978 (rs6000_emit_eh_reg_restore): Set lr_save_state.
980 2010-05-13 Jan Hubicka <jh@suse.cz>
982 * varpool.c (decide_is_variable_needed): Drop code checking
983 TREE_SYMBOL_REFERENCED.
985 2010-05-13 Jan Hubicka <jh@suse.cz>
987 * final.c (output_addr_const): Do not call mark_decl_referenced.
988 * cgraphunit.c (process_function_and_variable_attributes): Use
989 mark_needed_node dirrectly.
990 (assemble_thunk): Do not call mark_decl_referenced.
992 2010-05-13 Anatoly Sokolov <aesok@post.ru>
994 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
996 2010-05-13 Jeff Law <law@redhat.com>
998 * ira-conflicts.c (print_allocno_conflicts): New function broken out
1000 (print_conflicts): Call print_allocno_conflicts.
1002 2010-05-13 Jakub Jelinek <jakub@redhat.com>
1005 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
1008 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
1010 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
1011 t-mingw-w64 or t-mingw-w32 for multilib configuration.
1012 * config/i386/t-mingw-w32: New.
1013 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
1015 2010-05-13 Martin Jambor <mjambor@suse.cz>
1017 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
1019 * gimple-fold.c (get_base_binfo_for_type): New function.
1020 (gimple_get_relevant_ref_binfo): Likewise.
1021 (gimple_fold_obj_type_ref_known_binfo): Likewise.
1022 (gimple_fold_obj_type_ref): Likewise.
1023 (fold_gimple_call): Simplify condition for folding virtual calls
1024 and call gimple_fold_obj_type_ref.
1025 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
1026 (gimple_fold_obj_type_ref_known_binfo): Likewise.
1028 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
1030 * config/rs6000/rs6000-protos.h
1031 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
1032 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
1033 (rs6000_debug_mode_dependent_address)
1034 (rs6000_mode_dependent_address_ptr): Likewise.
1036 2010-05-13 Jakub Jelinek <jakub@redhat.com>
1039 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
1041 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
1042 * tree-sra.c (create_access_replacement): Call unshare_expr before
1043 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
1044 * dwarf2out.c: Include tree-flow.h.
1045 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
1046 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
1047 Handle DW_OP_bit_piece.
1048 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
1049 construct_piece_list, adjust_piece_list): New functions.
1050 (add_var_loc_to_decl): Handle SRA optimized variables.
1051 Adjust for var_loc_note to loc field renaming.
1052 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
1053 in VAR_LOCATION note.
1054 (new_loc_descr_op_bit_piece): New function.
1055 (dw_sra_loc_expr): New function.
1056 (dw_loc_list): Use it. Don't handle the last range after the
1057 loop, handle it inside of the loop. Adjust for var_loc_note
1058 to loc field renaming.
1059 (add_location_or_const_value_attribute): Only special case
1060 single entry loc lists if loc is NOTE_P. Adjust for
1061 var_loc_note to loc field renaming.
1062 (dwarf2out_var_location): Don't set newloc->var_loc_note
1063 and newloc->next here.
1065 2010-05-12 Jan Hubicka <jh@suse.cz>
1067 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
1069 * cgraph.h (cgraph_only_called_directly_p,
1070 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
1071 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
1072 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
1074 * ipa.c (cgraph_remove_unreachable_nodes): Use
1075 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
1077 * tree-inline.c (copy_bb): Check address_taken flag.
1078 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
1079 externally_visible flag.
1081 2010-05-12 Jason Merrill <jason@redhat.com>
1085 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
1086 * sdbout.c (plain_type_1): Likewise.
1087 * dwarf2out.c (is_base_type): Likewise.
1088 (gen_type_die_with_usage): Likewise. Generate
1089 DW_TAG_unspecified_type for any LANG_TYPE.
1091 2010-05-12 Jan Hubicka <jh@suse.cz>
1093 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
1095 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
1096 (cgraph_clone_edge): Update.
1097 (cgraph_node_remove_callees): Remove indirect calls too.
1098 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
1099 (cgraph_create_indirect_edge): Update prototype.
1100 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
1101 is_proper_for_analysis.
1102 (add_new_function, visited_nodes, function_insertion_hook_holder,
1103 get_local_reference_vars_info, mark_address_taken, mark_address,
1104 mark_load, mark_store, check_asm_memory_clobber, check_call,
1105 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
1106 (ipa_init): Do not initialize visited_nodes;
1107 function_insertion_hook_holder.
1108 (analyze_variable): Rewrite.
1109 (analyze_function): Rewrite.
1110 (copy_local_bitmap): Remove.
1111 (duplicate_node_dat): Do not duplicate local info.
1112 (generate_summary): Simplify to only walk cgraph.
1113 (write_node_summary_p, ipa_reference_write_summary,
1114 ipa_reference_read_summary): Remove.
1115 (propagate): Do not remove function insertion;
1117 (pass_ipa_reference): NULLify summary handling fields.
1118 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
1119 (input_edge): Input ecf_flags.
1120 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
1121 (update_indirect_edges_after_inlining): Ignore edges with unknown
1124 2010-05-12 Sriraman Tallam <tmsriram@google.com>
1126 * implicit-zee.c: New file.
1127 * tree-pass.h (pass_implicit_zee): Declare.
1128 * passes.c (init_optimization_passes): Add zee pass.
1129 * common.opt (fzee): New flag.
1130 * timevar.def (TV_ZEE): Define.
1131 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
1133 * Makefile.in (implicit-zee.o): Add new build file.
1135 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
1136 Nathan Froyd <froydnj@codesourcery.com>
1138 * c-common.c (sync_resolve_params): Remove write-only variable.
1140 2010-05-12 Anatoly Sokolov <aesok@post.ru>
1142 * target.h (struct gcc_target): Add mode_dependent_address_p field.
1143 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
1144 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
1145 * targhooks.c (default_mode_dependent_address_p): New function.
1146 * targhooks.h (default_mode_dependent_address_p): Declare function.
1147 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
1148 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
1149 * recog.c: (mode_dependent_address_p): Call mode_dependent_address_p
1150 target hook. Change return type to bool.
1151 * recog.h: (mode_dependent_address_p): Change return type to bool.
1153 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
1154 Nathan Froyd <froydnj@codesourcery.com>
1156 * tree-mudflap.c (build_function_type_0, build_function_type_1,
1157 build_function_type_2, build_function_type_3): Remove.
1158 (mudflap_init): Use build_function_type_list.
1160 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
1161 Nathan Froyd <froydnj@codesourcery.com>
1163 * coverage.c (build_fn_info_value): Call build_constructor instead of
1164 build_constructor_from_list.
1165 (build_ctr_info_value): Likewise.
1166 (build_gcov_info): Likewise.
1168 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
1170 * tree.c (build_constructor): Compute TREE_CONSTANT for the
1171 resultant constructor.
1172 (build_constructor_single): Don't set TREE_CONSTANT.
1173 (build_constructor_from_list): Don't compute TREE_CONSTANT.
1175 2010-05-12 Jan Hubicka <jh@suse.cz>
1177 * cgraph.h (struct varpool_node): Add aux.
1178 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
1179 * varpool.c (varpool_remove_node): Do not remove initializer.
1180 (varpool_reset_queue): Export.
1181 (varpool_finalize_decl): Volatile vars are forced to be output.
1182 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
1184 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
1185 process_references, varpool_can_remove_if_no_refs): New functions.
1186 (cgraph_remove_unreachable_nodes): Handle variables too.
1188 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
1191 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
1193 2010-05-12 Jakub Jelinek <jakub@redhat.com>
1196 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
1197 change value of ORT_TASK.
1198 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
1199 (omp_notice_threadprivate_variable): New function.
1200 (omp_notice_variable): Call it for threadprivate variables.
1201 If enclosing ctx is a task, print enclosing task rather than
1202 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
1203 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
1204 if task has untied clause.
1207 * dwarf2out.c (base_type_die): Don't add name attribute here.
1208 (modified_type_die): Instead of sizetype use
1209 its underlying original type. If a DW_TAG_base_type doesn't
1210 have name added, add __unknown__.
1211 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
1212 always call force_type_die instead.
1214 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
1216 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
1217 for __stack_chk_guard.
1219 2010-05-11 Jakub Jelinek <jakub@redhat.com>
1221 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
1222 don't call start_source_file debug hook here...
1223 (finish_options): ... but here, after outputting predefined and
1224 command line defines and undefs.
1227 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
1229 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
1230 optimizing away empty bb with no successors, move over its
1231 footer chain to fallthru predecessor.
1232 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
1233 (rtl_split_edge): For asm goto call patch_jump_insn even if
1234 splitting fallthru edge.
1237 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
1238 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
1239 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1240 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
1244 * c-parser.c (c_parser_expression): Mark LHS of a comma
1245 expression as read if it is a decl, handled component or
1246 COMPOUND_EXPR with that on the RHS.
1247 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
1248 if it is a decl or handled component.
1250 2010-05-11 Jan Hubicka <jh@suse.cz>
1252 * lto-symtab.c (lto_symtab_free): New function.
1253 * lto-streamer.h (lto_symtab_free): Declare.
1255 2010-05-11 Jan Hubicka <jh@suse.cz>
1257 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
1258 that if function is needed it is reachable.
1259 (lto_output_node): See if it the function is reachable or referenced.
1260 (output_cgraph): Update call of lto_output_node.
1261 * lto-streamer.h (reachable_from_other_partition_p): Declare.
1263 2010-05-11 Jan Hubicka <jh@suse.cz>
1265 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
1268 2010-05-11 Jan Hubicka <jh@suse.cz>
1270 PR tree-optimize/44063
1271 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
1273 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
1275 (estimate_function_body_sizes): Compute sizes even when disregarding.
1277 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
1279 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
1281 2010-05-11 Jan Hubicka <jh@suse.cz>
1283 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
1284 into every boundary.
1286 2010-05-11 Jan Hubicka <jh@suse.cz>
1288 * matrix-reorg.c (matrix_reorg): Rebuild edges.
1290 2010-05-11 Jan Hubicka <jh@suse.cz>
1292 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
1293 lto_streamer_cache_delete): Put nodes into heap.
1294 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
1297 2010-05-11 Jan Hubicka <jh@suse.cz>
1299 * cgraphbuild.c (cgraph_rebuild_references): New.
1300 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
1302 * cgraph.h (cgraph_rebuild_references): Declare.
1303 * tree-inline.c (tree_function_versioning): Use it.
1304 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
1306 2010-05-11 Jan Hubicka <jh@suse.cz>
1308 * cgraph.c: Include ipa-utils.h
1309 (cgraph_create_virtual_clone): Update references.
1310 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
1312 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
1314 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
1315 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
1318 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
1320 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
1322 2010-05-11 Jakub Jelinek <jakub@redhat.com>
1324 * gcc.c (execute): For -### don't quote arguments that
1325 contain just alphanumerics and _/-. characters.
1326 * doc/invoke.texi: Document that change for -###.
1329 * df-problems.c (struct dead_debug): Add to_rescan field.
1330 (dead_debug_init): Clear to_rescan field.
1331 (dead_debug_finish): Rescan all debug insns in to_rescan
1332 bitmap and free the bitmap.
1333 (dead_debug_insert_before): Instead of rescanning debug insns
1334 immediately queue their rescanning until dead_debug_finish.
1335 (df_note_bb_compute): After dead_debug_add do continue instead
1338 2010-05-10 Jakub Jelinek <jakub@redhat.com>
1341 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
1342 clear also INSN_REG_USE_LIST.
1344 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1346 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
1348 2010-05-10 Jan Hubicka <jh@suse.cz>
1350 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
1353 2010-05-10 Jan Hubicka <jh@suse.cz>
1355 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
1357 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
1358 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
1359 (lto_streamer_cache_create): Init alloc pool.
1360 (lto_streamer_cache_delete): Free alloc pool.
1361 * lto-streamer.h: Include alloc pool.
1362 (lto_streamer_cache_d): Use alloc pool.
1363 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
1365 2010-05-10 Jan Hubicka <jh@suse.cz>
1367 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
1368 * cgraphbuild.c: Include except.h
1369 (record_type_list, record_eh_tables): New function.
1370 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
1372 2010-05-10 Jan Hubicka <jh@suse.cz>
1374 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
1375 __frame_dummy_init_array_entry, force_to_data): Attribute as used
1378 2010-05-10 Michael Matz <matz@suse.de>
1380 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
1381 (can_reassociate_p): Use FLOAT_TYPE_P.
1382 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
1383 (vect_force_simple_reduction): ... this.
1384 * tree-parloops.c (gather_scalar_reductions): Use
1385 vect_force_simple_reduction.
1386 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
1387 vect_is_simple_reduction, add modify argument, if true rewrite
1388 "a-b" into "a+(-b)".
1389 (vect_is_simple_reduction, vect_force_simple_reduction): New
1391 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
1393 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
1394 Vladimir Makarov <vmakarov@redhat.com>
1396 PR rtl-optimization/44012
1397 * ira-build.c (remove_unnecessary_allocnos): Nullify
1398 regno_allocno_map of the removed allocno.
1400 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1402 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
1404 * configure: Regenerate.
1406 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1408 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
1410 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
1411 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
1413 * configure: Regenerate.
1415 2010-05-10 Richard Guenther <rguenther@suse.de>
1417 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
1418 marked if the entry identifier is marked.
1420 2010-05-10 Richard Guenther <rguenther@suse.de>
1422 * c-common.c (struct c_common_attributes): Add fnspec attribute.
1423 (handle_fnspec_attribute): New function.
1424 * gimple.h (gimple_call_return_flags): Declare.
1425 (gimple_call_arg_flags): Likewise.
1426 * gimple.c (gimple_call_arg_flags): New function.
1427 (gimple_call_return_flags): Likewise.
1428 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
1430 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
1432 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
1433 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
1435 (make_heapvar_for): ... this new function.
1436 (handle_rhs_call): Handle fnspec attribute argument specifiers.
1437 (handle_lhs_call): Likewise.
1438 (find_func_aliases): Adjust.
1440 2010-05-10 Richard Guenther <rguenther@suse.de>
1442 PR tree-optimization/44050
1443 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
1445 2010-05-10 Wei Guozhi <carrot@google.com>
1448 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
1450 2010-05-09 Joseph Myers <joseph@codesourcery.com>
1453 * c-typeck.c (lookup_field): Take a type directly. Update
1455 (build_component_ref): Update call to lookup_field.
1456 (set_init_label): Use lookup_field to find initialized field.
1457 Handle returned list of fields like a sequence of designators.
1459 2010-05-09 Richard Guenther <rguenther@suse.de>
1462 * fold-const.c (tree_single_nonzero_warnv_p): Properly
1463 handle &FUNCTION_DECL.
1465 2010-05-09 Joseph Myers <joseph@codesourcery.com>
1468 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
1469 structures and unions recursively.
1470 (detect_field_duplicates): Move duplicate detection with a hash to
1471 detect_field_duplicates_hash. Always use a hash if anonymous
1472 structures or unions are present.
1473 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
1476 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
1479 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
1480 detect Atom, Core 2 and Core i7.
1482 2010-05-09 Richard Guenther <rguenther@suse.de>
1484 * gcc.c (store_arg): Handle temporary file deletion for
1487 2010-05-09 Richard Guenther <rguenther@suse.de>
1490 * ipa-inline.c (estimate_function_body_sizes): Return after
1491 disregarding inline limits.
1493 2010-05-09 Richard Guenther <rguenther@suse.de>
1495 * gcc.c (store_arg): Revert last change.
1497 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
1500 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
1501 (optimize_ops_list): Call it.
1503 2010-05-08 Richard Guenther <rguenther@suse.de>
1505 PR tree-optimization/44030
1506 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
1507 NECESSARY flag if we propagate from a inserted expression.
1509 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
1511 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
1512 domain types as equal if they are both PLACEHOLDER_EXPRs.
1514 2010-05-08 Richard Guenther <rguenther@suse.de>
1516 * lto-wrapper.c (run_gcc): Remove linker output from
1517 command line for LTRANS invocation.
1519 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
1521 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1522 lto-macho as lto_binary_reader.
1523 * target.h (struct gcc_target): New hooks lto_start and lto_end.
1524 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
1525 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
1526 in lto_start and lto_end calls.
1527 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
1529 (scan_prog_file): Update is_elf_or_coff call.
1530 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
1532 * collect2.c (main): Fix enum comparison.
1534 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
1536 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
1537 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
1538 and TARGET_ASM_LTO_END.
1539 * darwin.c: Include obstack.h and lto-streamer.h.
1540 (lto_section_names_offset, lto_section_names_obstack,
1541 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
1543 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
1544 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
1545 to a temporary file.
1546 (darwin_asm_lto_end): New function. Restore asm_out_file.
1547 (darwin_asm_named_section): For LTO sections, replace the name with
1548 the offset of the section name in a string table, and build this
1550 (darwin_file_start): Initialize global vars for LTO support.
1551 (darwin_file_end): If output to asm_out_file was redirected, append it
1552 to the proper asm_out_file here. Add the section names section.
1554 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
1556 * c-pragma.c (pending_weak_d, pending_weak): New.
1557 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
1558 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
1559 handle_pragma_weak): Update the uses of pending_weaks.
1561 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1563 PR documentation/44016
1564 * doc/standards.texi (Standards): Link to unversioned
1565 cxx0x_status.html page.
1567 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
1570 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
1571 in addition to TREE_USED, to avoid "set but unused" warnings.
1573 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1575 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
1576 (is_loop_prefetching_profitable): Do not insert prefetches
1577 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
1578 times the prefetch ahead distance.
1580 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1582 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
1583 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
1584 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
1587 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1589 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
1590 a diagnostic info when the insn-to-mem ratio is too small.
1592 2010-05-07 Richard Guenther <rguenther@suse.de>
1594 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
1596 (store_arg): Queue temp_filename for deletion instead of
1599 2010-05-07 Richard Guenther <rguenther@suse.de>
1601 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
1602 (run_gcc): Handle LTRANS phase invocation.
1603 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
1605 2010-05-07 Jakub Jelinek <jakub@redhat.com>
1607 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
1608 this is also meaningful on PARM_DECLs and RESULT_DECLs.
1610 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1612 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
1614 2010-05-07 Richard Guenther <rguenther@suse.de>
1616 PR tree-optimization/44020
1617 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
1618 code when PRE is not yet initialized.
1620 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1622 * config/mips/dbxmdebug.h: Remove.
1623 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
1625 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
1627 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
1628 with null pointer and also warn about ordered comparison of zero with
1631 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1633 * graphite-blocking.c
1634 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
1635 * graphite-clast-to-gimple.c
1636 (clast_to_gcc_expression): Same.
1637 (precision_for_value): Same.
1638 (precision_for_interval): Same.
1639 (gcc_type_for_interval): Same.
1640 (graphite_create_new_guard): Same.
1641 (compute_bounds_for_level): Same.
1642 (graphite_create_new_loop_guard): Same.
1643 * graphite-interchange.c
1644 (build_linearized_memory_access): Same.
1645 (pdr_stride_in_loop): Same.
1646 (memory_strides_in_loop_1): Same.
1647 (memory_strides_in_loop): Same.
1648 (extend_scattering): Same.
1649 (psct_scattering_dim_for_loop_depth): Same.
1650 (pbb_number_of_iterations): Same.
1652 (debug_iteration_domains): Same.
1654 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1655 (ppl_set_inhomogeneous_gmp): Same.
1656 (ppl_strip_loop): Same.
1657 (ppl_lexico_compare_linear_expressions): Same.
1658 (ppl_read_polyhedron_matrix): Same.
1659 (ppl_max_for_le_pointset): Same.
1661 (ppl_read_polyhedron_matrix): Same.
1662 (tree_int_to_gmp): Same.
1663 (gmp_cst_to_tree): Same.
1664 (ppl_set_inhomogeneous): Same.
1665 (ppl_set_inhomogeneous_tree): Same.
1666 (ppl_set_coef): Same.
1667 (ppl_set_coef_tree): Same.
1668 * graphite-sese-to-poly.c
1669 (build_pbb_scattering_polyhedrons): Same.
1670 (build_scop_scattering): Same.
1671 (scan_tree_for_params_right_scev): Same.
1672 (scan_tree_for_params): Same.
1673 (find_params_in_bb): Same.
1674 (find_scop_parameters): Same.
1675 (add_upper_bounds_from_estimated_nit): Same.
1676 (build_loop_iteration_domains): Same.
1677 (add_condition_to_domain): Same.
1678 (pdr_add_memory_accesses): Same.
1680 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1682 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
1683 CLooG's value_* macros to their respective mpz_* counterparts.
1684 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
1685 (graphite_create_new_loop_guard): Same.
1686 * graphite-interchange.c (build_linearized_memory_access): Same.
1687 (pdr_stride_in_loop): Same.
1688 (memory_strides_in_loop_1): Same.
1689 (1st_interchange_profitable_p): Same.
1690 * graphite-poly.c (extend_scattering): Same.
1691 (psct_scattering_dim_for_loop_depth): Same.
1692 (pbb_number_of_iterations): Same.
1693 (pbb_number_of_iterations_at_time): Same.
1694 * graphite-poly.h (new_1st_loop): Same.
1695 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
1696 (oppose_constraint): Same.
1697 (insert_constraint_into_matrix): Same.
1698 (ppl_set_inhomogeneous_gmp): Same.
1699 (ppl_set_coef_gmp): Same.
1700 (ppl_strip_loop): Same.
1701 (ppl_lexico_compare_linear_expressions): Same.
1702 (ppl_max_for_le_pointset): Same.
1703 (ppl_min_for_le_pointset): Same.
1704 (ppl_build_realtion): Same.
1705 * graphite-ppl.h (gmp_cst_to_tree): Same.
1706 (ppl_set_inhomogeneous): Same.
1707 (ppl_set_inhomogeneous_tree): Same.
1708 (ppl_set_coef): Same.
1709 (ppl_set_coef_tree): Same.
1710 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1711 (build_scop_scattering): Same.
1712 (add_value_to_dim): Same.
1713 (scan_tree_for_params_right_scev): Same.
1714 (scan_tree_for_params_int): Same.
1715 (scan_tree_for_params): Same.
1716 (find_params_in_bb): Same.
1717 (find_scop_parameters): Same.
1718 (add_upper_bounds_from_estimated_nit): Same.
1719 (build_loop_iteration_domains): Same.
1720 (create_linear_expr_from_tree): Same.
1721 (add_condition_to_domain): Same.
1722 (pdr_add_memory_accesses): Same.
1724 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
1725 Jason Merrill <jason@redhat.com>
1727 * c-common.c (c_common_reswords): Add nullptr.
1728 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
1729 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
1730 (gen_type_die_with_usage): Likewise.
1731 * dbxout.c (dbxout_type): Likewise.
1732 * sdbout.c (plain_type_1): Likewise.
1734 2010-05-06 Jason Merrill <jason@redhat.com>
1736 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
1737 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
1739 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
1741 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
1742 stripping WITH_SIZE_EXPR.
1743 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
1746 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1748 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
1749 list of obsolete configurations.
1750 Disabled check for obsolete configurations.
1751 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
1752 Removed support for previous versions.
1753 * config/mips/iris.h: Removed.
1754 * config/mips/iris5.h: Removed.
1755 * config/mips/iris6.h: Merged old iris.h contents.
1756 (TARGET_IRIX): Removed.
1757 (DRIVER_SELF_SPECS): Removed mabi=32.
1758 (IDENT_ASM_OP): Removed undef.
1759 (STARTFILE_SPEC): Removed mabi=32.
1760 (ENDFILE_SPEC): Likewise.
1761 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
1762 (MACHINE_TYPE): Update for IRIX 6.5.
1763 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
1764 TARGET_IRIX by TARGET_IRIX6.
1765 (mips_file_start): Likewise.
1766 (mips_output_external): Remove IRIX 5/6 O32 support.
1767 (mips_output_function_prologue): Likewise.
1768 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
1770 (TARGET_CPU_CPP_BUILTINS): Likewise.
1771 (TARGET_IRIX): Removed.
1772 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
1773 (MULTILIB_DIRNAMES): Removed 32.
1774 (MULTILIB_OSDIRNAMES): Removed ../lib.
1775 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
1776 (Specific, mips-sgi-irix5): Document removal.
1777 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
1778 Remove references to older IRIX 6 releases and the O32 ABI.
1780 2010-05-06 Jakub Jelinek <jakub@redhat.com>
1783 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
1784 instead of DF_REF_REAL_REG.
1786 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
1789 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
1790 handling to still return true for x64 targets.
1792 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
1794 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
1796 2010-05-06 Jan Hubicka <jh@suse.cz>
1798 PR tree-optimization/43791
1799 * ipa-inline.c (update_caller_keys): Remove bogus
1800 disregard_inline_limits check.
1802 2010-05-06 Michael Matz <matz@suse.de>
1804 PR tree-optimization/43984
1805 * tree-ssa-pre.c (inserted_phi_names): Remove.
1806 (inserted_exprs): Change to bitmap.
1807 (create_expression_by_pieces): Set bits, don't append to vector.
1808 (insert_into_preds_of_block): Don't handle inserted_phi_names.
1809 (eliminate): Don't look at inserted_phi_names, remove deleted
1810 insns from inserted_exprs.
1811 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
1812 (init_pre, fini_pre): Allocate and free bitmaps.
1813 (execute_pre): Insert insns on edges before elimination.
1815 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
1817 * tree.c (initializer_zerop): Handle STRING_CST.
1819 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
1822 * doc/invoke.texi (Wimplicit): Document as C only.
1823 * opts.c (common_handle_option): Add argument kind.
1824 (handle_option): Rename as read_cmdline_option. Factor out code to...
1825 (handle_option): ... here. New.
1826 (handle_options): Rename as read_cmdline_options.
1827 (decode_options): Update call.
1828 (set_option): Use option index instead of option pointer. Classify
1829 diagnostics correctly.
1830 (enable_warning_as_error): Call handle_option.
1831 * opts.h (set_option): Update declaration.
1832 (handle_option): Declare.
1833 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
1834 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
1835 * c-opts.c (set_Wimplicit): Delete.
1836 (c_family_lang_mask): New static constant.
1837 (c_common_handle_option): Add argument kind. Use handle_option
1838 instead of set_Wimplicit.
1839 (c_common_post_options): warn_implicit and warn_implicit_int
1840 are disabled by default.
1841 * c-common.c (warn_implicit): Do not define here.
1842 * c-common.h (warn_implicit): Do not declare here.
1843 (c_common_handle_option): Update declaration.
1844 * lto-opts.c (lto_reissue_options): Update call to set_option.
1846 2010-05-06 Richard Guenther <rguenther@suse.de>
1848 PR tree-optimization/43571
1849 * domwalk.c (walk_dominator_tree): Walk the dominator
1850 sons in more optimal order.
1852 2010-05-06 Richard Guenther <rguenther@suse.de>
1854 PR tree-optimization/43934
1855 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
1856 (stmt_cost): Likewise.
1857 (extract_true_false_args_from_phi): New helper.
1858 (determine_max_movement): For PHI nodes verify we can hoist them
1859 and compute their cost.
1860 (determine_invariantness_stmt): Handle PHI nodes.
1861 (move_computations_stmt): Likewise. Hoist PHI nodes in
1862 if-converted form using COND_EXPRs.
1863 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
1864 (tree_ssa_lim): Likewise.
1865 * tree-flow.h (tree_ssa_lim): Adjust prototype.
1866 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
1868 2010-05-06 Richard Guenther <rguenther@suse.de>
1870 PR tree-optimization/43987
1871 * tree-ssa-structalias.c (could_have_pointers): For possibly
1872 address-taken variables force pointers to be recorded.
1873 (create_variable_info_for_1): Likewise.
1874 (push_fields_onto_fieldstack): Pass in wheter all fields
1876 (find_func_aliases): Query types instead of vars whether
1877 they contain pointers where appropriate.
1879 2010-05-06 Jan Hubicka <jh@suse.cz>
1881 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
1882 (record_reference, mark_address, mark_load, mark_store): Record
1884 (record_references_in_initializer): Update call of record_references.
1885 (rebuild_cgraph_edges): Remove all references before rebuiding.
1886 * cgraph.c (cgraph_create_node): Clear ref list.
1887 (cgraph_remove_node): Remove references.
1888 (dump_cgraph_node): Dump references.
1889 (cgraph_clone_node): Clone references.
1890 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
1891 (struct cgraph_node, varpool_node): Add ref_lst.
1892 * ipa-ref.c: New file.
1893 * ipa-ref.h: New file.
1894 * ipa-ref-inline.h: New file.
1895 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
1896 (referenced_from_other_partition_p): New function.
1897 (lto_output_varpool_node): Take set arugment; call
1898 referenced_from_other_partition.
1899 (lto_output_ref): New.
1900 (add_references): New.
1902 (output_cgraph): Compute boundary based on references; output refs.
1903 (output_varpool): Accept cgraph_node_set argument.
1906 (input_cgraph): Call input_refs.
1907 * lto-section-in.c (lto_section_name): Add refs.
1908 * Makefile.in: (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
1909 (ipa-ref.o): New file.
1910 * varpool.c (varpool_node): Clear ipa ref list.
1911 (varpool_remove_node): Remove references.
1912 (dump_varpool_node): Dump references.
1913 (varpool_assemble_decl): Only compile finalized ones.
1914 (varpool_extra_name_alias): Initialize ref list.
1915 * lto-streamer.c (lto-get_section_name): Add .refs section.
1916 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
1917 (referenced_from_other_partition_p): Declared.
1919 2010-05-06 Ira Rosen <irar@il.ibm.com>
1921 PR tree-optimization/43901
1922 * tree-vect-stmts.c (vectorizable_call): Assert that vector
1923 type is not NULL if it's transformation phase, and return
1924 FALSE if it's analysis.
1925 (vectorizable_conversion, vectorizable_operation,
1926 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
1928 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
1930 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
1932 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
1934 * config/mips/mips-protos.h
1935 (mips_small_register_classes_for_mode_p): Delete prototype.
1937 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
1939 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
1940 * config/arm/arm.c (multiple_operation_profitable_p,
1941 compute_offset_order): New static functions.
1942 (load_multiple_sequence, store_multiple_sequence): Use them.
1943 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
1944 memory offsets, not register numbers.
1945 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
1947 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
1949 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
1950 (get_pending_sizes, put_pending_size, put_pending_sizes):
1951 Update the uses of pending_sizes.
1952 * c-decl.c (store_parm_decls): Likewise.
1953 * c-tree.h (struct c_arg_info): Likewise.
1954 * tree.h: Update the prototype for get_pending_sizes and
1957 2010-05-05 Jason Merrill <jason@redhat.com>
1960 * c-common.c (handle_aligned_attribute): Respect
1961 ATTR_FLAG_TYPE_IN_PLACE.
1964 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
1965 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1966 (TARGET_INITIALIZER): Use it.
1967 * c-common.c (attribute_takes_identifier_p): Call it.
1968 * c-common.h: Update prototype.
1969 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
1970 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1972 2010-05-05 Jakub Jelinek <jakub@redhat.com>
1975 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
1976 DW_ID_down_case for Fortran compilation units.
1978 2010-05-05 Jan Hubicka <jh@suse.cz>
1980 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
1983 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
1985 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
1986 a variable-sized RESULT_DECL.
1988 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
1990 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
1992 2010-05-05 Jason Merrill <jason@redhat.com>
1995 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
1997 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
1999 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
2000 Jakub Jelinek <jakub@redhat.com>
2003 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
2004 (dead_debug_init, dead_debug_finish): New functions.
2005 (dead_debug_add, dead_debug_insert_before): Likewise.
2006 (df_note_bb_compute): Initialize a dead_debug object, add dead
2007 debug uses to it, insert debug bind insns before death insns,
2008 reset debug insns that refer to pending uses at the end.
2009 * rtl.h (make_debug_expr_from_rtl): New prototype.
2010 * varasm.c (make_debug_expr_from_rtl): New function.
2012 2010-05-05 Jan Hubicka <jh@suse.cz>
2014 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
2015 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
2016 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
2017 lto_varpool_encoder_deref, lto_varpool_encoder_size,
2018 lto_varpool_encoder_encode_initializer_p,
2019 lto_set_varpool_encoder_encode_initializer): New functions.
2020 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
2021 call output_varpool.
2022 (input_varpool_node): Do not always set analyzed.
2023 (input_cgraph_1): Return vector of cgraph nodes.
2024 (input_varpool_1): Return vector of varpools.
2025 (input_cgraph): Free the vectors.
2026 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2027 output only initializers needed.
2028 (lto_output): Only call output_cgraph.
2029 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
2030 * lto-section-out.c (lto_new_out_decl_state): Initialize
2031 state->varpool_node_encoder.
2032 * lto-streamer.h (lto_varpool_encoder_d): New.
2033 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
2034 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
2035 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
2036 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
2037 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
2039 (output_varpool, input_varpool): Remove declarations.
2041 2010-05-05 Jan Hubicka <jh@suse.cz>
2043 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
2044 with body can prevail.
2046 2010-05-05 Jan Hubicka <jh@suse.cz>
2048 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
2051 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2053 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
2055 * gengtype.h (erro_at_line): Constify pos argument.
2057 * gengtype.c: Include hashtab.h.
2058 (enum gc_used): Document GC_MAYBE_POINTED_TO.
2059 (error_at_line): Constify pos argument.
2060 (do_typedef): Initialize p->opt field.
2061 (get_file_gtfilename): Fix comment typo.
2062 (struct walk_type_data): Constify line field.
2063 (get_output_file_for_structure): New function.
2064 (write_local_func_for_structure): Constify orig_s argument.
2065 Use get_output_file_for_structure.
2066 (write_func_for_structure): Use get_output_file_for_structure.
2067 (INDENT): New define.
2068 (dump_pair, dump_type, dump_type_list, dump_typekind)
2069 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
2070 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
2072 (seen_types): New variable.
2073 (main): New variable do_dump. Process "-d" command line option.
2074 Call dump_everything if dump requested.
2076 2010-05-05 Jakub Jelinek <jakub@redhat.com>
2078 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
2079 in a temporary instead of invoking the macro multiple times.
2080 (track_expr_p): Likewise.
2082 2010-05-04 Neil Vachharajani <nvachhar@google.com>
2084 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
2086 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
2087 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
2088 conditions for printing notes.
2089 * common.opt (-Wcoverage-mismatch): Allow negative, default to
2090 true, update documentation.
2091 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
2093 2010-05-04 Jakub Jelinek <jakub@redhat.com>
2096 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
2099 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
2102 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
2103 (*sse_prologue_save_insn1): Likewise.
2104 (SSE prologue save splitter): Likewise.
2106 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
2108 * tree.c (free_lang_data_in_one_sizepos): New inline function.
2109 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
2110 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
2111 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
2112 all decls. Call it on DECL_FIELD_OFFSET of fields.
2113 (find_decls_types_r): Follow DECL_VALUE_EXPR.
2114 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
2116 2010-05-04 Martin Jambor <mjambor@suse.cz>
2118 * tree-sra.c (build_access_from_expr_1): The first parameter type
2119 changed to simple tree.
2120 (build_access_from_expr): Likewise, gsi parameter was eliminated.
2121 (scan_assign_result): Renamed to assignment_mod_result, enum elements
2123 (build_accesses_from_assign): Removed all parameters except for a
2124 simple gimple statement. Now returns a simple bool.
2125 (scan_function): All non-analysis parts moved to separate functions
2126 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
2127 parameters and updated both callers.
2128 (sra_modify_expr): Removed parameter data.
2129 (sra_modify_function_body): New function.
2130 (perform_intra_sra): Call sra_modify_function_body to modify the
2132 (replace_removed_params_ssa_names): Parameter data changed into
2134 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
2135 changed the parameter dont_convert to convert with the opposite
2137 (sra_ipa_modify_assign): Parameter data changed into adjustments
2138 vector, return value changed to bool.
2139 (ipa_sra_modify_function_body): New function.
2140 (sra_ipa_reset_debug_stmts): Updated a comment.
2141 (modify_function): Use ipa_sra_modify_function_body to modify function
2144 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
2147 * alias.c (true_dependence): Handle the same VALUE in x and mem.
2148 (canon_true_dependence): Likewise.
2149 (write_dependence_p): Likewise.
2151 2010-05-04 Jan Hubicka <jh@suse.cz>
2153 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
2154 * cgraphbuild.c: Include ipa-utils.h
2155 (record_reference_ctx): New struct.
2156 (record_reference): Simplify to work on initializers; not statements.
2157 (mark_address, mark_load, mark_store): New.
2158 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
2160 (record_references_in_initializer): Update use of record_reference.
2161 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
2164 2010-05-04 Jan Hubicka <jh@suse.cz>
2166 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
2167 node will be removed anyway.
2168 (lto_varpool_replace_node): Allow also unanalyzed nodes;
2169 relink aliases of node into prevailing node.
2170 * varpool.c (varpool_remove_node): Remove aliases properly;
2171 when removing node, remove all its aliases too; remove DECL_INITIAL
2172 of removed node; ggc_free the varpool node.
2174 2010-05-04 Richard Guenther <rguenther@suse.de>
2176 PR tree-optimization/43879
2177 * tree-ssa-structalias.c (alias_get_name): Use
2178 DECL_ASSEMBLER_NAME if available.
2179 (create_function_info_for): Return the varinfo node.
2180 (ipa_pta_execute): Associate same-body aliases and extra names
2181 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
2183 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
2185 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
2187 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
2190 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
2191 only if HONOR_REG_ALLOC_ORDER is not defined.
2193 2010-05-04 Richard Guenther <rguenther@suse.de>
2195 PR tree-optimization/43949
2196 * tree-vrp.c (extract_range_from_binary_expr): Only handle
2199 2010-04-26 Jason Merrill <jason@redhat.com>
2201 * c.opt (-fstrict-enums): New.
2202 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
2204 2010-05-03 David Ung <davidu@mips.com>
2205 James E. Wilson <wilson@codesourcery.com>
2207 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
2208 emit the trap instruction before the divide for TUNE_74K.
2210 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
2212 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
2213 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
2214 based on the above, for new target hook.
2216 * hooks.c (hook_bool_mode_true): New generic hook.
2217 * hooks.h (hook_bool_mode_true): Add prototype.
2219 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
2221 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
2222 target hook, set to hook_bool_mode_false.
2223 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
2224 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
2225 with targetm.small_register_classes_for_mode_p.
2226 (find_reusable_reload): Likewise.
2227 (combine_reloads): Likewise.
2228 * reload1.c (reload_as_needed): Likewise.
2229 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
2230 * ifcvt.c (noce_process_if_block, check_cond_move_block,
2231 dead_or_predicable): Likewise.
2232 * regmove.c (optimize_reg_copy_1): Likewise.
2233 * calls.c (prepare_call_address): Likewise.
2234 (precompute_register_parameters): Likewise.
2236 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
2238 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
2239 implementation of the hook that considers all register classes
2240 small except for SH64.
2241 (sh_override_options): Use the new hook.
2242 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
2245 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
2247 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
2248 implementation of the hook that considers all register classes
2250 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
2253 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
2255 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
2256 implementation of the hook that considers all register classes
2258 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
2261 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
2263 * config/m32c/m32c.h: Likewise.
2264 * config/pdp11/pdp11.h: Likewise.
2265 * config/avr/avr.h: Likewise.
2266 * config/xtensa/xtensa.h: Likewise.
2267 * config/m68hc11/m68hc11.h: Likewise.
2268 * config/mn10300/mn10300.h: Likewise.
2269 * config/mcore/mcore.h: Likewise.
2270 * config/h8300/h8300.h: Likewise.
2271 * config/bfin/bfin.h: Likewise.
2273 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
2274 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
2276 2010-05-03 Anatoly Sokolov <aesok@post.ru>
2278 * double-int.h (tree_to_double_int): Remove macro.
2279 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
2280 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
2281 (tree_to_double_int): New function.
2282 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
2284 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
2286 2010-05-03 Richard Guenther <rguenther@suse.de>
2288 PR tree-optimization/43971
2289 * tree-ssa-structalias.c (get_constraint_for_1): Fix
2290 constraints in the !flag_delete_null_pointer_checks case.
2292 2010-05-03 Jakub Jelinek <jakub@redhat.com>
2295 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
2296 result mode matches original rtl mode.
2298 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
2301 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
2303 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
2305 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
2306 when processing flag options.
2308 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
2310 * gcov-iov.c (main): Change format string placeholder
2311 from %#08x to 0x%08x.
2312 * genchecksum.c (dosum): Change format string placeholder
2313 from %#02x to 0x%02x.
2315 2010-05-02 Richard Guenther <rguenther@suse.de>
2317 PR tree-optimization/43879
2318 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
2320 2010-05-02 Bruno Haible <bruno@clisp.org>
2322 * doc/extend.texi (Function Attributes): Fix a typo.
2324 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
2327 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
2328 placeholder from 0x%x to %#x.
2329 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
2330 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
2331 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
2332 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
2333 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
2334 * config/i386/i386.c (ix86_target_string): Ditto.
2335 * config/i386/i386.c (output_pic_addr_const): Ditto.
2336 (print_operand): Ditto.
2338 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
2340 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
2341 placeholder from 0x%x to %#x.
2342 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
2343 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
2344 (ASM_OUTPUT_DEBUG_DATA): Ditto.
2345 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
2346 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
2347 * optc-gen.awk: Ditto.
2348 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
2349 (HOST_WIDE_INT_PRINT_HEX): Ditto.
2350 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
2351 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
2353 2010-05-01 Anatoly Sokolov <aesok@post.ru>
2355 * target.h (struct calls): Add function_value_regno_p field.
2356 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2357 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
2358 * targhooks.c (default_function_value_regno_p): New function.
2359 * targhooks.h (default_function_value_regno_p): Declare function.
2360 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
2361 * builtins.c. (apply_result_size): (Ditto.).
2362 * combine.c. (likely_spilled_retval_p): (Ditto.).
2363 * mode-switching.c. Include 'target.h'.
2364 (create_pre_exit): Use function_value_regno_p hook.
2365 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
2366 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
2367 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
2369 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
2370 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
2371 (ix86_function_value_regno_p): Declare as static, change argument
2372 type to const unsigned int.
2373 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
2375 2010-05-01 Richard Guenther <rguenther@suse.de>
2377 PR tree-optimization/43949
2378 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
2380 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
2382 2010-05-01 Anatoly Sokolov <aesok@post.ru>
2384 * rtl.h (CONST_DOUBLE_P): Define.
2385 (rtx_to_double_int): Declare.
2386 * emit-rtl.c (rtx_to_double_int): New function.
2387 * dwarf2out.c (insert_double): New function.
2388 (loc_descriptor, add_const_value_attribute): Clean up, use
2389 rtx_to_double_int and insert_double functions.
2391 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
2393 * doc/extend.texi (Inline): Add missing return keyword to examples.
2394 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
2397 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
2399 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
2400 the variable part of the offset as well. Use highest_pow2_factor for
2401 all alignment checks.
2403 2010-04-30 Richard Guenther <rguenther@suse.de>
2405 PR tree-optimization/43879
2406 * tree-ssa-structalias.c (type_could_have_pointers): Functions
2409 2010-04-30 Jan Hubicka <jh@suse.cz>
2411 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
2413 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
2415 2010-04-30 Jan Hubicka <jh@suse.cz>
2417 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
2419 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
2420 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
2421 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
2422 cgraph_node_set_needs_ltrans_p): Remove.
2424 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
2426 * sdbout.c: Include vec.h, do not include varray.h.
2427 (deferred_global_decls, sdbout_global_decl,
2428 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
2429 * toplev.c: Do not include varray.h.
2430 (dump_memory_report): Do not dump VARRAY statistics.
2431 * gengtype.c (open_base_file): Ignore varray.h.
2432 * Makefile.in: Update for abovementioned changes.
2433 Remove all traces of varray.c and varray.h.
2434 * varray.c: Remove file.
2435 * varray.h: Remove file.
2437 2010-04-30 Jan Hubicka <jh@suse.cz>
2439 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
2442 2010-04-30 Jan Hubicka <jh@suse.cz>
2444 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
2447 2010-04-30 Richard Guenther <rguenther@suse.de>
2449 * tree-ssa-structalias.c (get_constraint_for_1): Generate
2450 constraints for CONSTRUCTOR.
2452 2010-04-30 Richard Guenther <rguenther@suse.de>
2455 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
2456 first after all lowering passes.
2458 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
2460 * toplev.c: Include varray.h for statistics dumping.
2461 * tree.h: Do not declare varray_head_tag.
2462 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
2463 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
2464 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
2465 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
2466 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
2467 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
2468 c-common.c, c-common.h, reg-stack.c, basic-block.h,
2469 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
2471 * Makefile.in: Update for abovementioned changes.
2473 2010-04-30 Jakub Jelinek <jakub@redhat.com>
2476 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
2478 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
2480 * config/picochip/picochip.c (picochip_legitimize_address): Define.
2481 Use this function to do machine-specific conversion.
2482 (picochip_legitimize_reload_address): Likewise.
2483 (picochip_legitimate_address_p): Check valid base register only if
2485 (picochip_check_conditional_copy): Check for modw only if opnd is
2487 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
2488 to call the function in c.
2489 * config/picochip/picochip-protos.h
2490 (picochip_legitimize_reload_address): Define.
2491 * config/picochip/picochip.md (supported_compare1): Define.
2493 2010-04-30 Jan Hubicka <jh@suse.cz>
2495 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
2496 (cgraph_global_info): Remove inlined.
2497 (LTO_cgraph_tag_names): Remove.
2498 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
2499 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
2500 simplify cgraph tags and document.
2501 (lto_output_node): Use only LTO_cgraph_unavail_node and
2502 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
2503 for_functions_valid, global info, process and output flags.
2504 (input_overwrite_node): Initialize estimated stack size and
2505 estimated growth. Do not read flags we no longer store.
2506 (input_node): Likewise do not read info no longer stored.
2507 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
2510 2010-04-30 Richard Guenther <rguenther@suse.de>
2512 PR tree-optimization/43879
2513 * tree-ssa-structalias.c (get_constraint_for_1): Properly
2514 handle non-zero initializers.
2516 2010-04-30 Richard Guenther <rguenther@suse.de>
2518 * builtins.c (fold_builtin_1): Delete free (0).
2520 2010-04-29 Jan Hubicka <jh@suse.cz>
2522 * gengtype.c (open_base_files): Add lto-streamer.h
2523 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
2524 (pass_ipa_cp): GGC collect.
2525 * toplev. (compile_file): Do not output symbols.
2526 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
2527 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
2528 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
2529 * lto-section-in.c: Include ggc.h
2530 (lto_new_in_decl_state): Alloc in GGC.
2531 (lto_delete_in_decl_state): Likewise.
2532 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
2535 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
2538 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
2539 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
2540 (HONOR_REG_ALLOC_ORDER): Describe new macro.
2541 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
2542 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
2543 account only if HONOR_REG_ALLOC_ORDER is not defined.
2544 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
2545 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
2547 2010-04-29 Jon Grant <04@jguk.org>
2549 * collect2.c (vflag): Change type from int to bool.
2551 (helpflag): New global bool.
2552 (main): Set vflag and debug with boolean, not integer truth values.
2553 Accept new "--help" option and output usage text if found.
2554 * collect2.h (vflag): Update prototype.
2557 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
2560 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
2562 2010-04-29 Richard Guenther <rguenther@suse.de>
2565 * plugin.h (invoke_plugin_callbacks): Annotate arguments
2566 with ATTRIBUTE_UNUSED.
2568 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
2571 * config/i386/i386.c (get_some_local_dynamic_name): Replace
2572 INSN_P with NONDEBUG_INSN_P.
2573 (distance_non_agu_define): Likewise.
2574 (distance_agu_use): Likewise.
2576 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
2578 From Dominique d'Humieres <dominiq@lps.ens.fr>
2580 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
2583 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
2585 * plugin.h (invoke_plugin_callbacks): New inline function.
2586 * plugin.c (flag_plugin_added): New global flag.
2587 (add_new_plugin): Initialize above flag.
2588 (invoke_plugin_callbacks): Rename to ...
2589 (invoke_plugin_callbacks_full): ... this.
2591 2010-04-28 Jan Hubicka <jh@suse.cz>
2593 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
2594 (lto_varpool_replace_node): New.
2595 (lto_symtab_resolve_symbols): Resolve varpool nodes.
2596 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
2597 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
2598 * cgraph.h (varpool_node_ptr): New type.
2599 (varpool_node_ptr): New vector.
2600 (varpool_node_set_def): New structure.
2601 (varpool_node_set): New type.
2602 (varpool_node_set): New vector.
2603 (varpool_node_set_element_def): New structure.
2604 (varpool_node_set_element, const_varpool_node_set_element): New types.
2605 (varpool_node_set_iterator): New type.
2606 (varpool_node): Add prev pointers, add used_from_other_partition,
2608 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
2609 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
2610 varpool_get_node, varpool_remove_node): Declare.
2611 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
2612 varpool_node_set_size): New inlines.
2613 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
2614 * tree-pass.h (varpool_node_set_def): Forward declare.
2615 (ipa_opt_pass_d): Summary writting takes vnode sets too.
2616 (ipa_write_optimization_summaries): Update prototype.
2617 * ipa-cp.c (ipcp_write_summary): Update.
2618 * ipa-reference.c (ipa_reference_write_summary): Update.
2619 * lto-cgraph.c (lto_output_varpool_node): New static function.
2620 (output_varpool): New function.
2621 (input_varpool_node): New static function.
2622 (input_varpool_1): New function.
2623 (input_cgraph): Input varpool.
2624 * ipa-pure-const.c (pure_const_write_summary): Update.
2625 * lto-streamer-out.c (lto_output): Update, output varpool too.
2626 (write_global_stream): Kill WPA hack.
2627 (produce_asm_for_decls): Update.
2628 (output_alias_pair_p): Handle variables.
2629 (output_unreferenced_globals): Output only needed partition of varpool.
2630 * ipa-inline.c (inline_write_summary): Update.
2631 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
2633 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
2634 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
2635 varpool_node_set_new, varpool_node_set_add,
2636 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
2637 debug_varpool_node_set): New functions.
2638 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
2639 (execute_one_pass): Process new decls too.
2640 (ipa_write_summaries_2): Pass around vsets.
2641 (ipa_write_summaries_1): Likewise.
2642 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
2644 (ipa_write_optimization_summaries_1): Pass around vsets.
2645 (ipa_write_optimization_summaries): Likewise.
2646 * varpool.c (varpool_get_node): New.
2647 (varpool_node): Update doubly linked lists.
2648 (varpool_remove_node): New.
2649 (dump_varpool_node): More dumping.
2650 (varpool_enqueue_needed_node): Update doubly linked lists.
2651 (decide_is_variable_needed): Kill ltrans hack.
2652 (varpool_finalize_decl): Kill lto hack.
2653 (varpool_assemble_decl): Skip decls in other partitions.
2654 (varpool_assemble_pending_decls): Update doubly linkes lists.
2655 (varpool_empty_needed_queue): Likewise.
2656 (varpool_extra_name_alias): Likewise.
2657 * lto-streamer.c (lto_get_section_name): Add vars section.
2658 * lto-streamer.h (lto_section_type): Update.
2659 (output_varpool, input_varpool): Declare.
2661 2010-04-28 Mike Stump <mikestump@comcast.net>
2663 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
2665 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2667 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
2668 record or union type with RECORD_OR_UNION_TYPE_P predicate.
2669 (lto_input_ts_type_tree_pointers): Likewise.
2670 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
2671 (lto_output_ts_type_tree_pointers): Likewise.
2673 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2675 Uniquization of constants at the Tree level
2676 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
2677 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
2679 (tree_output_constant_def): Declare.
2680 * gimplify.c (gimplify_init_constructor): When using block copy, first
2681 uniquize the constant constructor on the RHS.
2682 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
2683 DECL_IN_CONSTANT_POOL flag.
2684 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
2685 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
2687 (assemble_variable): Deal with symbols belonging to the tree constant
2689 (get_constant_section): Add ALIGN parameter and simplify.
2690 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
2691 (assemble_constant_contents): Use the expression of the VAR_DECL.
2692 (output_constant_def_contents): Use the alignment of the VAR_DECL.
2693 (tree_output_constant_def): New global function.
2694 (mark_constant): Use the expression of the VAR_DECL.
2695 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
2697 (output_object_block): Likewise and assemble the expression.
2699 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2701 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
2702 hash_tree, eq_tree): New tree hash table.
2703 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
2704 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
2705 lto_orig_address_remove): Reimplement.
2707 2010-04-28 Xinliang David Li <davidxl@google.com>
2710 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
2711 (compute_uninit_opnds_pos): New function.
2712 (is_non_loop_exit_postdominating): New function.
2713 (compute_control_dep_chain): New function.
2714 (find_pdom): New function.
2715 (convert_control_dep_chain_into_preds): New function.
2716 (find_predicates): New function.
2717 (find_control_equiv_block): New function.
2718 (collect_phi_def_edges): New function.
2719 (find_def_preds): New function.
2720 (find_dom): New function.
2721 (dump_predicates): New function.
2722 (get_cmp_code): New function.
2723 (is_value_included_in): New function.
2724 (find_matching_predicate_in_rest_chains): New function.
2725 (use_pred_not_overlap_with_undef_path_pred): New function.
2726 (is_use_properly_guarded): New function.
2727 (normalize_cond_1): New function.
2728 (is_and_or_or): New function.
2729 (normalize_cond): New function.
2730 (is_gcond_subset_of): New function.
2731 (is_subset_of_any): New function.
2732 (is_or_set_subset_of): New function.
2733 (is_and_set_subset_of): New function.
2734 (is_norm_cond_subset_of): New function.
2735 (is_pred_expr_subset_of): New function.
2736 (is_pred_chain_subset_of): New function.
2737 (is_included_in): New function.
2738 (is_superset_of): New function.
2739 (find_uninit_use): New function.
2740 (warn_uninitialized_phi): New function.
2741 (compute_possibly_undefined_names): New function.
2742 (ssa_undefined_value_p): New function.
2743 (execute_late_warn_uninitialized): New function.
2744 * tree-ssa.c (ssa_undefined_value_p): Removed.
2745 (warn_uninit): Changed to extern.
2746 (warn_uninitialized_phi): Removed.
2747 (warn_uninitialized_vars): Changed to extern.
2748 (execute_late_warn_uninitialized): Removed
2749 * tree-flow.h: Add new prototypes.
2750 * timevar.def: Add new time variable.
2751 * Makefile.in: Add new build file.
2753 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
2755 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
2758 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2761 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
2763 2010-04-28 Martin Jambor <mjambor@suse.cz>
2765 * cgraph.h (struct cgraph_node): New field indirect_calls.
2766 (struct cgraph_indirect_call_info): New type.
2767 (struct cgraph_edge): Removed field indirect_call. New fields
2768 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
2769 (cgraph_create_indirect_edge): Declare.
2770 (cgraph_make_edge_direct): Likewise.
2771 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
2772 * ipa-prop.h (struct ipa_param_call_note): Removed.
2773 (struct ipa_node_params): Removed field param_calls.
2774 (ipa_create_all_structures_for_iinln): Declare.
2775 * cgraph.c: Described indirect edges and uids in initial comment.
2776 (cgraph_add_edge_to_call_site_hash): New function.
2777 (cgraph_edge): Search also among the indirect edges, use
2778 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
2779 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
2780 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
2782 (initialize_inline_failed): Assign a reason to indirect edges.
2783 (cgraph_create_edge_1): New function.
2784 (cgraph_create_edge): Moved some functionality to
2785 cgraph_create_edge_1.
2786 (cgraph_create_indirect_edge): New function.
2787 (cgraph_edge_remove_callee): Add an assert checking for
2789 (cgraph_edge_remove_caller): Special-case indirect edges.
2790 (cgraph_remove_edge): Likewise.
2791 (cgraph_set_edge_callee): New function.
2792 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
2793 (cgraph_make_edge_direct): New function.
2794 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
2795 the declaration of the call statement matches.
2796 (cgraph_node_remove_callees): Special-case indirect edges.
2797 (cgraph_clone_edge): Likewise.
2798 (cgraph_clone_node): Clone also the indirect edges.
2799 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
2800 indirect_call, dump count of indirect_calls edges.
2801 * ipa-prop.c (iinlining_processed_edges): New variable.
2802 (ipa_note_param_call): Create indirect edges instead of
2803 creating notes. New parameter node.
2804 (ipa_analyze_call_uses): New parameter node, pass it on to
2805 ipa_note_param_call.
2806 (ipa_analyze_stmt_uses): Likewise.
2807 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
2808 (print_edge_addition_message): Work on edges rather than on notes.
2809 (update_call_notes_after_inlining): Likewise, renamed to
2810 update_indirect_edges_after_inlining.
2811 (ipa_create_all_structures_for_iinln): New function.
2812 (ipa_free_node_params_substructures): Do not free notes.
2813 (ipa_edge_duplication_hook): Propagate bits within
2814 iinlining_processed_edges bitmap.
2815 (ipa_node_duplication_hook): Do not duplicate notes.
2816 (free_all_ipa_structures_after_ipa_cp): Renamed to
2817 ipa_free_all_structures_after_ipa_cp.
2818 (free_all_ipa_structures_after_iinln): Renamed to
2819 ipa_free_all_structures_after_iinln.
2820 (ipa_write_param_call_note): Removed.
2821 (ipa_read_param_call_note): Removed.
2822 (ipa_write_indirect_edge_info): New function.
2823 (ipa_read_indirect_edge_info): Likewise.
2824 (ipa_write_node_info): Do not stream notes, do stream information
2826 (ipa_read_node_info): Likewise.
2827 (lto_ipa_fixup_call_notes): Removed.
2828 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
2829 * ipa-inline.c (pass_ipa_inline): Likewise.
2830 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
2831 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
2832 * tree-inline.c (copy_bb): Removed an unnecessary double check for
2834 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
2836 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
2837 (output_cgraph): Stream also indirect edges.
2838 (lto_output_edge): Added capability to stream indirect edges.
2839 (input_edge): Likewise.
2840 (input_cgraph_1): Likewise.
2841 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
2844 2010-04-28 Richard Guenther <rguenther@suse.de>
2846 PR tree-optimization/43879
2847 PR tree-optimization/43909
2848 * tree-ssa-structalias.c (struct variable_info): Add
2849 only_restrict_pointers flag.
2850 (new_var_info): Initialize it. Increment stats.total_vars here.
2851 (create_function_info_for): Do not increment stats.total_vars here.
2852 (get_function_part_constraint): Fix build with C++.
2853 (insert_into_field_list): Remove.
2854 (push_fields_onto_fieldstack): Properly merge fields.
2855 (create_variable_info_for): Split and simplify.
2856 (create_variable_info_for_1): New piece.
2857 (intra_create_variable_infos): Properly make restrict constraints
2860 2010-04-28 Richard Guenther <rguenther@suse.de>
2863 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
2865 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
2866 Jan Hubicka <hubicka@ucw.cz>
2868 * doc/invoke.texi (-Wsuggest-attribute=const,
2869 -Wsuggest-attribute=pure): Document.
2870 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
2871 (function_always_visible_to_compiler_p,
2872 suggest_attribute, warn_function_pure, warn_function_const):
2874 (check_call): Improve debug info.
2875 (analyze_function): Do not check availability.
2876 (add_new_function): Check availability.
2877 (propagate): Output warnings.
2878 (skip_function_for_local_pure_const): New function.
2879 (local_pure_const): Use it; output warnings.
2880 * common.opt (Wsuggest-attribute=const,
2881 Wsuggest-attribute=pure): New.
2883 2010-04-27 Jakub Jelinek <jakub@redhat.com>
2885 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
2886 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
2887 or DW_CFA_def_cfa_offset{,_sf}.
2889 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
2891 * tree.h: Fix truncated long macros.
2893 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
2895 * collect2.c (TARGET_64BIT): Redefine to target's default.
2896 * tlink.c: Likewise.
2897 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
2898 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
2899 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
2900 for underscoring __USER_LABEL_PREFIX__.
2901 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
2902 (SUB_LINK_ENTRY32): New.
2903 (SUB_LINK_ENTRY64): New.
2904 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
2905 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
2906 (SUB_LINK_ENTRY64): New.
2907 (SUB_LINK_ENTRY): New.
2908 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
2909 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
2910 x64 target is choosen.
2911 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
2912 * configure: Regenerated.
2913 * configure.ac (leading-mingw64-underscores): Option added.
2915 2010-04-27 Jan Hubicka <jh@suse.cz>
2917 * doc/invoke.texi (-fipa-profile): Document.
2918 * opts.c (decode_options): Enable ipa-profile at -O1.
2919 * timevar.def (TV_IPA_PROFILE): Define.
2920 * common.opt (fipa-profile): Add.
2921 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
2923 (cgraph_propagate_frequency): Handle only local ones.
2924 * tree-pass.h (pass_ipa_profile): Declare.
2925 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
2926 (pass_ipa_profile): Use TV_IPA_PROFILE.
2927 * ipa.c (ipa_profile): New function.
2928 (gate_ipa_profile): Likewise.
2929 (pass_ipa_profile): New global variable.
2930 * passes.c (pass_ipa_profile): New.
2932 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
2934 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
2936 2010-04-27 Martin Jambor <mjambor@suse.cz>
2939 * ipa.c (dissolve_same_comdat_group_list): New function.
2940 (function_and_variable_visibility): Call
2941 dissolve_same_comdat_group_list when comdat group contains external or
2943 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
2944 lists are circular and that they contain only DECL_ONE_ONLY nodes.
2946 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
2948 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
2949 (const_hash_1) <VECTOR_CST>: New case.
2950 (compare_constant) <VECTOR_CST>: Likewise.
2951 <ADDR_EXPR>: Deal with LABEL_REFs.
2952 (copy_constant) <VECTOR_CST>: New case.
2954 2010-04-27 Jan Hubicka <jh@suse.cz>
2956 * cgraph.c (cgraph_propagate_frequency): New function.
2957 * cgraph.h (cgraph_propagate_frequency): Declare.
2958 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
2959 cgraph_propagate_frequency.
2961 2010-04-27 Jakub Jelinek <jakub@redhat.com>
2963 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
2965 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
2968 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
2969 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
2970 here to determine which regs to push and how much stack to reserve.
2972 2010-04-27 Jie Zhang <jie@codesourcery.com>
2974 * doc/gimple.texi (gimple_statement_with_ops): Remove
2975 addresses_taken field.
2976 (gimple_statement_with_memory_ops): Likewise.
2978 2010-04-27 Jan Hubicka <jh@suse.cz>
2980 * tree-inline.c (eni_inlining_weights): Remove.
2981 (estimate_num_insns): Special case more builtins.
2983 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
2986 * c-typeck.c (build_binary_op): Move forward check for comparison
2987 pointer with null pointer constant and adjust the diagnostic message.
2989 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
2992 * configure.ac (gcc_cv_as_section_has_align): Set if installed
2993 binutils supports extended .section directive needed by LTO, or
2994 warn if older binutils found.
2995 (LTO_BINARY_READER): New AC_SUBST'd variable.
2996 (LTO_USE_LIBELF): Likewise.
2997 * gcc/config.gcc (lto_binary_reader): New target-specific configure
2999 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
3000 (LTO_USE_LIBELF): Likewise.
3001 * configure: Regenerate.
3003 * collect2.c (is_elf): Rename from this ...
3004 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
3005 object files in addition to ELF-formatted ones.
3006 (scan_prog_file): Caller updated. Also allow for LTO info marker
3007 symbol to be prefixed or not by an extra underscore.
3009 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
3010 * config/i386/winnt.c: Also #include lto-streamer.h
3011 (i386_pe_asm_named_section): Specify 1-byte section alignment for
3013 (i386_pe_asm_output_aligned_decl_common): Add comment.
3014 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
3016 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
3019 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
3020 Add missing earlyclobber for second alternative.
3022 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
3024 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
3025 bits for artificial defs at the top of the block.
3026 * fwprop.c (single_def_use_enter_block): Don't call it.
3028 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
3031 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
3032 instead of "$gcc_cv_objdump -T".
3033 Use "-undefined dynamic_lookup" on darwin.
3034 * gcc/configure: Regenerate.
3036 2010-04-26 Jakub Jelinek <jakub@redhat.com>
3039 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
3041 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
3043 * c-parser.c (struct c_token): Move location field up.
3044 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
3045 (struct c_declspecs): Convert typespec_word, storage_class, and
3046 default_int_p into bitfields.
3047 (struct c_declarator): Move loc field up.
3049 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
3051 * cfgloop.h (struct loop): Move can_be_parallel field up.
3052 * ipa-prop.h (struct ip_node_params): Move bitfields up.
3053 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
3055 (struct iv_cand): Convert pos field into a bitfield.
3056 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
3058 (struct _stmt_vec_info): Shuffle fields for better packing.
3060 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
3062 * varasm.c (IN_NAMED_SECTION): Remove guard.
3063 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
3064 (IN_NAMED_SECTION_P): ...this.
3065 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
3066 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
3068 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
3070 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
3071 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
3072 of shadowing it. Fix comments.
3074 2010-04-26 Jan Hubicka <jh@suse.cz>
3076 * cgraph.c (cgraph_create_node): Set node frequency to normal.
3077 (cgraph_clone_node): Copy function frequency.
3078 * cgraph.h (node_frequency): New enum
3079 (struct cgraph_node): Add.
3080 * final.c (rest_of_clean_state): Update.
3081 * lto-cgraph.c (lto_output_node): Output node frequency.
3082 (input_overwrite_node): Input node frequency.
3083 * tre-ssa-loop-ivopts (computation_cost): Update.
3084 * lto-streamer-out.c (output_function): Do not output function
3086 * predict.c (maybe_hot_frequency_p): Update and handle functions
3088 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
3090 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
3091 (compute_function_frequency): Set noreturn functions to be executed
3093 (choose_function_section): Update.
3094 * lto-streamer-in.c (input_function): Do not input function frequency.
3095 * function.c (allocate_struct_function): Do not initialize function
3097 * function.h (function_frequency): Remove.
3098 (struct function): Remove function frequency.
3099 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
3100 (try_update): Update.
3101 * tree-inline.c (initialize_cfun): Do not update function frequency.
3102 * passes.c (pass_init_dump_file): Update.
3103 * i386.c (ix86_compute_frame_layout): Update.
3104 (ix86_pad_returns): Update.
3106 2010-04-26 Jie Zhang <jie@codesourcery.com>
3108 PR tree-optimization/43833
3109 * tree-vrp.c (range_int_cst_p): New.
3110 (range_int_cst_singleton_p): New.
3111 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
3112 when both operands are constants. Use range_int_cst_p in
3115 2010-04-26 Jan Hubicka <jh@suse.cz>
3117 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
3119 2010-04-26 Richard Guenther <rguenther@suse.de>
3122 * gimple.c (gimple_decl_printable_name): Deal gracefully
3123 with a NULL DECL_NAME.
3125 2010-04-26 Richard Guenther <rguenther@suse.de>
3128 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
3129 if emitting debug information and it is either a function
3130 or a namespace decl.
3132 2010-04-26 Ira Rosen <irar@il.ibm.com>
3134 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
3135 determine if the statement is vectorizable, and a macro to access it.
3136 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3137 Skip statements that can't be vectorized. If the analysis fails,
3138 mark the statement as unvectorizable if vectorizing basic block.
3139 (vect_compute_data_refs_alignment): Likewise.
3140 (vect_verify_datarefs_alignment): Skip statements marked as
3141 unvectorizable. Add print.
3142 (vect_analyze_group_access): Skip statements that can't be
3143 vectorized. If the analysis fails, mark the statement as
3144 unvectorizable if vectorizing basic block.
3145 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
3146 * tree-vect-stmts.c (vectorizable_store): Fix the number of
3147 generated stmts for SLP.
3148 (new_stmt_vec_info): Initialize the new field.
3149 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
3150 statements marked as unvectorizable.
3152 2010-04-25 Joseph Myers <joseph@codesourcery.com>
3154 * c-common.c (flag_isoc1x): New.
3155 (flag_isoc99): Update comment.
3156 * c-common.h (flag_isoc1x): New.
3157 (flag_isoc99): Update comment.
3158 * c-cppbuiltin.c (builtin_define_float_constants): Also define
3159 __<type>_DECIMAL_DIG__.
3160 * c-opts.c (set_std_c1x): New.
3161 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
3162 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
3163 * c.opt (-std=c1x, -std=gnu1x): New options.
3164 * doc/cpp.texi: Mention -std=c1x.
3165 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
3166 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
3167 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
3168 * doc/standards.texi: Mention C1X.
3169 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
3170 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
3171 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
3174 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
3176 * config/i386/gmon-sol2.c (_mcleanup): Change format string
3177 placeholder from 0x%x to %#x.
3178 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
3179 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
3180 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
3181 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
3182 * config/i386/i386.c (ix86_target_string): Ditto.
3183 (output_pic_addr_const): Ditto.
3184 (print_operand): Ditto.
3186 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
3188 * combine.c (find_split_point): Add third argument. Use it
3189 to find nested multiply-accumulate instructions. Adjust calls.
3190 (try_combine): Adjust call to find_split_point.
3192 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3194 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
3196 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
3198 PR tree-optimization/41442
3199 * fold-const.c (merge_truthop_with_opposite_arm): New function.
3200 (fold_binary_loc): Call it.
3202 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3204 * toplev.c (general_init): Set default for fdiagnostics-show-option.
3205 * opts.c (common_handle_option): Allow disabling it.
3206 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
3208 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
3210 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
3211 between modes if both types are integral.
3213 2010-04-23 Richard Guenther <rguenther@suse.de>
3215 PR tree-optimization/43572
3216 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
3218 2010-04-23 Richard Guenther <rguenther@suse.de>
3221 * tree-inline.c (tree_can_inline_p): Also check compatibility
3224 2010-04-23 Martin Jambor <mjambor@suse.cz>
3226 PR tree-optimization/43846
3227 * tree-sra.c (struct access): New flag grp_assignment_read.
3228 (build_accesses_from_assign): Set grp_assignment_read.
3229 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
3230 (enum mark_read_status): New type.
3231 (analyze_access_subtree): Propagate grp_assignment_read, create
3232 accesses also if both direct_read and root->grp_assignment_read.
3234 2010-04-23 Martin Jambor <mjambor@suse.cz>
3237 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
3238 function does not have type attributes.
3240 2010-04-23 Richard Guenther <rguenther@suse.de>
3243 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
3246 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3248 * sese.h (create_if_region_on_edge): Remove.
3250 * sese.c (create_if_region_on_edge): Make static.
3252 * tree-inline.c: Do not include ggc.h.
3254 * expr.c: Do not include ggc.h.
3256 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
3259 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
3262 * config/sh/sh.c (find_barrier): Don't emit a constant pool
3263 in the middle of insns for casesi_worker_2.
3265 2010-04-22 David Edelsohn <edelsohn@gnu.org>
3267 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
3269 2010-04-22 Ira Rosen <irar@il.ibm.com>
3271 PR tree-optimization/43842
3272 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
3273 loop unrolling in update of exit phis. Fix comment.
3274 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
3275 least two reduction statements in the loop before starting SLP
3278 2010-04-22 Nick Clifton <nickc@redhat.com>
3280 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
3282 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
3284 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
3287 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3289 * tree-parloops.c (loop_parallel_p): New argument
3290 parloop_obstack. Pass it down.
3291 (parallelize_loops): New variable parloop_obstack. Initialize it,
3292 pass it down, free it.
3294 * tree-loop-linear.c (linear_transform_loops): Pass down
3297 * tree-data-ref.h (lambda_compute_access_matrices): New argument
3298 of type struct obstack *.
3300 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
3301 scratch_obstack. Initialize it, pass down, free it.
3303 * lambda.h (lambda_loop_new): Remove.
3304 (lambda_matrix_new, lambda_matrix_inverse)
3305 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
3306 argument of type struct obstack *.
3308 * lambda-trans.c (lambda_trans_matrix_new): New argument
3309 lambda_obstack. Pass it down, use obstack allocation for ret.
3310 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
3313 * lambda-mat.c (lambda_matrix_get_column)
3314 (lambda_matrix_project_to_null): Remove.
3315 (lambda_matrix_new): New argument lambda_obstack. Use obstack
3317 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
3320 * lambda-code.c (lambda_loop_new): New function.
3321 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
3322 (lambda_compute_auxillary_space, lambda_compute_target_space)
3323 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
3324 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
3325 (build_access_matrix): New argument lambda_obstack. Use obstack
3327 (lambda_compute_step_signs, lambda_compute_access_matrices): New
3328 argument lambda_obstack. Pass it down.
3330 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
3332 * optabs.h (expand_widening_mult): Declare.
3334 2010-04-22 Richard Guenther <rguenther@suse.de>
3336 PR tree-optimization/43845
3337 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
3338 lookup the CALL_EXPR function and arguments.
3340 2010-04-22 Nick Clifton <nickc@redhat.com>
3342 * config/stormy16/stormy16.c
3343 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
3344 * config/stormy16/stormy16.h: Tidy up formatting.
3345 (DONT_USE_BUILTIN_SETJMP): Remove definition.
3346 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
3347 (ineqbranchsi): Delete pattern.
3348 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
3349 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
3350 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
3351 stormy16-lib2-ucmpsi2.c.
3353 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
3355 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
3356 df_simulate_find_noclobber_defs as appropriate. Keep track of an
3357 extra set merge_set_noclobber, and use it to relax the final test
3359 * df.h (df_simulate_find_noclobber_defs): Declare.
3360 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
3362 (df_simulate_find_noclobber_defs): New function.
3364 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
3366 * config/i386/i386.md: Use {} around multi-line preparation statements.
3368 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3370 * c-tree.h (push_init_level, pop_init_level, set_init_index)
3371 (process_init_element): New argument of type struct obstack *.
3373 * c-typeck.c (push_init_level, pop_init_level, set_designator)
3374 (set_init_index, set_init_label, set_nonincremental_init)
3375 (set_nonincremental_init_from_string, find_init_member)
3376 (output_init_element, output_pending_init_elements)
3377 (process_init_element): New argument braced_init_obstack. Pass it
3379 (push_range_stack, add_pending_init): New argument
3380 braced_init_obstack. Use obstack allocation.
3382 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
3383 braced_init_obstack. Pass it down.
3384 (c_parser_braced_init): New variables ret, braced_init_obstack.
3385 Initialize obstack, pass it down and finally free it.
3387 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
3390 * tree-pass.h (pass_optimize_widening_mul): Declare.
3391 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
3392 gate_optimize_widening_mul): New static functions.
3393 (pass_optimize_widening_mul): New.
3394 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
3395 <case MULT_EXPR>: Remove support for widening multiplies.
3396 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
3397 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
3398 simplify_gen_unary rather than directly building extensions.
3399 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
3401 * expmed.c (expand_widening_mult): New function.
3402 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
3404 2010-04-21 Jan Hubicka <jh@suse.cz>
3406 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
3407 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
3408 * lto-wpa-fixup.c: Remove.
3409 * Makefile.in (lto-wpa-fixup.o): Remove.
3410 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
3411 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
3412 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
3414 2010-04-21 Jan Hubicka <jh@suse.cz>
3416 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
3417 add write_optimization_summary, read_optimization_summary.
3418 (ipa_write_summaries_of_cgraph_node_set): Remove.
3419 (ipa_write_optimization_summaries): Declare.
3420 (ipa_read_optimization_summaries): Declare.
3421 * ipa-cp.c (pass_ipa_cp): Update.
3422 * ipa-reference.c (pass_ipa_reference): Update.
3423 * ipa-pure-const.c (pass_ipa_pure_const): Update.
3424 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
3426 * ipa-inline.c (pass_ipa_inline): Update.
3427 * ipa.c (pass_ipa_whole_program): Update.
3428 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
3429 * passes.c (ipa_write_summaries_1): Do not test wpa.
3430 (ipa_write_optimization_summaries_1): New.
3431 (ipa_write_optimization_summaries): New.
3432 (ipa_read_summaries): Do not test ltrans.
3433 (ipa_read_optimization_summaries_1): New.
3434 (ipa_read_optimization_summaries): New.
3436 2010-04-21 Jan Hubicka <jh@suse.cz>
3438 * lto-cgraph.c (lto_output_node): Do not output comdat groups
3440 (output_cgraph): Do not arrange comdat groups for boundary nodes.
3442 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3445 * dwarf2out.c (add_name_and_src_coords_attributes): Add
3446 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
3448 2010-04-21 Jan Hubicka <jh@suse.cz>
3450 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
3452 2010-04-21 Jan Hubicka <jh@suse.cz>
3454 * varpool.c (decide_is_variable_needed): Variable is always needed
3457 2010-04-21 Jan Hubicka <jh@suse.cz>
3459 * opts.c (decode_options): Enable pure-const pass for whopr.
3461 2010-04-21 Jan Hubicka <jh@suse.cz>
3463 * cgraph.c (dump_cgraph_node): Dump also assembler name.
3464 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
3466 (cgraph_decide_inlining): Do not expect callee to be removed in all
3469 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
3471 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
3473 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
3475 * config/i386/i386.md (x86_shrd): Add athlon_decode and
3476 amdfam10_decode attributes.
3478 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3481 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
3482 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
3483 (lower_copyprivate_clauses): Use private var in outer
3484 context instead of original var. Make sure the types
3485 are correct for VLAs.
3487 2010-04-21 Richard Guenther <rguenther@suse.de>
3489 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
3490 to non-pointer objects.
3492 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3494 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
3495 last chain entry if it starts with the still current label.
3496 (add_location_or_const_value_attribute): Check that
3497 loc_list->first->next is NULL instead of comparing ->first with ->last.
3498 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
3499 to add_var_loc_to_decl.
3501 * dwarf2out.c (output_call_frame_info): For dw_cie_version
3502 >= 4 add also address size and segment size fields into CIE header.
3504 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
3505 long as address size is the same as sizeof (void *) and
3507 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
3508 address size or segment size is unexpected, return DW_EH_PE_omit.
3509 (classify_object_over_fdes): If get_cie_encoding returned
3510 DW_EH_PE_omit, return -1.
3511 (init_object): If classify_object_over_fdes returned -1,
3512 pretend there were no FDEs at all.
3514 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
3516 * config/i386/i386.md (bswap<mode>2): Macroize expander from
3517 bswap{si,di}2 using SWI48 mode iterator.
3518 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
3519 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
3520 set modrm attribute of bswap insn to 0 and remove length attribute.
3521 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
3522 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
3523 set mode attribute to <MODE> and remove length attribute.
3525 2010-04-20 James E. Wilson <wilson@codesourcery.com>
3527 PR rtl-optimization/43520
3528 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
3529 zero available registers.
3531 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3533 * builtins.c (fold_builtin_cproj): Fold more cases.
3535 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3537 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
3538 (fold_builtin_1): Fold builtin cproj.
3539 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
3540 Use ATTR_CONST_NOTHROW_LIST.
3542 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
3544 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
3545 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
3546 ffsi2_no_cmove for !TARGET_CMOVE.
3547 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
3548 (ffssi2): Remove expander.
3549 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
3551 (ctz<mode>2): Ditto from ctz{si,di}2.
3552 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
3554 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
3557 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3559 * dwarf2out.c (AT_linkage_name): Define.
3560 (clone_as_declaration): Handle DW_AT_linkage_name.
3561 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
3562 of DW_AT_MIPS_linkage_name.
3563 (move_linkage_attr): Likewise.
3564 (dwarf2out_finish): Likewise.
3566 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
3569 * fold-const.c (fold_comparison): New folding rule.
3571 2010-04-20 Anatoly Sokolov <aesok@post.ru>
3573 * double-int.h (double_int_setbit): Declare.
3574 * double-int.c (double_int_setbit): New function.
3575 * rtl.h (immed_double_int_const): Declare.
3576 * emit-rtl.c (immed_double_int_const): New function.
3577 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
3578 and immed_double_int_const functions.
3579 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
3580 expand_copysign_bit): (Ditto.).
3581 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
3582 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
3583 * dojump.c (prefer_and_bit_test): (Ditto.).
3584 * expr.c (convert_modes, reduce_to_bit_field_precision,
3585 const_vector_from_tree): (Ditto.).
3586 * expmed.c (mask_rtx, lshift_value): (Ditto.).
3588 2010-04-20 Jan Hubicka <jh@suse.cz>
3590 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
3591 (dump_cgraph_node): Dump new flags.
3592 * cgraph.h (struct cgraph_node): Add flags
3593 reachable_from_other_partition and in_other_partition.
3594 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
3595 other partition can not be removed.
3596 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
3597 the other partition must be output; silence sanity checking on
3598 leaking functions bodies from other paritition.
3599 * lto-cgraph.c (reachable_from_other_partition_p): New function.
3600 (lto_output_node): Output new flags; do not sanity check that inline
3601 clones are output; drop lto_forced_extern_inline_p code; do not mock
3602 visibility flags at partition boundaries.
3603 (add_node_to): New function.
3604 (output_cgraph): Use it to sort functions so masters appear before
3606 (input_overwrite_node): Input new flags.
3607 * passes.c (ipa_write_summaries): Do not call
3608 lto_new_extern_inline_states.
3609 * lto-section-out.c (forced_extern_inline,
3610 lto_new_extern_inline_states lto_delete_extern_inline_states,
3611 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
3612 * lto-streamer.h (lto_new_extern_inline_states,
3613 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
3614 lto_forced_extern_inline_p): Kill.
3616 2010-04-20 Richard Guenther <rguenther@suse.de>
3618 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
3619 from vars that can have pointers.
3620 (process_constraint): Dump useless constraints.
3622 2010-04-20 Richard Guenther <rguenther@suse.de>
3624 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
3625 (dump_sa_points_to_info): Remove asserts.
3626 (init_base_vars): nothing_id isn't an escape point nor does it
3629 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3631 * tree.h (TYPE_REF_IS_RVALUE): Define.
3632 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
3633 should_move_die_to_comdat, prune_unused_types_walk): Handle
3634 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
3635 (modified_type_die, gen_reference_type_die): Emit
3636 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
3637 if TYPE_REF_IS_RVALUE and -gdwarf-4.
3639 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3642 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
3643 calls for -fpic -m31 if they have been sibcall optimized.
3645 2010-04-19 James E. Wilson <wilson@codesourcery.com>
3647 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
3648 ar.lc fixed and call-used.
3650 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
3652 2010-04-19 Jan Hubicka <jh@suse.cz>
3654 * opts.c (decode_options): Disable whpr incompatible passes.
3655 * lto/lto.c (lto_1_to_1_map): Skip clones.
3656 (read_cgraph_and_symbols): Do not mark everything as needed.
3657 (do_whole_program_analysis): Do map only after optimizing;
3658 set proper cgraph_state; use passmanager.
3660 2010-04-19 DJ Delorie <dj@redhat.com>
3662 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
3663 POINTER_PLUS_EXPR and fix them.
3665 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
3667 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
3668 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
3669 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
3670 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
3671 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
3672 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
3673 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
3674 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
3675 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
3676 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
3677 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
3679 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
3681 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
3682 (check_cond_move_block): Likewise.
3683 (cond_move_process_if_block): Likewise.
3684 (noce_find_if_block): Improve formatting.
3685 (find_if_header): Pass 0 to memset and tweak conditions.
3686 (cond_exec_find_if_block): Fix long lines and tweak conditions.
3688 2010-04-19 Jakub Jelinek <jakub@redhat.com>
3690 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
3694 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
3695 with non-local decl doesn't need chain.
3697 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
3699 * ira-color.c (allocno_reload_assign): Avoid accumulating
3700 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
3702 2010-04-19 Martin Jambor <mjambor@suse.cz>
3704 * gimple.h (create_tmp_reg): Declare.
3705 * gimplify.c (create_tmp_reg): New function.
3706 (gimplify_return_expr): Use create_tmp_reg.
3707 (gimplify_omp_atomic): Likewise.
3708 (gimple_regimplify_operands): Likewise.
3709 * tree-dfa.c (make_rename_temp): Likewise.
3710 * tree-predcom.c (predcom_tmp_var): Likewise.
3711 (reassociate_to_the_same_stmt): Likewise.
3712 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
3713 (get_replaced_param_substitute): Likewise.
3714 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
3715 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
3716 * tree-ssa-pre.c (get_representative_for): Likewise.
3717 (create_expression_by_pieces): Likewise.
3718 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
3719 (create_tailcall_accumulator): Likewise.
3721 2010-04-19 Martin Jambor <mjambor@suse.cz>
3723 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
3725 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
3727 2010-04-19 Richard Guenther <rguenther@suse.de>
3729 PR tree-optimization/43796
3730 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
3731 from SCEV in the lattice.
3732 (vrp_visit_phi_node): Dump change.
3734 2010-04-19 Richard Guenther <rguenther@suse.de>
3736 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
3737 * configure: Re-generated.
3739 2010-04-19 Richard Guenther <rguenther@suse.de>
3741 PR tree-optimization/43783
3742 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
3743 constant ARRAY_REF operands two and three if possible.
3745 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
3748 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
3750 2010-04-19 Jie Zhang <jie@codesourcery.com>
3753 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
3755 2010-04-19 Ira Rosen <irar@il.ibm.com>
3757 PR tree-optimization/37027
3758 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
3759 and macro to access it.
3760 (vectorizable_reduction): Add argument.
3761 (vect_get_slp_defs): Likewise.
3762 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
3763 statements for possible use in SLP.
3764 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
3765 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
3766 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
3768 (vectorizable_reduction): Likewise.
3769 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
3771 (vectorizable_type_demotion, vectorizable_type_promotion,
3772 vectorizable_store): Likewise.
3773 (vect_analyze_stmt): Update call to vectorizable_reduction.
3774 (vect_transform_stmt): Likewise.
3775 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
3776 (vect_build_slp_tree): Fix indentation. Check that there are no loads
3777 from different interleaving chains in same node.
3778 (vect_slp_rearrange_stmts): New function.
3779 (vect_supported_load_permutation_p): Allow load permutations for
3780 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
3781 inside SLP nodes if necessary.
3782 (vect_analyze_slp_instance): Handle reductions.
3783 (vect_analyze_slp): Try to build SLP instances originating from groups
3785 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
3786 (vect_get_constant_vectors): Create initial vectors for reductions
3787 according to reduction code. Add new argument.
3788 (vect_get_slp_defs): Add new argument, pass it to
3789 vect_get_constant_vectors.
3790 (vect_schedule_slp_instance): Remove SLP tree root statements.
3792 2010-04-19 Jakub Jelinek <jakub@redhat.com>
3794 * tree.h (ENUM_IS_SCOPED): Define.
3795 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
3796 for ENUM_IS_SCOPED enums.
3798 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
3800 * fold-const.c (fold_comparison): Use ssizetype.
3801 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3802 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
3803 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
3804 * tree-object-size.c (compute_object_sizes): Use size_type_node.
3806 * tree.h (initialize_sizetypes): Remove parameter.
3807 (build_common_tree_nodes): Remove second parameter.
3808 * stor-layout.c (initialize_sizetypes): Remove parameter.
3809 Always create an unsigned type.
3810 (set_sizetype): Assert that the passed type is unsigned and simplify.
3811 * tree.c (build_common_tree_nodes): Remove second parameter.
3812 Adjust call to initialize_sizetypes.
3813 * c-decl.c (c_init_decl_processing): Remove second argument in call to
3814 build_common_tree_nodes.
3816 2010-04-18 Matthias Klose <doko@ubuntu.com>
3818 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
3820 2010-04-18 Ira Rosen <irar@il.ibm.com>
3822 PR tree-optimization/43771
3823 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
3824 load permutation doesn't have gaps.
3826 2010-04-18 Jan Hubicka <jh@suse.cz>
3828 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
3829 (sse_prologue_save_insn expander): Use new pattern.
3830 (sse_prologue_save_insn1): New pattern and splitter.
3831 (sse_prologue_save_insn): Update to deal also with 64bit aligned
3833 * i386.c (setup_incoming_varargs_64): Do not compute jump
3835 (ix86_gimplify_va_arg): Update alignment needed.
3836 (ix86_local_alignment): Do not align all local arrays to 128bit.
3838 2010-04-17 Jan Hubicka <jh@suse.cz>
3840 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
3842 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
3844 * arm.md (negdi2): Remove redundant code to force values into a
3847 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
3849 * arm/bpabi.S: Add EABI alignment attributes to objects.
3850 * arm/bpabi-v6m.S: Likewise.
3851 * arm/crti.asm: Likewise.
3852 * arm/crtn.asm: Likewise.
3853 * arm/lib1funcs.asm: Likewise.
3854 * arm/libunwind.S: Likewise.
3856 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
3858 * arm-protos.h (tune_params): New structure.
3859 * arm.c (current_tune): New variable.
3860 (arm_constant_limit): Delete.
3861 (struct processors): Add pointer to the tune parameters.
3862 (arm_slowmul_tune): New tuning option.
3863 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
3864 (all_cores): Adjust to pick up the tuning model.
3865 (arm_constant_limit): New function.
3866 (arm_override_options): Select the appropriate tuning model. Delete
3867 initialization of arm_const_limit.
3868 (arm_split_constant): Use the new constant-limit model.
3869 (arm_rtx_costs): Pick up the current tuning model.
3870 * arm.md (is_strongarm, is_xscale): Delete.
3871 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
3872 for Xscale variant architectures.
3873 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
3875 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3877 * config/arm/arm.c (arm_gen_constant): Remove unused variable
3879 (arm_rtx_costs_1): Remove unused variable extra_cost.
3880 (arm_unwind_emit_set): Use variable offset.
3881 (thumb1_output_casesi): Remove unused variable flags.
3883 2010-04-16 Jeff Law <law@redhat.com>
3885 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
3886 needing assignment rather than doing a two-phase assignment. Remove
3887 unused variable 'm'.
3889 2010-04-16 Jakub Jelinek <jakub@redhat.com>
3892 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
3894 2010-04-16 Doug Kwan <dougkwan@google.com>
3896 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
3897 (next_operand_entry_id): New static variable.
3898 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
3899 (add_to_ops_vec): Assigned unique ID to operand entry.
3900 (struct oecount_s): New field ID.
3901 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
3902 (undistribute_ops_list): Assign unique IDs to oecounts.
3903 (init_reassoc): reset next_operand_entry_id.
3905 2010-04-16 Doug Kwan <dougkwan@google.com>
3907 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
3908 missing left parenthesis.
3910 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
3912 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
3913 *btdi_rex64 using SWI48 mode iterator.
3914 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
3915 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
3916 *jcc_btdi_mask_rex64.
3918 2010-04-16 Anatoly Sokolov <aesok@post.ru>
3920 * double-int.h (tree_to_double_int): Convert to macro.
3921 * double-int.c (tree_to_double_int): Remove.
3923 2010-04-16 Jakub Jelinek <jakub@redhat.com>
3926 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
3927 with want_address 2 and in case a single element list might be
3928 possible, call it again with want_address 0.
3930 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3932 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
3933 case 'W' print operands for HI mode.
3934 * config/h8300/h8300.h (Y0, Y2) : New constraints.
3935 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
3936 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
3937 * config/h8300/predicate.md (bit_register_indirect_operand): New.
3939 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
3941 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
3942 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
3943 #xx:3 and #xx:4 mode.
3945 * config/h8300/h8300.md (inverted load with HImode dest): Add
3946 support for H8300SX.
3948 * config/h8300/predicate.md (bit_operand): Allow immediate values that
3949 satisfy 'U' constraint.
3951 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3953 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
3954 * configure: Regenerate.
3955 * config.in: Regenerate.
3956 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
3959 2010-04-16 Richard Guenther <rguenther@suse.de>
3961 * tree.h (struct tree_decl_minimal): Move pt_uid ...
3962 (struct tree_decl_common): ... here.
3963 (DECL_PT_UID): Adjust.
3964 (SET_DECL_PT_UID): Likewise.
3965 (DECL_PT_UID_SET_P): Likewise.
3967 2010-04-16 Richard Guenther <rguenther@suse.de>
3969 PR tree-optimization/43572
3970 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
3971 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
3972 * tree-flow.h (is_call_clobbered): Remove.
3973 * tree-flow-inline.h (is_call_clobbered): Likewise.
3974 * tree-dfa.c (dump_variable): Do not dump call clobber state.
3975 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
3976 (execute_return_slot_opt): Adjust.
3977 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
3978 check for call clobbered vars here.
3979 (find_tail_calls): Move tailcall verification to the
3982 2010-04-16 Diego Novillo <dnovillo@google.com>
3984 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
3986 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
3989 * config/arm/arm.md (cbranchqi4): New pattern.
3990 * config/arm/predicates.md (const0_operand,
3991 cbranchqi4_comparison_operator): New predicates.
3993 2010-04-16 Richard Guenther <rguenther@suse.de>
3995 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
3996 (dump_gimple_stmt): Likewise.
3998 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
4000 * recog.h (struct recog_data): New field is_operator.
4001 (struct insn_operand_data): New field is_operator.
4002 * recog.c (extract_insn): Set recog_data.is_operator.
4003 * genoutput.c (output_operand_data): Emit code to set the
4005 * reload.c (find_reloads): Use it rather than testing for an
4006 empty constraint string.
4009 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
4010 If the previous insn is a cbranchsi4_insn with the same arguments,
4011 omit the compare instruction.
4013 * config/arm/arm.md (addsi3_cbranch): If destination is a high
4014 register, inputs must be low registers and we need a low register
4015 scratch. Handle alternative 2 like alternative 3.
4017 2010-04-16 Jakub Jelinek <jakub@redhat.com>
4019 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
4020 don't call get_addr on both. If one expression is a VALUE and
4021 the other a REG, check VALUE's locs if the REG isn't among them.
4023 2010-04-16 Christian Bruel <christian.bruel@st.com>
4025 * config/sh/sh.h (sh_frame_pointer_required): New function.
4026 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
4027 (flag_omit_frame_pointer) Set.
4028 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
4029 (rounded_frame_size): Adjust size with outgoing_args_size.
4030 (sh_set_return_address): Must return from stack pointer.
4031 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
4032 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
4033 (ACCUMULATE_OUTGOING_ARGS): Define.
4034 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
4035 * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
4037 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
4040 * config/sh/sh.c (sh_legitimize_reload_address): Use
4041 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
4042 Remove a unneeded check for offset_base.
4044 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
4046 * configure: Regenerated.
4048 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4050 * config/s390/s390.c (s390_call_save_register_used): Switch back
4051 to HARD_REGNO_NREGS.
4053 2010-04-15 Richard Guenther <rguenther@suse.de>
4055 * alias.c (alias_set_subset_of): Handle alias-set zero
4058 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
4059 Julian Brown <julian@codesourcery.com>
4061 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
4062 alternatives according to use of high and low regs.
4063 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
4064 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
4065 optimizing for size on Thumb-2.
4067 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
4069 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
4071 2010-04-15 Richard Guenther <rguenther@suse.de>
4073 * tree-ssa-structalias.c (struct variable_info): Add
4075 (new_var_info): Initialize it.
4076 (dump_constraints): Support printing last added constraints.
4077 (debug_constraints): Adjust.
4078 (dump_constraint_graph): Likewise.
4079 (make_heapvar_for): Check for NULL cfun.
4080 (get_function_part_constraint): New function.
4081 (get_fi_for_callee): Likewise.
4082 (find_func_aliases): Properly implement IPA PTA constraints.
4083 (process_ipa_clobber): New function.
4084 (find_func_clobbers): Likewise.
4085 (insert_into_field_list_sorted): Remove.
4086 (create_function_info_for): Properly allocate vars for IPA mode.
4087 Do not use insert_into_field_list_sorted.
4088 (create_variable_info_for): Properly generate constraints for
4089 global vars in IPA mode.
4090 (dump_solution_for_var): Always dump the solution.
4091 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
4092 (find_what_var_points_to): Adjust.
4093 (pt_solution_set): Change.
4094 (pt_solution_ior_into): New function.
4095 (pt_solution_empty_p): Export.
4096 (pt_solution_includes_global): Adjust.
4097 (pt_solution_includes_1): Likewise.
4098 (pt_solutions_intersect_1): Likewise.
4099 (dump_sa_points_to_info): Check some invariants.
4100 (solve_constraints): Move constraint dumping ...
4101 (compute_points_to_sets): ... here.
4102 (ipa_pta_execute): ... and here.
4103 (compute_may_aliases): Do not re-compute points-to info
4104 locally if IPA info is available.
4105 (ipa_escaped_pt): New global var.
4106 (ipa_pta_execute): Properly implement IPA PTA.
4107 * tree-into-ssa.c (dump_decl_set): Support dumping
4108 decls not in referenced-vars.
4109 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
4110 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
4111 (dump_points_to_solution): Likewise.
4112 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
4113 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
4114 (remap_gimple_stmt): Reset call clobber/use information if necessary.
4115 (copy_decl_to_var): Copy DECL_PT_UID.
4116 (copy_result_decl_to_var): Likewise.
4117 * tree.c (make_node_stat): Initialize DECL_PT_UID.
4118 (copy_node_stat): Copy it.
4119 * tree.h (DECL_PT_UID): New macro.
4120 (SET_DECL_PT_UID): Likewise.
4121 (DECL_PT_UID_SET_P): Likewise.
4122 (struct tree_decl_minimal): Add pt_uid member.
4123 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
4124 (pt_solution_empty_p): Declare.
4125 (pt_solution_set): Adjust.
4126 (ipa_escaped_pt): Declare.
4127 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
4128 * gimple-pretty-print.c (pp_points_to_solution): New function.
4129 (dump_gimple_call): Dump call clobber/use information.
4130 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
4131 * tree-pass.h (TDF_ALIAS): New dump option.
4132 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
4133 * doc/invoke.texi (-fipa-pta): Update documentation.
4135 2010-04-15 Richard Guenther <rguenther@suse.de>
4137 * Makefile.in (OBJS-common): Add gimple-fold.o.
4138 (gimple-fold.o): New rule.
4139 * tree.h (maybe_fold_offset_to_reference,
4140 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
4142 * gimple.h: ... here.
4143 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
4144 may_propagate_address_into_dereference): Move prototypes ...
4145 * gimple.h: ... here.
4146 * tree-ssa-ccp.c (get_symbol_constant_value,
4147 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
4148 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
4149 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
4150 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
4151 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
4152 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
4153 gimplify_and_update_call_from_tree): Move ...
4154 * gimple-fold.c: ... here. New file.
4155 (ccp_fold_builtin): Rename to ...
4156 (gimple_fold_builtin): ... this.
4157 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
4159 2010-04-15 Richard Guenther <rguenther@suse.de>
4161 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
4162 fit_double_type, force_fit_type_double, add_double_with_sign,
4163 neg_double, mul_double_with_sign, lshift_double, rshift_double,
4164 lrotate_double, rrotate_double, div_and_round_double): Move ...
4165 * double-int.c: ... here.
4166 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
4167 add_double, neg_double, mul_double_with_sign, mul_double,
4168 lshift_double, rshift_double, lrotate_double, rrotate_double,
4169 div_and_round_double): Move prototypes ...
4170 * double-int.h: ... here.
4172 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
4175 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
4176 matching constraints to ensure inputs match the output.
4178 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
4181 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
4182 in an input-only operand.
4184 2010-04-15 Anatoly Sokolov <aesok@post.ru>
4186 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
4187 (double_int_not, double_int_lshift, double_int_rshift): Declare.
4188 (double_int_negative_p): Convert to static inline function.
4189 * double-int.c (double_int_lshift, double_int_lshift): New functions.
4190 (double_int_negative_p): Remove.
4191 * tree.h (lshift_double, rshift_double):
4192 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
4193 * fold-const.c (fold_convert_const_int_from_real,
4194 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
4195 (lshift_double): Change type of arith argument to bool.
4196 (rshift_double): Change type of arith argument to bool. Correct
4198 * expmed.c (mask_rtx, lshift_value): (Ditto.).
4200 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
4203 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
4204 at the start and end of the then/else blocks, and omit them from the
4206 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
4207 argument; all callers changed. Pass zero to old_insns_match_p instead.
4208 (flow_find_head_matching_sequence): New function.
4209 (old_insns_match_p): Check REG_EH_REGION notes for calls.
4210 * basic-block.h (flow_find_cross_jump,
4211 flow_find_head_matching_sequence): Declare functions.
4213 2010-04-14 Jason Merrill <jason@redhat.com>
4216 * c-common.c (attribute_takes_identifier_p): New fn.
4217 * c-common.h: Declare it.
4219 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4221 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
4223 (*udivmod<mode>4): Ditto.
4225 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4227 * config/i386/i386.md (maxmin_int): Rename code attribute from
4228 maxminiprefix and update all users.
4229 (maxmin_float): Ditto from maxminfprefix.
4230 (logic): Ditto from logicprefix.
4231 (absneg_mnemonic): Ditto from absnegprefix.
4232 * config/i386/mmx.md: Update all users of maxminiprefix,
4233 maxminfprefix and logicprefix for rename.
4234 * config/i386/sse.md: Ditto.
4235 * config/i386/sync.md (sync_<code><mode>): Update for
4238 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4241 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
4242 warnings converted to errors.
4244 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4246 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
4247 used insn_type variable.
4248 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
4249 to avoid set-but-not-used warning.
4251 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4253 * df-core.c (df_ref_debug): Change format string placeholder
4255 * dwarf2asm.c (dw2_asm_output_data_raw,
4256 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
4257 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
4258 * dwarf2out.c (output_cfi, output_cfi_directive,
4259 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
4260 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
4262 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
4263 * print-rtl.c (print_rtx): Ditto.
4265 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4268 * builtins.c (expand_builtin_pow_root): New function to expand pow
4269 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
4270 series of sqrt and cbrt calls under -ffast-math.
4271 (expand_builtin_pow): Call it.
4273 2010-04-14 Michael Matz <matz@suse.de>
4275 PR tree-optimization/42963
4276 * tree-cfg.c (touched_switch_bbs): New static variable.
4277 (group_case_labels_stmt): New function broken out from ...
4278 (group_case_labels): ... here, use the above.
4279 (start_recording_case_labels): Allocate touched_switch_bbs.
4280 (end_recording_case_labels): Deallocate it, call
4281 group_case_labels_stmt.
4282 (gimple_redirect_edge_and_branch): Remember index of affected BB.
4284 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4286 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
4289 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4291 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
4293 2010-04-13 Jan Hubicka <jh@suse.cz>
4295 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
4296 of optimized out static functions.
4297 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
4298 cost computation. Also sanity check for overflows.
4299 (update_caller_keys): Update cgraph_edge_badness call; properly
4300 update fibheap and sanity check that it is up to date.
4301 (add_new_edges_to_heap): Update cgraph_edge_badness.
4302 (cgraph_decide_inlining_of_small_function): Likewise;
4303 add sanity checking that badness in heap is up to date;
4304 improve dumping of reason; Update badness of calls to the
4305 offline copy of function currently inlined; dump badness
4306 of functions not inlined because of unit growth limits.
4308 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
4311 * c-common.c (pointer_int_sum): Disregard overflow that occured only
4312 because of sign-extension change when converting to sizetype here...
4313 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
4315 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
4316 the folding to constants. Remove redundant final conversion.
4317 (fold_binary) <associate>: Do not associate if the re-association of
4318 constants alone overflows.
4319 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
4320 to the end of the list.
4321 (multiple_of_p) <COND_EXPR>: New case.
4323 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4325 * opt-functions.awk (opt_sanitized_name): New.
4327 * optc-gen.awk: Use it
4328 * opth-gen.awk: Use it.
4330 2010-04-13 Martin Jambor <mjambor@suse.cz>
4332 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
4333 (sra_modify_assign): Delete stmts loading dead data even if racc has no
4334 children. Call replace_uses_with_default_def_ssa_name to handle
4337 2010-04-13 Michael Matz <matz@suse.de>
4340 * builtins.c (expand_builtin_interclass_mathfn): Also create
4341 a register if the predicate doesn't match.
4343 2010-04-13 Diego Novillo <dnovillo@google.com>
4345 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
4346 * c-pch.c: Include timevar.h.
4347 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
4348 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
4349 * ggc-common.c: Include timevar.h.
4350 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
4351 * timevar.def (TV_PCH_SAVE): Define.
4352 (TV_PCH_CPP_SAVE): Define.
4353 (TV_PCH_PTR_REALLOC): Define.
4354 (TV_PCH_PTR_SORT): Define.
4355 (TV_PCH_RESTORE): Define.
4356 (TV_PCH_CPP_RESTORE): Define.
4358 2010-04-13 Michael Matz <matz@suse.de>
4360 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
4362 (can_reassociate_p): New function.
4363 (break_up_subtract_bb, reassociate_bb): Use it.
4365 2010-04-13 Richard Guenther <rguenther@suse.de>
4368 * builtins.c (c_readstr): Fix assert.
4370 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
4372 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
4373 when generating cltd insn.
4375 (*ashl<mode>3_1): Remove special handling for register operand 2.
4376 (*ashlsi3_1_zext): Ditto.
4377 (*ashlhi3_1): Ditto.
4378 (*ashlhi3_1_lea): Ditto.
4379 (*ashlqi3_1): Ditto.
4380 (*ashlqi3_1_lea): Ditto.
4381 (*<shiftrt_insn><mode>3_1): Ditto.
4382 (*<shiftrt_insn>si3_1_zext): Ditto.
4383 (*<shiftrt_insn>qi3_1_slp): Ditto.
4384 (*<rotate_insn><mode>3_1): Ditto.
4385 (*<rotate_insn>si3_1_zext): Ditto.
4386 (*<rotate_insn>qi3_1_slp): Ditto.
4388 2010-04-13 Richard Guenther <rguenther@suse.de>
4390 * tree-ssa-structalias.c (callused_id): Remove.
4391 (call_stmt_vars): New.
4392 (get_call_vi): Likewise.
4393 (lookup_call_use_vi): Likewise.
4394 (lookup_call_clobber_vi): Likewise.
4395 (get_call_use_vi): Likewise.
4396 (get_call_clobber_vi): Likewise.
4397 (make_transitive_closure_constraints): Likewise.
4398 (handle_const_call): Adjust to do per-call call-used handling.
4399 (handle_pure_call): Likewise.
4400 (find_what_var_points_to): Remove general callused handling.
4401 (init_base_vars): Likewise.
4402 (init_alias_vars): Initialize call_stmt_vars.
4403 (compute_points_to_sets): Process call-used and call-clobbered
4404 vars for call statements.
4405 (delete_points_to_sets): Free call_stmt_vars.
4407 2010-04-13 Richard Guenther <rguenther@suse.de>
4409 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4410 Only add RW dependence for dependence distance zero.
4411 Adjust maximal vectorization factor according to dependences.
4412 Move alignment handling ...
4413 (vect_find_same_alignment_drs): ... here. New function.
4414 (vect_analyze_data_ref_dependences): Adjust.
4415 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
4416 (vect_analyze_data_refs): Adjust minimal vectorization factor
4417 according to data references.
4418 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
4419 dependences before determining the vectorization factor.
4420 Analyze alignment after determining the vectorization factor.
4421 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
4422 dependences before alignment.
4423 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
4425 (vect_analyze_data_refs): Likewise.
4426 (MAX_VECTORIZATION_FACTOR): New define.
4428 2010-04-13 Duncan Sands <baldrick@free.fr>
4430 * except.h (lang_eh_type_covers): Remove.
4431 * except.c (lang_eh_type_covers): Likewise.
4433 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4434 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4436 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
4437 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
4438 UNITS_PER_LONG where it is ABI relevant.
4439 (s390_return_addr_rtx): Likewise.
4440 (s390_back_chain_rtx): Likewise.
4441 (s390_frame_area): Likewise.
4442 (s390_frame_info): Likewise.
4443 (s390_initial_elimination_offset): Likewise.
4444 (save_gprs): Likewise.
4445 (s390_emit_prologue): Likewise.
4446 (s390_emit_epilogue): Likewise.
4447 (s390_function_arg_advance): Likewise.
4448 (s390_function_arg): Likewise.
4449 (s390_va_start): Likewise.
4450 (s390_gimplify_va_arg): Likewise.
4451 (s390_function_profiler): Likewise.
4452 (s390_optimize_prologue): Likewise.
4453 (s390_rtx_costs): Likewise.
4454 (s390_secondary_reload): Likewise.
4455 (s390_promote_function_mode): Likewise.
4456 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
4457 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
4458 registers available.
4459 (s390_unwind_word_mode): New function.
4460 (s390_function_value): Split 64 bit values into register pair if
4461 used as return value.
4462 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
4463 function call parameters. Handle parallels.
4464 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
4465 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
4466 (DWARF_CIE_DATA_ALIGNMENT): New macro.
4467 (s390_expand_setmem): Remove unused variable src_addr.
4468 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
4469 deal with 64 bit registers.
4470 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
4471 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
4472 (UNITS_PER_LONG): New macro.
4473 * libjava/include/s390-signal.h: Define extended ucontext
4474 structure containing the upper halfs of the 64 bit registers.
4476 2010-04-13 Simon Baldwin <simonb@google.com>
4478 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
4480 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
4482 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
4483 rvalue on the RHS if the LHS is of a non-renamable type.
4484 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
4486 2010-04-13 Matthias Klose <doko@ubuntu.com>
4488 * gcc.c (cc1_options): Handle -iplugindir before processing
4489 the cc1 spec. Only add -iplugindir once.
4490 (cpp_unique_options): Add -iplugindir option if -fplugin* options
4492 * common.opt (iplugindir): Remove `Separate' property, initialize.
4493 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
4495 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
4496 (distclean): Remove plugin dir.
4497 * doc/invoke.texi: Document -iplugindir.
4499 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
4501 * doc/plugins.texi (Loading Plugins): Document short
4502 -fplugin=foo option.
4503 (Plugin API): Mention default_plugin_dir_name function.
4505 * gcc.c (find_file_spec_function): Add new declaration.
4506 (static_spec_func): Use it for "find-file".
4507 (find_file_spec_function): Add new function.
4508 (cc1_options): Add -iplugindir option if -fplugin* options found.
4510 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
4512 * plugin.c (add_new_plugin): Updated comment, and handle short
4514 (default_plugin_dir_name): Added new function.
4516 * common.opt (iplugindir): New option to set the plugin directory.
4518 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
4520 * config/i386/i386.md (any_rotate): New code iterator.
4521 (rotate_insn): New code attribute.
4523 (SWIM124): New mode iterator.
4524 (<rotate_insn>ti3): New expander.
4525 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
4526 any_rotate code iterator.
4527 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
4528 using any_rotate code iterator and SWIM124 mode iterator.
4529 (ix86_rotlti3): New insn_and_split pattern.
4530 (ix86_rotrti3): Ditto.
4531 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
4532 ix86_rotl{di,ti}3 patterns.
4533 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
4534 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
4535 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
4536 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
4537 code iterator and SWI mode iterator.
4538 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
4539 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
4541 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
4542 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
4543 (bswap rotatert splitter): Add splitter.
4544 (bswap splitter): Macroize splitter using any_rotate code iterator.
4545 Add insn predicate to split only for TARGET_USE_XCHGB or when
4546 optimizing function for size.
4548 2010-04-12 Steve Ellcey <sje@cup.hp.com>
4550 * config/pa/pa.c (emit_move_sequence): Remove use of
4551 deleted variable flag_argument_noalias.
4553 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4555 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
4557 Add to unsupported targets list.
4558 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
4559 sparc*-sun-solaris2.[567]* from target lists.
4560 * configure: Regenerate.
4561 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
4563 Remove Solaris 7 patch references.
4564 (Specific, sparc-sun-solaris2.7): Removed.
4565 (sparc-sun-solaris2*): Update Solaris 7 example.
4566 (sparc64-*-solaris2*): Likewise.
4568 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4570 * config.build (alpha*-dec-osf4*): Remove.
4571 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
4572 of obsolete configurations.
4573 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
4575 * config/alpha/t-osf4: Renamed to ...
4576 * config/alpha/t-osf5: ... this.
4577 * config/alpha/osf.h: Renamed to ...
4578 * config/alpha/osf5.h: ... this.
4579 Merged old osf5.h contents.
4581 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
4582 (EXTRA_SPECS): Removed.
4583 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
4584 reflect removal of Tru64 UNIX V4.0/V5.0 support.
4587 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4589 * doc/contrib.texi (Contributors, Rainer Orth): Update.
4591 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
4594 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
4595 __thiscall convention.
4597 2010-04-12 Steve Ellcey <sje@cup.hp.com>
4599 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
4601 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
4603 2010-04-12 Steve Ellcey <sje@cup.hp.com>
4605 * function.c (assign_parms_initialize_all): Add unused attribute
4608 2010-04-12 Richard Guenther <rguenther@suse.de>
4610 * gsstruct.def (GSS_CALL): New.
4611 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
4612 * gimple.h: Include tree-ssa-alias.h.
4613 (struct gimple_statement_call): New.
4614 (union gimple_statement_struct_d): Add gimple_call member.
4615 (gimple_call_reset_alias_info): Declare.
4616 (gimple_call_use_set): New function.
4617 (gimple_call_clobber_set): Likewise.
4618 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
4619 * gimple.c (gimple_call_reset_alias_info): New function.
4620 (gimple_build_call_1): Call it.
4621 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4622 * tree-inline.c (remap_gimple_stmt): Likewise.
4623 (expand_call_inline): Remove callused handling.
4624 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
4625 * tree-dfa.c (dump_variable): Likewise.
4626 * tree-parloops.c (parallelize_loops): Likewise.
4627 * tree-ssa.c (init_tree_ssa): Likewise.
4628 (delete_tree_ssa): Likewise.
4629 * tree-flow-inline.h (is_call_used): Remove.
4630 * tree-flow.h (struct gimple_df): Remove callused member.
4631 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
4632 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
4633 (ref_maybe_used_by_call_p_1): Simplify.
4634 (call_may_clobber_ref_p_1): Likewise.
4635 * tree-ssa-structalias.c (compute_points_to_sets): Set
4636 the call stmt used and clobbered sets.
4637 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
4638 (find_tail_calls): Verify the tail call.
4640 2010-04-12 Richard Guenther <rguenther@suse.de>
4642 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
4643 single-iteration always-inline inlining.
4644 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
4645 (cgraph_decide_inlining): Do not handle always-inline specially.
4646 (try_inline): Remove always-inline cycle detection special case.
4647 Do not recurse on always-inlines.
4648 (cgraph_early_inlining): Do not iterate if not optimizing.
4649 (cgraph_gate_early_inlining): remove.
4650 (pass_early_inline): Run unconditionally.
4651 (gate_cgraph_decide_inlining): New function.
4652 (pass_ipa_inline): Use it. Do not run the IPA inliner if
4653 not inlining or optimizing.
4654 (cgraph_decide_inlining_of_small_functions): Also consider
4655 always-inline functions.
4656 (cgraph_default_inline_p): Return true for nodes which should
4657 disregard inline limits.
4658 (estimate_function_body_sizes): Assume zero size and time for
4659 nodes which are marked as disregarding inline limits.
4660 (cgraph_decide_recursive_inlining): Do not perform recursive
4661 inlining on always-inline nodes.
4663 2010-04-12 Jakub Jelinek <jakub@redhat.com>
4666 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
4667 for exprs satisfying handled_component_p.
4669 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
4671 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
4672 non-constant aggregate elements.
4674 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
4675 is a real initialization.
4677 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
4680 * c-decl.c (start_function): Move forward check for nested function.
4682 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
4684 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
4685 * config/sh/sh.c: Include reload.h.
4686 (sh_legitimize_reload_address): New.
4687 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
4688 sh_legitimize_reload_address.
4690 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4692 * config/sh/sh.md (*movqi_pop): New insn pattern.
4693 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
4695 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
4697 * config/i386/i386.md (any_shiftrt): New code iterator.
4698 (shiftrt_insn): New code attribute.
4700 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
4701 using any_shiftrt code iterator.
4702 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
4703 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
4704 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
4705 pattern from corresponding peephole2 patterns.
4706 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
4707 using any_shiftrt code iterator.
4708 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
4709 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
4710 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
4711 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
4712 *{ashr,lshr}<mode>3_cmp_zext.
4713 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
4715 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
4717 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
4719 (*lshr<mode>3_cconly): Ditto.
4721 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
4723 * config/i386/i386.md (lshr<mode>3): Macroize expander from
4724 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
4725 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
4726 pattern from *lshr{di,ti}3_1 and corresponding splitters using
4728 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
4729 from corresponding peephole2 patterns.
4730 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
4731 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
4732 and *lshrdi3_1_rex64 using SWI mode iterator.
4733 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
4734 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
4735 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
4736 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
4737 and *lshrdi3_cmp_rex64 using SWI mode iterator.
4738 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
4739 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
4740 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
4741 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
4744 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
4746 * config/i386/i386.md (ashr<mode>3): Macroize expander from
4747 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
4748 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
4749 pattern from *ashr{di,ti}3_1 and corresponding splitters using
4751 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
4752 from corresponding peephole2 patterns.
4753 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
4754 (ashrsi3_cvt): Rename from ashrsi3_31.
4755 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
4756 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
4757 and x86_64_shift_adj_3 using SWI48 mode iterator.
4758 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
4759 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
4760 and *ashrdi3_1_rex64 using SWI mode iterator.
4761 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
4762 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
4763 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
4764 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
4765 and *ashrdi3_cmp_rex64 using SWI mode iterator.
4766 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
4767 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
4768 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
4769 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
4771 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
4772 * config/i386/i386.c (ix86_split_ashr): Update for renamed
4773 x86_shift<mode>_adj_3 expanders.
4775 2010-04-10 Wei Guozhi <carrot@google.com>
4778 * config/arm/arm.c (arm_pic_static_addr): New function.
4779 (legitimize_pic_address): Call arm_pic_static_addr when it detects
4781 (arm_output_addr_const_extra): Output expression for new pattern.
4782 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
4784 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
4786 * ira-costs.c (record_reg_classes): Ignore alternatives that are
4789 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
4790 * web.c: Include "insn-config.h" and "recog.h".
4791 (union_match_dups): New function.
4792 (web_main): Call it.
4793 (union_defs): Don't try to recognize match_dups.
4795 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
4796 if doing so would replace the entire pattern.
4798 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
4802 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
4803 and splitter pattern. Change splitter operand 1 predicate to
4806 2010-04-09 Martin Jambor <mjambor@suse.cz>
4808 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
4809 lattices are addresses of CONST_DECLs with the same initial value.
4810 (ipcp_print_all_lattices): Print values of CONST_DECLs.
4811 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
4813 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
4814 Bernd Schmidt <bernds@codesourcery.com>
4816 * loop-invariant.c (replace_uses): New static function.
4817 (move_invariant_reg): Use it to ensure we can replace the uses.
4819 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
4821 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
4823 (picochip_override_options): Enable section anchors only above -O1.
4824 (picochip_reorg): Fixed a couple of build warnings.
4826 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4828 * configure.ac (plugin -rdynamic test): Log result.
4829 * configure: Regenerate.
4830 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
4831 (RDYNAMIC_SPEC): Define.
4832 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
4834 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4836 * configure.ac: Determine Sun ld version numbers.
4837 (comdat_group): Restrict GNU ld version checks to gld.
4838 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
4839 (enable_comdat): Support --enable-comdat.
4840 * configure: Regenerate.
4841 * doc/install.texi (Configuration): Document --enable-comdat.
4843 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4845 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
4846 * config/sol2-gld.h: ... here.
4847 * config.gcc (sparc*-*-solaris2*): Reflect this.
4848 (i[34567]86-*-solaris2*): Use it.
4850 2010-04-09 Steve Ellcey <sje@cup.hp.com>
4852 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
4854 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
4856 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4859 * diagnostic.c (diagnostic_initialize): Initialize
4860 some_warnings_are_errors.
4861 (diagnostic_finish): New.
4862 (diagnostic_action_after_output): Call it before exiting.
4863 (diagnostic_report_diagnostic): Do not print message here. Set
4864 some_warnings_are_errors.
4865 * diagnostic.h (diagnostic_context): Delete
4866 issue_warnings_are_errors_message. Add some_warnings_are_errors.
4867 (diagnostic_finish): Declare.
4868 * toplev.c (toplev_main): Call it before exit.
4870 2010-04-09 Jason Merrill <jason@redhat.com>
4873 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
4874 for incomplete type.
4877 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
4878 based on a warning flag.
4880 2010-04-09 Richard Guenther <rguenther@suse.de>
4882 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
4884 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
4887 * varasm.c (default_assemble_visibility): Wrap vars that are
4888 set, but unused, by targets without GAS.
4889 * config/rs6000/rs6000.c: (paired_emit_vector_compare):
4890 Remove set, but unused, vars.
4891 (rs6000_legitimize_tls_address): Likewise.
4892 (altivec_expand_dst_builtin): Likewise.
4893 * config/darwin.c (machopic_classify_symbol): Likewise.
4894 (machopic_indirection_name): Likewise.
4896 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
4898 * config/i386/i386.md (DWI): New mode iterator.
4899 (S): New mode attribute.
4900 (shift_operand): Ditto.
4901 (shift_immediate_operand): Ditto.
4902 (ashl_input_operand): Ditto.
4903 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
4904 using SDWIM mode iterator.
4905 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
4906 pattern from *ashl{di,ti}3_1 and corresponding splitters using
4908 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
4909 from corresponding peephole2 patterns.
4910 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
4911 and x86_64_shift_adj_1 using SWI48 mode iterator.
4912 (x86_shift<mode>_adj_2): Ditto.
4913 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
4914 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
4915 using SWI48 mode iterator.
4916 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
4917 *ashldi3_cmp_rex64 using SWI mode iterator.
4918 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
4919 *ashldi3_cconly_rex64 using SWI mode iterator.
4920 * config/i386/i386.c (ix86_split_ashl): Update for renamed
4921 x86_shift<mode>_adj_{1,2}.
4922 (ix86_split_ashr): Ditto.
4923 (ix86_split_lshr): Ditto.
4925 2010-04-09 Richard Guenther <rguenther@suse.de>
4927 * target.h (builtin_conversion): Pass in input and output types.
4928 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
4929 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
4930 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
4931 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
4933 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
4935 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
4937 2010-04-09 Richard Guenther <rguenther@suse.de>
4940 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
4942 2010-04-09 Richard Guenther <rguenther@suse.de>
4944 * tree-vectorizer.h (struct _stmt_vec_info): Document
4945 that vectype is the type of the LHS.
4946 (supportable_widening_operation, supportable_narrowing_operation):
4947 Get both input and output vector types as arguments.
4948 (vect_is_simple_use_1): Declare.
4949 (get_same_sized_vectype): Likewise.
4950 * tree-vect-loop.c (vect_determine_vectorization_factor):
4951 Set STMT_VINFO_VECTYPE to the vector type of the def.
4952 (vectorizable_reduction): Adjust.
4953 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
4954 Adjust. Specify the output vector type.
4955 (vect_pattern_recog_1): Adjust.
4956 * tree-vect-stmts.c (get_same_sized_vectype): New function.
4957 (vectorizable_call): Adjust.
4958 (vectorizable_conversion): Likewise.
4959 (vectorizable_operation): Likewise.
4960 (vectorizable_type_demotion): Likewise.
4961 (vectorizable_type_promotion): Likewise.
4962 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
4964 (vect_is_simple_use_1): New function.
4965 (supportable_widening_operation): Get both input and output
4967 (supportable_narrowing_operation): Likewise.
4968 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
4970 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
4972 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
4973 __thiscall and _thiscall as predefined macros.
4974 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
4975 thiscall attribute handling.
4976 (ix86_comp_type_attributes): Likewise.
4977 (ix86_function_regparm): Likewise.
4978 (ix86_return_pops_args): Likewise.
4979 (init_cumulative_args): Likewise.
4980 (find_drap_reg): Likewise.
4981 (ix86_static_chain): Likewise.
4982 (x86_this_parameter): Likewise.
4983 (x86_output_mi_thunk): Likewise.
4984 (ix86_attribute_table): Add description for thiscall attribute.
4985 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
4986 * doc/extend.texi: Add documentation for thiscall.
4988 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4991 * c.opt (Wint-to-pointer-cast): Available in C++.
4992 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
4994 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
4996 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
4997 * calls.c (expand_call): Pass the function type to aggregate_value_p.
4998 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
4999 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
5000 function type instead. Reorder and simplify checks.
5002 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
5004 2010-04-08 Jing Yu <jingyu@google.com>
5005 Zdenek Dvorak <ook@ucw.cz>
5007 PR tree-optimization/42720
5008 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
5009 loop unswitch conditions here from ...
5010 (tree_unswitch_single_loop): ... here.
5012 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
5014 * tree-if-conv.c: Fix comments and simplify logic.
5016 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
5018 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
5019 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
5020 (main_tree_if_conversion): Update call to tree_if_conversion.
5022 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5025 * doc/invoke.texi (-b,-V): Delete.
5026 * doc/tm.texi: Do not mention -b.
5027 * gcc.c (display_help): Delete -b and -V.
5028 (process_command): Delete -b and -V.
5029 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
5031 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
5032 Wolfgang Gellerich <gellerich@de.ibm.com>
5034 Implement target hook for loop unrolling
5035 * target.h (loop_unroll_adjust): Add a new target hook function.
5036 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
5037 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
5038 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
5039 (s390_loop_unroll_adjust): Implement the new target hook for s390.
5040 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
5042 (decide_unroll_stupid): Likewise.
5044 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5047 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
5049 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5051 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
5052 (Specific, *-*-solaris2*): Likewise.
5053 Don't prefer Sun as over GNU as.
5055 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
5057 * config/s390/s390.c (override_options): Adjust the z10 defaults
5058 for max-unroll-times, max-completely-peeled-insns
5059 and max-completely-peel-times.
5061 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5063 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
5064 instructions for z10.
5065 (s390_expand_setmem): Likewise.
5066 (s390_expand_cmpmem): Likewise.
5068 2010-04-08 Richard Guenther <rguenther@suse.de>
5070 PR tree-optimization/43679
5071 * tree-ssa-pre.c (eliminate): Only propagate copies.
5073 2010-04-08 Jakub Jelinek <jakub@redhat.com>
5076 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
5077 set but not used variable warning.
5079 2010-04-08 Wei Guozhi <carrot@google.com>
5082 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
5083 (arm_size_rtx_costs): Call the new function when optimized for size.
5085 2010-04-08 Jakub Jelinek <jakub@redhat.com>
5088 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
5089 op0 is not a MEM, just return NULL instead of assertion
5091 (discover_nonconstant_array_refs): Don't walk debug stmts.
5093 2010-04-08 Doug Kwan <dougkwan@google.com>
5095 * configure.ac: Recognize gold and do not use its version number
5096 to test ld features.
5097 * configure: Regenerate.
5099 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
5102 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
5103 (negate_value): Move code to push elements to broken_up_substracts ...
5104 (eliminate_plus_minus_pair): ... here. Push operands that have no
5105 negative pair to plus_negates.
5106 (repropagate_negates, init_reassoc, fini_reassoc): Update.
5108 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5110 * doc/install.texi (Configuration): Move description of
5111 --enable-lto, --with-libelf*, --enable-gold from Java section to
5114 * doc/generic.texi (Working with declarations)
5115 (Function Properties, C and C++ Trees): Fix typos.
5116 * doc/sourcebuild.texi (Top Level): Likewise.
5118 2010-04-07 Jakub Jelinek <jakub@redhat.com>
5121 * tree.h (DECL_READ_P): Define.
5122 (struct tree_decl_common): Add decl_read_flag.
5123 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
5124 a set but not used warning.
5125 (merge_decls): Merge DECL_READ_P flag.
5126 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
5127 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
5128 * c-common.c (handle_used_attribute, handle_unused_attribute):
5130 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
5132 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
5134 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
5135 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
5136 c_parser_binary_expression, c_parser_cast_expression,
5137 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
5138 Call default_function_array_read_conversion instead of
5139 default_function_array_conversion where needed.
5140 (c_parser_unary_expression, c_parser_conditional_expression,
5141 c_parser_postfix_expression_after_primary, c_parser_initelt):
5142 Likewise. Call mark_exp_read where needed.
5143 (c_parser_statement_after_labels, c_parser_asm_operands,
5144 c_parser_typeof_specifier, c_parser_sizeof_expression,
5145 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
5147 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
5149 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
5150 (warn_unused_but_set_parameter): Default to warn_unused
5152 * doc/invoke.texi: Document -Wunused-but-set-variable and
5153 -Wunused-but-set-parameter.
5155 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
5156 used count variable.
5157 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
5158 when operandN variables aren't used in the body of the expander
5160 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
5161 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
5162 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
5163 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
5164 FOR_EACH_IMM_USE_ON_STMT): Likewise.
5165 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
5166 * tree.c (PROCESS_ARG): Likewise.
5168 2010-04-07 Simon Baldwin <simonb@google.com>
5170 * diagnostic.h (diagnostic_override_option_index): New macro to
5171 set a diagnostic's option_index.
5172 * c-tree.h (c_cpp_error): Add warning reason argument.
5173 * opts.c (_warning_as_error_callback): New.
5174 (register_warning_as_error_callback): Store callback for
5175 warnings enabled via enable_warning_as_error.
5176 (enable_warning_as_error): Call callback, minor code tidy.
5177 * opts.h (register_warning_as_error_callback): Declare.
5178 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
5179 response to -Werror=.
5180 (c_common_init_options): Register warning_as_error_callback in opts.c.
5181 * common.opt: Add -Wno-cpp option.
5182 * c-common.c (struct reason_option_codes_t): Map cpp warning
5183 reason codes to gcc option indexes.
5184 * (c_option_controlling_cpp_error): New function, lookup the gcc
5185 option index for a cpp warning reason code.
5186 * (c_cpp_error): Add warning reason argument, call
5187 c_option_controlling_cpp_error for diagnostic_override_option_index.
5188 * doc/invoke.texi: Document -Wno-cpp.
5190 2010-04-07 Richard Guenther <rguenther@suse.de>
5192 * ipa-reference.c (mark_load): Use get_base_address.
5193 (mark_store): Likewise.
5195 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
5196 inserting GIMPLE_NOPs into the IL.
5197 * tree-ssa-structalias.c (get_constraint_for_component_ref):
5198 Explicitly strip handled components and indirect references.
5200 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
5201 folding address expressions.
5202 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
5203 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
5204 operand_equal_p to compare decls.
5205 (ptr_deref_may_alias_decl_p): Likewise.
5206 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
5207 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
5208 Handle reversed comparison ops.
5209 * tree-sra.c (asm_visit_addr): Use get_base_address.
5210 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
5211 * ipa-reference.c (mark_address): Use get_base_address.
5213 2010-04-07 Richard Guenther <rguenther@suse.de>
5215 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
5216 Propagate constants everywhere.
5218 2010-04-07 Jakub Jelinek <jakub@redhat.com>
5221 * tree.c (MAX_INT_CACHED_PREC): Define.
5222 (nonstandard_integer_type_cache): New array.
5223 (build_nonstandard_integer_type): Cache results for precision
5224 <= MAX_INT_CACHED_PREC.
5226 2010-04-07 Richard Guenther <rguenther@suse.de>
5228 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
5229 -fargument-noalias-global, -fargument-noalias-anything): Remove.
5230 * common.opt: Likewise.
5231 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
5232 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
5233 (nonoverlapping_memrefs_p): Likewise.
5234 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5235 * opts.c (common_handle_option): Handle OPT_fargument_alias,
5236 OPT_fargument_noalias, OPT_fargument_noalias_anything and
5237 OPT_fargument_noalias_global for backward compatibility.
5239 2010-04-07 Richard Guenther <rguenther@suse.de>
5241 PR tree-optimization/43270
5242 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
5243 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
5244 * tree-ssa-pre.c (phi_translate_1): Adjust.
5245 (fully_constant_expression): Split out vn_reference handling to ...
5246 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
5247 Fold reads from constant strings.
5248 (vn_reference_lookup): Handle fully constant references.
5249 (vn_reference_lookup_pieces): Likewise.
5250 * Makefile.in (expmed.o-warn): Add -Wno-error.
5252 2010-04-07 Martin Jambor <mjambor@suse.cz>
5254 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
5256 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
5259 * gcc.c: Add -static-libstdc++ to list of recognized options.
5261 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5263 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
5265 2010-04-07 Richard Guenther <rguenther@suse.de>
5268 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
5269 bases build simple mem attributes to retain points-to information.
5271 2010-04-07 Richard Guenther <rguenther@suse.de>
5274 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
5275 preserve points-to related information.
5277 2010-04-07 Richard Guenther <rguenther@suse.de>
5280 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
5281 discard plain indirect references.
5282 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
5283 * tree.c (tree_nop_conversion): Likewise.
5285 2010-04-07 Dodji Seketeli <dodji@redhat.com>
5288 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
5290 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
5292 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
5293 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
5295 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
5297 * tree-if-conv.c: Fix indentation and comments.
5299 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
5301 * tree-if-conv.c: Sort static functions in topological order.
5303 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
5305 * tree-if-conv.c: Fix indentation and comments.
5307 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
5310 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
5311 lang_hooks.types.type_for_size instead of
5312 build_nonstandard_integer_type.
5313 When converting an unsigned type to signed, double its precision.
5314 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
5315 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
5316 (graphite_create_new_loop_guard): When ub + 1 wraps around,
5319 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
5322 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
5323 POINTER_PLUS_EXPR for pointer types.
5325 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
5328 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
5329 * graphite-clast-to-gimple.c: Include langhooks.h.
5330 (max_signed_precision_type): New.
5331 (max_precision_type): Takes two types as arguments.
5332 (precision_for_value): New.
5333 (precision_for_interval): New.
5334 (gcc_type_for_interval): New.
5335 (gcc_type_for_value): New.
5336 (gcc_type_for_clast_term): New.
5337 (gcc_type_for_clast_red): New.
5338 (gcc_type_for_clast_bin): New.
5339 (gcc_type_for_clast_expr): Split up into several functions.
5340 (gcc_type_for_clast_eq): Rewritten.
5341 (compute_bounds_for_level): New.
5342 (compute_type_for_level_1): New.
5343 (compute_type_for_level): New.
5344 (gcc_type_for_cloog_iv): Removed.
5345 (gcc_type_for_iv_of_clast_loop): Rewritten.
5346 (graphite_create_new_loop): Compute the lower and upper bound types
5347 with gcc_type_for_clast_expr.
5348 (graphite_create_new_loop_guard): Same.
5349 (find_cloog_iv_in_expr): Removed.
5350 (compute_cloog_iv_types_1): Removed.
5351 (compute_cloog_iv_types): Removed.
5352 (gloog): Do not call compute_cloog_iv_types.
5353 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
5355 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
5356 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
5357 (GBB_CLOOG_IV_TYPES): Removed.
5359 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
5361 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
5362 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
5363 (detect_commutative_reduction): Same.
5365 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
5367 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
5368 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
5370 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
5371 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
5372 (rewrite_commutative_reductions_out_of_ssa): Same.
5373 * passes.c (execute_function_todo): Call verify_ssa for every pass
5374 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
5375 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
5376 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
5377 with an extra argument.
5378 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
5379 verify_ssa only when the extra argument is true.
5380 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
5381 with an extra argument.
5382 (tree_transform_and_unroll_loop): Same.
5384 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
5386 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
5387 for all the passes of the LNO having LOOP_CLOSED_SSA.
5388 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
5389 * tree-loop-distribution.c (pass_loop_distribution): Same.
5390 * tree-pass.h (TODO_verify_loops): Removed.
5391 * tree-ssa-loop.c (pass_tree_loop_init): Same.
5393 (pass_tree_unswitch): Same.
5394 (pass_predcom): Same.
5395 (pass_vectorize): Same.
5396 (pass_linear_transform): Same.
5397 (pass_graphite_transforms): Same.
5398 (pass_iv_canon): Same.
5399 (pass_complete_unroll): Same.
5400 (pass_complete_unrolli): Same.
5401 (pass_parallelize_loops): Same.
5402 (pass_loop_prefetch): Same.
5403 (pass_iv_optimize): Same.
5405 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
5408 * passes.c (init_optimization_passes): Move pass_lim before
5409 pass_copy_prop and pass_dce_loop.
5411 2010-04-06 Jakub Jelinek <jakub@redhat.com>
5414 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
5415 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
5416 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
5417 MULTI_* defines for 4 argument vpermil2p* builtins.
5419 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
5421 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
5422 * config/i386/i386.c (x86_maybe_negate_const_int): New.
5423 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
5424 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
5425 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
5426 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
5427 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
5428 Use x86_maybe_negate_const_int to output insn mnemonic.
5429 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
5430 check from instruction predicate. Update comments.
5431 * config/i386/sync.md (sync_add<mode>): Use
5432 x86_maybe_negate_const_int to output insn mnemonic.
5434 2010-04-06 Jan Hubicka <jh@suse.cz>
5436 PR tree-optimization/42906
5437 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
5438 IGNORE_SELF argument. Set visited_control_parents for fully
5440 (find_obviously_necessary_stmts): Update call of
5441 mark_control_dependent_edges_necessary.
5442 (propagate_necessity): Likewise. Handle PHI edges more curefully.
5444 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
5446 * config/i386/i386.md: Remove comment about 'e' and 'E'
5449 2010-04-06 Richard Guenther <rguenther@suse.de>
5451 PR tree-optimization/43627
5452 * tree-vrp.c (extract_range_from_unary_expr): Widenings
5453 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
5456 2010-04-06 Jakub Jelinek <jakub@redhat.com>
5458 * BASE-VER: Change to 4.6.0.
5461 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
5464 2010-04-06 Richard Guenther <rguenther@suse.de>
5467 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
5469 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5471 * doc/invoke.texi (Optimize Options): Document that LTO
5472 won't remove object access purely due to incompatible
5475 2010-04-04 Matthias Klose <doko@ubuntu.com>
5477 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
5478 Initialize variable.
5480 2010-04-03 Richard Guenther <rguenther@suse.de>
5483 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
5484 require a non-NULL MEM_OFFSET.
5486 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
5488 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
5489 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
5490 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
5491 config/alpha/predicates.md, config/arm/arm.md,
5492 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
5493 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
5494 config/darwin9.h, config/darwin.c, config/darwin.h,
5495 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
5496 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
5497 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
5498 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
5499 config/mips/mips.md, config/mn10300/mn10300.c,
5500 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
5501 config/rs6000/aix.h, config/rs6000/dfp.md,
5502 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
5503 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
5504 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
5505 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
5506 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
5507 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
5508 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
5509 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
5510 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
5511 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
5512 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
5513 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
5514 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
5515 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
5516 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
5517 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
5518 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
5519 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
5520 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
5521 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
5522 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
5523 opt-functions.awk, opth-gen.awk, params.def, passes.c,
5524 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
5525 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
5526 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
5527 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
5528 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
5529 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
5530 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
5531 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
5532 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
5533 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
5534 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
5535 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
5536 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
5537 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
5539 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5542 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
5543 * aclocal.m4: Regenerate.
5545 2010-04-02 Richard Guenther <rguenther@suse.de>
5547 PR tree-optimization/43629
5548 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
5549 if we have seen a constant value.
5551 2010-04-02 Joseph Myers <joseph@codesourcery.com>
5553 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
5555 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
5558 * arm.c (legitimize_tls_address): Adjust call to
5559 gen_tls_load_dot_plus_four.
5560 (arm_note_pic_base): New function.
5561 (arm_cannot_copy_insn_p): Use it.
5562 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
5565 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5570 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5572 * Makefile.in ($(out_object_file)): Depend on
5573 gt-$(basename $(notdir $(out_file))).h.
5575 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
5577 * config.gcc (lm32-*-rtems*): Add t-lm32.
5579 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
5581 * config.gcc: Add lm32-*-rtems*.
5582 * config/lm32/rtems.h: New file.
5584 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
5587 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
5589 2010-04-01 Jakub Jelinek <jakub@redhat.com>
5591 * dwarf2out.c (output_compilation_unit_header): For
5592 -gdwarf-4 use version 4 instead of version 3.
5593 (output_line_info): For version 4 and above emit additional
5594 maximum ops per insn header field.
5595 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
5597 * dwarf2out.c (is_c_family, is_java): Remove.
5598 (lower_bound_default): New function.
5599 (add_bound_info, gen_descr_array_type_die): Use it.
5601 2010-04-01 Dodji Seketeli <dodji@redhat.com>
5604 * dwarf2out.c (gen_variable_die): Allow debug info for variable
5605 re-declaration when it happens in a function.
5607 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
5609 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
5610 (cgraph_remove_function_insertion_hook): Same.
5611 (cgraph_call_function_insertion_hooks): Same.
5613 2010-04-01 Richard Guenther <rguenther@suse.de>
5616 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
5617 and TREE_THIS_VOLATILE.
5618 (copy_ref_info): Likewise.
5619 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
5620 * tree.c (build6_stat): Ignore side-effects of all but arg5
5621 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
5624 2010-04-01 Richard Guenther <rguenther@suse.de>
5626 PR tree-optimization/43607
5627 * ipa-type-escape.c (check_call): Do not access non-existing
5630 2010-04-01 Richard Guenther <rguenther@suse.de>
5634 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
5635 Jack Howarth <howarth@bromo.med.uc.edu>
5637 * tree-profile.c (tree_init_ic_make_global_vars): Make static
5640 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5642 * doc/install.texi (Prerequisites): Document libelf usability on
5643 IRIX 5/6 and Solaris 2.
5644 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
5645 Update GNU as, GNU ld requirements.
5646 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
5647 Document Sun Studio compiler download.
5648 Update and simplify as, ld recommendations.
5649 (Specific, *-*-solaris2.7): Note obsoletion, removal.
5651 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5653 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
5654 with_tune_32 to pentium4.
5656 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
5658 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
5660 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5662 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
5663 obsoletion, removal.
5665 Document GNU as requirement.
5666 Update configure requirements.
5667 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
5668 Recomment IRIX 6.5.18+.
5669 Document IDF/IDL requirement.
5670 Document GNU as requirement.
5671 Document GNU ld bootstrap failure.
5672 Remove freeware.sgi.com reference.
5674 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5676 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
5677 UNIX V4.0, V5.0 obsoletion, removal.
5678 Remove --with-gc=simple reference.
5679 Update VM requirements during bootstrap.
5680 Remove -oldas bootstrap description.
5681 Update binutils reference.
5682 Remove comparison failure note.
5684 2010-03-31 Richard Guenther <rguenther@suse.de>
5685 Zdenek Dvorak <ook@ucw.cz>
5686 Sebastian Pop <sebastian.pop@amd.com>
5689 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
5690 with multiple arguments.
5691 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
5693 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
5695 * graphite-dependences.c (print_pddr): Call print_pdr with an
5697 * graphite-poly.c (debug_pdr): Add an extra argument for the
5700 (print_pbb_domain): Same.
5702 (print_scop_context): Same.
5704 (print_cloog): Same.
5705 (debug_pbb_domain): Same.
5709 (debug_scop_context): Same.
5711 (debug_cloog): Same.
5712 (print_scop_params): Same.
5713 (debug_scop_params): Same.
5714 (print_iteration_domain): Same.
5715 (print_iteration_domains): Same.
5716 (debug_iteration_domain): Same.
5717 (debug_iteration_domains): Same.
5718 (print_scattering_function): Same.
5719 (print_scattering_functions): Same.
5720 (debug_scattering_function): Same.
5721 (debug_scattering_functions): Same.
5722 * graphite-poly.h (debug_pdr): Update declaration.
5724 (print_pbb_domain): Same.
5726 (print_scop_context): Same.
5728 (print_cloog): Same.
5729 (debug_pbb_domain): Same.
5733 (debug_scop_context): Same.
5735 (debug_cloog): Same.
5736 (print_scop_params): Same.
5737 (debug_scop_params): Same.
5738 (print_iteration_domain): Same.
5739 (print_iteration_domains): Same.
5740 (debug_iteration_domain): Same.
5741 (debug_iteration_domains): Same.
5742 (print_scattering_function): Same.
5743 (print_scattering_functions): Same.
5744 (debug_scattering_function): Same.
5745 (debug_scattering_functions): Same.
5747 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
5749 * graphite-poly.c (print_scattering_function_1): New.
5750 (print_scattering_function): Call it.
5751 (print_scop_params): Remove spaces at the end of lines.
5754 * graphite-poly.h (print_cloog): Declared.
5755 (debug_cloog): Declared.
5757 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
5759 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
5761 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
5762 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
5763 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
5764 to switch between adding the IV bump in loop->latch or in loop->header.
5766 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
5768 * graphite-poly.c (print_scattering_function): Pretty print following
5771 (print_pbb_domain): Same.
5772 (dump_gbb_cases): Same.
5773 (dump_gbb_conditions): Same.
5776 (print_scop_params): Same.
5777 (print_scop_context): Same.
5779 (print_pbb_body): New.
5780 (lst_indent_to): New.
5781 (print_lst): Start new lines with a #.
5782 * graphite-poly.h (pbb_bb): New.
5783 (pbb_index): Use pbb_bb.
5784 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
5786 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
5788 2010-03-31 Jakub Jelinek <jakub@redhat.com>
5790 * dwarf2out.c (size_of_die): For -gdwarf-4 use
5791 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
5792 and 0 instead of 1 for dw_val_class_flag.
5793 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
5794 dw_val_class_range_list, dw_val_class_loc_list,
5795 dw_val_class_lineptr and dw_val_class_macptr, use
5796 DW_FORM_flag_present for dw_val_class_flag and
5797 DW_FORM_exprloc for dw_val_class_loc.
5798 (output_die): For -gdwarf-4 print dw_val_class_loc
5799 size as uleb128 instead of 1 or 2 bytes and don't print
5800 anything for dw_val_class_flag.
5802 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
5803 instead of cselib_lookup following by tweaking locs->setting_insn.
5806 * cselib.c (cselib_process_insn): Clear cselib_current_insn
5807 even before returning from label, setjmp call or volatile asm
5810 2010-03-31 Richard Guenther <rguenther@suse.de>
5813 * cgraphunit.c (cgraph_output_in_order): Do not allocate
5814 temporary data on stack.
5816 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5818 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
5819 (PUSHSECTION_ASM_OP): Remove.
5820 (POPSECTION_ASM_OP): Remove.
5821 (PUSHSECTION_FORMAT): Remove.
5822 * config/sol2.h (PUSHSECTION_FORMAT): Define.
5823 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
5824 * config/sol2.c (solaris_output_init_fini): Use it.
5826 2010-03-31 Jie Zhang <jie@codesourcery.com>
5829 * opt-functions.awk (var_type_struct): Use signed char type
5830 for simple variables.
5832 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5834 * config/sol2.c: Include output.h.
5835 (solaris_assemble_visibility): New function.
5836 * config/t-sol2 (sol2.o): Add output.h dependency.
5837 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
5838 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
5841 2010-03-31 Jakub Jelinek <jakub@redhat.com>
5844 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
5845 V2SImode or XFmode on PRE_DEC.
5848 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
5851 2010-03-31 Jie Zhang <jie@codesourcery.com>
5854 * reload.h (caller_save_initialized_p): Declare.
5855 * toplev.c (backend_init_target): Don't call
5856 init_caller_save but set caller_save_initialized_p to false.
5857 * caller-save.c (caller_save_initialized_p): Define.
5858 (init_caller_save): Check caller_save_initialized_p.
5859 * ira.c (ira): Call init_caller_save if flag_caller_saves.
5861 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5864 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
5865 and soft-fp/t-softfp to tmake_file.
5866 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
5867 (LIBGCC2_TF_CEXT): Define.
5870 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
5873 * cselib.c (n_useless_values): Document handling of debug locs.
5874 (n_useless_debug_values, n_debug_values): New variables.
5875 (new_elt_loc_list): Don't add to debug values, keep count.
5876 (promote_debug_loc): New.
5877 (cselib_reset_table): Zero new variables.
5878 (entry_and_rtx_equal_p): Promote debug locs.
5879 (discard_useless_locs): Increment n_useless_debug_values for
5881 (remove_useless_values): Adjust n_useless_values and n_debug_values
5882 with n_useless_debug_values.
5883 (add_mem_for_addr): Promote debug locs.
5884 (cselib_lookup_mem): Likewise.
5885 (cselib_lookup_addr): Renamed to...
5886 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
5887 (cselib_log_lookup): ... this. Turn into...
5888 (cselib_lookup_addr): ... new wrapper.
5889 (cselib_lookup_from_insn): New.
5890 (cselib_invalidate_regno): Increment n_useless_debug_values for
5892 (cselib_invalidate_mem): Likewise.
5893 (cselib_process_insn): Take n_deleted and n_debug_values into
5894 account to guard remove_useless_value call.
5895 (cselib_finish): Zero n_useless_debug_values.
5896 * cselib.h (cselib_lookup_from_insn): Declare.
5897 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
5898 (sched_analyze_2): Likewise.
5900 2010-03-30 Jakub Jelinek <jakub@redhat.com>
5902 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
5904 (adjust_mems): Replace narrowing SUBREG of expression containing
5905 just PLUS, MINUS, MULT and ASHIFT of registers and constants
5906 with operations in the narrower mode.
5909 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
5910 regs_invalidated_by_call instead all call_used_reg_set registers.
5912 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
5915 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
5916 pointer comparisons with types_compatible_p.
5917 * tree-vect-stmts.c (vectorizable_call): Same.
5918 (vectorizable_condition): Same.
5920 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5922 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
5923 stack check if the mask would be zero.
5925 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
5926 Jack Howarth <howarth@bromo.med.uc.edu>
5928 * tree-profile.c (tree_init_ic_make_global_vars): Make static
5931 2010-03-30 Joseph Myers <joseph@codesourcery.com>
5934 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
5936 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
5937 Include ___unordxf2 and ___unordtf2.
5938 * config/i386/libgcc-glibc.ver: Do not define inheritance from
5941 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
5943 * config/lm32/t-lm32: New file.
5944 * config.gcc: Use the above file when targetting lm32.
5946 2010-03-28 Duncan Sands <baldrick@free.fr>
5948 * Makefile.in (PLUGIN_HEADERS): Add except.h.
5950 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
5953 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
5954 Improve vectorization cost model diagnostic.
5956 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
5959 * tree-vect-data-refs.c (vect_analyze_data_refs): When
5960 compute_data_dependences_for_loop returns false, early exit
5961 and output an extra diagnostic for the failed data reference
5964 2010-03-29 Richard Guenther <rguenther@suse.de>
5966 PR tree-optimization/43560
5967 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
5968 (can_sm_ref_p): Treat stores to readonly locations as trapping.
5970 2010-03-29 Jie Zhang <jie@codesourcery.com>
5973 * toplev.c (process_options): Set optimization_default_node
5974 and optimization_current_node.
5975 * opts.c (decode_options): Don't set optimization_default_node
5976 and optimization_current_node.
5978 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
5980 * config/rtems.h: Abandon -qrtems_debug.
5982 2010-03-28 Jan Hubicka <jh@suse.cz>
5984 PR tree-optimization/43505
5985 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
5986 map should not be copied.
5988 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5991 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
5992 cdtors, set DECL_PRESERVE_P.
5993 * ipa.c (cgraph_externally_visible_p): Return true if declaration
5996 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
5998 PR tree-optimization/43528
5999 * stor-layout.c (place_field): Check that constant fits into
6000 unsigned HWI when skipping calculation of MS bitfield layout.
6002 2010-03-27 Jan Hubicka <jh@suse.cz>
6005 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
6006 notice_global_symbol work.
6008 2010-03-27 Jakub Jelinek <jakub@redhat.com>
6010 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
6011 instead of dwarf2out_decl.
6012 (struct var_loc_node): Remove section_label field.
6013 (dwarf2out_function_decl): New function.
6014 (dwarf2out_var_location): Don't set section_label field.
6015 (dwarf2out_begin_function): Don't empty decl_loc_table here.
6017 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6019 PR tree-optimization/43544
6020 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
6021 First argument for builtin vectorized function hook is now a
6022 tree to be able to distinguish between machine specific and
6024 * targhooks.c (default_builtin_vectorized_function): Ditto.
6025 * targhooks.h (default_builtin_vectorized_function): Ditto.
6026 * target.h (struct gcc_target): Ditto.
6027 * tree-vect-stmts.c (vectorizable_function): Ditto.
6028 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
6029 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
6032 2010-03-26 Joseph Myers <joseph@codesourcery.com>
6035 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
6036 nested binding iff it is a FUNCTION_DECL.
6037 (store_parm_decls_newstyle): Pass nested=true to bind for
6038 FUNCTION_DECLs amongst parameters.
6040 2010-03-26 Jakub Jelinek <jakub@redhat.com>
6042 * var-tracking.c (vt_expand_loc_callback): Don't run
6043 cselib_expand_value_rtx_cb in dummy mode if
6044 cselib_dummy_expand_value_rtx_cb returned false.
6046 * var-tracking.c (emit_note_insn_var_location): For one part
6047 notes with offset 0, don't add EXPR_LIST around the location.
6048 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
6049 add_location_or_const_value_attribute): Adjust for that change.
6052 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
6053 into first operand and location into second.
6054 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
6055 dw_cfi_oprnd_loc for DW_CFA_expression.
6056 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
6057 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
6058 assume first argument is regnum and second argument is location.
6060 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
6063 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
6064 of scratch register to DImode. Split to DImode comparison operator.
6065 Use SImode subreg of scratch register in the multiplication.
6066 (*cmp_sadd_sidi): Ditto.
6067 (*cmp_ssub_si): Ditto.
6068 (*cmp_ssub_sidi): Ditto.
6070 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
6073 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
6074 Remove invalid assert and wrong comment.
6076 2010-03-26 Jakub Jelinek <jakub@redhat.com>
6079 * flags.h (final_insns_dump_p): New extern.
6080 * final.c (final_insns_dump_p): New variable.
6081 (rest_of_clean_state): Set it before -fdump-final-insns=
6082 dumping, clear afterwards.
6083 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
6084 MEM_ALIAS_SET on MEMs.
6086 2010-03-26 David S. Miller <davem@davemloft.net>
6088 * configure.ac: Fix sparc GOTDATA_OP bug check.
6089 * configure: Rebuild.
6091 2010-03-26 Alan Modra <amodra@gmail.com>
6093 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
6095 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6097 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
6098 TLS_SECTION_ASM_FLAG.
6100 2010-03-25 Jakub Jelinek <jakub@redhat.com>
6103 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
6104 Clear first_function_block_is_cold.
6107 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
6108 argument if the argument is truth_value_p.
6110 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6112 * config/rs6000/constraints.md: Update copyright year for my changes.
6115 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
6116 used in reg+reg addressing, swap registers.
6118 2010-03-24 Jakub Jelinek <jakub@redhat.com>
6121 * target.h (struct gcc_target): Add code_end hook.
6122 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
6124 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
6125 * toplev.c (compile_file): Call targetm.asm_out.code_end
6126 hook before unwind info/debug info output.
6127 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
6128 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
6129 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
6130 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
6131 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
6132 * config/i386/i386.c (ix86_file_end): Renamed to...
6133 (ix86_code_end): ... this. Make static. Don't call
6134 file_end_indicate_exec_stack. Emit unwind info using
6135 final_start_function/final_end_function.
6136 (darwin_x86_file_end): Remove.
6137 (TARGET_ASM_CODE_END): Define.
6138 * config/i386/i386.h (TARGET_ASM_FILE_END,
6139 NEED_INDICATE_EXEC_STACK): Don't define.
6140 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
6141 (TARGET_ASM_FILE_END): Define to darwin_file_end.
6142 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
6143 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
6146 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
6147 at the beginning and final_end_function at the end.
6148 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
6150 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6152 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
6153 and Sun as TLS syntax.
6154 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
6155 * configure: Regenerate.
6156 * config.in: Regenerate.
6157 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
6158 (default_elf_asm_named_section): Use it.
6159 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
6160 (i386_output_dwarf_dtprel): Likewise.
6161 (output_addr_const_extra): Likewise.
6162 (output_pic_addr_const): Lowercase @GOTTPOFF.
6163 (output_addr_const_extra): Likewise.
6164 (output_pic_addr_const): Lowercase @GOTNTPOFF.
6165 (output_addr_const_extra): Likewise.
6166 (output_pic_addr_const): Lowercase @INDNTPOFF.
6167 (output_addr_const_extra): Likewise.
6168 (output_pic_addr_const): Lowercase @NTPOFF.
6169 (output_addr_const_extra): Likewise.
6170 (output_pic_addr_const): Lowercase @TPOFF.
6171 (output_addr_const_extra): Likewise.
6172 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
6173 (*tls_global_dynamic_64): Likewise.
6174 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
6175 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
6177 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
6178 (ASM_OUTPUT_TLS_COMMON): Use it.
6179 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
6182 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
6183 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
6184 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
6185 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
6186 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
6187 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
6189 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6191 * config/i386/i386.c (override_options): Don't accept
6192 -mtls-dialect=sun any longer.
6193 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
6194 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
6195 (*tls_local_dynamic_base_32_sun): Likewise.
6196 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
6198 2010-03-24 Jakub Jelinek <jakub@redhat.com>
6201 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
6202 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
6205 * ira.c (adjust_cleared_regs): New function.
6206 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
6210 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
6212 * expr.c (expand_expr_real): Restore previous
6213 curr_insn_source_location and curr_insn_block after
6214 expand_expr_real_1 call.
6215 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
6216 instead of expand_expr_real_1.
6218 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
6220 PR rtl-optimization/43413
6221 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
6224 2010-03-22 James E. Wilson <wilson@codesourcery.com>
6227 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
6228 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
6230 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
6232 * config/i386/i386.c (ix86_target_string): Add -mfma.
6233 Fix a typo in comment.
6235 2010-03-22 Mike Stump <mikestump@comcast.net>
6238 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
6239 Don't overly align based upon packed packed fields.
6241 2010-03-22 Jason Merrill <jason@redhat.com>
6243 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
6244 Use () rather than [], and move before the element type.
6246 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6248 * doc/configfiles.texi (Configuration Files): Removed
6249 fixinc/Makefile*, intl/Makefile.*.
6250 * doc/makefile.texi: Fixed markup. Abstract from version
6251 control system used.
6252 (Makefile): Removed obsolete gcc/java/parse.y example.
6253 * doc/sourcebuild.texi: Likewise.
6254 (Top Level): Added config, gnattools, libdecnumber, libgcc,
6255 libgomp, libssp. Removed fastjar.
6256 (Miscellaneous Docs): Clarify location.
6257 Added COPYING3, COPYING3.LIB.
6258 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
6260 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6263 * config/i386/i386.c (x86_function_profiler)
6264 [!NO_PROFILE_COUNTERS]: Fix typo.
6265 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
6268 2010-03-22 Janis Johnson <janis187@us.ibm.com>
6269 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6271 * doc/sourcebuild.texi (Test Directives): Split into six
6272 subsections, with most of the current text in new subsections
6273 Directives, Selectors, and Final Actions.
6274 (Directives): Split list of test directives into multiple
6276 (Selectors): Describe use and syntax of selectors.
6277 (Effective-Target Keywords): Describe all existing keywords.
6278 (Add Options): Describe features for dg-add-options.
6279 (Require Support): Describe variants of dg-require-support.
6280 (Final Actions): Describe commands to use in dg-final.
6282 2010-03-22 Michael Matz <matz@suse.de>
6285 * recog.c (validate_replace_rtx_group): Replace also in
6286 REG_EQUAL and REG_EQUIV notes.
6288 2010-03-22 Richard Guenther <rguenther@suse.de>
6290 PR tree-optimization/43390
6291 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
6292 sure vector extracts are type correct.
6294 2010-03-22 Richard Guenther <rguenther@suse.de>
6297 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
6298 x * sqrt (x) even when optimizing for size if the target
6299 has native support for sqrt.
6301 2010-03-22 Jakub Jelinek <jakub@redhat.com>
6303 * varasm.c (make_decl_rtl_for_debug): Also clear
6304 flag_mudflap for the duration of make_decl_rtl call.
6307 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
6308 locs from preserved VALUEs.
6310 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6313 * pa.md (movmemsi): Set align to one if zero.
6314 (movmemdi): Likewise.
6316 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
6319 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
6320 with their corresponding prologue pushes.
6322 2010-03-20 Andrew Pinski <pinskia@gmail.com>
6325 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
6326 at the begining or end.
6327 (spu_expand_epilogue): Likewise.
6329 2010-03-20 Richard Guenther <rguenther@suse.de>
6331 PR rtl-optimization/43438
6332 * combine.c (make_extraction): Properly zero-/sign-extend an
6333 extraction of the low part of a CONST_INT. Also handle
6336 2010-03-19 Mike Stump <mikestump@comcast.net>
6338 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
6339 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
6340 (override_options): Use SUBTARGET32_DEFAULT_CPU.
6342 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
6345 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
6348 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
6350 PR rtl-optimization/42258
6351 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
6352 use that may match DEF.
6355 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
6356 the cost of loading the constant rather than assuming
6358 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
6359 outer code is AND, do the same tests as the andsi3 expander and
6360 return COSTS_N_INSNS (1) if and is cheap.
6362 * optabs.c (avoid_expensive_constant): Fix formatting.
6364 2010-03-19 Michael Matz <matz@suse.de>
6367 * attribs.c (decl_attributes): When rebuilding a function pointer
6368 type use the same qualifiers as the original pointer type.
6370 2010-03-19 Martin Jambor <mjambor@suse.cz>
6372 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
6373 and is_gimple_ip_invariant_address.
6375 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6378 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6380 * config/arm/arm.c (arm_override_options): Turn off
6381 flag_dwarf2_cfi_asm for AAPCS variants.
6383 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6386 * config/arm/arm.c (emit_multi_reg_push): Update comments.
6387 Use PRE_MODIFY instead of PRE_DEC.
6388 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
6389 (vfp_emit_fstmd): Likewise.
6391 2010-03-19 Michael Matz <matz@suse.de>
6394 * builtins.c (expand_builtin_interclass_mathfn,
6395 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
6398 2010-03-19 Richard Guenther <rguenther@suse.de>
6400 PR tree-optimization/43415
6401 * tree-ssa-pre.c (phi_translate): Split out worker to ...
6402 (phi_translate_1): ... this.
6403 (phi_translate): Move all caching here. Cache all NARY
6404 and REFERENCE translations.
6406 2010-03-19 David S. Miller <davem@davemloft.net>
6408 With help from Eric Botcazou.
6409 * config/sparc/sparc.c: Include dwarf2out.h.
6410 (emit_pic_helper): Delete.
6411 (pic_helper_symbol_name): Delete.
6412 (pic_helper_emitted_p): Delete.
6413 (pic_helper_needed): New.
6414 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
6415 (get_pc_thunk_name): New.
6416 (load_pic_register): Remove 'delay_pic_helper' arg. Use
6417 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
6418 Set pic_helper_needed to true. Don't call emit_pic_helper.
6419 (sparc_expand_prologue): Update load_pic_register call.
6420 (sparc_output_mi_thunk): Likewise.
6421 (sparc_file_end): Emit a hidden comdat symbol for the PIC
6422 thunk if possible. Output CFI information as needed.
6424 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6425 Jack Howarth <howarth@bromo.med.uc.edu>
6428 * config/i386/i386.h: Fix ABI on darwin x86-32.
6430 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
6432 * tree.h: Declare make_decl_rtl_for_debug.
6433 * varasm.c (make_decl_rtl_for_debug): New.
6434 * dwarf2out.c (rtl_for_decl_location): Call it.
6435 * cfgexpand.c (expand_debug_expr): Call it.
6437 2010-03-18 Jakub Jelinek <jakub@redhat.com>
6440 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
6444 * var-tracking.c (vt_init_cfa_base): Do nothing if
6445 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
6447 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
6450 * var-tracking.c (canonicalize_vars_star): New.
6451 (dataflow_post_merge_adjust): Use it.
6453 2010-03-18 Jakub Jelinek <jakub@redhat.com>
6456 * var-tracking.c (non_suitable_const): New function.
6457 (add_uses): For DEBUG_INSNs with constants, don't record any
6458 value, instead just the constant value itself.
6459 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
6460 is not VAR_LOC_UNKNOWN_P, set var to the constant.
6461 (emit_notes_in_bb): Likewise.
6462 (emit_note_insn_var_location): For onepart variables if
6463 cur_loc is a VOIDmode constant, use DECL_MODE.
6465 2010-03-18 Martin Jambor <mjambor@suse.cz>
6468 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
6469 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
6470 all non-clones. Moved call redirection...
6471 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
6472 (cgraph_materialize_all_clones): Dispose of all
6473 combined_args_to_skip bitmaps.
6474 (verify_cgraph_node): Do not check for edges pointing to wrong
6475 nodes in inline clones.
6476 * tree-inline.c (copy_bb): Call
6477 cgraph_redirect_edge_call_stmt_to_callee.
6478 * ipa.c (cgraph_remove_unreachable_nodes): Call
6479 cgraph_node_remove_callees even when there are used clones.
6481 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
6483 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
6485 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
6488 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
6491 2010-03-18 Michael Matz <matz@suse.de>
6494 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
6495 into sqrt(x) if we need to preserve signed zeros.
6497 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
6498 Eric Botcazou <ebotcazou@adacore.com>
6500 PR rtl-optimization/43360
6501 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
6502 note if we don't know its invariant status.
6504 2010-03-18 Michael Matz <matz@suse.de>
6506 PR tree-optimization/43402
6507 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
6508 PHI chains of ssa names registered for update.
6510 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
6513 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
6514 non-offsettable and pre_modify update addressing.
6515 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
6516 and "2" alternatives "#".
6517 (*movdd_softfloat32): Make all alternatives "#";
6518 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
6519 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
6520 (*movdf_softfloat32): Make all alternatives "#";
6521 (movdi): Use the new DIFD mode iterator to create a common splitter
6522 for movdi, movdf and movdd patterns.
6524 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
6526 * common.opt (dumpdir): Remove redundant tab.
6528 2010-03-17 Martin Jambor <mjambor@suse.cz>
6530 PR tree-optimization/43347
6531 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
6532 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
6534 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
6536 PR rtl-optimization/42216
6537 * regrename.c (create_new_chain): New function, broken out from...
6538 (scan_rtx_reg): ... here. Call it. Handle the case where we are
6539 appending a use to an empty chain.
6540 (build_def_use): Remove previous changes that convert OP_INOUT to
6541 OP_OUT operands; instead detect the case where an OP_INOUT operand
6542 uses a previously untracked register and create an empty chain for it.
6544 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6546 * doc/extend.texi (Function Attributes): Rewrite unfinished
6547 sentence in ms_abi documentation.
6549 2010-03-17 Alan Modra <amodra@gmail.com>
6551 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
6552 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
6553 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
6554 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
6556 2010-03-16 Richard Henderson <rth@redhat.com>
6559 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
6560 (lower_try_finally): Save and restore eh_seq around the expansion
6563 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
6565 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
6566 statements before splitting block.
6568 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6570 * doc/sourcebuild.texi (Testsuites): Fix markup.
6571 Use pathnames relative to gcc/testsuite.
6572 (Test Directives): Move description of how timeout is determined.
6573 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
6574 (C Tests): Correct gcc.misc-tests directory.
6575 Framework tests now live in gcc.test-framework.
6577 2010-03-16 Richard Guenther <rguenther@suse.de>
6580 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
6581 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
6583 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
6584 Alexandre Oliva <aoliva@redhat.com>
6586 PR tree-optimization/42917
6587 * lambda-code.c (remove_iv): Skip debug statements.
6588 (lambda_loopnest_to_gcc_loopnest): Likewise.
6589 (not_interesting_stmt): Debug statements are not interesting.
6591 2010-03-16 Jakub Jelinek <jakub@redhat.com>
6595 * cselib.c (cselib_preserve_constants,
6596 cfa_base_preserved_val): New static variables.
6597 (preserve_only_constants): New function.
6598 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
6599 clear its REG_VALUES. If cselib_preserve_constants, don't
6600 empty the whole hash table, but preserve there VALUEs with constants,
6601 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
6602 (cselib_preserve_cfa_base_value): New function.
6603 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
6604 (cselib_init): Change argument to int bitfield. Set
6605 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
6607 (cselib_finish): Clear cselib_preserve_constants and
6608 cfa_base_preserved_val.
6609 * cselib.h (enum cselib_record_what): New enum.
6610 (cselib_init): Change argument to int.
6611 (cselib_preserve_cfa_base_value): New prototype.
6612 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
6613 * dse.c (dse_step1): Likewise.
6614 * cfgcleanup.c (thread_jump): Likewise.
6615 * sched-deps.c (sched_analyze): Likewise.
6616 * gcse.c (local_cprop_pass): Likewise.
6617 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
6618 If FN is non-NULL, call the callback always and whenever it returns
6619 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
6620 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
6621 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
6622 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
6623 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
6624 * var-tracking.c: Include recog.h.
6625 (bb_stack_adjust_offset): Remove.
6626 (vt_stack_adjustments): Don't call it, instead just gather the
6627 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
6628 (adjust_stack_reference): Remove.
6629 (compute_cfa_pointer): New function.
6630 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
6631 (struct adjust_mem_data): New type.
6632 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
6634 (get_address_mode): New function.
6635 (replace_expr_with_values): Use it.
6636 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
6637 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
6638 (adjust_sets): Remove.
6639 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
6640 Use get_address_mode.
6641 (get_adjusted_src): Remove.
6642 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
6643 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
6644 (add_with_sets): Don't call adjust_sets.
6645 (fp_setter, vt_init_cfa_base): New functions.
6646 (vt_initialize): Change return type to bool. Move most of pool etc.
6647 initialization to the beginning of the function from end. Pass
6648 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
6649 If !frame_pointer_needed, call vt_stack_adjustment before mos
6650 vector is filled, call vt_init_cfa_base if argp/framep has been
6651 eliminated to sp. If frame_pointer_needed and argp/framep has
6652 been eliminated to hard frame pointer, set
6653 hard_frame_pointer_adjustment and call vt_init_cfa_base after
6654 encountering fp setter in the prologue. For MO_ADJUST, call
6655 log_op_type before pusing the op into mos vector, not afterwards.
6656 Call adjust_insn before cselib_process_insn/add_with_sets,
6657 call cancel_changes (0) afterwards.
6658 (variable_tracking_main_1): Adjust for vt_initialize calling
6659 vt_stack_adjustments and returning whether it succeeded or not.
6661 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
6663 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
6666 2010-03-15 Jakub Jelinek <jakub@redhat.com>
6668 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
6670 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
6671 drap_reg has not been set.
6673 2010-03-15 Michael Matz <matz@suse.de>
6676 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
6677 use it to expand block copies.
6678 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
6679 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
6680 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
6682 2010-03-15 Richard Guenther <rguenther@suse.de>
6684 PR tree-optimization/43367
6685 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
6688 2010-03-15 Richard Guenther <rguenther@suse.de>
6690 PR tree-optimization/43317
6691 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
6693 2010-03-15 Martin Jambor <mjambor@suse.cz>
6695 PR tree-optimization/43141
6696 * tree-sra.c (create_abstract_origin): New function.
6697 (modify_function): Call create_abstract_origin.
6699 2010-03-15 Chris Demetriou <cgd@google.com>
6701 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
6704 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6707 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
6708 call insert_out_of_ssa_copy for default definitions.
6710 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6712 * graphite-clast-to-gimple.c (my_long_long): Defined.
6713 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
6714 * graphite-sese-to-poly.c (my_long_long): Defined.
6715 (scop_ivs_can_be_represented): Use it.
6717 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6719 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
6720 graphite-max-bbs-per-function, and loop-block-tile-size.
6721 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
6723 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
6725 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6727 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
6728 forward declaration.
6729 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
6730 (add_upper_bounds_from_estimated_nit): New.
6731 (build_loop_iteration_domains): Use it.
6733 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6735 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
6737 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6740 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
6741 should be an INTEGER_CST. Also handle CASE_CONVERT.
6743 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6745 * graphite.c (graphite_initialize): To bound the number of bbs per
6746 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
6747 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
6748 * doc/invoke.texi: Document it.
6750 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6752 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
6753 * graphite-sese-to-poly.h (build_poly_scop): Same.
6755 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
6757 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
6758 the number of parameters in the scop. Use as an upper bound
6759 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
6760 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
6761 * doc/invoke.texi: Document it.
6763 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
6765 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
6766 * doc/c-tree.texi: Remove.
6767 * doc/generic.texi: Merge c-tree.texi here.
6768 * doc/gccint.texi (Trees): Remove menu entry.
6769 (c-tree.texi): Remove @include.
6770 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
6771 * doc/languages.texi (Reading RTL): Ditto.
6773 2010-03-12 Steve Ellcey <sje@cup.hp.com>
6776 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
6778 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6781 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
6782 code added to work around reload clobbering CONST insns.
6784 2010-03-12 Jakub Jelinek <jakub@redhat.com>
6786 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
6787 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
6788 (cselib_preserve_only_values): Remove retain argument, don't
6789 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
6790 * cselib.h (cselib_preserve_only_values): Remove retain argument.
6791 * var-tracking.c (micro_operation): Move insn field before union.
6792 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
6793 (struct variable_tracking_info_def): Remove n_mos field, change
6794 mos into a vector of micro_operations.
6795 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
6796 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
6797 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
6798 changing into a vector.
6799 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
6800 come before all other uops generated by add_stores.
6801 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
6803 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
6804 a vector. Run just one pass over the bbs instead of separate counting
6805 and computation phase.
6806 (vt_finalize): Free VTI (bb)->mos vector instead of array.
6809 * tree-inline.c (remap_decls): Put old_var rather than origin_var
6810 into *nonlocalized_list vector.
6811 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
6812 even if origin is non-NULL.
6813 (gen_variable_die): Likewise.
6814 (process_scope_var): Don't change origin.
6815 (gen_decl_die): Likewise.
6816 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
6817 before adding new edges instead of after it, fix moving over
6820 2010-03-11 David S. Miller <davem@davemloft.net>
6822 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
6824 * configure: Rebuild.
6826 2010-03-11 Martin Jambor <mjambor@suse.cz>
6828 PR tree-optimization/43257
6829 * tree.c (assign_assembler_name_if_neeeded): New function.
6830 (free_lang_data_in_cgraph): Assembler name assignment moved to the
6832 * tree.h (assign_assembler_name_if_neeeded): Declare.
6833 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
6834 the function if needed.
6836 2010-03-11 Chris Demetriou <cgd@google.com>
6838 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
6839 include/stdint-gcc.h, and include/stdint.h world-readable.
6841 2010-03-11 Richard Guenther <rguenther@suse.de>
6843 PR tree-optimization/43255
6844 * tree-vrp.c (process_assert_insertions_for): Do not insert
6845 asserts for trivial conditions.
6847 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6849 PR tree-optimization/43280
6850 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
6851 generation. Move calculation of size out of the if branch.
6852 (find_bswap): Modify compare number generation.
6854 2010-03-11 Richard Guenther <rguenther@suse.de>
6857 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
6858 (input_gimple_stmt): Fixup handled component types during
6859 operand read. Also fix up decls in ADDR_EXPRs.
6861 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
6863 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
6864 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
6866 2010-03-10 Jan Hubicka <jh@suse.cz>
6869 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
6870 * varasm.c (get_variable_section): Don't do that here...
6871 (make_decl_rtl): ... and here.
6872 (do_assemble_alias): Produce decl RTL.
6873 (assemble_alias): Likewise.
6875 2010-03-10 Jakub Jelinek <jakub@redhat.com>
6878 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
6879 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
6881 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
6882 (based_loc_descr): Only express drap or vdrap regno based expressions
6883 using DW_OP_fbreg when not optimizing.
6884 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
6885 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
6886 REG_CFA_SET_VDRAP note.
6888 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
6890 PR tree-optimization/43236
6891 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
6892 error in calculation of base address in reverse iteration case.
6893 (generate_builtin): Take number of latch executions if the statement
6896 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
6899 * tree-eh.c: Include pointer-set.h.
6900 (lower_eh_dispatch): Filter out duplicate case labels and
6901 remove the unneeded edge when the label is unused. Return
6902 true when some edges are removed.
6903 (execute_lower_eh_dispatch): When any lowering resulted in
6904 removing an edge, also delete unreachable blocks.
6906 2010-03-10 Jakub Jelinek <jakub@redhat.com>
6909 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6910 UNSPEC_MACHOPIC_OFFSET.
6912 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
6915 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6916 (m68k_delegitimize_address): New function.
6918 2010-03-09 Jakub Jelinek <jakub@redhat.com>
6921 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
6924 * var-tracking.c (adjust_sets): New function.
6925 (count_with_sets, add_with_sets): Use it.
6926 (get_adjusted_src): New inline function.
6927 (add_stores): Use it.
6930 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
6931 call cselib_dummy_expand_value_rtx_cb instead of
6932 cselib_expand_value_rtx_cb.
6935 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
6936 * config/i386/i386.c: Include debug.h and dwarf2out.h.
6937 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
6938 and .cfi_endproc around the pic thunks.
6939 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
6940 all queued unwind info register saves are saved before the call.
6941 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
6942 considered as sp-=4 for unwind info and the pop as sp+=4 which
6943 also clobbers dest, but doesn't actually restore it.
6946 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
6947 RTX_FRAME_RELATED_P.
6949 2010-03-09 Jie Zhang <jie@codesourcery.com>
6951 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
6952 whitespaces in output template.
6954 2010-03-09 Jie Zhang <jie@codesourcery.com>
6956 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
6959 2010-03-08 Jakub Jelinek <jakub@redhat.com>
6961 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
6962 builtins.exp in a separate job.
6964 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6966 * graphite-sese-to-poly.c (add_param_constraints): Use
6967 lower_bound_in_type and upper_bound_in_type.
6969 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6971 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
6972 instead of unsigned_type_node.
6974 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6975 Reza Yazdani <reza.yazdani@amd.com>
6978 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
6979 on pointer type parameters.
6981 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
6985 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
6986 handle conversions from pointer to integers.
6987 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
6988 induction variable, to be able to work with code generated by CLooG.
6989 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
6990 (build_poly_scop): Bail out if we cannot codegen a loop.
6992 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
6994 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
6995 code generation with gloog_error.
6997 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
6999 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
7000 Call fold_convert on all the returned values.
7001 (expand_scalar_variables_expr): Pass to
7002 expand_scalar_variables_ssa_name the type of the resulting expression.
7004 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7006 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
7007 ppl_min_for_le_pointset.
7008 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
7009 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
7011 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7013 * graphite-dependences.c (map_into_dep_poly): Removed.
7014 (dependence_polyhedron_1): Use combine_context_id_scat.
7016 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7018 * graphite-poly.h (struct poly_scattering): Add layout documentation.
7019 (struct poly_bb): Same.
7020 (combine_context_id_scat): New.
7022 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7025 * sese.c (name_defined_in_loop_p): Return false for default
7028 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7030 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
7031 and clean up the logic.
7033 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7035 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
7038 2010-03-08 Jakub Jelinek <jakub@redhat.com>
7040 * var-tracking.c (remove_cselib_value_chains): Define only for
7042 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
7043 delete_slot_part, emit_notes_for_differences_1): Don't call
7044 remove_cselib_value_chains here.
7045 (set_slot_part, emit_notes_for_differences_2): Don't call
7046 add_cselib_value_chains here.
7047 (preserved_values): New vector.
7048 (preserve_value): New function.
7049 (add_uses, add_stores, vt_add_function_parameters): Use it
7050 instead of cselib_preserve_value.
7051 (changed_values_stack): New vector.
7052 (check_changed_vars_0): New function.
7053 (check_changed_vars_1, check_changed_vars_2): Use it.
7054 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
7055 changed_values_stack VALUEs.
7056 (vt_emit_notes): For all preserved_values call
7057 add_cselib_value_chains. If ENABLE_CHECKING call
7058 remove_cselib_value_chains before verifying value_chains is empty.
7059 Initialize and free changed_values_stack.
7060 (vt_initialize): Initialize preserved_values.
7061 (vt_finalize): Free preserved_values.
7063 2010-03-08 Richard Guenther <rguenther@suse.de>
7065 PR tree-optimization/43269
7066 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
7069 2010-03-08 Martin Jambor <mjambor@suse.cz>
7071 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
7072 (ipa_is_param_called): Removed.
7073 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
7074 (ipa_print_node_params): Do not print the called flag.
7075 (ipa_write_node_info): Do not stream the called flag.
7076 (ipa_read_node_info): Likewise.
7078 2010-03-07 Jakub Jelinek <jakub@redhat.com>
7081 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
7082 * cselib.c (struct expand_value_data): Add dummy field.
7083 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
7085 (cselib_dummy_expand_value_rtx_cb): New function.
7086 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
7088 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
7089 * var-tracking.c: Include pointer-set.h.
7090 (variable): Change n_var_parts to char from int. Add
7091 cur_loc_changed and in_changed_variables fields.
7092 (variable_canonicalize): Remove.
7093 (shared_var_p): New inline function.
7094 (unshare_variable): Maintain cur_loc_changed and
7095 in_changed_variables fields. If var was in changed_variables,
7096 replace it there with new_var. Just copy cur_loc instead of
7097 resetting it to something else.
7098 (variable_union): Don't recompute cur_loc. Use shared_var_p.
7099 (dataflow_set_union): Don't call variable_canonicalize.
7100 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
7101 of their DEBUG_EXPR_TREE_DECLs.
7102 (canonicalize_loc_order_check): Verify that cur_loc is NULL
7103 and in_changed_variables and cur_loc_changed is false.
7104 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
7105 and cur_loc_changed. Don't update cur_loc here.
7106 (variable_merge_over_src): Don't call variable_canonicalize.
7107 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
7108 removing loc that is equal to cur_loc, clear cur_loc,
7109 set cur_loc_changed and ensure variable_was_changed is called.
7110 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
7111 compare pointers in cur_loc check, if it is equal to loc,
7112 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
7113 (variable_different_p): Remove compare_current_location argument,
7114 don't compare cur_loc.
7115 (dataflow_set_different_1): Adjust variable_different_p caller.
7116 (variable_was_changed): If dv had some var in changed_variables
7117 already, reset in_changed_variables flag for it and propagate
7118 cur_loc_changed over to the new variable. On empty var
7119 always set cur_loc_changed. Set in_changed_variables on whatever
7120 var is added to changed_variables.
7121 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
7122 Use shared_var_p. When removing loc that is equal to cur_loc,
7123 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
7124 end, don't set it to something else, just call variable_was_changed.
7125 (delete_slot_part): Use shared_var_p. When cur_loc equals to
7126 loc being removed, clear cur_loc and set cur_loc_changed.
7127 Set cur_loc_changed if all locations have been removed.
7128 (struct expand_loc_callback_data): New type.
7129 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
7130 allocated. Always create SUBREGs if simplify_subreg failed.
7131 Prefer to use cur_loc, when that fails and still in
7132 changed_variables (and seen first time) recompute it. Set
7133 cur_loc_changed of variables which had to change cur_loc and
7134 compute elcd->cur_loc_changed if any of the subexpressions used
7135 had to change cur_loc.
7136 (vt_expand_loc): Adjust to pass arguments in
7137 expand_loc_callback_data structure.
7138 (vt_expand_loc_dummy): New function.
7139 (emitted_notes): New variable.
7140 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
7141 that weren't used for any other decl in current
7142 emit_notes_for_changes call call vt_expand_loc_dummy to update
7143 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
7144 first loc_chain location if NULL before. Always use just
7145 cur_loc instead of first loc_chain location. When cur_loc_changed
7146 is false, when not --enable-checking=rtl just don't emit any note.
7147 When rtl checking, compute the note and assert it is the same
7148 as previous note. Clear cur_loc_changed and in_changed_variables
7149 at the end before removing from changed_variables.
7150 (check_changed_vars_3): New function.
7151 (emit_notes_for_changes): Traverse changed_vars to call
7152 check_changed_vars_3 on each changed var.
7153 (emit_notes_for_differences_1): Clear cur_loc_changed and
7154 in_changed_variables. Recompute cur_loc of new_var.
7155 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
7156 (vt_emit_notes): Initialize and destroy emitted_notes.
7158 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
7160 PR rtl-optimization/42220
7161 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
7162 Use verify_reg_tracked to determine if we should use OP_OUT rather
7164 (build_def_use): If we see an in-out operand for a register that we
7165 know nothing about, treat is an output if possible, fail the block if
7168 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
7171 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
7174 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
7177 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
7178 uses of relevant DEFs that are dead outside the loop too.
7180 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
7182 * var-tracking.c (dataflow_set_merge): Swap src and src2.
7184 2010-01-13 Jakub Jelinek <jakub@redhat.com>
7186 * var-tracking.c (values_to_unmark): New variable.
7187 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
7188 values_to_unmark vector. Moved body to...
7189 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
7190 instead queue it into values_to_unmark vector.
7191 (vt_find_locations): Free values_to_unmark vector.
7193 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
7195 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
7196 (site.exp): Export them when plugins are enabled.
7198 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
7201 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
7203 (chrec_fold_multiply): Same.
7205 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
7208 * c-decl.c (build_compound_literal): Return early if init is
7211 2010-03-04 Martin Jambor <mjambor@suse.cz>
7213 PR tree-optimization/43164
7214 PR tree-optimization/43191
7215 * tree-sra.c (type_consists_of_records_p): Reject records with
7216 zero-size bit-fields at the end.
7218 2010-03-04 Mike Stump <mikestump@comcast.net>
7220 * Makefile.in (TAGS): Remove *.y.
7222 2010-03-04 Richard Guenther <rguenther@suse.de>
7224 PR tree-optimization/40761
7225 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
7227 (my_rev_post_order_compute): New function.
7228 (init_pre): Call it.
7230 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
7233 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
7234 decrease the cost of an IV candidate when the cost is infinite.
7236 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7238 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
7239 Use '3DNow!' for the extension of that name, ensure normal space
7241 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
7243 2010-03-03 Jeff Law <law@redhat.com>
7245 * PR middle-end/32693
7246 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
7247 than gen_rtx_SUBREG.
7248 (extract_bit_field_1): Likewise.
7250 2010-03-03 Janis Johnson <janis187@us.ibm.com>
7252 * doc/sourcebuild.texi (Test directives): Document that arguments
7253 include-opts and exclude-opts are now optional for dg-skip-if,
7254 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
7256 2010-03-03 Jason Merrill <jason@redhat.com>
7259 * cgraph.h (varpool_node): Add extra_name field.
7260 * varpool.c (varpool_extra_name_alias): New.
7261 (varpool_assemble_decl): Emit extra name aliases.
7262 (varpool_mark_needed_node): Look past an extra name alias.
7263 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
7264 * lto-streamer-in.c (lto_input_tree): Read it.
7265 * lto-streamer-out.c (output_unreferenced_globals): Write it.
7267 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
7269 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
7270 (sparc*-*-solaris2*): ...this.
7272 2010-03-03 Jakub Jelinek <jakub@redhat.com>
7275 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
7276 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
7277 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
7278 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
7281 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
7282 fallthrough to default handling, just with want_address 0 instead of 2.
7283 For single element lists, add_AT_loc directly, otherwise create an
7284 artificial variable DIE and stick location list to it.
7287 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
7288 (VAL_EXPR_HAS_REVERSE): Define.
7289 (reverse_op): New function.
7290 (add_stores): For reversible operations add an extra MO_VAL_USE.
7292 2010-03-02 Jason Merrill <jason@redhat.com>
7294 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
7296 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
7298 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
7299 (sparc64-*-linux*): Likewise.
7300 (sparc64-*-solaris2*): Include assembler files before linker ones.
7301 (sparc-*-solaris2*): Simplify and reorder to match previous case.
7302 * config/sparc/gas.h: Delete.
7303 * config/sparc/sol2-64.h: Add copyright notice.
7304 * config/sparc/sol2-gas-bi.h: Likewise.
7305 * config/sparc/sol2-gld.h: Likewise.
7306 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
7307 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
7308 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
7309 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
7310 (sparc_elf_asm_named_section): Rename into...
7311 (sparc_solaris_elf_asm_named_section): ...this. Always define.
7313 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
7315 * config/alpha/alpha.c (override_options): Fix -mtune error message.
7317 2010-03-02 Jeff Law <law@redhat.com>
7320 * reload1.c (rtx_p, substitute_stack): Declare.
7321 (substitute): Record addresses of changed rtxs.
7322 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
7323 Restore the original rtx when complete.
7324 (reload): Free subsitute_stack when complete.
7326 2010-03-02 Janis Johnson <janis187@us.ibm.com>
7328 * doc/gccint.texi (menu): Add Testsuites as a chapter.
7329 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
7331 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
7332 LTO Testing, gcov Testing, profopt Testing, compat Testing,
7333 Torture Tests): Change from subsection to section.
7335 2010-03-02 Jakub Jelinek <jakub@redhat.com>
7336 Steven Bosscher <steven@gcc.gnu.org>
7338 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
7341 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
7344 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
7345 the assignment from the new induction variable to the assignment
7346 of the value from the original loop PHI function.
7348 2010-03-01 Janis Johnson <janis187@us.ibm.com>
7349 Daniel Jacobowitz <dan@codesourcery.com>
7351 * doc/sourcebuild.texi (Test directives): Clarify options to
7354 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7356 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
7357 Disable cfi directives unless GCC and gas agree on using read-only
7358 .eh_frame sections for 64-bit.
7359 * configure: Regenerate.
7361 2010-03-01 Richard Guenther <rguenther@suse.de>
7363 PR tree-optimization/43220
7364 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
7365 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
7367 2010-03-01 Richard Guenther <rguenther@suse.de>
7368 Martin Jambor <mjambor@suse.cz>
7371 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
7372 gimplified parameters.
7374 2010-03-01 Christian Bruel <christian.bruel@st.com>
7376 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
7378 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7380 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
7382 2010-03-01 Richard Guenther <rguenther@suse.de>
7385 * expr.c (expand_assignment): Use the alias-oracle to tell
7386 if the rhs aliases the result decl.
7388 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7391 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
7392 to sol_gt_pch_get_address.
7393 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
7394 64-bit, SPARC and x86.
7395 (sol_gt_pch_get_address): New function.
7397 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
7399 * toplev.h (inform_n, error_n): Declare.
7400 * diagnostic.c (inform_n, error_n): New function.
7402 2010-03-01 Jakub Jelinek <jakub@redhat.com>
7404 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
7405 has no rtl yet when processing local_decls, queue it and recheck
7406 if deferred stack allocation hasn't assigned it rtl.
7408 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
7410 * config/sh/sh.c (unspec_bbr_uid): New.
7411 (gen_block_redirect): Use it instead of INSN_UID.
7412 (gen_far_branch): Likewise.
7414 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
7416 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
7417 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
7419 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7421 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
7422 (Warning Options): -Wno-conversion-null is valid for
7423 Objective-C++ as well.
7424 * doc/tm.texi (Named Address Spaces): Likewise.
7425 * doc/plugins.texi (Plugins): Replace TABs with spaces.
7426 * doc/tree-ssa.texi (Tree SSA): Likewise.
7428 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
7431 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
7432 by default. Don't set the default arch for
7433 i[34567]86-*-darwin*|x86_64-*-darwin*.
7435 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
7438 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
7439 default. Set the default 32bit/64bit archs with $with_arch
7440 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
7442 2010-02-27 Richard Guenther <rguenther@suse.de>
7444 PR tree-optimization/43186
7445 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
7446 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
7447 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
7448 unroller iterations.
7450 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
7452 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
7453 required and i[34567]86-*-* targets don't support 64bit ISA.
7455 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
7458 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
7461 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
7463 * config.gcc: Set the default arch at least to Prescott for
7464 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
7465 if SSE math is enabled.
7467 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7469 * diagnostic.c (diagnostic_initialize): Update.
7470 (diagnostic_report_diagnostic): Test inhibit_notes_p for
7472 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
7473 (diagnostic_inhibit_notes): New.
7474 * toplev.c (process_options): inhibit notes with -fcompare-debug.
7476 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7479 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
7480 * doc/standards.texi: Likewise.
7481 * doc/extend.texi: Likewise.
7482 * doc/trouble.texi: Likewise.
7483 * doc/cppopts.texi: Likewise.
7484 * doc/install.texi: Likewise.
7485 * c.opt (std=c90,std=gnu90): New options.
7486 * c-opts.c (c_common_handle_option): Handle them.
7488 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7491 * c-decl.c (undeclared_variable): Use an informative note.
7493 2010-02-26 Richard Guenther <rguenther@suse.de>
7495 PR tree-optimization/43186
7496 * gimple.h (gimple_fold): Remove.
7497 * gimple.c (gimple_fold): Remove. Inline into single user ...
7498 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
7499 Try harder for conditions.
7501 2010-02-26 Jakub Jelinek <jakub@redhat.com>
7504 * function.c (used_types_insert): Don't skip through named pointer
7505 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
7506 and it is different from the main variant's type.
7508 2010-02-26 Nick Clifton <nickc@redhat.com>
7510 * config/rx/rx.md (sminsi3): Remove bogus alternative.
7512 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
7514 * config.gcc: Support --with-fpmath=sse for x86.
7516 * config/i386/ssemath.h: New.
7518 * doc/install.texi (--with-fpmath=sse): Documented.
7520 2010-02-26 Richard Guenther <rguenther@suse.de>
7522 PR tree-optimization/43188
7523 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
7524 vector types of over-aligned element type.
7526 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
7529 * config/i386/i386.c (expand_vec_perm_blend): Use correct
7530 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
7532 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7534 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
7536 2010-02-26 Jakub Jelinek <jakub@redhat.com>
7538 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
7539 * var-tracking.c: Include diagnostic.h.
7540 (debug_dv): New function.
7541 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
7544 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
7545 (add_value_chain, add_value_chains, remove_value_chain,
7546 remove_value_chains): Handle DEBUG_EXPRs.
7547 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
7550 * regcprop.c (struct queued_debug_insn_change): New type.
7551 (struct value_data_entry): Add debug_insn_changes field.
7552 (struct value_data): Add n_debug_insn_changes field.
7553 (debug_insn_changes_pool): New variable.
7554 (free_debug_insn_changes, apply_debug_insn_changes,
7555 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
7556 (kill_value_one_regno): Call free_debug_insn_changes if needed.
7557 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
7559 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
7561 (copyprop_hardreg_forward_1): Don't call apply_change_group for
7562 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
7563 changes, call cprop_find_used_regs via note_stores.
7564 (copyprop_hardreg_forward): When copying vd from predecessor
7565 which has any queued DEBUG_INSN changes, make sure the pointers are
7566 cleared. At the end call df_analyze and then if there are any
7567 DEBUG_INSN changes queued at the end of some basic block for still
7568 live registers, apply them.
7569 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
7571 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
7573 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
7576 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
7578 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
7579 targets. Set the default with_cpu/with_arch from arch/cpu.
7580 Allow x86-64 and native for with_cpu/with_arch.
7582 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
7584 * ebitmap.c: Change calls to verify_popcount with calls to
7585 sbitmap_verify_popcount.
7586 (ebitmap_clear_bit): Fixed map->cacheindex test and
7587 map>cache update when bit clearing results in an empty
7590 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
7593 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
7594 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
7595 and support both V2DF and V2DI modes.
7596 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
7597 support both V2DF and V2DI modes.
7598 (general): Delete trailing whitespace from a few patterns.
7600 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7601 V2DF/V2DI interleave high/low builtins.
7603 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
7606 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
7607 interleave high/low functions.
7609 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7611 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
7612 #pragma extern_prefix.
7614 2010-02-25 Jakub Jelinek <jakub@redhat.com>
7617 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
7618 BLKmode, assert op0 is a MEM and just adjust its mode.
7621 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
7622 if bitpos isn't multiple of mode's bitsize.
7624 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7626 * c.opt (-ftemplate-depth=): New.
7627 (-ftemplate-depth-): Deprecate.
7628 * optc-gen.awk: Handle -ftemplate-depth=.
7629 * opth-gen.awk: Likewise.
7630 * c-opts.c (c_common_handle_option): Likewise.
7631 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
7633 2010-02-24 Jason Merrill <jason@redhat.com>
7635 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
7637 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7639 * cfg.c (alloc_aux_for_block): Remove inline.
7640 (alloc_aux_for_edge): Likewise.
7642 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7644 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
7646 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7648 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
7649 * config/i386/sol2-gas.h: New file.
7650 * config.gcc (i[34567]86-*-solaris2*): Use it.
7652 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7655 * c-typeck.c (ep_convert_and_check): New.
7656 (build_conditional_expr): Use it.
7657 (build_binary_op): Likewise.
7659 2010-02-24 Jakub Jelinek <jakub@redhat.com>
7661 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
7664 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
7665 bounds even for -O+.
7666 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
7667 expr needs to have DECL_NAME set.
7669 2010-02-24 Nick Clifton <nickc@redhat.com>
7671 * config/mep/mep.c: Include gimple.h.
7672 (mep_function_uses_sp): Delete unused function.
7673 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
7674 parameters. Use unsigned integers to count args. Return a
7675 NULL_RTX instead of an error_mark_node. Toidy up formatting.
7677 2010-02-23 Jakub Jelinek <jakub@redhat.com>
7680 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
7681 greater or equal to nelt instead of 2 * nelt.
7682 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
7685 2010-02-23 Jason Merrill <jason@redhat.com>
7688 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
7689 in cfun->local_decls even if they have register types.
7692 * stor-layout.c (place_field): Don't warn about unnecessary
7693 DECL_PACKED if the type is packed.
7695 2010-02-23 Jakub Jelinek <jakub@redhat.com>
7698 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
7699 GOTOFF relocs, even when the base reg isn't pic pointer.
7701 2010-02-23 Michael Matz <matz@suse.de>
7704 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
7705 (expand_gimple_basic_block): Generate and use debug temps if there
7706 are debug uses left after the last real use of TERed ssa names.
7707 Unlink debug immediate uses when they are expanded.
7709 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
7712 * config/i386/i386.c (override_options): Reorganise to provide
7713 better error messages.
7715 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
7718 * graphite-scop-detection.c (create_single_exit_edge): Move
7719 the call to find_single_exit_edge to....
7720 (create_sese_edges): ...here. Don't handle multiple edges
7721 exiting the function.
7722 (build_graphite_scops): Don't handle multiple edges
7723 exiting the function.
7725 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
7728 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
7729 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
7731 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
7734 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
7736 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7739 * c-typeck.c (convert_arguments): Print declaration location.
7740 * c-common.c (validate_nargs): Rename as
7741 builtin_function_validate_nargs.
7742 (check_builtin_function_arguments): Update.
7744 2010-02-22 Richard Guenther <rguenther@suse.de>
7747 * tree-inline.c (declare_return_variable): Use the type of
7748 the call stmt lhs if available.
7750 2010-02-22 Duncan Sands <baldrick@free.fr>
7752 * passes.c (register_pass): Always consider all pass lists when
7753 ref_pass_instance_number is zero.
7755 2010-02-22 Richard Guenther <rguenther@suse.de>
7757 PR tree-optimization/42749
7758 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
7759 parameter. Do arithmetic in the original type.
7760 (update_accumulator_with_ops): Likewise.
7761 (adjust_accumulator_values): Adjust.
7763 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7765 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
7766 (QI to BLKmode splitter): New splitter.
7768 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
7770 * config/i386/i386.c (initial_ix86_tune_features): Turn on
7771 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
7773 2010-02-22 Richard Guenther <rguenther@suse.de>
7775 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
7777 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
7779 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
7780 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
7781 ($(T)crti.o, $(T)crtn.o): Remove rules.
7783 2010-02-21 Tobias Burnus <burnus@net-b.de>
7786 * doc/invoke.texi (-fassociative-math): Document that this
7787 option is automatically enabled for Fortran.
7789 2010-02-20 David S. Miller <davem@davemloft.net>
7791 * configure.ac: Test if linker and assembler properly support
7792 GOTDATA_OP relocations.
7793 * configure: Rebuild.
7794 * config.in: Likewise.
7795 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
7796 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
7797 (movsi_high_pic): Likewise.
7798 (movdi_lo_sum_pic): Likewise.
7799 (movdi_high_pic): Likewise.
7800 (movsi_pic_gotdata_op): New pattern.
7801 (movdi_pic_gotdata_op): Likewise.
7802 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
7803 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
7805 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
7808 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
7809 attribute to ssemul.
7810 (xop_mulv2div2di3_high): Ditto.
7812 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7815 * c.opt (Wconversion-null): New option.
7816 * doc/invoke.texi (Wconversion-null): Document.
7818 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7820 * common.opt (Wlarger-than-): Add Undocumented.
7822 2010-02-19 Mike Stump <mikestump@comcast.net>
7824 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
7826 2010-02-19 Jason Merrill <jason@redhat.com>
7829 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
7830 * configure: Likewise.
7832 2010-02-20 Alan Modra <amodra@gmail.com>
7835 * cgraph.h (cgraph_make_decl_local): Declare.
7836 * cgraph.c (cgraph_make_decl_local): New function.
7837 (cgraph_make_node_local): Use it.
7838 * cgraphunit.c (cgraph_function_versioning): Likewise.
7839 * ipa.c (function_and_variable_visibility): Likewise.
7841 2010-02-19 Jakub Jelinek <jakub@redhat.com>
7844 * except.c (sjlj_emit_function_enter): Don't call
7845 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
7847 * rtl.h (add_reg_br_prob_note): Remove prototype.
7849 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
7852 * c-common.c (conversion_warning): Remove widening conversions
7853 before checking the conversion of integers to reals.
7855 2010-02-19 Mike Stump <mikestump@comcast.net>
7858 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
7861 * cgraphunit.c (process_function_and_variable_attributes): Check
7862 DECL_PRESERVE_P instead of looking up attribute "used".
7863 * ipa-pure-const.c (check_decl): Likewise.
7864 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
7865 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
7866 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
7867 instead of attribute "used".
7868 * config/sol2-c.c (solaris_pragma_init): Likewise.
7869 (solaris_pragma_fini): Likewise.
7871 2010-02-19 Jakub Jelinek <jakub@redhat.com>
7873 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
7874 Use XCNEW instead of xcalloc.
7875 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
7876 XNEW instead of xmalloc.
7877 (get_fields): Use XNEWVEC instead of xmalloc.
7880 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
7881 populate vars array.
7882 (create_new_general_access): For debug stmts just reset value.
7883 (get_stmt_accesses): For accesses within debug stmts just record them
7884 using add_access_to_acc_sites instead of preventing the peeling or
7885 counting them as accesses.
7888 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
7890 2010-02-19 Richard Guenther <rguenther@suse.de>
7892 PR tree-optimization/42916
7893 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
7896 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
7898 * configure.ac: Replace all uses of changequote in macro arguments
7899 with proper quoting.
7901 2010-02-19 Jakub Jelinek <jakub@redhat.com>
7904 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
7906 2010-02-19 Richard Guenther <rguenther@suse.de>
7908 PR tree-optimization/42944
7909 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
7910 test for aliasing with errno.
7912 2010-02-19 Jakub Jelinek <jakub@redhat.com>
7915 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
7916 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
7917 * dojump.c: Include output.h.
7918 (inv): New inline function.
7919 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
7920 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
7921 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
7922 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
7923 argument, pass it down to other calls.
7924 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
7925 add REG_BR_PROB note to the conditional jump.
7926 * cfgexpand.c (add_reg_br_prob_note): Removed.
7927 (expand_gimple_cond): Don't call it, add the probability
7928 as last argument to jumpif_1/jumpifnot_1.
7929 * Makefile.in (dojump.o): Depend on output.h.
7930 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
7932 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
7933 * stmt.c (do_jump_if_equal): Likewise.
7934 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
7935 * loop-unswitch.c (compare_and_jump_seq): Likewise.
7936 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
7938 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
7939 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
7940 jumpifnot_1 callers.
7941 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
7943 (store_expr): Adjust jumpifnot caller.
7944 (store_constructor): Adjust jumpif caller.
7947 * gimplify.c (gimple_boolify): For __builtin_expect call
7948 gimple_boolify also on its first argument.
7950 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
7952 * configure.ac (gnu-unique-object): Wrap regexps using [] in
7954 (__stack_chk_fail): Ditto. Remove quadrigraphs.
7955 * configure: Regenerated.
7957 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7959 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
7960 lang_hooks.types_compatible_p instead of comptypes.
7962 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
7964 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
7965 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
7966 if __prefer_thumb__ is defined.
7968 2010-02-18 Martin Jambor <mjambor@suse.cz>
7970 PR tree-optimization/43066
7971 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
7972 array with zero-sized element type.
7974 2010-02-18 Jakub Jelinek <jakub@redhat.com>
7976 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
7977 rtx, allocate struct var_loc_node here and return it to the
7978 caller, and only if it is actually needed.
7979 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
7980 move it earlier and return immediately if it returns NULL.
7982 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
7984 * config/sparc/gas.h: New file. Restore
7985 TARGET_ASM_NAMED_SECTION to its ELF default.
7986 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
7988 * config/sparc/sparc.c (sparc_elf_asm_named_section):
7989 Likewise. Add ATTRIBUTE_UNUSED to prototype.
7990 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
7991 after sparc/sysv4.h.
7993 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
7995 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
7997 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
7999 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
8000 patterns from predicated pattern.
8002 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
8005 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
8006 for insn mnemonic suffix.
8008 2010-02-17 Richard Guenther <rguenther@suse.de>
8010 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
8013 2010-02-17 Jakub Jelinek <jakub@redhat.com>
8016 * caller-save.c (save_call_clobbered_regs): If BB ends with
8017 a DEBUG_INSN, move any notes in between last real insn and the last
8018 DEBUG_INSN after the last DEBUG_INSN.
8020 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
8022 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
8023 Fix return type. Fix argument type. Explain meaning of return value.
8025 2010-02-16 Richard Guenther <rguenther@suse.de>
8027 PR tree-optimization/41043
8028 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
8029 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
8031 (vrp_visit_phi_node): ... but only for loop PHI nodes.
8033 2010-02-16 Ira Rosen <irar@il.ibm.com>
8035 PR tree-optimization/43074
8036 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
8037 * tree-vect-loop.c (vect_analyze_loop_operations): Add
8038 vectorizable cycles in hybrid SLP check.
8039 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
8041 2010-02-16 Richard Guenther <rguenther@suse.de>
8043 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
8044 (true_dependence): If memrefs_conflict_p computes must-alias
8045 trust it. Move TBAA check after offset-based disambiguation.
8046 (canon_true_dependence): Likewise.
8048 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
8050 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
8051 * doc/invoke.texi: Document it.
8052 * var-tracking.c: Include toplev.h and params.h.
8053 (vt_find_locations): Return bool indicating success. Compute
8054 hash sizes unconditionally. Check new parameter, report.
8055 (variable_tracking_main_1): Check vt_find_locations results and
8056 retry. Renamed from...
8057 (variable_tracking_main): ... this. New wrapper to preserve
8058 flag_var_tracking_assignments.
8059 * Makefile.in (var-tracking.o): Adjust dependencies.
8061 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
8062 Jakub Jelinek <jakub@redhat.com>
8065 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
8066 if weak_import attribute is present.
8067 * config/darwin.c (machopic_select_section): Likewise.
8069 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
8071 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
8072 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
8073 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
8074 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
8076 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
8079 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
8082 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
8083 Rewrite text to refer to the names.
8085 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
8087 * config/i386/i386-builtin-types.def
8088 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
8089 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
8090 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
8091 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
8092 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
8093 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
8094 IX86_BUILTIN_VPERMIL2PS256.
8095 (MULTI_ARG_4_DF2_DI_I): Defined.
8096 (MULTI_ARG_4_DF2_DI_I1): Defined.
8097 (MULTI_ARG_4_SF2_SI_I): Defined.
8098 (MULTI_ARG_4_SF2_SI_I1): Defined.
8099 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
8100 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
8101 __builtin_ia32_vpermil2ps256.
8102 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
8103 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
8104 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
8105 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
8106 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
8107 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
8108 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
8109 CODE_FOR_xop_vpermil2v8sf3.
8110 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
8111 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
8112 * config/i386/xopintrin.h (_mm_permute2_pd): New.
8113 (_mm256_permute2_pd): New.
8114 (_mm_permute2_ps): New.
8115 (_mm256_permute2_ps): New.
8117 2010-02-15 Nick Clifton <nickc@redhat.com>
8119 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
8120 boolean parameters. Use emit_jump_insn when emitting a pop
8121 instruction containing a return insn.
8122 (push): Use 'true' rather than '1' as second parameter to F.
8123 (h8300_expand_prologue): Likewise.
8124 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
8125 (h8300_expand_epilogue): Likewise.
8127 2010-02-15 Richard Guenther <rguenther@suse.de>
8130 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
8133 2010-02-15 Nick Clifton <nickc@redhat.com>
8135 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
8138 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
8140 * intl.c (fake_ngettext): New function.
8141 * intl.h (fake_ngettext): Declare.
8142 (ngettext): Define macro.
8143 * collect2.c (notice_translated): New function.
8144 (main): Use notice_translated and ngettext.
8145 * collect2.h (notice_translated): Declare.
8147 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
8149 * reorg.c (delete_computation): Comment fixes.
8150 * caller-save.c (setup_save_areas): Idem.
8151 * sel-sched-dump.c (dump_lv_set): Idem.
8154 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8156 * config/s390/s390.c (s390_sched_init): New function.
8157 (TARGET_SCHED_INIT): Target hook defined.
8159 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
8160 Jack Howarth <howarth@bromo.med.uc.edu>
8161 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8164 Partial revert of unintended change in fix for PR41605.
8165 * config/darwin.h: Fix typo.
8166 * config/darwin9.h: Same.
8168 2010-02-11 Jakub Jelinek <jakub@redhat.com>
8170 * c-pch.c (pch_init): Clear v.
8172 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
8175 * graphite-scop-detection.c (graphite_can_represent_scev): Call
8176 graphite_can_represent_init for MULT_EXPR.
8178 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
8182 * graphite-sese-to-poly.c (remove_phi): New.
8183 (translate_scalar_reduction_to_array): Call remove_phi.
8185 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
8188 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
8189 * graphite-clast-to-gimple.h (gloog): Update declaration.
8190 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
8191 * graphite-poly.h (struct poly_bb): Add missing comments.
8192 (struct scop): Add poly_scop_p field.
8194 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
8195 * graphite.c (graphite_transform_loops): Build the polyhedral
8196 representation for each scop before code generation.
8197 * sese.c (rename_variables_in_operand): Removed.
8198 (rename_variables_in_expr): Return the renamed expression.
8199 (rename_sese_parameters): New.
8200 * sese.h (rename_sese_parameters): Declared.
8202 2010-02-11 Richard Guenther <rguenther@suse.de>
8204 PR tree-optimization/42998
8205 * tree-ssa-pre.c (create_expression_by_pieces): Treat
8206 POINTER_PLUS_EXPR properly.
8208 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
8209 Changpeng Fang <changpeng.fang@amd.com>
8212 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
8213 the cost of an IV candidate when the IV is used in a test against zero.
8215 * gcc.dg/tree-ssa/ivopts-3.c: New.
8217 2010-02-11 Richard Guenther <rguenther@suse.de>
8220 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
8221 pointer-vs-decl case by swapping refs. Handle some cases
8222 of pointer-vs-decl disambiguations more conservatively.
8223 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
8224 to false after expanding.
8226 2010-02-11 Richard Guenther <rguenther@suse.de>
8229 * gcc.c (process_command): Handle LTO file@offset case more
8232 2010-02-11 Jakub Jelinek <jakub@redhat.com>
8234 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
8235 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
8237 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
8239 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
8240 if MEM's mode size isn't DWARF2_ADDR_SIZE.
8241 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
8242 Optimize eq/ne comparisons when both arguments are known to be
8244 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
8245 Don't mask operands unnecessarily if they are known to be already
8248 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
8250 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
8253 2010-02-10 Richard Guenther <rguenther@suse.de>
8255 PR tree-optimization/43017
8256 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
8257 for wrapping signed arithmetic.
8259 2010-02-10 Jakub Jelinek <jakub@redhat.com>
8262 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
8263 if no debug info should be emitted for it.
8265 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
8267 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
8268 note when flag_exceptions is set.
8270 2010-02-10 Duncan Sands <baldrick@free.fr>
8272 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
8274 2010-02-10 Richard Guenther <rguenther@suse.de>
8277 * tree.c (get_unwidened): Handle constants.
8278 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
8280 2010-02-10 Martin Jambor <mjambor@suse.cz>
8283 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
8284 check for variable argument counts independently.
8286 2010-02-10 Christian Bruel <christian.bruel@st.com>
8289 * config/sh/sh.c (find_barrier): Increase length for non delayed
8290 conditional branches.
8292 2010-02-10 Christian Bruel <christian.bruel@st.com>
8294 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
8296 2010-02-10 Jakub Jelinek <jakub@redhat.com>
8298 * builtins.c (set_builtin_user_assembler_name): Also handle
8299 ffs if int is smaller than word.
8301 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
8304 * ira-conflicts.c (get_dup): Remove.
8305 (process_reg_shuffles): Add new parameter. Use it as an
8306 additional guard for copy generation.
8307 (add_insn_allocno_copies): Rewrite.
8309 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
8311 * common.opt (fsched2-use-traces): Preserved for backward
8313 * doc/invoke.texi: Remove the documentation about option
8314 -fsched2-use-traces.
8315 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
8316 flag_sched2_use_traces.
8317 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
8318 the backward compatibility flag section.
8320 2010-02-09 Richard Guenther <rguenther@suse.de>
8322 PR tree-optimization/43008
8323 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
8324 make HEAP variables initialized from global memory if they
8325 are not known builtin functions.
8326 (find_func_aliases): Adjust.
8328 2010-02-09 Richard Guenther <rguenther@suse.de>
8330 PR tree-optimization/43000
8331 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
8332 arithmetic manually.
8334 2010-02-08 Jakub Jelinek <jakub@redhat.com>
8336 PR tree-optimization/42931
8337 * tree-loop-linear.c (try_interchange_loops): Don't call
8338 double_int_mul if estimated_loop_iterations failed.
8340 2010-02-08 Martin Jambor <mjambor@suse.cz>
8343 * tree-sra.c (build_accesses_from_assign): Do not mark in
8344 should_scalarize_away_bitmap if stmt has volatile ops.
8345 (sra_modify_assign): Do not process assigns piecemeal if if stmt
8348 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
8350 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
8352 2010-02-07 Adam Nemet <adambnmet@gmail.com>
8354 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
8357 2010-02-07 Andrew Pinski <pinskia@gmail.com>
8360 * df-core.c (df_finish_pass): Change type of saved_flags to int.
8362 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
8365 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
8366 to unknown_dependence.
8367 (graphite_legal_transform_dr): Handle the unknown_dependence.
8368 (graphite_carried_dependence_level_k): Same.
8370 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
8372 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
8374 2010-02-07 Richard Guenther <rguenther@suse.de>
8377 * expr.c (get_inner_reference): Always initialize *pbitsize.
8379 2010-02-07 Richard Guenther <rguenther@suse.de>
8382 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
8383 new ARRAY_REFs on variable size element or minimal index arrays.
8385 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
8386 gimple_fold_indirect_ref.
8388 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
8391 * arm.c (arm_override_options): Just return if the user has specified
8392 an invalid fpu name.
8394 2010-02-03 Jason Merrill <jason@redhat.com>
8397 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
8398 i386_pe_maybe_record_exported_symbol.
8400 2010-02-05 Steve Ellcey <sje@cup.hp.com>
8403 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
8404 (pa_delegitimize_address): New function.
8406 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
8408 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
8409 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
8411 2010-02-05 Richard Guenther <rguenther@suse.de>
8414 * lto-streamer-in.c (get_resolution): Deal with references
8415 to undefined functions.
8417 2010-02-05 Richard Guenther <rguenther@suse.de>
8419 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
8420 (fold_const_aggregate_ref): Likewise.
8421 (ccp_fold_stmt): Substitute loads.
8422 (maybe_fold_reference): Verify types before substituting.
8424 (fold_gimple_assign): Unshare properly.
8425 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
8427 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
8429 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
8430 for rs6000_gen_cell_microcode.
8432 2010-02-04 Richard Guenther <rguenther@suse.de>
8434 PR rtl-optimization/42952
8435 * dse.c (const_or_frame_p): Remove MEM handling.
8437 2010-02-04 Nick Clifton <nickc@redhat.com>
8439 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
8440 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
8441 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
8442 (mn10300_asm_output_mi_thunk): New function.
8443 (mn10300_can_output_mu_thunk): New function.
8444 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
8445 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
8446 (FUNCTION_ARG): Delete incorrect comment.
8448 2010-02-03 Jason Merrill <jason@redhat.com>
8451 * fold-const.c (operand_equal_p): Handle erroneous types.
8453 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
8455 * config/h8300/h8300.md (can_delay): Fix attibute condition.
8457 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
8459 PR rtl-optimization/42941
8460 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
8463 2010-02-03 Jason Merrill <jason@redhat.com>
8466 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
8468 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
8471 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
8472 (cselib_reset_table): Renamed from...
8473 (cselib_reset_table_with_next_value): ... this.
8474 (cselib_get_next_uid): Renamed from...
8475 (cselib_get_next_unknown_value): ... this.
8476 * cselib.c (next_uid): Renamed from...
8477 (next_unknown_value): ... this.
8478 (cselib_clear_table): Adjust.
8479 (cselib_reset_table): Adjust. Renamed from...
8480 (cselib_reset_table_with_next_value): ... this.
8481 (cselib_get_next_uid): Adjust. Renamed from...
8482 (cselib_get_next_unknown_value): ... this.
8483 (get_value_hash): Use hash.
8484 (cselib_hash_rtx): Likewise.
8485 (new_cselib_val): Adjust. Set and dump uid.
8486 (cselib_lookup_mem): Pass next_uid as hash.
8487 (cselib_subst_to_values): Likewise.
8488 (cselib_log_lookup): Dump uid.
8489 (cselib_lookup): Pass next_uid as hash. Adjust.
8490 (cselib_process_insn): Adjust.
8491 (cselib_init): Initialize next_uid.
8492 (cselib_finish): Adjust.
8493 (dump_cselib_table): Likewise.
8494 * dse.c (canon_address): Dump value uid.
8495 * print-rtl.c (print_rtx): Print value uid.
8496 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
8498 (dv_uid): New function, sort of renamed from...
8499 (dv_htab_hash): ... this, reimplemented in terms of it and...
8500 (dv_uid2hash): ... this. New.
8501 (variable_htab_eq): Drop excess assertions.
8502 (tie_break_pointers): Removed.
8503 (canon_value_cmp): Compare uids.
8504 (variable_post_merge_New_vals): Print uids.
8505 (vt_add_function_parameters): Adjust.
8506 (vt_initialize): Reset table. Adjust.
8508 2010-02-03 Richard Guenther <rguenther@suse.de>
8510 PR tree-optimization/42944
8511 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
8512 (call_may_clobber_ref_p_1): Likewise. Properly handle
8513 malloc and calloc clobbering errno.
8515 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
8517 * doc/invoke.texi: Fix name of sched1 dump.
8519 * opts.c (decode_options): Set flag_tree_switch_conversion
8520 only conditionally on optimize >= 2.
8522 * gcse.c: Assorted comment fixes in pass description.
8524 2010-02-03 Anthony Green <green@moxielogic.com>
8526 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
8527 nop padding in order to maintain alignment of storage location of
8528 target function address.
8529 (moxie_trampoline_init): Store target function address at newly
8531 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
8533 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
8535 2010-02-03 Richard Guenther <rguenther@suse.de>
8538 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
8540 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8542 * config.gcc: Reenable check for obsolete targets.
8543 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
8544 mips-sgi-irix6.[0-4]*.
8546 2010-02-02 Nick Clifton <nickc@redhat.com>
8548 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
8549 constant size of 4 as being the same as 0.
8550 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
8551 can take values in the range 0..4.
8553 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
8556 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
8557 as _darwin10_Unwind_FindEnclosingFunction().
8558 * libgcc-libsystem.ver: New.
8560 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
8563 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
8564 implicitly set registers.
8566 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
8568 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
8569 (arm_override_options): Allow automatic selection of the thread
8570 pointer register if thumb2.
8571 (legitimize_pic_address): Improve code sequences for Thumb2.
8572 (arm_call_tls_get_addr): Likewise.
8573 (legitimize_tls_address): Likewise.
8574 * arm.md (pic_load_addr_arm): Delete. Replace with ...
8575 (pic_load_addr_32bit): ... this. New named pattern.
8576 * thumb2.md (pic_load_addr_thumb2): Delete.
8577 (pic_load_dot_plus_four): Delete.
8578 (tls_load_dot_plus_four): New named pattern.
8580 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8583 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
8584 Document fix for TLS bug.
8586 2010-01-31 Richard Guenther <rguenther@suse.de>
8588 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
8589 conservatively correct.
8591 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8595 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8597 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
8599 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8601 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
8603 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
8605 * config.gcc: Adjust order of makefile fragments for mingw targets.
8607 2010-01-31 Richard Guenther <rguenther@suse.de>
8610 * gimplify.c (gimplify_init_constructor): For volatile LHS
8611 initialize a temporary.
8613 2010-01-31 Matthias Klose <doko@ubuntu.com>
8615 * configure.ac: Fix __stack_chk_fail check for cross builds configured
8617 * configure: Regenerate.
8619 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
8621 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
8622 the same alias set and their sizes different constantness.
8623 (aliasing_component_refs_p): Revert 2009-10-24 change.
8625 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8627 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
8630 2010-01-29 Richard Guenther <rguenther@suse.de>
8632 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
8633 Assert we successfully updated the call.
8635 2010-01-29 Jakub Jelinek <jakub@redhat.com>
8637 PR rtl-optimization/42889
8638 * df.h (df_set_bb_dirty_nonlr): New prototype.
8639 * df-core.c (df_set_bb_dirty_nonlr): New function.
8640 * df-scan.c (df_insn_rescan): Call it instead of
8641 df_set_bb_dirty for DEBUG_INSNs.
8643 2010-01-29 Richard Guenther <rguenther@suse.de>
8646 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
8647 quadratic behavior in most cases.
8649 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
8652 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
8653 in the call to gen_x86_movsicc_0_m1.
8655 2010-01-28 Richard Guenther <rguenther@suse.de>
8657 PR tree-optimization/42871
8658 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
8660 2010-01-28 Richard Guenther <rguenther@suse.de>
8662 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
8663 into call arguments.
8665 2010-01-28 Richard Guenther <rguenther@suse.de>
8668 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
8669 the forwarder if the destination is an EH landing pad.
8671 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
8673 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
8674 block list passed to gimple_duplicate_sese_tail.
8675 (parallelize_loops): Avoid parallelization when the function
8677 Avoid parallelization when the preheader is IRREDUCIBLE.
8678 Try to optimize when estimated_loop_iterations_int is unresolved.
8679 Add the loop's location to the dump file.
8680 * tree-cfg.c (add_phi_args_after_redirect): Remove.
8681 (gimple_duplicate_sese_tail): Remove the check for the latch.
8682 Redirect nexits to the exit block.
8683 Remove handling of the incoming edges to the latch.
8684 Redirect the backedge from the copied latch to the exit bb.
8686 2010-01-28 Michael Matz <matz@suse.de>
8689 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
8690 Wrap force_reg into a sequence, emit it before user.
8692 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
8694 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
8696 (arm_legacy_rev): Likewise.
8697 (thumb_legacy_rev): Likewise.
8699 2010-01-27 Jakub Jelinek <jakub@redhat.com>
8701 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
8702 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
8703 on MEM's address failed, try avoid_constant_pool_reference and
8704 recurse if it returned something different.
8705 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
8706 address, try avoid_constant_pool_reference and recurse if it
8707 returned something different.
8708 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
8709 address and avoid_constant_pool_reference returned something
8710 different, don't set have_address.
8712 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
8715 * var-tracking.c (val_store): Add modified argument, obey it.
8717 (count_uses): Move down logging of main.
8718 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
8719 don't need resolution.
8720 (emit_notes_in_bb): Likewise.
8722 2010-01-27 Richard Guenther <rguenther@suse.de>
8725 * tree-inline.c (remap_decl): Delay remapping of SSA name
8726 default definitions until we need them.
8728 2010-01-27 Jakub Jelinek <jakub@redhat.com>
8730 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
8731 (rs6000_delegitimize_address): New function.
8733 * config/s390/s390.c (s390_delegitimize_address): Call
8734 delegitimize_mem_from_attrs.
8737 * tree-inline.c (cannot_copy_type_1): Removed.
8738 (copy_forbidden): Don't forbid copying of functions containing
8739 records/unions with variable length fields.
8741 2010-01-27 Christian Bruel <christian.bruel@st.com>
8745 * config/sh/sh.c (find_barrier): Increase length for non delayed
8746 conditional branches.
8748 2010-01-27 Matthias Klose <doko@ubuntu.com>
8750 * configure.ac (gnu-unique-object): Fix ldd version check.
8751 * configure: Regenerate.
8753 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8755 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
8757 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
8758 Test for HAVE_GNU_AS value.
8760 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8762 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
8763 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
8764 INT64_TYPE): Define.
8765 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
8766 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
8767 INT_LEAST64_TYPE): Define.
8768 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
8769 UINT_LEAST64_TYPE): Define.
8770 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
8771 INT_FAST64_TYPE): Define.
8772 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
8773 UINT_FAST64_TYPE): Define.
8774 (INTMAX_TYPE, UINTMAX_TYPE): Define.
8775 (INTPTR_TYPE, UINTPTR_TYPE): Define.
8776 (SIG_ATOMIC_TYPE): Define.
8778 2010-01-26 Richard Guenther <rguenther@suse.de>
8780 * df-scan.c (df_scan_set_bb_info): Remove assert.
8781 (df_insn_rescan_debug_internal): Merge asserts.
8782 (df_install_ref): Likewise.
8783 (df_mark_reg): Use bitmap_set_range.
8784 (df_hard_reg_used_p): Remove assert.
8785 (df_hard_reg_used_count): Likewise.
8787 2010-01-26 Richard Guenther <rguenther@suse.de>
8789 PR rtl-optimization/42685
8790 * web.c (web_main): Ignore DEBUG_INSNs.
8792 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
8794 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
8796 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
8797 Fix types of fndecl and arglist parameters.
8799 2010-01-26 Richard Guenther <rguenther@suse.de>
8802 * tree-eh.c (unsplit_eh): Skip debug insns.
8804 2010-01-26 Richard Guenther <rguenther@suse.de>
8806 PR tree-optimization/42250
8807 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
8809 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8812 * omp-low.c (expand_omp_sections): Only use single_pred if
8813 l2_bb is single_pred_p.
8815 2010-01-25 Christian Bruel <christian.bruel@st.com>
8818 * config/sh/sh.c (find_barrier): Increase length for non delayed
8819 conditional branches.
8820 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
8822 2010-01-24 David S. Miller <davem@davemloft.net>
8824 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
8825 define if not using GAS.
8826 * config/sparc/sparc.c (sparc_elf_asm_named_section):
8827 Likewise. Delete SECTION_MERGE code, which is only applicable
8830 2010-01-24 Mark Mitchell <mark@codesourcery.com>
8833 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
8834 mangling of va_list in system headers.
8836 2010-01-23 Toon Moene <toon@moene.org>
8838 * tree-predcom.c (combine_chains): Return NULL, not false.
8840 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
8842 * tree-loop-distribution.c (distribute_loop): Fix declaration and
8843 initialization of variable res to agree with return type.
8845 2010-01-22 Steve Ellcey <sje@cup.hp.com>
8847 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
8848 * tree-sra.c: Add include of expr.h.
8850 2010-01-22 Jakub Jelinek <jakub@redhat.com>
8852 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
8853 insert the debug stmt on the single non-EH edge from the stmt.
8855 2010-01-22 Richard Henderson <rth@redhat.com>
8858 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
8859 the RHS until after generate_subtree_copies has insertted its
8860 code before the current statement.
8862 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
8864 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
8866 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
8868 2010-01-21 Martin Jambor <mjambor@suse.cz>
8870 PR tree-optimization/42585
8871 * tree-sra.c (struct access): New field grp_total_scalarization.
8872 (dump_access): Dump the new field.
8873 (should_scalarize_away_bitmap): New variable.
8874 (cannot_scalarize_away_bitmap): Likewise.
8875 (sra_initialize): Allocate new bitmaps.
8876 (sra_deinitialize): Free new bitmaps.
8877 (create_access_1): New function.
8878 (create_access): Parts moved to create_access_1.
8879 (type_consists_of_records_p): New function.
8880 (completely_scalarize_record): Likewise.
8881 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
8882 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
8883 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
8885 (analyze_all_variable_accesses): Completely scalarize small eligible
8888 2010-01-21 Martin Jambor <mjambor@suse.cz>
8890 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
8892 2010-01-21 Andrew Haley <aph@redhat.com>
8894 * gcc.c (process_command): Move lang_specific_driver before
8895 setting cc_libexec_prefix.
8897 2010-01-21 Richard Guenther <rguenther@suse.de>
8900 * fold-const.c (negate_expr_p): Pretend only negative
8901 real constants are easily negatable.
8903 2010-01-20 Janis Johnson <janis187@us.ibm.com>
8904 Jason Merrill <jason@redhat.com>
8906 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
8907 (TYPE_TRANSPARENT_AGGR): this, for union and record.
8908 * calls.c (initialize argument_information): Handle it.
8909 * c-common.c (handle_transparent_union_attribute): Use new name.
8910 * c-decl.c (finish_struct): Ditto.
8911 * c-typeck.c (type_lists_compatible_p): Ditto.
8912 (convert_for_assignment): Use new name and also handle record.
8913 * function.c (aggregate_value_p): Handle it.
8914 (pass_by_reference): Ditto.
8915 (assign_parm_data_types): Ditto.
8916 * print-tree.c (print_node): Ditto.
8917 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
8918 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
8919 * tree.c (first_field): New fn.
8921 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
8924 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
8925 even when linking statically, for now.
8927 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
8930 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
8931 without a cselib val.
8932 (count_uses): Accept MO_VAL_SET with no val on stores.
8933 (add_stores): Likewise.
8935 2010-01-20 Jakub Jelinek <jakub@redhat.com>
8937 * var-tracking.c (check_value_val): Add a compile time assertion.
8938 (dv_is_decl_p): Simplify.
8939 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
8940 gcc_assert if ENABLE_CHECKING.
8942 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
8945 * var-tracking.c: Include tree-flow.h.
8946 (mem_dies_at_call): New.
8947 (dataflow_set_preserve_mem_locs): Use it.
8948 (dataflow_set_remove_mem_locs): Likewise.
8949 (dump_var): Renamed from dump_variable. Adjust all callers.
8950 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
8951 * Makefile.in (var-tracking.o): Adjust deps.
8953 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
8955 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
8957 2010-01-20 Richard Guenther <rguenther@suse.de>
8959 PR tree-optimization/42717
8960 * tree-ssa-dce.c (get_live_post_dom): Remove.
8961 (forward_edge_to_pdom): Take an arbitrary edge to copy
8962 degenerate PHI args from.
8963 (remove_dead_stmt): Use the first post-dominator even if it
8964 does not contain live statements as redirection destination.
8966 2010-01-20 Richard Guenther <rguenther@suse.de>
8968 * tree-inline.c (estimate_num_insns): Handle EH builtins.
8970 2010-01-20 Jakub Jelinek <jakub@redhat.com>
8972 * sel-sched.c (create_speculation_check): Remove set but not used
8974 (try_transformation_cache): Remove set but not used variable ds.
8975 (calculate_privileged_insns): Remove set but not used variables
8976 cur_insn and min_spec_insn.
8977 (find_best_expr): Remove set but not used variable avail_n.
8978 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
8980 * cgraphunit.c (assemble_thunk): Remove set but not used variable
8982 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
8983 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
8986 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
8989 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
8990 cpu types. Add support for *-sse3 cpu types.
8991 (x86_64-*-*): Ditto.
8993 2010-01-20 Jakub Jelinek <jakub@redhat.com>
8996 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
8997 argument, call initializer_constant_valid_p_1 instead of
8998 initializer_constant_valid_p, pass CACHE to it, return NULL
8999 immediately if first call returns NULL.
9000 (initializer_constant_valid_p_1): New function.
9001 (initializer_constant_valid_p): Use it.
9003 2010-01-20 Thomas Quinot <quinot@adacore.com>
9005 * tree.def (PLACEHOLDER_EXPR): Fix comment.
9007 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9009 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
9010 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
9011 (loc_list_from_tree): Don't handle unsigned division. Handle
9012 signed modulo using DW_OP_{over,over,div,mul,minus}.
9013 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
9014 modulo instead of signed.
9016 2010-01-20 DJ Delorie <dj@redhat.com>
9018 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
9020 (h8300_emit_stack_adjustment): Propogate it.
9022 (h8300_expand_prologue): Likewise.
9023 (h8300_expand_epilogue): Likewise.
9025 2010-01-19 Michael Matz <matz@suse.de>
9027 PR tree-optimization/41783
9028 * tree-data-ref.c (toplevel): Include flags.h.
9029 (dump_data_dependence_relation): Also dump the inputs if the
9030 result will be unknown.
9031 (split_constant_offset_1): Look through some conversions.
9032 * tree-predcom.c (determine_roots_comp): Restart a new chain if
9033 the offset from last element is too large.
9034 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
9035 (reassociate_to_the_same_stmt): Handle vector registers.
9036 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
9038 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
9039 wide_prolog_niters argument, emit widening instructions.
9040 (vect_do_peeling_for_alignment): Adjust caller, use widened
9041 variant of the iteration cound.
9042 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
9044 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9047 * config/arm/neon-testgen.m (emit_automatics): New parameter
9048 features. Adjust for Fixed_return_reg feature.
9049 (test_intrinsic): Call emit_automatics with new feature.
9050 * config/arm/neon.ml: Update copyright years.
9051 (features): New Fixed_return_reg feature.
9052 (ops): Update feature for Vget_low.
9054 2010-01-19 Jakub Jelinek <jakub@redhat.com>
9056 PR tree-optimization/42719
9057 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
9061 * fwprop.c (all_uses_available_at): Return false if def_set dest
9062 is a REG that is used in def_insn.
9064 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
9066 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
9068 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
9071 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
9073 * target.h (struct gcc_target) <secondary_reload>: Change type
9074 of last argument to secondary_reload_info *.
9076 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
9079 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
9080 memory references with unaligned offsets. Remove CQImode handling.
9081 (unaligned_memory_operand): Return 1 for memory references with
9082 unaligned offsets. Remove CQImode handling.
9084 2010-01-18 Richard Guenther <rguenther@suse.de>
9087 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
9090 2010-01-18 Richard Guenther <rguenther@suse.de>
9092 PR tree-optimization/42781
9093 * tree-ssa-structalias.c (find_what_var_points_to): Skip
9094 restrict processing only if the original variable was artificial.
9096 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
9098 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
9099 find number of popped argument bytes.
9101 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
9102 Fix the text that describes the return value for invalid insns.
9104 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
9106 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
9107 Clarify what 'cost of the -dependence' is. Fix quoting.
9109 * toplev.c (default_get_pch_validity): Rename argument to "sz".
9110 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
9112 2010-01-17 Jakub Jelinek <jakub@redhat.com>
9114 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
9115 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
9117 2010-01-17 Richard Guenther <rguenther@suse.de>
9120 * function.c (split_complex_args): Take a VEC to modify.
9121 (assign_parms_augmented_arg_list): Build a VEC instead of
9122 a chain of PARM_DECLs.
9123 (assign_parms_unsplit_complex): Take a VEC of arguments.
9124 Do not fixup unmodified parms.
9125 (assign_parms): Deal with the VEC.
9126 (gimplify_parameters): Likewise.
9128 2010-01-17 Richard Guenther <rguenther@suse.de>
9130 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
9131 node existence check.
9132 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
9133 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
9134 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
9135 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
9136 (gimple_execute_on_growing_pred): Likewise.
9138 2010-01-17 Richard Guenther <rguenther@suse.de>
9140 PR tree-optimization/42773
9141 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
9142 (compute_antic_aux): Likewise.
9143 (compute_partial_antic_aux): Likewise.
9145 2010-01-17 Jie Zhang <jie.zhang@analog.com>
9148 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
9151 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
9153 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
9156 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
9157 Fix markup for strict argument.
9159 (TARGET_SCHED_REORDER2): Fix argument types.
9161 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
9162 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
9164 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
9165 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
9167 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
9170 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
9171 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
9172 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
9173 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
9174 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
9176 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
9178 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
9180 (TARGET_ASM_RELOC_RW_MASK): Add return type.
9181 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
9183 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
9185 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
9188 (TARGET_ASM_NAMED_SECTION): Fix argument list.
9190 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
9191 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
9193 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
9195 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
9197 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
9198 referring to it. Fix language.
9200 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
9202 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
9204 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
9206 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
9208 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
9209 '@var{stream}. Remove stray 'and'.
9211 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
9213 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
9215 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
9217 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
9218 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
9220 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
9221 Fix description of return value.
9222 Rename argument "sz" to "len."
9224 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
9225 Clarify meaning of 'true' return value.
9227 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
9229 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
9230 rep_mode versus mode_rep.
9232 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
9234 (TARGET_BUILTIN_DECL): Fix name.
9236 (TARGET_COMMUTATIVE_P): Fix type of first argument.
9238 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
9240 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
9242 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
9244 (TARGET_RELAXED_ORDERING): Use @deftypevr.
9246 (TARGET_GET_DRAP_RTX): Note that this is a hook.
9249 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
9250 Rename argument tm_fn to md_fn.
9252 (TARGET_OPTION_PRINT): Fix argument list.
9254 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
9257 * config/i386/i386.c (ix86_fixup_binary_operands):
9258 Revert FMA4 fixup of operands.
9260 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9263 * Makefile.in (write_entries_to_file, install-plugin):
9264 Use \012 instead of \n with tr.
9266 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
9268 * configure.ac (HAVE_AS_REF): New C macro.
9269 * configure: Regenerate.
9270 * config.in: Likewise.
9271 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
9273 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
9276 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
9278 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
9280 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
9282 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
9284 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
9286 (TARGET_IN_SMALL_DATA_P): Fix argument type.
9288 (TARGET_BINDS_LOCAL_P): Fix argument type.
9290 (TARGET_ASM_FILE_END): Use prototype.
9292 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
9294 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
9296 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
9298 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
9300 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
9301 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
9303 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
9304 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
9306 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
9307 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
9308 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
9309 (TARGET_ADDR_SPACE_CONVERT): Likewise.
9311 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
9313 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
9315 (TARGET_INIT_BUILTINS): Use prototype.
9317 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
9318 Put 'const char *' in braces. Fix parameter types.
9319 (TARGET_INVALID_CONVERSION): Fix parameter types.
9320 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
9321 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
9323 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
9326 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
9328 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
9330 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
9332 * doc/tm.texi (TARGET_HELP): Fix return type.
9334 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
9335 in braces. Fix argument types.
9337 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
9339 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
9341 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
9343 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
9344 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
9346 (TARGET_MANGLE_TYPE): Fix argument types.
9348 (TARGET_IRA_COVER_CLASSES): Use prototype.
9350 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
9352 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
9354 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
9356 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
9358 (TARGET_CALLEE_COPIES): Fix argument types.
9360 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
9362 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
9364 (TARGET_FUNCTION_VALUE): Fix argument types.
9366 (TARGET_RETURN_IN_MSB): Fix argument type.
9368 (TARGET_RETURN_IN_MEMORY): Fix argument types.
9370 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
9372 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
9374 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
9375 agree with return type.
9377 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
9379 2010-01-15 Jing Yu <jingyu@google.com>
9381 PR rtl-optimization/42691
9382 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
9383 a pseudo to a constant and are merged, and adjust comments.
9385 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
9387 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
9389 2010-01-15 Richard Guenther <rguenther@suse.de>
9392 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
9393 labels of computed or non-local gotos to the destination.
9394 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
9395 landing pad label is the first label.
9397 2010-01-15 Richard Guenther <rguenther@suse.de>
9399 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
9401 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9404 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
9405 to allow generation of the xssqrtdp instruction on power7.
9406 (sqrtdf2_fpr): Ditto.
9408 2010-01-14 Jakub Jelinek <jakub@redhat.com>
9411 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
9412 functions with noreturn attribute.
9415 * varasm.c (declare_weak): Add weak attribute to decl if it
9416 doesn't have one already.
9417 (assemble_external): Only add decls to weak_decls if they also
9418 have weak attribute.
9420 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
9422 * var-tracking.c (var_reg_delete): Don't delete the association
9423 between REGs and values or one-part variables if the register
9426 2010-01-14 Jakub Jelinek <jakub@redhat.com>
9429 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
9430 because its first operand is a non-localized variable.
9432 2010-01-14 Martin Jambor <mjambor@suse.cz>
9434 PR tree-optimization/42706
9435 * tree-sra.c (encountered_recursive_call): New variable.
9436 (encountered_unchangable_recursive_call): Likewise.
9437 (sra_initialize): Initialize both new variables.
9438 (callsite_has_enough_arguments_p): New function.
9439 (scan_function): Call decl and flags check only for IPA-SRA, check
9440 whether there is a recursive call and whether it has enough arguments.
9441 (all_callers_have_enough_arguments_p): New function.
9442 (convert_callers): Look for recursive calls only when
9443 encountered_recursive_call is set.
9444 (ipa_early_sra): Bail out either if
9445 !all_callers_have_enough_arguments_p or
9446 encountered_unchangable_recursive_call.
9448 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9450 * sel-sched.c: Add 2010 to copyright years.
9451 * sel-sched-ir.c: Likewise.
9452 * sel-sched-ir.h: Likewise.
9454 2010-01-14 Martin Jambor <mjambor@suse.cz>
9456 PR tree-optimization/42714
9457 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
9458 constructors specially.
9460 2010-01-14 Andi Kleen <ak@linux.intel.com>
9462 * config/i386/drivers-i386.c (detect_caches_intel):
9463 Add l2sizekb parameter and fill in.
9464 (host_detect_local_cpu): Add l2sizekb, fill in.
9465 Add Atom small cache heuristic.
9467 2010-01-14 Andi Kleen <ak@linux.intel.com>
9469 * config/i386/drivers-i386.c (detect_caches_cpuid4):
9470 Add level3 parameter and fill in.
9471 (detect_caches_intel): Handle level3 cache.
9473 2010-01-14 Andi Kleen <ak@linux.intel.com>
9475 * config/i386/drivers-i386.c (host_detect_local_cpu):
9476 Fix core duo detection.
9478 2010-01-14 Andi Kleen <ak@linux.intel.com>
9480 * config/i386/drivers-i386.c (host_detect_local_cpu):
9483 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9485 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
9486 (rs6000_variable_issue_1): this. Use...
9487 (rs6000_variable_issue): here. Reimplement. Print debug info.
9489 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9491 * sel-sched-ir.c (sel_restore_other_notes): Rename to
9492 sel_restore_notes. Update all callers. Call reemit_notes
9495 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9497 PR rtl-optimization/42246
9498 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
9501 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9503 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
9504 all successors is the same as number of successors in current region.
9506 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9508 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
9509 to rename is not separable. Otherwise check that its LHS is not NULL.
9511 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9513 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
9515 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9517 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
9518 available registers when failed to discover LHS register class.
9519 Fix indentation. Update comment.
9521 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9522 Alexander Monakov <amonakov@ispras.ru>
9524 PR rtl-optimization/42389
9525 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
9527 (advance_state_on_fence): Likewise.
9528 (sel_target_adjust_priority): Print debug output only when
9529 sched_verbose >= 4, not 2.
9530 (get_expr_cost): Do not issue all unique insns on the next cycle.
9531 (fill_insns): Initialize can_issue_more from the value saved
9533 * sel-sched-ir.c (flist_add): New parameter issue_more.
9534 Init FENCE_ISSUE_MORE with it.
9535 (merge_fences): Likewise.
9536 (init_fences): Update call to flist_add.
9537 (add_to_fences, add_clean_fence_to_fences)
9538 (add_dirty_fence_to_fences): Likewise.
9539 (move_fence_to_fences): Update call to merge_fences.
9540 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
9542 * sel-sched-ir.h (struct _fence): New field issue_more.
9543 (FENCE_ISSUE_MORE): New accessor macro.
9545 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9547 PR rtl-optimization/42388
9548 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
9549 that have no predecessors nor successors. Do not call move_bb_info
9550 for empty blocks outside of current region.
9552 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9554 PR rtl-optimization/42294
9555 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
9556 * sel-sched.c (move_exprs_to_boundary): Transitively add all
9557 originators' originators.
9559 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9561 PR rtl-optimization/39453
9562 PR rtl-optimization/42246
9563 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
9565 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
9567 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9568 Alexander Monakov <amonakov@ispras.ru>
9571 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
9572 (maybe_tidy_empty_bb): ... here. Make static. Add new
9573 argument. Update all callers.
9574 (tidy_control_flow): ... and here. Recompute topological order
9575 of basic blocks in region if necessary.
9576 (sel_redirect_edge_and_branch): Change return type. Return true
9577 if topological order might have been invalidated.
9578 (purge_empty_blocks): Export and move from...
9579 * sel-sched.c (purge_empty_blocks): ... here.
9580 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
9581 (maybe_tidy_empty_bb): Delete prototype.
9582 (purge_empty_blocks): Declare.
9584 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9586 PR rtl-optimization/42249
9587 * sel-sched.c (try_replace_dest_reg): When chosen register
9588 and original register is the same, do not bail out early, but
9589 still check all original insns for validity of replacing destination
9590 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
9593 2010-01-14 Jakub Jelinek <jakub@redhat.com>
9596 Port from no-undefined-overflow branch:
9597 2009-03-09 Richard Guenther <rguenther@suse.de>
9599 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
9601 2010-01-14 Richard Guenther <rguenther@suse.de>
9604 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
9606 2010-01-14 Ira Rosen <irar@il.ibm.com>
9608 PR tree-optimization/42709
9609 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
9610 as scalar type in creation of constant vector operand.
9612 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9615 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
9616 (check-parallel-%): Match `testsuite' directory component only
9619 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
9621 PR translation/39521
9622 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
9625 2010-01-13 Richard Guenther <rguenther@suse.de>
9627 PR tree-optimization/42730
9628 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
9631 2010-01-13 Steve Ellcey <sje@cup.hp.com>
9634 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
9635 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
9638 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
9640 * config/bfin/libgcc-bfin.ver: Regenerate based on current
9641 libgcc-std.ver. Add entries for ___smulsi3_highpart and
9642 ___umulsi3_highpart.
9644 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
9645 rather than schedule_insns if the pass is enabled.
9647 2010-01-13 Martin Jambor <mjambor@suse.cz>
9649 PR tree-optimization/42704
9650 * tree-sra.c (sra_modify_assign): Do not delete assignments to
9653 2010-01-13 Martin Jambor <mjambor@suse.cz>
9655 PR tree-optimization/42703
9656 * tree-sra.c (analyze_access_subtree): Check that we can build a
9657 reference to the original data within the aggregate.
9659 2010-01-13 Richard Guenther <rguenther@suse.de>
9661 PR tree-optimization/42705
9662 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
9664 2010-01-13 Richard Guenther <rguenther@suse.de>
9667 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
9669 2010-01-13 Jakub Jelinek <jakub@redhat.com>
9672 * var-tracking.c (values_to_unmark): New variable.
9673 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9674 values_to_unmark vector. Moved body to...
9675 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
9676 instead queue it into values_to_unmark vector.
9677 (vt_find_locations): Free values_to_unmark vector.
9679 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
9681 * config/s390/s390.c (override_options): Set
9682 default of max-pending-list-length to 256
9684 2010-01-13 Richard Guenther <rguenther@suse.de>
9687 * tree-pass.h (PROP_gimple_lcx): New.
9688 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
9689 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
9690 before the final cleanup_eh.
9691 (dump_properties): Dump PROP_gimple_lcx.
9692 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
9693 (tree_lower_complex_O0): Remove.
9694 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
9695 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
9696 tree_lower_complex, schedule TODO_update_ssa.
9697 * lto-streamer-out.c (output_function): Stream the functions
9699 * lto-streamer-in.c (input_function): Likewise.
9700 (lto_read_body): Do not override them here.
9702 2010-01-12 Joseph Myers <joseph@codesourcery.com>
9705 * c-typeck.c (build_c_cast): Fold value cast to union type before
9706 wrapping it in a CONSTRUCTOR.
9708 2010-01-12 Jakub Jelinek <jakub@redhat.com>
9710 PR rtl-optimization/42699
9711 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
9714 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9716 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
9717 SUBTARGET_WARN_UNUSED_SPEC): Move ...
9718 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
9719 SUBTARGET_WARN_UNUSED_SPEC): ... here
9720 * config/mips/iris5.h (LIBGCC_SPEC): Define.
9722 2010-01-12 Julian Brown <julian@codesourcery.com>
9724 * config/arm/neon-schedgen.ml (Utils): Don't try to
9725 open missing module.
9726 (find_with_result): New.
9728 2010-01-12 Jakub Jelinek <jakub@redhat.com>
9731 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
9732 sharing when canonicalizing ({lt,ge}u (plus a b) b).
9734 PR tree-optimization/42645
9735 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
9736 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
9737 decl_map, set processing_debug_stmt to -1 and return name without
9740 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
9742 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
9743 binutils version, and reword target configuration description.
9745 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
9747 * config/avr/avr.h (LINKER_NAME): Remove.
9749 2010-01-11 Janis Johnson <janis187@us.ibm.com>
9752 * config/rs6000/rs6000.c (rs6000_override_options): On targets
9753 that support VSX, warn for -mno-altivec if vsx is not disabled,
9756 2010-01-11 Joseph Myers <joseph@codesourcery.com>
9757 Shujing Zhao <pearly.zhao@oracle.com>
9759 PR translation/42469
9760 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
9761 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
9762 character between option name and help text.
9763 * c.opt (imultilib): Likewise.
9765 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
9767 * lto-streamer-out.c (output_unreferenced_globals): Output static
9770 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
9772 PR rtl-optimization/42621
9773 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
9774 optimizing for size.
9775 (duplicate_computed_gotos): Remove now-redundant check.
9777 2010-01-10 Steve Ellcey <sje@cup.hp.com>
9780 * configure.ac: Save and restore LDFLAGS and LIBS
9781 * configure: Regenerate.
9783 2010-01-10 Richard Guenther <rguenther@suse.de>
9786 * builtins.c (fold_builtin_strlen): Add type argument and
9787 convert the resulting length to it.
9788 (fold_builtin_1): Adjust.
9790 2010-01-09 Jakub Jelinek <jakub@redhat.com>
9792 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
9793 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
9795 (num_insns_constant_wide): Adjust for that change.
9797 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9800 * web.c (union_defs): Add used argument, to combine uses of
9802 (entry_register): Adjust type and tests of used argument.
9803 (web_main): Widen used for new use. Pass it to union_defs.
9804 * df.h (union_defs): Adjust prototype.
9806 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9809 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
9810 uses in new incoming argument. Free body.
9811 (reset_debug_uses_in_loop): New.
9812 (analyze_insn_to_expand_var): Call the latter if the former found
9813 anything. Fix whitespace. Reject invalid dest overlaps before
9814 going through all insns in the loop.
9816 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9819 * haifa-sched.c (dying_use_p): Debug insns don't count.
9821 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9824 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
9825 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
9826 (verify_gimple_call): Reject LHS in noreturn calls.
9828 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9832 * tree-vect-loop-manip.c (adjust_info): New type.
9833 (adjust_vec): New pointer to vector.
9834 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
9835 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
9836 (slpeel_update_phis_for_duplicate_loop): Use them.
9837 (slpeel_update_phi_nodes_for_guard1): Likewise.
9838 (slpeel_update_phi_nodes_for_guard2): Likewise.
9839 (slpeel_tree_peel_loop_to_edge): Likewise.
9840 (vect_update_ivs_after_vectorizer): Likewise.
9842 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9844 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
9845 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
9847 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
9849 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
9850 bogus uninitialized warning.
9852 2010-01-09 Richard Guenther <rguenther@suse.de>
9855 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
9856 the evolution is compatible with the initial condition.
9858 2010-01-09 Jakub Jelinek <jakub@redhat.com>
9860 * gcc.c (process_command): Update copyright notice dates.
9861 * gcov.c (print_version): Likewise.
9862 * gcov-dump.c (print_version): Likewise.
9863 * mips-tfile.c (main): Likewise.
9864 * mips-tdump.c (main): Likewise.
9866 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
9869 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
9871 (rotlhi3_8): Delete.
9873 (rotlsi3_8): Delete.
9874 (rotlsi3_16): Delete.
9875 (rotlsi3_24): Delete.
9877 (*rotw<mode>3): New.
9878 (*rotb<mode>3): New.
9879 * config/avr/avr.c (avr_rotate_bytes): New function.
9880 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
9882 2010-01-08 Steve Ellcey <sje@cup.hp.com>
9885 * configure.ac: Modify -rdynamic check.
9886 * configure: Regenerate.
9888 2010-01-08 DJ Delorie <dj@redhat.com>
9890 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
9891 register popping order.
9893 2010-01-08 Richard Guenther <rguenther@suse.de>
9896 * c.opt (fsigned-char): Also let LTO handle this option.
9897 (funsigned-char): Likewise.
9899 2010-01-07 Richard Guenther <rguenther@suse.de>
9901 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
9902 (gimple_op): Likewise.
9903 (gimple_op_ptr): Likewise.
9904 (gimple_assign_set_lhs): Remove gcc_assert.
9905 (gimple_assign_set_rhs1): Likewise.
9906 (gimple_assign_set_rhs2): Likewise.
9907 (gimple_call_set_lhs): Likewise.
9908 (gimple_call_set_fn): Likewise.
9909 (gimple_call_set_fndecl): Likewise.
9910 (gimple_call_fndecl): Likewise.
9911 (gimple_call_return_type): Likewise.
9912 (gimple_call_set_chain): Likewise.
9913 (gimple_call_num_args): Likewise.
9914 (gimple_call_set_arg): Likewise.
9915 (gimple_cond_set_code): Likewise.
9916 (gimple_cond_set_lhs): Likewise.
9917 (gimple_cond_set_rhs): Likewise.
9918 (gimple_cond_set_true_label): Likewise.
9919 (gimple_cond_set_false_label): Likewise.
9920 (gimple_label_set_label): Likewise.
9921 (gimple_goto_set_dest): Likewise.
9922 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
9923 (gimple_debug_bind_get_value): Likewise.
9924 (gimple_debug_bind_get_value_ptr): Likewise.
9925 (gimple_debug_bind_set_var): Likewise.
9926 (gimple_debug_bind_set_value): Likewise.
9927 (gimple_debug_bind_reset_value): Likewise.
9928 (gimple_debug_bind_has_value_p): Likewise.
9929 (gimple_return_retval_ptr): Remove gcc_assert.
9930 (gimple_return_retval): Likewise.
9931 (gimple_return_set_retval): Likewise.
9932 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
9933 (safe_referenced_var_iterator): Remove.
9934 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
9935 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
9936 (fill_referenced_var_vec): Remove.
9937 (first_readonly_imm_use): Remove redundant gcc_assert.
9938 (phi_arg_index_from_use): Combine gcc_asserts.
9939 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
9940 (first_imm_use_stmt): Remove redundant gcc_assert.
9941 * tree-cfg.c (verify_gimple_call): Verify function and chain
9942 operands. Verify arguments.
9943 (verify_types_in_gimple_stmt): Verify condition code and labels.
9945 2010-01-07 Richard Guenther <rguenther@suse.de>
9947 PR tree-optimization/42641
9948 * sese.c (rename_map_elt_info): Use the SSA name version, do
9951 2010-01-07 Jakub Jelinek <jakub@redhat.com>
9953 PR tree-optimization/42625
9954 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
9955 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
9957 2010-01-07 Duncan Sands <baldrick@free.fr>
9959 * Makefile.in (PLUGIN_HEADERS): Add version.h.
9961 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
9964 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
9965 note itself is not function_invariant_p.
9967 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
9969 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
9970 Do not add the DF_NOTE problem.
9971 * store-motion.c (execute_rtl_store_motion): Likewise.
9973 2010-01-07 Martin Jambor <mjambor@suse.cz>
9975 PR tree-optimization/42157
9976 * tree-sra.c (compare_access_positions): Stabilize sort if both
9977 accesses have integer types, return zero immediately if they are the
9980 2010-01-06 Richard Henderson <rth@redhat.com>
9983 * haifa-sched.c (add_to_note_list): Merge into ...
9984 (concat_note_lists): ... here, and ...
9985 (unlink_other_notes, rm_other_notes): Merge into...
9986 (remove_notes): ... here. Create REG_SAVE_NOTEs for
9987 NOTE_INSN_EPILOGUE_BEG.
9989 2010-01-06 Richard Guenther <rguenther@suse.de>
9991 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
9992 not inline regular functions into always-inline functions.
9994 2010-01-06 Nick Clifton <nickc@redhat.com>
9996 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
9997 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
9999 (OVERRIDE_OPTIONS): Delete.
10000 (OPTIMIZATION_OPTIONS): Define.
10001 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
10002 * config/rx/rx.c (rx_handle_option): Issue an error message if
10003 -mcpu=rx200 and -fpu are used together.
10004 (rx_set_optimization_options): New function. Issue an error
10005 message if an optimization attribute attempts to reset the FPU/
10006 math optimization pairing.
10007 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
10008 * config/rx/rx.opt: Set the default to 32-bit doubles.
10009 * config/rx/t-rx: Add multilibs for -nofpu option.
10010 * doc/invoke.texi: Update documentation of RX options.
10012 2010-01-06 Richard Guenther <rguenther@suse.de>
10014 * tree-ssa-pre.c (name_to_id): New global.
10015 (alloc_expression_id): Simplify SSA name handling.
10016 (lookup_expression_id): Likewise.
10017 (init_pre): Zero name_to_id.
10018 (fini_pre): Free it.
10020 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
10022 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
10024 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
10027 * config/i386/sse.md (smaxv2di3): New.
10028 (umaxv2di3): Likewise.
10029 (sminv2di3): Likewise.
10030 (uminv2di3): Likewise.
10032 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
10035 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
10036 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
10037 (legitimize_tls_address): Likewise.
10038 (sparc_tls_referenced_p): Likewise.
10039 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
10040 and adjust calls to legitimize_pic_address.
10041 (legitimate_constant_p) Use sparc_tls_referenced_p.
10042 (legitimate_pic_operand_p): Likewise.
10043 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
10044 (sparc_tls_symbol_ref_1): Delete.
10045 (sparc_tls_referenced_p): Make static, recognize specific patterns.
10046 (legitimize_tls_address): Make static, handle CONST patterns.
10047 (legitimize_pic_address): Make static, remove unused parameter and
10048 adjust recursive calls.
10049 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
10050 and adjust call to legitimize_pic_address.
10051 (sparc_output_mi_thunk): Likewise.
10053 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
10054 H.J. Lu <hongjiu.lu@intel.com>
10057 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
10058 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
10059 operands to make them signed.
10062 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10065 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
10066 GTU to GT for V4SI and V2DI.
10068 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
10069 (umin<mode>3): Removed.
10071 (uminv4si3): Likewise.
10073 2010-01-05 Martin Jambor <mjambor@suse.cz>
10075 PR tree-optimization/42462
10076 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
10077 current_function_decl to helper functions and macros.
10079 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10082 * flags.h: Don't include real.h.
10083 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
10084 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
10085 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
10086 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
10087 * dominance.c: Update copyright.
10088 * gimple.c (walk_gimple_op): Remove inline.
10089 * tree-ssa-reassoc.c: Include real.h.
10090 * Makefile.in (FLAGS_H): Remove $(REAL_H).
10091 (tree-ssa-reassoc.o): Depend on $(REAL_H).
10093 2010-01-05 Nick Clifton <nickc@redhat.com>
10095 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
10096 register to push into the stack frame when the accumulator has to
10097 be saved during interrupts.
10099 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
10101 * doc/invoke.texi: Remove the documentation about option
10102 -Wunreachable-code.
10103 * common.opt (Wunreachable-code): Preserved for backward
10105 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
10106 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
10107 the backward compatibility flag section.
10109 2010-01-05 Richard Guenther <rguenther@suse.de>
10111 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
10113 2010-01-05 Jakub Jelinek <jakub@redhat.com>
10116 * cfgexpand.c (expand_one_var): Diagnose too large variables.
10118 PR tree-optimization/42508
10119 * tree-sra.c (convert_callers): Check for recursive call
10120 by comparing cgraph nodes instead of decls.
10121 (modify_function): Call ipa_modify_formal_parameters also
10122 on all same_body aliases.
10124 * cgraphunit.c (cgraph_materialize_all_clones): Compare
10125 cgraph nodes when checking for same_body aliases.
10127 2010-01-05 Richard Guenther <rguenther@suse.de>
10129 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
10130 allocation and lookup.
10131 (get_or_alloc_expr_for_constant): Likewise.
10132 (phi_translate): Sink allocation.
10134 2010-01-04 Richard Guenther <rguenther@suse.de>
10136 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
10137 a new entry only if needed.
10138 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
10139 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
10141 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
10143 (phi_translate): Handle CONSTANTs early.
10145 2010-01-04 Martin Jambor <mjambor@suse.cz>
10147 PR tree-optimization/42398
10148 * tree-sra.c (struct access): Removed flag grp_different_types.
10149 (dump_access): Do not dump the removed flag.
10150 (sort_and_splice_var_accesses): Do not set the removed flag.
10151 (sra_modify_expr): Check for type compatibility directly.
10153 2010-01-04 Martin Jambor <mjambor@suse.cz>
10155 PR tree-optimization/42366
10156 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
10157 edges with variable number of parameters.
10158 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
10159 flag instead of asserting it.
10160 (ipa_read_node_info): Read uses_analysis_done flag.
10162 2010-01-04 Richard Guenther <rguenther@suse.de>
10164 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
10165 iterative_hash_* as intended.
10166 (vn_reference_compute_hash): Likewise. Simplify hashing
10168 (vn_reference_lookup_2): Likewise.
10169 (vn_nary_op_compute_hash): Likewise.
10170 (vn_phi_compute_hash): Likewise.
10171 (expressions_equal_p): Remove strange code.
10172 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
10173 (pre_expr_hash): Likewise. Simplify hashing SSA names.
10174 (bitmap_insert_into_set_1): Take value-id as parameter.
10175 (add_to_value): Pass it.
10176 (bitmap_insert_into_set): Likewise.
10177 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
10179 2010-01-04 Jakub Jelinek <jakub@redhat.com>
10182 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
10183 (do_self_spec): For switches with SWITCH_IGNORE set set also
10184 SWITCH_IGNORE_PERMANENTLY.
10185 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
10188 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
10190 * lto-streamer-out.c (output_unreferenced_globals): Output the full
10191 tree of an unreferenced global var.
10193 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10196 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
10197 GTU to GT for V4SI and V2DI.
10199 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
10200 (umin<mode>3): Removed.
10202 (uminv4si3): Likewise.
10204 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10207 * collect2.c (main): Turn on trace in collect2 if -v is passed
10210 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
10212 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
10213 description of expression operand.
10215 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
10217 * configure.ac: Add install-html to target_list for Make-hooks.
10218 * configure: Regenerate.
10219 * fortran/Make-lang.in (F95_HTMLFILES): New.
10220 (fortran.html): Use it.
10221 (fortran.install-html): New.
10222 * Makefile.in (install-html): Add lang.install-html.
10223 * java/Make-lang.in (JAVA_HTMLFILES): New.
10224 (java.html): Use it.
10225 (java.install-html): New.
10226 * objc/Make-lang.in (objc.install-html): New.
10227 * objcp/Make-lang.in (obj-c++.install-html): New.
10228 * cp/Make-lang.in (c++.install-html): New.
10229 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
10230 * lto/Make-lang.in (lto.install-html): New.
10232 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
10235 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
10237 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
10239 PR rtl-optimization/41862
10240 * store-motion.c (store_killed_in_insn, compute_store_table,
10241 remove_reachable_equiv_notes, replace_store_insn,
10242 build_store_vectors): Ignore all DEBUG_INSNs.
10244 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
10247 * common.opt: Add dumpdir.
10249 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
10251 (option_map): Add --dumpdir.
10253 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
10255 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
10257 * opts.c (decode_options): Try dump_dir_name first if
10258 dump_base_name isn't an absolute path.
10259 (common_handle_option): Handle OPT_dumpdir.
10261 * toplev.c (dump_dir_name): New.
10262 (print_switch_values): Also ignore -dumpdir.
10264 * toplev.h (dump_dir_name): New.
10266 2010-01-03 Richard Guenther <rguenther@suse.de>
10268 PR tree-optimization/42589
10269 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
10270 double-word expansion of bswap32.
10272 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
10274 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
10275 with BLOCK_FOR_INSN.
10276 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
10277 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
10278 noce_process_if_block): Likewise.
10279 * gcse.c (compute_local_properties, insert_expr_in_table,
10280 insert_set_in_table, canon_list_insert, find_avail_set,
10281 pre_insert_copy_insn): Likewise.
10283 * basic-block.h (BLOCK_NUM): Move from here...
10284 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
10286 2010-01-03 Richard Guenther <rguenther@suse.de>
10288 PR tree-optimization/42438
10289 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
10290 contains_may_not_return_call flag.
10291 (BB_MAY_NOTRETURN): New.
10292 (valid_in_sets): Trapping nary operations are not valid
10293 in blocks that may not return.
10294 (insert_into_preds_of_block): Remove check for trapping expressions.
10295 (compute_avail): Compute also BB_MAY_NOTRETURN.
10297 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
10299 * doc/invoke.texi: Add 2010 to copyright years.
10301 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
10303 * config/sparc/sparc.c: Fix formatting nits.
10305 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10306 Alexander Monakov <amonakov@ispras.ru>
10308 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
10310 2010-01-02 Richard Guenther <rguenther@suse.de>
10312 PR middle-end/42577
10313 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
10314 (simplify_switch_using_ranges): Mark to be removed edges
10317 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10319 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10321 * collect2.c (scan_libraries): Add missing argument in call to
10324 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
10327 * config/alpha/predicates.md (aligned_memory_operand): Return false
10329 (unaligned_memory_operand): Return true for CQImode.
10330 * config/alpha/alpha.c (get_aligned_mem): Assert that location
10331 doesn not cross aligned SImode word boundary.
10333 2010-01-02 Anatoly Sokolov <aesok@post.ru>
10335 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
10337 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
10338 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
10340 2010-01-02 Richard Guenther <rguenther@suse.de>
10343 * toplev.c (compile_file): Emit LTO marker properly. Change
10344 it to __gnu_lto_v1.
10345 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
10347 2010-01-01 Richard Guenther <rguenther@suse.de>
10350 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
10352 2010-01-01 Richard Guenther <rguenther@suse.de>
10355 * c-decl.c (grokdeclarator): For zero-size arrays force
10356 structural equality checks as layout_type does.
10358 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
10360 * builtins.c: Update copyright to 2010.
10362 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
10365 * lto-streamer-out.c (produce_asm): Revert the last change.
10366 (copy_function): Likewise.
10368 * lto-streamer.c (lto_get_section_name): Skip any leading
10371 2010-01-01 Richard Guenther <rguenther@suse.de>
10373 PR middle-end/42559
10374 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
10378 Copyright (C) 2010 Free Software Foundation, Inc.
10380 Copying and distribution of this file, with or without modification,
10381 are permitted in any medium without royalty provided the copyright
10382 notice and this notice are preserved.