1 2012-02-06 Richard Guenther <rguenther@suse.de>
3 PR tree-optimization/52115
4 * tree-sra.c (access_has_replacements_p): New function.
5 (sra_modify_assign): Use it to decide whether a use is uninitialized.
7 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
10 * trans-mem.c (expand_call_tm): Add an assertion.
11 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
14 2012-02-06 Richard Guenther <rguenther@suse.de>
16 PR tree-optimization/50955
17 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
18 raise cost of expressions that replace an address with an
19 expression based on a different pointer.
21 2012-02-06 Jakub Jelinek <jakub@redhat.com>
24 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
25 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
27 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
30 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
31 -Weffc++ and specify guidelines come from second edition.
33 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
35 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
36 (sibcall_value_multiple_internal, call_split, call_internal_direct)
37 (call_direct_split, call_value_split, call_value_internal_direct)
38 (call_value_direct_split, call_value_multiple_split): Use jal and
41 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
43 * reload1.c (reload_regs_reach_end_p): Replace with...
44 (reload_reg_rtx_reaches_end_p): ...this function.
45 (new_spill_reg_store): Update commentary.
46 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
47 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
48 before setting new_spill_reg_store.
49 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
50 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
51 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
52 for non-spill reload registers.
54 2012-02-05 Ira Rosen <irar@il.ibm.com>
56 PR tree-optimization/52091
57 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
58 (vect_is_simple_use_1): Likewise.
59 * tree-vect-loop.c (vectorizable_reduction): Update calls
60 to vect_is_simple_use_1 and vect_is_simple_use.
61 (vectorizable_live_operation): Likewise.
62 * tree-vect-patterns.c (widened_name_p,
63 vect_recog_vector_vector_shift_pattern, check_bool_pattern):
65 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
66 vectorizable_call, vectorizable_conversion,
67 vectorizable_assignment, vectorizable_shift,
68 vectorizable_operation, vectorizable_store, vectorizable_load):
70 (vect_is_simple_cond): Add an argument, pass it to
72 (vectorizable_condition): Update calls to vect_is_simple_cond,
74 (vect_is_simple_use): Add an argument, the statement in which
75 OPERAND is used. Check that if OPERAND's def stmt is a double
76 reduction phi node, the use is a phi node too.
77 (vect_is_simple_use_1): Add an argument, pass it to
79 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
80 to vect_is_simple_use.
82 2012-02-04 Jakub Jelinek <jakub@redhat.com>
84 PR rtl-optimization/52095
85 * modulo-sched.c (dump_insn_locator): New function.
86 (loop_canon_p, sms_schedule): Use it.
88 PR rtl-optimization/52113
89 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
90 even for decomposable shift/zext insns.
92 2012-02-03 Jakub Jelinek <jakub@redhat.com>
93 Zdenek Dvorak <ook@ucw.cz>
95 PR rtl-optimization/52092
96 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
97 on get_iv_value result.
99 2012-02-02 Andrew Pinski <apinski@cavium.com>
103 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
105 2012-02-02 Jakub Jelinek <jakub@redhat.com>
108 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
110 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
112 PR rtl-optimization/49800
113 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
114 (sched_finish): Call regstat_free_n_sets_and_refs.
116 2012-02-02 Jia Liu <proljc@gmail.com>
118 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
121 2012-02-02 Jan Hubicka <jh@suse.cz>
122 Tom de Vries <tom@codesourcery.com>
125 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
126 * varpool.c (varpool_analyze_pending_decls): Likewise.
128 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
129 Jayant R Sonar <jayant.sonar@kpitcummins.com>
131 * config.gcc: Add cr16-* support.
133 * doc/extend.texi: Document cr16 extensions.
134 * doc/install.texi: Document cr16 install.
135 * doc/invoke.texi: Document cr16 options.
136 * doc/md.texi: Document cr16 constraints.
138 * common/config/cr16/cr16-common.c: New file.
139 * config/cr16/cr16.c: New file.
140 * config/cr16/cr16.h: New file.
141 * config/cr16/cr16.md: New file.
142 * config/cr16/cr16.opt: New file.
143 * config/cr16/cr16-protos.h: New file.
144 * config/cr16/predicates.md: New file.
145 * config/cr16/constraints.md: New file.
146 * config/cr16/t-cr16: New file.
148 2012-02-02 Jakub Jelinek <jakub@redhat.com>
151 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
152 that operands[2] is either immediate, or q_regs_operand.
154 PR tree-optimization/52073
155 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
156 a pattern stmt for pattern uses, ignore uses outside of the loop.
158 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
160 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
161 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
162 (OUT_AS1, OUT_AS2): Remove.
164 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
166 PR rtl-optimization/51374
167 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
168 to cross other volatile_refs_p insns.
170 2012-02-01 Richard Guenther <rguenther@suse.de>
172 * doc/invoke.texi (fno-inline): Clarify documentation.
173 (finline-small-functions): Likewise.
174 (finline-functions): Likewise.
175 * common.opt (finline): Adjust comment and documentation.
176 (finline-small-functions): Clarify documentation.
177 (finline-functions): Likewise.
178 (finline-functions-called-once): Likewise.
180 2012-02-01 Tristan Gingold <gingold@adacore.com>
182 * c-typeck.c (composite_type): Keep mode for pointers.
184 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
186 * function.h (regno_reg_rtx): Adjust comment.
187 * reginfo.c (init_reg_modes_target): Only use the previous mode
188 if it fits within one register. Remove MIPS comment.
190 2012-01-31 Jakub Jelinek <jakub@redhat.com>
193 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
195 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
197 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
200 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
202 config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true
205 2012-01-31 Jakub Jelinek <jakub@redhat.com>
210 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
212 2012-01-31 Richard Guenther <rguenther@suse.de>
214 PR tree-optimization/51528
215 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
218 2012-01-31 Jakub Jelinek <jakub@redhat.com>
223 * ree.c (add_removable_extension): Change def_map argument
224 to unsigned *, store in def_map 1 + offset into *insn_list vector
225 instead of pointers into the vector.
226 (find_removable_extensions): Adjust caller.
228 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
230 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
231 Transform all "* quoted-c-code" to { c-code }.
232 Remove redundant test for "optimize" in combine patterns.
233 Move (include "avr-dimode.md") to end of file.
235 2012-01-30 Bin Cheng <bin.cheng@arm.com>
238 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
239 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
241 2012-01-30 Richard Guenther <rguenther@suse.de>
243 PR tree-optimization/52028
244 * tree-loop-distribution.c (ldist_gen): Properly update
247 2012-01-30 Jakub Jelinek <jakub@redhat.com>
250 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
251 set_cur_line_info_table if not emitting debug info.
253 PR tree-optimization/52046
254 * tree-vect-patterns.c (check_bool_pattern): Give up if
255 a comparison could throw.
258 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
260 2012-01-30 Richard Guenther <rguenther@suse.de>
262 PR tree-optimization/52045
263 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
264 SSA form if cfgcleanup did anything.
266 2012-01-30 Richard Guenther <rguenther@suse.de>
268 PR tree-optimization/52045
269 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
270 before computing final todo.
272 2012-01-30 Richard Guenther <rguenther@suse.de>
274 PR tree-optimization/51528
275 * tree-sra.c (sra_modify_assign): Re-factor in preparation
278 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
280 * df-problems.c (df_kill_notes): Check that the use refers
281 to the note under examination.
283 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
286 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
287 parameter and use short-lived pseudos.
288 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
289 (sparc_expand_vector_init): Const-ify local variables and adjust
290 calls to above functions.
292 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
294 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
296 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
298 * doc/invoke.texi: Make usage of "compile time" and
299 "run time"/"runtime" consistent throughout the file.
301 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
303 * config/alpha/alpha.c (alpha_option_overrride): Default to
304 full IEEE compliance mode for Go language.
306 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
308 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
309 (LINK_SSP_SPEC): Define.
311 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
314 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
317 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
319 * doc/invoke.texi: Correct hyphenation of "floating point",
320 "double precision", and related terminology throughout the file.
322 2012-01-28 Jakub Jelinek <jakub@redhat.com>
325 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
326 arm_general_register_operand predicate for operand 2 instead of
329 2012-01-27 Ian Lance Taylor <iant@google.com>
332 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
333 * builtins.c (expand_builtin_init_trampoline): Add onstack
334 parameter. Change caller.
335 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
336 * tree.c (build_common_builtin_nodes): Declare
337 __builtin_init_heap_trampoline.
339 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
341 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
342 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
343 * config/avr/avr.c: Ditto.
344 (avr_regnames): Remove because unused.
345 * config/avr/avr.md (*cpse.ne): New peephole.
346 (*cpse.eq): New peephole from former cpse peepholes.
348 2012-01-27 Michael Eager <eager@eagercon.com>
350 * config/microblaze.c (microblaze_emit_compare): Correct
351 test after pcmp instruction.
353 2012-01-27 Richard Guenther <rguenther@suse.de>
355 PR tree-optimization/52020
356 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
358 2012-01-27 Richard Guenther <rguenther@suse.de>
360 * ipa-pure-const.c (check_stmt): Clobbers do not make a
361 function non-const/pure.
363 2012-01-27 Richard Guenther <rguenther@suse.de>
365 PR tree-optimization/50444
366 * tree-sra.c (build_ref_for_offset): Properly adjust the
367 MEM_REF type for unaligned accesses.
369 2012-01-27 Richard Guenther <rguenther@suse.de>
371 PR tree-optimization/50444
372 * expr.c (mem_ref_refers_to_non_mem_p): New function.
373 (expand_assignment): Use it. Properly handle misaligned
374 bases when expanding stores to component references.
375 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
378 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
381 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
382 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
383 * tree-data-ref.c (find_data_references_in_loop): Make static.
384 (compute_all_dependences): Change return type to bool. Bail out
385 for too many datarefs in a loop. Move the hunk resetting the data
386 dependences vector from ...
387 (compute_data_dependences_for_loop): ... here. Account for
388 compute_all_dependences returning false.
389 (compute_data_dependences_for_bb): Likewise.
390 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
391 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
393 2012-01-27 Richard Guenther <rguenther@suse.de>
396 * expr.c (store_field): Use the alias-set of the scratch memory
399 2012-01-27 Tom de Vries <tom@codesourcery.com>
401 PR tree-optimization/51990
402 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
404 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
406 2012-01-27 Jakub Jelinek <jakub@redhat.com>
409 * var-tracking.c (reverse_op): Don't add any reverse operation
410 if V already has any constant locations.
412 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
414 * doc/invoke.texi: Correct usage of "command line" (noun)
415 vs "command-line" (adjective) throughout.
417 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
419 * doc/invoke.texi (Language Independent Options): Move
420 -Wcoverage-mismatch blurb from here....
421 (Warning Options): ...to here.
423 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
425 * config/rs6000/rs6000.c (rs6000_option_override_internal):
426 Set rs6000_always_hint to false for 476.
428 2012-01-27 Matthias Klose <doko@ubuntu.com>
430 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
432 * incpath.c (add_standard_paths): Likewise.
434 2012-01-27 Richard Henderson <rth@redhat.com>
436 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
437 * config/m68k/sync.md (atomic_test_and_set): Rename from
438 sync_test_and_setqi and adjust the operands.
439 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
440 and unconditionally enable.
442 2012-01-27 Richard Henderson <rth@redhat.com>
444 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
445 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
446 (ldstub): Rename from ldstubqi.
447 (ldstub<I24MODE>): Remove.
449 2012-01-27 Richard Henderson <rth@redhat.com>
451 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
452 * c-cppbuiltin.c (cpp_atomic_builtins): Define
453 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
454 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
455 * doc/tm.texi: Rebuild.
457 2012-01-27 Richard Henderson <rth@redhat.com>
459 * optabs.c (gen_atomic_test_and_set): Remove default.
460 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
462 2012-01-26 Jakub Jelinek <jakub@redhat.com>
464 PR rtl-optimization/51978
465 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
466 (combine_reaching_defs): Likewise.
467 (struct re_info): Remove.
468 (add_removable_extension): Remove x and data arguments,
469 add insn, insn_list and def_map. Use the arguments directly
470 instead of using struct re_info.
471 (find_removable_extensions): Don't call add_removable_extension
472 through note_stores, instead just call it with single_set
474 (find_and_remove_re): Pass curr_cand->expr instead of
475 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
477 2012-01-26 Michael Matz <matz@suse.de>
479 PR tree-optimization/46590
480 * cfgexpand.c: Revert last change (r183305).
481 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
483 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
484 checking for emptiness.
486 2012-01-26 Jakub Jelinek <jakub@redhat.com>
489 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
490 non-addressable non-BLKmode base correctly.
492 2012-01-26 Michael Matz <matz@suse.de>
494 PR tree-optimization/48794
495 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
496 regions referenced from RESX/EH_DISPATCH.
498 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
500 * config/s390/s390.h: Make BRANCH_COST an option.
501 * config/s390/s390.opt: New option -mbranch-cost.
503 2012-01-26 Richard Henderson <rth@redhat.com>
505 Revert 2012-01-24 change:
506 * trans-mem.c (requires_barrier): Do not instrument thread local
507 variables and emit save/restore for them.
509 2012-01-25 Jakub Jelinek <jakub@redhat.com>
512 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
515 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
517 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
520 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
523 Rename __pgm to __flash.
524 Rename __pgm1 to __flash1.
525 Rename __pgm2 to __flash2.
526 Rename __pgm3 to __flash3.
527 Rename __pgm4 to __flash4.
528 Rename __pgm5 to __flash5.
529 Rename __pgmx to __memx.
530 * doc/extend.texi (AVR Named Address Spaces)
531 Rename address space names as indicated above.
532 * config/avr/avr.c (avr_addrspace): Ditto.
534 * config/avr/avr-protos.h
535 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
536 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
537 * config/avr/predicates.md: Ditto.
538 * config/avr/avr.c Ditto, and
539 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
540 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
542 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
543 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
544 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
545 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
546 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
547 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
548 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
549 * config/avr/avr.c: Ditto.
550 * config/avr/avr.md: Ditto.
552 2012-01-25 Jason Merrill <jason@redhat.com>
555 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
557 2012-01-25 Jakub Jelinek <jakub@redhat.com>
559 PR tree-optimization/51987
560 * tree-data-ref.c (get_references_in_stmt): Handle references in
561 non-volatile GIMPLE_ASM.
563 2012-01-25 Richard Guenther <rguenther@suse.de>
565 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
566 bases are dereferenced.
568 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
570 PR rtl-optimization/48374
571 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
573 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
575 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
576 compute_data_dependences_for_loop returns false.
577 * tree-parloops.c (loop_parallel_p): Likewise.
579 2012-01-25 Richard Guenther <rguenther@suse.de>
581 * tree.h (get_pointer_alignment_1): Declare.
582 * builtins.c (get_pointer_alignment_1): New function.
583 (get_pointer_alignment): Use it.
585 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
587 PR rtl-optimization/48308
588 * combine.c (enum undo_kind): Add UNDO_LINKS.
589 (struct undo): Add member l to other_contents and where.
590 (do_SUBST_LINK): New.
592 (try_combine): Handle LOG_LINKS for the dummy i1 case.
593 (undo_all): Handle UNDO_LINKS.
595 2012-01-25 Richard Henderson <rth@redhat.com>
597 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
600 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
602 * optabs.c (gen_atomic_test_and_set): Use each argument.
604 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
606 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
607 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
608 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
609 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
610 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
611 TARGET_PAIRED_SINGLE_FLOAT.
613 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
615 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
616 (in_struct, return_val): Remove MEM documentation.
617 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
618 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
619 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
621 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
622 * cfgexpand.c (add_alias_set_conflicts): Likewise.
623 * expr.c (store_field): Likewise.
624 * function.c (assign_stack_temp_for_type): Likewise.
625 * ifcvt.c (noce_try_cmove_arith): Likewise.
626 * reload1.c (reload): Likewise.
627 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
628 (alpha_set_memflags): Likewise.
629 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
631 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
633 * rtl.h (true_dependence, canon_true_dependence): Remove varies
635 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
636 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
637 (true_dependence_1, true_dependence, canon_true_dependence): Remove
639 * cselib.c (cselib_rtx_varies_p): Delete.
640 (cselib_invalidate_mem): Update call to canon_true_dependence.
641 * dse.c (record_store, check_mem_read_rtx): Likewise.
642 (scan_reads_nospill): Likewise.
643 * cse.c (check_dependence): Likewise.
644 (cse_rtx_varies_p): Delete.
645 * expr.c (safe_from_p): Update call to true_dependence.
646 * ira.c (validate_equiv_mem_from_store): Likewise.
647 (memref_referenced_p): Likewise.
648 * postreload-gcse.c (find_mem_conflicts): Likewise.
649 * sched-deps.c (sched_analyze_2): Likewise.
650 * store-motion.c (load_kills_store): Likewise.
651 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
652 * gcse.c (mems_conflict_for_gcse_p): Likewise.
653 (compute_transp): Update call to canon_true_dependence.
655 2012-01-25 Richard Henderson <rth@redhat.com>
657 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
658 (maybe_emit_atomic_test_and_set): New.
659 (expand_sync_lock_test_and_set): Use it.
660 (expand_atomic_test_and_set): Likewise.
661 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
662 the implementation; clarify implementation defined details.
663 * doc/md.texi (atomic_test_and_set): Document.
665 2012-01-25 Richard Henderson <rth@redhat.com>
667 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
669 2012-01-25 Richard Henderson <rth@redhat.com>
672 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
673 to effect no-op split.
675 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
678 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
679 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
680 (BT_FN_VOID_PTR_INT_SIZE): New.
681 (BT_FN_UINT_UINT_VAR): Remove.
682 (BT_FN_UINT32_UINT32_VAR): New.
683 (BT_FN_DOUBLE_VPTR): Remove.
684 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
686 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
687 (_ITM_changeTransactionMode): Same.
688 (_ITM_memmoveRtWt): Change return type to void.
689 (_ITM_memcpyRtWt): Same.
690 (_ITM_memsetW): Same.
691 (_ITM_RaRD): Change types to double.
696 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
698 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
699 Patrick Marlier <patrick.marlier@gmail.com>
701 * trans-mem.c (requires_barrier): Do not instrument thread local
702 variables and emit save/restore for them.
704 2012-01-24 Jason Merrill <jason@redhat.com>
707 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
708 output static aliases.
710 2012-01-24 Jakub Jelinek <jakub@redhat.com>
713 * common.opt (-pie, -shared, pie, shared): Change from Common to
715 * gcc.c (display_help): Display help for -pie and -shared.
717 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
720 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
721 Remove note on size/offset limitation.
722 (AVR Variable Attributes): Add example how to read data located
723 with progmem. Refer to named address spaces.
724 * doc/invoke.texi (AVR Options): Fix typo.
726 2012-01-24 Richard Guenther <rguenther@suse.de>
728 Forward-port to trunk
729 2010-09-21 Jakub Jelinek <jakub@redhat.com>
732 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
733 op0 isn't sufficiently aligned and there is movmisalignM
734 insn for mode, use it to load op0 into a temporary register.
736 2012-01-24 Jakub Jelinek <jakub@redhat.com>
739 * target.def (const_not_ok_for_debug_p): New hook.
740 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
742 * doc/tm.texi: Regenerated.
743 * dwarf2out.c (const_ok_for_output_1): If
744 targetm.const_not_ok_for_debug_p returns true, fail.
745 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
747 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
749 2012-01-23 Kai Tietz <ktietz@redhat.com>
752 * config/i386/predicates.md (symbolic_operand): Allow
753 UNSPEC_PCREL as PIC expression for lea.
754 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
755 * config/i386/i386.c (ix86_delegitimize_address): Handle
756 UNSPEC_PCREL for none-MEM, too.
758 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
760 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
761 (ipa_tm_create_version_alias): Same.
763 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
766 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
767 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
769 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
770 Patrick Marlier <patrick.marlier@gmail.com>
771 Iain Sandoe <developer@sandoe-acoustics.co.uk>
774 * lto-wrapper.c (run_gcc): Pass the LTO section name to
775 simple_object_start_read.
777 2012-01-23 Richard Guenther <rguenther@suse.de>
780 PR tree-optimization/51895
781 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
782 parameter decomposition into BLKmode components.
784 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
786 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
787 fake variables for restrict-qualified pointers whose pointed-to type
788 contains a placeholder.
790 2012-01-23 Richard Guenther <rguenther@suse.de>
792 PR tree-optimization/51949
793 * ipa-split.c (execute_split_functions): Do not split malloc functions.
795 2012-01-23 Jakub Jelinek <jakub@redhat.com>
797 PR rtl-optimization/51933
798 * ree.c (transform_ifelse): Return true right away if dstreg is
799 already wider or equal to cand->mode.
800 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
801 (make_defs_and_copies_lists): Remove defs_list and copies_list
802 arguments, add state argument, just truncate state->work_list
803 instead of always allocating and freeing the vector. Assert that
804 get_defs succeeds instead of returning 2. Changed return type to bool.
805 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
806 have ext_src_mode, see if it has been modified already with the
807 right kind of extension and has been extended before from the
808 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
809 just return true. Remember the original mode in state->modified array.
810 (combine_reaching_defs): Add state argument. Don't allocate and
811 free here def_list, copied_list and vec vectors, instead just
812 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
813 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
814 Add state variable, clear vectors in it, initialize state.modified
815 if needed. Free all the vectors at the end and state.modified too.
816 Don't skip a candidate if the extension expression has been modified.
818 2012-01-22 Douglas B Rupp <rupp@gnat.com>
821 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
822 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
823 (extra_options) interix.opt -> i386/interix.opt"
824 (extra_objs):Add winnt-stubs.o
825 * configure.ac: Add interix to target_os .comm on PE check.
826 * configure: Regenerate.
827 * config/interix3.h: Delete and move bits to..
828 * config/interix.h: Delete and move bits to..
829 * config/i386/i386-interix3.h: Delete and move bits to..
830 * config/i386/i386-interix.h: ..here.
831 (TARGET_CPU_DEFAULT): Remove redefinition.
832 (TARGET_ASM_CONSTRUCTOR): Undefine.
833 (SUBTARGET_SWITCHES): Define for ms-bitfields.
834 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
835 (PTRDIFF_TYPE): Define.
836 (LONG_DOUBLE_TYPE_SIZE): Define.
837 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
838 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
839 (TARGET_SECTION_TYPE_FLAGS): Define.
840 (ASM_DECLARE_FUNCTION_NAME): Define.
841 (ASM_OUTPUT_EXTERNAL): Define.
842 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
843 (ASM_OUTPUT_ALIGNED_BSS): Define.
844 (PCC_BITFIELD_TYPE_MATTERS): Define.
845 (USE_CONST_SECTION): Define.
846 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
847 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
848 (SUPPORTS_ONE_ONLY): Remove.
849 (I386_PE_STRIP_ENCODING): Define.
850 * config/interix.opt: Delete and move bits to..
851 * config/i386/interix.opt: ..here. New.
852 (mpe-aligned-commons): Add.
853 * config/i386/t-interix: Add copyright header.
854 (winnt-stubs.o): Add rule.
856 2012-01-22 Jason Merrill <jason@redhat.com>
859 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
860 for extra name aliases.
862 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
864 PR rtl-optimization/51924
865 * ree.c (combine_set_extension): Improve debugging message.
866 (combine_reaching_defs): Likewise.
867 (get_defs): Rename confusingly named variable.
868 (find_and_remove_re): Skip a candidate if the extension expression has
871 2012-01-21 Robert Millan <rmh@gnu.org>
872 Gerald Pfeifer <gerald@pfeifer.com>
874 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
875 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
877 2012-01-20 Jakub Jelinek <jakub@redhat.com>
879 PR tree-optimization/51914
880 * tree-vect-stmts.c (vectorizable_conversion): For
881 cvt_type && modifier == WIDEN, put temporary with cvt_type
882 at the beginning of vec_dsts and set vec_dest to temporary
885 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
887 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
889 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
891 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
892 * config/rs6000/rs6000.c: Likewise.
894 2012-01-20 Jakub Jelinek <jakub@redhat.com>
897 * config/arm/arm.c (arm_count_output_move_double_insns): Call
898 output_move_double on a copy of operands array.
900 2012-01-20 Cary Coutant <ccoutant@google.com>
901 Dodji Seketeli <dodji@redhat.com>
904 * dwarf2out.c (copy_declaration_context): Return ref to parent
905 of declaration DIE, if necessary.
906 (remove_child_or_replace_with_skeleton): Add new parameter; update
907 caller. Place skeleton DIE under parent DIE of original declaration.
908 Move call to copy_declaration_context to here ...
909 (break_out_comdat_types): ... from here.
911 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
913 PR rtl-optimization/51856
914 * reload.c (find_reloads_subreg_address): Set the address_reloaded
917 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
920 * config/arm/arm.c (arm_print_operand): Correct output of alignment
921 hints for neon loads and stores.
923 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
927 * doc/extend.texi (Named Address Spaces): Split into subsections.
928 (AVR Named Address Spaces): New subsection.
929 (M32C Named Address Spaces): New subsection.
930 (RL78 Named Address Spaces): New subsection.
931 (SPU Named Address Spaces): New subsection.
932 (Variable Attributes): New anchor "AVR Variable Attributes".
933 (AVR Variable Attributes): Rewrite and avoid wording
934 "address space" in this context.
935 * doc/invoke.texi (AVR Options): Rewrite and add documentation
936 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
937 (AVR Built-in Macros): New subsubsection therein.
938 * doc/md.texi (AVR constraints): Remove "C04", "R".
940 2012-01-20 Richard Guenther <rguenther@suse.de>
942 PR tree-optimization/51903
943 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
946 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
949 * config/arm/arm.c (arm_load_pic_register): Use
950 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
951 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
952 (arm_pic_static_addr): Likewise.
953 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
954 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
955 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
956 (pic_load_addr_unified): New.
958 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
961 * function.c (instantiate_virtual_regs_in_insn): Use
962 delete_insn_and_edges when removing a wrong asm insn.
964 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
966 PR rtl-optimization/40761
967 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
968 Add new member loop_num.
969 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
970 (ira_build): Remove the parameter.
972 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
973 (ira.c): Do not build CFG loops for one region allocation. Remove
974 argument from ira_build call.
976 * ira-build.c (init_loop_tree_node): New function.
977 (create_loop_tree_nodes): Use it. Separate the case when CFG
979 (more_one_region_p): Check current_loops.
980 (finish_loop_tree_nodes): Separate the case when CFG loops are not
982 (add_loop_to_tree): Process loop equal to NULL too.
983 (form_loop_tree): Separate the case when CFG loops are not built.
984 Use explicitly number for the root.
985 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
987 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
988 instead of loop->num.
989 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
990 (mark_all_loops_for_removal): Ditto.
991 (remove_unnecessary_regions): Separate the case when CFG loops
993 (ira_build): Remove the parameter. Use explicit number of regions
994 when CFG loops are not built.
996 * ira-color.c (print_loop_title): Separate the case for the root node.
997 Use loop_num instead of loop->num.
998 (move_spill_restore): Use loop_num instead of loop->num.
1000 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
1001 (change_loop): Ditto.
1002 (change_loop): Use loop_num instead of loop->num.
1004 * ira-lives.c (process_bb_node_lives): Ditto.
1006 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
1008 * ira-conflicts.c (print_allocno_conflicts): Ditto.
1010 2012-01-19 Jakub Jelinek <jakub@redhat.com>
1013 * tree-mudflap.c (mf_artificial): New function.
1014 (execute_mudflap_function_ops, execute_mudflap_function_decls,
1015 mx_register_decls, mudflap_enqueue_decl): Use it.
1018 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
1019 numbers in the insn pattern.
1021 2012-01-19 Michael Matz <matz@suse.de>
1023 PR tree-optimization/46590
1024 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
1025 use it in remembering which conflicts we already created.
1026 (add_scope_conflicts): Adjust call to above, (de)allocate helper
1029 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
1032 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
1033 (merge_and_complain): Same.
1035 2012-01-19 Jakub Jelinek <jakub@redhat.com>
1038 * config/initfini-array.h: Guard content of the header
1039 with #ifdef HAVE_INITFINI_ARRAY.
1040 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
1041 Add initfini-array.h to tm_file here.
1042 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
1043 * config.gcc: Don't add initfini-array.h to tm_file here.
1044 * configure: Regenerated.
1046 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
1048 PR rtl-optimization/51505
1049 * df-problems.c (df_kill_notes): New parameter live. Update comment.
1050 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
1051 (df_note_bb_compute): Update the call to df_kill_notes.
1053 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
1055 * trans-mem.c (requires_barrier): Remove call to is_global_var.
1057 2012-01-18 Richard Guenther <rguenther@suse.de>
1059 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
1060 of conversions to void *.
1062 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1063 Richard Sandiford <rdsandiford@googlemail.com>
1067 * optabs.h (simplify_expand_binop): Declare.
1068 * optabs.c (simplify_expand_binop): Make global.
1069 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
1070 endian targets if the source cannot be exactly covered by word
1073 2012-01-17 Jakub Jelinek <jakub@redhat.com>
1076 * hard-reg-set.h (struct hard_reg_set_container): New type.
1077 * target.h (struct hard_reg_set_container): Forward declare.
1078 * target.def (set_up_by_prologue): New target hook.
1079 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
1080 * doc/tm.texi: Regenerated.
1081 * function.c (thread_prologue_and_epilogue_insns): Change
1082 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
1083 Call targetm.set_up_by_prologue on it.
1084 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
1085 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
1087 2012-01-17 Nick Clifton <nickc@redhat.com>
1089 * config/rx/rx.c (rx_can_use_simple_return): New function.
1090 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
1091 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
1093 2012-01-17 Richard Guenther <rguenther@suse.de>
1096 * expr.c (expand_assignment): Take address-space information
1097 from the address operand of MEM_REF and TARGET_MEM_REF.
1098 (expand_expr_real_1): Likewise.
1100 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1102 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
1103 reload dump is requested.
1105 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
1108 * trans-mem.c (requires_barrier): Call may_be_aliased.
1110 2012-01-17 Jakub Jelinek <jakub@redhat.com>
1112 PR tree-optimization/51877
1113 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
1114 call arguments and fndecls compare equal, instead return false if they
1115 don't. Return true only if lhs1 and lhs2 are either both NULL, or
1116 both SSA_NAMEs that are valueized the same, or they satisfy
1119 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1121 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
1123 * configure: Regenerate.
1125 2012-01-16 Jan Hubicka <jh@suse.cz>
1129 * convert.c (convert_to_integer): Use fold_convert for
1130 converting an INTEGER_CST to integer type.
1132 2012-01-16 Jason Merrill <jason@redhat.com>
1135 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
1137 2012-01-16 Jakub Jelinek <jakub@redhat.com>
1140 * config/s390/s390.c (s390_chunkify_start): Don't skip
1141 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
1142 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
1143 If insn is followed by NOTE_INSN_VAR_LOCATION or
1144 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
1145 Don't use location of note insns.
1147 PR tree-optimization/51865
1148 * tree-inline.c (tree_function_versioning): Call remap_decl
1149 on DECL_RESULT whenever it has VOID_TYPE_P type.
1151 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
1153 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
1154 for calls to locally-binding MIPS16 functions if only the return
1155 type uses float regs.
1157 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
1158 Richard Sandiford <rdsandiford@googlemail.com>
1160 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
1161 (SYMBOL_32_HIGH): Likewise.
1162 (mips_output_tls_reloc_directive): Declare.
1163 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
1164 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
1165 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
1166 (mips_lo_relocs, mips_hi_relocs): Make extern.
1167 (mips16_stub_function): Move up file.
1168 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
1169 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
1170 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
1171 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
1172 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
1173 (mips_get_tp): Add MIPS16 support.
1174 (mips_legitimize_tls_address): Remove MIPS16 sorry().
1175 Generalize DTPREL and TPREL handling.
1176 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
1177 Add MIPS16 TLS support.
1178 (mips_output_tls_reloc_directive): New function.
1179 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
1180 * config/mips/predicates.md (symbolic_operand_with_high)
1181 (tls_reloc_operand): New predicates.
1182 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
1183 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
1184 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
1185 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
1186 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
1187 (*tls_get_tp_mips16_call_<mode>): Likewise.
1189 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
1191 PR rtl-optimization/51821
1192 * recog.c (peep2_find_free_register): Determine clobbered registers
1195 2012-01-14 Denis Chertykov <chertykov@gmail.com>
1198 * config/avr/avr-protos.h: Revert change of 2012-01-09.
1199 * config/avr/avr.c: Likewise.
1200 * config/avr/avr.h: Likewise.
1202 2012-01-13 Ian Lance Taylor <iant@google.com>
1205 * tree.h (TYPE_QUALS): Add cast to int.
1206 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
1208 2012-01-13 Ian Lance Taylor <iant@google.com>
1210 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
1211 comparing param_index to VEC_length result.
1213 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
1215 * c-decl.c: Do not include tree-mudflap.h
1216 * tree-optimize.c: Likewise.
1217 * Makefile.in: Update dependencies.
1219 2012-01-13 Richard Guenther <rguenther@suse.de>
1222 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
1223 variable-sized result always use RSO.
1225 2012-01-12 DJ Delorie <dj@redhat.com>
1227 * cfgexpand.c (convert_debug_memory_address): Allow any valid
1228 pointer type, not just the default pointer type.
1230 2012-01-09 Richard Henderson <rth@redhat.com>
1231 Denis Chertykov <chertykov@gmail.com>
1234 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
1235 * config/avr/avr.c (avr_can_eliminate): Simplify.
1236 (avr_initial_elimination_offset): Likewise.
1237 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
1238 (expand_epilogue): Likewise.
1239 (avr_legitimize_address): Gut.
1240 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
1241 (avr_hard_regno_nregs): New.
1242 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
1243 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
1244 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
1245 add soft frame pointer.
1246 (CALL_USED_REGISTERS): Likewise.
1247 (REG_CLASS_CONTENTS): Likewise.
1248 (REGISTER_NAMES): Likewise.
1249 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
1250 (HARD_FRAME_POINTER_REGNUM): New.
1251 (FRAME_POINTER_REGNUM): Use soft frame pointer.
1252 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
1253 remove the HARD_FRAME_POINTER self-elimination.
1255 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
1258 * config/avr/avr.c (avr_encode_section_info): Test for absence of
1259 DECL_EXTERNAL when checking for initializers of progmem variables.
1261 2012-01-12 Ira Rosen <irar@il.ibm.com>
1263 PR tree-optimization/51799
1264 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
1265 that the last operation is a type demotion.
1267 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
1269 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
1270 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
1272 2012-01-11 Jakub Jelinek <jakub@redhat.com>
1275 * combine.c (distribute_notes): If i3 is a noreturn call,
1276 allow old_size to be equal to args_size and make sure the
1277 noreturn call gets REG_ARGS_SIZE note.
1278 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
1279 on noreturn calls even when the delta is 0.
1281 2012-01-11 Nathan Sidwell <nathan@acm.org>
1283 * gcov.c (STRING_SIZE): Remove.
1284 (generate_results): Erase annotations for source files with no
1285 coverage information.
1287 (output_lines): Use it.
1289 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
1291 * gimple.h (gimplify_body): Remove first argument.
1292 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
1293 pointer set here, instead just pass DATA to walk_tree.
1294 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
1295 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
1296 (unvisit_body): Likewise, but with unmark_visited.
1297 (gimplify_body): Remove BODY_P argument and adjust.
1298 (gimplify_function_tree): Adjust call to gimplify_body.
1299 * omp-low.c (finalize_task_copyfn): Likewise.
1301 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
1303 * tree.h (build_function_decl_skip_args): Add boolean parameter.
1304 (build_function_type_skip_args): Delete.
1305 * tree.c (build_function_type_skip_args): Make static and add
1306 SKIP_RETURN parameter. Fix thinko in the handling of variants.
1307 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
1308 pass it to build_function_type_skip_args.
1309 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
1310 (tree_function_versioning): Likewise.
1311 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
1312 build_function_decl_skip_args.
1313 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
1314 and pass it to build_function_decl_skip_args/tree_function_versioning.
1315 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
1316 * ipa-inline-transform.c (save_inline_function_body): Likewise.
1317 * trans-mem.c (ipa_tm_create_version): Likewise.
1318 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
1319 * tree-inline.c (declare_return_variable): Remove always-true test.
1320 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
1321 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
1322 * ipa-split.c (split_function): Skip the return value for the split
1323 part if it doesn't return.
1325 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1327 PR tree-optimization/49642
1328 * ipa-split.c (forbidden_dominators): New variable.
1329 (check_forbidden_calls): New function.
1330 (dominated_by_forbidden): Likewise.
1331 (consider_split): Check for forbidden dominators.
1332 (execute_split_functions): Initialize and free forbidden
1333 dominators info; call check_forbidden_calls.
1335 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1337 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
1339 2012-01-11 Nick Clifton <nickc@redhat.com>
1341 * config/rx/rx.md (return): Define pattern.
1343 2012-01-11 Richard Guenther <rguenther@suse.de>
1345 * doc/extend.texi (malloc attribute): Adjust according to
1348 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
1349 Patrick Marlier <patrick.marlier@gmail.com>
1352 * trans-mem.c (get_cg_data): Traverse aliases if requested.
1353 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
1354 (ipa_tm_note_irrevocable): Same.
1355 (ipa_tm_scan_irr_block): Same.
1356 (ipa_tm_decrement_clone_counts): Same.
1357 (ipa_tm_scan_irr_function): Same.
1358 (ipa_tm_create_version_alias): Same.
1359 (ipa_tm_create_version): Same.
1360 (ipa_tm_transform_calls_redirect): Same.
1361 (ipa_tm_transform_calls): Same.
1362 (ipa_tm_transform_transaction): Same.
1363 (ipa_tm_execute): Same.
1365 2012-01-10 Richard Guenther <rguenther@suse.de>
1368 * opts.c (common_handle_option): Handle -Werror.
1370 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
1372 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
1375 2012-01-10 Jason Merrill <jason@redhat.com>
1377 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
1380 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1382 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
1383 supports R_386_TLS_GD_PLT reloc.
1384 (gcc_cv_as_ix86_tlsldmplt): Check if linker
1385 supports R_386_TLS_LDM_PLT reloc.
1386 * configure: Regenerate.
1387 * config.in: Regenerate.
1389 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
1392 Extend __pgmx semantics to linearize memory.
1393 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
1394 determine if code comes inline or from libgcc.
1395 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
1396 (movmem_qi, movmem_qi): Set constraint #2 to "n".
1397 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
1398 (movmemx_qi, movmemx_hi): New insns.
1399 (xload_<mode>_libgcc): Rewrite to new insn condition.
1400 (xload_<mode>): Remove insns.
1401 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
1402 cases that don't satisfy avr_xload_libgcc_p().
1403 (avr_addr_space_convert): Allow converting in any direction.
1404 (avr_addr_space_subset_p): Return always true.
1405 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
1406 (avr_emit_movmemhi): Ditto.
1407 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
1408 (avr_out_movmem): Ditto.
1409 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
1410 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
1411 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
1412 (avr_encode_section_info): Encode 'progmem' in symbol flags.
1413 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
1415 2012-01-10 Richard Guenther <rguenther@suse.de>
1417 PR tree-optimization/50913
1418 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
1419 Require data-refs to be representable by Graphite with respect
1422 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
1424 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
1425 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
1427 2012-01-10 Tom de Vries <tom@codesourcery.com>
1429 PR rtl-optimization/51271
1430 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
1431 handling annulled branch.
1433 2012-01-10 Richard Henderson <rth@redhat.com>
1435 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
1436 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
1437 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
1438 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
1439 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
1440 arm_expand_vec_perm_const): New.
1441 * config/arm/arm-protos.h: Update.
1442 * config/arm/neon.md (UNSPEC_VCONCAT): New.
1443 (*neon_vswp<VDQX>): New.
1444 (neon_vcombine<VDX>): Use neon_split_vcombine.
1445 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
1446 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
1447 (vec_perm<VE>): New.
1449 2012-01-10 Richard Henderson <rth@redhat.com>
1451 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
1452 use it if reload_completed.
1453 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
1454 arm_output_asm_insn, arm_process_output_memory_barrier,
1455 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
1456 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
1457 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
1458 arm_process_output_sync_insn, arm_output_sync_insn,
1459 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
1460 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
1461 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
1462 (emit_unlikely_jump): New.
1463 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
1464 (arm_split_atomic_op): New.
1465 * config/arm/arm-protos.h: Update.
1466 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
1467 (struct arm_sync_generator): Remove.
1468 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
1469 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
1470 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
1471 (VUNSPEC_LL, VUNSPEC_SC): New.
1472 (sync_result, sync_memory, sync_required_value, sync_new_value,
1473 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
1474 (attr length): Don't use arm_sync_loop_insns.
1475 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
1476 (movsfcc, movdfcc): Likewise.
1477 * config/arm/constraints.md (Ua): New.
1478 * config/arm/prediates.md (mem_noofs_operand): New.
1479 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
1480 (sync_clobber, sync_t2_reqd): Remove.
1481 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
1482 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
1483 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
1484 (arm_sync_compare_and_swap<SIDI>): Remove.
1485 (arm_sync_compare_and_swap<NARROW>): Remove.
1486 (arm_sync_lock_test_and_set<SIDI>): Remove.
1487 (arm_sync_lock_test_and_set<NARROW>): Remove.
1488 (arm_sync_new_<syncop><SIDI>): Remove.
1489 (arm_sync_new_<syncop><NARROW>): Remove.
1490 (arm_sync_new_nand<SIDI>): Remove.
1491 (arm_sync_new_nand<NARROW>): Remove.
1492 (arm_sync_old_<syncop><SIDI>): Remove.
1493 (arm_sync_old_<syncop><NARROW>): Remove.
1494 (arm_sync_old_nand<SIDI>): Remove.
1495 (arm_sync_old_nand<NARROW>): Remove.
1496 (*memory_barrier): Merge arm_output_memory_barrier.
1497 (atomic_compare_and_swap<QHSD>): New.
1498 (atomic_compare_and_swap<NARROW>_1): New.
1499 (atomic_compare_and_swap<SIDI>_1): New.
1500 (atomic_exchange<QHSD>): New.
1501 (cas_cmp_operand, cas_cmp_str): New.
1502 (atomic_op_operand, atomic_op_str): New.
1503 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
1504 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
1505 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
1506 (arm_load_exclusive<NARROW>): New.
1507 (arm_load_exclusivesi, arm_load_exclusivedi): New.
1508 (arm_store_exclusive<QHSD>): New.
1510 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1512 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
1513 reload patterns if -mvsx-scalar-memory.
1515 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
1516 generated, even -mno-vsx-scalar-double was used.
1517 (vsx_xscvdpsp_scalar): Likewise.
1518 (vsx_xscvspdp_scalar2): Likewise.
1520 2012-01-09 Tom de Vries <tom@codesourcery.com>
1521 Andrew Pinski <apinski@cavium.com>
1524 * reorg.c (fill_slots_from_thread): Don't speculate
1525 frame-related insns.
1527 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
1529 * sched-int.h (bb_note): Move to...
1530 * basic-block.h: ...here.
1531 * haifa-sched.c (bb_note): Move to...
1532 * cfgrtl.c: ...here.
1533 * function.c (next_block_for_reg): New function.
1534 (move_insn_for_shrink_wrap): Likewise.
1535 (prepare_shrink_wrap): Rewrite to use the above.
1537 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
1539 * gimple.c (is_gimple_non_addressable): Remove.
1540 * gimple.h: Remove is_gimple_non_addressable.
1541 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
1542 is_gimple_non_addressable.
1543 * trans-mem.c (expand_assign_tm): Same.
1545 2012-01-09 Richard Guenther <rguenther@suse.de>
1547 PR tree-optimization/51775
1548 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
1549 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
1551 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1553 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
1555 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
1557 2012-01-09 Richard Guenther <rguenther@suse.de>
1559 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
1561 2012-01-08 Jan Hubicka <jh@suse.cz>
1563 PR tree-optimize/51680
1564 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
1565 on when known_vals needs to be computed; cleanup.
1567 2012-01-08 Jan Hubicka <jh@suse.cz>
1569 PR tree-optimize/51694
1570 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
1572 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1574 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
1575 for -std=c++98 and -std=c++11 too.
1577 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
1579 * cfgloop.c (cancel_loop): Add free() of bbs array.
1581 2012-01-07 Jan Hubicka <jh@suse.cz>
1583 PR tree-optimization/51600
1584 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
1585 that benefits small functions.
1587 2012-01-07 Jan Hubicka <jh@suse.cz>
1589 * ipa-inline.c (want_inline_small_function_p): Fix formating.
1591 2012-01-07 Jan Hubicka <jh@suse.cz>
1593 PR tree-optimization/51680
1594 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
1595 whose inlining reduce unit size.
1597 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
1600 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
1601 Add canonical node to containing_mem chain after the non-canonical
1602 one, even if there weren't any locs to propagate.
1603 (remove_useless_values): Keep only canonical values.
1604 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
1605 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
1606 canonicalize mem_chain elements that are not discarded.
1608 2012-01-06 Jakub Jelinek <jakub@redhat.com>
1611 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
1612 before emitting functions.
1614 PR gcov-profile/50127
1615 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
1616 clear_aux_for_blocks.
1618 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
1621 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
1623 2012-01-06 Arnaud Charlet <charlet@adacore.com>
1625 * c-decl.c (ext_block): Moved up.
1626 (collect_all_refs, for_each_global_decl): Take ext_block into account.
1628 2012-01-06 Han Shen <shenhan@google.com>
1630 Translate built-in include paths for sysroot.
1631 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
1632 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
1634 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
1635 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
1637 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
1638 control whether sysroot should be prepended to gxx include dir.
1640 * configure: Regenerate.
1642 2012-01-06 Torvald Riegel <triegel@redhat.com>
1644 PR rtl-optimization/51771
1645 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
1646 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
1648 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
1650 PR tree-optimization/51315
1651 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
1652 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
1654 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
1657 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
1658 for shrp pattern. Correctly handle and fixup shift variable.
1659 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
1661 2012-01-05 Jakub Jelinek <jakub@redhat.com>
1664 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
1665 note when !ACCUMULATE_OUTGOING_ARGS.
1667 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
1669 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
1671 (extract_range_from_unary_expr_1): Avoid useless computations.
1673 2012-01-05 Jakub Jelinek <jakub@redhat.com>
1675 PR rtl-optimization/51767
1676 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
1677 of jump_block and add an extra edge for degenerated asm gotos.
1680 * stmt.c (check_unique_operand_names): Don't ICE during error
1681 reporting if i is from labels chain.
1684 * profile.c (branch_prob): Split bbs that have exit edge
1685 and need a fake entry edge too.
1687 2012-01-05 Jan Hubicka <jh@suse.cz>
1690 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
1693 2012-01-05 Richard Guenther <rguenther@suse.de>
1696 * tree-streamer-out.c (write_ts_optimization): New function.
1697 (streamer_write_tree_body): Call it.
1698 * tree-streamer-in.c (lto_input_ts_optimization): New function.
1699 (streamer_read_tree_body): Call it.
1700 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
1702 2012-01-05 Jakub Jelinek <jakub@redhat.com>
1705 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
1706 * gimplify.c (gimplify_cleanup_point_expr): Save and set
1707 in_cleanup_point_expr before gimplify_stmt call and restore it
1709 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
1710 in_cleanup_point_expr is false.
1712 2012-01-05 Richard Guenther <rguenther@suse.de>
1715 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
1717 * toplev.c (process_options): Reject combining mudflap and LTO.
1718 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
1720 2012-01-05 Richard Guenther <rguenther@suse.de>
1722 PR tree-optimization/51760
1723 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
1725 (bit_value_unop): Handle UNDEFINED operands.
1726 (bit_value_binop): Likewise.
1728 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
1730 * config/avr/avr.c (avr_replace_prefix): Remove.
1731 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
1732 (avr_asm_function_rodata_section): Ditto.
1733 (avr_asm_select_section): Ditto.
1735 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
1737 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
1740 2012-01-05 Jakub Jelinek <jakub@redhat.com>
1743 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
1744 calls that have any non-fake successor edges.
1747 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
1749 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
1751 PR tree-optimization/51624
1752 * tree-sra.c (build_ref_for_model): When replicating a chain of
1753 COMPONENT_REFs, stop as soon as the offset would become negative.
1755 2012-01-04 Jakub Jelinek <jakub@redhat.com>
1758 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
1759 in .debug_loc on the floor.
1761 2012-01-04 Andrew Pinski <apinski@cavium.com>
1763 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
1765 2012-01-04 Andrew Pinski <apinski@cavium.com>
1766 Adam Nemet <anemet@caviumnetworks.com>
1768 * config/mips/mips.md (size): Add SI and DI.
1769 (SIZE): New mode attribute.
1770 (U): New code attribute.
1771 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
1772 (mips_lbux_<mode>): Delete.
1773 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
1774 (mips_lhx): Use gen_mips_lhx_extsi.
1775 (mips_lhx_<mode>): Delete.
1777 (mips_l<size>x): New expand.
1778 (mips_lwx_<mode>): Delete.
1779 (mips_l<GPR:size>x_<P:mode>): New pattern.
1780 (*mips_lw<u>x_<P:mode>_ext): Likewise.
1781 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
1782 * config/mips/mips.c (mips_lx_address_p): New function.
1783 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
1784 (dsp64): New availability predicate.
1785 (mips_builtins): Add an entry for __builtin_mips_ldx.
1786 * config/mips/mips.h (ISA_HAS_LBX): New define.
1787 (ISA_HAS_LBUX): Likewise.
1788 (ISA_HAS_LHX): Likewise.
1789 (ISA_HAS_LHUX): Likewise.
1790 (ISA_HAS_LWX): Likewise.
1791 (ISA_HAS_LWUX): Likewise.
1792 (ISA_HAS_LDX): Likewise.
1793 * doc/extend.texi (__builtin_mips_ldx): Document.
1795 2012-01-04 Tristan Gingold <gingold@adacore.com>
1797 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
1798 when long pointers are used.
1799 * config.build (*-*-*vms*): Handle all OpenVMS targets.
1800 (alpha64-dec-*vms*, alpha*-dec-*vms*)
1801 (ia64-hp-*vms*): Remove.
1802 * config/vms/xm-vms64.h: Delete.
1804 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
1807 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
1809 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
1811 * opts.c (finish_options): Remove duplicate sorry.
1813 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
1816 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
1819 2012-01-04 Richard Guenther <rguenther@suse.de>
1822 * tree.c (size_low_cst): New function.
1823 * tree.h (size_low_cst): Declare.
1824 * fold-const.c (fold_comparison): Use it to extract the low
1825 part of the POINTER_PLUS_EXPR offset.
1827 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
1829 Fix clearing ZERO_REG
1830 * config/avr/avr.md (cc): Add alternative "ldi".
1831 (movqi_insn): Use it in cc attribute.
1832 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
1833 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
1834 (output_reload_insisf): Use ZERO_REG to pre-clear register.
1836 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1838 * configure: Regenerate.
1840 2012-01-04 Richard Guenther <rguenther@suse.de>
1842 PR tree-optimization/49651
1843 * tree-ssa-structalias.c (type_can_have_subvars): New function.
1844 (var_can_have_subvars): Use it.
1845 (get_constraint_for_1): Only consider subfields if there can be any.
1847 2012-01-03 Jakub Jelinek <jakub@redhat.com>
1850 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
1851 to its new canonical_cselib_val and the cselib_val was in
1852 first_containing_mem chain, but the canonical_cselib_val was not,
1853 add the latter into the chain.
1854 (cselib_invalidate_mem): Compare canonical_cselib_val of
1855 addr_list chain elt with v.
1858 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
1859 dwarf2out_undef): Allocate e.info using ggc_strdup instead
1861 (output_macinfo_op): Don't ggc_strdup fd->filename.
1862 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
1863 then ggc_strdup it. Don't free inc->info or cur->info.
1864 (output_macinfo): Don't free ref->info or file->info.
1866 2012-01-03 Ira Rosen <irar@il.ibm.com>
1868 PR tree-optimization/51269
1869 * tree-vect-loop-manip.c (set_prologue_iterations): Make
1870 first_niters a pointer.
1871 (slpeel_tree_peel_loop_to_edge): Likewise.
1872 (vect_do_peeling_for_loop_bound): Update call to
1873 slpeel_tree_peel_loop_to_edge.
1874 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
1875 here. Remove it from the parameters list.
1876 (vect_do_peeling_for_alignment): Update calls and compute
1879 2012-01-03 Richard Guenther <rguenther@suse.de>
1881 PR tree-optimization/51070
1882 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
1883 Properly handle calls.
1885 2012-01-03 Richard Guenther <rguenther@suse.de>
1887 PR tree-optimization/51692
1888 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
1889 the LHS of allocation stmts.
1891 2012-01-03 Olivier Hainque <hainque@adacore.com>
1893 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
1895 2012-01-03 Olivier Hainque <hainque@adacore.com>
1897 * collect2.c (main): In AIX specific computations for vector
1898 insertions, use CONST_CAST2 to cast from char ** to const char **.
1900 2012-01-03 Richard Guenther <rguenther@suse.de>
1903 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
1904 the context of a limbo DIE when it does not already exist.
1906 2012-01-03 Jakub Jelinek <jakub@redhat.com>
1908 PR tree-optimization/51719
1909 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
1910 but direct call is, clear direct call's lhs and don't add fallthrough
1911 edge from dcall_bb to join_bb and PHIs.
1913 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1915 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
1916 the instructions emitted by the pattern.
1917 ("*TDC_insn_<mode>"): Add comment.
1919 2012-01-03 Richard Guenther <rguenther@suse.de>
1922 * fold-const.c (fold_comparison): Properly canonicalize
1923 tree offset and HOST_WIDE_INT bit position.
1925 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
1927 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
1928 operands for extzv pattern.
1930 2012-01-02 Jakub Jelinek <jakub@redhat.com>
1933 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
1936 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
1938 * doc/invoke.texi (-flto and related options): Copy-edit.
1940 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1942 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
1944 2012-01-02 Jakub Jelinek <jakub@redhat.com>
1946 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
1949 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1951 * expr.h (move_by_pieces_ninsns): Declare.
1952 * expr.c (move_by_pieces_ninsns): Make external.
1953 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
1954 (mips_store_by_pieces_p): Likewise.
1955 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
1956 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
1957 * config/mips/mips.c (mips_move_by_pieces_p): New function.
1958 (mips_store_by_pieces_p): Likewise.
1960 2012-01-02 Jakub Jelinek <jakub@redhat.com>
1962 * passes.c (register_one_dump_file): Free full_name.
1964 * reload1.c (reload): Don't allocate reg_max_ref_width here.
1965 (calculate_elim_costs_all_insns): Free offsets_at and
1966 offsets_known_at at the end and clear the pointers.
1968 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
1970 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
1971 this option introduced in r180739.
1973 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
1976 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
1977 (tmake_file target=avr): Add avr/t-multilib.
1979 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
1980 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
1981 * config/avr/genmultilib.awk: New file.
1982 * config/avr/t-multilib: New auto-generated file.
1983 * config/avr/multilib.h: New auto-generated file.
1984 * config/avr/t-avr (AVR_MCUS): New variable.
1985 (genopt.sh): Use it.
1986 (s-mlib): Depend on t-multilib.
1987 (t-multilib, multilib.h): New dependencies.
1988 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
1989 (MULTILIB_OPTIONS): Remove.
1990 (MULTILIB_MATCHES): Remove.
1991 (MULTILIB_DIRNAMES): Remove.
1992 (MULTILIB_EXCEPTIONS): Remove:
1993 * config/avr/genopt.sh: Don't use hard coded file name;
1994 pass AVR_MCUS from t-avr instead.
1996 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
1998 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
2000 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
2002 Implement light-weight DImode support.
2003 * config/avr/avr-dimode.md: New file.
2004 * config/avr/avr.md: Include it.
2005 (adjust_len): Add plus64, compare64.
2006 (HIDI): Remove code iterator.
2007 (code_stdname): New code attribute.
2008 (rotx, rotsmode): Remove DI.
2009 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
2011 * config/avr/avr-protos.h (avr_have_dimode): New.
2012 (avr_out_plus64, avr_out_compare64): New.
2013 * config/avr/avr.c (avr_out_compare): Handle DImode.
2014 (avr_have_dimode): New variable definition and initialization.
2015 (avr_out_compare64, avr_out_plus64): New functions.
2016 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
2017 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
2018 (avr_compare_pattern): Skip DImode comparisons.
2020 2012-01-02 Revital Eres <revital.eres@linaro.org>
2022 * ddg.c (def_has_ccmode_p): New function.
2023 (add_cross_iteration_register_deps,
2024 create_ddg_dep_from_intra_loop_link): Call it.
2026 2012-01-02 Richard Guenther <rguenther@suse.de>
2029 * invoke.texi (fassociative-math): Remove spurious paranthesis.
2031 2012-01-01 Jakub Jelinek <jakub@redhat.com>
2033 * gcc.c (process_command): Update copyright notice dates.
2034 * gcov.c (print_version): Likewise.
2035 * gcov-dump.c (print_version): Likewise.
2036 * mips-tfile.c (main): Likewise.
2037 * mips-tdump.c (main): Likewise.
2039 2012-01-01 Ira Rosen <irar@il.ibm.com>
2041 PR tree-optimization/51704
2042 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
2043 a use is inside the basic block or loop before accessing its vect info.
2045 2012-01-01 Jan Hubicka <jhjh@suse.cz>
2047 PR rtl-optimization/51069
2048 * cfgloopmanip.c (remove_path): Removing path making irreducible
2049 region unconditional makes BB part of the region.
2051 2012-01-01 Jakub Jelinek <jakub@redhat.com>
2053 PR tree-optimization/51683
2054 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
2055 calls with side-effects.
2056 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2058 Copyright (C) 2012 Free Software Foundation, Inc.
2060 Copying and distribution of this file, with or without modification,
2061 are permitted in any medium without royalty provided the copyright
2062 notice and this notice are preserved.