1 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4 * Makefile.in (write_entries_to_file, install-plugin):
5 Use \012 instead of \n with tr.
7 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
9 * configure.ac (HAVE_AS_REF): New C macro.
10 * configure: Regenerate.
11 * config.in: Likewise.
12 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
14 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
19 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
21 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
23 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
25 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
27 (TARGET_IN_SMALL_DATA_P): Fix argument type.
29 (TARGET_BINDS_LOCAL_P): Fix argument type.
31 (TARGET_ASM_FILE_END): Use prototype.
33 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
35 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
37 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
39 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
41 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
42 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
44 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
45 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
47 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
48 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
49 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
50 (TARGET_ADDR_SPACE_CONVERT): Likewise.
52 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
54 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
56 (TARGET_INIT_BUILTINS): Use prototype.
58 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
59 Put 'const char *' in braces. Fix parameter types.
60 (TARGET_INVALID_CONVERSION): Fix parameter types.
61 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
62 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
64 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
67 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
69 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
71 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
73 * doc/tm.texi (TARGET_HELP): Fix return type.
75 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
76 in braces. Fix argument types.
78 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
80 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
82 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
84 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
85 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
87 (TARGET_MANGLE_TYPE): Fix argument types.
89 (TARGET_IRA_COVER_CLASSES): Use prototype.
91 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
93 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
95 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
97 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
99 (TARGET_CALLEE_COPIES): Fix argument types.
101 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
103 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
105 (TARGET_FUNCTION_VALUE): Fix argument types.
107 (TARGET_RETURN_IN_MSB): Fix argument type.
109 (TARGET_RETURN_IN_MEMORY): Fix argument types.
111 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
113 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
115 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
116 agree with return type.
118 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
120 2010-01-15 Jing Yu <jingyu@google.com>
122 PR rtl-optimization/42691
123 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
124 a pseudo to a constant and are merged, and adjust comments.
126 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
128 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
130 2010-01-15 Richard Guenther <rguenther@suse.de>
133 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
134 labels of computed or non-local gotos to the destination.
135 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
136 landing pad label is the first label.
138 2010-01-15 Richard Guenther <rguenther@suse.de>
140 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
142 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
145 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
146 to allow generation of the xssqrtdp instruction on power7.
147 (sqrtdf2_fpr): Ditto.
149 2010-01-14 Jakub Jelinek <jakub@redhat.com>
152 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
153 functions with noreturn attribute.
156 * varasm.c (declare_weak): Add weak attribute to decl if it
157 doesn't have one already.
158 (assemble_external): Only add decls to weak_decls if they also
161 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
163 * var-tracking.c (var_reg_delete): Don't delete the association
164 between REGs and values or one-part variables if the register
167 2010-01-14 Jakub Jelinek <jakub@redhat.com>
170 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
171 because its first operand is a non-localized variable.
173 2010-01-14 Martin Jambor <mjambor@suse.cz>
175 PR tree-optimization/42706
176 * tree-sra.c (encountered_recursive_call): New variable.
177 (encountered_unchangable_recursive_call): Likewise.
178 (sra_initialize): Initialize both new variables.
179 (callsite_has_enough_arguments_p): New function.
180 (scan_function): Call decl and flags check only for IPA-SRA, check
181 whether there is a recursive call and whether it has enough arguments.
182 (all_callers_have_enough_arguments_p): New function.
183 (convert_callers): Look for recursive calls only when
184 encountered_recursive_call is set.
185 (ipa_early_sra): Bail out either if
186 !all_callers_have_enough_arguments_p or
187 encountered_unchangable_recursive_call.
189 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
191 * sel-sched.c: Add 2010 to copyright years.
192 * sel-sched-ir.c: Likewise.
193 * sel-sched-ir.h: Likewise.
195 2010-01-14 Martin Jambor <mjambor@suse.cz>
197 PR tree-optimization/42714
198 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
199 constructors specially.
201 2010-01-14 Andi Kleen <ak@linux.intel.com>
203 * config/i386/drivers-i386.c (detect_caches_intel):
204 Add l2sizekb parameter and fill in.
205 (host_detect_local_cpu): Add l2sizekb, fill in.
206 Add Atom small cache heuristic.
208 2010-01-14 Andi Kleen <ak@linux.intel.com>
210 * config/i386/drivers-i386.c (detect_caches_cpuid4):
211 Add level3 parameter and fill in.
212 (detect_caches_intel): Handle level3 cache.
214 2010-01-14 Andi Kleen <ak@linux.intel.com>
216 * config/i386/drivers-i386.c (host_detect_local_cpu):
217 Fix core duo detection.
219 2010-01-14 Andi Kleen <ak@linux.intel.com>
221 * config/i386/drivers-i386.c (host_detect_local_cpu):
224 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
226 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
227 (rs6000_variable_issue_1): this. Use...
228 (rs6000_variable_issue): here. Reimplement. Print debug info.
230 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
232 * sel-sched-ir.c (sel_restore_other_notes): Rename to
233 sel_restore_notes. Update all callers. Call reemit_notes
236 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
238 PR rtl-optimization/42246
239 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
242 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
244 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
245 all successors is the same as number of successors in current region.
247 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
249 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
250 to rename is not separable. Otherwise check that its LHS is not NULL.
252 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
254 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
256 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
258 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
259 available registers when failed to discover LHS register class.
260 Fix indentation. Update comment.
262 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
263 Alexander Monakov <amonakov@ispras.ru>
265 PR rtl-optimization/42389
266 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
268 (advance_state_on_fence): Likewise.
269 (sel_target_adjust_priority): Print debug output only when
270 sched_verbose >= 4, not 2.
271 (get_expr_cost): Do not issue all unique insns on the next cycle.
272 (fill_insns): Initialize can_issue_more from the value saved
274 * sel-sched-ir.c (flist_add): New parameter issue_more.
275 Init FENCE_ISSUE_MORE with it.
276 (merge_fences): Likewise.
277 (init_fences): Update call to flist_add.
278 (add_to_fences, add_clean_fence_to_fences)
279 (add_dirty_fence_to_fences): Likewise.
280 (move_fence_to_fences): Update call to merge_fences.
281 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
283 * sel-sched-ir.h (struct _fence): New field issue_more.
284 (FENCE_ISSUE_MORE): New accessor macro.
286 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
288 PR rtl-optimization/42388
289 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
290 that have no predecessors nor successors. Do not call move_bb_info
291 for empty blocks outside of current region.
293 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
295 PR rtl-optimization/42294
296 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
297 * sel-sched.c (move_exprs_to_boundary): Transitively add all
298 originators' originators.
300 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
302 PR rtl-optimization/39453
303 PR rtl-optimization/42246
304 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
306 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
308 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
309 Alexander Monakov <amonakov@ispras.ru>
312 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
313 (maybe_tidy_empty_bb): ... here. Make static. Add new
314 argument. Update all callers.
315 (tidy_control_flow): ... and here. Recompute topological order
316 of basic blocks in region if necessary.
317 (sel_redirect_edge_and_branch): Change return type. Return true
318 if topological order might have been invalidated.
319 (purge_empty_blocks): Export and move from...
320 * sel-sched.c (purge_empty_blocks): ... here.
321 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
322 (maybe_tidy_empty_bb): Delete prototype.
323 (purge_empty_blocks): Declare.
325 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
327 PR rtl-optimization/42249
328 * sel-sched.c (try_replace_dest_reg): When chosen register
329 and original register is the same, do not bail out early, but
330 still check all original insns for validity of replacing destination
331 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
334 2010-01-14 Jakub Jelinek <jakub@redhat.com>
337 Port from no-undefined-overflow branch:
338 2009-03-09 Richard Guenther <rguenther@suse.de>
340 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
342 2010-01-14 Richard Guenther <rguenther@suse.de>
345 * gimple.c (iterative_hash_gimple_type): Avoid hashing
348 2010-01-14 Ira Rosen <irar@il.ibm.com>
350 PR tree-optimization/42709
351 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
352 as scalar type in creation of constant vector operand.
354 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
357 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
358 (check-parallel-%): Match `testsuite' directory component only
361 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
364 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
367 2010-01-13 Richard Guenther <rguenther@suse.de>
369 PR tree-optimization/42730
370 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
373 2010-01-13 Steve Ellcey <sje@cup.hp.com>
376 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
377 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
380 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
382 * config/bfin/libgcc-bfin.ver: Regenerate based on current
383 libgcc-std.ver. Add entries for ___smulsi3_highpart and
386 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
387 rather than schedule_insns if the pass is enabled.
389 2010-01-13 Martin Jambor <mjambor@suse.cz>
391 PR tree-optimization/42704
392 * tree-sra.c (sra_modify_assign): Do not delete assignments to
395 2010-01-13 Martin Jambor <mjambor@suse.cz>
397 PR tree-optimization/42703
398 * tree-sra.c (analyze_access_subtree): Check that we can build a
399 reference to the original data within the aggregate.
401 2010-01-13 Richard Guenther <rguenther@suse.de>
403 PR tree-optimization/42705
404 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after
407 2010-01-13 Richard Guenther <rguenther@suse.de>
410 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
412 2010-01-13 Jakub Jelinek <jakub@redhat.com>
415 * var-tracking.c (values_to_unmark): New variable.
416 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
417 values_to_unmark vector. Moved body to...
418 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
419 instead queue it into values_to_unmark vector.
420 (vt_find_locations): Free values_to_unmark vector.
422 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
424 * config/s390/s390.c (override_options): Set
425 default of max-pending-list-length to 256
427 2010-01-13 Richard Guenther <rguenther@suse.de>
430 * tree-pass.h (PROP_gimple_lcx): New.
431 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
432 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
433 before the final cleanup_eh.
434 (dump_properties): Dump PROP_gimple_lcx.
435 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
436 (tree_lower_complex_O0): Remove.
437 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
438 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
439 tree_lower_complex, schedule TODO_update_ssa.
440 * lto-streamer-out.c (output_function): Stream the functions
442 * lto-streamer-in.c (input_function): Likewise.
443 (lto_read_body): Do not override them here.
445 2010-01-12 Joseph Myers <joseph@codesourcery.com>
448 * c-typeck.c (build_c_cast): Fold value cast to union type before
449 wrapping it in a CONSTRUCTOR.
451 2010-01-12 Jakub Jelinek <jakub@redhat.com>
453 PR rtl-optimization/42699
454 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
457 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
459 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
460 SUBTARGET_WARN_UNUSED_SPEC): Move ...
461 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
462 SUBTARGET_WARN_UNUSED_SPEC): ... here
463 * config/mips/iris5.h (LIBGCC_SPEC): Define.
465 2010-01-12 Julian Brown <julian@codesourcery.com>
467 * config/arm/neon-schedgen.ml (Utils): Don't try to
469 (find_with_result): New.
471 2010-01-12 Jakub Jelinek <jakub@redhat.com>
474 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
475 sharing when canonicalizing ({lt,ge}u (plus a b) b).
477 PR tree-optimization/42645
478 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
479 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
480 decl_map, set processing_debug_stmt to -1 and return name without
483 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
485 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
486 binutils version, and reword target configuration description.
488 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
490 * config/avr/avr.h (LINKER_NAME): Remove.
492 2010-01-11 Janis Johnson <janis187@us.ibm.com>
495 * config/rs6000/rs6000.c (rs6000_override_options): On targets
496 that support VSX, warn for -mno-altivec if vsx is not disabled,
499 2010-01-11 Joseph Myers <joseph@codesourcery.com>
500 Shujing Zhao <pearly.zhao@oracle.com>
503 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
504 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
505 character between option name and help text.
506 * c.opt (imultilib): Likewise.
508 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
510 * lto-streamer-out.c (output_unreferenced_globals): Output static
513 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
515 PR rtl-optimization/42621
516 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
518 (duplicate_computed_gotos): Remove now-redundant check.
520 2010-01-10 Steve Ellcey <sje@cup.hp.com>
523 * configure.ac: Save and restore LDFLAGS and LIBS
524 * configure: Regenerate.
526 2010-01-10 Richard Guenther <rguenther@suse.de>
529 * builtins.c (fold_builtin_strlen): Add type argument and
530 convert the resulting length to it.
531 (fold_builtin_1): Adjust.
533 2010-01-09 Jakub Jelinek <jakub@redhat.com>
535 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
536 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
538 (num_insns_constant_wide): Adjust for that change.
540 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
543 * web.c (union_defs): Add used argument, to combine uses of
545 (entry_register): Adjust type and tests of used argument.
546 (web_main): Widen used for new use. Pass it to union_defs.
547 * df.h (union_defs): Adjust prototype.
549 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
552 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
553 uses in new incoming argument. Free body.
554 (reset_debug_uses_in_loop): New.
555 (analyze_insn_to_expand_var): Call the latter if the former found
556 anything. Fix whitespace. Reject invalid dest overlaps before
557 going through all insns in the loop.
559 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
562 * haifa-sched.c (dying_use_p): Debug insns don't count.
564 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
567 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
568 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
569 (verify_gimple_call): Reject LHS in noreturn calls.
571 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
575 * tree-vect-loop-manip.c (adjust_info): New type.
576 (adjust_vec): New pointer to vector.
577 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
578 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
579 (slpeel_update_phis_for_duplicate_loop): Use them.
580 (slpeel_update_phi_nodes_for_guard1): Likewise.
581 (slpeel_update_phi_nodes_for_guard2): Likewise.
582 (slpeel_tree_peel_loop_to_edge): Likewise.
583 (vect_update_ivs_after_vectorizer): Likewise.
585 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
587 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
588 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
590 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
592 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
593 bogus uninitialized warning.
595 2010-01-09 Richard Guenther <rguenther@suse.de>
598 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
599 the evolution is compatible with the initial condition.
601 2010-01-09 Jakub Jelinek <jakub@redhat.com>
603 * gcc.c (process_command): Update copyright notice dates.
604 * gcov.c (print_version): Likewise.
605 * gcov-dump.c (print_version): Likewise.
606 * mips-tfile.c (main): Likewise.
607 * mips-tdump.c (main): Likewise.
609 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
612 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
617 (rotlsi3_16): Delete.
618 (rotlsi3_24): Delete.
622 * config/avr/avr.c (avr_rotate_bytes): New function.
623 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
625 2010-01-08 Steve Ellcey <sje@cup.hp.com>
628 * configure.ac: Modify -rdynamic check.
629 * configure: Regenerate.
631 2010-01-08 DJ Delorie <dj@redhat.com>
633 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
634 register popping order.
636 2010-01-08 Richard Guenther <rguenther@suse.de>
639 * c.opt (fsigned-char): Also let LTO handle this option.
640 (funsigned-char): Likewise.
642 2010-01-07 Richard Guenther <rguenther@suse.de>
644 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
645 (gimple_op): Likewise.
646 (gimple_op_ptr): Likewise.
647 (gimple_assign_set_lhs): Remove gcc_assert.
648 (gimple_assign_set_rhs1): Likewise.
649 (gimple_assign_set_rhs2): Likewise.
650 (gimple_call_set_lhs): Likewise.
651 (gimple_call_set_fn): Likewise.
652 (gimple_call_set_fndecl): Likewise.
653 (gimple_call_fndecl): Likewise.
654 (gimple_call_return_type): Likewise.
655 (gimple_call_set_chain): Likewise.
656 (gimple_call_num_args): Likewise.
657 (gimple_call_set_arg): Likewise.
658 (gimple_cond_set_code): Likewise.
659 (gimple_cond_set_lhs): Likewise.
660 (gimple_cond_set_rhs): Likewise.
661 (gimple_cond_set_true_label): Likewise.
662 (gimple_cond_set_false_label): Likewise.
663 (gimple_label_set_label): Likewise.
664 (gimple_goto_set_dest): Likewise.
665 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
666 (gimple_debug_bind_get_value): Likewise.
667 (gimple_debug_bind_get_value_ptr): Likewise.
668 (gimple_debug_bind_set_var): Likewise.
669 (gimple_debug_bind_set_value): Likewise.
670 (gimple_debug_bind_reset_value): Likewise.
671 (gimple_debug_bind_has_value_p): Likewise.
672 (gimple_return_retval_ptr): Remove gcc_assert.
673 (gimple_return_retval): Likewise.
674 (gimple_return_set_retval): Likewise.
675 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
676 (safe_referenced_var_iterator): Remove.
677 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
678 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
679 (fill_referenced_var_vec): Remove.
680 (first_readonly_imm_use): Remove redundant gcc_assert.
681 (phi_arg_index_from_use): Combine gcc_asserts.
682 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
683 (first_imm_use_stmt): Remove redundant gcc_assert.
684 * tree-cfg.c (verify_gimple_call): Verify function and chain
685 operands. Verify arguments.
686 (verify_types_in_gimple_stmt): Verify condition code and labels.
688 2010-01-07 Richard Guenther <rguenther@suse.de>
690 PR tree-optimization/42641
691 * sese.c (rename_map_elt_info): Use the SSA name version, do
694 2010-01-07 Jakub Jelinek <jakub@redhat.com>
696 PR tree-optimization/42625
697 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
698 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body
701 2010-01-07 Duncan Sands <baldrick@free.fr>
703 * Makefile.in (PLUGIN_HEADERS): Add version.h.
705 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
708 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
709 note itself is not function_invariant_p.
711 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
713 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
714 Do not add the DF_NOTE problem.
715 * store-motion.c (execute_rtl_store_motion): Likewise.
717 2010-01-07 Martin Jambor <mjambor@suse.cz>
719 PR tree-optimization/42157
720 * tree-sra.c (compare_access_positions): Stabilize sort if both
721 accesses have integer types, return zero immediately if they are the
724 2010-01-06 Richard Henderson <rth@redhat.com>
727 * haifa-sched.c (add_to_note_list): Merge into ...
728 (concat_note_lists): ... here, and ...
729 (unlink_other_notes, rm_other_notes): Merge into...
730 (remove_notes): ... here. Create REG_SAVE_NOTEs for
731 NOTE_INSN_EPILOGUE_BEG.
733 2010-01-06 Richard Guenther <rguenther@suse.de>
735 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
736 not inline regular functions into always-inline functions.
738 2010-01-06 Nick Clifton <nickc@redhat.com>
740 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
741 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
743 (OVERRIDE_OPTIONS): Delete.
744 (OPTIMIZATION_OPTIONS): Define.
745 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
746 * config/rx/rx.c (rx_handle_option): Issue an error message if
747 -mcpu=rx200 and -fpu are used together.
748 (rx_set_optimization_options): New function. Issue an error
749 message if an optimization attribute attempts to reset the FPU/
750 math optimization pairing.
751 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
752 * config/rx/rx.opt: Set the default to 32-bit doubles.
753 * config/rx/t-rx: Add multilibs for -nofpu option.
754 * doc/invoke.texi: Update documentation of RX options.
756 2010-01-06 Richard Guenther <rguenther@suse.de>
758 * tree-ssa-pre.c (name_to_id): New global.
759 (alloc_expression_id): Simplify SSA name handling.
760 (lookup_expression_id): Likewise.
761 (init_pre): Zero name_to_id.
764 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
766 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
768 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
771 * config/i386/sse.md (smaxv2di3): New.
772 (umaxv2di3): Likewise.
773 (sminv2di3): Likewise.
774 (uminv2di3): Likewise.
776 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
779 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
780 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
781 (legitimize_tls_address): Likewise.
782 (sparc_tls_referenced_p): Likewise.
783 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
784 and adjust calls to legitimize_pic_address.
785 (legitimate_constant_p) Use sparc_tls_referenced_p.
786 (legitimate_pic_operand_p): Likewise.
787 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
788 (sparc_tls_symbol_ref_1): Delete.
789 (sparc_tls_referenced_p): Make static, recognize specific patterns.
790 (legitimize_tls_address): Make static, handle CONST patterns.
791 (legitimize_pic_address): Make static, remove unused parameter and
792 adjust recursive calls.
793 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
794 and adjust call to legitimize_pic_address.
795 (sparc_output_mi_thunk): Likewise.
797 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
798 H.J. Lu <hongjiu.lu@intel.com>
801 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
802 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
803 operands to make them signed.
806 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
809 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
810 GTU to GT for V4SI and V2DI.
812 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
813 (umin<mode>3): Removed.
815 (uminv4si3): Likewise.
817 2010-01-05 Martin Jambor <mjambor@suse.cz>
819 PR tree-optimization/42462
820 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
821 current_function_decl to helper functions and macros.
823 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
826 * flags.h: Don't include real.h.
827 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
828 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
829 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
830 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
831 * dominance.c: Update copyright.
832 * gimple.c (walk_gimple_op): Remove inline.
833 * tree-ssa-reassoc.c: Include real.h.
834 * Makefile.in (FLAGS_H): Remove $(REAL_H).
835 (tree-ssa-reassoc.o): Depend on $(REAL_H).
837 2010-01-05 Nick Clifton <nickc@redhat.com>
839 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
840 register to push into the stack frame when the accumulator has to
841 be saved during interrupts.
843 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
845 * doc/invoke.texi: Remove the documentation about option
847 * common.opt (Wunreachable-code): Preserved for backward
849 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
850 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
851 the backward compatibility flag section.
853 2010-01-05 Richard Guenther <rguenther@suse.de>
855 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
857 2010-01-05 Jakub Jelinek <jakub@redhat.com>
860 * cfgexpand.c (expand_one_var): Diagnose too large variables.
862 PR tree-optimization/42508
863 * tree-sra.c (convert_callers): Check for recursive call
864 by comparing cgraph nodes instead of decls.
865 (modify_function): Call ipa_modify_formal_parameters also
866 on all same_body aliases.
868 * cgraphunit.c (cgraph_materialize_all_clones): Compare
869 cgraph nodes when checking for same_body aliases.
871 2010-01-05 Richard Guenther <rguenther@suse.de>
873 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
874 allocation and lookup.
875 (get_or_alloc_expr_for_constant): Likewise.
876 (phi_translate): Sink allocation.
878 2010-01-04 Richard Guenther <rguenther@suse.de>
880 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
881 a new entry only if needed.
882 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
883 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
885 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
887 (phi_translate): Handle CONSTANTs early.
889 2010-01-04 Martin Jambor <mjambor@suse.cz>
891 PR tree-optimization/42398
892 * tree-sra.c (struct access): Removed flag grp_different_types.
893 (dump_access): Do not dump the removed flag.
894 (sort_and_splice_var_accesses): Do not set the removed flag.
895 (sra_modify_expr): Check for type compatibility directly.
897 2010-01-04 Martin Jambor <mjambor@suse.cz>
899 PR tree-optimization/42366
900 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
901 edges with variable number of parameters.
902 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
903 flag instead of asserting it.
904 (ipa_read_node_info): Read uses_analysis_done flag.
906 2010-01-04 Richard Guenther <rguenther@suse.de>
908 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
909 iterative_hash_* as intended.
910 (vn_reference_compute_hash): Likewise. Simplify hashing
912 (vn_reference_lookup_2): Likewise.
913 (vn_nary_op_compute_hash): Likewise.
914 (vn_phi_compute_hash): Likewise.
915 (expressions_equal_p): Remove strange code.
916 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
917 (pre_expr_hash): Likewise. Simplify hashing SSA names.
918 (bitmap_insert_into_set_1): Take value-id as parameter.
919 (add_to_value): Pass it.
920 (bitmap_insert_into_set): Likewise.
921 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
923 2010-01-04 Jakub Jelinek <jakub@redhat.com>
926 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
927 (do_self_spec): For switches with SWITCH_IGNORE set set also
928 SWITCH_IGNORE_PERMANENTLY.
929 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
932 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
934 * lto-streamer-out.c (output_unreferenced_globals): Output the full
935 tree of an unreferenced global var.
937 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
940 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
941 GTU to GT for V4SI and V2DI.
943 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
944 (umin<mode>3): Removed.
946 (uminv4si3): Likewise.
948 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
951 * collect2.c (main): Turn on trace in collect2 if -v is passed
954 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
956 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
957 description of expression operand.
959 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
961 * configure.ac: Add install-html to target_list for Make-hooks.
962 * configure: Regenerate.
963 * fortran/Make-lang.in (F95_HTMLFILES): New.
964 (fortran.html): Use it.
965 (fortran.install-html): New.
966 * Makefile.in (install-html): Add lang.install-html.
967 * java/Make-lang.in (JAVA_HTMLFILES): New.
969 (java.install-html): New.
970 * objc/Make-lang.in (objc.install-html): New.
971 * objcp/Make-lang.in (obj-c++.install-html): New.
972 * cp/Make-lang.in (c++.install-html): New.
973 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
974 * lto/Make-lang.in (lto.install-html): New.
976 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
979 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
981 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
983 PR rtl-optimization/41862
984 * store-motion.c (store_killed_in_insn, compute_store_table,
985 remove_reachable_equiv_notes, replace_store_insn,
986 build_store_vectors): Ignore all DEBUG_INSNs.
988 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
991 * common.opt: Add dumpdir.
993 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
995 (option_map): Add --dumpdir.
997 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
999 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
1001 * opts.c (decode_options): Try dump_dir_name first if
1002 dump_base_name isn't an absolute path.
1003 (common_handle_option): Handle OPT_dumpdir.
1005 * toplev.c (dump_dir_name): New.
1006 (print_switch_values): Also ignore -dumpdir.
1008 * toplev.h (dump_dir_name): New.
1010 2010-01-03 Richard Guenther <rguenther@suse.de>
1012 PR tree-optimization/42589
1013 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
1014 double-word expansion of bswap32.
1016 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
1018 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
1019 with BLOCK_FOR_INSN.
1020 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
1021 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
1022 noce_process_if_block): Likewise.
1023 * gcse.c (compute_local_properties, insert_expr_in_table,
1024 insert_set_in_table, canon_list_insert, find_avail_set,
1025 pre_insert_copy_insn): Likewise.
1027 * basic-block.h (BLOCK_NUM): Move from here...
1028 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
1030 2010-01-03 Richard Guenther <rguenther@suse.de>
1032 PR tree-optimization/42438
1033 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
1034 contains_may_not_return_call flag.
1035 (BB_MAY_NOTRETURN): New.
1036 (valid_in_sets): Trapping nary operations are not valid
1037 in blocks that may not return.
1038 (insert_into_preds_of_block): Remove check for trapping
1040 (compute_avail): Compute also BB_MAY_NOTRETURN.
1042 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
1044 * doc/invoke.texi: Add 2010 to copyright years.
1046 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
1048 * config/sparc/sparc.c: Fix formatting nits.
1050 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
1051 Alexander Monakov <amonakov@ispras.ru>
1053 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
1055 2010-01-02 Richard Guenther <rguenther@suse.de>
1058 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
1059 (simplify_switch_using_ranges): Mark to be removed edges
1062 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1064 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
1066 * collect2.c (scan_libraries): Add missing argument in call to
1069 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
1072 * config/alpha/predicates.md (aligned_memory_operand): Return false
1074 (unaligned_memory_operand): Return true for CQImode.
1075 * config/alpha/alpha.c (get_aligned_mem): Assert that location
1076 doesn not cross aligned SImode word boundary.
1078 2010-01-02 Anatoly Sokolov <aesok@post.ru>
1080 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
1082 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
1083 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
1085 2010-01-02 Richard Guenther <rguenther@suse.de>
1088 * toplev.c (compile_file): Emit LTO marker properly. Change
1090 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
1092 2010-01-01 Richard Guenther <rguenther@suse.de>
1095 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
1097 2010-01-01 Richard Guenther <rguenther@suse.de>
1100 * c-decl.c (grokdeclarator): For zero-size arrays force
1101 structural equality checks as layout_type does.
1103 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
1105 * builtins.c: Update copyright to 2010.
1107 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
1110 * lto-streamer-out.c (produce_asm): Revert the last change.
1111 (copy_function): Likewise.
1113 * lto-streamer.c (lto_get_section_name): Skip any leading
1116 2010-01-01 Richard Guenther <rguenther@suse.de>
1119 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
1123 Copyright (C) 2010 Free Software Foundation, Inc.
1125 Copying and distribution of this file, with or without modification,
1126 are permitted in any medium without royalty provided the copyright
1127 notice and this notice are preserved.