1 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
4 Cast "1" to unsigned HOST_WIDE_INT.
5 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
6 deposit length to the maximum length - lsb. Extend length if
7 HOST_BITS_PER_WIDE_INT is 32.
9 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
11 * cgraph.h (constant_pool_htab): New function.
12 (constant_descriptor_tree): Move from varasm.c.
13 * varasm.c (constant_pool_htab): New function.
14 (constant_descriptor_tree): Move to cgraph.h.
16 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
18 * toplev.c: Invoke FINISH_UNIT callbacks before call to
21 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
23 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
26 2009-07-20 Xinliang David Li <davidxl@google.com>
28 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
30 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
32 * config/mips/mips.md (move_type): Add arith.
34 (zero_extendsidi2): Rename this into ...
35 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
36 (zero_extendsidi2): New expander.
37 (*zero_extendsidi2_dext): New pattern.
39 2009-07-20 Nick Clifton <nickc@redhat.com>
41 * config.gcc (mips64-*-*): Add definition of tm_defines in order
42 to set MIPS_ABI_DEFAULT.
43 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
45 2009-07-20 Jakub Jelinek <jakub@redhat.com>
47 * tree-object-size.c (addr_object_size): Handle unions with
48 array in it as last field of structs in __bos (, 1) as __bos (, 0).
50 PR tree-optimization/40792
51 * tree.c (build_function_type_skip_args): Remove bogus assert.
53 2009-07-20 Jan Hubicka <jh@suse.cz>
54 Martin Jambor <mjambor@suse.cz>
56 * cgraph.h (combined_args_to_skip): New field.
57 * cgraph.c (cgraph_create_virtual_clone): Properly handle
58 combined_args_to_skip and args_to_skip.
59 * tree-inline.c (update_clone_info): New function.
60 (tree_function_versioning): Call update_clone_info.
61 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized functions.
62 (cgraph_materialize_all_clones): More extensive dumping, working
63 with combined_args_to_skip rather than args_to_skip.
65 2009-07-20 Ira Rosen <irar@il.ibm.com>
67 * tree-vectorizer.h (vectorizable_condition): Add parameters.
68 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
69 (get_initial_def_for_reduction): Likewise.
70 (vectorizable_reduction): Skip the check of first operand in case
71 of COND_EXPR. Add check that it is outer loop vectorization if
72 nested cycle was detected. Call vectorizable_condition() for
73 COND_EXPR. If reduction epilogue cannot be created do not fail for
74 nested cycles (if it is not double reduction). Assert that there
75 is only one type in the loop in case of COND_EXPR. Call
76 vectorizable_condition() to vectorize COND_EXPR.
77 * tree-vect-stmts.c (vectorizable_condition): Update comment.
78 Add parameters. Allow nested cycles if called from
79 vectorizable_reduction(). Use reduction vector variable if provided.
80 (vect_analyze_stmt): Call vectorizable_reduction() before
81 vectorizable_condition().
82 (vect_transform_stmt): Update call to vectorizable_condition().
84 2009-07-20 Christian Bruel <christian.bruel@st.com>
86 * config/sh/sh.opt (-mfmovd): Resurrect and document.
87 * doc/invoke.texi (-mfmovd): Likewise.
88 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
90 2009-07-20 Jan Hubicka <jh@suse.cz>
92 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
93 when handling SSA name.
95 2009-07-19 Jan Hubicka <jh@suse.cz>
97 PR tree-optimization/40676
98 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
99 virtual PHIs in empty BBs.
101 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
103 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
104 re-expanded the compound use gen_lowpart instead to convert to the
107 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
109 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
110 OUTER_CONST arguments.
111 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
112 the new wider mode will be masked off.
113 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
115 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
117 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
118 high-order bits are zero.
120 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
122 * combine.c (simplify_shift_const_1): Split code to determine
124 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
125 new bits shifted in are identical to the old sign bit.
127 2009-07-18 Richard Guenther <rguenther@suse.de>
130 * gimplify.c (gimplify_call_expr): Reject code using results from
131 functions returning void.
133 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
135 * doc/md.texi: Document the new PowerPC "es" constraint.
136 Document that "m" can include automodified addresses on this target,
137 and explain how %U must be used. Extend the "Q" and "Z" documentation
138 to suggest "es" as well as "m".
139 * config/rs6000/constraints.md (es): New memory constraint.
140 (Q, Z): Update strings to match new documentation.
142 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
144 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
145 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
146 * config/rs6000/predicates.md (volatile_mem_operand): Use
147 offsettable_nonstrict_memref_p.
148 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
149 (*floatunssidf2_internal): Likewise.
150 (*fix_truncdfsi2_internal): Likewise.
151 (*fix_trunctfsi2_internal): Likewise.
153 2009-07-17 Anatoly Sokolov <aesok@post.ru>
155 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
157 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
159 2009-07-17 Richard Guenther <rguenther@suse.de>
162 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
163 (pass_warn_unused_result): Likewise.
164 (TODO_set_props): Remove.
165 * omp-low.c (diagnose_omp_structured_block_errors): Change to
167 (pass_diagnose_omp_blocks): Define.
168 * c-decl.c (pop_file_scope): Do not finalize the CU here.
169 (c_gimple_diagnostics_recursively): Remove.
170 (finish_function): Do not call it.
171 (c_write_global_declarations): Continue after errors.
172 Finalize the CU here.
173 * c-gimplify.c (c_genericize): Do not gimplify here.
174 * c-common.c (c_warn_unused_result): Move ...
175 * tree-cfg.c (do_warn_unused_result): ... here.
176 (run_warn_unused_result): New function.
177 (gate_warn_unused_result): New function.
178 (pass_warn_unused_result): New pass.
179 * c-common.h (c_warn_unused_result): Remove.
180 * flags.h (flag_warn_unused_result): Declare.
181 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
182 * opts.c (flag_warn_unused_result): Initialize to false.
183 * toplev.c (compile_file): Add comment.
184 * omp-low.c (create_omp_child_function): Do not register
185 the function with the frontend.
186 (diagnose_omp_structured_block_errors): Prepare to be
187 called as optimization pass.
188 (gate_diagnose_omp_blocks): New function.
189 (pass_diagnose_omp_blocks): New pass.
190 * cgraph.h (cgraph_optimize): Remove.
191 (cgraph_analyze_function): Likewise.
192 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
193 * cgraphunit.c (cgraph_lower_function): Lower nested functions
194 before their parents here.
195 (cgraph_finalize_function): Not here.
196 (cgraph_analyze_function): Gimplify functions here.
197 (cgraph_finalize_compilation_unit): Continue after errors.
198 Optimize the callgraph from here.
199 (cgraph_optimize): Make static.
200 * langhooks.c (write_global_declarations): Finalize the CU.
201 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
202 (gimplify_function_tree): Assert we gimplify only once.
203 Set PROP_gimple_any property.
204 * tree-nested.c (gimplify_all_functions): New function.
205 (lower_nested_functions): Gimplify all nested functions.
206 * gimple.h (diagnose_omp_structured_block_errors): Remove.
207 * passes.c (init_optimization_passes): Add pass_warn_unused_result
208 and pass_diagnose_omp_blocks after gimplification. Do not
209 set TODO_set_props on all_lowering_passes.
210 (execute_one_pass): Do not handle TODO_set_props.
211 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
212 (gimplify.o): Add tree-pass.h dependency.
213 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
214 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
215 (unsave_r): Likewise.
216 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
219 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
221 * doc/service.texi (Service): Restore previously removed link,
222 which isn't broken after all.
224 2009-07-17 Richard Guenther <rguenther@suse.de>
226 PR tree-optimization/40321
227 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
228 PHI nodes to the maximal set.
229 (make_values_for_phi): Add PHI arguments to the maximal set.
230 (execute_pre): Dump PHI_GEN and the maximal set.
232 2009-07-17 Jakub Jelinek <jakub@redhat.com>
235 * gimplify.c (gimplify_conversion): Don't change non-conversions into
238 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
240 * doc/extend.texi (Nested Functions): Replace broken link with
242 * doc/service.texi (Service): Remove broken link.
244 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
247 * builtins.c (expand_builtin_memcmp): Use loc instead of
249 (expand_builtin_strncmp): Likewise.
251 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
252 Manuel López-Ibáñez <manu@gcc.gnu.org>
255 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
256 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
257 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
258 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
259 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
260 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
261 tree-inline.c, c-common.c, c-common.h, gimple.c,
262 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
263 convert.c: Add location argument to fold_{unary,binary,ternary},
264 fold_build[123], build_call_expr, build_size_arg,
265 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
266 fold_build1_initializer, fold_build2_initializer,
267 fold_build3_initializer, fold_build_call_array,
268 fold_build_call_array_initializer, fold_single_bit_test,
269 omit_one_operand, omit_two_operands, invert_truthvalue,
270 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
271 combine_comparisons, fold_builtin_*, fold_call_expr,
272 build_range_check, maybe_fold_offset_to_address, round_up,
275 2009-07-16 Jason Merrill <jason@redhat.com>
278 * c-common.c (c_common_reswords): Add __is_standard_layout
280 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
281 * doc/implement-cxx.texi: New.
282 * doc/gcc.texi: Include it.
284 2009-07-16 DJ Delorie <dj@redhat.com>
286 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
287 compares that may be indirectly affected by previous instructions.
289 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
291 * builtins.c (do_mpc_arg2): New.
292 (fold_builtin_2): Fold builtin cpow.
293 * real.h (HAVE_mpc_pow): New.
295 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
297 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
298 comparison to skip unprofitable schedule
300 2009-07-16 Simon Baldwin <simonb@google.com>
302 * gcc.c (option_map): New flag -no-canonical-prefixes.
303 * (display_help): Print help text for new flag.
304 * (process_command): Move options translation and language specifics
305 and handle new flag early. Use it to set a function pointer to a
306 prefix builder. Replace make_relative_prefix calls with calls to
307 the function pointed to. Ignore new flag in regular options handling.
308 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
310 2009-07-15 DJ Delorie <dj@redhat.com>
312 * config/mep/mep.md (sibcall_internal): Change register to avoid
314 (sibcall_value_internal): Likewise.
316 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
318 PR rtl-optimization/40710
319 * resource.c (mark_target_live_regs): Reset DF problem to LR.
321 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
323 * config/mips/mips.md (*extenddi_truncate<mode>,
324 *extendsi_truncate<mode>): Change type attribute to move_type
325 with shift_shift. Split out code handling exts from here ...
326 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
328 (*extendhi_truncateqi): Change type attribute to move_type with
329 shift_shift. Split out code handling exts from here ...
330 (*extendhi_truncateqi_exts): ... to this new pattern.
332 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
334 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
335 instead of "and" with inverted sign bit mask value. Use
336 "nonimmediate_operand" for operand 1 and operand 2 predicate.
337 Allocate registers only for operand 4 and operand 5.
339 2009-07-15 Jakub Jelinek <jakub@redhat.com>
342 * fold-const.c (fold_cond_expr_with_comparison): When folding
343 < and <= to MIN, make sure the MIN uses the same type as the
344 comparison's operands.
346 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
348 * arm.md (ior_xor): New code iterator.
349 (split for ior/xor with shift and zero-extend): New split pattern.
350 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
352 2009-07-15 Richard Guenther <rguenther@suse.de>
354 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
357 2009-07-15 Richard Guenther <rguenther@suse.de>
360 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
362 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
364 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
365 handle 2.6.30 kernel.
367 2009-07-15 DJ Delorie <dj@redhat.com>
369 * config/mep/mep.md (sibcall_internal): Change register to allow
370 for 24-bit addresses.
371 (sibcall_value_internal): Likewise.
373 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
375 * doc/invoke.texi: Added descriptions of the scheduling heuristics
376 that are enabled/disabled by the flags introduced by a previous patch.
378 2009-07-14 DJ Delorie <dj@redhat.com>
380 * config/mep/mep.md (sibcall_internal): Include non-toggling
382 (sibcall_value_internal): Likewise.
384 2009-07-14 Taras Glek <tglek@mozilla.com>
385 Rafael Espindola <espindola@google.com>
387 * doc/sourcebuild.texi: Document install-plugin target.
388 * configure.ac: Added install-plugin target to language makefiles.
389 * configure: Regenerate.
390 * Makefile.in: (install-plugin): Install more headers,
391 depend on lang.install-plugin.
393 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
395 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
398 2009-07-14 DJ Delorie <dj@redhat.com>
400 * config/mep/mep.c (mep_vliw_jmp_match): New function.
401 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
402 * config/mep/mep.md (sibcall_internal): Change test from
403 mep_vliw_mode_match to mep_vliw_jmp_match.
404 (sibcall_value_internal): Likewise.
406 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
408 * config/i386/sse.md (copysign<mode>3): New expander.
409 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
410 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
411 Use ix86_build_const_vector.
412 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
413 IX86_BUILTIN_CPYSGNPD.
414 (builtin_description): Add __builtin_ia32_copysignps and
415 __builtin_ia32_copysignpd.
416 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
417 and BUILT_IN_COPYSIGNF.
419 2009-07-13 Jason Merrill <jason@redhat.com>
421 * builtins.c (can_trust_pointer_alignment): New fn.
422 (get_pointer_alignment): Factor it out from here.
423 * tree.h: Declare it.
425 2009-07-14 David Edelsohn <edelsohn@gnu.org>
427 * config/rs6000/predicates.md (offsettable_mem_operand): Test
430 2009-07-14 Dodji Seketeli <dodji@redhat.com>
434 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
436 2009-07-14 Richard Guenther <rguenther@suse.de>
437 Andrey Belevantsev <abel@ispras.ru>
440 * cfgexpand.c (partition_stack_vars): Do not bother to update
441 alias information when not optimizing.
443 2009-07-14 Richard Guenther <rguenther@suse.de>
444 Andrey Belevantsev <abel@ispras.ru>
446 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
447 (pt_solution_set): Likewise.
448 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
449 * tree-ssa-structalias.c (pt_solution_set): New function.
450 * final.c (rest_of_clean_state): Free SSA data structures.
451 * print-rtl.c (print_decl_name): Remove.
452 (print_mem_expr): Implement in terms of print_generic_expr.
453 * alias.c (ao_ref_from_mem): New function.
454 (rtx_refs_may_alias_p): Likewise.
455 (true_dependence): Query alias-export info.
456 (canon_true_dependence): Likewise.
457 (write_dependence_p): Likewise.
458 * tree-dfa.c (get_ref_base_and_extent): For void types leave
460 * emit-rtl.c (component_ref_for_mem_expr): Remove.
461 (mem_expr_equal_p): Use operand_equal_p.
462 (set_mem_attributes_minus_bitpos): Do not use
463 component_ref_for_mem_expr.
464 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
465 (update_alias_info_with_stack_vars): Likewise.
466 (partition_stack_vars): Call update_alias_info_with_stack_vars.
467 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
468 explicitly nor clear stmt operands.
469 Free the decl-to-pointer map.
470 * tree-optimize.c (execute_free_datastructures): Do not free
471 SSA data structures here.
472 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
473 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
474 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
476 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
478 2009-07-13 DJ Delorie <dj@redhat.com>
480 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
481 unrolling at the right iteration count.
483 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
486 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
488 * haifa-sched.c (rank_for_schedule): Introduced flags to
489 enable/disable individual scheduling heuristics.
490 * common.opt: Introduced flags to enable/disable individual
491 heuristics in the scheduler.
492 * doc/invoke.texi: Introduced flags to enable/disable individual
493 heuristics in the scheduler.
495 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
497 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
498 config/i386/mingw-tls.c.
499 * config/i386/mingw-tls.c: Removed.
501 2009-07-13 Ira Rosen <irar@il.ibm.com>
503 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
504 checks access only relevant statements.
505 (vectorizable_reduction): Likewise.
507 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
509 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
510 just for 32-bit case.
512 2009-07-12 Jan Hubicka <jh@suse.cz>
514 PR tree-optimization/40585
515 * except.c (expand_resx_expr): When there already is resume
516 instruction, produce linked list.
517 (build_post_landing_pads): Assert that resume is empty.
518 (connect_post_landing_pads): Handle resume lists.
519 (dump_eh_tree): Dump resume list.
521 2009-07-12 Ira Rosen <irar@il.ibm.com>
523 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
524 with additional argument.
525 * tree-vectorizer.h (enum vect_def_type): Add
526 vect_double_reduction_def.
527 (vect_is_simple_reduction): Add argument.
528 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
530 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
531 vect_is_simple_reduction with additional argument.
532 (vect_analyze_loop_operations): Handle exit phi nodes in case of
534 (reduction_code_for_scalar_code): Handle additional codes by
535 returning ERROR_MARK for them. Fix comment and indentation.
536 (vect_is_simple_reduction): Fix comment, add argument to specify
537 double reduction. Detect double reduction.
538 (get_initial_def_for_induction): Fix indentation.
539 (get_initial_def_for_reduction): Fix comment and indentation.
540 Handle double reduction. Create initial definitions that do not
541 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
542 (vect_create_epilog_for_reduction): Fix comment, add argument to
543 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
544 epilogue result extraction. Create double reduction phi node and
545 replace relevant uses.
546 (vectorizable_reduction): Call vect_is_simple_reduction with
547 additional argument. Fix indentation. Update epilogue code treatment
548 according to the changes in reduction_code_for_scalar_code. Check
549 for double reduction. Call vect_create_epilog_for_reduction with
551 * tree-vect-stmts.c (process_use): Handle double reduction, update
553 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
554 (vect_get_vec_def_for_operand): Likewise.
556 2009-07-12 Danny Smith <dansmister@gmail.com>
558 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
559 dllexport if !TREE_PUBLIC.
560 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
562 2009-07-11 Anatoly Sokolov <aesok@post.ru>
564 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
565 (avr_extra_arch_macro) Remove declatation.
566 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
567 (avr_extra_arch_macro) Declare as static.
568 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
570 2009-07-11 Jan Hubicka <jh@suse.cz>
573 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
575 2009-07-11 Jakub Jelinek <jakub@redhat.com>
578 * dwarf2out.c (dw_fde_struct): Add in_std_section and
579 cold_in_std_section bits.
580 (dwarf2out_begin_prologue): Initialize them.
581 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
582 if already covered by text_section or cold_text_section range.
584 PR rtl-optimization/40667
585 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
586 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
587 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
588 * config/i386/i386.c (ix86_minimum_alignment): New function.
589 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
590 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
591 * emit-rtl.c (gen_reg_rtx): Likewise.
592 * function.c (assign_parms): Likewise. If nominal_type needs
593 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
594 rather than passed_type's alignment.
597 * function.c (assign_parm_setup_stack): Adjust
598 MEM_OFFSET (data->stack_parm) if promoted_mode is different
599 from nominal_mode on big endian.
601 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
603 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
605 2009-07-10 DJ Delorie <dj@redhat.com>
607 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
609 2009-07-10 Mark Mitchell <mark@codesourcery.com>
611 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
613 (thumb2_cbnz): Likewise.
615 2009-07-10 David Daney <ddaney@caviumnetworks.com>
618 * config.gcc (supported_defaults): Add synci.
619 (with_synci): Add validation.
620 (all_defaults): Add synci.
621 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
624 * config/mips/mips.opt (msynci): New option.
625 * config/mips/mips.c (mips_override_options): Warn on use of
626 -msynci for targets that do now support it.
627 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
629 * gcc/doc/invoke.texi (-msynci): Document the new option.
630 * doc/install.texi (--with-synci): Document the new option.
632 2009-07-10 Richard Guenther <rguenther@suse.de>
634 PR tree-optimization/40496
635 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
636 the PHI result with a compatible type.
638 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
642 * c.opt (Wunused-result): New.
643 * doc/invoke.texi: Document it.
644 * c-common.c (c_warn_unused_result): Use it.
646 2009-07-09 DJ Delorie <dj@redhat.com>
648 * targhooks.c (default_target_can_inline_p): Rename from
649 default_target_option_can_inline_p.
650 * targhooks.h (default_target_can_inline_p): Likewise.
651 * target-def.h (TARGET_CAN_INLINE_P): Rename from
652 TARGET_OPTION_CAN_INLINE_P.
653 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
654 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
655 (mep_target_can_inline_p): Rename from
656 mep_target_option_can_inline_p.
659 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
660 registers used to pass vectors.
662 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
664 2009-07-09 Tom Tromey <tromey@redhat.com>
666 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
667 * config/mmix/mmix.c: Include dwarf2.h.
668 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
669 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
670 * config/sh/sh.c: Include dwarf2.h.
671 * config/i386/i386.c: Include dwarf2.h.
672 * Makefile.in (DWARF2_H): Remove 'elf'.
673 * except.c: Include dwarf2.h.
674 * unwind-dw2.c: Include dwarf2.h.
675 * dwarf2out.c: Include dwarf2.h.
676 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
677 * unwind-dw2-fde.c: Include dwarf2.h.
678 * dwarf2asm.c: Include dwarf2.h.
680 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
682 * haifa-sched.c (insn_finishes_cycle_p): New static function.
684 * sched-int.h (struct sched_info: insn_finishes_block_p): New
686 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
687 (region_sched_info): Update.
688 * sched-ebb.c (ebb_sched_info): Update.
689 * modulo-sched.c (sms_sched_info): Update.
690 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
692 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
694 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
696 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
698 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
700 2009-07-09 Jakub Jelinek <jakub@redhat.com>
703 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
704 arg1 with arg01 if arg1 is already INTEGER_CST.
706 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
708 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
709 Transform (and (truncate)) into (truncate (and)).
711 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
713 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
714 creating LHS paradoxical subregs. Fix surrounding returns to
715 use NULL_RTX rather than 0.
717 2009-07-08 DJ Delorie <dj@redhat.com>
719 * config/mep/mep.c: (mep_option_can_inline_p): New.
720 (TARGET_OPTION_CAN_INLINE_P): Define.
722 2009-07-08 Mark Wielaard <mjw@redhat.com>
725 * dwarf2out.c (add_data_member_location_attribute): When we have
726 only a constant offset don't emit a new location description using
727 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
730 2009-07-08 Richard Henderson <rth@redhat.com>
733 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
734 (enum reg_class): Add CLOBBERED_REGS.
735 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
736 * config/i386/i386.c (ix86_conditional_register_usage): Moved
737 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
738 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
739 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
740 force 64-bit sibcalls into R11.
741 * config/i386/constraints.md (U): New constraint.
742 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
743 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
744 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
746 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
748 * basic-block.h (dump_regset, debug_regset): Remove duplicate
750 * c-objc-common.h (c_initialize_diagnostics): Ditto.
751 * ebitmap.h (dump_ebitmap): Ditto.
752 * optabs.h (optab_libfunc): Ditto.
753 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
754 * tree-flow.h (vect_can_force_dr_alignment_p,
755 get_vectype_for_scalar_type): Ditto.
756 (vectorize_loops): Move prototype to ...
757 * tree-vectorizer.h: ... here. Also, adjust comment.
758 (vect_set_verbosity_level): Remove duplicate prototype.
759 * tree-ssa-loop.c: Include tree-vectorizer.h.
760 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
762 2009-07-08 Nick Clifton <nickc@redhat.com>
764 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
767 2009-07-08 DJ Delorie <dj@redhat.com>
769 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
770 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
771 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
773 * config/mep/intrinsics.md: Regenerated.
774 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
775 registers when asm() or calls are detected.
777 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
780 * gimplify.c (gimplify_expr): Propagate no_warning flag when
782 * gimple (gimple_build_call_from_tree): Likewise.
783 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
784 no_warning flag before warning.
786 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
788 * tree.c (set_expr_locus): Remove.
789 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
790 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
792 * gimplify.c (internal_get_tmp_var): Likewise.
793 (gimplify_call_expr): Likewise.
794 (gimplify_one_sizepos): Likewise.
796 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
799 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
800 to variables for debugging purposes.
802 2009-06-23 Mark Loeser <mark@halcy0n.com>
805 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
807 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
809 * pretty-print.c (pp_base_format): Remove %J.
810 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
811 gcc_cxxdiag_char_table): Likewise.
812 (init_dynamic_diag_info): Likewise.
814 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
816 * pretty-print.c (pp_base_format): Remove %H.
817 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
818 gcc_cxxdiag_char_table): Likewise.
819 (init_dynamic_diag_info): Likewise.
820 * config/mep/mep.c (mep_select_section): Likewise.
822 2009-07-07 Duncan Sands <baldrick@free.fr>
824 * final.c (pass_clean_state): Give the pass a name.
825 * passes.c (pass_rest_of_compilation): Likewise.
826 * tree-optimize.c (pass_all_optimizations): Likewise.
828 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
830 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
831 an extra 'decl' for error_at.
833 2009-07-07 Jakub Jelinek <jakub@redhat.com>
836 * tree-tailcall.c (adjust_return_value_with_ops,
837 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
838 if it has complex or vector type.
840 2009-07-07 Olivier Hainque <hainque@adacore.com>
842 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
845 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
847 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
849 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
851 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
852 * c-decl.c: Likewise.
853 * function.c: Likewise.
854 * varasm.c: Likewise.
855 * tree-ssa.c: Likewise.
856 * c-common.c: Likewise.
857 * tree-cfg.c: Likewise.
858 * config/spu/spu.c: Likewise.
859 * config/ia64/ia64.c: Likewise.
860 * config/v850/v850.c: Likewise.
862 2009-07-06 DJ Delorie <dj@redhat.com>
864 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
865 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
866 unspecified accesses to control registers.
867 * config/mep/intrinsics.md: Regenerate.
868 * config/mep/intrinsics.h: Regenerate.
869 * config/mep/mep-intrin.h: Regenerate.
871 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
873 * c-lex.c: Replace %H by an explicit location. Update all calls.
874 * c-common.c: Likewise.
875 * c-decl.c: Likewise.
876 * c-typeck.c: Likewise.
877 * fold-const.c: Likewise.
878 * gimplify.c: Likewise.
880 * tree-cfg.c: Likewise.
881 * tree-ssa-loop-niter.c: Likewise.
882 * tree-vrp.c: Likewise.
883 * value-prof.c: Likewise.
885 2009-07-06 Diego Novillo <dnovillo@google.com>
887 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
888 if it has one. Handle cases where VAR does not have an
889 annotation or cfun is NULL.
891 2009-07-06 Diego Novillo <dnovillo@google.com>
893 * tree.c: Include debug.h.
894 (initialize_tree_contains_struct): New.
895 (init_ttree): Call it.
896 (tree_node_structure_for_code): Factor out of ...
897 (tree_node_structure): ... here.
898 * treestruct.def (TS_PHI_NODE): Remove.
899 (TS_GIMPLE_STATEMENT): Remove.
901 2009-07-06 Diego Novillo <dnovillo@google.com>
903 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
904 (debug_tree_chain): Handle cycles.
906 2009-07-06 Nick Clifton <nickc@redhat.com>
907 DJ Delorie <dj@redhat.com>
909 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
910 __FMOVD_ENABLED__ is defined.
912 (TARGET_FMOVD): Provide a default definition.
913 (MASK_FMOVD): Likewise.
914 (TARGET_CPU_CPP_BUILTINS): Define
915 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
916 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
917 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
918 (split for DF load from memory into register): Also handle
919 MEMs which consist of REG+DISP addressing.
920 (split for DF store from register to memory): Likewise.
921 (movsf_ie): Always use single fp_mode.
922 * config/sh/sh.c (sh_override_options): Do not automatically
923 enable TARGET_MOVD for the SH2A when supporting doubles - leave
924 that to the -mfmovd command line switch.
925 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
926 (fldi_ok): Always allow.
927 * config/sh/sh.opt (mfmovd): Remove this switch.
928 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
930 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
931 Kaz Kojima <kkojima@gcc.gnu.org>
933 PR rtl-optimization/30807
934 * postreload.c (reload_combine): For every new use of REG_SUM,
935 record the use of BASE.
937 2009-07-06 Jan Hubicka <jh@suse.cz>
939 * params.def: Revert my accidental commit at 2009-06-30.
941 2009-07-04 Ian Lance Taylor <iant@google.com>
944 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
946 (mingw_format_attribute_overrides): Likewise.
948 2009-07-04 Jakub Jelinek <jakub@redhat.com>
951 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
952 don't check cfa.reg. Instead of cfa.indirect use
953 fde && fde->drap_reg != INVALID_REGNUM test.
955 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
957 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
959 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
962 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
964 2009-07-03 Richard Guenther <rguenther@suse.de>
966 PR tree-optimization/40640
967 * tree-switch-conversion.c (build_arrays): Perform arithmetic
970 2009-07-03 Jan Hubicka <jh@suse.cz>
972 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
973 for size, reduce amount of inlining.
975 2009-07-03 Richard Guenther <rguenther@suse.de>
978 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
979 if t +- x is known to not overflow and the conversion widens the
981 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
983 2009-07-03 Jan Hubicka <jh@suse.cz>
985 * ipa-pure-const.c (analyze): Update loop optimizer init.
986 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
987 try_remove_empty_loop, remove_empty_loops): Remove.
988 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
989 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
990 to mark regular loops as neccesary.
991 (degenerate_phi_p): New function.
992 (propagate_necessity, remove_dead_phis): Use it.
993 (forward_edge_to_pdom): Likewise.
994 (eliminate_unnecessary_stmts): Take care to remove uses of results of
995 virtual PHI nodes that became unreachable.
996 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
997 * tree-flow.h (remove_empty_loops): Remove.
998 * passes.c (init_optimization_passes): Remove.
1000 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
1002 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
1003 can_create_pseudo_p.
1004 (*fix_trunc<mode>_i387_1): Ditto.
1005 (*floathi<mode>2_1): Ditto.
1006 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
1007 (*fistdi2_1): Ditto.
1008 (*fist<mode>2_1): Ditto.
1009 (frndintxf2_floor): Ditto.
1010 (*fist<mode>2_floor_1): Ditto.
1011 (frndintxf2_ceil): Ditto.
1012 (*fist<mode>2_ceil_1): Ditto.
1013 (frndintxf2_trunc): Ditto.
1014 (frndintxf2_mask_pm): Ditto.
1015 (fxam<mode>2_i387_with_temp): Ditto.
1016 * config/i386/sse.md (mulv16qi3): Ditto.
1017 (*sse2_mulv4si3): Ditto.
1019 (sse4_2_pcmpestr): Ditto.
1020 (sse4_2_pcmpistr): Ditto.
1022 2009-07-03 Jan Hubicka <jh@suse.cz>
1024 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
1025 (mark_stmt_necessary): Set it.
1026 (mark_operand_necessary): Set it.
1027 (mark_control_dependent_edges_necessary): Set it.
1028 (mark_virtual_phi_result_for_renaming): New function.
1029 (get_live_post_dom): New function.
1030 (forward_edge_to_pdom): New function.
1031 (remove_dead_stmt): Fix handling of control dependences.
1032 (tree_dce_init): Init new bitmap.
1033 (tree_dce_done): Free it.
1035 2009-07-02 Richard Guenther <rguenther@suse.de>
1038 * tree-ssa-structalias.c (new_var_info): Initialize
1041 2009-07-02 Jan Hubicka <jh@suse.cz>
1043 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
1046 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
1048 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
1049 instead of recomputing it. Adjust calls.
1050 (emit_store_flag): Adjust recursive calls.
1052 2009-07-02 Richard Guenther <rguenther@suse.de>
1054 * tree-ssa-live.c (remove_unused_locals): Do not remove
1056 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
1057 of DECL_EXTERNAL for HEAP variables.
1058 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
1059 HEAP variables. Do not adjust RESTRICT vars.
1060 (find_what_var_points_to): Nobody cares if something
1063 2009-07-02 Ben Elliston <bje@au.ibm.com>
1065 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
1066 pc_low and pc_high declarations to the top of the function.
1068 2009-07-01 DJ Delorie <dj@redhat.com>
1070 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
1072 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
1073 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
1074 unspecified accesses to control registers.
1075 * config/mep/intrinsics.md: Regenerate.
1076 * config/mep/intrinsics.h: Regenerate.
1077 * config/mep/mep-intrin.h: Regenerate.
1079 2009-07-01 Anthony Green <green@moxielogic.com>
1081 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
1082 instruction when possible.
1083 (moxie_expand_prologue): Ditto. Also, save an instruction and
1084 some complexity by popping off of $r12 instead of $sp.
1085 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
1088 2009-07-01 Richard Henderson <rth@redhat.com>
1091 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
1092 contained no insns, reposition note before last insn.
1094 2009-07-01 Richard Henderson <rth@redhat.com>
1097 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
1098 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
1100 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1103 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
1104 darwin9 for printing reg addresses with %y.
1106 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
1108 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
1109 truncation from operands in binary operations.
1111 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
1114 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
1115 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
1116 subreg of op0 to the original op0.
1118 * expmed.c (store_bit_field_1): Use a temporary as the destination
1119 instead of a paradoxical subreg when we need to truncate the result.
1121 2009-07-01 DJ Delorie <dj@redhat.com>
1123 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
1124 names to VLIW variants.
1125 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
1126 * config/mep/intrinsics.md: Regenerate.
1127 * config/mep/intrinsics.h: Regenerate.
1128 * config/mep/mep-intrin.h: Regenerate.
1130 2009-07-01 Jakub Jelinek <jakub@redhat.com>
1133 * jump.c (returnjump_p): Revert last patch.
1134 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
1136 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1139 * pa.md (casesi32p): Use jump table label to determine the offset
1141 (casesi64p): Likewise.
1143 * pa.c (forward_branch_p): Return bool type. Use instruction
1144 addresses when available. Assert that INSN has a jump label.
1145 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
1148 2009-07-01 Richard Guenther <rguenther@suse.de>
1150 PR tree-optimization/19831
1151 * tree-ssa-dce.c (propagate_necessity): Calls to functions
1152 that only act as barriers do not make any previous stores necessary.
1153 * tree-ssa-structalias.c (handle_lhs_call): Delay making
1154 HEAP variables global, do not add a constraint from nonlocal.
1155 (find_func_aliases): Handle escapes through return statements.
1156 (compute_points_to_sets): Make escaped HEAP variables global.
1158 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
1161 * expmed.c (emit_store_flag): Perform a conversion if necessary,
1162 after reducing a DImode cstore to SImode.
1164 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
1166 * expr.c (expand_expr_real_1): Reinstate fallthrough to
1167 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
1169 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
1171 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
1172 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
1174 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
1175 and umod_optab if TARGET_BSD_DIVMOD.
1176 * config/vax/lib1funcs.asm: New file.
1177 * config/vax/t-linux: New file.
1178 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
1180 2009-06-30 Jakub Jelinek <jakub@redhat.com>
1183 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
1184 to type arguments that have void type.
1187 * dwarf2out.c (gen_formal_parameter_die): Call
1188 equate_decl_number_to_die if node is different from origin.
1190 2009-06-30 Anthony Green <green@moxielogic.com>
1192 Clean up moxie port for --enable-build-with-cxx.
1193 * config/moxie/moxie.c (moxie_function_value): First two
1194 parameters are const_tree, not tree.
1195 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
1196 (REG_CLASS_NAMES): Ditto.
1197 (REGNO_REG_CLASS): Ditto.
1198 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
1199 (moxie_function_value): Fix constyness of arguments.
1201 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
1203 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
1204 finalize_size_functions before further processing.
1205 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
1206 (variable_size): Call self_referential_size on size expressions
1207 that contain a PLACEHOLDER_EXPR.
1208 (size_functions): New static variable.
1209 (copy_self_referential_tree_r): New static function.
1210 (self_referential_size): Likewise.
1211 (finalize_size_functions): New global function.
1212 * tree.c: Include tree-inline.h.
1213 (push_without_duplicates): New static function.
1214 (find_placeholder_in_expr): New global function.
1215 (substitute_in_expr) <tcc_declaration>: Return the replacement object
1217 <tcc_expression>: Likewise.
1218 <tcc_vl_exp>: If the replacement object is a constant, try to inline
1219 the call in the expression.
1220 * tree.h (finalize_size_functions): Declare.
1221 (find_placeholder_in_expr): Likewise.
1222 (FIND_PLACEHOLDER_IN_EXPR): New macro.
1223 (substitute_placeholder_in_expr): Update comment.
1224 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
1226 (copy_tree_body_r): Likewise.
1227 (copy_tree_body): New static function.
1228 (maybe_inline_call_in_expr): New global function.
1229 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
1230 (maybe_inline_call_in_expr): Declare.
1231 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
1232 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
1235 2009-06-30 Richard Guenther <rguenther@suse.de>
1237 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
1239 (propagate_necessity): Do not mark reaching defs of stores
1242 2009-06-30 Jan Hubicka <jh@suse.cz>
1244 * cfgloopanal.c (check_irred): Move into ...
1245 (mark_irreducible_loops): ... here; return true if ireducible
1247 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
1248 (analyze_function): Try to prove loop finiteness.
1249 * cfgloop.h (mark_irreducible_loops): Update prototype.
1250 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
1252 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
1254 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
1256 2009-06-30 Ira Rosen <irar@il.ibm.com>
1258 PR tree-optimization/40542
1259 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
1262 2009-06-30 Martin Jambor <mjambor@suse.cz>
1264 PR tree-optimization/40582
1265 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
1266 than useless_type_conversion_p.
1267 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
1270 2009-06-30 Martin Jambor <mjambor@suse.cz>
1273 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
1275 2009-06-30 Richard Guenther <rguenther@suse.de>
1277 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
1278 use ao_ref references.
1279 (walk_aliased_vdefs): Likewise.
1280 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
1281 * tree-ssa-dce.c (struct ref_data): Remove.
1282 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
1283 (mark_aliased_reaching_defs_necessary): Adjust.
1284 (mark_all_reaching_defs_necessary_1): Likewise.
1286 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
1289 * expmed.c (emit_cstore): New name of emit_store_flag_1.
1290 (emit_store_flag_1): Extract from emit_store_flag, adjust
1291 calls to (what now is) emit_cstore.
1292 (emit_store_flag): Call emit_store_flag_1 and also use it
1293 for what used to be recursive calls.
1295 2009-06-30 Wei Guozhi <carrot@google.com>
1298 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
1299 if the target bb post dominates from bb.
1300 * config/i386/i386.c (memory_address_length): Check existence of base
1301 register before using it.
1303 2009-06-30 Nick Clifton <nickc@redhat.com>
1304 DJ Delorie <dj@redhat.com>
1306 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
1307 __FMOVD_ENABLED__ is defined.
1309 (TARGET_FMOVD): Provide a default definition.
1310 (MASK_FMOVD): Likewise.
1311 (TARGET_CPU_CPP_BUILTINS): Define
1312 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
1313 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
1314 two fmov instructions depending upon whether TARGET_FMOVD is
1316 (split for DF load from memory into register): Also handle
1317 MEMs which consist of REG+DISP addressing.
1318 (split for DF store from register to memory): Likewise.
1319 * config/sh/sh.opt (mfmovd): Remove this switch.
1320 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
1321 * config/sh/sh.c (sh_override_options): Do not automatically
1322 enable TARGET_MOVD for the SH2A when supporting doubles - leave
1323 that to the -mfmovd command line switch.
1325 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
1327 (fldi_ok): Always allow.
1328 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
1330 2009-06-29 DJ Delorie <dj@redhat.com>
1332 * doc/install.texi (mep-x-elf): Correct chip's full name.
1334 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
1336 * doc/extend.texi: Fix typo.
1338 2009-06-29 Tom Tromey <tromey@redhat.com>
1341 * Makefile.in (DWARF2_H): New variable.
1343 (dwarf2out.o): Likewise.
1344 (dwarf2asm.o): Likewise.
1345 * config/i386/t-i386: Use DWARF2_H.
1346 * except.c: Include elf/dwarf2.h.
1347 * unwind-dw2.c: Include elf/dwarf2.h.
1348 * dwarf2out.c: Include elf/dwarf2.h.
1349 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
1350 <dtprel>: New field.
1351 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
1352 (size_of_loc_descr): Likewise.
1353 (output_loc_operands_raw): Likewise.
1354 (output_loc_operands): Handle new dtprel field.
1355 (loc_checksum): Update.
1356 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
1357 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
1358 * unwind-dw2-fde.c: Include elf/dwarf2.h.
1359 * dwarf2asm.c: Include elf/dwarf2.h.
1360 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
1361 * config/mmix/mmix.c: Include elf/dwarf2.h.
1362 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
1363 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
1364 * config/sh/sh.c: Include elf/dwarf2.h.
1365 * config/i386/i386.c: Include elf/dwarf2.h.
1367 2009-06-29 DJ Delorie <dj@redhat.com>
1369 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
1371 * doc/extend.texi: Add MeP attributes and pragmas.
1372 * doc/invoke.text: Add MeP Options.
1373 * doc/contrib.texi: Add MeP contribution.
1374 * doc/md.texi: Add MeP constraints.
1375 * doc/install.texi: Add MeP target.
1377 2009-06-30 Anatoly Sokolov <aesok@post.ru>
1379 * target.h (struct gcc_target): Add frame_pointer_required field.
1380 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
1381 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
1382 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
1384 * reload1.c (update_eliminables): (Ditto.).
1385 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
1386 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
1387 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
1389 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
1391 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
1392 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
1393 (arm_frame_pointer_required): New function.
1395 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
1396 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1397 (avr_frame_pointer_required_p): Declare as static.
1398 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
1400 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
1401 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
1402 (bfin_frame_pointer_required): Make as static, change return type
1404 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
1406 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
1407 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1408 (cris_frame_pointer_required): New function.
1410 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
1412 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
1413 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1414 (fr30_frame_pointer_required): New function.
1416 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
1417 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
1418 (frv_frame_pointer_required): Make as static, change return type
1420 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
1422 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
1423 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1424 (ix86_frame_pointer_required): Make as static, change return type to
1426 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
1428 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
1429 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1431 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
1433 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
1435 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
1437 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
1438 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1439 (mips_frame_pointer_required): Make as static.
1440 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
1442 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
1443 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1444 (mmix_frame_pointer_required): Mew function.
1446 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
1447 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1449 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
1451 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
1453 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
1455 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
1456 (CAN_ELIMINATE): Redefine.
1457 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
1458 (sparc_frame_pointer_required): New function.
1459 (sparc_can_eliminate): New function.
1460 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
1462 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
1463 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
1465 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
1466 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
1467 (xtensa_frame_pointer_required): Make as static, change return type
1469 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
1472 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
1474 * doc/plugins.texi: Document PLUGIN_START_UNIT.
1475 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
1476 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
1477 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
1478 (register_callback): Handle PLUGIN_START_UNIT.
1479 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
1481 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
1483 * tree.c (process_call_operands): Propagate TREE_READONLY from the
1485 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
1486 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
1488 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
1490 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
1493 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
1495 * doc/extend.texi (Additional Floating Types): __float128 is also
1496 supported on i386 targets.
1498 2009-06-29 Richard Guenther <rguenther@suse.de>
1501 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
1503 (pt_solutions_same_restrict_base): Declare.
1504 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
1506 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
1507 (make_constraint_from, make_copy_constraint): Move earlier.
1508 (make_constraint_from_heapvar): New function.
1509 (make_constraint_from_restrict): Likewise.
1510 (handle_lhs_call): Use it.
1511 (find_func_aliases): Use it to track conversions to restrict
1513 (struct fieldoff): Add only_restrict_pointers flag.
1514 (push_fields_onto_fieldstack): Initialize it.
1515 (create_variable_info_for): Track global restrict qualified pointers.
1516 (intra_create_variable_infos): Use make_constraint_from_heapvar.
1517 Track restrict qualified pointer arguments.
1518 (set_uids_in_ptset): Use varinfo is_global_var flag.
1519 (find_what_var_points_to): Set the vars_contains_restrict flag.
1520 Always create the points-to solution for sets including restrict tags.
1521 (pt_solutions_same_restrict_base): New function.
1522 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
1523 qualified pointers use pt_solutions_same_restrict_base as
1524 additional source for disambiguation.
1526 2009-06-29 Richard Guenther <rguenther@suse.de>
1529 * alias.c (find_base_decl): Remove.
1530 (get_deref_alias_set_1): Remove restrict handling.
1531 * c-common.c (c_apply_type_quals_to_decl): Do not set
1532 DECL_POINTER_ALIAS_SET.
1533 * gimplify.c (find_single_pointer_decl_1): Remove.
1534 (find_single_pointer_decl): Likewise.
1535 (internal_get_tmp_var): Remove restrict handling.
1536 (gimple_regimplify_operands): Likewise.
1537 * omp-low.c (expand_omp_atomic_pipeline): Do not set
1538 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
1539 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
1540 * tree.c (restrict_base_for_decl): Remove.
1541 (init_ttree): Do not allocate it.
1542 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
1543 LABEL_DECL_UID for label decls.
1544 (copy_node_stat): Do not copy restrict information.
1545 (decl_restrict_base_lookup): Remove.
1546 (decl_restrict_base_insert): Likewise.
1547 (print_restrict_base_statistics): Likewise.
1548 (dump_tree_statistics): Do not call print_restrict_base_statistics.
1549 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
1550 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
1551 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
1552 (LABEL_DECL_UID): Adjust.
1553 (DECL_BASED_ON_RESTRICT_P): Remove.
1554 (DECL_GET_RESTRICT_BASE): Likewise.
1555 (SET_DECL_RESTRICT_BASE): Likewise.
1556 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
1558 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
1559 instead of DECL_POINTER_ALIAS_SET.
1560 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
1561 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
1562 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
1564 2009-06-29 Richard Guenther <rguenther@suse.de>
1566 PR tree-optimization/40579
1567 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
1568 the IL to simplify has constants that overflowed.
1570 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
1572 PR tree-optimization/40550
1573 * tree-vect-generic.c (expand_vector_operations_1): Compute in
1574 vector_compute_type only when the size of vector_compute_type is
1575 less than the size of type.
1577 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
1579 * fold-const.c (contains_label_1): Fix comments.
1580 (contains_label_p): Do not walk trees multiple time.
1582 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
1584 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
1585 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
1586 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
1587 ix86_fp_comparison_operator.
1588 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
1589 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
1590 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
1591 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
1592 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
1593 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
1594 (related splits): Change predicate to ix86_fp_comparison_operator.
1595 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
1596 instead of ix86_fp_comparison_codes.
1597 (ix86_trivial_fp_comparison_operator,
1598 ix86_fp_comparison_operator): New.
1599 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
1600 (ix86_expand_compare): Eliminate last two parameters.
1601 (ix86_fp_jump_nontrivial_p): Kill.
1602 * config/i386/i386.c (put_condition_code): Eliminate call to
1603 ix86_fp_comparison_codes and subsequent assertion.
1604 (ix86_fp_comparison_codes): Eliminate.
1605 (ix86_fp_swap_condition): New.
1606 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
1607 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
1608 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
1609 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
1610 and ix86_fp_swap_condition.
1611 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
1612 Use ix86_fp_comparison_strategy.
1613 (ix86_expand_compare): Likewise. Eliminate last two arguments.
1614 (ix86_fp_jump_nontrivial_p): Eliminate.
1615 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
1616 call to ix86_expand_compare.
1617 (ix86_split_fp_branch, ix86_expand_setcc,
1618 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
1619 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
1621 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
1623 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
1624 related to jump_clobbers.
1625 * config/arm/arm.md (conds): Remove jump_clob case.
1626 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
1627 splits): Change comparison_operator to arm_comparison_operator.
1628 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
1631 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
1633 * dojump.c (do_compare_rtx_and_jump): Try swapping the
1634 condition for floating point modes.
1635 * expmed.c (emit_store_flag_1): Move here a bigger part
1637 (emit_store_flag): Try swapping the condition for floating point
1639 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
1641 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
1643 * expr.c (expand_expr_real_1): Just use do_store_flag.
1644 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
1645 emit_store_flag_force.
1646 * expmed.c (emit_store_flag_force): Copy here trick
1647 previously in expand_expr_real_1. Try reversing the comparison.
1648 (emit_store_flag_1): Work if target is NULL.
1649 (emit_store_flag): Work if target is NULL, using the result mode
1650 from the comparison. Use split_comparison, restructure final part
1651 to simplify conditionals.
1653 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
1655 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
1656 * dojump.c (do_jump): Change handling of floating-point
1657 ops to use just do_compare_and_jump.
1658 (split_comparison): New.
1659 (do_compare_rtx_and_jump): Add here logic coming previously
1660 in do_jump, using split_comparison.
1662 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
1665 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
1667 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1669 * tree-ssa-alias.c: Fix unintentional commit.
1671 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1673 * passes.c (execute_one_pass): Fix unintentional commit.
1675 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1677 * df-problems.c (df_set_seen, df_unset_seen): Delete.
1678 (df_rd_local_compute, df_md_local_compute): Inline them.
1680 (df_md_scratch): New.
1681 (df_md_alloc, df_md_free): Allocate/free it.
1682 (df_md_local_compute): Only include live registers in init.
1683 (df_md_transfer_function): Prune the in-set computed by
1684 the confluence function, and the gen-set too.
1686 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1688 PR rtl-optimization/26854
1689 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
1690 * df-problems.c (df_rd_add_problem): Fix comment.
1691 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
1692 df_md_simulate_artificial_defs_at_top,
1693 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
1694 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
1695 df_md_transfer_function, df_md_init, df_md_confluence_0,
1696 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
1697 problem_MD, df_md_add_problem): New.
1698 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
1699 df_md_get_bb_info): New.
1700 (DF_LAST_PROBLEM_PLUS1): Adjust.
1702 * Makefile.in (fwprop.o): Include domwalk.h.
1703 * fwprop.c: Include domwalk.h.
1704 (reg_defs, reg_defs_stack): New.
1705 (bitmap_only_bit_between): Remove.
1706 (process_defs): New.
1707 (process_uses): Use reg_defs and local_md instead of
1708 bitmap_only_bit_between and local_rd.
1709 (single_def_use_enter_block): New, from build_single_def_use_links.
1710 (single_def_use_leave_block): New.
1711 (build_single_def_use_links): Remove code moved to
1712 single_def_use_enter_block, invoke domwalk.
1713 (use_killed_between): Adjust comment.
1715 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1717 * bitmap.h (bitmap_ior_and_into): New.
1718 * bitmap.c (bitmap_ior_and_into): New.
1720 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
1722 * domwalk.h (struct dom_walk_data): Remove all callbacks except
1723 before_dom_children_before_stmts and after_dom_children_after_stmts.
1724 Rename the two remaining callbacks to just before_dom_children and
1725 after_dom_children. Remove other GIMPLE statement walking bits.
1726 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
1727 * graphite.c: Do not include domwalk.h.
1728 * tree-into-ssa.c (interesting_blocks): New global.
1729 (struct mark_def_sites_global_data): Remove it and names_to_rename.
1730 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
1731 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
1732 now that they're not domwalk callbacks.
1733 (rewrite_initialize_block): Rename to...
1734 (rewrite_enter_block): ... this, place after called functions. Test
1735 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
1736 (rewrite_finalize_block): Rename to...
1737 (rewrite_leave_block): ... this, place after called functions.
1738 (rewrite_update_init_block): Rename to...
1739 (rewrite_update_enter_block): ... this, place after called functions.
1740 Test interesting_blocks, call rewrite_update_stmt and
1741 rewrite_update_phi_arguments.
1742 (rewrite_update_fini_block): Rename to...
1743 (rewrite_leave_block): ... this, place after called functions.
1744 (rewrite_blocks): Remove last argument, simplify initialization of
1746 (mark_def_sites_initialize_block): Rename to...
1747 (mark_def_sites_block): ... this, call mark_def_sites.
1748 (mark_def_sites_blocks): Remove argument, simplify initialization of
1750 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
1751 (update_ssa): Likewise.
1752 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
1754 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
1755 (dom_opt_initialize_block): Rename to...
1756 (dom_opt_enter_block): ... this, place after called functions. Walk
1757 statements here, inline propagate_to_outgoing_edges.
1758 (dom_opt_finalize_block): Rename to...
1759 (dom_opt_leave_block): ... this, place after called functions.
1760 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
1762 (dse_enter_block, dse_record_phi): New.
1763 (dse_record_phis): Delete.
1764 (dse_finalize_block): Rename to...
1765 (dse_leave_block): ... this.
1766 (tree_ssa_dse): Simplify initialization of walk_data.
1767 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
1768 Adjust initialization of walk_data.
1769 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
1770 * tree-ssa-loop-phiopt.c (get_non_trapping):
1771 Adjust initialization of walk_data.
1772 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
1773 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
1774 it's not a domwalk callback.
1775 (uncprop_initialize_block): Rename to...
1776 (dse_enter_block): ... this, call uncprop_into_successor_phis.
1777 (dse_finalize_block): Rename to...
1778 (dse_leave_block): ... this.
1779 (tree_ssa_uncprop): Simplify initialization of walk_data.
1780 * Makefile.in: Adjust dependencies.
1782 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
1784 * arm.md (casesi): Fix test for Thumb1.
1785 (thumb1_casesi_internal_pic): Likewise.
1786 (thumb1_casesi_dispatch): Likewise.
1788 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
1790 * config/arm/arm-cores.def: Added core cortex-m0.
1791 * config/arm/arm-tune.md: Regenerated.
1792 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
1794 2009-06-26 DJ Delorie <dj@redhat.com>
1796 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
1798 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
1799 the scheduler doesn't tag jump insns.
1801 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
1803 * c-decl.c (merge_decls): Re-indent.
1805 2009-06-26 Janis Johnson <janis187@us.ibm.com>
1808 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
1809 Special-case decimal float constants.
1811 2009-06-26 Richard Henderson <rth@redhat.com>
1813 * function.h (struct function): Add cannot_be_copied_reason,
1814 and cannot_be_copied_set.
1815 * tree-inline.c (has_label_address_in_static_1): Rename from
1816 inline_forbidden_p_2; don't set inline_forbidden_reason here.
1817 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
1818 don't set inline_forbidden_reason.
1819 (copy_forbidden): New function, split out of inline_forbidden_p.
1820 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
1821 (inline_forbidden_p): Use copy_forbidden.
1822 (tree_versionable_function_p): Likewise.
1823 (inlinable_function_p): Merge into tree_inlinable_function_p.
1824 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
1825 * ipa-cp.c (ipcp_versionable_function_p): New function.
1826 (ipcp_cloning_candidate_p): Use it.
1827 (ipcp_node_modifiable_p): Likewise.
1829 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
1831 * builtins.c (expand_builtin_alloca): Handle builtin alloca
1832 that is marked not to be inlined. Remove flag_mudflap use.
1833 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
1834 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
1836 2009-06-26 Steve Ellcey <sje@cup.hp.com>
1839 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
1840 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
1842 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
1844 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
1846 (__mingwthr_remove_key_dtor): Likewise.
1848 2009-06-26 Richard Guenther <rguenther@suse.de>
1850 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
1852 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
1855 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
1856 try the non-cond_exec path also.
1858 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1861 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
1862 (output_cbranch): Use new functions.
1863 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
1866 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
1867 Pat Haugen <pthaugen@us.ibm.com>
1868 Revital Eres <ERES@il.ibm.com>
1870 * config/rs6000/rs6000.c (print_operand): Correct lossage message
1871 for %c error. Add %x support to print VSX registers as a unified
1872 register set, instead of separate float and altivec registers.
1873 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
1874 %y case, and add support for VSX pre-modify addresses.
1875 (output_toc): Add assert for CONST containing an integer constant
1877 (rs6000_adjust_cost): Add POWER7 support.
1878 (insn_must_be_first_in_group): Ditto.
1879 (insn_must_be_last_in_group): Ditto.
1880 (rs6000_emit_popcount): Ditto.
1881 (rs6000_vector_mode_supported_p): Ditto.
1883 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
1884 Change some of the functions called by macros to being called
1885 through a pointer, so debug functions can be inserted if
1886 -mdebug=addr or -mdebug=cost.
1887 (rs6000_preferred_reload_class_ptr): Ditto.
1888 (rs6000_secondary_reload_class_ptr): Ditto.
1889 (rs6000_secondary_memory_needed_ptr): Ditto.
1890 (rs6000_cannot_change_mode_class_ptr): Ditto.
1891 (rs6000_secondary_reload_inner): Ditto.
1892 (rs6000_legitimize_reload_address): Ditto.
1893 (rs6000_legitimize_reload_address_ptr): Ditto.
1894 (rs6000_mode_dependent_address): Ditto.
1895 (rs6000_mode_dependent_address_ptr): Ditto.
1897 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
1898 function to return true if the mode allows reg + integer
1900 (virtual_stack_registers_memory_p): New function to return true if
1901 the address refers to a virtual stack register.
1902 (rs6000_legitimate_offset_address_p): Move code to say whether a
1903 mode supports reg+int addressing to reg_offset_addressing_ok_p and
1905 (rs6000_legitimate_address_p): Add checks for modes that only can
1906 do reg+reg addressing. Start adding VSX support.
1907 (rs6000_legitimize_reload_address): Ditto.
1908 (rs6000_legitimize_address): Ditto.
1909 (rs6000_debug_legitimate_address_p): New debug functions for
1910 -mdebug=addr and -mdebug=cost.
1911 (rs6000_debug_rtx_costs): Ditto.
1912 (rs6000_debug_address_costs): Ditto.
1913 (rs6000_debug_adjust_cost): Ditto.
1914 (rs6000_debug_legitimize_address): Ditto.
1915 (rs6000_legitimize_reload_address_ptr): Point to call normal
1916 function or debug function. Make functions called via pointer
1918 (rs6000_mode_dependent_address_ptr): Ditto.
1919 (rs6000_secondary_reload_class_ptr): Ditto.
1920 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
1921 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
1922 into a friendlier error.
1923 (rs6000_init_builtins): Add initial VSX support.
1924 (rs6000_adjust_cost): Fix some spacing issues.
1926 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
1927 (REG_CLASS_NAMES): Ditto.
1928 (REG_CLASS_CONTENTS): Ditto.
1929 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
1930 pointer, to add -mdebug=addr support.
1931 (CANNOT_CHANGE_MODE_CLASS): Ditto.
1932 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
1933 -mdebug=addr support.
1934 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
1935 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
1936 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
1938 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
1940 (bswapsi*): Set attribute types for load/store. Add combiner
1941 patterns to eliminate zero extend on 64-bit.
1942 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
1943 stdbrx if the hardware supports those instructions.
1945 2009-06-25 Ian Lance Taylor <iant@google.com>
1947 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
1948 (Link Options): Document -static-libstdc++.
1950 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
1953 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
1954 DATA_ALIGNMENT instead.
1956 2009-06-25 Richard Guenther <rguenther@suse.de>
1958 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
1959 indirect references against the callused/escaped solutions.
1960 (call_may_clobber_ref_p_1): Likewise.
1962 2009-06-25 Martin Jambor <mjambor@suse.cz>
1964 PR tree-optimization/40493
1965 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
1966 (enum unscalarized_data_handling): New type.
1967 (handle_unscalarized_data_in_subtree): Return what has been done.
1968 (load_assign_lhs_subreplacements): Handle left flushes differently.
1969 (sra_modify_assign): Use unscalarized_data_handling, simplified
1970 condition determining whether to remove the statement.
1972 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
1974 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
1975 excerpt - @ should be doubled for texinfo.
1977 2009-06-24 Ian Lance Taylor <iant@google.com>
1979 * config/arc/arc.c: Include "df.h".
1980 (arc_attribute_table): Make static. Move higher in file.
1981 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
1982 (output_shift): Initialize n later to avoid warning.
1983 * config/arm/arm.c (arm_attribute_table): Make static. Move
1985 * config/avr/avr.c (avr_attribute_table): Make static. Move
1987 (reg_class_tab): Change array type from int to enum reg_class.
1988 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
1990 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
1991 (lshrhi3_out): Likewise.
1992 (class_likely_spilled_p): Change return type to bool.
1993 (avr_rtx_costs): Use local code variable with enum type.
1994 * config/avr/avr.md (movmemhi): Use add_reg_note.
1995 (andhi3, andsi3): Don't use AS2 with "and".
1996 (iorhi3, iorsi3): Don't use AS2 with "or".
1997 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
1998 * config/crx/crx.c: Include "df.h".
1999 (crx_attribute_table): Make static.
2000 * config/m32r/m32r.c: Include "df.h".
2001 (m32r_attribute_table): Make static. Move higher in file.
2002 (pop): Use add_reg_note.
2003 (block_move_call): Change 0 to LCT_NORMAL in function call.
2004 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
2005 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
2006 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
2007 declare, not just when TREE_CODE is defined.
2008 * config/m68hc11/m68hc11.c: Include "expr.h".
2009 (m68hc11_attribute_table): Make static. Move higher in file.
2010 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
2012 (m68hc11_register_indirect_p): Likewise.
2013 (m68hc11_function_arg_padding): Change return type to enum
2015 (emit_move_after_reload): Use add_reg_note.
2016 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
2017 (m68hc11_split_logical): Likewise.
2018 (m68hc11_rtx_costs): Add local code_and outer_code variables with
2020 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
2021 to VOIDmode in function call.
2022 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
2024 (m68hc11_split_logical): Update declaration.
2025 (m68hc11_function_arg_padding): Update declaration.
2026 * config/mcore/mcore.c (regno_reg_class): Change form array of int
2027 to array of enum reg_class.
2028 (mcore_attribute_table): Make static. Move higher in file.
2029 (mcore_rtx_costs): Add cast to enum type.
2030 * config/mcore/mcore.h (regno_reg_class): Update declaration.
2031 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
2032 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
2034 * config/sh/predicates.md (trapping_target_operand): Rename and to
2036 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
2038 * config/spu/spu.c (spu_attribute_table): Make static. Move
2040 * config/v850/v850.c (v850_attribute_table): Make static. Move
2042 (v850_rtx_costs): Use local code with enum type.
2043 (expand_epilogue): Add cast.
2044 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
2046 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
2049 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
2050 -m2a-single-only and -m2a-nofpu.
2051 * config/sh/sh.opt: Document m2a generates FPU code.
2053 2009-06-24 Anatoly Sokolov <aesok@post.ru>
2055 * defaults.h (CAN_ELIMINATE): Provide default.
2056 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
2057 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
2058 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
2059 * config/spu/spu.h (CAN_ELIMINATE): Delete.
2060 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
2061 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
2062 * config/cris/cris.h (CAN_ELIMINATE): Delete.
2063 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
2064 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
2065 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
2067 2009-06-24 DJ Delorie <dj@redhat.com>
2069 * mep-ext-cop.cpu: Fix copyright notice.
2070 * mep-default: Fix copyright notice.
2071 * mep-core: Fix copyright notice.
2072 * mep: Fix copyright notice.
2073 * mep-ivc2: Fix copyright notice.
2074 * mep-c5: Fix copyright notice.
2076 2009-06-24 Denis Chertykov <chertykov@gmail.com>
2078 * doc/contrib.texi (Contributors):
2080 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
2083 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
2084 src and dst operands if necessary.
2086 2009-06-23 DJ Delorie <dj@redhat.com>
2089 * config.gcc: Add mep support.
2090 * recog.c: Resurrect validate_replace_rtx_subexp().
2091 * recog.h: Likewise.
2092 * config/mep/: Add new port:
2093 * config/mep/constraints.md: New file.
2094 * config/mep/default.h: New file.
2095 * config/mep/intrinsics.h: New file.
2096 * config/mep/intrinsics.md: New file.
2097 * config/mep/ivc2-template.h: New file.
2098 * config/mep/mep-c5.cpu: New file.
2099 * config/mep/mep-core.cpu: New file.
2100 * config/mep/mep-default.cpu: New file.
2101 * config/mep/mep-ext-cop.cpu: New file.
2102 * config/mep/mep-intrin.h: New file.
2103 * config/mep/mep-ivc2.cpu: New file.
2104 * config/mep/mep-lib1.asm: New file.
2105 * config/mep/mep-lib2.c: New file.
2106 * config/mep/mep-pragma.c: New file.
2107 * config/mep/mep-protos.h: New file.
2108 * config/mep/mep-tramp.c: New file.
2109 * config/mep/mep.c: New file.
2110 * config/mep/mep.cpu: New file.
2111 * config/mep/mep.h: New file.
2112 * config/mep/mep.md: New file.
2113 * config/mep/mep.opt: New file.
2114 * config/mep/predicates.md: New file.
2115 * config/mep/t-mep: New file.
2117 2009-06-23 Ian Lance Taylor <iant@google.com>
2119 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
2120 from loose_warn into c_loose_warn and from strict_warn into
2121 c_strict_warn. Set and substitute warn_cxxflags. Check for
2122 --enable-build-with-cxx. Set and substitute
2123 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
2124 * Makefile.in (CXXFLAGS): New variable.
2125 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
2126 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
2127 the default is the same as $(STRICT_WARN).
2128 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
2129 (CXX): New variable.
2130 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
2131 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
2132 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
2133 (HOST_LIBS): New variable.
2134 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
2135 (ALL_CXXFLAGS): New variable.
2136 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
2137 * doc/install.texi (Configuration): Document
2138 --enable-build-with-cxx, --with-stage1-ldflags,
2139 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
2140 * configure: Rebuild.
2142 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2144 * config/arm/arm.c (arm_override_options): Fix braces and formatting
2145 from previous commit.
2147 2009-06-23 Ian Lance Taylor <iant@google.com>
2149 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
2151 2009-06-23 Ian Lance Taylor <iant@google.com>
2153 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
2154 with ATTRIBUTE_UNUSED.
2156 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2157 Pat Haugen <pthaugen@us.ibm.com>
2158 Revital Eres <eres@il.ibm.com>
2160 * config.in (HAVE_AS_POPCNTD): Add default definition.
2161 (HAVE_AS_LWSYNC): Ditto.
2163 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
2165 (gcc_cv_as_powerpc_cmpb): Ditto.
2166 (gcc_cv_as_powerpc_dfp): Ditto.
2167 (gcc_cv_as_powerpc_vsx): Ditto.
2168 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
2169 supporting the popcntd/lwsync instructions.
2170 (gcc_cv_as_powerpc_lwsync): Ditto.
2171 * configure: Regenerate.
2173 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
2174 -mcpu=native and -mcpu=power7.
2175 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
2177 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
2178 a variable instead of a mask to reduce the number of mask bits.
2179 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2180 (-mbit-word): Ditto.
2181 (-mregnames): Ditto.
2182 * config/rs6000/rs6000.opt (-mupdate): Ditto.
2183 (-mfused-madd): Ditto.
2185 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
2187 (-mvsx): New switch for VSX instructions.
2188 (-misel): Move from a variable to a mask to allow it to be set by
2191 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
2192 function declaration to an array declaration.
2193 (rs6000_hard_regno_nregs): New external array declaration.
2195 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
2196 files included by rs6000.md.
2198 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2199 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
2201 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
2203 (rs6000_debug_reg): New -mdebug= variables.
2204 (rs6000_debug_addr): Ditto.
2205 (rs6000_debug_cost): Ditto.
2206 (rs6000_pmode): New variable to hold Pmode.
2207 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
2208 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
2209 calculated at compiler start.
2210 (rs6000_hard_regno_nregs): Change function to an array which holds
2211 HARD_REGNO_NREGS calculated at compiler start.
2212 (rs6000_explicit_options): Delete isel field.
2213 (rs6000_vector_unit): New array to hold which vector unit
2214 supports arithmetic options for a given type.
2215 (rs6000_vector_mem): New array to hold which vector unit supports
2216 memory reference operations for a given type.
2217 (rs6000_vector_align): New array to given the alignment of each
2219 (power7_cost): New basic costs for power7.
2220 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
2221 (rs6000_hard_regno_nregs_internal): New function, moved from
2222 HARD_REGNO_NREGS, to calculate the number of registers each hard
2223 register takes for each type.
2224 (rs6000_debug_reg_print): New function for -mdebug=reg support.
2225 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
2226 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
2227 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
2228 unit information here so it is calculated once at compiler startup
2230 (rs6000_override_options): Make -misel a target mask. Add more
2231 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
2232 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
2234 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
2235 (rs6000_handle_option): Move -misel from variable to target mask.
2236 (rs6000_builtin_mask_for_load): Add VSX support.
2237 (rs6000_conditional_register_usage): Ditto.
2238 (USE_ALTIVEC_FOR_ARG_P): Ditto.
2239 (function_arg_boundary): Ditto.
2240 (rs6000_expand_builtin): Ditto.
2241 (def_builtin): Make abort message a little friendlier.
2242 (rs6000_emit_int_cmove): Add support for 64-bit isel.
2244 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
2245 assembler support the popcntd instruction instead of a vsx
2246 instruction to enable power7 support.
2247 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
2248 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
2249 option to the assembler if -mcpu=native.
2250 (ASM_CPU_NATIVE_SPEC): Ditto.
2251 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
2253 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
2254 the lwsync instruction.
2255 (enum processor_type): Add PROCESSOR_POWER7.
2256 (rs6000_debug_reg): New -mdebug= options.
2257 (rs6000_debug_addr): Ditto.
2258 (rs6000_debug_cost): Ditto.
2259 (rs6000_isel): Delete.
2260 (enum rs6000_vector): New enum to say what vector unit we have.
2261 (VECTOR_UNIT_*): New macros to say which vector unit has
2262 arithmetic operations for a given type.
2263 (VECTOR_MEM_*): New macros to say which vector unit has memory
2264 operations for a given type.
2265 (TARGET_LDBRX): Whether the machine supports the ldbrx
2267 (TARGET_ISEL): Delete, -misel moved to be a mask.
2268 (TARGET_ISEL64): New macro for 64-bit isel support.
2269 (UNITS_PER_VSX_WORD): New macro.
2270 (POINTER_SIZE): Move to be an external variable, rather than
2271 calculating whether we are generating 32 ot 64-bit code.
2273 (STACK_BOUNDARY): Add VSX support.
2274 (LOCAL_ALIGNMENT): Ditto.
2275 (SLOW_UNALIGNED_ACCESS): Ditto.
2276 (VSX_REGNO_P): New macro for VSX support.
2277 (VFLOAT_REGNO_P): Ditto.
2278 (VINT_REGNO_P): Ditto.
2279 (VLOGICAL_REGNO_P): Ditto.
2280 (VSX_VECTOR_MODE): Ditto.
2281 (VSX_SCALAR_MODE): Ditto.
2283 (VSX_MOVE_MODE): Ditto.
2284 (VSX_REG_CLASS_P): Ditto.
2285 (HARD_REGNO_NREGS): Instead of calling a function, use an array
2287 (UNITS_PER_SIMD_WORD): Add VSX support.
2288 (MODES_TIEABLE_P): Ditto.
2289 (STARTING_FRAME_OFFSET): Ditto.
2290 (STACK_DYNAMIC_OFFSET): Ditto.
2291 (EPILOGUE_USES): Ditto.
2292 (REGNO_REG_CLASS): Move to array lookup.
2293 (CLASS_MAX_NREGS): Ditto.
2294 (rs6000_vector_reg_class): Add declaration.
2295 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
2296 overlap with the floating point and Altivec registers.
2298 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
2300 * config/rs6000/driver-rs6000.c (asm_names): New static array to
2301 give the appropriate asm switches if -mcpu=native.
2302 (host_detect_local_cpu): Add support for "asm".
2303 (host_detect_local_cpu): Follow GNU code guidelines for name.
2305 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
2306 -mbit-word to a variable instead of being a target mask.
2308 * config/rs6000/sync.md (lwsync): If the assembler supports it,
2309 emit the lwsync instruction instead of emitting the instruction as
2310 an integer constant.
2312 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
2313 fixuns_trundfsi2, move expander into rs6000.md.
2315 * config/rs6000/rs6000.md (cpu): Add power7.
2316 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
2317 (logical predicate patterns): Change the single instruction
2318 primitives that set CR0 to be fast_compare instead of compare.
2320 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
2321 (popcntddi2): Ditto.
2322 (popcount<mode>): Ditto.
2323 (floating multiply/add insns): Name the floating point
2325 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
2326 (isel_unsigned_<mode>): Ditto.
2327 (fixuns_trundfsi2): Move expander here from spe.md.
2328 (smindi3): Define if we have -misel on 64-bit systems.
2333 2009-06-23 Anatoly Sokolov <aesok@post.ru>
2335 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
2337 * config/avr/avr.c (avr_current_device): New variable.
2338 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
2339 (avr_arch, mcu_type_s): Move to avr.h.
2340 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
2341 default_data_section_start fields.
2342 (avr_arch): Moved from avr.c.
2343 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
2344 library_name fields.
2345 (avr_current_device, avr_mcu_types, avr_arch_types,
2346 avr_device_to_arch, avr_device_to_data_start,
2347 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
2348 (EXTRA_SPEC_FUNCTIONS): Define.
2349 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
2350 options mapping. Use device_to_arch and device_to_data_start insted.
2351 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
2352 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
2353 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
2354 * config/avr/driver-avr.c: New file.
2355 * config/avr/avr-devices.c: New file.
2357 2009-06-23 Jakub Jelinek <jakub@redhat.com>
2359 * var-tracking.c (unshare_variable): Force initialized to
2360 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
2361 (set_variable_part): Likewise.
2362 (struct variable_union_info): Remove pos_src field.
2363 (vui_vec, vui_allocated): New variables.
2364 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
2365 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
2366 == 1 use a simpler sorting algorithm. Compute pos field right
2367 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
2368 Avoid quadratic comparison if !flag_var_tracking_uninit.
2369 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
2370 unshare_variable unconditionally.
2371 (dataflow_set_different_2): Removed.
2372 (dataflow_set_different): Don't traverse second hash table.
2373 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
2374 unconditionally to var_reg_set or var_mem_set.
2375 (emit_notes_in_bb): Likewise.
2376 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
2378 (emit_note_insn_var_location): Don't set initialized to
2379 VAR_INIT_STATUS_INITIALIZED early.
2380 (vt_finalize): Free vui_vec if needed, clear vui_vec and
2382 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
2384 * tree-object-size.c (addr_object_size): Instead of checking
2385 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
2386 are no FIELD_DECLs following it.
2388 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
2390 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
2391 order to match bswaps with signed source operands.
2393 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2395 * sdbout.c (sdbout_one_type): Fix braces in switch.
2397 2009-06-23 Richard Guenther <rguenther@suse.de>
2399 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
2401 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
2402 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
2403 var_callused, callused_tree, var_storedanything, storedanything_tree,
2404 var_integer, integer_tree): Remove global variables.
2405 (new_var_info): Do not pass new id, append the new var to the
2406 global variable vector.
2407 (do_ds_constraint): Use is_global_var member of the variable-info.
2408 (new_scalar_tmp_constraint_exp): Adjust.
2409 (create_function_info_for): Likewise.
2410 (create_variable_info_for): Likewise.
2411 (find_what_var_points_to): Remove dead code.
2412 (init_base_vars): Simplify.
2413 (compute_points_to_sets): Adjust.
2415 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
2417 * combine.c (try_combine): Dump information about the insns we're
2420 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
2422 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
2423 check when calling force_to_mode on TRUNCATE's operand.
2425 2009-06-22 Ian Lance Taylor <iant@google.com>
2427 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
2429 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
2431 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
2433 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2435 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
2436 override library linkage flags such as -static-libgcc or
2439 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
2441 * config/m68k/m68k-devices.def: Add line for MCF5221x.
2443 2009-06-22 Ian Lance Taylor <iant@google.com>
2445 * config/linux.opt: Put mglibc ahead of muclibc.
2447 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
2448 for duplicate decls.
2450 2009-06-22 Matthias Klose <doko@ubuntu.com>
2452 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
2454 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
2457 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
2458 instead of NULL if a parser error occurs.
2460 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2462 * dwarf2out.c (dwarf2_debug_hooks): Initialize
2463 non-DWARF2_DEBUGGING_INFO version.
2465 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
2467 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
2468 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
2470 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
2471 (LIBGCC2_TF_CEXT): Define.
2474 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2477 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
2479 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2481 * config/arm/arm.c (arm_override_options): Disable
2482 -mcaller-super-interworking and -mcallee-super-interworking.
2483 * doc/invoke.texi (ARM Options): Document this.
2485 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
2487 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
2488 * config/arm/constraints.md (j): New constraint for movw operands.
2489 (N): Remove thumb2 meaning.
2490 * config/arm/arm.md (*arm_movw): Delete.
2491 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
2492 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
2493 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
2495 2009-06-22 Martin Jambor <mjambor@suse.cz>
2497 PR tree-optimization/40492
2498 * tree-sra.c (sra_modify_assign): Pass zero offsets to
2499 build_ref_for_offset.
2501 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
2503 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
2504 JUMP_TABLE_DATA_P predicates where applicable.
2505 * auto-inc-dec.c: Ditto.
2506 * builtins.c: Ditto.
2507 * caller-save.c: Ditto.
2509 * cfgcleanup.c: Ditto.
2510 * cfglayout.c: Ditto.
2513 * combine-stack-adj.c: Ditto.
2519 * dwarf2asm.c: Ditto.
2520 * dwarf2out.c: Ditto.
2521 * emit-rtl.c: Ditto.
2527 * function.c: Ditto.
2530 * genpreds.c: Ditto.
2531 * genrecog.c: Ditto.
2533 * ira-costs.c: Ditto.
2534 * ira-lives.c: Ditto.
2537 * lower-subreg.c: Ditto.
2538 * modulo-sched.c: Ditto.
2540 * postreload.c: Ditto.
2541 * print-rtl.c: Ditto.
2550 * sched-vis.c: Ditto.
2552 * sel-sched-ir.c: Ditto.
2553 * simplify-rtx.c: Ditto.
2554 * targhooks.c: Ditto.
2555 * var-tracking.c: Ditto.
2556 * vmsdbgout.c: Ditto.
2558 2009-06-22 Matthias Klose <doko@ubuntu.com>
2560 * Makefile.in (install-plugin): Always use DESTDIR.
2562 2009-06-22 Olivier Hainque <hainque@adacore.com>
2564 * config/pa/pa.c (output_call): Don't optimize post call jumps
2565 into return address adjustments if the call may throw.
2567 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
2569 * arm.c (thumb1_output_casesi): New function.
2570 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
2571 optimizing for size or PIC.
2572 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
2573 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
2574 (casesi): Handle Thumb-1 when optimizing for size or PIC.
2575 (thumb1_casesi_internal_pic): New expand rule.
2576 (thumb1_casesi_dispatch): New pattern.
2577 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
2579 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
2580 in the text seciton when PIC or optimizing for size.
2581 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2582 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
2583 preservation properties of code.
2584 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
2585 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
2586 (__gnu_thumb1_case_si): New function.
2587 * t-arm (LIB1ASMSRC): Define here.
2588 (LIB1ASMFUNCS): Add some common functions.
2589 * t-arm-elf (LIB1ASMSRC): Delete.
2590 (LIB1ASMFUNCS): Append to existing set.
2591 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2592 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2593 * t-symbian (LIB1ASMFUNCS): Likewise.
2594 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2595 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
2597 2009-06-21 Richard Guenther <rguenther@suse.de>
2599 PR tree-optimization/38729
2600 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
2601 to loops with a single exit if -fno-expensive-optimizations.
2603 2009-06-21 Jakub Jelinek <jakub@redhat.com>
2605 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
2606 (dataflow_set): Change vars type from htab_t to shared_hash.
2607 (shared_hash_pool, empty_shared_hash): New variables.
2608 (vars_clear): Removed.
2609 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
2610 shared_hash_find_slot_unshare, shared_hash_find_slot,
2611 shared_hash_find_slot_noinsert, shared_hash_find): New
2613 (shared_hash_unshare, shared_hash_destroy): New functions.
2614 (unshare_variable): Unshare set->vars if shared, use
2616 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
2617 (get_init_value, find_src_set_src, dump_dataflow_set,
2618 clobber_variable_part, emit_notes_for_differences): Use
2620 (dataflow_set_init): Remove second argument, set vars to
2621 empty_shared_hash instead of creating a new htab.
2622 (dataflow_set_clear): Call shared_hash_destroy and set vars
2623 to empty_shared_hash instead of calling vars_clear.
2624 (dataflow_set_copy): Don't call vars_copy, instead just share
2625 the src htab with dst.
2626 (variable_union): Use shared_hash_*, use initially NO_INSERT
2627 lookup if set->vars is shared. Don't keep slot cleared before
2628 calling unshare_variable. Unshare set->vars if needed.
2629 Even ->refcount == 1 vars must be unshared if set->vars is shared
2630 and var needs to be modified.
2631 (variable_canonicalize): New function.
2632 (dataflow_set_union): If dst->vars is empty, just share src->vars
2633 with dst->vars and traverse with variable_canonicalize to canonicalize
2634 and unshare what is needed.
2635 (dataflow_set_different): If old_set and new_set use the same shared
2636 htab, they aren't different. If number of htab elements is different,
2637 htabs are different. Use shared_hash_*.
2638 (dataflow_set_destroy): Call shared_hash_destroy instead of
2640 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
2641 second argument to dataflow_set_init.
2642 (vt_initialize): Likewise. Initialize shared_hash_pool and
2643 empty_shared_hash, move bb in/out initialization afterwards.
2644 Use variable_htab_free instead of NULL as changed_variables del hook.
2645 (variable_was_changed): Change type of second argument to pointer to
2646 dataflow_set. When inserting var into changed_variables, bump
2647 refcount. Unshare set->vars if set is shared htab and slot needs to
2649 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
2650 lookup if set->vars is shared. Unshare set->vars if needed.
2651 Even ->refcount == 1 vars must be unshared if set->vars is shared
2652 and var needs to be modified. Adjust variable_was_changed caller.
2653 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
2654 vars must be unshared if set->vars is shared and var needs to be
2655 modified. Adjust variable_was_changed caller.
2656 (emit_note_insn_var_location): Don't pool_free var.
2657 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
2659 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
2660 free_alloc_pool on shared_hash_pool.
2662 2009-06-20 Anthony Green <green@moxielogic.com>
2664 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
2665 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
2667 2009-06-20 Richard Guenther <rguenther@suse.de>
2669 * tree-ssa-structalias.c (find_func_aliases): For memset use
2670 a constraint from NULL if we memset to zero.
2671 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
2672 we explicitly handle that do not read from memory.
2673 (call_may_clobber_ref_p_1): Properly handle builtins that may
2676 2009-06-20 Richard Guenther <rguenther@suse.de>
2678 PR tree-optimization/40495
2679 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
2680 (new_scalar_tmp_constraint_exp): New function.
2681 (process_constraint): Do not create temporary decls.
2682 (process_all_all_constraints): Likewise.
2683 (handle_const_call): Likewise.
2684 (create_function_info_for): Do not set decl.
2686 2009-06-19 Ian Lance Taylor <iant@google.com>
2688 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
2689 (rs6000_attribute_table): Make static; move before use.
2691 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2693 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
2694 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
2695 Propagate the TREE_READONLY flag without overwriting it.
2696 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
2697 Propagate the TREE_READONLY flag onto the result.
2698 (process_call_operands): Move around. Use correct constant value.
2700 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2703 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
2704 * config/arm/arm.md: Likewise.
2706 2009-06-19 Ian Lance Taylor <iant@google.com>
2708 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
2709 to GIMPLE_ERROR_MARK.
2711 * c-typeck.c (build_conditional_expr): Add op1_original_type and
2712 op2_original_type parameters. Warn about using different enum types.
2713 * c-parser.c (c_parser_conditional_expression): Pass original
2714 types to build_conditional_expr.
2715 * c-tree.h (build_conditional_expr): Update declaration.
2717 2009-06-19 Ian Lance Taylor <iant@google.com>
2719 * config/i386/i386.c (ix86_function_specific_save): Test that
2720 fields match values, rather than testing the values are in a
2723 2009-06-19 Richard Guenther <rguenther@suse.de>
2725 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2727 (ptr_derefs_may_alias_p): Likewise.
2728 (ptr_deref_may_alias_ref_p_1): New function.
2729 (ptr_deref_may_alias_ref_p): Likewise.
2730 (ref_maybe_used_by_call_p_1): Handle builtins that are not
2731 covered by looking at the ESCAPED solution.
2732 (call_may_clobber_ref_p_1): Likewise.
2733 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
2734 Handle NULL_TREE offset. Do not produce redundant constraints.
2735 (process_all_all_constraints): New helper function.
2736 (do_structure_copy): Use it.
2737 (handle_lhs_call): Likewise.
2738 (find_func_aliases): Handle some builtins with pointer arguments
2739 and/or return values explicitly.
2741 2009-06-19 Ian Lance Taylor <iant@google.com>
2743 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
2745 2009-06-19 Ian Lance Taylor <iant@google.com>
2747 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
2749 2009-06-19 Ian Lance Taylor <iant@google.com>
2751 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
2752 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
2755 * c-decl.c (finish_decl): If -Wc++-compat, warn about
2756 uninitialized const.
2758 2009-06-19 Ian Lance Taylor <iant@google.com>
2760 * dse.c (struct store_info): Rename bitmap field to bmap. Change
2763 * c-decl.c (in_struct, struct_types): Remove.
2764 (struct c_binding): Add in_struct field.
2765 (c_binding_ptr): Define type, along with VEC.
2766 (struct c_struct_parse_info): Define.
2767 (struct_parse_info): New static variable.
2768 (bind): Initialize in_struct field.
2769 (start_struct): Remove enclosing_in_struct and
2770 enclosing_struct_types parameters. Add
2771 enclosing_struct_parse_info parameter. Change all callers. Set
2772 struct_parse_info rather than in_struct and struct_types.
2773 (grokfield): If -Wc++-compat and there is a symbol binding for the
2774 field name, set the in_struct flag and push it on the
2775 struct_parse_info->fields vector.
2776 (warn_cxx_compat_finish_struct): New static function.
2777 (finish_struct): Remove enclosing_in_struct and
2778 enclosing_struct_types parameters. Add
2779 enclosing_struct_parse_info parameter. Change all callers. Don't
2780 set C_TYPE_DEFINED_IN_STRUCT here. Call
2781 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
2782 parameter. Only push on struct_types if warn_cxx_compat.
2783 (finish_enum): Only push on struct_types if warn_cxx_compat.
2784 (declspecs_add_type): Add loc parameter. Change all callers.
2785 Change all error calls to error_at. Pass loc, not input_location,
2786 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
2787 defined in a struct. If -Wc++-compat and parsing a struct, record
2788 that a typedef name was used.
2789 * c-parser.c (c_parser_declspecs): Get location to pass to
2791 (c_parser_struct_or_union_specifier): Update calls to start_struct
2793 * c-tree.h (struct c_struct_parse_info): Declare.
2794 (finish_struct, start_struct): Update declarations.
2795 (declspecs_add_type): Update declaration.
2797 2009-06-19 Ian Lance Taylor <iant@google.com>
2799 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
2800 variable with an anonymous type.
2802 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
2804 * see.c: Remove for real.
2806 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
2808 * optabs.h (enum optab_index): Add new OTI_significand.
2809 (significand_optab): Define corresponding macro.
2810 * optabs.c (init_optabs): Initialize significand_optab.
2811 * genopinit.c (optabs): Implement significand_optab using
2812 significand?f2 patterns.
2813 * builtins.c (expand_builtin_mathfn): Handle
2814 BUILT_IN_SIGNIFICAND{,F,L}.
2815 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
2816 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2818 * config/i386/i386.md (significandxf2, significand<mode>2): New
2819 expanders to implement significandf, significand and significandl
2820 built-ins as inline x87 intrinsics.
2822 2009-06-18 Anatoly Sokolov <aesok@post.ru>
2824 * config/avr/avr.c (avr_override_options): Remove setting value of
2825 PARAM_INLINE_CALL_COST.
2827 2009-06-18 Richard Henderson <rth@redhat.com>
2830 * tree-pass.h (TDF_ASMNAME): New.
2831 * tree-dump.c (dump_options): Add asmname.
2832 * doc/invoke.texi: Document it.
2834 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
2835 (dump_decl_name): ...here.
2836 (dump_function_name): New flags arg; mind TDF_ASMNAME.
2837 (dump_generic_node): Update dump_function_name calls.
2838 (print_call_name): New flags arg; update all dump calls.
2839 * diagnostic.h (print_call_name): Update.
2840 * gimple-pretty-print.c (dump_gimple_call): Update.
2842 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
2845 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
2847 2009-06-18 Diego Novillo <dnovillo@google.com>
2849 * doc/plugins.texi: Document plugin_is_GPL_compatible.
2850 * plugin.c (str_license): Declare.
2851 (try_init_one_plugin): Assert that the symbol
2852 'plugin_is_GPL_compatible' exists.
2854 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
2857 * Makefile.in (OBJS-common): Remove see.o.
2859 * common.opt (fsee): Mark as preserved for backward compatibility.
2860 * opts.c (common_handle_option): Add OPT_fsee to the backward
2861 compatibility section.
2862 * passes.c (init_optimization_passes, pass_see): Remove pass.
2863 * timevar.def (TV_SEE): Remove.
2864 * tree-pass.h (pass_see): Remove declaration.
2865 * doc/invoke.texi (-fsee): Remove documentation.
2867 2009-06-18 Martin Jambor <mjambor@suse.cz>
2869 * tree-sra.c: Include statistics.h
2870 (sra_stats): New variable.
2871 (sra_initialize): Clear sra_stats.
2872 (create_access_replacement): Increment sra_stats.replacements.
2873 (get_access_replacement): Do not return twice.
2874 (analyze_all_variable_accesses): Increment statistics counter by the
2875 number of scalarized aggregates.
2876 (generate_subtree_copies): Increment sra_stats.subtree_copies.
2877 (sra_modify_expr): Increment sra_stats.exprs.
2878 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
2879 (sra_modify_assign): Increment sra_stats.exprs,
2880 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
2881 (perform_intra_sra): Update statistics counters.
2882 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
2884 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
2886 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
2887 (arm_scalar_mode_supported_p): New function.
2889 2009-06-18 Paul Brook <paul@codesourcery.com>
2890 Sandra Loosemore <sandra@codesourcery.com>
2892 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
2893 (__extendhfsf2, __truncsfhf2): Define.
2894 * config/arm/fp16.c: New file.
2895 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
2896 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
2898 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
2900 * doc/extend.texi (Half-Precision): New section.
2901 * doc/invoke.texi (Option Summary): List -mfp16-format.
2902 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
2903 * config/arm/arm.opt (mfp16-format=): New.
2904 * config/arm/arm.c: Include intl.h.
2905 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
2906 (TARGET_INVALID_RETURN_TYPE): Redefine.
2907 (TARGET_PROMOTED_TYPE): Redefine.
2908 (TARGET_CONVERT_TO_TYPE): Redefine.
2909 (arm_fp16_format): Define.
2910 (all_fpus): Add entry for neon-fp16.
2911 (fp_model_for_fpu): Likewise.
2912 (struct fp16_format): Declare.
2913 (all_fp16_formats): Define.
2914 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
2916 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
2918 (arm_legitimate_index_p): Treat HFmode like HImode.
2919 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
2920 (coproc_secondary_reload_class): Special-case HFmode.
2921 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
2922 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
2923 (arm_init_fp16_builtins): New.
2924 (arm_init_builtins): Call it.
2925 (arm_invalid_parameter_type): New.
2926 (arm_invalid_return_type): New.
2927 (arm_promoted_type): New.
2928 (arm_convert_to_type).
2929 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
2931 (arm_emit_fp16_const): New function.
2932 (arm_mangle_type): Mangle __fp16 as "Dh".
2933 * config/arm/arm.h (TARGET_VFPD32): Make it know about
2935 (TARGET_NEON_FP16): New.
2936 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
2937 (enum fputype): Add FPUTYPE_NEON_FP16.
2938 (enum arm_fp16_format_type): Declare.
2939 (arm_fp16_format): Declare.
2940 (LARGEST_EXPONENT_IS_NORMAL): Define.
2941 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
2942 * config/arm/arm-modes.def (HFmode): Define.
2943 * config/arm/vfp.md: (*movhf_vfp): New.
2946 * config/arm/arm.md: (fpu): Add neon_fp16.
2947 (floatsihf2, floatdihf2): New.
2948 (fix_trunchfsi2, fix_trunchfdi2): New.
2952 (*arm32_movhf): New.
2953 (*thumb1_movhf): New.
2954 (consttable_2): Add check for HFmode constants.
2955 (consttable_4): Handle HFmode constants.
2957 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
2959 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
2961 2009-06-17 Olivier Hainque <hainque@adacore.com>
2963 * collect2.c (main): Use CONST_CAST2 to perform char ** to
2964 const char ** conversion in AIX specific section.
2966 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
2968 * config/i386/i386.c (ix86_special_builtin_type): Remove
2969 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
2970 (bdesc_special_args): Updated.
2971 (ix86_init_mmx_sse_builtins): Likewise.
2972 (ix86_expand_special_args_builtin): Likewise.
2974 2009-06-17 Richard Henderson <rth@redhat.com>
2976 * tree-pretty-print.c (maybe_dump_asm_name): New.
2977 (dump_decl_name): Use it.
2978 (PRINT_FUNCTION_NAME): Merge into...
2979 (dump_function_name): ... here. Use maybe_dump_asm_name.
2981 2009-06-17 Cary Coutant <ccoutant@google.com>
2983 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
2985 * debug.c (struct gcc_debug_hooks): Change placeholder for
2987 (debug_nothing_int_charstar_int): Replaced by...
2988 (debug_nothing_int_charstar_int_bool): ...this.
2989 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
2990 source_line prototype.
2991 (debug_nothing_int_charstar_int): Replaced by...
2992 (debug_nothing_int_charstar_int_bool): ...this.
2993 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
2994 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
2995 Output is_stmt operand when necessary.
2996 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
2997 (notice_source_line): Add is_stmt parameter.
2998 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
2999 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
3001 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
3002 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
3004 2009-06-17 Ian Lance Taylor <iant@google.com>
3006 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
3008 (struct store_by_pieces_d): Rename from store_by_pieces. Change
3011 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
3013 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
3014 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
3015 tree_strip_sign_nop_conversions and
3016 tree_ssa_strip_useless_type_conversions rather than stripping
3017 the operations here.
3018 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
3020 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
3021 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
3022 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
3023 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
3026 2009-06-17 Michael Eager <eager@eagercon.com>
3028 * config/rs6000/constraints.md (register_constraint "d"): New.
3029 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
3030 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
3031 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
3032 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
3033 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
3034 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
3035 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
3036 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
3037 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
3038 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
3040 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
3041 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
3042 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
3043 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
3044 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
3045 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
3046 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
3047 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
3048 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
3049 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
3050 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
3051 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
3052 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
3053 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
3055 2009-06-16 Ian Lance Taylor <iant@google.com>
3057 * profile.c (total_num_never_executed): Don't define.
3058 (compute_branch_probabilities): Don't count or print
3060 (init_branch_prob): Don't set total_num_never_executed.
3061 (end_branch_prob): Don't print total_num_never_executed.
3063 2009-06-17 David Daney <ddaney@caviumnetworks.com>
3065 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
3067 2009-06-17 David Edelsohn <edelsohn@gnu.org>
3069 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
3070 (nabstd2_fpr): Same.
3072 2009-06-17 Steve Ellcey <sje@cup.hp.com>
3074 * expr.c (expand_assignment): Change complex type check.
3076 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
3078 * doc/plugins.texi (Building GCC plugins): Added new section.
3080 2009-06-17 Ian Lance Taylor <iant@google.com>
3082 * c-pch.c (get_ident): Don't set size of templ array.
3083 (pch_init): Don't set size of partial_pch array.
3085 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
3086 string constant to intialize an array whose size is the length of
3089 2009-06-17 Richard Guenther <rguenther@suse.de>
3091 PR tree-optimization/40389
3092 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
3093 to addressable types.
3094 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
3096 2009-06-17 Richard Guenther <rguenther@suse.de>
3099 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
3100 if there is no evolution of left in the loop bail out.
3101 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
3102 chrec_fold_multiply.
3104 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
3105 Janis Johnson <janis187@us.ibm.com>
3108 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
3109 for the symbol ref of a constant that is the source of a move
3110 - nor for any other not-obvious-label-ref constants.
3112 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
3114 * plugin.c (position_pass): Skip newly inserted pass during list
3115 traversal to avoid repeated insertion.
3117 2009-06-16 Ian Lance Taylor <iant@google.com>
3119 * vec.h (VEC_stack_alloc): Define different version if
3120 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
3121 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
3122 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
3123 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
3125 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
3127 * config.gcc (extra_headers): Add ia32intrin.h for x86.
3129 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
3130 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
3131 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
3132 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
3133 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
3134 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
3135 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
3136 (bdesc_special_args): Add __builtin_ia32_rdtsc and
3137 __builtin_ia32_rdtscp.
3138 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
3139 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
3140 and __builtin_ia32_rorhi.
3141 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
3142 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
3143 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
3144 (ix86_expand_args_builtin): Likewise.
3145 (ix86_expand_special_args_builtin): Likewise.
3147 * config/i386/i386.md (UNSPECV_RDTSCP): New.
3148 (UNSPECV_RDTSC): Likewise.
3149 (UNSPECV_RDPMC): Likewise.
3150 (*bsr): Renamed to ...
3152 (*bsr_rex64): Renamed to ...
3156 (*rdpmc_rex64): Likewise.
3159 (*rdtsc_rex64): Likewise.
3161 (*rdtscp): Likewise.
3162 (*rdtscp_rex64): Likewise.
3164 * config/i386/ia32intrin.h: New.
3166 * config/i386/x86intrin.h: Include <ia32intrin.h>.
3168 2009-06-16 Ian Lance Taylor <iant@google.com>
3170 * ira-build.c (copy_info_to_removed_store_destinations):
3171 Initialize parent_a.
3173 2009-06-16 Ian Lance Taylor <iant@google.com>
3175 * c-decl.c (grokdeclarator): Change size_varies to bool.
3177 2009-06-16 Ian Lance Taylor <iant@google.com>
3179 * sel-sched.c: Make forward declarations of move_op_hooks and
3180 fur_hooks explicitly extern.
3182 2009-06-16 Ian Lance Taylor <iant@google.com>
3184 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
3185 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
3187 2009-06-16 Ian Lance Taylor <iant@google.com>
3189 * resource.c (mark_referenced_resources): Change
3190 include_delayed_effects parameter to bool. Change all callers.
3191 (mark_end_of_function_resources): Likewise.
3192 * reorg.c (insn_references_resource_p): Likewise.
3193 (insn_sets_resource_p): Likewise.
3194 * resource.h (mark_referenced_resources): Update declaration.
3195 (mark_end_of_function_resources): Update declaration.
3197 2009-06-16 David Edelsohn <edelsohn@gnu.org>
3199 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
3201 2009-06-16 David Edelsohn <edelsohn@gnu.org>
3203 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
3204 GCC can bootstrap on AIX with GNU Binutils 2.20.
3206 2009-06-16 Ian Lance Taylor <iant@google.com>
3208 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
3210 2009-06-16 Ian Lance Taylor <iant@google.com>
3212 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
3213 inline, not extern inline.
3214 (exact_log2): Likewise.
3215 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
3217 (exact_log2): Likewise, but don't test CTZ_HWI.
3219 2009-06-16 Ian Lance Taylor <iant@google.com>
3221 * bitmap.c (bitmap_clear): Don't declare as inline.
3222 * gimple.c (gimplify_assign): Likewise.
3223 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
3224 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
3225 (sched_scan_info): Remove duplicate definition.
3227 2009-06-16 Ian Lance Taylor <iant@google.com>
3229 * c-common.c (skip_evaluation): Don't define.
3230 (c_inhibit_evaluation_warnings): Define global variable.
3231 (overflow_warning): Check c_inhibit_evaluation_warnings rather
3232 than skip_evaluation.
3233 (convert_and_check, warn_for_div_by_zero): Likewise.
3234 * c-common.h (skip_evaluation): Don't declare.
3235 (c_inhibit_evaluation_warnings): Declare.
3236 * c-parser.c (c_parser_typeof_specifier): Set
3237 c_inhibit_evaluation_warnings rather than skip_evaluation.
3238 (c_parser_conditional_expression): Likewise.
3239 (c_parser_binary_expression): Likewise.
3240 (c_parser_sizeof_expression): Likewise.
3241 (c_parser_alignof_expression): Likewise.
3242 * c-typeck.c (build_indirect_ref): Check
3243 c_inhibit_evaluation_warnings rather than skip_evaluation.
3244 (build_conditional_expr, build_binary_op): Likewise.
3246 2009-06-16 Richard Guenther <rguenther@suse.de>
3248 * tree-ssa-alias.c (is_escape_site): Remove.
3249 * tree-ssa-alias.h (enum escape_type): Remove.
3250 (is_escape_site): Likewise.
3251 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
3252 via casts and asms without deferring to is_escape_site.
3254 2009-06-16 Jakub Jelinek <jakub@redhat.com>
3257 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
3258 use gen_lowpart if op0 has complex mode.
3260 2009-06-16 Richard Guenther <rguenther@suse.de>
3262 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
3263 variables add them to ESCAPED.
3264 (find_func_aliases): Do not make all indirectly stored values escaped.
3266 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
3268 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
3271 2009-06-16 Martin Jambor <mjambor@suse.cz>
3273 PR tree-optimization/40432
3274 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
3275 check whether we need to force gimple register operand.
3277 2009-06-16 Martin Jambor <mjambor@suse.cz>
3279 PR tree-optimization/40413
3280 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
3281 build_ref_for_offset.
3282 (propagate_subacesses_accross_link): Fix a typo in a comment.
3284 2009-06-16 Ira Rosen <irar@il.ibm.com>
3286 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
3287 with additional parameter.
3288 * tree-vectorizer.h (enum vect_def_type): Add new value
3290 (enum vect_relevant): Add comments.
3291 (vect_is_simple_reduction): Add new argument.
3292 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
3293 Detect nested cycles.
3294 (vect_is_simple_reduction): Update documentation, add an argument to
3295 distinguish inner-loop reduction from nested cycle, detect nested
3296 cycles, fix printings and indentation, don't swap operands in case
3298 (get_initial_def_for_reduction): Handle subtraction.
3299 (vect_create_epilog_for_reduction): Add new argument to specify
3301 (vect_finalize_reduction): Handle subtraction, fix comments.
3302 (vectorizable_reduction): Handle nested cycles. In case of nested
3303 cycle keep track of the reduction variable position. Call
3304 vect_is_simple_reduction with additional parameter. Use original
3305 statement code in reduction epilogue for nested cycle. Call
3306 vect_create_epilog_for_reduction with additional parameter.
3307 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
3308 inner-loop vectorization.
3309 (vect_recog_widen_sum_pattern): Likewise.
3310 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
3312 (vect_mark_stmts_to_be_vectorized): Likewise.
3313 (vect_get_vec_def_for_operand): Handle nested cycles.
3315 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3317 * doc/invoke.texi (Debugging Options): Fix option index entries
3318 for -fdump-statistics, -frandom-seed add entries for
3319 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
3320 (FRV Options): Fix entries for -mTLS, -mtls.
3321 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
3322 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
3323 (M68hc1x Options): Fix @itemx for -mnominmax.
3324 (MCore Options): Fix entry for -mno-lsim.
3325 (MMIX Options): Fix entry for -mabi=mmixware.
3326 (PDP-11 Options): Fix entry for -mbcopy-builtin.
3328 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
3330 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
3331 Mention the plugin mode of gengtype.
3332 * doc/gty.texi (Source Files Containing Type Information): Likewise.
3333 * gengtype.c: Updated copyright.
3334 (plugin_files, nb_plugin_files) Added new static variables.
3335 (measure_input_list) Care about plugin_files.
3336 (write_rtx_next): Added early return in plugin mode.
3337 (create_file): Updated copyright year in generated file. Added
3339 (oprintf): Added early return if NULL outf.
3340 (get_output_file_with_visibility): Care of plugin_files.
3341 (get_output_file_name): May return null.
3342 (write_local): Added early return.
3343 (put_mangled_filename): Ditto.
3344 (finish_root_table): Added check for base_files.
3345 (write_roots): Care about null when plugins.
3346 (main): Added plugin mode.
3348 2009-06-15 Ian Lance Taylor <iant@google.com>
3350 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
3351 * gcov.c (read_count_file): Add braces around variables declared
3354 * c.opt (Wjump-misses-init): New warning.
3355 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
3356 -Wall and -Wc++-compat if not already set.
3357 (c_common_post_options): Clear warn_jump_misses_init if it was not
3359 * c-decl.c (struct c_binding): Change type field to a union with
3360 new label field. Make it the first field in the struct. Update
3361 references to type to use u.type instead.
3362 (struct c_spot_bindings): Define.
3363 (struct c_goto_bindings): Define.
3364 (c_goto_bindings_p): Define, along with VECs.
3365 (struct c_label_vars): Define.
3366 (struct c_scope): Add has_label_bindings field.
3367 (bind_label, set_spot_bindings): New static functions.
3368 (decl_jump_unsafe, update_spot_bindings): New static functions.
3369 (update_label_decls): New static function.
3370 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
3371 Update binding u.label field to shadowed field.
3372 (c_binding_start_stmt_expr): New function.
3373 (c_binding_end_stmt_expr): New function.
3374 (pushdecl): Don't call c_begin_vm_scope.
3375 (make_label): Add defining and p_label_vars parameters. Change
3377 (lookup_label): Correct test for whether a label has not yet been
3378 defined. Call bind_label rather than bind.
3379 (warn_about_goto): New static function.
3380 (lookup_label_for_goto): New function.
3381 (declare_label): Call bind_label rather than bind.
3382 (check_earlier_gotos): New static function.
3383 (define_label): Don't give errors about jumping into statement
3384 expressions or scopes of variably modified types. Call
3385 set_spot_bindings and check_earlier_gotos. Call bind_label
3386 instead of bind. Don't set label_context_stack_se or
3387 label_context_stack_vm.
3388 (c_get_switch_bindings): New function.
3389 (c_release_switch_bindings): New function.
3390 (c_check_switch_jump_warnings): New function.
3391 (start_function): Don't set label_context_stack_se or
3392 label_context_stack_vm.
3393 (finish_function): Likewise.
3394 * c-typeck.c (label_context_stack_se): Don't define.
3395 (label_context_stack_vm): Don't define.
3396 (c_finish_goto_label): Call lookup_label_for_goto rather than
3397 lookup_label. Don't give errors about jumping into a statement
3398 expression or the scope of a variably modified type. Don't set
3399 label_context_stack_se or label_context_stack_vm.
3400 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
3401 fields. Add bindings field.
3402 (c_start_case): Don't set deleted fields. Set bindings field.
3403 (do_case): Rework order of tests. Don't check blocked_stmt_expr
3404 or blocked_vm. Call c_check_switch_jump_warnings.
3405 (c_finish_case): Don't test blocked_stmt_expr field. Call
3406 c_release_switch_bindings.
3407 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
3408 c_switch_stack. Don't walk label_context_stack_se labels. Don't
3409 set label_context_sta