2 2013-03-14 Ian Bolton <ian.bolton@arm.com>
4 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
5 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7 2013-03-14 Ian Bolton <ian.bolton@arm.com>
9 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
12 2013-03-14 Jakub Jelinek <jakub@redhat.com>
14 PR tree-optimization/53265
15 * common.opt (Waggressive-loop-optimizations): New option.
16 * tree-ssa-loop-niter.c: Include tree-pass.h.
17 (do_warn_aggressive_loop_optimizations): New function.
18 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
19 if number_of_latch_executions returned constant.
20 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
21 early. If number_of_latch_executions returned constant, set
22 nb_iterations_upper_bound back to it.
23 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
25 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
26 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
28 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
29 (MULTILIB_OSDIRNAMES): Set.
30 * genmultilib: If defaultosdirname doesn't start with :: , set
31 defaultosdirname2 instead, clear it and emit two . multilib_raw
32 entries instead of just one.
34 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
36 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
37 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
38 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
39 (SUBTARGET_OVERRIDE_OPTIONS): New.
41 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
44 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
45 (musermode): Convert to Var(TARGET_USERMODE).
46 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
47 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
48 * config/sh/sh.c (sh_option_override): Use
49 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
50 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
52 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
54 (udivsi3_i4_single, divsi3_i4_single): Use
55 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
57 2013-03-13 Dave Korn <dave.korn.cygwin@....>
59 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
62 2013-03-13 Richard Biener <rguenther@suse.de>
64 PR tree-optimization/56608
65 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
66 calls when vectorizing basic-blocks.
68 2013-03-13 Jakub Jelinek <jakub@redhat.com>
71 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
74 2013-03-12 Jakub Jelinek <jakub@redhat.com>
76 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
78 2013-03-11 Jan Hubicka <jh@suse.cz>
81 * lto-streamer-out.c (output_symbol_p): Skip references from
82 constructors of external variables.
84 2013-03-11 Jan Hubicka <jh@suse.cz>
87 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
89 * emit-rtl.c (verify_rtx_sharing): Likewise.
90 (copy_insn_1): Likewise.
91 * rtl.c (copy_rtx): Likewise.
93 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
96 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
97 output_operand_lossage message.
99 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
102 * arm.c (shift_op): Validate RTL pattern on the fly.
103 (arm_print_operand, case 'S'): Don't use shift_operator to validate
106 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
109 * config/pa/pa.md (call_value): Check for calls to powf and direct to
110 new call patterns that clobber %fr12.
111 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
112 split and postreload patterns.
113 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
114 registers %fr12 and %fr12R as call used.
116 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
118 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
119 (canon_address, record_store, replace_read, check_mem_read_rtx,
120 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
121 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
122 rest_of_handle_dse): Likewise.
124 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
127 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
129 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
130 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
131 (save_optabs_if_changed): Replace with...
132 (init_tree_optimization_optabs): ...this.
133 * optabs.c (save_optabs_if_changed): Rename to...
134 (init_tree_optimization_optabs): ...this. Take the optimization node
135 as argument. Do nothing if the base optabs are already correct.
136 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
138 * function.h (function): Remove optabs field.
139 * function.c (invoke_set_current_function_hook): Call
140 init_tree_optimization_optabs. Use the result to initialize
143 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
145 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
146 if GTMA_HAS_NO_INSTRUMENTATION.
147 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
148 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
149 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
150 * gimple-pretty-print.c (dump_gimple_transaction): Handle
151 GTMA_HAS_NO_INSTRUMENTATION.
153 2013-03-08 Jakub Jelinek <jakub@redhat.com>
155 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
158 2013-03-08 Marek Polacek <polacek@redhat.com>
159 Jakub Jelinek <jakub@redhat.com>
161 PR tree-optimization/56478
162 * predict.c (is_comparison_with_loop_invariant_p): Change the
163 type of loop_step to tree.
164 (predict_loops): Adjust.
165 (predict_iv_comparison): Perform the computations on double_ints.
167 2013-03-08 Richard Biener <rguenther@suse.de>
169 PR tree-optimization/56570
170 * tree-cfg.c (verify_expr_location_1): Verify locations for
172 * tree-sra.c (create_access_replacement): Strip locations
173 from DECL_DEBUG_EXPRs.
175 2013-03-08 Richard Biener <rguenther@suse.de>
177 * tree-inline.c (expand_call_inline): Do not associate
178 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
179 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
181 2013-03-08 Richard Biener <rguenther@suse.de>
183 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
184 or block changes with -Og. Fix for location / block encoding
185 changes and PHI arguments with locations.
187 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
189 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
191 (struct output_info): Likewise.
192 (register_overhead): Remove bad gcc_assert.
193 (bitmap_find_bit): If there is only a single bitmap element, do not
194 count a miss as a search.
195 (print_statistics): Update for counter type changes.
196 (dump_bitmap_statistics): Likewise. Print headers such that they
197 are properly lined up with the printed counters.
199 2013-03-07 Jakub Jelinek <jakub@redhat.com>
201 PR tree-optimization/56559
202 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
203 check that it has only a single use.
205 2013-03-07 Richard Biener <rguenther@suse.de>
207 * doc/invoke.texi (fwhole-program): Discourage use in combination
210 2013-03-06 Jakub Jelinek <jakub@redhat.com>
212 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
214 PR tree-optimization/56539
215 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
216 instead of GSI_CONTINUE_LINKING as last argument to
217 force_gimple_operand_gsi. Adjust function comment.
219 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
223 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
224 promoted mode, convert the result back to the original mode.
226 2013-03-06 Richard Biener <rguenther@suse.de>
229 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
230 (insert_updated_phi_nodes_compare_uids): New function.
231 (update_ssa): Sort symbols_to_rename after UID before
232 traversing it to insert PHI nodes.
234 2013-03-06 Richard Biener <rguenther@suse.de>
237 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
238 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
241 2013-02-13 Richard Biener <rguenther@suse.de>
244 * varasm.c (output_constant_def_1): Get the decl representing
245 the constant as argument.
246 (output_constant_def): Wrap output_constant_def_1.
247 (make_decl_rtl): Use output_constant_def_1 with the decl
248 representing the constant.
249 (build_constant_desc): Optionally re-use a decl already
250 representing the constant.
251 (tree_output_constant_def): Adjust.
253 2013-03-06 Joey Ye <joey.ye@arm.com>
256 * gcc.c (convert_white_space): New function.
257 (main): Handles white space in function name.
259 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
262 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
263 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
264 to SH_DIV_CALL_TABLE for TARGET_SH2.
265 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
267 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
270 2013-03-05 Sterling Augustine <saugustine@google.com>
271 Cary Coutant <ccoutant@google.com>
274 * dwarf2out.c (resolve_addr): Don't call
275 remove_loc_list_addr_table_entries a second time for the same
278 2013-03-05 Jakub Jelinek <jakub@redhat.com>
281 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
282 (avoid_complex_debug_insns): New function.
283 (expand_debug_locations): Call it.
285 PR rtl-optimization/56484
286 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
287 lifetimes of hard registers on small register class machines.
289 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
291 * config/microblaze/microblaze-protos.h: Rename
292 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
293 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
295 (microblaze_fast_interrupt_function_p): New function.
296 (microblaze_is_interrupt_handler): Rename to
297 microblaze_is_interrupt_variant and add fast_interrupt check.
298 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
299 (save_restore_insns): Likewise.
300 (compute_frame_size): Likewise.
301 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
302 (microblaze_globalize_label): Likewise.
303 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
304 * config/microblaze/microblaze.md: Use wrapper
305 microblaze_is_interrupt_variant.
307 2013-03-05 Kai Tietz <ktietz@redhat.com>
309 * sdbout.c (sdbout_one_type): Switch to current function's section
312 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
314 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
317 2013-03-05 Jakub Jelinek <jakub@redhat.com>
320 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
321 if VALGRIND_GET_VBITS is defined, temporarily make object
322 memory all defined, and restore previous valgrind addressability
323 and definability afterwards. Free this_object at the end.
326 * lra.c (lra): Call lra_clear_live_ranges if live_p,
327 right before calling lra_create_live_ranges, also call it
328 when clearing live_p. Only call lra_clear_live_ranges
329 at the end if live_p.
332 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
334 2013-03-05 Richard Biener <rguenther@suse.de>
336 PR tree-optimization/56521
337 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
340 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
343 * except.h (remove_unreachable_eh_regions): New prototype.
344 * except.c (remove_eh_handler_splicer): New function, split out
345 of remove_eh_handler.
346 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
347 warning about running it on many EH regions one at a time.
348 (remove_unreachable_eh_regions_worker): New function, walk the
349 EH tree in depth-first order and remove non-marked regions.
350 (remove_unreachable_eh_regions): New function.
351 * tree-eh.c (mark_reachable_handlers): New function, split out
352 from remove_unreachable_handlers.
353 (remove_unreachable_handlers): Use mark_reachable_handlers and
354 remove_unreachable_eh_regions.
355 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
356 and remove_unreachable_eh_regions.
358 2013-03-05 Richard Biener <rguenther@suse.de>
361 * loop-init.c (fix_loop_structure): Remove loops in two stages,
362 not freeing them until the end.
364 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
366 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
368 2013-03-05 Richard Biener <rguenther@suse.de>
370 PR tree-optimization/56270
371 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
372 of loads after scheduling an SLP instance.
374 2013-03-05 Jakub Jelinek <jakub@redhat.com>
376 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
378 (check_gcc_parallelize): Run guality.exp as a separate job from
379 vect.exp with unsorted.exp and $(dg_target_exps) separately from
380 struct-layout-1.exp with stackalign.exp.
382 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
385 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
386 load_index sbitmap even if some bit in it isn't set.
389 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
390 (discover_iteration_bound_by_body_walk): Change queues to
391 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
392 spelling in comment. Call safe_push on queues[bound_index] directly.
393 Release queues[queue_index] in every iteration unconditionally.
394 Release bounds vector.
397 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
398 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
399 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
402 2013-03-05 Richard Biener <rguenther@suse.de>
405 * tree-inline.c (remap_blocks_to_null): New function.
406 (expand_call_inline): When expanding a call stmt without
407 an associated block inline remap all callee blocks to NULL.
409 2013-03-05 Jakub Jelinek <jakub@redhat.com>
411 PR rtl-optimization/56494
412 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
413 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
414 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
417 * sel-sched-ir.c (free_sched_pools): Release
418 succs_info_pool.stack[succs_info_pool.max_top] vectors too
419 if succs_info_pool.max_top isn't -1.
422 * opts.c (opts_obstack, opts_concat): Moved to...
423 * opts-common.c (opts_obstack, opts_concat): ... here.
425 2013-03-04 Jakub Jelinek <jakub@redhat.com>
428 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
430 2013-03-04 Martin Jambor <mjambor@suse.cz>
432 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
433 all appropriate places.
435 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
437 PR tree-optimization/56424
438 * ipa-split.c (split_function): Do not set the RSO flag if result is
439 not by reference and its type is a register type.
441 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
443 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
444 (microblaze_legitimate_pic_operand): Likewise
445 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
446 new function microblaze_legitimate_pic_operand
447 * config/microblaze/microblaze-protos.h
448 (microblaze_legitimate_pic_operand): Declare.
450 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
452 * config/microblaze/predicates.md (call_insn_simple_operand):
453 New predicate for supported rtx code types.
454 * config/microblaze/microblaze.md (call_internal1): Use
455 call_insn_simple_operand predicate.
457 2013-03-04 Jakub Jelinek <jakub@redhat.com>
460 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
461 partitions.ordered_remove.
464 * tree-vect-stmts.c (vectorizable_conversion): Don't call
465 vec_oprnds0.create (1) for modifier == NONE.
468 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
469 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
470 vec_oprnds1 right before pushing anything to it for
474 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
475 set nbbs to 0 instead of having separate code path.
476 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
477 instead of false as last argument if returning NULL.
479 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
481 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
482 the attribute is now called "target" instead of "option".
483 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
484 * doc/tm.texi.in (Target Attributes): Likewise document the correct
485 attribute/pragma name for TARGET_OPTION_VALID_P and
486 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
487 * doc/tm.texi: Regenerated.
489 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
491 * config/microblaze/microblaze.c:
492 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
493 * config/microblaze/microblaze.h: Add -mxl-reorder to
495 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
496 instructions emitted if TARGET_REORDER.
497 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
498 or 0 for -m/-mno case, but initialises as 2 to detect default use case
501 2013-03-01 Xinliang David Li <davidxl@google.com>
503 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
506 2013-03-01 Jakub Jelinek <jakub@redhat.com>
509 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
510 vector even when returning true. Fix up function comment formatting.
513 * ira-build.c (ira_loop_nodes_count): New variable.
514 (create_loop_tree_nodes): Initialize it.
515 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
518 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
519 method on dr_chain and result_chain.
520 * tree-vect-stmts.c (vectorizable_store): Only call
521 result_chain.create if j == 0.
524 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
525 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
526 before overwriting it.
528 2013-03-01 Tobias Burnus <burnus@net-b.de>
530 * doc/extended.texi (C Extensions): Change order in @menu
532 (Other MIPS Built-in Functions): Move last MIPS entry before
533 "picoChip Built-in Functions".
534 (SH Built-in Functions): Move after RX Built-in Functions.
535 * doc/gcc.texi (Introduction): Change order in @menu
537 * doc/md.texi (Constraints): Ditto.
538 * gty.texi (Type Information): Ditto.
539 (User-provided marking routines for template types): Make
541 * doc/invoke.texi (AArch64 Options): Move before
542 "Adapteva Epiphany Options".
544 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
545 Jakub Jelinek <jakub@redhat.com>
548 * asan.c (gate_asan): Lookup no_sanitize_address instead of
549 no_address_safety_analysis attribute.
550 * doc/extend.texi (no_address_safety_attribute): Rename to
551 no_sanitize_address attribute, mention no_address_safety_analysis
552 attribute as deprecated alias.
554 2013-02-28 Jakub Jelinek <jakub@redhat.com>
557 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
558 type to vec<vec<tree> > *.
559 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
560 to be vec<tree> instead of vec<tree> *, set vec_defs
561 to vNULL and call vec_defs.create (number_of_vects), adjust other
563 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
564 vectorizable_condition): Adjust vect_get_slp_defs callers.
566 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
568 * config/aarch64/aarch64.c
569 (aarch64_float_const_representable): Remove unused variable.
571 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
573 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
575 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
577 * config/aarch64/aarch64-builtins.c
578 (aarch64_init_simd_builtins): Make static.
580 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
582 * config/aarch64/aarch64.c
583 (aarch64_simd_make_constant): Make static.
585 2013-02-28 Martin Jambor <mjambor@suse.cz>
587 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
588 with no initialization to the RHS of debug statements.
590 2013-02-28 Martin Jambor <mjambor@suse.cz>
592 PR tree-optimization/56294
593 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
595 (get_access_replacement): Do not call create_access_replacement.
596 Assert a replacement exists.
597 (get_repl_default_def_ssa_name): Create the replacement declaration
600 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
602 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
605 2013-02-28 Marek Polacek <polacek@redhat.com>
607 PR rtl-optimization/56466
608 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
609 if we're changing a loop.
610 (peel_loops_completely): Likewise.
612 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
615 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
617 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
620 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
621 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
622 INTX_FTYPE_FX, FX_FTYPE_INTX.
623 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
625 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
627 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
628 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
629 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
630 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
631 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
632 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
633 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
634 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
635 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
636 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
637 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
638 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
639 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
640 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
641 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
642 (avrxmega6): Increase max flash segments from 5 to 6.
643 * config/avr/t-multilib: Regenerate.
644 * config/avr/avr-tables.opt: Regenerate.
645 * doc/avr-mmcu.texi: Regenerate.
647 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
649 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
650 (avr_device_to_arch): Rename to avr_device_to_ld.
651 (avr_device_to_as): New prototype.
652 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
653 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
654 * config/avr/driver-avr.c (avr_device_to_as): New.
655 (avr_device_to_arch): Rename to avr_device_to_ld.
657 2013-02-27 Jakub Jelinek <jakub@redhat.com>
660 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
661 method on dr_chain and result_chain.
664 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
665 pointer_set_destroy on not_executed_last_iteration.
668 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs
672 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
673 FOR_EACH_DEFINED_FUNCTION when freeing state.
676 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
678 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
682 * ipa-cp.c (decide_whether_version_node): Call vec_free on
683 known_aggs[i].items and release known_aggs vector.
686 * ipa-reference.c (propagate): Free node_info even for alias nodes.
688 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
690 * config/microblaze/microblaze.c (microblaze_emit_compare):
691 Use xor for EQ/NE comparisions.
692 * config/microblaze/microblaze.md (cstoresf4): Add constraints
693 (cbranchsf4): Adjust operator to comparison_operator.
695 2013-02-27 Jakub Jelinek <jakub@redhat.com>
698 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
700 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
701 vec_safe_push, always update *slot.
702 (redirect_edge_var_map_clear): Use vec_free.
703 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
704 (free_var_map_entry): Use vec_free.
705 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
706 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
708 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
711 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
712 when the may_trap_p bit of the exprs being merged differs.
713 Reorder tests for speculativeness in the logical and operator.
715 2013-02-27 Jakub Jelinek <jakub@redhat.com>
717 * incpath.c (add_standard_paths): Use reconcat instead of concat
718 where appropriate and avoid leaking memory.
720 * opts.h: Include obstack.h.
721 (opts_concat): New prototype.
722 (opts_obstack): New declaration.
723 * opts.c (opts_concat): New function.
724 (opts_obstack): New variable.
725 (init_options_struct): Call gcc_init_obstack on opts_obstack.
726 (finish_options): Use opts_concat instead of concat
727 and XOBNEWVEC instead of XNEWVEC.
728 * opts-common.c (generate_canonical_option, decode_cmdline_option,
729 generate_option): Likewise.
730 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
731 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
734 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
735 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
737 2013-02-26 Jakub Jelinek <jakub@redhat.com>
740 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
742 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
744 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
745 (arm_block_move_unaligned_straight): Likewise.
746 (arm_adjust_block_mem): Likewise.
748 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
751 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
752 temp, cond and label.
753 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
756 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
757 * config/c6x/c6x.h (dbx_register_map): Update declaration.
760 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
761 of prologue/epilogue functions.
764 * config/tilegx/tilegx.c (tilegx_expand_prologue):
765 Remove unused variable cfa_offset.
766 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
769 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
770 type promotion to unsigned.
773 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
774 for HOST_WIDE_INT of 32 bit / same size as int.
775 (arm_block_move_unaligned_straight): Likewise.
776 (arm_adjust_block_mem): Likewise.
779 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
782 2013-02-26 Marek Polacek <polacek@redhat.com>
784 PR tree-optimization/56426
785 * tree-ssa-loop.c (tree_ssa_loop_init): Always call
788 2013-02-26 Richard Biener <rguenther@suse.de>
791 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
792 unused variable loops.
794 2013-02-26 Jakub Jelinek <jakub@redhat.com>
796 PR tree-optimization/56448
797 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
798 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
799 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
800 later operands of the references, or even first operand for
801 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
803 PR tree-optimization/56443
804 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
805 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
806 to type_for_mode langhook.
808 2013-02-25 Matt Turner <mattst88@gmail.com>
810 * doc/invoke.texi: Document r4700.
812 2013-02-25 Richard Biener <rguenther@suse.de>
814 PR tree-optimization/56175
815 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
817 (simplify_bitwise_binary): ... here. Also guard the conversion
818 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
820 2013-02-25 Catherine Moore <clm@codesourcery.com>
823 2013-02-24 Catherine Moore <clm@codesourcery.com>
824 Maciej W. Rozycki <macro@codesourcery.com>
825 Tom de Vries <tom@codesourcery.com>
826 Nathan Sidwell <nathan@codesourcery.com>
827 Iain Sandoe <iain@codesourcery.com>
828 Nathan Froyd <froydnj@codesourcery.com>
829 Chao-ying Fu <fu@mips.com>
830 * doc/extend.texi: (micromips, nomicromips, nocompression):
831 Document new function attributes.
832 * doc/invoke.texi (minterlink-compressed, mmicromips,
833 m14k, m14ke, m14kec): Document new options.
834 (minterlink-mips16): Update documentation.
835 * doc/md.texi (ZC, ZD): Document new constraints.
836 * configure.ac (gcc_cv_as_micromips): Check if linker
837 supports the .set micromips directive.
838 * configure: Regenerate.
839 * config.in: Regenerate.
840 * config/mips/mips-tables.opt: Regenerate.
841 * config/mips/micromips.md: New file.
842 * constraints.md (ZC, AD): New constraints.
843 * config/mips/predicates.md (movep_src_register): New predicate.
844 (movep_src_operand): New predicate.
845 (non_volatile_mem_operand): New predicate.
846 * config/mips/mips.md (multimem): New type.
847 (length): Differentiate between 17-bit and 18-bit branch offsets.
848 (MOVEP1, MOVEP2): New mode iterator.
849 (mov_<load>l): Use ZC constraint.
850 (mov_<load>r): Likewise.
851 (mov_<store>l): Likewise.
852 (mov_<store>r): Likewise.
853 (*branch_equality<mode>_inverted): Add microMIPS support.
854 (*branch_equality<mode>): Likewise.
855 (*jump_absolute): Likewise.
856 (indirect_jump_<mode>): Likewise.
857 (tablejump_<mode>): Likewise.
858 (<optab>_internal): Likewise.
859 (sibcall_internal): Likewise.
860 (sibcall_value_internal): Likewise.
861 (prefetch): Use constraint ZD.
862 * config/mips/mips.opt (minterlink-compressed): New option.
863 (minterlink-mips16): Now an alias for minterlink-compressed.
864 (mmicromips): New option.
865 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
866 (compare_and_swap_12): Likewise.
867 (sync_add<mode>): Likewise.
868 (sync_<optab>_12): Likewise.
869 (sync_old_<optab>_12): Likewise.
870 (sync_new_<optab>_12): Likewise.
871 (sync_nand_12): Likewise.
872 (sync_old_nand_12): Likewise.
873 (sync_new_nand_12): Likewise.
874 (sync_sub<mode>): Likewise.
875 (sync_old_add<mode>): Likewise.
876 (sync_old_sub<mode>): Likewise.
877 (sync_new_add<mode>): Likewise.
878 (sync_new_sub<mode>): Likewise.
879 (sync_<optab><mode>): Likewise.
880 (sync_old_<optab><mode>): Likewise.
881 (sync_new_<optab><mode>): Likewise.
882 (sync_nand<mode>): Likewise.
883 (sync_old_nand<mode>): Likewise.
884 (sync_new_nand<mode>): Likewise.
885 (sync_lock_test_and_set<mode>): Likewise.
886 (test_and_set_12): Likewise.
887 (atomic_compare_and_swap<mode>): Likewise.
888 (atomic_exchange<mode>_llsc): Likewise.
889 (atomic_fetch_add<mode>_llsc): Likewise.
890 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
891 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
892 (umips_save_restore_pattern_p): Likewise.
893 (umips_load_store_pair_p): Likewise.
894 (umips_output_load_store_pair): Likewise.
895 (umips_movep_target_p): Likewise.
896 (umips_12bit_offset_address_p): Likewise.
897 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
898 (mips_base_mips16): Rename this...
899 (mips_base_compression_flags): ...to this. Update all uses.
900 (mips_attribute_table): Add micromips, nomicromips and nocompression.
901 (mips_mips16_decl_p): Delete.
902 (mips_nomips16_decl_p): Delete.
903 (mips_get_compress_on_flags): New function.
904 (mips_get_compress_off_flags): New function.
905 (mips_get_compress_mode): New function.
906 (mips_get_compress_on_name): New function.
907 (mips_get_compress_off_name): New function.
908 (mips_insert_attributes): Support multiple compression types.
909 (mips_merge_decl_attributes): Likewise.
910 (umips_12bit_offset_address_p): New function.
911 (mips_start_function_definition): Emit .set micromips directive.
912 (mips_call_may_need_jalx_p): New function.
913 (mips_function_ok_for_sibcall): Add microMIPS support.
914 (mips_print_operand_punctuation): Support short delay slots and
916 (umips_swm_mask, umips_swm_encoding): New.
917 (umips_build_save_restore): New function.
918 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
919 (was_mips16_p): Remove.
920 (old_compression_mode): New.
921 (mips_set_compression_mode): New function.
922 (mips_set_current_function): Add microMIPS support.
923 (mips_option_override): Likewise.
924 (umips_save_restore_pattern_p): New function.
925 (umips_output_save_restore): New function.
926 (umips_load_store_pair_p_1): New function.
927 (umips_load_store_pair_p): New function.
928 (umips_output_load_store_pair_1): New function.
929 (umips_output_load_store_pair): New function.
930 (umips_movep_target_p) New function.
931 (mips_prepare_pch_save): Add microMIPS support.
932 * config/mips/mips.h (TARGET_COMPRESSION): New.
933 (TARGET_CPU_CPP_BUILTINS): Update macro
934 to use new compression flags and to support microMIPS.
935 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
936 (MIPS_ARCH_FLOAT_SPEC): Likewise.
937 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
938 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
939 (ASM_SPEC): Support mmicromips and mno-micromips.
940 (M16STORE_REG_P): New macro.
941 (MIPS_CALL): Support TARGET_MICROMIPS.
942 (MICROMIPS_J): New macro.
943 (mips_base_mips16): Rename this...
944 (mips_base_compression_flags): ...to this.
945 (UMIPS_12BIT_OFFSET_P): New macro.
946 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
947 (MULTILIB_DIRNAMES): Likewise.
949 2013-02-25 Tom de Vries <tom@codesourcery.com>
951 PR rtl-optimization/56131
952 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
953 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
954 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
956 2013-02-25 Tobias Burnus <burnus@net-b.de>
958 * doc/invoke.texi (-fsanitize=): Move from optimization
959 to debugging options.
961 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
963 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
965 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
966 Alexander Monakov <amonakov@ispras.ru>
969 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
970 flush pending lists also on non-jumps. Adjust comment.
972 2013-02-24 Catherine Moore <clm@codesourcery.com>
973 Maciej W. Rozycki <macro@codesourcery.com>
974 Tom de Vries <tom@codesourcery.com>
975 Nathan Sidwell <nathan@codesourcery.com>
976 Iain Sandoe <iain@codesourcery.com>
977 Nathan Froyd <froydnj@codesourcery.com>
978 Chao-ying Fu <fu@mips.com>
980 * doc/extend.texi: (micromips, nomicromips, nocompression):
981 Document new function attributes.
982 * doc/invoke.texi (minterlink-compressed, mmicromips,
983 m14k, m14ke, m14kec): Document new options.
984 (minterlink-mips16): Update documentation.
985 * doc/md.texi (ZC, ZD): Document new constraints.
986 * configure.ac (gcc_cv_as_micromips): Check if linker
987 supports the .set micromips directive.
988 * configure: Regenerate.
989 * config.in: Regenerate.
990 * config/mips/mips-tables.opt: Regenerate.
991 * config/mips/micromips.md: New file.
992 * constraints.md (ZC, AD): New constraints.
993 * config/mips/predicates.md (movep_src_register): New predicate.
994 (movep_src_operand): New predicate.
995 (non_volatile_mem_operand): New predicate.
996 * config/mips/mips.md (multimem): New type.
997 (length): Differentiate between 17-bit and 18-bit branch offsets.
998 (MOVEP1, MOVEP2): New mode iterator.
999 (mov_<load>l): Use ZC constraint.
1000 (mov_<load>r): Likewise.
1001 (mov_<store>l): Likewise.
1002 (mov_<store>r): Likewise.
1003 (*branch_equality<mode>_inverted): Add microMIPS support.
1004 (*branch_equality<mode>): Likewise.
1005 (*jump_absolute): Likewise.
1006 (indirect_jump_<mode>): Likewise.
1007 (tablejump_<mode>): Likewise.
1008 (<optab>_internal): Likewise.
1009 (sibcall_internal): Likewise.
1010 (sibcall_value_internal): Likewise.
1011 (prefetch): Use constraint ZD.
1012 * config/mips/mips.opt (minterlink-compressed): New option.
1013 (minterlink-mips16): Now an alias for minterlink-compressed.
1014 (mmicromips): New option.
1015 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1016 (compare_and_swap_12): Likewise.
1017 (sync_add<mode>): Likewise.
1018 (sync_<optab>_12): Likewise.
1019 (sync_old_<optab>_12): Likewise.
1020 (sync_new_<optab>_12): Likewise.
1021 (sync_nand_12): Likewise.
1022 (sync_old_nand_12): Likewise.
1023 (sync_new_nand_12): Likewise.
1024 (sync_sub<mode>): Likewise.
1025 (sync_old_add<mode>): Likewise.
1026 (sync_old_sub<mode>): Likewise.
1027 (sync_new_add<mode>): Likewise.
1028 (sync_new_sub<mode>): Likewise.
1029 (sync_<optab><mode>): Likewise.
1030 (sync_old_<optab><mode>): Likewise.
1031 (sync_new_<optab><mode>): Likewise.
1032 (sync_nand<mode>): Likewise.
1033 (sync_old_nand<mode>): Likewise.
1034 (sync_new_nand<mode>): Likewise.
1035 (sync_lock_test_and_set<mode>): Likewise.
1036 (test_and_set_12): Likewise.
1037 (atomic_compare_and_swap<mode>): Likewise.
1038 (atomic_exchange<mode>_llsc): Likewise.
1039 (atomic_fetch_add<mode>_llsc): Likewise.
1040 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1041 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1042 (umips_save_restore_pattern_p): Likewise.
1043 (umips_load_store_pair_p): Likewise.
1044 (umips_output_load_store_pair): Likewise.
1045 (umips_movep_target_p): Likewise.
1046 (umips_12bit_offset_address_p): Likewise.
1047 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1048 (mips_base_mips16): Rename this...
1049 (mips_base_compression_flags): ...to this. Update all uses.
1050 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1051 (mips_mips16_decl_p): Delete.
1052 (mips_nomips16_decl_p): Delete.
1053 (mips_get_compress_on_flags): New function.
1054 (mips_get_compress_off_flags): New function.
1055 (mips_get_compress_mode): New function.
1056 (mips_get_compress_on_name): New function.
1057 (mips_get_compress_off_name): New function.
1058 (mips_insert_attributes): Support multiple compression types.
1059 (mips_merge_decl_attributes): Likewise.
1060 (umips_12bit_offset_address_p): New function.
1061 (mips_start_function_definition): Emit .set micromips directive.
1062 (mips_call_may_need_jalx_p): New function.
1063 (mips_function_ok_for_sibcall): Add microMIPS support.
1064 (mips_print_operand_punctuation): Support short delay slots and
1066 (umips_swm_mask, umips_swm_encoding): New.
1067 (umips_build_save_restore): New function.
1068 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1069 (was_mips16_p): Remove.
1070 (old_compression_mode): New.
1071 (mips_set_compression_mode): New function.
1072 (mips_set_current_function): Add microMIPS support.
1073 (mips_option_override): Likewise.
1074 (umips_save_restore_pattern_p): New function.
1075 (umips_output_save_restore): New function.
1076 (umips_load_store_pair_p_1): New function.
1077 (umips_load_store_pair_p): New function.
1078 (umips_output_load_store_pair_1): New function.
1079 (umips_output_load_store_pair): New function.
1080 (umips_movep_target_p) New function.
1081 (mips_prepare_pch_save): Add microMIPS support.
1082 * config/mips/mips.h (TARGET_COMPRESSION): New.
1083 (TARGET_CPU_CPP_BUILTINS): Update macro
1084 to use new compression flags and to support microMIPS.
1085 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1086 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1087 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1088 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1089 (ASM_SPEC): Support mmicromips and mno-micromips.
1090 (M16STORE_REG_P): New macro.
1091 (MIPS_CALL): Support TARGET_MICROMIPS.
1092 (MICROMIPS_J): New macro.
1093 (mips_base_mips16): Rename this...
1094 (mips_base_compression_flags): ...to this.
1095 (UMIPS_12BIT_OFFSET_P): New macro.
1096 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1097 (MULTILIB_DIRNAMES): Likewise.
1099 2013-02-24 Jakub Jelinek <jakub@redhat.com>
1102 * target-globals.c (save_target_globals): For init_reg_sets and
1103 target_reinit remporarily set this_fn_optabs to this_target_optabs.
1105 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
1107 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
1108 * config/aarch64/t-aarch64
1109 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
1111 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
1114 * lra-constraints.c (process_alt_operands): Reload operand
1115 conflicting with earlier clobber only if no more other conflicting
1118 2013-02-22 Jakub Jelinek <jakub@redhat.com>
1121 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
1122 if not linking a shared library.
1124 2013-02-22 Seth LaForge <sethml@google.com>
1126 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
1128 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
1130 * config/arm/arm.md (split for extendsidi): Update condition.
1131 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
1132 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
1133 (qhs_zextenddi_cstr): Likewise.
1135 2013-02-21 Jakub Jelinek <jakub@redhat.com>
1138 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
1139 avoid signed wrapping.
1140 (expand_mult): Handle properly multiplication by
1141 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
1142 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
1143 in the compiler if coeff is HOST_WIDE_INT_MIN.
1144 (expand_divmod): Don't make ext_op1 static, change it's type to
1145 uhwi. Avoid undefined behavior in -INTVAL (op1).
1147 PR rtl-optimization/50339
1148 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
1150 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
1151 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
1152 into splitting_ashiftrt field.
1153 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
1155 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
1158 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
1161 * trans-mem.c (execute_tm_mark): Do not expand transactions that
1162 are sure to go irrevocable.
1164 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
1166 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
1167 scalars are valid operands.
1169 2013-02-21 Martin Jambor <mjambor@suse.cz>
1171 PR tree-optimization/56310
1172 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
1173 only matching indices and non-negative final offsets.
1174 (intersect_aggregates_with_edge): Pass src_idx to
1175 agg_replacements_to_vector. Pass src_idx insstead of index to
1176 intersect_with_agg_replacements.
1178 2013-02-21 Martin Jambor <mjambor@suse.cz>
1180 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
1181 instead of hard-wired defaults.
1183 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
1185 * doc/invoke.texi (MIPS Options): Update documentation of the
1186 floating-point multiply-accumulate instruction restrictions.
1188 2013-02-21 Kostya Serebryany <kcc@google.com>
1190 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
1191 asan_shadow_offset on x86_64 linux.
1193 2013-02-21 Richard Biener <rguenther@suse.de>
1195 PR tree-optimization/56415
1197 2013-02-11 Richard Biener <rguenther@suse.de>
1199 PR tree-optimization/56273
1200 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
1203 2013-02-21 Jakub Jelinek <jakub@redhat.com>
1206 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
1210 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
1211 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
1213 2013-02-20 Jan Hubicka <jh@suse.cz>
1215 PR tree-optimization/56265
1216 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph when target is
1217 referenced for firs ttime.
1219 2013-02-20 Richard Biener <rguenther@suse.de>
1221 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
1222 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1223 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
1224 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
1225 not return anything.
1226 (rename_ssa_copies): Do not remove unused locals.
1227 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
1228 * tree-ssanames.c (pass_release_ssa_names): Remove unused
1230 * passes.c (execute_function_todo): Do not schedule unused locals
1231 removal if cleanup_tree_cfg did something.
1232 * tree-ssa-live.c (remove_unused_locals): Dump statistics
1233 about the number of removed locals.
1235 2013-02-20 Richard Biener <rguenther@suse.de>
1237 PR tree-optimization/56398
1238 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip
1241 2013-02-20 Martin Jambor <mjambor@suse.cz>
1243 PR tree-optimization/55334
1244 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
1245 restricted pointers to arrays.
1247 2013-02-20 Richard Biener <rguenther@suse.de>
1248 Jakub Jelinek <jakub@redhat.com>
1250 PR tree-optimization/56396
1251 * tree-ssa-ccp.c (n_const_val): New static variable.
1252 (get_value): Return NULL for SSA names we don't have a lattice
1254 (ccp_initialize): Initialize n_const_val.
1255 * tree-ssa-copy.c (n_copy_of): New static variable.
1256 (init_copy_prop): Initialize n_copy_of.
1257 (get_value): Return NULL_TREE for SSA names we don't have a
1260 2013-02-20 Martin Jambor <mjambor@suse.cz>
1262 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
1264 2013-02-20 Richard Biener <rguenther@suse.de>
1266 * genpreds.c (write_lookup_constraint): Do not compare first
1267 letter of the constraint again.
1269 2013-02-20 Richard Biener <rguenther@suse.de>
1271 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
1273 (get_use_iv_cost): Terminate hashtable walk when coming across
1276 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
1278 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
1279 reassociation for avx2 targets.
1281 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1283 * config/microblaze/microblaze.c: microblaze_has_clz = 0
1284 Add version check for v8.10.a to enable microblaze_has_clz
1285 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
1286 version and TARGET_PATTERN_COMPARE check
1287 * config/microblaze/microblaze.md: New clzsi2 instruction
1289 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1291 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
1292 function before branching.
1294 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
1296 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
1298 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
1300 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
1304 * sel-sched.c: Include ira.h.
1305 (implicit_clobber_conflict_p): New function.
1306 (moveup_expr): Use it.
1307 * Makefile.in (sel-sched.o): Depend on ira.h.
1309 2013-02-19 Richard Biener <rguenther@suse.de>
1311 PR tree-optimization/56384
1312 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
1313 (vn_hash_type): Split out from ...
1314 (vn_hash_constant_with_type): ... here.
1315 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
1316 (vn_phi_eq): Compare types from vn_phi_s structure.
1317 (vn_phi_lookup): Populate vn_phi_s type.
1318 (vn_phi_insert): Likewise.
1320 2013-02-19 Jakub Jelinek <jakub@redhat.com>
1322 PR tree-optimization/56350
1323 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
1324 if haven't found reduction or nested cycle operand, rather than
1325 asserting we must find it.
1327 PR tree-optimization/56381
1328 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
1331 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
1332 Jakub Jelinek <jakub@redhat.com>
1335 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
1336 (swap_optab_enable): Same.
1337 (init_all_optabs): Use argument instead of global.
1338 * tree.h (struct tree_optimization_option): New field
1340 * expr.h (init_all_optabs): Add argument to prototype.
1341 (TREE_OPTIMIZATION_OPTABS): New.
1342 (save_optabs_if_changed): Protoize.
1343 * optabs.h: Declare this_fn_optabs.
1344 * optabs.c (save_optabs_if_changed): New.
1345 Declare this_fn_optabs.
1346 (init_optabs): Add argument to init_all_optabs() call.
1347 * function.c (invoke_set_current_function_hook): Handle per
1349 * function.h (struct function): New field optabs.
1350 * config/mips/mips.c (mips_set_mips16_mode): Handle when
1351 optimization_current_node has changed.
1352 * target-globals.h (save_target_globals_default_opts): Protoize.
1353 * target-globals.c (save_target_globals_default_opts): New.
1355 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1358 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
1359 registers %fr12 and %fr12R as call used.
1362 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
1363 and HImode, require all displacements to be an integer multiple of their
1365 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
1366 only allow QImode and HImode when reload is in progress and strict is
1367 true. Likewise for symbolic addresses. Use base14_operand to check
1368 displacements in REG+BASE addresses.
1370 2013-02-18 Richard Biener <rguenther@suse.de>
1372 PR tree-optimization/56366
1373 * tree-vect-loop.c (get_initial_def_for_induction): Properly
1374 handle sign-conversion of outer-loop initial induction value.
1376 2013-02-18 Richard Biener <rguenther@suse.de>
1379 * cfghooks.c (merge_blocks): If we merge a latch into another
1380 block adjust references to it.
1381 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
1382 (verify_loop_structure): Verify that a recorded latch is in fact
1385 2013-02-18 Richard Biener <rguenther@suse.de>
1387 PR tree-optimization/56321
1388 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
1389 order SSA name release and virtual operand unlinking.
1391 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1393 * config/microblaze/microblaze.md (save_stack_block): Define.
1394 (restore_stack_block): Likewise.
1396 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1398 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
1399 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
1400 * config/microblaze/microblaze.c (microblaze_option_override):
1401 Bail out early for PIC modes when target does not support PIC.
1403 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1405 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
1406 Replace with a microblaze version.
1407 (microblaze_trampoline_init): Adapt for microblaze.
1408 * gcc/config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
1411 2013-02-16 Jakub Jelinek <jakub@redhat.com>
1412 Dodji Seketeli <dodji@redhat.com>
1415 * asan.c (get_mem_refs_of_builtin_call): White space and style
1417 (instrument_mem_region_access): Do not forget to always put
1418 instrumentation of the of 'base' and 'base + len' in a "if (len !=
1419 0) statement, even for cases where either 'base' or 'base + len'
1420 are not instrumented -- because they have been previously
1421 instrumented. Simplify the logic by putting all the statements
1422 instrument 'base + len' inside a sequence, and then insert that
1423 sequence right before the current insertion point. Then, to
1424 instrument 'base + len', just get an iterator on that statement.
1425 And do not forget to update the pointer to iterator the function
1426 received as argument.
1428 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
1430 PR rtl-optimization/56348
1431 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
1433 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
1435 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
1436 (clean_graph_dump_file): Pass base to start_graph_dump.
1438 2013-02-14 Richard Henderson <rth@redhat.com>
1441 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
1443 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
1445 * collect2-aix.h: Define F_LOADONLY.
1447 2013-02-14 Richard Biener <rguenther@suse.de>
1450 * varasm.c (output_constant_def_1): Get the decl representing
1451 the constant as argument.
1452 (output_constant_def): Wrap output_constant_def_1.
1453 (make_decl_rtl): Use output_constant_def_1 with the decl
1454 representing the constant.
1455 (build_constant_desc): Optionally re-use a decl already
1456 representing the constant.
1457 (tree_output_constant_def): Adjust.
1459 2013-02-14 Dodji Seketeli <dodji@redhat.com>
1462 * asan.c (instrument_builtin_call): Really put the length of the
1463 second source argument into src1_len.
1465 2013-02-13 Jakub Jelinek <jakub@redhat.com>
1467 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
1468 argument. If it is false, don't create edge from then_bb to
1470 (insert_if_then_before_iter): Pass true to it.
1471 (build_check_stmt): Pass false to it.
1472 (transform_statements): Flush hash table only on extended basic
1473 block boundaries, rather than at the beginning of every bb.
1474 Don't flush hash table on nonfreeing_call_p calls.
1475 * tree-flow.h (nonfreeing_call_p): New prototype.
1476 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
1478 2013-02-13 David S. Miller <davem@davemloft.net>
1480 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
1482 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
1485 * ira.c (max_regno_before_ira): Move from ...
1487 (fix_reg_equiv_init): Use max_regno_before_ira instead of
1490 2013-02-13 Jakub Jelinek <jakub@redhat.com>
1492 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
1494 2013-02-13 Richard Biener <rguenther@suse.de>
1497 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
1498 globals in MEM_REFs.
1500 2013-02-13 Richard Biener <rguenther@suse.de>
1502 * loop-init.c (loop_optimizer_init): Clear loop state when
1503 re-initializing preserved loops.
1504 * loop-unswitch.c (unswitch_single_loop): Return whether
1505 we unswitched the loop. Do not verify loop state here.
1506 (unswitch_loops): When we unswitched a loop discover new
1509 2013-02-13 Kostya Serebryany <kcc@google.com>
1511 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset on x86_64
1513 * sanitizer.def: Rename __asan_init to __asan_init_v1.
1515 2013-02-12 Dodji Seketeli <dodji@redhat.com>
1517 Avoid instrumenting duplicated memory access in the same basic block
1518 * Makefile.in (asan.o): Add new dependency on hash-table.h
1519 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
1520 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
1521 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
1522 (free_mem_ref_resources, has_mem_ref_been_instrumented)
1523 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
1524 (get_mem_ref_of_assignment): New functions.
1525 (get_mem_refs_of_builtin_call): Extract from
1526 instrument_builtin_call and tweak a little bit to make it fit with
1528 (instrument_builtin_call): Use the new
1529 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
1530 of is_gimple_builtin_call.
1531 (instrument_derefs, instrument_mem_region_access): Insert the
1532 instrumented memory reference into the hash table.
1533 (maybe_instrument_assignment): Renamed instrument_assignment into
1534 this, and change it to advance the iterator when instrumentation
1535 actually happened and return true in that case. This makes it
1536 homogeneous with maybe_instrument_assignment, and thus give a
1537 chance to callers to be more 'regular'.
1538 (transform_statements): Clear the memory reference hash table
1539 whenever we enter a new BB, when we cross a function call, or when
1540 we are done transforming statements. Use
1541 maybe_instrument_assignment instead of instrumentation. No more
1542 need to special case maybe_instrument_assignment and advance the
1543 iterator after calling it; it's now handled just like
1544 maybe_instrument_call. Update comment.
1546 2013-02-13 Richard Biener <rguenther@suse.de>
1548 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1549 Fix loop discovery code.
1551 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
1554 * lra-constraints.c (process_alt_operands): Match early clobber
1555 operand with itself. Check conflicts with earlyclobber only if
1556 the operand is not reloaded. Prefer to reload conflicting operand
1557 if earlyclobber and matching operands are the same.
1559 2013-02-12 Richard Biener <rguenther@suse.de>
1562 * lto-streamer-out.c (write_symbol): Do not output symbols
1563 for hard register variables.
1565 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
1568 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
1569 (umulsidi3_insn, mulsidi3_insn): New insns.
1571 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
1573 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
1574 (struct tune_params): Add vec_costs field.
1575 * config/arm/arm.c (arm_builtin_vectorization_cost)
1576 (arm_add_stmt_cost): New functions.
1577 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
1578 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
1579 (arm_default_vec_cost): New struct of type cpu_vec_costs.
1580 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
1581 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
1582 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
1583 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
1585 2013-02-12 Richard Biener <rguenther@suse.de>
1588 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
1589 decls again if possible.
1591 2013-02-12 Richard Biener <rguenther@suse.de>
1594 * tree-ssa.c (verify_ssa_name): Fix check, move
1595 SSA_NAME_IN_FREE_LIST check up.
1597 2013-02-12 Jakub Jelinek <jakub@redhat.com>
1598 Steven Bosscher <steven@gcc.gnu.org>
1600 PR rtl-optimization/56151
1601 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
1602 equal to op0 or op1, and last_insn pattern is CODE operation
1603 with MEM dest and one of the operands matches that MEM.
1605 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
1607 * doc/extend.texi: Document Function Multiversioning and "default"
1608 parameter string to target attribute.
1609 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
1610 target attribute parameter is "default".
1611 (ix86_compare_version_priority): Remove checks for target attribute.
1612 (ix86_mangle_function_version_assembler_name): Change error to sorry.
1613 Remove check for target attribute equal to NULL. Add assert.
1614 (ix86_generate_version_dispatcher_body): Change error to sorry.
1616 2013-02-11 Iain Sandoe <iain@codesourcery.com>
1617 Jack Howarth <howarth@bromo.med.uc.edu>
1618 Patrick Marlier <patrick.marlier@gmail.com>
1621 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
1622 define ENDFILE_SPEC as TM_DESTRUCTOR.
1623 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
1625 2013-02-11 Alexander Potapenko <glider@google.com>
1626 Jack Howarth <howarth@bromo.med.uc.edu>
1627 Jakub Jelinek <jakub@redhat.com>
1630 * config/darwin.c (cdtor_record): Rename ctor_record.
1631 (sort_cdtor_records): Rename sort_ctor_records.
1632 (finalize_dtors): New routine to sort destructors by
1633 priority before use in assemble_integer.
1634 (machopic_asm_out_destructor): Use finalize_dtors if needed.
1636 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
1638 PR rtl-optimization/56275
1639 * simplify-rtx.c (avoid_constant_pool_reference): Check that
1640 offset is non-negative and less than cmode size before
1641 calling simplify_subreg.
1643 2013-02-11 Richard Biener <rguenther@suse.de>
1645 PR tree-optimization/56264
1646 * cfgloop.h (fix_loop_structure): Adjust prototype.
1647 * loop-init.c (fix_loop_structure): Return the number of
1648 newly discovered loops.
1649 * tree-cfgcleanup.c (repair_loop_structures): When new loops
1650 are discovered, do a full loop-closed SSA rewrite.
1652 2013-02-11 Richard Biener <rguenther@suse.de>
1654 PR tree-optimization/56273
1655 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
1657 (check_array_ref): Fix missing newline in dumps.
1658 (search_for_addr_array): Likewise.
1660 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
1662 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
1664 2013-02-09 Jakub Jelinek <jakub@redhat.com>
1667 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
1669 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
1671 PR rtl-optimization/56246
1672 * lra-constraints.c (simplify_operand_subreg): Try to reuse
1674 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
1675 constraints are satisfied.
1677 2013-02-08 Jeff Law <law@redhat.com>
1680 * emit-rtl.c (reg_is_parm_p): New function.
1681 * regs.h (reg_is_parm_p): New prototype.
1682 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
1683 callee-clobbered registers.
1685 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1688 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
1689 If there is no implicit builtin declaration, just return NULL.
1691 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
1693 * config/i386/sse.md (FMAMODEM): New mode iterator.
1694 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
1695 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
1697 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
1699 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
1700 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
1701 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
1703 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1705 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
1706 (microblaze*-*-elf): Likewise.
1707 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
1709 * config/microblaze/microblaze-c.c: Add builtin defines for
1710 _LITTLE_ENDIAN and _BIG_ENDIAN.
1711 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
1712 add to TARGET_DEFAULT flags.
1713 Expand ASM_SPEC and LINK_SPEC.
1714 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
1715 * config/microblaze/microblaze.md: Update extendsidi2 and
1716 movdi_internal instructions to use low-order / high-order reg
1718 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
1719 options and inversemask / mask of LITTLE_ENDIAN.
1720 * config/microblaze/t-microblaze: Expand multilib options to
1721 include mlittle-endian (le) and update exceptions patterns.
1723 2013-02-08 Jakub Jelinek <jakub@redhat.com>
1725 PR rtl-optimization/56195
1726 * lra-constraints.c (get_reload_reg): Don't reuse regs
1727 if they have smaller mode than requested, if they have
1728 wider mode than requested, try to return a SUBREG.
1730 PR tree-optimization/56250
1731 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
1732 if type is unsigned and code isn't MULT_EXPR.
1734 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
1736 PR tree-optimization/56064
1737 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
1738 bits according to mode.
1739 * fixed-value.h (fixed_from_double_int)
1740 (const_fixed_from_double_int): Adjust comments.
1742 2013-02-08 Richard Biener <rguenther@suse.de>
1745 * lto-streamer.h (struct data_in): Remove current_file, current_line
1746 and current_col members.
1747 * lto-streamer-out.c (lto_output_location): Stream changed bits
1748 en-block for efficiency.
1749 * lto-streamer-in.c (clear_line_info): Remove.
1750 (lto_input_location): Cache current file, line and column
1751 globally via local statics. Read changed bits en-block.
1752 (input_function): Do not call clear_line_info.
1753 (lto_read_body): Likewise.
1754 (lto_input_toplevel_asms): Likewise.
1756 2013-02-08 Michael Matz <matz@suse.de>
1758 PR tree-optimization/52448
1759 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
1760 (nt_call_phase): New static.
1761 (add_or_mark_expr): Only mark accesses with newer phase than any
1763 (nonfreeing_call_p): New.
1764 (nt_init_block): Update nt_call_phase, mark blocks as visited.
1765 (nt_fini_block): Keep blocks marked as visited.
1766 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
1768 2013-02-08 Richard Biener <rguenther@suse.de>
1770 * ira.c (ira): Free broken dominator information.
1772 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
1774 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
1776 2013-02-08 Marek Polacek <polacek@redhat.com>
1778 * cfgloop.c (verify_loop_structure): Add more checking of headers.
1780 2013-02-08 Richard Biener <rguenther@suse.de>
1783 * cfgloop.h (flow_loops_find): Adjust.
1784 (bb_loop_header_p): Declare.
1785 * cfgloop.c (bb_loop_header_p): New function split out from ...
1786 (flow_loops_find): ... here. Adjust function signature,
1787 support incremental loop structure update.
1788 (verify_loop_structure): Cleanup. Verify a loop is a loop.
1789 * cfgloopmanip.c (fix_loop_structure): Move ...
1790 * loop-init.c (fix_loop_structure): ... here.
1791 (apply_loop_flags): Split out from ...
1792 (loop_optimizer_init): ... here.
1793 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
1794 in incremental mode, only remove dead loops here.
1796 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
1799 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
1800 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
1801 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
1802 (*round<mode>3.libgcc): New insns for fixed-modes.
1803 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
1804 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
1805 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
1806 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
1807 implementations. Define to __builtin_avr_absFX,
1808 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
1809 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
1810 __builtin_avr_countlsFX, respectively.
1811 * config/avr/avr-c.c (target.h): Include it.
1812 (enum avr_builtin_id): New enum.
1813 (avr_resolve_overloaded_builtin): New static function.
1814 (avr_register_target_pragmas): Use it to set
1815 targetm.resolve_overloaded_builtin.
1816 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
1817 tree nodes used by DEF_BUILTIN.
1818 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
1819 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
1820 <AVR_BUILTIN_xxBITS>: Same.
1822 2013-02-08 Richard Biener <rguenther@suse.de>
1824 * cfgloop.c (verify_loop_structure): Properly handle
1825 a loop exiting to another loop header.
1826 * ira-int.h (ira_loops): Remove.
1827 * ira.c (ira_loops): Remove.
1828 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
1829 (do_reload): Use loop_optimizer_finalize.
1830 * ira-build.c (create_loop_tree_nodes): Use get_loops and
1831 number_of_loops to access the loop tree.
1832 (more_one_region_p): Likewise.
1833 (finish_loop_tree_nodes): Likewise.
1834 (rebuild_regno_allocno_maps): Likewise.
1835 (mark_loops_for_removal): Likewise.
1836 (mark_all_loops_for_removal): Likewise.
1837 (remove_unnecessary_regions): Likewise.
1838 (ira_build): Likewise.
1839 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1841 2013-02-08 Richard Biener <rguenther@suse.de>
1843 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
1844 * ipa-pure-const.c (analyze_function): Avoid calling
1845 mark_irreducible_loops twice.
1846 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
1848 2013-02-07 David S. Miller <davem@davemloft.net>
1850 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
1852 * var-tracking.c (vt_add_function_parameter): Test the presence of
1853 HAVE_window_save properly and do not remap argument registers when
1854 we have a leaf function.
1856 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
1859 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
1861 * config/i386/i386.c (ix86_print_operand): Ditto.
1863 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
1865 * lra-constraints.c (process_alt_operands): Fix recently added comment.
1867 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
1869 PR rtl-optimization/56225
1870 * lra-constraints.c (process_alt_operands): Check that reload hard
1871 reg can hold value for strict_low_part.
1873 2013-02-07 Jakub Jelinek <jakub@redhat.com>
1876 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
1877 dwarf2out_end_function.
1878 (in_first_function_p, maybe_at_text_label_p,
1879 first_loclabel_num_not_at_text_label): New variables.
1880 (dwarf2out_var_location): In the first function find out
1881 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
1882 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
1885 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
1887 PR rtl-optimization/56178
1888 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
1889 SUBREG of a register. Tidy up related block of code.
1890 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
1891 note if the source is a register or a SUBREG of a register.
1893 2013-02-07 Jakub Jelinek <jakub@redhat.com>
1896 * config/rs6000/rs6000.md (ptrm): New mode attr.
1897 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
1898 call_value_indirect_aix<pttrsize>,
1899 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
1902 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1904 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
1905 if -bnortl. Convert to strcmp and strncmp.
1907 2013-02-07 Alan Modra <amodra@gmail.com>
1910 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
1911 addresses won't wrap when offsetting.
1912 (rs6000_secondary_reload): Provide secondary reloads needed for
1913 wrapping LO_SUM addresses.
1915 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
1917 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
1918 MACH, just __MACH__.
1920 2013-02-06 Richard Biener <rguenther@suse.de>
1922 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
1923 instead of calling fix_loop_structure.
1925 2013-02-06 Jakub Jelinek <jakub@redhat.com>
1928 * omp-low.c (use_pointer_for_field): Return false if
1929 lower_send_shared_vars doesn't generate any copy-out code.
1931 2013-02-06 Tom de Vries <tom@codesourcery.com>
1933 PR rtl-optimization/56131
1934 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
1935 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
1936 of the label is NULL. Add comment.
1938 2013-02-05 Jakub Jelinek <jakub@redhat.com>
1940 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
1943 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
1944 (STATIC_LIBTSAN_LIBS): Likewise.
1945 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
1946 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
1947 is defined, don't add anything else beyond that.
1948 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
1949 (LINK_COMMAND_SPEC): Use them.
1951 PR tree-optimization/56205
1952 * tree-stdarg.c (check_all_va_list_escapes): Return true if
1953 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
1954 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
1956 2013-02-05 Richard Biener <rguenther@suse.de>
1958 PR tree-optimization/53342
1959 PR tree-optimization/53185
1960 * tree-vectorizer.h (vect_check_strided_load): Remove.
1961 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
1962 not disallow peeling for vectorized strided loads.
1963 (vect_check_strided_load): Make static and simplify.
1964 (vect_analyze_data_refs): Adjust.
1965 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
1966 correctly when vectorizing strided loads.
1968 2013-02-05 Richard Biener <rguenther@suse.de>
1970 * doc/install.texi: Refer to ISL, not PPL.
1972 2013-02-05 Jan Hubicka <jh@suse.cz>
1974 PR tree-optimization/55789
1975 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
1977 2013-02-05 Jan Hubicka <jh@suse.cz>
1979 PR tree-optimization/55789
1980 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
1981 the dead call anyway.
1983 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
1986 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
1988 2013-02-04 Alexander Potapenko <glider@google.com>
1989 Jack Howarth <howarth@bromo.med.uc.edu>
1990 Jakub Jelinek <jakub@redhat.com>
1993 * config/darwin.c (sort_ctor_records): Stabilized qsort
1994 on constructor priority by using original position.
1995 (finalize_ctors): New routine to sort constructors by
1996 priority before use in assemble_integer.
1997 (machopic_asm_out_constructor): Use finalize_ctors if needed.
1999 2013-02-04 Jakub Jelinek <jakub@redhat.com>
2002 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
2003 about visibility on artificial decls.
2004 * config/sol2.c (solaris_assemble_visibility): Likewise.
2006 2013-02-04 Kai Tietz <ktietz@redhat.com>
2009 * config/i386/i386.c (function_value_ms_64): Add additional valtype
2010 argument and improve checking of return-argument types for 16-byte
2012 (ix86_function_value_1): Add additional valtype argument on call
2013 of function_value_64.
2014 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
2015 handling infunction_value_64 function.
2017 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
2019 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2021 2013-02-04 Richard Biener <rguenther@suse.de>
2023 PR tree-optimization/56188
2024 * tree-ssa-structalias.c (label_visit): Consider case with
2025 initially non-empty points-to set.
2026 (perform_var_substitution): Dump node mapping and clean up.
2028 2013-02-04 Richard Guenther <rguenther@suse.de>
2031 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
2032 node prevail as last resort.
2033 (lto_symtab_merge_decls): Remove guard on LTRANS here.
2034 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
2036 2013-02-04 Richard Biener <rguenther@suse.de>
2038 PR tree-optimization/56113
2039 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
2041 (equiv_class_lookup_or_add): ... this.
2042 (label_visit): Adjust and fix error in previous patch.
2043 (perform_var_substitution): Adjust.
2045 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
2047 * config/sh/divtab.c: Fix formatting and comments throughout the file.
2048 * config/sh/sh4-300.md: Likewise.
2049 * config/sh/sh4a.md: Likewise.
2050 * config/sh/constraints.md: Likewise.
2051 * config/sh/sh.md: Likewise.
2052 * config/sh/netbsd-elf.h: Likewise.
2053 * config/sh/predicates.md: Likewise.
2054 * config/sh/sh-protos.h: Likewise.
2055 * config/sh/ushmedia.h: Likewise.
2056 * config/sh/linux.h: Likewise.
2057 * config/sh/sh.c: Likewise.
2058 * config/sh/superh.h: Likewise.
2059 * config/sh/elf.h: Likewise.
2060 * config/sh/sh4.md: Likewise.
2061 * config/sh/sh.h: Likewise.
2063 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2065 * config/pa/constraints.md: Adjust unused letters. Change "T"
2066 constraint to match_test floating_point_store_memory_operand().
2067 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
2068 (base14_operand): New.
2069 (floating_point_store_memory_operand): New.
2070 (integer_store_memory_operand): Revise to use base14_operand and
2071 reg_plus_base_memory_operand.
2072 (move_dest_operand): Allow symbolic_memory_operands.
2073 (symbolic_memory_operand): Check for LO_SOM.
2074 (symbolic_operand): Change default case to break.
2075 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
2076 CONST_DOUBLE values to be reloaded by putting them into memory when
2077 the destination is a floating point register.
2078 (movdf): Remove code to handle CONST_DOUBLE.
2080 (reload_indf_r1): New.
2081 (reload_insf_r1): New.
2082 Consistently use "Q" and "T" constraints with integer and floating
2083 point move instructions, respectively.
2084 (movdi): Remove FAIL.
2085 Change predicate for source operand unamed DImode move from
2086 general_operand to move_src_operand.
2087 (umulsidi3): Change predicate for destination operand to
2089 Likewise for similar unamed patterns.
2090 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
2091 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
2092 (hppa_legitimize_address): Simplify mask calculation.
2093 (pa_emit_move_sequence): Revised handling of secondary reloads from
2094 REG+D addresses for floating point loads and stores. Directly handle
2095 loading CONST0_RTX (mode) to a floating point register.
2096 (pa_secondary_reload): Handle reloading DF and SFmode constant values
2097 to floating point registers. Don't restrict secondary reloads to
2098 floating point registers to integer modes. Revise some comments and
2100 (TARGET_LEGITIMATE_ADDRESS_P): Define.
2101 (pa_legitimate_address_p): New.
2102 (pa_legitimize_reload_address): New.
2103 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
2104 (STRICT_REG_OK_FOR_BASE_P): New.
2105 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
2106 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
2108 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
2109 Andrew Dixie <andrewd@gentrack.com>
2111 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
2114 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
2116 * expmed.c (extract_bit_field_1): Pass the full width of the
2117 structure to get_best_reg_extraction_insn.
2119 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
2122 * configure.ac (use_cxa_atexit): Add AIX.
2123 * configure: Regenerate.
2125 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
2127 2013-02-01 Jakub Jelinek <jakub@redhat.com>
2130 * final.c (need_profile_function): New variable.
2131 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
2132 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
2133 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
2134 notes, targetm.asm_out.function_prologue doesn't emit anything,
2135 HAVE_prologue and profiler should be emitted before prologue,
2136 set need_profile_function instead of emitting it.
2137 (final_scan_insn): If need_profile_function, emit
2138 profile_function on the first NOTE_INSN_BASIC_BLOCK or
2139 NOTE_INSN_FUNCTION_BEG note.
2141 2013-02-01 Richard Henderson <rth@redhat.com>
2143 * config/rs6000/rs6000.md (smulditi3): New.
2146 * config/alpha/alpha.md (umulditi3): New.
2148 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
2150 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
2151 (ASM_OUTPUT_ALIGNED_LOCAL): New.
2153 2013-02-01 Richard Biener <rguenther@suse.de>
2155 PR tree-optimization/56113
2156 * tree-ssa-structalias.c (label_visit): Reduce work for
2157 single-predecessor nodes.
2159 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
2161 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
2162 range isn't testing for zero.
2164 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
2167 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
2169 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
2170 Nick Clifton <nickc@redhat.com>
2172 * config/v850/constraints.md (Q): Define as a memory constraint.
2173 * config/v850/predicates.md (label_ref_operand): New predicate.
2174 (e3v5_shift_operand): New predicate.
2175 (ior_operator): New predicate.
2176 * config/v850/t-v850: Add e3v5 multilib.
2177 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
2178 (v850_gen_movdi): Prototype.
2179 * config/v850/v850.c: Add support for e3v5 architecture.
2180 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
2182 (construct_save_jarl): Add e3v5 long JARL support.
2183 (v850_adjust_insn_length): New function. Adjust length of call
2184 insns when using e3v5 instructions.
2185 (v850_gen_movdi): New function: Generate instructions to move a
2187 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
2188 (CPP_SPEC): Define __v850e3v5__ as appropriate.
2189 (TARGET_USE_FPU): Enable for e3v5.
2190 (CONST_OK_FOR_W): New macro.
2191 (ADJUST_INSN_LENGTH): Define.
2192 * config/v850/v850.md (UNSPEC_LOOP): Define.
2193 (attr cpu): Add v850e3v5.
2194 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
2195 (movdi): New pattern.
2196 (movdi_internal): New pattern.
2197 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
2198 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
2199 (cstoresf4): Likewise.
2200 (cstoredf4): Likewise.
2201 (insv): New pattern.
2202 (rotlso3_a): New pattern.
2203 (rotlsi3_b): New pattern
2204 (rotlsi3_v850e3v5): New pattern.
2205 (doloop_begin): New pattern.
2206 (fix_loop_counter): New pattern.
2207 (doloop_end): New pattern.
2208 (branch_normal): Add e3v5 long branch support.
2209 (branch_invert): Likewise.
2210 (branch_z_normal): Likewise.
2211 (branch_z_invert): Likewise.
2212 (branch_nz_normal): Likewise.
2213 (branch_nz_invert): Likewise.
2214 (call_internal_short): Add e3v5 register-indirect JARL support.
2215 (call_internal_long): Likewise.
2216 (call_value_internal_short): Likewise.
2217 (call_value_internal_long): Likewise.
2218 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
2219 (mloop): New option.
2220 * config.gcc: Add support for configuring v840e3v5 target.
2221 * doc/invoke.texi: Document new v850 specific command line options.
2223 2013-01-31 Paul Koning <ni1d@arrl.net>
2227 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
2228 children if parent is a class.
2229 (prune_unused_types_prune): Don't add DW_AT_declaration.
2231 2013-01-31 Richard Biener <rguenther@suse.de>
2233 PR tree-optimization/56157
2234 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
2235 match up operand with SLP child.
2237 2013-01-31 Jason Merrill <jason@redhat.com>
2240 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
2241 parameters the first time.
2242 (gen_scheduled_generic_parms_dies): Check completeness here.
2244 2013-01-31 Richard Biener <rguenther@suse.de>
2247 * common.opt (faggressive-loop-optimizations): New flag,
2249 * doc/invoke.texi (faggressive-loop-optimizations): Document.
2250 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
2251 infer_loop_bounds_from_undefined by it.
2253 2013-01-31 Richard Biener <rguenther@suse.de>
2255 PR tree-optimization/56150
2256 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
2257 visit virtual operands.
2258 (find_uses_to_rename_bb): Likewise.
2260 2013-01-31 Richard Biener <rguenther@suse.de>
2262 PR tree-optimization/56150
2263 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
2264 mixed store non-store stmts.
2266 2013-01-30 Jakub Jelinek <jakub@redhat.com>
2269 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
2270 LIBASAN_EARLY_SPEC is defined.
2271 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
2272 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
2274 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
2277 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
2278 invalid args instead of ICEing on it.
2279 (ix86_valid_target_attribute_tree): Return error_mark_node if
2280 ix86_valid_target_attribute_inner_p failed.
2281 (ix86_valid_target_attribute_p): Return false only if
2282 ix86_valid_target_attribute_tree returned error_mark_node. Allow
2283 target("default") attribute.
2284 (sorted_attr_string): Change argument from const char * to tree,
2285 merge in all target attribute arguments rather than just one.
2286 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
2287 instead of free. Avoid using strcat.
2288 (ix86_mangle_function_version_assembler_name): Mangle
2289 target("default") as if no target attribute is present. Adjust
2290 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
2291 instead of xmalloc and XDELETEVEC instead of free.
2292 (ix86_function_versions): Don't return true if one of the decls
2293 doesn't have target attribute. If they don't and one of the decls
2294 is DECL_FUNCTION_VERSIONED, report an error. Adjust
2295 sorted_attr_string caller. Use XDELETEVEC instead of free.
2296 (ix86_supports_function_versions): Remove.
2297 (make_name): Fix up formatting.
2298 (make_dispatcher_decl): Remove resolver_name and its initialization.
2299 Avoid leaking memory.
2300 (is_function_default_version): Return true if there is
2301 target("default") attribute rather than no target attribute at all.
2302 (make_resolver_func): Avoid leaking memory.
2303 (ix86_generate_version_dispatcher_body): Likewise.
2304 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
2305 * target.def (supports_function_versions): Remove.
2306 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
2307 * doc/tm.texi: Regenerated.
2309 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
2311 PR rtl-optimization/56144
2312 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
2313 for values with side effects.
2315 2013-01-30 Richard Biener <rguenther@suse.de>
2317 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
2318 (sparseset_pop): Likewise.
2319 * cfganal.c (compute_idf): Likewise. Increase work-stack size
2320 to be able to use quick_push in the worker loop.
2322 2013-01-30 Marek Polacek <polacek@redhat.com>
2324 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
2326 2013-01-30 Richard Biener <rguenther@suse.de>
2329 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
2331 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
2333 PR tree-optimization/56064
2334 * fixed-value.c (fixed_from_double_int): New function.
2335 * fixed-value.h (fixed_from_double_int): New prototype.
2336 (const_fixed_from_double_int): New static inline function.
2337 * fold-const.c (native_interpret_fixed): New static function.
2338 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
2339 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
2340 (native_encode_fixed): New static function.
2341 (native_encode_expr) <FIXED_CST>: Use it.
2342 (native_interpret_int): Move double_int worker code to...
2343 * double-int.c (double_int::from_buffer): ...this new static method.
2344 * double-int.h (double_int::from_buffer): Prototype it.
2346 2013-01-30 Richard Biener <rguenther@suse.de>
2348 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
2349 New pointer-map and obstack.
2350 (init_alias_vars): Allocate pointer-map and obstack.
2351 (delete_points_to_sets): Free them.
2352 (find_what_var_points_to): Cache result.
2353 (find_what_p_points_to): Adjust for changed interface of
2354 find_what_var_points_to.
2355 (compute_points_to_sets): Likewise.
2356 (ipa_pta_execute): Likewise.
2358 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2360 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
2361 * configure: Regenerate.
2362 * config.in: Regenerate.
2363 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
2364 #nobits/#progbits if supported.
2366 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
2369 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
2370 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
2371 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
2373 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2375 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
2376 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
2378 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2380 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
2381 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
2383 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2385 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
2387 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
2388 * config/arm/cortex-a7.md: New bypasses using
2389 arm_mac_accumulator_is_result.
2391 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2393 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
2394 (cortex_a7_neon_mla): Likewise.
2395 (cortex_a7_fpfmad): New reservation.
2396 (cortex_a7_fpmacs): Use ffmas and update required units.
2397 (cortex_a7_fpmuld): Update required units and latency.
2398 (cortex_a7_fpmacd): Likewise.
2399 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
2400 (cortex_a7_neon). Likewise.
2401 (bypass) Update participating units.
2403 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2405 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
2406 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
2408 * config/arm/vfp11.md (vfp_farith): Use ffmas.
2409 (vfp_fmul): Use ffmad.
2410 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
2411 (cortex_r4_fmacd): Use ffmad.
2412 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
2413 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
2414 (cortex_a9_fmacd): Use ffmad.
2415 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
2416 (cortex_a8_vfp_macd): Use ffmad.
2417 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
2418 (cortex_a5_fpmacd): Use ffmad.
2419 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
2420 (cortex_a15_vfp_macd): Use ffmad.
2421 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
2423 2013-01-29 Jason Merrill <jason@redhat.com>
2426 * varasm.c (default_assemble_visibility): Don't warn about
2427 visibility on artificial decls.
2429 2013-01-29 Richard Biener <rguenther@suse.de>
2431 PR tree-optimization/56113
2432 * tree-ssa-structalias.c (equiv_class_lookup): Also return
2434 (label_visit): Free duplicate bitmaps and record the leader instead.
2435 (perform_var_substitution): Adjust.
2437 2013-01-29 Richard Biener <rguenther@suse.de>
2439 PR tree-optimization/55270
2440 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
2441 the CFG, schedule loops for fixup.
2443 2013-01-29 Nick Clifton <nickc@redhat.com>
2445 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
2448 2013-01-28 Leif Ekblad <leif@rdos.net>
2450 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
2451 * config/i386/i386.h (TARGET_RDOS): New macro.
2452 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
2453 * config/i386/i386.c (ix86_option_override_internal): For 64bit
2454 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
2455 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
2456 DEFAULT_LARGE_SECTION_THRESHOLD.
2457 * config/i386/i386.md (R14_REG, R15_REG): New constants.
2458 * config/i386/rdos.h: New file.
2459 * config/i386/rdos64.h: New file.
2461 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
2464 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
2467 2013-01-28 Jakub Jelinek <jakub@redhat.com>
2469 PR rtl-optimization/56117
2470 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
2471 call cselib_lookup_from_insn on the MEM before calling
2472 add_insn_mem_dependence.
2474 2013-01-28 Richard Biener <rguenther@suse.de>
2476 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
2477 to a stmt that didn't have one.
2478 (copy_phis_for_bb): Likewise for PHI arguments.
2479 (copy_debug_stmt): Likewise for debug stmts.
2481 2013-01-28 Richard Biener <rguenther@suse.de>
2483 PR tree-optimization/56034
2484 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
2485 (partition_builtin_p): Adjust.
2486 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
2487 it is the last partition.
2488 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
2489 up the vertex for the definition.
2490 (classify_partition): Classify whether a partition is a
2491 PKIND_REDUCTION, thus has uses outside of the loop.
2492 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
2493 Merge all PKIND_REDUCTION partitions into the last partition.
2494 (tree_loop_distribution): Seed partitions from reductions as well.
2496 2013-01-28 Jakub Jelinek <jakub@redhat.com>
2498 PR tree-optimization/56125
2499 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
2500 pow(x,c) into sqrt(x) * powi(x, n/2) or
2501 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
2502 optimizing for size.
2503 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
2504 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
2507 PR tree-optimization/56094
2508 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
2509 to UNKNOWN_LOCATION while gimplifying expr.
2511 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
2514 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
2515 operand 0 in movabs insn template for -masm=intel asm alternative.
2516 (*movabs<mode>_2): Ditto for operand 1.
2518 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
2521 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
2524 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2526 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
2529 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2531 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
2532 Undef to avoid warning.
2534 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2536 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
2537 * configure: Regenerate.
2539 2013-01-25 Jakub Jelinek <jakub@redhat.com>
2541 PR tree-optimization/56098
2542 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
2543 for stmts with volatile ops.
2544 (cond_store_replacement): Don't optimize if assign has volatile ops.
2545 (cond_if_else_store_replacement_1): Don't optimize if either
2546 then_assign or else_assign have volatile ops.
2547 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
2550 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
2552 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
2554 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
2556 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
2557 missing ':' in asm example.
2559 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
2561 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
2562 entries into lane and laneq entries.
2563 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
2564 Remove AdvSIMD scalar modes.
2565 (aarch64_sq<r>dmulh_laneq<mode>): New.
2566 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
2568 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
2569 builtin implementations to relfect changes in RTL in aarch64-simd.md.
2570 * config/aarch64/iterators.md (VCOND): New.
2573 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
2576 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
2577 Add NULL LIBNAME argument to existing definitions.
2578 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
2579 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
2580 * config/avr/avr.c (DEF_BUILTIN): Same.
2581 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
2582 (avr_expand_builtin): Expand to a vanilla call if a libgcc
2583 implementation is available (DECL_ASSEMBLER_NAME is set).
2584 (avr_fold_absfx): New static function.
2585 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
2586 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
2587 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
2589 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
2590 (abshk, absk, abslk, absllk): Provide as static inline functions.
2592 2013-01-25 Marek Polacek <polacek@redhat.com>
2594 PR tree-optimization/56035
2595 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
2597 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
2599 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
2600 (*movtf_internal_rex64): Add (!o,C) alternative
2601 (*movxf_internal_rex64): Ditto.
2602 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
2604 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
2606 * doc/invoke.texi: fix typo.
2607 * doc/objc.texi: fix typo.
2609 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
2611 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
2612 for the first two alternatives.
2614 2013-01-24 Diego Novillo <dnovillo@google.com>
2616 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
2617 (ggc-zone.o): Remove.
2618 * configure.ac: Remove option --with-gc.
2619 * configure: Re-generate.
2620 * doc/install.texi: Remove documentation for --with-gc.
2621 * gengtype.c (write_enum_defn): Remove. Update all users.
2622 (write_Types_process_field): Remove generation of gt_e_* argument.
2623 (output_type_enum): Remove. Update all users.
2624 (write_enum_defn): Remove. Update all users.
2625 (enum alloc_zone): Remove. Update all users.
2626 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
2627 * ggc-common.c (ggc_splay_alloc): Remove first argument.
2629 (struct ptr_data): Remove field TYPE. Update all users.
2630 (gt_pch_note_object): Remove argument TYPE. Update all users.
2631 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
2633 * ggc-none.c (ggc_alloc_typed_stat): Remove.
2634 (struct alloc_zone): Remove.
2635 (ggc_internal_alloc_zone_stat): Remove.
2636 (ggc_internal_cleared_alloc_zone_stat): Remove.
2637 * ggc-page.c (ggc_alloc_typed_stat): Remove.
2638 (ggc_pch_count_object): Remove last argument. Update all users.
2639 (ggc_pch_alloc_object): Remove last argument. Update all users.
2640 (struct alloc_zone): Remove.
2641 * ggc-zone.c: Remove.
2642 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
2643 (struct alloc_zone): Remove.
2644 (ggc_alloc_typed_stat): Remove.
2645 (ggc_alloc_typed): Remove.
2646 (ggc_splay_alloc): Remove first argument.
2647 (rtl_zone): Remove. Update all users.
2648 (tree_zone): Remove. Update all users.
2649 (tree_id_zone): Remove. Update all users.
2650 (ggc_internal_zone_alloc_stat): Remove. Update all users.
2651 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
2652 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
2653 * tree-ssanames.c: Remove references to zone allocator in comments.
2655 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
2657 * config/avr/avr.c (avr_out_fract): Make register numbers that
2658 might be outside of source operand signed.
2660 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
2662 * config/i386/constraints.md (Yf): New constraint.
2663 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
2664 of f constraint to conditionaly disable x87 register preferences.
2665 (*movdf_internal): Ditto.
2666 (*movsf_internal): Ditto.
2668 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
2671 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
2672 that have operands with impossible constraints.
2673 Add a FIXME for a speed-up opportunity.
2674 * lra-constraints.c (process_alt_operands): Verify that a class
2675 selected from constraints on asms is valid for the operand mode.
2676 (curr_insn_transform): Remove incorrect comment.
2678 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
2680 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
2681 TOC operand is a valid symbol ref in the constant pool.
2683 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2685 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
2687 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
2690 * config/avr/stdfix.h: New file.
2691 * t-avr (stdfix-gcc.h): New rule to build it.
2692 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
2694 2013-01-23 Kostya Serebryany <kcc@google.com>
2696 * config/darwin.h: remove dependency on
2697 CoreFoundation (asan on Mac OS).
2699 2013-01-23 Jakub Jelinek <jakub@redhat.com>
2702 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
2703 instead of cmpdi_operand for first comparison operand.
2704 Don't assert that comparison operands aren't both constants.
2706 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
2708 * doc/install.texi (Downloading the Source): Update references to
2709 downloading separate components.
2711 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
2713 * doc/extend.texi (__int128): Improve grammar.
2715 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
2718 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
2719 alternative to (o,r).
2720 (*movdi_internal_rex64): Remove (!o,n) alternative.
2721 (DImode immediate->memory splitter): Remove.
2722 (DImode immediate->memory peephole2): Remove.
2723 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
2724 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
2725 alternative to (!o,*r).
2726 (*movtf_internal_sse): New pattern.
2727 (*movxf_internal_rex64): New pattern.
2728 (*movxf_internal): Disable for TARGET_64BIT.
2729 (*movdf_internal_rex64): Remove (!o,F) alternative.
2731 2013-01-22 Jakub Jelinek <jakub@redhat.com>
2734 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
2735 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
2736 * tree-vect-loop-manip.c (find_loop_location): Also ignore
2737 stmt locations where LOCATION_LOCUS of the stmt location is
2738 UNKNOWN_LOCATION or BUILTINS_LOCATION.
2741 * config/i386/i386.md (UNSPEC_STOS): New.
2742 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
2743 *strsetqi_1): Add UNSPEC_STOS.
2745 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
2748 * doc/invoke.texi: Remove left over -Wsynth example.
2750 2013-01-21 Jakub Jelinek <jakub@redhat.com>
2752 PR tree-optimization/56051
2753 * fold-const.c (fold_binary_loc): Don't fold
2754 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
2755 a narrowing conversion, or widening conversion from signed
2758 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
2760 PR rtl-optimization/56023
2761 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
2762 dependent on debug instruction.
2764 2013-01-21 Martin Jambor <mjambor@suse.cz>
2767 * function.c (allocate_struct_function): Call
2768 invoke_set_current_function_hook earlier.
2770 2013-01-21 Jakub Jelinek <jakub@redhat.com>
2772 * reload1.c (init_reload): Only initialize reload_obstack
2773 during the first call.
2775 2013-01-21 Marek Polacek <polacek@redhat.com>
2777 * cfgloop.c (verify_loop_structure): Fix up grammar.
2779 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
2781 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
2782 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
2784 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2787 * config/arm/marvell-pj4.md: Update copyright year.
2788 Fix up use of alu to alu_reg and simple_alu_imm.
2790 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
2792 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
2794 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
2797 * lra-constraints.c (curr_insn_transform): Don't reuse original
2798 insn for secondary memory move when memory mode should be different.
2800 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2802 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
2803 atomic_storedi_1): New patterns.
2805 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2807 btver2 pipeline descriptions.
2808 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
2810 * config/i386/i386.md (btver2_decode): New type attributes.
2811 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
2813 * config/i386/btver2.md: New file describing btver2 pipelines.
2815 2013-01-19 Andrew Pinski <apinski@cavium.com>
2817 PR tree-optimization/52631
2818 * tree-ssa-sccvn (visit_use): Before looking up the original
2819 statement, try looking up the simplified expression.
2821 2013-01-19 Anthony Green <green@moxielogic.com>
2823 * config/moxie/moxie.c (moxie_expand_prologue): Set
2824 current_function_static_stack_size.
2826 2013-01-18 Jakub Jelinek <jakub@redhat.com>
2828 PR tree-optimization/56029
2829 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
2830 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
2832 2013-01-18 Sharad Singhai <singhai@google.com>
2834 PR tree-optimization/55995
2835 * dumpfile.c (dump_loc): Print location only if available.
2836 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
2838 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
2841 * lra-constraints.c (curr_insn_transform): Reuse original insn for
2842 secondary memory move.
2843 (inherit_reload_reg): Use rclass instead of cl for
2844 check_secondary_memory_needed_p.
2846 2013-01-18 Jakub Jelinek <jakub@redhat.com>
2849 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
2850 the case where writing real complex part of target modifies op1.
2852 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
2854 * config/aarch64/aarch64-simd.md
2855 (aarch64_vcond_internal<mode>): Handle unordered cases.
2856 * config/aarch64/iterators.md (v_cmp_result): New.
2858 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
2859 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2861 * config/arm/marvell-pj4.md: New file.
2862 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
2863 * config/arm/arm.md (generic_sched): Add marvell_pj4.
2864 (generic_vfp): Likewise.
2865 * config/arm/arm-cores.def: Add marvell-pj4.
2866 * config/arm/arm-tune.md: Regenerate.
2867 * config/arm/arm-tables.opt: Regenerate.
2868 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
2869 * doc/invoke.texi: Document marvell-pj4.
2871 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
2873 * config/aarch64/arm_neon.h: Map scalar types to standard types.
2875 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
2880 * var-tracking.c (negative_power_of_two_p): New.
2881 (global_get_addr_cache, local_get_addr_cache): New.
2882 (get_addr_from_global_cache, get_addr_from_local_cache): New.
2883 (vt_canonicalize_addr): Rewrite using the above. Adjust the
2885 (vt_stack_offset_p): Remove.
2886 (vt_canon_true_dep): Always canonicalize loc's address.
2887 (clobber_overlapping_mems): Make sure we have a MEM.
2888 (local_get_addr_clear_given_value): New.
2889 (val_reset): Clear local cached entries.
2890 (compute_bb_dataflow): Create and release the local cache.
2891 Disable duplicate MEMs clobbering.
2892 (emit_notes_in_bb): Clobber MEMs likewise.
2893 (vt_emit_notes): Create and release the local cache.
2894 (vt_initialize, vt_finalize): Create and release the global
2895 cache, respectively.
2896 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
2898 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
2901 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
2902 not found in the symtab.
2904 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
2907 PR rtl-optimization/55547
2908 PR rtl-optimization/53827
2911 * alias.c (offset_overlap_p): New, factored out of...
2912 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
2913 the conservative special case for symbolic constants. Don't
2914 adjust zero sizes on alignment.
2916 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
2918 PR rtl-optimization/52573
2919 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
2920 REG_UNUSED for the same register.
2922 2013-01-17 Richard Biener <rguenther@suse.de>
2923 Marek Polacek <polacek@redhat.com>
2925 PR rtl-optimization/55833
2926 * loop-unswitch.c (unswitch_loops): Move loop verification...
2927 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
2928 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
2929 Set it to true when we're removing a loop from hierarchy tree in
2930 an irreducible region.
2931 (fix_bb_placements): Adjust caller.
2932 (fix_loop_placements): Likewise.
2934 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
2936 * config/avr/builtins.def (DEF_BUILTIN): Factor out
2937 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
2938 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
2939 Remove ID. Adjust comments.
2940 * config/avr/avr-c.c (avr_builtin_name): Remove.
2941 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
2942 * config/avr/avr.c (avr_tolower): New static function.
2943 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
2944 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
2945 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
2948 2013-01-17 Jan Hubicka <jh@suse.cz>
2950 PR tree-optimization/55273
2951 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
2953 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
2956 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
2957 store through atomic_store<mode>_1.
2958 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
2960 2013-01-17 Martin Jambor <mjambor@suse.cz>
2962 PR tree-optimizations/55264
2963 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
2964 for virtual methods.
2965 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
2966 virtual methods before inlining is over.
2967 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
2969 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
2972 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
2974 PR rtl-optimization/56005
2975 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
2976 pending reads for prefetch.
2978 2013-01-16 Ian Bolton <ian.bolton@arm.com>
2980 * config/aarch64/aarch64.md
2981 (*cstoresi_neg_uxtw): New pattern.
2982 (*cmovsi_insn_uxtw): New pattern.
2983 (*<optab>si3_uxtw): New pattern.
2984 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
2985 (*<optab>si3_insn_uxtw): New pattern.
2986 (*bswapsi2_uxtw): New pattern.
2988 2013-01-16 Richard Biener <rguenther@suse.de>
2990 * tree-inline.c (tree_function_versioning): Remove set but
2991 never used variable.
2993 2013-01-16 Richard Biener <rguenther@suse.de>
2995 PR tree-optimization/55964
2996 * tree-flow.h (rename_variables_in_loop): Remove.
2997 (rename_variables_in_bb): Likewise.
2998 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
2999 (copy_loop_before): Adjust and delete update-ssa status.
3000 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
3001 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
3002 (rename_variables_in_loop): Remove.
3003 (slpeel_update_phis_for_duplicate_loop): Likewise.
3004 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
3005 use available cfg machinery instead of duplicating it.
3006 Update PHI nodes and perform poor-mans SSA update here.
3007 (slpeel_tree_peel_loop_to_edge): Adjust.
3009 2013-01-16 Richard Biener <rguenther@suse.de>
3011 PR tree-optimization/54767
3012 PR tree-optimization/53465
3013 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
3014 (vrp_visit_phi_node): For PHI arguments coming via backedges
3015 drop all symbolical range information.
3016 (execute_vrp): Compute backedges.
3018 2013-01-16 Richard Biener <rguenther@suse.de>
3020 * doc/install.texi: Update CLooG and ISL requirements to
3023 2013-01-16 Christian Bruel <christian.bruel@st.com>
3026 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
3027 (broken_move): Handle UNSPECV_SP_SWITCH_B.
3028 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
3030 2013-01-16 DJ Delorie <dj@redhat.com>
3032 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
3033 (UNSPECV_SP_SWITCH_E): New.
3034 (sp_switch_1): Change to an unspec.
3035 (sp_switch_2): Change to an unspec. Don't use post-inc when we
3038 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
3040 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
3041 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
3042 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
3043 (expand_mem_thread_fence): Ditto.
3044 (expand_mem_signal_fence): Ditto.
3045 (expand_atomic_load): Ditto.
3046 (expand_atomic_store): Ditto.
3048 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
3050 PR rtl-optimization/55547
3051 PR rtl-optimization/53827
3054 * alias.c (memrefs_conflict_p): Set sizes to negative after
3057 2013-01-15 Jakub Jelinek <jakub@redhat.com>
3060 * function.c (thread_prologue_and_epilogue_insns): Always
3061 add crtl->drap_reg to set_up_by_prologue.set, even if
3062 stack_realign_drap is false.
3064 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3066 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
3067 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
3068 *call): Fix indention.
3070 2013-01-15 Tom de Vries <tom@codesourcery.com>
3073 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
3076 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
3078 PR rtl-optimization/55153
3079 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
3081 2013-01-15 Martin Jambor <mjambor@suse.cz>
3083 PR tree-optimization/55920
3084 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
3085 accesses as grp_to_be_debug_replaced.
3087 2013-01-15 Jakub Jelinek <jakub@redhat.com>
3089 PR tree-optimization/55920
3090 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
3091 there is non-useless type conversion needed from debug rhs to lhs,
3092 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
3094 2013-01-15 Joseph Myers <joseph@codesourcery.com>
3095 Mikael Pettersson <mikpe@it.uu.se>
3098 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
3100 (ASM_OUTPUT_CASE_LABEL): Remove.
3101 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
3102 * final.c (shorten_branches): Update alignment of labels before
3103 jump tables if CASE_VECTOR_SHORTEN_MODE.
3105 2013-01-15 Richard Biener <rguenther@suse.de>
3108 * system.h: Do not include gmp.h for building host tools.
3110 2013-01-15 Richard Biener <rguenther@suse.de>
3113 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
3114 account for bitpos when computing alignment.
3116 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
3118 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
3119 (ix86_target_macros_internal): Likewise.
3121 * config/i386/i386.c (m_CORE2I7): Removed.
3122 (m_CORE_HASWELL): New macro.
3123 (m_CORE_ALL): Likewise.
3124 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
3125 (initial_ix86_arch_features): Likewise.
3126 (processor_target_table): Initializations for Core avx2.
3127 (cpu_names): New names "core-avx2".
3128 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
3129 PROCESSOR_CORE_HASWELL.
3130 (ix86_issue_rate): New case.
3131 (ia32_multipass_dfa_lookahead): Likewise.
3132 (ix86_sched_init_global): Likewise.
3134 * config/i386/i386.h (TARGET_HASWELL): New macro.
3135 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
3136 (processor_type): New PROCESSOR_HASWELL.
3138 2013-01-15 Jakub Jelinek <jakub@redhat.com>
3140 PR tree-optimization/55955
3141 * tree-vect-loop.c (vectorizable_reduction): Give up early on
3142 *SHIFT_EXPR and *ROTATE_EXPR codes.
3144 PR tree-optimization/48766
3145 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
3146 -ftrapv disable -fwrapv.
3148 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
3151 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
3152 etc. to 1 and not to __flash.
3153 Use LL suffix for __INT24_MAX__ with -mint8.
3154 Use ULL suffix for __UINT24_MAX__ with -mint8.
3156 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
3158 * config/avr/avr-arch.h
3159 (struct base_arch_s): Use typedef avr_arch_t instead.
3160 (struct arch_info_s): Use typedef avr_arch_info_t instead.
3161 (struct mcu_type_s): Use typedef avr_mcu_t instead.
3162 * config/avr/avr.c: Same.
3163 * config/avr/avr-devices.c: Same.
3164 * config/avr/driver-avr.c: Same.
3165 * config/avr/gen-avr-mmcu-texi.c: Same.
3166 * config/avr/avr-mcus.def: Adjust comment.
3168 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
3170 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
3171 * config/aarch64/iterators.md (VALLDI): New.
3173 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
3174 Andi Kleen <ak@linux.intel.com>
3177 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
3178 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
3181 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
3183 * config/avr/avr-stdint.h: Remove trailing blanks.
3184 * config/avr/avr-log.h: Same.
3185 * config/avr/avr-arch.h: Same.
3186 * config/avr/avr-devices.c: Same.
3187 * config/avr/avr-dimode.md: Same.
3188 * config/avr/predicates.md: Same.
3189 * config/avr/avr-c.c: Same. And fix typo.
3191 * config/avr/avr-protos.h: Same. And:
3192 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
3193 (init_cumulative_args): Rename to avr_init_cumulative_args.
3194 (expand_prologue): Rename to avr_expand_prologue.
3195 (expand_epilogue): Rename to avr_expand_epilogue.
3196 (adjust_insn_length): Rename to avr_adjust_insn_length.
3197 (notice_update_cc): Rename to avr_notice_update_cc.
3198 (final_prescan_insn): Rename to avr_final_prescan_insn.
3199 * config/avr/avr.c: Same.
3200 * config/avr/avr.h: Same.
3201 * config/avr/avr.md: Remove trailing blanks.
3202 (prologue): Use avr_expand_prologue.
3203 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
3205 2013-01-14 Richard Biener <rguenther@suse.de>
3207 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
3208 verify_location, collect_subblocks): New functions.
3209 (verify_gimple_in_cfg): Verify that locations only reference
3210 BLOCKs in the functions BLOCK tree.
3212 2013-01-14 Richard Biener <rguenther@suse.de>
3214 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
3216 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
3218 (insert_out_of_ssa_copy_on_edge): Likewise.
3219 (rewrite_close_phi_out_of_ssa): Likewise.
3220 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
3222 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
3223 propagated constants.
3224 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
3227 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
3229 * config/avr/avr-modes.def: Add GPL copyright notice.
3231 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
3233 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
3234 MEMMODEL_MASK to determine memory model.
3235 (atomic_store<mode>): Ditto from operands[2].
3236 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
3238 2013-01-13 Jakub Jelinek <jakub@redhat.com>
3241 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
3242 (fold_gimple_assign): Don't call unshare_expr here.
3243 (fold_ctor_reference): Call unshare_expr.
3245 2013-01-13 Terry Guo <terry.guo@arm.com>
3247 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
3248 * doc/fragments.texi: Document MULTILIB_REUSE.
3249 * gcc.c (multilib_reuse): New internal spec.
3250 (set_multilib_dir): Also search multilib from multilib_reuse.
3251 * genmultilib (tmpmultilib3): Refactor code.
3252 (tmpmultilib4): Ditto.
3253 (multilib_reuse): New multilib argument.
3255 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
3257 * Makefile.in: Update copyright.
3259 2013-01-12 Tom de Vries <tom@codesourcery.com>
3262 * calls.c (expand_call): Check if arg_nr is valid.
3264 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3266 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
3267 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
3268 documentation. Add missing '__' in front of
3269 __builtin_ia32_packssdw256.
3271 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3274 * config/s390/s390.c (s390_preferred_reload_class): Do not return
3275 NO_REGS for larl operands.
3276 (s390_reload_larl_operand): Use s390_load_address instead of
3279 2013-01-11 Richard Biener <rguenther@suse.de>
3281 * tree-cfg.c (verify_node_sharing_1): Split out from ...
3282 (verify_node_sharing): ... here.
3283 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
3285 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
3287 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
3288 Substitute TREECHECKING.
3289 * configure: Regenerate.
3290 * Makefile.in (TREECHECKING): New.
3292 2013-01-11 Richard Guenther <rguenther@suse.de>
3294 PR tree-optimization/44061
3295 * tree-vrp.c (extract_range_basic): Compute zero as
3296 value-range for __builtin_constant_p of function parameters.
3298 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
3300 Update copyright years.
3302 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
3304 PR rtl-optimization/55672
3305 * lra-eliminations.c (mark_not_eliminable): Permit addition with
3306 const to be eliminable.
3308 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
3310 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
3311 * configure: Regenerate.
3313 2013-01-10 Richard Biener <rguenther@suse.de>
3315 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
3317 2013-01-10 Richard Biener <rguenther@suse.de>
3320 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
3321 locations for virtual PHI arguments.
3322 (rewrite_update_phi_arguments): Likewise.
3324 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
3326 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
3329 2013-01-10 Jakub Jelinek <jakub@redhat.com>
3331 PR tree-optimization/55921
3332 * tree-complex.c (expand_complex_asm): New function.
3333 (expand_complex_operations_1): Call it for GIMPLE_ASM.
3335 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3338 * config/s390/s390.c (s390_symref_operand_p)
3339 (s390_loadrelative_operand_p): Merge the two functions.
3340 (s390_check_qrst_address, print_operand_address): Add parameters
3341 to s390_loadrelative_operand_p invokation.
3342 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
3343 (s390_reload_larl_operand, s390_secondary_reload): Use
3344 s390_loadrelative_operand_p instead of s390_symref_operand_p.
3345 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
3347 2013-01-09 Mike Stump <mikestump@comcast.net>
3349 * dse.c (record_store): Remove unnecessary assert.
3351 2013-01-09 Jan Hubicka <jh@suse.cz>
3353 PR tree-optimization/55569
3354 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
3355 * cfgloop.h (scale_loop_profile): Likewise.
3357 2013-01-09 Jan Hubicka <jh@suse.cz>
3360 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
3362 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
3364 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
3367 * expr.h (maybe_emit_group_store): Declare.
3368 * expr.c (maybe_emit_group_store): New function.
3369 * builtins.c (expand_builtin_int_roundingfn): Call it.
3370 (expand_builtin_int_roundingfn_2): Likewise.
3372 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
3374 PR rtl-optimization/55829
3375 * lra-constraints.c (match_reload): Add code for absent output.
3376 (curr_insn_transform): Add code for reloads of matched inputs
3379 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
3381 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
3382 attribute of movddup insn to DF.
3383 (*vec_interleave_lowv2df): Ditto.
3384 (vec_dupv2df): Ditto.
3386 2013-01-09 Jan Hubicka <jh@suse.cz>
3388 PR tree-optimiation/55875
3389 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
3390 EVERY_ITERATION parameter.
3391 (number_of_iterations_exit): Check if exit is executed every iteration.
3392 (idx_infer_loop_bounds): Similarly here.
3393 (n_of_executions_at_most): Simplify
3394 to only test for cases where statement is dominated by the
3395 particular bound; handle correctly the "postdominance" test.
3396 (scev_probably_wraps_p): Use max loop iterations info
3397 as a global bound first.
3399 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3400 Nick Clifton <nickc@redhat.com>
3402 * config/v850/v850.md (cbranchsf4): New pattern.
3403 (cstoresf4): New pattern.
3404 (cbranchdf4): New pattern.
3405 (cstoredf4): New pattern.
3406 (movsicc): Disallow floating point comparisons.
3407 (cmpsf_le_insn): Fix order of operators.
3408 (cmpsf_lt_insn): Likewise.
3409 (cmpsf_eq_insn): Likewise.
3410 (cmpdf_le_insn): Likewise.
3411 (cmpdf_lt_insn): Likewise.
3412 (cmpdf_eq_insn): Likewise.
3413 (cmpsf_ge_insn): Use LE comparison.
3414 (cmpdf_ge_insn): Likewise.
3415 (cmpsf_gt_insn): Use LT comparison.
3416 (cmpdf_gt_insn): Likewise.
3417 (cmpsf_ne_insn): Delete pattern.
3418 (cmpdf_ne_insn): Delete pattern.
3419 * config/v850/v850.c (v850_gen_float_compare): Use
3420 gen_cmpdf_eq_insn for NE comparison.
3421 (v850_float_z_comparison_operator)
3422 (v850_float_nz_comparison_operator): Move from here ...
3423 * config/v850/predicates.md: ... to here. Move GT and GE
3424 comparisons into v850_float_z_comparison_operator.
3425 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
3427 (v850_float_nz_comparison_operator): Likewise.
3429 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3431 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
3432 with calls to gen_insvsi/gen_insvdi.
3434 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3436 * config/i386/i386.c (initial_ix86_tune_features): Set up
3437 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
3439 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
3440 Jakub Jelinek <jakub@redhat.com>
3442 PR tree-optimization/48189
3443 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
3444 If nitercst is 0, don't predict the exit edge.
3446 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3448 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
3449 in asm_fprintf with reg_names.
3450 (aarch64_print_operand_address): Likewise.
3451 (aarch64_return_addr): Likewise.
3452 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
3454 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3456 * config/pa/pa.h (VAL_U6_BITS_P): Define.
3457 (INT_U6_BITS): Likewise.
3458 * config/pa/predicates.md (uint6_operand): New predicate.
3459 (shift5_operand, shift6_operand): Likewise.
3460 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
3462 (lshrdi3): Use shift6_operand.
3463 (shrpsi4, shrpdi4): New insn patterns.
3464 (extzv): Delete expander.
3465 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
3466 predicates in unamed zero extract patterns. Tighten common constraint.
3467 (extv): Delete expander.
3468 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
3469 predicates in unamed sign extract patterns. Tighten common constraint.
3470 (insv): Delete expander.
3471 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
3472 predicates in unamed insert patterns. Tighten common constraint.
3473 Change uint32_operand predicate to uint6_operand predicate in unamed
3474 DImode pattern to insert constant values of type 1...1xxxx.
3476 2013-01-04 Jan Hubicka <jh@suse.cz>
3478 PR tree-optimization/55823
3479 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
3482 2013-01-08 Jakub Jelinek <jakub@redhat.com>
3483 Uros Bizjak <ubizjak@gmail.com>
3485 PR rtl-optimization/55845
3486 * df-problems.c (can_move_insns_across): Stop scanning at
3487 volatile_insn_p source instruction or give up if
3488 across_from .. across_to range contains any volatile_insn_p
3491 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
3493 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
3494 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
3496 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
3497 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
3499 2013-01-08 Jakub Jelinek <jakub@redhat.com>
3502 * asan.c (asan_clear_shadow): New function.
3503 (asan_emit_stack_protection): Use it.
3505 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
3507 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
3508 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
3509 with tab instead of space.
3511 2013-01-08 Nick Clifton <nickc@redhat.com>
3513 * config/rl78/rl78.c (rl78_expand_prologue): Always select
3514 register bank 0 at the start of an interrupt handler.
3515 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
3518 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
3520 * config/aarch64/aarch64-simd.md
3521 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
3522 (aarch64_simd_bsl): Likewise.
3523 (aarch64_vcond_internal<mode>): Likewise.
3524 (vcond<mode><mode>): Likewise.
3525 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
3526 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
3528 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
3530 * config/aarch64/aarch64-builtins.c
3531 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
3533 2013-01-08 Martin Jambor <mjambor@suse.cz>
3536 * tree-sra.c (analyze_access_subtree): Return true also after
3537 potentially creating a debug-only replacement.
3539 2013-01-08 Jakub Jelinek <jakub@redhat.com>
3542 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
3544 PR tree-optimization/54120
3545 * tree-vrp.c (range_fits_type_p): Don't allow
3546 src_precision < precision from signed vr to unsigned_p
3547 if vr->min or vr->max is negative.
3548 (simplify_float_conversion_using_ranges): Test can_float_p
3549 against CODE_FOR_nothing.
3551 2013-01-08 Jakub Jelinek <jakub@redhat.com>
3552 Richard Biener <rguenther@suse.de>
3555 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
3556 types instead of just INTEGER_TYPE types.
3558 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
3560 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
3563 2013-01-07 Steve Ellcey <sellcey@mips.com>
3566 * config/mips/mips.opt: Change mad to mmad to match documentation.
3568 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3571 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
3574 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3577 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
3578 (avr_addrspace_t): Add .section_name field.
3579 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
3581 (avr_addrspace): Same. Initialize .section_name. Remove last
3582 NULL entry. Put __memx into .progmemx.data.
3583 (progmem_section_prefix): Remove.
3584 (avr_asm_init_sections): No need to initialize progmem_section.
3585 (avr_asm_named_section): Use avr_addrspace[].section_name to get
3586 section name prefix.
3587 (avr_asm_select_section): Ditto. And use get_unnamed_section to
3588 retrieve the progmem section.
3589 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
3590 boundary to run over avr_addrspace[].
3591 (avr_register_target_pragmas): Ditto.
3593 2013-01-06 Jakub Jelinek <jakub@redhat.com>
3595 * varasm.c (output_constant_def_contents): For asan_protect_global
3596 protected strings, adjust DECL_ALIGN if needed, before testing for
3598 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
3599 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
3601 (output_object_block): For asan protected decls, emit asan padding
3602 after their contents.
3603 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
3604 (asan_finish_file): Test it here instead.
3606 2013-01-07 Nick Clifton <nickc@redhat.com>
3607 Matthias Klose <doko@debian.org>
3608 Doug Kwan <dougkwan@google.com>
3609 H.J. Lu <hongjiu.lu@intel.com>
3612 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
3614 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
3616 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
3618 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
3620 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
3622 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3625 * doc/install.texi (Cross-Compiler-Specific Options): Document
3628 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
3630 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
3631 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
3632 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
3633 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
3634 vqmovun_high_s64): Fix source operand number and update copyright.
3636 2013-01-07 Richard Biener <rguenther@suse.de>
3639 * gimple.h (gimple_call_builtin_p): New overload.
3640 * gimple.c (validate_call): New function.
3641 (gimple_call_builtin_p): Likewise.
3642 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3643 Use gimple_call_builtin_p.
3644 (find_func_clobbers): Likewise.
3645 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
3646 (strlen_optimize_stmt): Likewise.
3648 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
3650 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
3651 (vld1q_dup_*): Likewise.
3653 (vld1q_*): Likewise.
3654 (vld1_lane_*): Likewise.
3655 (vld1q_lane_*): Likewise.
3657 2013-01-07 Richard Biener <rguenther@suse.de>
3659 * lto-streamer.h (LTO_minor_version): Bump to 2.
3661 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
3663 * config/aarch64/aarch64-protos.h
3664 (aarch64_const_double_zero_rtx_p): Rename to...
3665 (aarch64_float_const_zero_rtx_p): ...this.
3666 (aarch64_float_const_representable_p): New.
3667 (aarch64_output_simd_mov_immediate): Likewise.
3668 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
3669 move immediate case.
3670 * config/aarch64/aarch64.c
3671 (aarch64_const_double_zero_rtx_p): Rename to...
3672 (aarch64_float_const_zero_rtx_p): ...this.
3673 (aarch64_print_operand): Allow printing of new constants.
3674 (aarch64_valid_floating_const): New.
3675 (aarch64_legitimate_constant_p): Check for valid floating-point
3677 (aarch64_simd_valid_immediate): Likewise.
3678 (aarch64_vect_float_const_representable_p): New.
3679 (aarch64_float_const_representable_p): Likewise.
3680 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
3681 (aarch64_output_simd_mov_immediate): New.
3682 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
3683 (*movdf_aarch64): Likewise.
3684 * config/aarch64/constraints.md (Ufc): New.
3685 (Y): call aarch64_float_const_zero_rtx.
3686 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
3688 2013-01-07 Richard Biener <rguenther@suse.de>
3690 PR tree-optimization/55888
3691 PR tree-optimization/55862
3692 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
3693 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
3694 not if it is contained therein.
3696 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3698 * config/avr/t-avr: Typo.
3700 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3703 * config/avr/t-avr: Don't automatically rebuild
3704 $(srcdir)/config/avr/t-multilib
3705 $(srcdir)/config/avr/avr-tables.opt
3706 $(srcdir)/doc/avr-mmcu.texi
3707 (avr-mcus): New phony target to build them on request.
3708 (s-avr-mlib, s-avr-mmcu-texi): Remove.
3709 * avr/avr-mcus.def: Adjust comments.
3711 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
3713 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
3715 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
3717 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
3719 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
3721 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
3723 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
3725 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
3726 to generate profiling.
3727 * config/rs6000/aix64.h (LIB_SPEC): Same.
3729 2013-01-04 Andrew Pinski <apinski@cavium.com>
3731 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
3733 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3735 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
3737 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
3739 (ix86_expand_move): Ditto.
3740 (ix86_zero_extend_to_Pmode): Ditto.
3741 (ix86_expand_call): Ditto.
3742 (ix86_expand_special_args_builtin): Ditto.
3743 (ix86_expand_builtin): Ditto.
3745 2013-01-04 Richard Biener <rguenther@suse.de>
3747 PR tree-optimization/55862
3748 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
3749 translating them through PHI nodes.
3751 2013-01-04 Martin Jambor <mjambor@suse.cz>
3753 PR tree-optimization/55755
3754 * tree-sra.c (sra_modify_assign): Do not check that an access has no
3755 children when trying to avoid producing a VIEW_CONVERT_EXPR.
3757 2013-01-04 Marek Polacek <polacek@redhat.com>
3760 * opts.c (default_options_optimization): Clarify error message.
3762 2013-01-04 Richard Biener <rguenther@suse.de>
3765 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
3768 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3771 * config/pa/pa.md (movsi): Revert previous change.
3772 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
3775 2013-01-03 Richard Henderson <rth@redhat.com>
3777 * config/i386/i386.c (ix86_expand_move): Always assign to op1
3778 after eliminating TLS symbols.
3780 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
3783 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
3784 * graphite-poly.c (debug_gmp_value): Likewise.
3786 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
3789 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
3790 selected code model, define __code_mode_small__, __code_model_medium__,
3791 __code_model_large__, __code_model_32__ or __code_model_kernel__.
3792 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
3793 xchg temporary register with %k. Declare temporary register as
3795 [__x86_64__]: For medium and large code models, preserve %rbx register.
3797 2013-01-03 Richard Biener <rguenther@suse.de>
3799 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
3800 (dump_subscript): Adjust.
3801 (finalize_ddr_dependent): Do not dump redundant info.
3802 (analyze_siv_subscript): Adjust.
3803 (subscript_dependence_tester): Likewise.
3804 (compute_affine_dependence): Likewise.
3806 2013-01-03 Richard Biener <rguenther@suse.de>
3809 2013-01-03 Richard Biener <rguenther@suse.de>
3811 PR tree-optimization/55857
3812 * tree-vect-stmts.c (vectorizable_load): Do not setup
3813 re-alignment for invariant loads.
3815 2013-01-02 Richard Biener <rguenther@suse.de>
3817 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
3818 invariant load do not generate a vector load from the scalar location.
3820 2013-01-03 Richard Biener <rguenther@suse.de>
3822 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
3823 for not vectorizing.
3824 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
3825 not build INDIRECT_REFs, call get_name once only.
3826 (vect_create_data_ref_ptr): Likewise. Dump base object kind
3827 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
3829 2013-01-03 Richard Biener <rguenther@suse.de>
3831 PR tree-optimization/55857
3832 * tree-vect-stmts.c (vectorizable_load): Do not setup
3833 re-alignment for invariant loads.
3835 2013-01-03 Richard Biener <rguenther@suse.de>
3838 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
3839 prefer a built-in decl.
3841 2013-01-03 Jakub Jelinek <jakub@redhat.com>
3843 * gcc.c (process_command): Update copyright notice dates.
3844 * gcov.c (print_version): Likewise.
3845 * gcov-dump.c (print_version): Likewise.
3847 PR rtl-optimization/55838
3848 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
3849 iv0.step, iv1.step and step.
3851 2013-01-03 Jakub Jelinek <jakub@redhat.com>
3852 Marc Glisse <marc.glisse@inria.fr>
3854 PR tree-optimization/55832
3855 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
3856 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
3857 integer_{one,zero}_node.
3859 2013-01-03 Jakub Jelinek <jakub@redhat.com>
3862 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
3863 * var-tracking.c (reverse_op): Don't add reverse ops to
3864 VALUEs that have already
3865 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
3867 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
3869 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
3871 2013-01-02 Teresa Johnson <tejohnson@google.com>
3873 * dumpfile.c (dump_loc): Print filename with location.
3874 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
3875 new location_t parameter to emit complete unroll message with
3877 (canonicalize_loop_induction_variables): Compute loops location
3878 and pass to try_unroll_loop_completely.
3879 * loop-unroll.c (report_unroll_peel): New function.
3880 (peel_loops_completely): Use new dump format with location
3881 for main dumpfile message, and invoke report_unroll_peel on success.
3882 (decide_unrolling_and_peeling): Ditto.
3883 (decide_peel_once_rolling): Remove old dumpfile message subsumed
3884 by report_unroll_peel.
3885 (decide_peel_completely): Ditto.
3886 (decide_unroll_constant_iterations): Ditto.
3887 (decide_unroll_runtime_iterations): Ditto.
3888 (decide_peel_simple): Ditto.
3889 (decide_unroll_stupid): Ditto.
3890 * cfgloop.c (get_loop_location): New function.
3891 * cfgloop.h (get_loop_location): Declare.
3893 2013-01-02 Sriraman Tallam <tmsriram@google.com>
3895 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
3898 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3901 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
3902 BLKmode objects when EXPAND_MEMORY is specified.
3904 2013-01-02 Sriraman Tallam <tmsriram@google.com>
3906 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
3908 (fold_builtin_cpu): Do not share cpu model decls across statements.
3910 2013-01-02 Jason Merrill <jason@redhat.com>
3913 * tree.c (build_array_type_1): Revert earlier change.
3915 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
3917 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
3919 * config/aarch64/aarch64-tune.md: Re-generate.
3921 2013-01-02 Richard Biener <rguenther@suse.de>
3923 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
3924 invariant load do not generate a vector load from the scalar location.
3926 2013-01-02 Richard Biener <rguenther@suse.de>
3929 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
3930 * configure: Regenerate.
3932 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3934 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
3935 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
3936 (expand_builtin_int_roundingfn_2): Keep the original target around
3937 for the fallback case.
3939 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3941 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
3942 to be clear for sign changes.
3944 2013-01-01 Jan Hubicka <jh@suse.cz>
3946 * ipa-inline-analysis.c: Fix formatting.
3948 2013-01-01 Jakub Jelinek <jakub@redhat.com>
3950 PR tree-optimization/55831
3951 * tree-vect-loop.c (get_initial_def_for_induction): Use
3952 gsi_after_labels instead of gsi_start_bb.
3954 Copyright (C) 2013 Free Software Foundation, Inc.
3956 Copying and distribution of this file, with or without modification,
3957 are permitted in any medium without royalty provided the copyright
3958 notice and this notice are preserved.