1 2013-05-23 Richard Biener <rguenther@suse.de>
3 PR rtl-optimization/57341
4 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
5 instead of true_dependence.
7 2013-05-23 Jakub Jelinek <jakub@redhat.com>
10 * expmed.c (store_split_bit_field): If op0 is a REG or
11 SUBREG of a REG, don't lower unit. Handle unit not being
14 2013-05-22 Uros Bizjak <ubizjak@gmail.com>
17 * config/i386/i386.md (*movti_internal_rex64): Emit movaps/movups
19 (*movti_internal): Simplify mode attribute calculation.
21 2013-05-22 Richard Biener <rguenther@suse.de>
23 Backport from mainline
24 2013-05-21 Richard Biener <rguenther@suse.de>
26 PR tree-optimization/57318
27 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
28 estimate stmts with side-effects as likely eliminated.
30 2013-05-21 Richard Biener <rguenther@suse.de>
32 PR tree-optimization/57330
33 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
34 preserve the call stmts fntype.
36 2013-05-21 Richard Biener <rguenther@suse.de>
38 PR tree-optimization/57303
39 * tree-ssa-sink.c (statement_sink_location): Properly handle
42 2013-05-21 Magnus Granberg <baldrick@free.fr>
45 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
47 2013-05-21 Eric Botcazou <ebotcazou@adacore.com>
49 Backport from mainline
50 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
52 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
53 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
55 2013-05-17 Jakub Jelinek <jakub@redhat.com>
57 PR rtl-optimization/57281
58 PR rtl-optimization/57300
59 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
60 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
61 what the other splitter did if the registers are dead.
63 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
65 Backport from mainline
66 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
68 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
69 cache parameters using detect_caches_amd also for CYRIX,
70 NSC and TM2 signatures.
72 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
73 Dzianis Kahanovich <mahatma@eu.by>
77 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
78 VIA/Centaur processors and determine their cache parameters
79 using detect_caches_amd.
81 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
83 * config/i386/i386.c (ix86_option_override_internal): Update
84 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
85 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
86 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
87 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
89 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
91 2013-05-17 Jakub Jelinek <jakub@redhat.com>
93 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
96 PR tree-optimization/57051
97 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
98 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
100 2013-05-16 Jakub Jelinek <jakub@redhat.com>
102 * omp-low.c (extract_omp_for_data): For collapsed loops,
103 if at least one of the loops is known at compile time to
104 iterate zero times, set count to 0.
105 (expand_omp_regimplify_p): New function.
106 (expand_omp_for_generic): For collapsed loops, if at least
107 one of the loops isn't known to iterate at least once,
108 add runtime check with setting count to 0.
109 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
110 For unsigned types if it isn't known at compile time that
111 the loop will iterate at least once, add runtime check to bypass
112 the whole loop if initial condition isn't true.
114 2013-05-14 Jakub Jelinek <jakub@redhat.com>
117 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
118 the case when both op0 and op1 have VOIDmode.
120 2013-05-13 Jakub Jelinek <jakub@redhat.com>
122 PR tree-optimization/57230
123 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
126 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
128 * config/epiphany/epiphany.c (epiphany_init): Check size of
129 NUM_MODES_FOR_MODE_SWITCHING.
130 (epiphany_expand_prologue):
131 Remove CONFIG_REGNUM initial value handling code.
132 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
133 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
134 (emit_set_fp_mode, epiphany_mode_after): Likewise.
135 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
136 Don't return 1 for FP_MODE_NONE.
137 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
138 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
139 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
140 * config/epiphany/epiphany.md (save_config): New pattern.
142 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
144 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
145 Add mthumb/march=armv7-a multilib.
146 Add mthumb/march=armv7-r multilib.
147 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
149 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
152 * config/v850/t-rtems: Add more multilibs.
154 2013-05-10 Richard Biener <rguenther@suse.de>
156 PR tree-optimization/57214
157 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
158 not propagate from SSA names that occur in abnormal PHI nodes.
160 2013-05-10 Alan Modra <amodra@gmail.com>
163 * varasm.c (default_elf_select_section): Move !DECL_P check..
164 (get_named_section): ..to here before calling get_section_name.
166 (default_section_type_flags): Add DECL_P check.
167 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
168 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
170 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
172 * config/epiphany/epiphany.c (epiphany_expand_prologue):
173 When using gen_stack_adjust_str with a register offset, add a
174 REG_FRAME_RELATED_EXPR note.
176 2013-05-09 Martin Jambor <mjambor@suse.cz>
179 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
180 * ipa-cp.c (find_aggregate_values_for_callers_subset): Fill in the
181 by_ref flag of ipa_agg_replacement_value structures.
182 (known_aggs_to_agg_replacement_list): Likewise.
183 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
184 (read_agg_replacement_chain): Likewise.
185 (ipcp_transform_function): Also check that by_ref flags match.
187 2013-05-08 Diego Novillo <dnovillo@google.com>
193 2012-08-17 Diego Novillo <dnovillo@google.com>
196 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
197 * config.in: Regenerate.
198 * configure: Regenerate.
199 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is
202 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
204 PR tree-optimization/57200
205 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
206 Only call inform if the preceding warning_at returns true.
208 2013-05-07 Jakub Jelinek <jakub@redhat.com>
210 PR tree-optimization/57149
211 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
212 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
213 collect_phi_def_edges, execute_late_warn_uninitialized): Use
214 uninit_undefined_value_p instead of ssa_undefined_value_p.
217 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
218 for modifier == EXPAND_INITIALIZER.
220 2013-05-07 Richard Biener <rguenther@suse.de>
222 Backport from mainline
223 2013-05-06 Richard Biener <rguenther@suse.de>
225 PR tree-optimization/57185
226 * tree-parloops.c (add_field_for_reduction): Handle anonymous
229 2013-04-19 Richard Biener <rguenther@suse.de>
231 PR tree-optimization/57000
232 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
234 2013-05-06 Michael Meissner <meissner@linux.vnet.ibm.com>
237 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
240 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
241 to save TFmode registers and DImode to save TImode registers for
242 caller save operations.
243 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
244 mark being partially clobbered since they only use the first
247 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
248 and TDmode only use the upper 64-bits of each VSX register.
250 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
253 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
255 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
257 Backport from mainline
258 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
261 * config/i386/i386.c (add_parameter_dependencies): Add dependence
262 between "first_arg" and "insn", not "last" and "insn".
264 2013-05-03 Jakub Jelinek <jakub@redhat.com>
266 PR rtl-optimization/57130
267 * combine.c (make_compound_operation) <case SUBREG>: Pass
268 SET instead of COMPARE as in_code to the recursive call
271 Backported from mainline
272 2013-04-26 Jakub Jelinek <jakub@redhat.com>
274 PR tree-optimization/57051
275 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
276 and VEC_RSHIFT_EXPR if shift count is a multiple of element
279 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
281 * fold-const.c (fold_binary_loc): Call const_binop also for mixed
282 vector-scalar operations.
284 2013-05-03 Marek Polacek <polacek@redhat.com>
286 Backport from mainline
287 2013-04-25 Marek Polacek <polacek@redhat.com>
289 PR tree-optimization/57066
290 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
292 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
294 Backport from mainline
295 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
297 * lra-constraints.c (process_alt_operands): Add checking alt
298 number to choose the best alternative.
300 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
303 * lra-constraints.c (best_small_class_operands_num): Remove.
304 (process_alt_operands): Remove small_class_operands_num. Take
305 small classes operands into losers and only if the operand is not
306 matched. Modify debugging output.
307 (curr_insn_transform): Remove best_small_class_operands_num.
310 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
312 Backport from mainline
313 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
316 * lra-constraints.c (process_alt_operands): Discourage a bit more
317 using memory for pseudos. Print cost dump for alternatives.
318 Modify cost values for conflicts with early clobbers.
319 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
321 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
323 Backport from mainline
324 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
326 PR rtl-optimizations/57046
327 * lra-constraints (split_reg): Set up lra_risky_transformations_p
328 for multi-reg splits.
330 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
332 Backport from mainline
333 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
336 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
337 a set sp if no stack realignment.
339 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
341 Backport from mainline
342 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
344 PR rtl-optimization/56999
345 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
347 (lra_coalesce): Remove split_origin_bitmap and related code.
348 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
351 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
353 Backport from mainline
354 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
356 PR rtl-optimization/56847
357 * lra-constraints.c (process_alt_operands): Discourage alternative
358 with non-matche doffsettable memory constraint fro memory with
361 2013-05-02 Ian Bolton <ian.bolton@arm.com>
363 Backport from mainline
364 2013-03-28 Ian Bolton <ian.bolton@arm.com>
366 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
367 record only when desired or required.
369 2013-04-30 Jakub Jelinek <jakub@redhat.com>
371 PR tree-optimization/57104
372 * tsan.c (instrument_expr): Don't instrument accesses to
373 DECL_HARD_REGISTER VAR_DECLs.
375 2013-04-30 Uros Bizjak <ubizjak@gmail.com>
377 Backport from mainline
378 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
381 * config/i386/i386.md (*zero_extendsidi2_rex64): Add "!" to m->?*y
383 (*zero_extendsidi2): Ditto.
385 Backport from mainline
386 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
389 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
391 2013-04-29 Richard Biener <rguenther@suse.de>
394 * tree-cfg.c (move_stmt_op): Fix condition under which to update
396 (move_stmt_r): Remove redundant checking.
398 2013-04-29 Christian Bruel <christian.bruel@st.com>
401 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
403 2013-04-29 Jakub Jelinek <jakub@redhat.com>
405 PR tree-optimization/57083
406 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
407 non-singleton shift count range, zero extend low_bound for uns case.
409 2013-04-28 Eric Botcazou <ebotcazou@gcc.gnu.org>
411 * stor-layout.c (finalize_size_functions): Allocate a structure and
412 reset cfun before dumping the functions.
414 2013-04-27 Jakub Jelinek <jakub@redhat.com>
417 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
418 use xop_pmacsdqh if uns_p.
419 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
420 the immediate rotate count.
422 2013-04-25 Jakub Jelinek <jakub@redhat.com>
424 PR rtl-optimization/57003
425 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
426 call note_stores with kill_clobbered_value callback again after
427 killing regs_invalidated_by_call.
429 2013-04-25 Ian Bolton <ian.bolton@arm.com>
431 Backported from mainline.
432 2013-03-22 Ian Bolton <ian.bolton@arm.com>
434 * config/aarch64/aarch64.c (aarch64_print_operand): New
435 format specifier for printing a constant in hex.
436 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
437 format specifier for printing second operand.
439 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
441 Backported from mainline.
442 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
444 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
445 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
446 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
448 2013-04-24 Greta Yorsh <Greta.Yorsh@arm.com>
450 Backported from mainline.
452 * config/arm/arm.c (load_multiple_sequence): Require SP
453 as base register for loads if SP is in the register list.
455 2013-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
456 Steven Bosscher <steven@gcc.gnu.org>
458 Backported from mainline.
459 PR rtl-optimization/56605
460 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
462 2013-04-22 Marek Polacek <polacek@redhat.com>
464 Backported from mainline.
465 2013-04-22 Marek Polacek <polacek@redhat.com>
468 * tsan.c (instrument_expr): Don't instrument expression
469 in case its size is zero.
471 2013-04-22 Yufeng Zhang <yufeng.zhang@arm.com>
473 Backported from mainline.
474 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
475 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
476 (aarch64_start_file): Use the new function.
478 2013-04-18 Jakub Jelinek <jakub@redhat.com>
480 PR tree-optimization/56984
481 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
482 and (x >> M) >= N don't register any assertion if N << M is the
485 2013-04-17 David Edelsohn <dje.gcc@gmail.com>
488 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
490 2013-04-15 Jakub Jelinek <jakub@redhat.com>
492 PR tree-optimization/56962
493 * gimple-ssa-strength-reduction.c (record_increment): Only set
494 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
495 either rhs1 or rhs2 is equal to c->base_expr.
497 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
499 * emit-rtl.c (reset_all_used_flags): New function.
500 (verify_rtl_sharing): Call reset_all_used_flags before and after
501 performing the checks.
503 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
506 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
507 (S_MODES): Set H_MODE bit.
508 (SF_MODES): Set only S_MODE and SF_MODE bits.
509 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
510 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
511 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
512 <MODE_FLOAT>: Likewise.
514 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
517 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
518 lra_in_progress for return.
520 2013-04-12 Jakub Jelinek <jakub@redhat.com>
522 PR tree-optimization/56918
523 PR tree-optimization/56920
524 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
525 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
526 argument to rshift method.
528 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
530 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as
533 2013-04-11 Marek Polacek <polacek@redhat.com>
535 PR tree-optimization/48184
536 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum
539 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
541 Backported from mainline.
542 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
544 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
545 floating-point vector comparisons against 0.
547 2013-04-11 Jakub Jelinek <jakub@redhat.com>
549 PR tree-optimization/56899
550 * fold-const.c (extract_muldiv_1): Apply distributive law
551 only if TYPE_OVERFLOW_WRAPS (ctype).
553 2013-04-10 David S. Miller <davem@davemloft.net>
555 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
558 2013-04-10 Jakub Jelinek <jakub@redhat.com>
560 Backported from mainline
561 2013-04-09 Jakub Jelinek <jakub@redhat.com>
564 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
565 expand_omp_for_static_chunk): Use simple_p = true in
566 force_gimple_operand_gsi calls when assigning to addressable decls.
568 2013-04-09 Marek Polacek <polacek@redhat.com>
570 PR tree-optimization/48762
571 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum
574 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
576 * config/s390/s390.c (s390_expand_insv): Only accept insertions
579 2013-04-08 Marek Polacek <polacek@redhat.com>
581 PR rtl-optimization/48182
582 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
585 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
588 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
589 nuses, make sure we have a label.
591 2013-04-04 Ian Lance Taylor <iant@google.com>
593 Backport from mainline:
594 * doc/standards.texi (Standards): The Go frontend supports the Go
597 2013-04-04 Marek Polacek <polacek@redhat.com>
599 Backport from mainline:
600 2013-04-04 Marek Polacek <polacek@redhat.com>
602 PR tree-optimization/48186
603 * predict.c (maybe_hot_frequency_p): Return false if
604 HOT_BB_FREQUENCY_FRACTION is 0.
605 (cgraph_maybe_hot_edge_p): Likewise.
607 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
609 Backport from mainline:
610 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
613 * config/arm/iterators.md (v_cmp_result): New mode attribute.
614 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
616 2013-04-04 Richard Biener <rguenther@suse.de>
618 PR tree-optimization/56837
619 * tree-loop-distribution.c (classify_partition): For non-zero
620 values require that the value has the same precision as its
621 mode to be useful as memset value.
623 2013-04-03 Roland McGrath <mcgrathr@google.com>
625 Backport from mainline:
626 2013-03-26 Roland McGrath <mcgrathr@google.com>
628 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
629 than fprintf with a non-constant, non-format string.
631 2013-04-03 Marek Polacek <polacek@redhat.com>
633 Backport from mainline:
634 2013-04-03 Marek Polacek <polacek@redhat.com>
637 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN
640 2013-04-03 Richard Biener <rguenther@suse.de>
642 PR tree-optimization/56817
643 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
645 (tree_unroll_loops_completely_1): ... new function to manually
646 walk the loop tree, properly defering outer loops of unrolled
647 loops to later iterations.
649 2013-04-02 Jakub Jelinek <jakub@redhat.com>
651 PR rtl-optimization/56745
652 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
653 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
655 2013-04-02 Wei Mi <wmi@google.com>
657 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
658 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
659 *<rotate_insn><mode>3_mask in i386.md.
661 2013-04-01 Wei Mi <wmi@google.com>
663 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
664 Truncate operand 2 using %b asm operand modifier.
665 (*<shift_insn><mode>3_mask): Ditto.
666 (*<rotate_insn><mode>3_mask): Ditto.
668 2013-04-01 Uros Bizjak <ubizjak@gmail.com>
670 * config/i386/i386.md (*movsf_internal): Change type of
671 alternatives 3,4 to imov.
673 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
676 * doc/invoke.texi ([-fwhole-program]): Fix typo.
678 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
680 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
681 Fix declaration name.
683 2013-03-28 Gerald Pfeifer <gerald@pfeifer.com>
685 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
686 * doc/extend.texi (Named Address Spaces): Ditto.
687 (Variable Attributes): Ditto.
689 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
691 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
692 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
695 2013-03-27 Walter Lee <walt@tilera.com>
697 Backport from mainline:
698 2013-03-27 Walter Lee <walt@tilera.com>
700 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
701 double-decrement of next_scratch_regno.
703 2013-03-27 Walter Lee <walt@tilera.com>
705 Backport from mainline:
706 2013-03-27 Walter Lee <walt@tilera.com>
708 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
710 (insn_v1mulus): Ditto.
711 (insn_v2muls): Ditto.
713 2013-03-27 Walter Lee <walt@tilera.com>
715 Backport from mainline:
716 2013-03-27 Walter Lee <walt@tilera.com>
718 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
720 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
722 2013-03-27 Walter Lee <walt@tilera.com>
724 Backport from mainline:
725 2013-03-27 Walter Lee <walt@tilera.com>
727 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
728 (*sibcall_value): Ditto.
730 2013-03-27 Walter Lee <walt@tilera.com>
732 Backport from mainline:
733 2013-03-27 Walter Lee <walt@tilera.com>
735 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
736 (insn_mnz_v8qi): ... this ...
737 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
739 (insn_v<n>mnz): Replaced by ...
740 (insn_v1mnz): ... this ...
741 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
743 (insn_mz_<mode>): Replaced by ...
744 (insn_mz_v8qi): ... this ...
745 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
747 (insn_v<n>mz): Replaced by ...
748 (insn_v1mz): ... this ...
749 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
752 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
754 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
756 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
758 * config/rtems.opt: Add -pthread option.
760 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
762 * config/aarch64/aarch64.c (aarch64_classify_address): Support
763 PC-relative load in SI modes and above only.
765 2013-03-26 Walter Lee <walt@tilera.com>
767 Backport from mainline:
768 2013-03-26 Walter Lee <walt@tilera.com>
770 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
771 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
773 2013-03-26 Walter Lee <walt@tilera.com>
775 Backport from mainline:
776 2013-03-25 Walter Lee <walt@tilera.com>
778 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
779 TILEGX_INSN_SHUFFLEBYTES1.
780 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
782 (tilegx_builtins): Ditto.
783 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
785 2013-03-26 Walter Lee <walt@tilera.com>
787 Backport from mainline:
788 2013-03-25 Walter Lee <walt@tilera.com>
790 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
791 tests for constraint J, K, N, P.
793 2013-03-26 Walter Lee <walt@tilera.com>
795 Backport from mainline:
796 2013-03-25 Walter Lee <walt@tilera.com>
798 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
799 Use indirect/pcrel encoding.
800 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
803 2013-03-25 Richard Biener <rguenther@suse.de>
806 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
807 must-not-throw stmt location.
809 2012-03-22 Jakub Jelinek <jakub@redhat.com>
811 * BASE-VER: Set to 4.8.1.
812 * DEV-PHASE: Set to prerelease.
814 2013-03-22 Release Manager
816 * GCC 4.8.0 released.
818 2013-03-21 Walter Lee <walt@tilera.com>
820 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
822 2013-03-21 Mark Wielaard <mjw@redhat.com>
824 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
826 2013-03-20 Richard Biener <rguenther@suse.de>
828 PR tree-optimization/56661
829 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
830 the result does not have to be distinct.
832 2013-03-20 Jakub Jelinek <jakub@redhat.com>
834 PR tree-optimization/56635
835 * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Give up
836 if lhs of then_assign and else_assign don't have compatible types.
838 2013-03-17 Jakub Jelinek <jakub@redhat.com>
841 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
842 class names. Remove trailing comma after "ALL_REGS".
844 2013-03-16 Jakub Jelinek <jakub@redhat.com>
846 * DEV-PHASE: Set to prerelease.
848 2013-03-14 Andi Kleen <ak@linux.intel.com>
851 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
852 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
853 Document _x* TSX intrinsics.
855 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
856 David Holsgrove <david.holsgrove@xilinx.com>
858 * configure.ac: Add MicroBlaze TLS support detection.
859 * configure: Regenerate.
860 * config/microblaze/microblaze-protos.h
861 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
862 symbol_mentioned_p, label_mentioned_p): Add prototypes.
863 * config/microblaze/microblaze.c (microblaze_address_type): Add
864 ADDRESS_TLS and tls_reloc address types.
865 (microblaze_address_info): Add tls_reloc.
866 (TARGET_HAVE_TLS): Define.
867 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
868 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
869 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
870 load_tls_operand, microblaze_call_tls_get_addr,
871 microblaze_legitimize_tls_address): New functions.
872 (microblaze_classify_unspec): Handle UNSPEC_TLS.
873 (get_base_reg): Use microblaze_tls_symbol_p.
874 (microblaze_classify_address): Handle TLS.
875 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
876 label_mentioned_p and microblaze_tls_referenced_p.
877 (microblaze_legitimize_address): Handle TLS.
878 (microblaze_address_insns): Handle ADDRESS_TLS.
879 (pic_address_needs_scratch): Handle TLS.
880 (print_operand_address): Handle TLS.
881 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
882 (microblaze_expand_move): Handle TLS.
883 (microblaze_legitimate_constant_p): Check
884 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
885 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
886 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
887 (PIC_OFFSET_TABLE_REGNUM): Set.
888 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
889 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
890 (addsi3, movsi_internal2, movdf_internal): Update constraints
891 * config/microblaze/predicates.md (arith_plus_operand): Define
892 (move_operand): Redefine as move_src_operand, check
893 microblaze_tls_referenced_p.
895 2013-03-14 Ian Bolton <ian.bolton@arm.com>
897 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
898 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
900 2013-03-14 Ian Bolton <ian.bolton@arm.com>
902 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
905 2013-03-14 Jakub Jelinek <jakub@redhat.com>
907 PR tree-optimization/53265
908 * common.opt (Waggressive-loop-optimizations): New option.
909 * tree-ssa-loop-niter.c: Include tree-pass.h.
910 (do_warn_aggressive_loop_optimizations): New function.
911 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
912 if number_of_latch_executions returned constant.
913 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
914 early. If number_of_latch_executions returned constant, set
915 nb_iterations_upper_bound back to it.
916 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
918 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
919 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
921 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
922 (MULTILIB_OSDIRNAMES): Set.
923 * genmultilib: If defaultosdirname doesn't start with :: , set
924 defaultosdirname2 instead, clear it and emit two . multilib_raw
925 entries instead of just one.
927 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
929 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
930 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
931 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
932 (SUBTARGET_OVERRIDE_OPTIONS): New.
934 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
937 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
938 (musermode): Convert to Var(TARGET_USERMODE).
939 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
940 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
941 * config/sh/sh.c (sh_option_override): Use
942 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
943 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
945 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
947 (udivsi3_i4_single, divsi3_i4_single): Use
948 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
950 2013-03-13 Dave Korn <dave.korn.cygwin@....>
952 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
955 2013-03-13 Richard Biener <rguenther@suse.de>
957 PR tree-optimization/56608
958 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
959 calls when vectorizing basic-blocks.
961 2013-03-13 Jakub Jelinek <jakub@redhat.com>
964 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
967 2013-03-12 Jakub Jelinek <jakub@redhat.com>
969 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
971 2013-03-11 Jan Hubicka <jh@suse.cz>
974 * lto-streamer-out.c (output_symbol_p): Skip references from
975 constructors of external variables.
977 2013-03-11 Jan Hubicka <jh@suse.cz>
980 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
982 * emit-rtl.c (verify_rtx_sharing): Likewise.
983 (copy_insn_1): Likewise.
984 * rtl.c (copy_rtx): Likewise.
986 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
989 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
990 output_operand_lossage message.
992 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
995 * arm.c (shift_op): Validate RTL pattern on the fly.
996 (arm_print_operand, case 'S'): Don't use shift_operator to validate
999 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1002 * config/pa/pa.md (call_value): Check for calls to powf and direct to
1003 new call patterns that clobber %fr12.
1004 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
1005 split and postreload patterns.
1006 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
1007 registers %fr12 and %fr12R as call used.
1009 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
1011 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
1012 (canon_address, record_store, replace_read, check_mem_read_rtx,
1013 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
1014 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
1015 rest_of_handle_dse): Likewise.
1017 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1020 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
1022 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
1023 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
1024 (save_optabs_if_changed): Replace with...
1025 (init_tree_optimization_optabs): ...this.
1026 * optabs.c (save_optabs_if_changed): Rename to...
1027 (init_tree_optimization_optabs): ...this. Take the optimization node
1028 as argument. Do nothing if the base optabs are already correct.
1029 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
1030 to recompute optabs.
1031 * function.h (function): Remove optabs field.
1032 * function.c (invoke_set_current_function_hook): Call
1033 init_tree_optimization_optabs. Use the result to initialize
1036 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
1038 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
1039 if GTMA_HAS_NO_INSTRUMENTATION.
1040 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
1041 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
1042 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
1043 * gimple-pretty-print.c (dump_gimple_transaction): Handle
1044 GTMA_HAS_NO_INSTRUMENTATION.
1046 2013-03-08 Jakub Jelinek <jakub@redhat.com>
1048 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
1051 2013-03-08 Marek Polacek <polacek@redhat.com>
1052 Jakub Jelinek <jakub@redhat.com>
1054 PR tree-optimization/56478
1055 * predict.c (is_comparison_with_loop_invariant_p): Change the
1056 type of loop_step to tree.
1057 (predict_loops): Adjust.
1058 (predict_iv_comparison): Perform the computations on double_ints.
1060 2013-03-08 Richard Biener <rguenther@suse.de>
1062 PR tree-optimization/56570
1063 * tree-cfg.c (verify_expr_location_1): Verify locations for
1065 * tree-sra.c (create_access_replacement): Strip locations
1066 from DECL_DEBUG_EXPRs.
1068 2013-03-08 Richard Biener <rguenther@suse.de>
1070 * tree-inline.c (expand_call_inline): Do not associate
1071 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
1072 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
1074 2013-03-08 Richard Biener <rguenther@suse.de>
1076 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
1077 or block changes with -Og. Fix for location / block encoding
1078 changes and PHI arguments with locations.
1080 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
1082 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
1084 (struct output_info): Likewise.
1085 (register_overhead): Remove bad gcc_assert.
1086 (bitmap_find_bit): If there is only a single bitmap element, do not
1087 count a miss as a search.
1088 (print_statistics): Update for counter type changes.
1089 (dump_bitmap_statistics): Likewise. Print headers such that they
1090 are properly lined up with the printed counters.
1092 2013-03-07 Jakub Jelinek <jakub@redhat.com>
1094 PR tree-optimization/56559
1095 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
1096 check that it has only a single use.
1098 2013-03-07 Richard Biener <rguenther@suse.de>
1100 * doc/invoke.texi (fwhole-program): Discourage use in combination
1103 2013-03-06 Jakub Jelinek <jakub@redhat.com>
1105 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
1107 PR tree-optimization/56539
1108 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
1109 instead of GSI_CONTINUE_LINKING as last argument to
1110 force_gimple_operand_gsi. Adjust function comment.
1112 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
1116 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
1117 promoted mode, convert the result back to the original mode.
1119 2013-03-06 Richard Biener <rguenther@suse.de>
1122 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
1123 (insert_updated_phi_nodes_compare_uids): New function.
1124 (update_ssa): Sort symbols_to_rename after UID before
1125 traversing it to insert PHI nodes.
1127 2013-03-06 Richard Biener <rguenther@suse.de>
1130 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
1131 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
1134 2013-02-13 Richard Biener <rguenther@suse.de>
1137 * varasm.c (output_constant_def_1): Get the decl representing
1138 the constant as argument.
1139 (output_constant_def): Wrap output_constant_def_1.
1140 (make_decl_rtl): Use output_constant_def_1 with the decl
1141 representing the constant.
1142 (build_constant_desc): Optionally re-use a decl already
1143 representing the constant.
1144 (tree_output_constant_def): Adjust.
1146 2013-03-06 Joey Ye <joey.ye@arm.com>
1149 * gcc.c (convert_white_space): New function.
1150 (main): Handles white space in function name.
1152 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
1155 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
1156 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
1157 to SH_DIV_CALL_TABLE for TARGET_SH2.
1158 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
1160 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
1163 2013-03-05 Sterling Augustine <saugustine@google.com>
1164 Cary Coutant <ccoutant@google.com>
1167 * dwarf2out.c (resolve_addr): Don't call
1168 remove_loc_list_addr_table_entries a second time for the same
1171 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1174 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
1175 (avoid_complex_debug_insns): New function.
1176 (expand_debug_locations): Call it.
1178 PR rtl-optimization/56484
1179 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
1180 lifetimes of hard registers on small register class machines.
1182 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1184 * config/microblaze/microblaze-protos.h: Rename
1185 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
1186 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
1188 (microblaze_fast_interrupt_function_p): New function.
1189 (microblaze_is_interrupt_handler): Rename to
1190 microblaze_is_interrupt_variant and add fast_interrupt check.
1191 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
1192 (save_restore_insns): Likewise.
1193 (compute_frame_size): Likewise.
1194 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
1195 (microblaze_globalize_label): Likewise.
1196 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
1197 * config/microblaze/microblaze.md: Use wrapper
1198 microblaze_is_interrupt_variant.
1200 2013-03-05 Kai Tietz <ktietz@redhat.com>
1202 * sdbout.c (sdbout_one_type): Switch to current function's section
1203 supporting cold/hot.
1205 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1207 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
1210 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1213 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
1214 if VALGRIND_GET_VBITS is defined, temporarily make object
1215 memory all defined, and restore previous valgrind addressability
1216 and definability afterwards. Free this_object at the end.
1219 * lra.c (lra): Call lra_clear_live_ranges if live_p,
1220 right before calling lra_create_live_ranges, also call it
1221 when clearing live_p. Only call lra_clear_live_ranges
1222 at the end if live_p.
1225 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
1227 2013-03-05 Richard Biener <rguenther@suse.de>
1229 PR tree-optimization/56521
1230 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
1233 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
1236 * except.h (remove_unreachable_eh_regions): New prototype.
1237 * except.c (remove_eh_handler_splicer): New function, split out
1238 of remove_eh_handler.
1239 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
1240 warning about running it on many EH regions one at a time.
1241 (remove_unreachable_eh_regions_worker): New function, walk the
1242 EH tree in depth-first order and remove non-marked regions.
1243 (remove_unreachable_eh_regions): New function.
1244 * tree-eh.c (mark_reachable_handlers): New function, split out
1245 from remove_unreachable_handlers.
1246 (remove_unreachable_handlers): Use mark_reachable_handlers and
1247 remove_unreachable_eh_regions.
1248 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
1249 and remove_unreachable_eh_regions.
1251 2013-03-05 Richard Biener <rguenther@suse.de>
1254 * loop-init.c (fix_loop_structure): Remove loops in two stages,
1255 not freeing them until the end.
1257 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1259 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
1261 2013-03-05 Richard Biener <rguenther@suse.de>
1263 PR tree-optimization/56270
1264 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
1265 of loads after scheduling an SLP instance.
1267 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1269 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
1271 (check_gcc_parallelize): Run guality.exp as a separate job from
1272 vect.exp with unsorted.exp and $(dg_target_exps) separately from
1273 struct-layout-1.exp with stackalign.exp.
1275 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
1278 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
1279 load_index sbitmap even if some bit in it isn't set.
1282 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
1283 (discover_iteration_bound_by_body_walk): Change queues to
1284 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
1285 spelling in comment. Call safe_push on queues[bound_index] directly.
1286 Release queues[queue_index] in every iteration unconditionally.
1287 Release bounds vector.
1290 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
1291 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
1292 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
1295 2013-03-05 Richard Biener <rguenther@suse.de>
1298 * tree-inline.c (remap_blocks_to_null): New function.
1299 (expand_call_inline): When expanding a call stmt without
1300 an associated block inline remap all callee blocks to NULL.
1302 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1304 PR rtl-optimization/56494
1305 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
1306 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
1307 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
1310 * sel-sched-ir.c (free_sched_pools): Release
1311 succs_info_pool.stack[succs_info_pool.max_top] vectors too
1312 if succs_info_pool.max_top isn't -1.
1315 * opts.c (opts_obstack, opts_concat): Moved to...
1316 * opts-common.c (opts_obstack, opts_concat): ... here.
1318 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1321 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
1323 2013-03-04 Martin Jambor <mjambor@suse.cz>
1325 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
1326 all appropriate places.
1328 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
1330 PR tree-optimization/56424
1331 * ipa-split.c (split_function): Do not set the RSO flag if result is
1332 not by reference and its type is a register type.
1334 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
1336 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New.
1337 (microblaze_legitimate_pic_operand): Likewise.
1338 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): Call
1339 new function microblaze_legitimate_pic_operand.
1340 * config/microblaze/microblaze-protos.h
1341 (microblaze_legitimate_pic_operand): Declare.
1343 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1345 * config/microblaze/predicates.md (call_insn_simple_operand):
1346 New predicate for supported rtx code types.
1347 * config/microblaze/microblaze.md (call_internal1): Use
1348 call_insn_simple_operand predicate.
1350 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1353 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
1354 partitions.ordered_remove.
1357 * tree-vect-stmts.c (vectorizable_conversion): Don't call
1358 vec_oprnds0.create (1) for modifier == NONE.
1361 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
1362 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
1363 vec_oprnds1 right before pushing anything to it for
1367 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
1368 set nbbs to 0 instead of having separate code path.
1369 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
1370 instead of false as last argument if returning NULL.
1372 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
1374 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
1375 the attribute is now called "target" instead of "option".
1376 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
1377 * doc/tm.texi.in (Target Attributes): Likewise document the correct
1378 attribute/pragma name for TARGET_OPTION_VALID_P and
1379 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
1380 * doc/tm.texi: Regenerated.
1382 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
1384 * config/microblaze/microblaze.c:
1385 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
1386 * config/microblaze/microblaze.h: Add -mxl-reorder to
1388 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
1389 instructions emitted if TARGET_REORDER.
1390 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
1391 or 0 for -m/-mno case, but initialises as 2 to detect default use case
1394 2013-03-01 Xinliang David Li <davidxl@google.com>
1396 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
1399 2013-03-01 Jakub Jelinek <jakub@redhat.com>
1402 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
1403 vector even when returning true. Fix up function comment formatting.
1406 * ira-build.c (ira_loop_nodes_count): New variable.
1407 (create_loop_tree_nodes): Initialize it.
1408 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
1411 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
1412 method on dr_chain and result_chain.
1413 * tree-vect-stmts.c (vectorizable_store): Only call
1414 result_chain.create if j == 0.
1417 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
1418 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
1419 before overwriting it.
1421 2013-03-01 Tobias Burnus <burnus@net-b.de>
1423 * doc/extended.texi (C Extensions): Change order in @menu
1425 (Other MIPS Built-in Functions): Move last MIPS entry before
1426 "picoChip Built-in Functions".
1427 (SH Built-in Functions): Move after RX Built-in Functions.
1428 * doc/gcc.texi (Introduction): Change order in @menu to match @node.
1429 * doc/md.texi (Constraints): Ditto.
1430 * gty.texi (Type Information): Ditto.
1431 (User-provided marking routines for template types): Make subsection.
1432 * doc/invoke.texi (AArch64 Options): Move before
1433 "Adapteva Epiphany Options".
1435 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1436 Jakub Jelinek <jakub@redhat.com>
1439 * asan.c (gate_asan): Lookup no_sanitize_address instead of
1440 no_address_safety_analysis attribute.
1441 * doc/extend.texi (no_address_safety_attribute): Rename to
1442 no_sanitize_address attribute, mention no_address_safety_analysis
1443 attribute as deprecated alias.
1445 2013-02-28 Jakub Jelinek <jakub@redhat.com>
1448 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
1449 type to vec<vec<tree> > *.
1450 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
1451 to be vec<tree> instead of vec<tree> *, set vec_defs
1452 to vNULL and call vec_defs.create (number_of_vects), adjust other
1454 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
1455 vectorizable_condition): Adjust vect_get_slp_defs callers.
1457 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1459 * config/aarch64/aarch64.c
1460 (aarch64_float_const_representable): Remove unused variable.
1462 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1464 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
1466 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1468 * config/aarch64/aarch64-builtins.c
1469 (aarch64_init_simd_builtins): Make static.
1471 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1473 * config/aarch64/aarch64.c
1474 (aarch64_simd_make_constant): Make static.
1476 2013-02-28 Martin Jambor <mjambor@suse.cz>
1478 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
1479 with no initialization to the RHS of debug statements.
1481 2013-02-28 Martin Jambor <mjambor@suse.cz>
1483 PR tree-optimization/56294
1484 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
1486 (get_access_replacement): Do not call create_access_replacement.
1487 Assert a replacement exists.
1488 (get_repl_default_def_ssa_name): Create the replacement declaration
1491 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1493 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
1496 2013-02-28 Marek Polacek <polacek@redhat.com>
1498 PR rtl-optimization/56466
1499 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
1500 if we're changing a loop.
1501 (peel_loops_completely): Likewise.
1503 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
1506 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
1508 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
1511 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
1512 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
1513 INTX_FTYPE_FX, FX_FTYPE_INTX.
1514 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
1516 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
1518 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
1519 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
1520 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
1521 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
1522 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
1523 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
1524 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
1525 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
1526 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
1527 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
1528 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
1529 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
1530 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
1531 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
1532 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
1533 (avrxmega6): Increase max flash segments from 5 to 6.
1534 * config/avr/t-multilib: Regenerate.
1535 * config/avr/avr-tables.opt: Regenerate.
1536 * doc/avr-mmcu.texi: Regenerate.
1538 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
1540 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
1541 (avr_device_to_arch): Rename to avr_device_to_ld.
1542 (avr_device_to_as): New prototype.
1543 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
1544 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
1545 * config/avr/driver-avr.c (avr_device_to_as): New.
1546 (avr_device_to_arch): Rename to avr_device_to_ld.
1548 2013-02-27 Jakub Jelinek <jakub@redhat.com>
1551 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
1552 method on dr_chain and result_chain.
1555 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
1556 pointer_set_destroy on not_executed_last_iteration.
1559 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
1562 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
1563 FOR_EACH_DEFINED_FUNCTION when freeing state.
1566 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
1568 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
1572 * ipa-cp.c (decide_whether_version_node): Call vec_free on
1573 known_aggs[i].items and release known_aggs vector.
1576 * ipa-reference.c (propagate): Free node_info even for alias nodes.
1578 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1580 * config/microblaze/microblaze.c (microblaze_emit_compare):
1581 Use xor for EQ/NE comparisions.
1582 * config/microblaze/microblaze.md (cstoresf4): Add constraints
1583 (cbranchsf4): Adjust operator to comparison_operator.
1585 2013-02-27 Jakub Jelinek <jakub@redhat.com>
1588 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
1590 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
1591 vec_safe_push, always update *slot.
1592 (redirect_edge_var_map_clear): Use vec_free.
1593 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
1594 (free_var_map_entry): Use vec_free.
1595 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
1596 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
1598 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
1601 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
1602 when the may_trap_p bit of the exprs being merged differs.
1603 Reorder tests for speculativeness in the logical and operator.
1605 2013-02-27 Jakub Jelinek <jakub@redhat.com>
1607 * incpath.c (add_standard_paths): Use reconcat instead of concat
1608 where appropriate and avoid leaking memory.
1610 * opts.h: Include obstack.h.
1611 (opts_concat): New prototype.
1612 (opts_obstack): New declaration.
1613 * opts.c (opts_concat): New function.
1614 (opts_obstack): New variable.
1615 (init_options_struct): Call gcc_init_obstack on opts_obstack.
1616 (finish_options): Use opts_concat instead of concat
1617 and XOBNEWVEC instead of XNEWVEC.
1618 * opts-common.c (generate_canonical_option, decode_cmdline_option,
1619 generate_option): Likewise.
1620 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
1621 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
1624 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
1625 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
1627 2013-02-26 Jakub Jelinek <jakub@redhat.com>
1630 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
1632 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
1634 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
1635 (arm_block_move_unaligned_straight): Likewise.
1636 (arm_adjust_block_mem): Likewise.
1638 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
1641 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
1642 temp, cond and label.
1643 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
1646 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
1647 * config/c6x/c6x.h (dbx_register_map): Update declaration.
1650 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
1651 of prologue/epilogue functions.
1654 * config/tilegx/tilegx.c (tilegx_expand_prologue):
1655 Remove unused variable cfa_offset.
1656 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
1659 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
1660 type promotion to unsigned.
1663 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
1664 for HOST_WIDE_INT of 32 bit / same size as int.
1665 (arm_block_move_unaligned_straight): Likewise.
1666 (arm_adjust_block_mem): Likewise.
1669 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
1672 2013-02-26 Marek Polacek <polacek@redhat.com>
1674 PR tree-optimization/56426
1675 * tree-ssa-loop.c (tree_ssa_loop_init): Always call
1678 2013-02-26 Richard Biener <rguenther@suse.de>
1681 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
1682 unused variable loops.
1684 2013-02-26 Jakub Jelinek <jakub@redhat.com>
1686 PR tree-optimization/56448
1687 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
1688 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
1689 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
1690 later operands of the references, or even first operand for
1691 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
1693 PR tree-optimization/56443
1694 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
1695 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
1696 to type_for_mode langhook.
1698 2013-02-25 Matt Turner <mattst88@gmail.com>
1700 * doc/invoke.texi: Document r4700.
1702 2013-02-25 Richard Biener <rguenther@suse.de>
1704 PR tree-optimization/56175
1705 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
1707 (simplify_bitwise_binary): ... here. Also guard the conversion
1708 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
1710 2013-02-25 Catherine Moore <clm@codesourcery.com>
1713 2013-02-24 Catherine Moore <clm@codesourcery.com>
1714 Maciej W. Rozycki <macro@codesourcery.com>
1715 Tom de Vries <tom@codesourcery.com>
1716 Nathan Sidwell <nathan@codesourcery.com>
1717 Iain Sandoe <iain@codesourcery.com>
1718 Nathan Froyd <froydnj@codesourcery.com>
1719 Chao-ying Fu <fu@mips.com>
1721 * doc/extend.texi (micromips, nomicromips, nocompression):
1722 Document new function attributes.
1723 * doc/invoke.texi (minterlink-compressed, mmicromips,
1724 m14k, m14ke, m14kec): Document new options.
1725 (minterlink-mips16): Update documentation.
1726 * doc/md.texi (ZC, ZD): Document new constraints.
1727 * configure.ac (gcc_cv_as_micromips): Check if linker
1728 supports the .set micromips directive.
1729 * configure: Regenerate.
1730 * config.in: Regenerate.
1731 * config/mips/mips-tables.opt: Regenerate.
1732 * config/mips/micromips.md: New file.
1733 * constraints.md (ZC, AD): New constraints.
1734 * config/mips/predicates.md (movep_src_register): New predicate.
1735 (movep_src_operand): New predicate.
1736 (non_volatile_mem_operand): New predicate.
1737 * config/mips/mips.md (multimem): New type.
1738 (length): Differentiate between 17-bit and 18-bit branch offsets.
1739 (MOVEP1, MOVEP2): New mode iterator.
1740 (mov_<load>l): Use ZC constraint.
1741 (mov_<load>r): Likewise.
1742 (mov_<store>l): Likewise.
1743 (mov_<store>r): Likewise.
1744 (*branch_equality<mode>_inverted): Add microMIPS support.
1745 (*branch_equality<mode>): Likewise.
1746 (*jump_absolute): Likewise.
1747 (indirect_jump_<mode>): Likewise.
1748 (tablejump_<mode>): Likewise.
1749 (<optab>_internal): Likewise.
1750 (sibcall_internal): Likewise.
1751 (sibcall_value_internal): Likewise.
1752 (prefetch): Use constraint ZD.
1753 * config/mips/mips.opt (minterlink-compressed): New option.
1754 (minterlink-mips16): Now an alias for minterlink-compressed.
1755 (mmicromips): New option.
1756 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1757 (compare_and_swap_12): Likewise.
1758 (sync_add<mode>): Likewise.
1759 (sync_<optab>_12): Likewise.
1760 (sync_old_<optab>_12): Likewise.
1761 (sync_new_<optab>_12): Likewise.
1762 (sync_nand_12): Likewise.
1763 (sync_old_nand_12): Likewise.
1764 (sync_new_nand_12): Likewise.
1765 (sync_sub<mode>): Likewise.
1766 (sync_old_add<mode>): Likewise.
1767 (sync_old_sub<mode>): Likewise.
1768 (sync_new_add<mode>): Likewise.
1769 (sync_new_sub<mode>): Likewise.
1770 (sync_<optab><mode>): Likewise.
1771 (sync_old_<optab><mode>): Likewise.
1772 (sync_new_<optab><mode>): Likewise.
1773 (sync_nand<mode>): Likewise.
1774 (sync_old_nand<mode>): Likewise.
1775 (sync_new_nand<mode>): Likewise.
1776 (sync_lock_test_and_set<mode>): Likewise.
1777 (test_and_set_12): Likewise.
1778 (atomic_compare_and_swap<mode>): Likewise.
1779 (atomic_exchange<mode>_llsc): Likewise.
1780 (atomic_fetch_add<mode>_llsc): Likewise.
1781 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1782 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1783 (umips_save_restore_pattern_p): Likewise.
1784 (umips_load_store_pair_p): Likewise.
1785 (umips_output_load_store_pair): Likewise.
1786 (umips_movep_target_p): Likewise.
1787 (umips_12bit_offset_address_p): Likewise.
1788 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1789 (mips_base_mips16): Rename this...
1790 (mips_base_compression_flags): ...to this. Update all uses.
1791 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1792 (mips_mips16_decl_p): Delete.
1793 (mips_nomips16_decl_p): Delete.
1794 (mips_get_compress_on_flags): New function.
1795 (mips_get_compress_off_flags): New function.
1796 (mips_get_compress_mode): New function.
1797 (mips_get_compress_on_name): New function.
1798 (mips_get_compress_off_name): New function.
1799 (mips_insert_attributes): Support multiple compression types.
1800 (mips_merge_decl_attributes): Likewise.
1801 (umips_12bit_offset_address_p): New function.
1802 (mips_start_function_definition): Emit .set micromips directive.
1803 (mips_call_may_need_jalx_p): New function.
1804 (mips_function_ok_for_sibcall): Add microMIPS support.
1805 (mips_print_operand_punctuation): Support short delay slots and
1807 (umips_swm_mask, umips_swm_encoding): New.
1808 (umips_build_save_restore): New function.
1809 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1810 (was_mips16_p): Remove.
1811 (old_compression_mode): New.
1812 (mips_set_compression_mode): New function.
1813 (mips_set_current_function): Add microMIPS support.
1814 (mips_option_override): Likewise.
1815 (umips_save_restore_pattern_p): New function.
1816 (umips_output_save_restore): New function.
1817 (umips_load_store_pair_p_1): New function.
1818 (umips_load_store_pair_p): New function.
1819 (umips_output_load_store_pair_1): New function.
1820 (umips_output_load_store_pair): New function.
1821 (umips_movep_target_p) New function.
1822 (mips_prepare_pch_save): Add microMIPS support.
1823 * config/mips/mips.h (TARGET_COMPRESSION): New.
1824 (TARGET_CPU_CPP_BUILTINS): Update macro
1825 to use new compression flags and to support microMIPS.
1826 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1827 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1828 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1829 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1830 (ASM_SPEC): Support mmicromips and mno-micromips.
1831 (M16STORE_REG_P): New macro.
1832 (MIPS_CALL): Support TARGET_MICROMIPS.
1833 (MICROMIPS_J): New macro.
1834 (mips_base_mips16): Rename this...
1835 (mips_base_compression_flags): ...to this.
1836 (UMIPS_12BIT_OFFSET_P): New macro.
1837 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1838 (MULTILIB_DIRNAMES): Likewise.
1840 2013-02-25 Tom de Vries <tom@codesourcery.com>
1842 PR rtl-optimization/56131
1843 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
1844 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
1845 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
1847 2013-02-25 Tobias Burnus <burnus@net-b.de>
1849 * doc/invoke.texi (-fsanitize=): Move from optimization
1850 to debugging options.
1852 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
1854 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
1856 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
1857 Alexander Monakov <amonakov@ispras.ru>
1860 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
1861 flush pending lists also on non-jumps. Adjust comment.
1863 2013-02-24 Catherine Moore <clm@codesourcery.com>
1864 Maciej W. Rozycki <macro@codesourcery.com>
1865 Tom de Vries <tom@codesourcery.com>
1866 Nathan Sidwell <nathan@codesourcery.com>
1867 Iain Sandoe <iain@codesourcery.com>
1868 Nathan Froyd <froydnj@codesourcery.com>
1869 Chao-ying Fu <fu@mips.com>
1871 * doc/extend.texi (micromips, nomicromips, nocompression):
1872 Document new function attributes.
1873 * doc/invoke.texi (minterlink-compressed, mmicromips,
1874 m14k, m14ke, m14kec): Document new options.
1875 (minterlink-mips16): Update documentation.
1876 * doc/md.texi (ZC, ZD): Document new constraints.
1877 * configure.ac (gcc_cv_as_micromips): Check if linker
1878 supports the .set micromips directive.
1879 * configure: Regenerate.
1880 * config.in: Regenerate.
1881 * config/mips/mips-tables.opt: Regenerate.
1882 * config/mips/micromips.md: New file.
1883 * constraints.md (ZC, AD): New constraints.
1884 * config/mips/predicates.md (movep_src_register): New predicate.
1885 (movep_src_operand): New predicate.
1886 (non_volatile_mem_operand): New predicate.
1887 * config/mips/mips.md (multimem): New type.
1888 (length): Differentiate between 17-bit and 18-bit branch offsets.
1889 (MOVEP1, MOVEP2): New mode iterator.
1890 (mov_<load>l): Use ZC constraint.
1891 (mov_<load>r): Likewise.
1892 (mov_<store>l): Likewise.
1893 (mov_<store>r): Likewise.
1894 (*branch_equality<mode>_inverted): Add microMIPS support.
1895 (*branch_equality<mode>): Likewise.
1896 (*jump_absolute): Likewise.
1897 (indirect_jump_<mode>): Likewise.
1898 (tablejump_<mode>): Likewise.
1899 (<optab>_internal): Likewise.
1900 (sibcall_internal): Likewise.
1901 (sibcall_value_internal): Likewise.
1902 (prefetch): Use constraint ZD.
1903 * config/mips/mips.opt (minterlink-compressed): New option.
1904 (minterlink-mips16): Now an alias for minterlink-compressed.
1905 (mmicromips): New option.
1906 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1907 (compare_and_swap_12): Likewise.
1908 (sync_add<mode>): Likewise.
1909 (sync_<optab>_12): Likewise.
1910 (sync_old_<optab>_12): Likewise.
1911 (sync_new_<optab>_12): Likewise.
1912 (sync_nand_12): Likewise.
1913 (sync_old_nand_12): Likewise.
1914 (sync_new_nand_12): Likewise.
1915 (sync_sub<mode>): Likewise.
1916 (sync_old_add<mode>): Likewise.
1917 (sync_old_sub<mode>): Likewise.
1918 (sync_new_add<mode>): Likewise.
1919 (sync_new_sub<mode>): Likewise.
1920 (sync_<optab><mode>): Likewise.
1921 (sync_old_<optab><mode>): Likewise.
1922 (sync_new_<optab><mode>): Likewise.
1923 (sync_nand<mode>): Likewise.
1924 (sync_old_nand<mode>): Likewise.
1925 (sync_new_nand<mode>): Likewise.
1926 (sync_lock_test_and_set<mode>): Likewise.
1927 (test_and_set_12): Likewise.
1928 (atomic_compare_and_swap<mode>): Likewise.
1929 (atomic_exchange<mode>_llsc): Likewise.
1930 (atomic_fetch_add<mode>_llsc): Likewise.
1931 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1932 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1933 (umips_save_restore_pattern_p): Likewise.
1934 (umips_load_store_pair_p): Likewise.
1935 (umips_output_load_store_pair): Likewise.
1936 (umips_movep_target_p): Likewise.
1937 (umips_12bit_offset_address_p): Likewise.
1938 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1939 (mips_base_mips16): Rename this...
1940 (mips_base_compression_flags): ...to this. Update all uses.
1941 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1942 (mips_mips16_decl_p): Delete.
1943 (mips_nomips16_decl_p): Delete.
1944 (mips_get_compress_on_flags): New function.
1945 (mips_get_compress_off_flags): New function.
1946 (mips_get_compress_mode): New function.
1947 (mips_get_compress_on_name): New function.
1948 (mips_get_compress_off_name): New function.
1949 (mips_insert_attributes): Support multiple compression types.
1950 (mips_merge_decl_attributes): Likewise.
1951 (umips_12bit_offset_address_p): New function.
1952 (mips_start_function_definition): Emit .set micromips directive.
1953 (mips_call_may_need_jalx_p): New function.
1954 (mips_function_ok_for_sibcall): Add microMIPS support.
1955 (mips_print_operand_punctuation): Support short delay slots and
1957 (umips_swm_mask, umips_swm_encoding): New.
1958 (umips_build_save_restore): New function.
1959 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1960 (was_mips16_p): Remove.
1961 (old_compression_mode): New.
1962 (mips_set_compression_mode): New function.
1963 (mips_set_current_function): Add microMIPS support.
1964 (mips_option_override): Likewise.
1965 (umips_save_restore_pattern_p): New function.
1966 (umips_output_save_restore): New function.
1967 (umips_load_store_pair_p_1): New function.
1968 (umips_load_store_pair_p): New function.
1969 (umips_output_load_store_pair_1): New function.
1970 (umips_output_load_store_pair): New function.
1971 (umips_movep_target_p) New function.
1972 (mips_prepare_pch_save): Add microMIPS support.
1973 * config/mips/mips.h (TARGET_COMPRESSION): New.
1974 (TARGET_CPU_CPP_BUILTINS): Update macro
1975 to use new compression flags and to support microMIPS.
1976 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1977 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1978 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1979 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1980 (ASM_SPEC): Support mmicromips and mno-micromips.
1981 (M16STORE_REG_P): New macro.
1982 (MIPS_CALL): Support TARGET_MICROMIPS.
1983 (MICROMIPS_J): New macro.
1984 (mips_base_mips16): Rename this...
1985 (mips_base_compression_flags): ...to this.
1986 (UMIPS_12BIT_OFFSET_P): New macro.
1987 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1988 (MULTILIB_DIRNAMES): Likewise.
1990 2013-02-24 Jakub Jelinek <jakub@redhat.com>
1993 * target-globals.c (save_target_globals): For init_reg_sets and
1994 target_reinit remporarily set this_fn_optabs to this_target_optabs.
1996 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
1998 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
1999 * config/aarch64/t-aarch64
2000 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
2002 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
2005 * lra-constraints.c (process_alt_operands): Reload operand
2006 conflicting with earlier clobber only if no more other conflicting
2009 2013-02-22 Jakub Jelinek <jakub@redhat.com>
2012 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
2013 if not linking a shared library.
2015 2013-02-22 Seth LaForge <sethml@google.com>
2017 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
2019 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
2021 * config/arm/arm.md (split for extendsidi): Update condition.
2022 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
2023 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
2024 (qhs_zextenddi_cstr): Likewise.
2026 2013-02-21 Jakub Jelinek <jakub@redhat.com>
2029 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
2030 avoid signed wrapping.
2031 (expand_mult): Handle properly multiplication by
2032 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
2033 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
2034 in the compiler if coeff is HOST_WIDE_INT_MIN.
2035 (expand_divmod): Don't make ext_op1 static, change it's type to uhwi.
2036 Avoid undefined behavior in -INTVAL (op1).
2038 PR rtl-optimization/50339
2039 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
2041 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
2042 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
2043 into splitting_ashiftrt field.
2044 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
2046 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
2049 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
2052 * trans-mem.c (execute_tm_mark): Do not expand transactions that
2053 are sure to go irrevocable.
2055 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
2057 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
2058 scalars are valid operands.
2060 2013-02-21 Martin Jambor <mjambor@suse.cz>
2062 PR tree-optimization/56310
2063 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
2064 only matching indices and non-negative final offsets.
2065 (intersect_aggregates_with_edge): Pass src_idx to
2066 agg_replacements_to_vector. Pass src_idx insstead of index to
2067 intersect_with_agg_replacements.
2069 2013-02-21 Martin Jambor <mjambor@suse.cz>
2071 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
2072 instead of hard-wired defaults.
2074 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
2076 * doc/invoke.texi (MIPS Options): Update documentation of the
2077 floating-point multiply-accumulate instruction restrictions.
2079 2013-02-21 Kostya Serebryany <kcc@google.com>
2081 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
2082 asan_shadow_offset on x86_64 linux.
2084 2013-02-21 Richard Biener <rguenther@suse.de>
2086 PR tree-optimization/56415
2088 2013-02-11 Richard Biener <rguenther@suse.de>
2090 PR tree-optimization/56273
2091 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2094 2013-02-21 Jakub Jelinek <jakub@redhat.com>
2097 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
2101 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
2102 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
2104 2013-02-20 Jan Hubicka <jh@suse.cz>
2106 PR tree-optimization/56265
2107 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph when
2108 target is referenced for first time.
2110 2013-02-20 Richard Biener <rguenther@suse.de>
2112 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
2113 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2114 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2115 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
2116 not return anything.
2117 (rename_ssa_copies): Do not remove unused locals.
2118 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
2119 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
2120 * passes.c (execute_function_todo): Do not schedule unused locals
2121 removal if cleanup_tree_cfg did something.
2122 * tree-ssa-live.c (remove_unused_locals): Dump statistics
2123 about the number of removed locals.
2125 2013-02-20 Richard Biener <rguenther@suse.de>
2127 PR tree-optimization/56398
2128 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip
2131 2013-02-20 Martin Jambor <mjambor@suse.cz>
2133 PR tree-optimization/55334
2134 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
2135 restricted pointers to arrays.
2137 2013-02-20 Richard Biener <rguenther@suse.de>
2138 Jakub Jelinek <jakub@redhat.com>
2140 PR tree-optimization/56396
2141 * tree-ssa-ccp.c (n_const_val): New static variable.
2142 (get_value): Return NULL for SSA names we don't have a lattice
2144 (ccp_initialize): Initialize n_const_val.
2145 * tree-ssa-copy.c (n_copy_of): New static variable.
2146 (init_copy_prop): Initialize n_copy_of.
2147 (get_value): Return NULL_TREE for SSA names we don't have a
2150 2013-02-20 Martin Jambor <mjambor@suse.cz>
2152 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
2154 2013-02-20 Richard Biener <rguenther@suse.de>
2156 * genpreds.c (write_lookup_constraint): Do not compare first
2157 letter of the constraint again.
2159 2013-02-20 Richard Biener <rguenther@suse.de>
2161 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
2163 (get_use_iv_cost): Terminate hashtable walk when coming across
2166 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
2168 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
2169 reassociation for avx2 targets.
2171 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2173 * config/microblaze/microblaze.c: microblaze_has_clz = 0
2174 Add version check for v8.10.a to enable microblaze_has_clz
2175 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
2176 version and TARGET_PATTERN_COMPARE check
2177 * config/microblaze/microblaze.md: New clzsi2 instruction
2179 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2181 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
2182 function before branching.
2184 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
2186 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
2188 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
2190 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
2193 * sel-sched.c: Include ira.h.
2194 (implicit_clobber_conflict_p): New function.
2195 (moveup_expr): Use it.
2196 * Makefile.in (sel-sched.o): Depend on ira.h.
2198 2013-02-19 Richard Biener <rguenther@suse.de>
2200 PR tree-optimization/56384
2201 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
2202 (vn_hash_type): Split out from ...
2203 (vn_hash_constant_with_type): ... here.
2204 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
2205 (vn_phi_eq): Compare types from vn_phi_s structure.
2206 (vn_phi_lookup): Populate vn_phi_s type.
2207 (vn_phi_insert): Likewise.
2209 2013-02-19 Jakub Jelinek <jakub@redhat.com>
2211 PR tree-optimization/56350
2212 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
2213 if haven't found reduction or nested cycle operand, rather than
2214 asserting we must find it.
2216 PR tree-optimization/56381
2217 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
2220 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
2221 Jakub Jelinek <jakub@redhat.com>
2224 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
2225 (swap_optab_enable): Same.
2226 (init_all_optabs): Use argument instead of global.
2227 * tree.h (struct tree_optimization_option): New field target_optabs.
2228 * expr.h (init_all_optabs): Add argument to prototype.
2229 (TREE_OPTIMIZATION_OPTABS): New.
2230 (save_optabs_if_changed): Protoize.
2231 * optabs.h: Declare this_fn_optabs.
2232 * optabs.c (save_optabs_if_changed): New.
2233 Declare this_fn_optabs.
2234 (init_optabs): Add argument to init_all_optabs() call.
2235 * function.c (invoke_set_current_function_hook): Handle per
2237 * function.h (struct function): New field optabs.
2238 * config/mips/mips.c (mips_set_mips16_mode): Handle when
2239 optimization_current_node has changed.
2240 * target-globals.h (save_target_globals_default_opts): Protoize.
2241 * target-globals.c (save_target_globals_default_opts): New.
2243 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2246 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
2247 registers %fr12 and %fr12R as call used.
2250 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
2251 and HImode, require all displacements to be an integer multiple of
2253 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
2254 only allow QImode and HImode when reload is in progress and strict is
2255 true. Likewise for symbolic addresses. Use base14_operand to check
2256 displacements in REG+BASE addresses.
2258 2013-02-18 Richard Biener <rguenther@suse.de>
2260 PR tree-optimization/56366
2261 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2262 handle sign-conversion of outer-loop initial induction value.
2264 2013-02-18 Richard Biener <rguenther@suse.de>
2267 * cfghooks.c (merge_blocks): If we merge a latch into another
2268 block adjust references to it.
2269 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
2270 (verify_loop_structure): Verify that a recorded latch is in fact
2273 2013-02-18 Richard Biener <rguenther@suse.de>
2275 PR tree-optimization/56321
2276 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
2277 order SSA name release and virtual operand unlinking.
2279 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2281 * config/microblaze/microblaze.md (save_stack_block): Define.
2282 (restore_stack_block): Likewise.
2284 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2286 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
2287 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
2288 * config/microblaze/microblaze.c (microblaze_option_override):
2289 Bail out early for PIC modes when target does not support PIC.
2291 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2293 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
2294 Replace with a microblaze version.
2295 (microblaze_trampoline_init): Adapt for microblaze.
2296 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
2299 2013-02-16 Jakub Jelinek <jakub@redhat.com>
2300 Dodji Seketeli <dodji@redhat.com>
2303 * asan.c (get_mem_refs_of_builtin_call): White space and style
2305 (instrument_mem_region_access): Do not forget to always put
2306 instrumentation of the of 'base' and 'base + len' in a "if (len !=
2307 0) statement, even for cases where either 'base' or 'base + len'
2308 are not instrumented -- because they have been previously
2309 instrumented. Simplify the logic by putting all the statements
2310 instrument 'base + len' inside a sequence, and then insert that
2311 sequence right before the current insertion point. Then, to
2312 instrument 'base + len', just get an iterator on that statement.
2313 And do not forget to update the pointer to iterator the function
2314 received as argument.
2316 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
2318 PR rtl-optimization/56348
2319 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
2321 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
2323 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
2324 (clean_graph_dump_file): Pass base to start_graph_dump.
2326 2013-02-14 Richard Henderson <rth@redhat.com>
2329 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
2331 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
2333 * collect2-aix.h: Define F_LOADONLY.
2335 2013-02-14 Richard Biener <rguenther@suse.de>
2338 * varasm.c (output_constant_def_1): Get the decl representing
2339 the constant as argument.
2340 (output_constant_def): Wrap output_constant_def_1.
2341 (make_decl_rtl): Use output_constant_def_1 with the decl
2342 representing the constant.
2343 (build_constant_desc): Optionally re-use a decl already
2344 representing the constant.
2345 (tree_output_constant_def): Adjust.
2347 2013-02-14 Dodji Seketeli <dodji@redhat.com>
2350 * asan.c (instrument_builtin_call): Really put the length of the
2351 second source argument into src1_len.
2353 2013-02-13 Jakub Jelinek <jakub@redhat.com>
2355 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
2356 argument. If it is false, don't create edge from then_bb to
2358 (insert_if_then_before_iter): Pass true to it.
2359 (build_check_stmt): Pass false to it.
2360 (transform_statements): Flush hash table only on extended basic
2361 block boundaries, rather than at the beginning of every bb.
2362 Don't flush hash table on nonfreeing_call_p calls.
2363 * tree-flow.h (nonfreeing_call_p): New prototype.
2364 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
2366 2013-02-13 David S. Miller <davem@davemloft.net>
2368 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
2370 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
2373 * ira.c (max_regno_before_ira): Move from ...
2375 (fix_reg_equiv_init): Use max_regno_before_ira instead of
2378 2013-02-13 Jakub Jelinek <jakub@redhat.com>
2380 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
2382 2013-02-13 Richard Biener <rguenther@suse.de>
2385 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
2386 globals in MEM_REFs.
2388 2013-02-13 Richard Biener <rguenther@suse.de>
2390 * loop-init.c (loop_optimizer_init): Clear loop state when
2391 re-initializing preserved loops.
2392 * loop-unswitch.c (unswitch_single_loop): Return whether
2393 we unswitched the loop. Do not verify loop state here.
2394 (unswitch_loops): When we unswitched a loop discover new
2397 2013-02-13 Kostya Serebryany <kcc@google.com>
2399 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset on x86_64
2401 * sanitizer.def: Rename __asan_init to __asan_init_v1.
2403 2013-02-12 Dodji Seketeli <dodji@redhat.com>
2405 Avoid instrumenting duplicated memory access in the same basic block
2406 * Makefile.in (asan.o): Add new dependency on hash-table.h
2407 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
2408 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
2409 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
2410 (free_mem_ref_resources, has_mem_ref_been_instrumented)
2411 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
2412 (get_mem_ref_of_assignment): New functions.
2413 (get_mem_refs_of_builtin_call): Extract from
2414 instrument_builtin_call and tweak a little bit to make it fit with
2416 (instrument_builtin_call): Use the new
2417 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
2418 of is_gimple_builtin_call.
2419 (instrument_derefs, instrument_mem_region_access): Insert the
2420 instrumented memory reference into the hash table.
2421 (maybe_instrument_assignment): Renamed instrument_assignment into
2422 this, and change it to advance the iterator when instrumentation
2423 actually happened and return true in that case. This makes it
2424 homogeneous with maybe_instrument_assignment, and thus give a
2425 chance to callers to be more 'regular'.
2426 (transform_statements): Clear the memory reference hash table
2427 whenever we enter a new BB, when we cross a function call, or when
2428 we are done transforming statements. Use
2429 maybe_instrument_assignment instead of instrumentation. No more
2430 need to special case maybe_instrument_assignment and advance the
2431 iterator after calling it; it's now handled just like
2432 maybe_instrument_call. Update comment.
2434 2013-02-13 Richard Biener <rguenther@suse.de>
2436 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
2437 Fix loop discovery code.
2439 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
2442 * lra-constraints.c (process_alt_operands): Match early clobber
2443 operand with itself. Check conflicts with earlyclobber only if
2444 the operand is not reloaded. Prefer to reload conflicting operand
2445 if earlyclobber and matching operands are the same.
2447 2013-02-12 Richard Biener <rguenther@suse.de>
2450 * lto-streamer-out.c (write_symbol): Do not output symbols
2451 for hard register variables.
2453 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
2456 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
2457 (umulsidi3_insn, mulsidi3_insn): New insns.
2459 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2461 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
2462 (struct tune_params): Add vec_costs field.
2463 * config/arm/arm.c (arm_builtin_vectorization_cost)
2464 (arm_add_stmt_cost): New functions.
2465 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
2466 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
2467 (arm_default_vec_cost): New struct of type cpu_vec_costs.
2468 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
2469 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
2470 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
2471 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
2473 2013-02-12 Richard Biener <rguenther@suse.de>
2476 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
2477 decls again if possible.
2479 2013-02-12 Richard Biener <rguenther@suse.de>
2482 * tree-ssa.c (verify_ssa_name): Fix check, move
2483 SSA_NAME_IN_FREE_LIST check up.
2485 2013-02-12 Jakub Jelinek <jakub@redhat.com>
2486 Steven Bosscher <steven@gcc.gnu.org>
2488 PR rtl-optimization/56151
2489 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
2490 equal to op0 or op1, and last_insn pattern is CODE operation
2491 with MEM dest and one of the operands matches that MEM.
2493 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
2495 * doc/extend.texi: Document Function Multiversioning and "default"
2496 parameter string to target attribute.
2497 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
2498 target attribute parameter is "default".
2499 (ix86_compare_version_priority): Remove checks for target attribute.
2500 (ix86_mangle_function_version_assembler_name): Change error to sorry.
2501 Remove check for target attribute equal to NULL. Add assert.
2502 (ix86_generate_version_dispatcher_body): Change error to sorry.
2504 2013-02-11 Iain Sandoe <iain@codesourcery.com>
2505 Jack Howarth <howarth@bromo.med.uc.edu>
2506 Patrick Marlier <patrick.marlier@gmail.com>
2509 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
2510 define ENDFILE_SPEC as TM_DESTRUCTOR.
2511 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
2513 2013-02-11 Alexander Potapenko <glider@google.com>
2514 Jack Howarth <howarth@bromo.med.uc.edu>
2515 Jakub Jelinek <jakub@redhat.com>
2518 * config/darwin.c (cdtor_record): Rename ctor_record.
2519 (sort_cdtor_records): Rename sort_ctor_records.
2520 (finalize_dtors): New routine to sort destructors by
2521 priority before use in assemble_integer.
2522 (machopic_asm_out_destructor): Use finalize_dtors if needed.
2524 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
2526 PR rtl-optimization/56275
2527 * simplify-rtx.c (avoid_constant_pool_reference): Check that
2528 offset is non-negative and less than cmode size before
2529 calling simplify_subreg.
2531 2013-02-11 Richard Biener <rguenther@suse.de>
2533 PR tree-optimization/56264
2534 * cfgloop.h (fix_loop_structure): Adjust prototype.
2535 * loop-init.c (fix_loop_structure): Return the number of
2536 newly discovered loops.
2537 * tree-cfgcleanup.c (repair_loop_structures): When new loops
2538 are discovered, do a full loop-closed SSA rewrite.
2540 2013-02-11 Richard Biener <rguenther@suse.de>
2542 PR tree-optimization/56273
2543 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2545 (check_array_ref): Fix missing newline in dumps.
2546 (search_for_addr_array): Likewise.
2548 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
2550 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
2552 2013-02-09 Jakub Jelinek <jakub@redhat.com>
2555 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
2557 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
2559 PR rtl-optimization/56246
2560 * lra-constraints.c (simplify_operand_subreg): Try to reuse
2562 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
2563 constraints are satisfied.
2565 2013-02-08 Jeff Law <law@redhat.com>
2568 * emit-rtl.c (reg_is_parm_p): New function.
2569 * regs.h (reg_is_parm_p): New prototype.
2570 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
2571 callee-clobbered registers.
2573 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
2576 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
2577 If there is no implicit builtin declaration, just return NULL.
2579 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
2581 * config/i386/sse.md (FMAMODEM): New mode iterator.
2582 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
2583 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
2585 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
2587 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
2588 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
2589 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
2591 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2593 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
2594 (microblaze*-*-elf): Likewise.
2595 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
2597 * config/microblaze/microblaze-c.c: Add builtin defines for
2598 _LITTLE_ENDIAN and _BIG_ENDIAN.
2599 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
2600 add to TARGET_DEFAULT flags.
2601 Expand ASM_SPEC and LINK_SPEC.
2602 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
2603 * config/microblaze/microblaze.md: Update extendsidi2 and
2604 movdi_internal instructions to use low-order / high-order reg
2606 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
2607 options and inversemask / mask of LITTLE_ENDIAN.
2608 * config/microblaze/t-microblaze: Expand multilib options to
2609 include mlittle-endian (le) and update exceptions patterns.
2611 2013-02-08 Jakub Jelinek <jakub@redhat.com>
2613 PR rtl-optimization/56195
2614 * lra-constraints.c (get_reload_reg): Don't reuse regs
2615 if they have smaller mode than requested, if they have
2616 wider mode than requested, try to return a SUBREG.
2618 PR tree-optimization/56250
2619 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
2620 if type is unsigned and code isn't MULT_EXPR.
2622 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
2624 PR tree-optimization/56064
2625 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
2626 bits according to mode.
2627 * fixed-value.h (fixed_from_double_int)
2628 (const_fixed_from_double_int): Adjust comments.
2630 2013-02-08 Richard Biener <rguenther@suse.de>
2633 * lto-streamer.h (struct data_in): Remove current_file, current_line
2634 and current_col members.
2635 * lto-streamer-out.c (lto_output_location): Stream changed bits
2636 en-block for efficiency.
2637 * lto-streamer-in.c (clear_line_info): Remove.
2638 (lto_input_location): Cache current file, line and column
2639 globally via local statics. Read changed bits en-block.
2640 (input_function): Do not call clear_line_info.
2641 (lto_read_body): Likewise.
2642 (lto_input_toplevel_asms): Likewise.
2644 2013-02-08 Michael Matz <matz@suse.de>
2646 PR tree-optimization/52448
2647 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
2648 (nt_call_phase): New static.
2649 (add_or_mark_expr): Only mark accesses with newer phase than any
2651 (nonfreeing_call_p): New.
2652 (nt_init_block): Update nt_call_phase, mark blocks as visited.
2653 (nt_fini_block): Keep blocks marked as visited.
2654 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
2656 2013-02-08 Richard Biener <rguenther@suse.de>
2658 * ira.c (ira): Free broken dominator information.
2660 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
2662 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
2664 2013-02-08 Marek Polacek <polacek@redhat.com>
2666 * cfgloop.c (verify_loop_structure): Add more checking of headers.
2668 2013-02-08 Richard Biener <rguenther@suse.de>
2671 * cfgloop.h (flow_loops_find): Adjust.
2672 (bb_loop_header_p): Declare.
2673 * cfgloop.c (bb_loop_header_p): New function split out from ...
2674 (flow_loops_find): ... here. Adjust function signature,
2675 support incremental loop structure update.
2676 (verify_loop_structure): Cleanup. Verify a loop is a loop.
2677 * cfgloopmanip.c (fix_loop_structure): Move ...
2678 * loop-init.c (fix_loop_structure): ... here.
2679 (apply_loop_flags): Split out from ...
2680 (loop_optimizer_init): ... here.
2681 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
2682 in incremental mode, only remove dead loops here.
2684 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
2687 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
2688 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
2689 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
2690 (*round<mode>3.libgcc): New insns for fixed-modes.
2691 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
2692 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
2693 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
2694 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
2695 implementations. Define to __builtin_avr_absFX,
2696 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
2697 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
2698 __builtin_avr_countlsFX, respectively.
2699 * config/avr/avr-c.c (target.h): Include it.
2700 (enum avr_builtin_id): New enum.
2701 (avr_resolve_overloaded_builtin): New static function.
2702 (avr_register_target_pragmas): Use it to set
2703 targetm.resolve_overloaded_builtin.
2704 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
2705 tree nodes used by DEF_BUILTIN.
2706 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
2707 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
2708 <AVR_BUILTIN_xxBITS>: Same.
2710 2013-02-08 Richard Biener <rguenther@suse.de>
2712 * cfgloop.c (verify_loop_structure): Properly handle
2713 a loop exiting to another loop header.
2714 * ira-int.h (ira_loops): Remove.
2715 * ira.c (ira_loops): Remove.
2716 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
2717 (do_reload): Use loop_optimizer_finalize.
2718 * ira-build.c (create_loop_tree_nodes): Use get_loops and
2719 number_of_loops to access the loop tree.
2720 (more_one_region_p): Likewise.
2721 (finish_loop_tree_nodes): Likewise.
2722 (rebuild_regno_allocno_maps): Likewise.
2723 (mark_loops_for_removal): Likewise.
2724 (mark_all_loops_for_removal): Likewise.
2725 (remove_unnecessary_regions): Likewise.
2726 (ira_build): Likewise.
2727 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2729 2013-02-08 Richard Biener <rguenther@suse.de>
2731 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
2732 * ipa-pure-const.c (analyze_function): Avoid calling
2733 mark_irreducible_loops twice.
2734 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
2736 2013-02-07 David S. Miller <davem@davemloft.net>
2738 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
2740 * var-tracking.c (vt_add_function_parameter): Test the presence of
2741 HAVE_window_save properly and do not remap argument registers when
2742 we have a leaf function.
2744 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
2747 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
2749 * config/i386/i386.c (ix86_print_operand): Ditto.
2751 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
2753 * lra-constraints.c (process_alt_operands): Fix recently added comment.
2755 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
2757 PR rtl-optimization/56225
2758 * lra-constraints.c (process_alt_operands): Check that reload hard
2759 reg can hold value for strict_low_part.
2761 2013-02-07 Jakub Jelinek <jakub@redhat.com>
2764 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
2765 dwarf2out_end_function.
2766 (in_first_function_p, maybe_at_text_label_p,
2767 first_loclabel_num_not_at_text_label): New variables.
2768 (dwarf2out_var_location): In the first function find out
2769 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
2770 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
2773 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
2775 PR rtl-optimization/56178
2776 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
2777 SUBREG of a register. Tidy up related block of code.
2778 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
2779 note if the source is a register or a SUBREG of a register.
2781 2013-02-07 Jakub Jelinek <jakub@redhat.com>
2784 * config/rs6000/rs6000.md (ptrm): New mode attr.
2785 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
2786 call_value_indirect_aix<pttrsize>,
2787 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
2790 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2792 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
2793 if -bnortl. Convert to strcmp and strncmp.
2795 2013-02-07 Alan Modra <amodra@gmail.com>
2798 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
2799 addresses won't wrap when offsetting.
2800 (rs6000_secondary_reload): Provide secondary reloads needed for
2801 wrapping LO_SUM addresses.
2803 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
2805 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
2806 MACH, just __MACH__.
2808 2013-02-06 Richard Biener <rguenther@suse.de>
2810 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
2811 instead of calling fix_loop_structure.
2813 2013-02-06 Jakub Jelinek <jakub@redhat.com>
2816 * omp-low.c (use_pointer_for_field): Return false if
2817 lower_send_shared_vars doesn't generate any copy-out code.
2819 2013-02-06 Tom de Vries <tom@codesourcery.com>
2821 PR rtl-optimization/56131
2822 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
2823 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
2824 of the label is NULL. Add comment.
2826 2013-02-05 Jakub Jelinek <jakub@redhat.com>
2828 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
2831 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
2832 (STATIC_LIBTSAN_LIBS): Likewise.
2833 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
2834 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
2835 is defined, don't add anything else beyond that.
2836 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
2837 (LINK_COMMAND_SPEC): Use them.
2839 PR tree-optimization/56205
2840 * tree-stdarg.c (check_all_va_list_escapes): Return true if
2841 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
2842 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
2844 2013-02-05 Richard Biener <rguenther@suse.de>
2846 PR tree-optimization/53342
2847 PR tree-optimization/53185
2848 * tree-vectorizer.h (vect_check_strided_load): Remove.
2849 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
2850 not disallow peeling for vectorized strided loads.
2851 (vect_check_strided_load): Make static and simplify.
2852 (vect_analyze_data_refs): Adjust.
2853 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
2854 correctly when vectorizing strided loads.
2856 2013-02-05 Richard Biener <rguenther@suse.de>
2858 * doc/install.texi: Refer to ISL, not PPL.
2860 2013-02-05 Jan Hubicka <jh@suse.cz>
2862 PR tree-optimization/55789
2863 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
2865 2013-02-05 Jan Hubicka <jh@suse.cz>
2867 PR tree-optimization/55789
2868 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
2869 the dead call anyway.
2871 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
2874 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
2876 2013-02-04 Alexander Potapenko <glider@google.com>
2877 Jack Howarth <howarth@bromo.med.uc.edu>
2878 Jakub Jelinek <jakub@redhat.com>
2881 * config/darwin.c (sort_ctor_records): Stabilized qsort
2882 on constructor priority by using original position.
2883 (finalize_ctors): New routine to sort constructors by
2884 priority before use in assemble_integer.
2885 (machopic_asm_out_constructor): Use finalize_ctors if needed.
2887 2013-02-04 Jakub Jelinek <jakub@redhat.com>
2890 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
2891 about visibility on artificial decls.
2892 * config/sol2.c (solaris_assemble_visibility): Likewise.
2894 2013-02-04 Kai Tietz <ktietz@redhat.com>
2897 * config/i386/i386.c (function_value_ms_64): Add additional valtype
2898 argument and improve checking of return-argument types for 16-byte
2900 (ix86_function_value_1): Add additional valtype argument on call
2901 of function_value_64.
2902 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
2903 handling infunction_value_64 function.
2905 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
2907 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2909 2013-02-04 Richard Biener <rguenther@suse.de>
2911 PR tree-optimization/56188
2912 * tree-ssa-structalias.c (label_visit): Consider case with
2913 initially non-empty points-to set.
2914 (perform_var_substitution): Dump node mapping and clean up.
2916 2013-02-04 Richard Guenther <rguenther@suse.de>
2919 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
2920 node prevail as last resort.
2921 (lto_symtab_merge_decls): Remove guard on LTRANS here.
2922 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
2924 2013-02-04 Richard Biener <rguenther@suse.de>
2926 PR tree-optimization/56113
2927 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
2929 (equiv_class_lookup_or_add): ... this.
2930 (label_visit): Adjust and fix error in previous patch.
2931 (perform_var_substitution): Adjust.
2933 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
2935 * config/sh/divtab.c: Fix formatting and comments throughout the file.
2936 * config/sh/sh4-300.md: Likewise.
2937 * config/sh/sh4a.md: Likewise.
2938 * config/sh/constraints.md: Likewise.
2939 * config/sh/sh.md: Likewise.
2940 * config/sh/netbsd-elf.h: Likewise.
2941 * config/sh/predicates.md: Likewise.
2942 * config/sh/sh-protos.h: Likewise.
2943 * config/sh/ushmedia.h: Likewise.
2944 * config/sh/linux.h: Likewise.
2945 * config/sh/sh.c: Likewise.
2946 * config/sh/superh.h: Likewise.
2947 * config/sh/elf.h: Likewise.
2948 * config/sh/sh4.md: Likewise.
2949 * config/sh/sh.h: Likewise.
2951 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2953 * config/pa/constraints.md: Adjust unused letters. Change "T"
2954 constraint to match_test floating_point_store_memory_operand().
2955 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
2956 (base14_operand): New.
2957 (floating_point_store_memory_operand): New.
2958 (integer_store_memory_operand): Revise to use base14_operand and
2959 reg_plus_base_memory_operand.
2960 (move_dest_operand): Allow symbolic_memory_operands.
2961 (symbolic_memory_operand): Check for LO_SOM.
2962 (symbolic_operand): Change default case to break.
2963 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
2964 CONST_DOUBLE values to be reloaded by putting them into memory when
2965 the destination is a floating point register.
2966 (movdf): Remove code to handle CONST_DOUBLE.
2968 (reload_indf_r1): New.
2969 (reload_insf_r1): New.
2970 Consistently use "Q" and "T" constraints with integer and floating
2971 point move instructions, respectively.
2972 (movdi): Remove FAIL.
2973 Change predicate for source operand unamed DImode move from
2974 general_operand to move_src_operand.
2975 (umulsidi3): Change predicate for destination operand to
2977 Likewise for similar unamed patterns.
2978 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
2979 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
2980 (hppa_legitimize_address): Simplify mask calculation.
2981 (pa_emit_move_sequence): Revised handling of secondary reloads from
2982 REG+D addresses for floating point loads and stores. Directly handle
2983 loading CONST0_RTX (mode) to a floating point register.
2984 (pa_secondary_reload): Handle reloading DF and SFmode constant values
2985 to floating point registers. Don't restrict secondary reloads to
2986 floating point registers to integer modes. Revise some comments and
2988 (TARGET_LEGITIMATE_ADDRESS_P): Define.
2989 (pa_legitimate_address_p): New.
2990 (pa_legitimize_reload_address): New.
2991 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
2992 (STRICT_REG_OK_FOR_BASE_P): New.
2993 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
2994 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
2996 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
2997 Andrew Dixie <andrewd@gentrack.com>
2999 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
3002 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
3004 * expmed.c (extract_bit_field_1): Pass the full width of the
3005 structure to get_best_reg_extraction_insn.
3007 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
3010 * configure.ac (use_cxa_atexit): Add AIX.
3011 * configure: Regenerate.
3013 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
3015 2013-02-01 Jakub Jelinek <jakub@redhat.com>
3018 * final.c (need_profile_function): New variable.
3019 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
3020 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
3021 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
3022 notes, targetm.asm_out.function_prologue doesn't emit anything,
3023 HAVE_prologue and profiler should be emitted before prologue,
3024 set need_profile_function instead of emitting it.
3025 (final_scan_insn): If need_profile_function, emit
3026 profile_function on the first NOTE_INSN_BASIC_BLOCK or
3027 NOTE_INSN_FUNCTION_BEG note.
3029 2013-02-01 Richard Henderson <rth@redhat.com>
3031 * config/rs6000/rs6000.md (smulditi3): New.
3034 * config/alpha/alpha.md (umulditi3): New.
3036 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
3038 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
3039 (ASM_OUTPUT_ALIGNED_LOCAL): New.
3041 2013-02-01 Richard Biener <rguenther@suse.de>
3043 PR tree-optimization/56113
3044 * tree-ssa-structalias.c (label_visit): Reduce work for
3045 single-predecessor nodes.
3047 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
3049 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
3050 range isn't testing for zero.
3052 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
3055 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
3057 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
3058 Nick Clifton <nickc@redhat.com>
3060 * config/v850/constraints.md (Q): Define as a memory constraint.
3061 * config/v850/predicates.md (label_ref_operand): New predicate.
3062 (e3v5_shift_operand): New predicate.
3063 (ior_operator): New predicate.
3064 * config/v850/t-v850: Add e3v5 multilib.
3065 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
3066 (v850_gen_movdi): Prototype.
3067 * config/v850/v850.c: Add support for e3v5 architecture.
3068 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
3070 (construct_save_jarl): Add e3v5 long JARL support.
3071 (v850_adjust_insn_length): New function. Adjust length of call
3072 insns when using e3v5 instructions.
3073 (v850_gen_movdi): New function: Generate instructions to move a
3075 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
3076 (CPP_SPEC): Define __v850e3v5__ as appropriate.
3077 (TARGET_USE_FPU): Enable for e3v5.
3078 (CONST_OK_FOR_W): New macro.
3079 (ADJUST_INSN_LENGTH): Define.
3080 * config/v850/v850.md (UNSPEC_LOOP): Define.
3081 (attr cpu): Add v850e3v5.
3082 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
3083 (movdi): New pattern.
3084 (movdi_internal): New pattern.
3085 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
3086 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
3087 (cstoresf4): Likewise.
3088 (cstoredf4): Likewise.
3089 (insv): New pattern.
3090 (rotlso3_a): New pattern.
3091 (rotlsi3_b): New pattern
3092 (rotlsi3_v850e3v5): New pattern.
3093 (doloop_begin): New pattern.
3094 (fix_loop_counter): New pattern.
3095 (doloop_end): New pattern.
3096 (branch_normal): Add e3v5 long branch support.
3097 (branch_invert): Likewise.
3098 (branch_z_normal): Likewise.
3099 (branch_z_invert): Likewise.
3100 (branch_nz_normal): Likewise.
3101 (branch_nz_invert): Likewise.
3102 (call_internal_short): Add e3v5 register-indirect JARL support.
3103 (call_internal_long): Likewise.
3104 (call_value_internal_short): Likewise.
3105 (call_value_internal_long): Likewise.
3106 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
3107 (mloop): New option.
3108 * config.gcc: Add support for configuring v840e3v5 target.
3109 * doc/invoke.texi: Document new v850 specific command line options.
3111 2013-01-31 Paul Koning <ni1d@arrl.net>
3115 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
3116 children if parent is a class.
3117 (prune_unused_types_prune): Don't add DW_AT_declaration.
3119 2013-01-31 Richard Biener <rguenther@suse.de>
3121 PR tree-optimization/56157
3122 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
3123 match up operand with SLP child.
3125 2013-01-31 Jason Merrill <jason@redhat.com>
3128 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
3129 parameters the first time.
3130 (gen_scheduled_generic_parms_dies): Check completeness here.
3132 2013-01-31 Richard Biener <rguenther@suse.de>
3135 * common.opt (faggressive-loop-optimizations): New flag,
3137 * doc/invoke.texi (faggressive-loop-optimizations): Document.
3138 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
3139 infer_loop_bounds_from_undefined by it.
3141 2013-01-31 Richard Biener <rguenther@suse.de>
3143 PR tree-optimization/56150
3144 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
3145 visit virtual operands.
3146 (find_uses_to_rename_bb): Likewise.
3148 2013-01-31 Richard Biener <rguenther@suse.de>
3150 PR tree-optimization/56150
3151 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
3152 mixed store non-store stmts.
3154 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3157 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
3158 LIBASAN_EARLY_SPEC is defined.
3159 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
3160 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
3162 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
3165 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
3166 invalid args instead of ICEing on it.
3167 (ix86_valid_target_attribute_tree): Return error_mark_node if
3168 ix86_valid_target_attribute_inner_p failed.
3169 (ix86_valid_target_attribute_p): Return false only if
3170 ix86_valid_target_attribute_tree returned error_mark_node. Allow
3171 target("default") attribute.
3172 (sorted_attr_string): Change argument from const char * to tree,
3173 merge in all target attribute arguments rather than just one.
3174 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
3175 instead of free. Avoid using strcat.
3176 (ix86_mangle_function_version_assembler_name): Mangle
3177 target("default") as if no target attribute is present. Adjust
3178 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
3179 instead of xmalloc and XDELETEVEC instead of free.
3180 (ix86_function_versions): Don't return true if one of the decls
3181 doesn't have target attribute. If they don't and one of the decls
3182 is DECL_FUNCTION_VERSIONED, report an error. Adjust
3183 sorted_attr_string caller. Use XDELETEVEC instead of free.
3184 (ix86_supports_function_versions): Remove.
3185 (make_name): Fix up formatting.
3186 (make_dispatcher_decl): Remove resolver_name and its initialization.
3187 Avoid leaking memory.
3188 (is_function_default_version): Return true if there is
3189 target("default") attribute rather than no target attribute at all.
3190 (make_resolver_func): Avoid leaking memory.
3191 (ix86_generate_version_dispatcher_body): Likewise.
3192 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
3193 * target.def (supports_function_versions): Remove.
3194 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
3195 * doc/tm.texi: Regenerated.
3197 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
3199 PR rtl-optimization/56144
3200 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
3201 for values with side effects.
3203 2013-01-30 Richard Biener <rguenther@suse.de>
3205 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
3206 (sparseset_pop): Likewise.
3207 * cfganal.c (compute_idf): Likewise. Increase work-stack size
3208 to be able to use quick_push in the worker loop.
3210 2013-01-30 Marek Polacek <polacek@redhat.com>
3212 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
3214 2013-01-30 Richard Biener <rguenther@suse.de>
3217 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
3219 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
3221 PR tree-optimization/56064
3222 * fixed-value.c (fixed_from_double_int): New function.
3223 * fixed-value.h (fixed_from_double_int): New prototype.
3224 (const_fixed_from_double_int): New static inline function.
3225 * fold-const.c (native_interpret_fixed): New static function.
3226 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
3227 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
3228 (native_encode_fixed): New static function.
3229 (native_encode_expr) <FIXED_CST>: Use it.
3230 (native_interpret_int): Move double_int worker code to...
3231 * double-int.c (double_int::from_buffer): ...this new static method.
3232 * double-int.h (double_int::from_buffer): Prototype it.
3234 2013-01-30 Richard Biener <rguenther@suse.de>
3236 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
3237 New pointer-map and obstack.
3238 (init_alias_vars): Allocate pointer-map and obstack.
3239 (delete_points_to_sets): Free them.
3240 (find_what_var_points_to): Cache result.
3241 (find_what_p_points_to): Adjust for changed interface of
3242 find_what_var_points_to.
3243 (compute_points_to_sets): Likewise.
3244 (ipa_pta_execute): Likewise.
3246 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3248 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
3249 * configure: Regenerate.
3250 * config.in: Regenerate.
3251 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
3252 #nobits/#progbits if supported.
3254 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
3257 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
3258 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
3259 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
3261 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3263 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
3264 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
3266 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3268 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
3269 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
3271 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3273 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
3275 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
3276 * config/arm/cortex-a7.md: New bypasses using
3277 arm_mac_accumulator_is_result.
3279 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3281 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
3282 (cortex_a7_neon_mla): Likewise.
3283 (cortex_a7_fpfmad): New reservation.
3284 (cortex_a7_fpmacs): Use ffmas and update required units.
3285 (cortex_a7_fpmuld): Update required units and latency.
3286 (cortex_a7_fpmacd): Likewise.
3287 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
3288 (cortex_a7_neon). Likewise.
3289 (bypass) Update participating units.
3291 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3293 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
3294 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
3296 * config/arm/vfp11.md (vfp_farith): Use ffmas.
3297 (vfp_fmul): Use ffmad.
3298 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
3299 (cortex_r4_fmacd): Use ffmad.
3300 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
3301 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
3302 (cortex_a9_fmacd): Use ffmad.
3303 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
3304 (cortex_a8_vfp_macd): Use ffmad.
3305 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
3306 (cortex_a5_fpmacd): Use ffmad.
3307 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
3308 (cortex_a15_vfp_macd): Use ffmad.
3309 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
3311 2013-01-29 Jason Merrill <jason@redhat.com>
3314 * varasm.c (default_assemble_visibility): Don't warn about
3315 visibility on artificial decls.
3317 2013-01-29 Richard Biener <rguenther@suse.de>
3319 PR tree-optimization/56113
3320 * tree-ssa-structalias.c (equiv_class_lookup): Also return
3322 (label_visit): Free duplicate bitmaps and record the leader instead.
3323 (perform_var_substitution): Adjust.
3325 2013-01-29 Richard Biener <rguenther@suse.de>
3327 PR tree-optimization/55270
3328 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
3329 the CFG, schedule loops for fixup.
3331 2013-01-29 Nick Clifton <nickc@redhat.com>
3333 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
3336 2013-01-28 Leif Ekblad <leif@rdos.net>
3338 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
3339 * config/i386/i386.h (TARGET_RDOS): New macro.
3340 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
3341 * config/i386/i386.c (ix86_option_override_internal): For 64bit
3342 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
3343 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
3344 DEFAULT_LARGE_SECTION_THRESHOLD.
3345 * config/i386/i386.md (R14_REG, R15_REG): New constants.
3346 * config/i386/rdos.h: New file.
3347 * config/i386/rdos64.h: New file.
3349 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
3352 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
3355 2013-01-28 Jakub Jelinek <jakub@redhat.com>
3357 PR rtl-optimization/56117
3358 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
3359 call cselib_lookup_from_insn on the MEM before calling
3360 add_insn_mem_dependence.
3362 2013-01-28 Richard Biener <rguenther@suse.de>
3364 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
3365 to a stmt that didn't have one.
3366 (copy_phis_for_bb): Likewise for PHI arguments.
3367 (copy_debug_stmt): Likewise for debug stmts.
3369 2013-01-28 Richard Biener <rguenther@suse.de>
3371 PR tree-optimization/56034
3372 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
3373 (partition_builtin_p): Adjust.
3374 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
3375 it is the last partition.
3376 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
3377 up the vertex for the definition.
3378 (classify_partition): Classify whether a partition is a
3379 PKIND_REDUCTION, thus has uses outside of the loop.
3380 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
3381 Merge all PKIND_REDUCTION partitions into the last partition.
3382 (tree_loop_distribution): Seed partitions from reductions as well.
3384 2013-01-28 Jakub Jelinek <jakub@redhat.com>
3386 PR tree-optimization/56125
3387 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
3388 pow(x,c) into sqrt(x) * powi(x, n/2) or
3389 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
3390 optimizing for size.
3391 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
3392 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
3395 PR tree-optimization/56094
3396 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
3397 to UNKNOWN_LOCATION while gimplifying expr.
3399 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
3402 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
3403 operand 0 in movabs insn template for -masm=intel asm alternative.
3404 (*movabs<mode>_2): Ditto for operand 1.
3406 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
3409 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
3412 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3414 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
3417 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3419 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
3420 Undef to avoid warning.
3422 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3424 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
3425 * configure: Regenerate.
3427 2013-01-25 Jakub Jelinek <jakub@redhat.com>
3429 PR tree-optimization/56098
3430 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
3431 for stmts with volatile ops.
3432 (cond_store_replacement): Don't optimize if assign has volatile ops.
3433 (cond_if_else_store_replacement_1): Don't optimize if either
3434 then_assign or else_assign have volatile ops.
3435 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
3438 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
3440 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
3442 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
3444 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
3445 missing ':' in asm example.
3447 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
3449 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
3450 entries into lane and laneq entries.
3451 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
3452 Remove AdvSIMD scalar modes.
3453 (aarch64_sq<r>dmulh_laneq<mode>): New.
3454 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
3456 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
3457 builtin implementations to relfect changes in RTL in aarch64-simd.md.
3458 * config/aarch64/iterators.md (VCOND): New.
3461 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
3464 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
3465 Add NULL LIBNAME argument to existing definitions.
3466 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
3467 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
3468 * config/avr/avr.c (DEF_BUILTIN): Same.
3469 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
3470 (avr_expand_builtin): Expand to a vanilla call if a libgcc
3471 implementation is available (DECL_ASSEMBLER_NAME is set).
3472 (avr_fold_absfx): New static function.
3473 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
3474 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
3475 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
3477 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
3478 (abshk, absk, abslk, absllk): Provide as static inline functions.
3480 2013-01-25 Marek Polacek <polacek@redhat.com>
3482 PR tree-optimization/56035
3483 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
3485 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
3487 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
3488 (*movtf_internal_rex64): Add (!o,C) alternative
3489 (*movxf_internal_rex64): Ditto.
3490 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
3492 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
3494 * doc/invoke.texi: fix typo.
3495 * doc/objc.texi: fix typo.
3497 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
3499 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
3500 for the first two alternatives.
3502 2013-01-24 Diego Novillo <dnovillo@google.com>
3504 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
3505 (ggc-zone.o): Remove.
3506 * configure.ac: Remove option --with-gc.
3507 * configure: Re-generate.
3508 * doc/install.texi: Remove documentation for --with-gc.
3509 * gengtype.c (write_enum_defn): Remove. Update all users.
3510 (write_Types_process_field): Remove generation of gt_e_* argument.
3511 (output_type_enum): Remove. Update all users.
3512 (write_enum_defn): Remove. Update all users.
3513 (enum alloc_zone): Remove. Update all users.
3514 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
3515 * ggc-common.c (ggc_splay_alloc): Remove first argument.
3517 (struct ptr_data): Remove field TYPE. Update all users.
3518 (gt_pch_note_object): Remove argument TYPE. Update all users.
3519 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
3521 * ggc-none.c (ggc_alloc_typed_stat): Remove.
3522 (struct alloc_zone): Remove.
3523 (ggc_internal_alloc_zone_stat): Remove.
3524 (ggc_internal_cleared_alloc_zone_stat): Remove.
3525 * ggc-page.c (ggc_alloc_typed_stat): Remove.
3526 (ggc_pch_count_object): Remove last argument. Update all users.
3527 (ggc_pch_alloc_object): Remove last argument. Update all users.
3528 (struct alloc_zone): Remove.
3529 * ggc-zone.c: Remove.
3530 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
3531 (struct alloc_zone): Remove.
3532 (ggc_alloc_typed_stat): Remove.
3533 (ggc_alloc_typed): Remove.
3534 (ggc_splay_alloc): Remove first argument.
3535 (rtl_zone): Remove. Update all users.
3536 (tree_zone): Remove. Update all users.
3537 (tree_id_zone): Remove. Update all users.
3538 (ggc_internal_zone_alloc_stat): Remove. Update all users.
3539 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
3540 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
3541 * tree-ssanames.c: Remove references to zone allocator in comments.
3543 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
3545 * config/avr/avr.c (avr_out_fract): Make register numbers that
3546 might be outside of source operand signed.
3548 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
3550 * config/i386/constraints.md (Yf): New constraint.
3551 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
3552 of f constraint to conditionaly disable x87 register preferences.
3553 (*movdf_internal): Ditto.
3554 (*movsf_internal): Ditto.
3556 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
3559 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
3560 that have operands with impossible constraints.
3561 Add a FIXME for a speed-up opportunity.
3562 * lra-constraints.c (process_alt_operands): Verify that a class
3563 selected from constraints on asms is valid for the operand mode.
3564 (curr_insn_transform): Remove incorrect comment.
3566 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
3568 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
3569 TOC operand is a valid symbol ref in the constant pool.
3571 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3573 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
3575 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
3578 * config/avr/stdfix.h: New file.
3579 * t-avr (stdfix-gcc.h): New rule to build it.
3580 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
3582 2013-01-23 Kostya Serebryany <kcc@google.com>
3584 * config/darwin.h: remove dependency on
3585 CoreFoundation (asan on Mac OS).
3587 2013-01-23 Jakub Jelinek <jakub@redhat.com>
3590 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
3591 instead of cmpdi_operand for first comparison operand.
3592 Don't assert that comparison operands aren't both constants.
3594 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
3596 * doc/install.texi (Downloading the Source): Update references to
3597 downloading separate components.
3599 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
3601 * doc/extend.texi (__int128): Improve grammar.
3603 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
3606 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
3607 alternative to (o,r).
3608 (*movdi_internal_rex64): Remove (!o,n) alternative.
3609 (DImode immediate->memory splitter): Remove.
3610 (DImode immediate->memory peephole2): Remove.
3611 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
3612 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
3613 alternative to (!o,*r).
3614 (*movtf_internal_sse): New pattern.
3615 (*movxf_internal_rex64): New pattern.
3616 (*movxf_internal): Disable for TARGET_64BIT.
3617 (*movdf_internal_rex64): Remove (!o,F) alternative.
3619 2013-01-22 Jakub Jelinek <jakub@redhat.com>
3622 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
3623 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
3624 * tree-vect-loop-manip.c (find_loop_location): Also ignore
3625 stmt locations where LOCATION_LOCUS of the stmt location is
3626 UNKNOWN_LOCATION or BUILTINS_LOCATION.
3629 * config/i386/i386.md (UNSPEC_STOS): New.
3630 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
3631 *strsetqi_1): Add UNSPEC_STOS.
3633 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
3636 * doc/invoke.texi: Remove left over -Wsynth example.
3638 2013-01-21 Jakub Jelinek <jakub@redhat.com>
3640 PR tree-optimization/56051
3641 * fold-const.c (fold_binary_loc): Don't fold
3642 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
3643 a narrowing conversion, or widening conversion from signed
3646 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
3648 PR rtl-optimization/56023
3649 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
3650 dependent on debug instruction.
3652 2013-01-21 Martin Jambor <mjambor@suse.cz>
3655 * function.c (allocate_struct_function): Call
3656 invoke_set_current_function_hook earlier.
3658 2013-01-21 Jakub Jelinek <jakub@redhat.com>
3660 * reload1.c (init_reload): Only initialize reload_obstack
3661 during the first call.
3663 2013-01-21 Marek Polacek <polacek@redhat.com>
3665 * cfgloop.c (verify_loop_structure): Fix up grammar.
3667 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
3669 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
3670 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
3672 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3675 * config/arm/marvell-pj4.md: Update copyright year.
3676 Fix up use of alu to alu_reg and simple_alu_imm.
3678 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
3680 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
3682 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
3685 * lra-constraints.c (curr_insn_transform): Don't reuse original
3686 insn for secondary memory move when memory mode should be different.
3688 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3690 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
3691 atomic_storedi_1): New patterns.
3693 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3695 btver2 pipeline descriptions.
3696 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
3698 * config/i386/i386.md (btver2_decode): New type attributes.
3699 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
3701 * config/i386/btver2.md: New file describing btver2 pipelines.
3703 2013-01-19 Andrew Pinski <apinski@cavium.com>
3705 PR tree-optimization/52631
3706 * tree-ssa-sccvn (visit_use): Before looking up the original
3707 statement, try looking up the simplified expression.
3709 2013-01-19 Anthony Green <green@moxielogic.com>
3711 * config/moxie/moxie.c (moxie_expand_prologue): Set
3712 current_function_static_stack_size.
3714 2013-01-18 Jakub Jelinek <jakub@redhat.com>
3716 PR tree-optimization/56029
3717 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
3718 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
3720 2013-01-18 Sharad Singhai <singhai@google.com>
3722 PR tree-optimization/55995
3723 * dumpfile.c (dump_loc): Print location only if available.
3724 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
3726 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
3729 * lra-constraints.c (curr_insn_transform): Reuse original insn for
3730 secondary memory move.
3731 (inherit_reload_reg): Use rclass instead of cl for
3732 check_secondary_memory_needed_p.
3734 2013-01-18 Jakub Jelinek <jakub@redhat.com>
3737 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
3738 the case where writing real complex part of target modifies op1.
3740 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
3742 * config/aarch64/aarch64-simd.md
3743 (aarch64_vcond_internal<mode>): Handle unordered cases.
3744 * config/aarch64/iterators.md (v_cmp_result): New.
3746 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
3747 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3749 * config/arm/marvell-pj4.md: New file.
3750 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
3751 * config/arm/arm.md (generic_sched): Add marvell_pj4.
3752 (generic_vfp): Likewise.
3753 * config/arm/arm-cores.def: Add marvell-pj4.
3754 * config/arm/arm-tune.md: Regenerate.
3755 * config/arm/arm-tables.opt: Regenerate.
3756 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
3757 * doc/invoke.texi: Document marvell-pj4.
3759 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
3761 * config/aarch64/arm_neon.h: Map scalar types to standard types.
3763 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
3768 * var-tracking.c (negative_power_of_two_p): New.
3769 (global_get_addr_cache, local_get_addr_cache): New.
3770 (get_addr_from_global_cache, get_addr_from_local_cache): New.
3771 (vt_canonicalize_addr): Rewrite using the above. Adjust the
3773 (vt_stack_offset_p): Remove.
3774 (vt_canon_true_dep): Always canonicalize loc's address.
3775 (clobber_overlapping_mems): Make sure we have a MEM.
3776 (local_get_addr_clear_given_value): New.
3777 (val_reset): Clear local cached entries.
3778 (compute_bb_dataflow): Create and release the local cache.
3779 Disable duplicate MEMs clobbering.
3780 (emit_notes_in_bb): Clobber MEMs likewise.
3781 (vt_emit_notes): Create and release the local cache.
3782 (vt_initialize, vt_finalize): Create and release the global
3783 cache, respectively.
3784 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
3786 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
3789 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
3790 not found in the symtab.
3792 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
3795 PR rtl-optimization/55547
3796 PR rtl-optimization/53827
3799 * alias.c (offset_overlap_p): New, factored out of...
3800 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
3801 the conservative special case for symbolic constants. Don't
3802 adjust zero sizes on alignment.
3804 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
3806 PR rtl-optimization/52573
3807 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
3808 REG_UNUSED for the same register.
3810 2013-01-17 Richard Biener <rguenther@suse.de>
3811 Marek Polacek <polacek@redhat.com>
3813 PR rtl-optimization/55833
3814 * loop-unswitch.c (unswitch_loops): Move loop verification...
3815 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
3816 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
3817 Set it to true when we're removing a loop from hierarchy tree in
3818 an irreducible region.
3819 (fix_bb_placements): Adjust caller.
3820 (fix_loop_placements): Likewise.
3822 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
3824 * config/avr/builtins.def (DEF_BUILTIN): Factor out
3825 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
3826 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
3827 Remove ID. Adjust comments.
3828 * config/avr/avr-c.c (avr_builtin_name): Remove.
3829 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
3830 * config/avr/avr.c (avr_tolower): New static function.
3831 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
3832 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
3833 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
3836 2013-01-17 Jan Hubicka <jh@suse.cz>
3838 PR tree-optimization/55273
3839 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
3841 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
3844 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
3845 store through atomic_store<mode>_1.
3846 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
3848 2013-01-17 Martin Jambor <mjambor@suse.cz>
3850 PR tree-optimizations/55264
3851 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
3852 for virtual methods.
3853 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
3854 virtual methods before inlining is over.
3855 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
3857 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
3860 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
3862 PR rtl-optimization/56005
3863 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
3864 pending reads for prefetch.
3866 2013-01-16 Ian Bolton <ian.bolton@arm.com>
3868 * config/aarch64/aarch64.md
3869 (*cstoresi_neg_uxtw): New pattern.
3870 (*cmovsi_insn_uxtw): New pattern.
3871 (*<optab>si3_uxtw): New pattern.
3872 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
3873 (*<optab>si3_insn_uxtw): New pattern.
3874 (*bswapsi2_uxtw): New pattern.
3876 2013-01-16 Richard Biener <rguenther@suse.de>
3878 * tree-inline.c (tree_function_versioning): Remove set but
3879 never used variable.
3881 2013-01-16 Richard Biener <rguenther@suse.de>
3883 PR tree-optimization/55964
3884 * tree-flow.h (rename_variables_in_loop): Remove.
3885 (rename_variables_in_bb): Likewise.
3886 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
3887 (copy_loop_before): Adjust and delete update-ssa status.
3888 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
3889 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
3890 (rename_variables_in_loop): Remove.
3891 (slpeel_update_phis_for_duplicate_loop): Likewise.
3892 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
3893 use available cfg machinery instead of duplicating it.
3894 Update PHI nodes and perform poor-mans SSA update here.
3895 (slpeel_tree_peel_loop_to_edge): Adjust.
3897 2013-01-16 Richard Biener <rguenther@suse.de>
3899 PR tree-optimization/54767
3900 PR tree-optimization/53465
3901 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
3902 (vrp_visit_phi_node): For PHI arguments coming via backedges
3903 drop all symbolical range information.
3904 (execute_vrp): Compute backedges.
3906 2013-01-16 Richard Biener <rguenther@suse.de>
3908 * doc/install.texi: Update CLooG and ISL requirements to
3911 2013-01-16 Christian Bruel <christian.bruel@st.com>
3914 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
3915 (broken_move): Handle UNSPECV_SP_SWITCH_B.
3916 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
3918 2013-01-16 DJ Delorie <dj@redhat.com>
3920 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
3921 (UNSPECV_SP_SWITCH_E): New.
3922 (sp_switch_1): Change to an unspec.
3923 (sp_switch_2): Change to an unspec. Don't use post-inc when we
3926 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
3928 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
3929 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
3930 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
3931 (expand_mem_thread_fence): Ditto.
3932 (expand_mem_signal_fence): Ditto.
3933 (expand_atomic_load): Ditto.
3934 (expand_atomic_store): Ditto.
3936 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
3938 PR rtl-optimization/55547
3939 PR rtl-optimization/53827
3942 * alias.c (memrefs_conflict_p): Set sizes to negative after
3945 2013-01-15 Jakub Jelinek <jakub@redhat.com>
3948 * function.c (thread_prologue_and_epilogue_insns): Always
3949 add crtl->drap_reg to set_up_by_prologue.set, even if
3950 stack_realign_drap is false.
3952 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3954 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
3955 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
3956 *call): Fix indention.
3958 2013-01-15 Tom de Vries <tom@codesourcery.com>
3961 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
3964 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
3966 PR rtl-optimization/55153
3967 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
3969 2013-01-15 Martin Jambor <mjambor@suse.cz>
3971 PR tree-optimization/55920
3972 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
3973 accesses as grp_to_be_debug_replaced.
3975 2013-01-15 Jakub Jelinek <jakub@redhat.com>
3977 PR tree-optimization/55920
3978 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
3979 there is non-useless type conversion needed from debug rhs to lhs,
3980 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
3982 2013-01-15 Joseph Myers <joseph@codesourcery.com>
3983 Mikael Pettersson <mikpe@it.uu.se>
3986 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
3988 (ASM_OUTPUT_CASE_LABEL): Remove.
3989 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
3990 * final.c (shorten_branches): Update alignment of labels before
3991 jump tables if CASE_VECTOR_SHORTEN_MODE.
3993 2013-01-15 Richard Biener <rguenther@suse.de>
3996 * system.h: Do not include gmp.h for building host tools.
3998 2013-01-15 Richard Biener <rguenther@suse.de>
4001 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
4002 account for bitpos when computing alignment.
4004 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
4006 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
4007 (ix86_target_macros_internal): Likewise.
4009 * config/i386/i386.c (m_CORE2I7): Removed.
4010 (m_CORE_HASWELL): New macro.
4011 (m_CORE_ALL): Likewise.
4012 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
4013 (initial_ix86_arch_features): Likewise.
4014 (processor_target_table): Initializations for Core avx2.
4015 (cpu_names): New names "core-avx2".
4016 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
4017 PROCESSOR_CORE_HASWELL.
4018 (ix86_issue_rate): New case.
4019 (ia32_multipass_dfa_lookahead): Likewise.
4020 (ix86_sched_init_global): Likewise.
4022 * config/i386/i386.h (TARGET_HASWELL): New macro.
4023 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
4024 (processor_type): New PROCESSOR_HASWELL.
4026 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4028 PR tree-optimization/55955
4029 * tree-vect-loop.c (vectorizable_reduction): Give up early on
4030 *SHIFT_EXPR and *ROTATE_EXPR codes.
4032 PR tree-optimization/48766
4033 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
4034 -ftrapv disable -fwrapv.
4036 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4039 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
4040 etc. to 1 and not to __flash.
4041 Use LL suffix for __INT24_MAX__ with -mint8.
4042 Use ULL suffix for __UINT24_MAX__ with -mint8.
4044 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4046 * config/avr/avr-arch.h
4047 (struct base_arch_s): Use typedef avr_arch_t instead.
4048 (struct arch_info_s): Use typedef avr_arch_info_t instead.
4049 (struct mcu_type_s): Use typedef avr_mcu_t instead.
4050 * config/avr/avr.c: Same.
4051 * config/avr/avr-devices.c: Same.
4052 * config/avr/driver-avr.c: Same.
4053 * config/avr/gen-avr-mmcu-texi.c: Same.
4054 * config/avr/avr-mcus.def: Adjust comment.
4056 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
4058 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
4059 * config/aarch64/iterators.md (VALLDI): New.
4061 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
4062 Andi Kleen <ak@linux.intel.com>
4065 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
4066 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
4069 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4071 * config/avr/avr-stdint.h: Remove trailing blanks.
4072 * config/avr/avr-log.h: Same.
4073 * config/avr/avr-arch.h: Same.
4074 * config/avr/avr-devices.c: Same.
4075 * config/avr/avr-dimode.md: Same.
4076 * config/avr/predicates.md: Same.
4077 * config/avr/avr-c.c: Same. And fix typo.
4079 * config/avr/avr-protos.h: Same. And:
4080 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
4081 (init_cumulative_args): Rename to avr_init_cumulative_args.
4082 (expand_prologue): Rename to avr_expand_prologue.
4083 (expand_epilogue): Rename to avr_expand_epilogue.
4084 (adjust_insn_length): Rename to avr_adjust_insn_length.
4085 (notice_update_cc): Rename to avr_notice_update_cc.
4086 (final_prescan_insn): Rename to avr_final_prescan_insn.
4087 * config/avr/avr.c: Same.
4088 * config/avr/avr.h: Same.
4089 * config/avr/avr.md: Remove trailing blanks.
4090 (prologue): Use avr_expand_prologue.
4091 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
4093 2013-01-14 Richard Biener <rguenther@suse.de>
4095 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
4096 verify_location, collect_subblocks): New functions.
4097 (verify_gimple_in_cfg): Verify that locations only reference
4098 BLOCKs in the functions BLOCK tree.
4100 2013-01-14 Richard Biener <rguenther@suse.de>
4102 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
4104 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
4106 (insert_out_of_ssa_copy_on_edge): Likewise.
4107 (rewrite_close_phi_out_of_ssa): Likewise.
4108 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
4110 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
4111 propagated constants.
4112 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
4115 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4117 * config/avr/avr-modes.def: Add GPL copyright notice.
4119 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
4121 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
4122 MEMMODEL_MASK to determine memory model.
4123 (atomic_store<mode>): Ditto from operands[2].
4124 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
4126 2013-01-13 Jakub Jelinek <jakub@redhat.com>
4129 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
4130 (fold_gimple_assign): Don't call unshare_expr here.
4131 (fold_ctor_reference): Call unshare_expr.
4133 2013-01-13 Terry Guo <terry.guo@arm.com>
4135 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
4136 * doc/fragments.texi: Document MULTILIB_REUSE.
4137 * gcc.c (multilib_reuse): New internal spec.
4138 (set_multilib_dir): Also search multilib from multilib_reuse.
4139 * genmultilib (tmpmultilib3): Refactor code.
4140 (tmpmultilib4): Ditto.
4141 (multilib_reuse): New multilib argument.
4143 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
4145 * Makefile.in: Update copyright.
4147 2013-01-12 Tom de Vries <tom@codesourcery.com>
4150 * calls.c (expand_call): Check if arg_nr is valid.
4152 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4154 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
4155 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
4156 documentation. Add missing '__' in front of
4157 __builtin_ia32_packssdw256.
4159 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4162 * config/s390/s390.c (s390_preferred_reload_class): Do not return
4163 NO_REGS for larl operands.
4164 (s390_reload_larl_operand): Use s390_load_address instead of
4167 2013-01-11 Richard Biener <rguenther@suse.de>
4169 * tree-cfg.c (verify_node_sharing_1): Split out from ...
4170 (verify_node_sharing): ... here.
4171 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
4173 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
4175 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
4176 Substitute TREECHECKING.
4177 * configure: Regenerate.
4178 * Makefile.in (TREECHECKING): New.
4180 2013-01-11 Richard Guenther <rguenther@suse.de>
4182 PR tree-optimization/44061
4183 * tree-vrp.c (extract_range_basic): Compute zero as
4184 value-range for __builtin_constant_p of function parameters.
4186 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
4188 Update copyright years.
4190 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
4192 PR rtl-optimization/55672
4193 * lra-eliminations.c (mark_not_eliminable): Permit addition with
4194 const to be eliminable.
4196 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
4198 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
4199 * configure: Regenerate.
4201 2013-01-10 Richard Biener <rguenther@suse.de>
4203 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
4205 2013-01-10 Richard Biener <rguenther@suse.de>
4208 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
4209 locations for virtual PHI arguments.
4210 (rewrite_update_phi_arguments): Likewise.
4212 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
4214 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
4217 2013-01-10 Jakub Jelinek <jakub@redhat.com>
4219 PR tree-optimization/55921
4220 * tree-complex.c (expand_complex_asm): New function.
4221 (expand_complex_operations_1): Call it for GIMPLE_ASM.
4223 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4226 * config/s390/s390.c (s390_symref_operand_p)
4227 (s390_loadrelative_operand_p): Merge the two functions.
4228 (s390_check_qrst_address, print_operand_address): Add parameters
4229 to s390_loadrelative_operand_p invokation.
4230 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
4231 (s390_reload_larl_operand, s390_secondary_reload): Use
4232 s390_loadrelative_operand_p instead of s390_symref_operand_p.
4233 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
4235 2013-01-09 Mike Stump <mikestump@comcast.net>
4237 * dse.c (record_store): Remove unnecessary assert.
4239 2013-01-09 Jan Hubicka <jh@suse.cz>
4241 PR tree-optimization/55569
4242 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
4243 * cfgloop.h (scale_loop_profile): Likewise.
4245 2013-01-09 Jan Hubicka <jh@suse.cz>
4248 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
4250 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
4252 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
4255 * expr.h (maybe_emit_group_store): Declare.
4256 * expr.c (maybe_emit_group_store): New function.
4257 * builtins.c (expand_builtin_int_roundingfn): Call it.
4258 (expand_builtin_int_roundingfn_2): Likewise.
4260 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
4262 PR rtl-optimization/55829
4263 * lra-constraints.c (match_reload): Add code for absent output.
4264 (curr_insn_transform): Add code for reloads of matched inputs
4267 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
4269 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
4270 attribute of movddup insn to DF.
4271 (*vec_interleave_lowv2df): Ditto.
4272 (vec_dupv2df): Ditto.
4274 2013-01-09 Jan Hubicka <jh@suse.cz>
4276 PR tree-optimiation/55875
4277 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
4278 EVERY_ITERATION parameter.
4279 (number_of_iterations_exit): Check if exit is executed every iteration.
4280 (idx_infer_loop_bounds): Similarly here.
4281 (n_of_executions_at_most): Simplify
4282 to only test for cases where statement is dominated by the
4283 particular bound; handle correctly the "postdominance" test.
4284 (scev_probably_wraps_p): Use max loop iterations info
4285 as a global bound first.
4287 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
4288 Nick Clifton <nickc@redhat.com>
4290 * config/v850/v850.md (cbranchsf4): New pattern.
4291 (cstoresf4): New pattern.
4292 (cbranchdf4): New pattern.
4293 (cstoredf4): New pattern.
4294 (movsicc): Disallow floating point comparisons.
4295 (cmpsf_le_insn): Fix order of operators.
4296 (cmpsf_lt_insn): Likewise.
4297 (cmpsf_eq_insn): Likewise.
4298 (cmpdf_le_insn): Likewise.
4299 (cmpdf_lt_insn): Likewise.
4300 (cmpdf_eq_insn): Likewise.
4301 (cmpsf_ge_insn): Use LE comparison.
4302 (cmpdf_ge_insn): Likewise.
4303 (cmpsf_gt_insn): Use LT comparison.
4304 (cmpdf_gt_insn): Likewise.
4305 (cmpsf_ne_insn): Delete pattern.
4306 (cmpdf_ne_insn): Delete pattern.
4307 * config/v850/v850.c (v850_gen_float_compare): Use
4308 gen_cmpdf_eq_insn for NE comparison.
4309 (v850_float_z_comparison_operator)
4310 (v850_float_nz_comparison_operator): Move from here ...
4311 * config/v850/predicates.md: ... to here. Move GT and GE
4312 comparisons into v850_float_z_comparison_operator.
4313 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
4315 (v850_float_nz_comparison_operator): Likewise.
4317 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4319 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
4320 with calls to gen_insvsi/gen_insvdi.
4322 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4324 * config/i386/i386.c (initial_ix86_tune_features): Set up
4325 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
4327 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
4328 Jakub Jelinek <jakub@redhat.com>
4330 PR tree-optimization/48189
4331 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
4332 If nitercst is 0, don't predict the exit edge.
4334 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4336 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
4337 in asm_fprintf with reg_names.
4338 (aarch64_print_operand_address): Likewise.
4339 (aarch64_return_addr): Likewise.
4340 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
4342 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4344 * config/pa/pa.h (VAL_U6_BITS_P): Define.
4345 (INT_U6_BITS): Likewise.
4346 * config/pa/predicates.md (uint6_operand): New predicate.
4347 (shift5_operand, shift6_operand): Likewise.
4348 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
4350 (lshrdi3): Use shift6_operand.
4351 (shrpsi4, shrpdi4): New insn patterns.
4352 (extzv): Delete expander.
4353 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
4354 predicates in unamed zero extract patterns. Tighten common constraint.
4355 (extv): Delete expander.
4356 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
4357 predicates in unamed sign extract patterns. Tighten common constraint.
4358 (insv): Delete expander.
4359 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
4360 predicates in unamed insert patterns. Tighten common constraint.
4361 Change uint32_operand predicate to uint6_operand predicate in unamed
4362 DImode pattern to insert constant values of type 1...1xxxx.
4364 2013-01-04 Jan Hubicka <jh@suse.cz>
4366 PR tree-optimization/55823
4367 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
4370 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4371 Uros Bizjak <ubizjak@gmail.com>
4373 PR rtl-optimization/55845
4374 * df-problems.c (can_move_insns_across): Stop scanning at
4375 volatile_insn_p source instruction or give up if
4376 across_from .. across_to range contains any volatile_insn_p
4379 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
4381 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
4382 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
4384 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
4385 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4387 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4390 * asan.c (asan_clear_shadow): New function.
4391 (asan_emit_stack_protection): Use it.
4393 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
4395 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
4396 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
4397 with tab instead of space.
4399 2013-01-08 Nick Clifton <nickc@redhat.com>
4401 * config/rl78/rl78.c (rl78_expand_prologue): Always select
4402 register bank 0 at the start of an interrupt handler.
4403 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
4406 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
4408 * config/aarch64/aarch64-simd.md
4409 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
4410 (aarch64_simd_bsl): Likewise.
4411 (aarch64_vcond_internal<mode>): Likewise.
4412 (vcond<mode><mode>): Likewise.
4413 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
4414 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
4416 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
4418 * config/aarch64/aarch64-builtins.c
4419 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
4421 2013-01-08 Martin Jambor <mjambor@suse.cz>
4424 * tree-sra.c (analyze_access_subtree): Return true also after
4425 potentially creating a debug-only replacement.
4427 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4430 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
4432 PR tree-optimization/54120
4433 * tree-vrp.c (range_fits_type_p): Don't allow
4434 src_precision < precision from signed vr to unsigned_p
4435 if vr->min or vr->max is negative.
4436 (simplify_float_conversion_using_ranges): Test can_float_p
4437 against CODE_FOR_nothing.
4439 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4440 Richard Biener <rguenther@suse.de>
4443 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
4444 types instead of just INTEGER_TYPE types.
4446 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
4448 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
4451 2013-01-07 Steve Ellcey <sellcey@mips.com>
4454 * config/mips/mips.opt: Change mad to mmad to match documentation.
4456 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4459 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
4462 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4465 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
4466 (avr_addrspace_t): Add .section_name field.
4467 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
4469 (avr_addrspace): Same. Initialize .section_name. Remove last
4470 NULL entry. Put __memx into .progmemx.data.
4471 (progmem_section_prefix): Remove.
4472 (avr_asm_init_sections): No need to initialize progmem_section.
4473 (avr_asm_named_section): Use avr_addrspace[].section_name to get
4474 section name prefix.
4475 (avr_asm_select_section): Ditto. And use get_unnamed_section to
4476 retrieve the progmem section.
4477 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
4478 boundary to run over avr_addrspace[].
4479 (avr_register_target_pragmas): Ditto.
4481 2013-01-06 Jakub Jelinek <jakub@redhat.com>
4483 * varasm.c (output_constant_def_contents): For asan_protect_global
4484 protected strings, adjust DECL_ALIGN if needed, before testing for
4486 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
4487 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
4489 (output_object_block): For asan protected decls, emit asan padding
4490 after their contents.
4491 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
4492 (asan_finish_file): Test it here instead.
4494 2013-01-07 Nick Clifton <nickc@redhat.com>
4495 Matthias Klose <doko@debian.org>
4496 Doug Kwan <dougkwan@google.com>
4497 H.J. Lu <hongjiu.lu@intel.com>
4500 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
4502 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
4504 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
4506 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
4508 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
4510 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4513 * doc/install.texi (Cross-Compiler-Specific Options): Document
4516 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
4518 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
4519 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
4520 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
4521 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
4522 vqmovun_high_s64): Fix source operand number and update copyright.
4524 2013-01-07 Richard Biener <rguenther@suse.de>
4527 * gimple.h (gimple_call_builtin_p): New overload.
4528 * gimple.c (validate_call): New function.
4529 (gimple_call_builtin_p): Likewise.
4530 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4531 Use gimple_call_builtin_p.
4532 (find_func_clobbers): Likewise.
4533 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
4534 (strlen_optimize_stmt): Likewise.
4536 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
4538 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
4539 (vld1q_dup_*): Likewise.
4541 (vld1q_*): Likewise.
4542 (vld1_lane_*): Likewise.
4543 (vld1q_lane_*): Likewise.
4545 2013-01-07 Richard Biener <rguenther@suse.de>
4547 * lto-streamer.h (LTO_minor_version): Bump to 2.
4549 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
4551 * config/aarch64/aarch64-protos.h
4552 (aarch64_const_double_zero_rtx_p): Rename to...
4553 (aarch64_float_const_zero_rtx_p): ...this.
4554 (aarch64_float_const_representable_p): New.
4555 (aarch64_output_simd_mov_immediate): Likewise.
4556 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
4557 move immediate case.
4558 * config/aarch64/aarch64.c
4559 (aarch64_const_double_zero_rtx_p): Rename to...
4560 (aarch64_float_const_zero_rtx_p): ...this.
4561 (aarch64_print_operand): Allow printing of new constants.
4562 (aarch64_valid_floating_const): New.
4563 (aarch64_legitimate_constant_p): Check for valid floating-point
4565 (aarch64_simd_valid_immediate): Likewise.
4566 (aarch64_vect_float_const_representable_p): New.
4567 (aarch64_float_const_representable_p): Likewise.
4568 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
4569 (aarch64_output_simd_mov_immediate): New.
4570 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
4571 (*movdf_aarch64): Likewise.
4572 * config/aarch64/constraints.md (Ufc): New.
4573 (Y): call aarch64_float_const_zero_rtx.
4574 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
4576 2013-01-07 Richard Biener <rguenther@suse.de>
4578 PR tree-optimization/55888
4579 PR tree-optimization/55862
4580 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
4581 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
4582 not if it is contained therein.
4584 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4586 * config/avr/t-avr: Typo.
4588 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4591 * config/avr/t-avr: Don't automatically rebuild
4592 $(srcdir)/config/avr/t-multilib
4593 $(srcdir)/config/avr/avr-tables.opt
4594 $(srcdir)/doc/avr-mmcu.texi
4595 (avr-mcus): New phony target to build them on request.
4596 (s-avr-mlib, s-avr-mmcu-texi): Remove.
4597 * avr/avr-mcus.def: Adjust comments.
4599 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
4601 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
4603 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
4605 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
4607 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
4609 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
4611 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
4613 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
4614 to generate profiling.
4615 * config/rs6000/aix64.h (LIB_SPEC): Same.
4617 2013-01-04 Andrew Pinski <apinski@cavium.com>
4619 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
4621 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
4623 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
4625 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
4627 (ix86_expand_move): Ditto.
4628 (ix86_zero_extend_to_Pmode): Ditto.
4629 (ix86_expand_call): Ditto.
4630 (ix86_expand_special_args_builtin): Ditto.
4631 (ix86_expand_builtin): Ditto.
4633 2013-01-04 Richard Biener <rguenther@suse.de>
4635 PR tree-optimization/55862
4636 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
4637 translating them through PHI nodes.
4639 2013-01-04 Martin Jambor <mjambor@suse.cz>
4641 PR tree-optimization/55755
4642 * tree-sra.c (sra_modify_assign): Do not check that an access has no
4643 children when trying to avoid producing a VIEW_CONVERT_EXPR.
4645 2013-01-04 Marek Polacek <polacek@redhat.com>
4648 * opts.c (default_options_optimization): Clarify error message.
4650 2013-01-04 Richard Biener <rguenther@suse.de>
4653 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
4656 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4659 * config/pa/pa.md (movsi): Revert previous change.
4660 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
4663 2013-01-03 Richard Henderson <rth@redhat.com>
4665 * config/i386/i386.c (ix86_expand_move): Always assign to op1
4666 after eliminating TLS symbols.
4668 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
4671 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
4672 * graphite-poly.c (debug_gmp_value): Likewise.
4674 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
4677 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
4678 selected code model, define __code_mode_small__, __code_model_medium__,
4679 __code_model_large__, __code_model_32__ or __code_model_kernel__.
4680 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
4681 xchg temporary register with %k. Declare temporary register as
4683 [__x86_64__]: For medium and large code models, preserve %rbx register.
4685 2013-01-03 Richard Biener <rguenther@suse.de>
4687 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
4688 (dump_subscript): Adjust.
4689 (finalize_ddr_dependent): Do not dump redundant info.
4690 (analyze_siv_subscript): Adjust.
4691 (subscript_dependence_tester): Likewise.
4692 (compute_affine_dependence): Likewise.
4694 2013-01-03 Richard Biener <rguenther@suse.de>
4697 2013-01-03 Richard Biener <rguenther@suse.de>
4699 PR tree-optimization/55857
4700 * tree-vect-stmts.c (vectorizable_load): Do not setup
4701 re-alignment for invariant loads.
4703 2013-01-02 Richard Biener <rguenther@suse.de>
4705 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
4706 invariant load do not generate a vector load from the scalar location.
4708 2013-01-03 Richard Biener <rguenther@suse.de>
4710 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
4711 for not vectorizing.
4712 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
4713 not build INDIRECT_REFs, call get_name once only.
4714 (vect_create_data_ref_ptr): Likewise. Dump base object kind
4715 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
4717 2013-01-03 Richard Biener <rguenther@suse.de>
4719 PR tree-optimization/55857
4720 * tree-vect-stmts.c (vectorizable_load): Do not setup
4721 re-alignment for invariant loads.
4723 2013-01-03 Richard Biener <rguenther@suse.de>
4726 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
4727 prefer a built-in decl.
4729 2013-01-03 Jakub Jelinek <jakub@redhat.com>
4731 * gcc.c (process_command): Update copyright notice dates.
4732 * gcov.c (print_version): Likewise.
4733 * gcov-dump.c (print_version): Likewise.
4735 PR rtl-optimization/55838
4736 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
4737 iv0.step, iv1.step and step.
4739 2013-01-03 Jakub Jelinek <jakub@redhat.com>
4740 Marc Glisse <marc.glisse@inria.fr>
4742 PR tree-optimization/55832
4743 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
4744 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
4745 integer_{one,zero}_node.
4747 2013-01-03 Jakub Jelinek <jakub@redhat.com>
4750 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
4751 * var-tracking.c (reverse_op): Don't add reverse ops to
4752 VALUEs that have already
4753 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
4755 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
4757 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
4759 2013-01-02 Teresa Johnson <tejohnson@google.com>
4761 * dumpfile.c (dump_loc): Print filename with location.
4762 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
4763 new location_t parameter to emit complete unroll message with
4765 (canonicalize_loop_induction_variables): Compute loops location
4766 and pass to try_unroll_loop_completely.
4767 * loop-unroll.c (report_unroll_peel): New function.
4768 (peel_loops_completely): Use new dump format with location
4769 for main dumpfile message, and invoke report_unroll_peel on success.
4770 (decide_unrolling_and_peeling): Ditto.
4771 (decide_peel_once_rolling): Remove old dumpfile message subsumed
4772 by report_unroll_peel.
4773 (decide_peel_completely): Ditto.
4774 (decide_unroll_constant_iterations): Ditto.
4775 (decide_unroll_runtime_iterations): Ditto.
4776 (decide_peel_simple): Ditto.
4777 (decide_unroll_stupid): Ditto.
4778 * cfgloop.c (get_loop_location): New function.
4779 * cfgloop.h (get_loop_location): Declare.
4781 2013-01-02 Sriraman Tallam <tmsriram@google.com>
4783 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
4786 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4789 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
4790 BLKmode objects when EXPAND_MEMORY is specified.
4792 2013-01-02 Sriraman Tallam <tmsriram@google.com>
4794 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
4796 (fold_builtin_cpu): Do not share cpu model decls across statements.
4798 2013-01-02 Jason Merrill <jason@redhat.com>
4801 * tree.c (build_array_type_1): Revert earlier change.
4803 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
4805 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
4807 * config/aarch64/aarch64-tune.md: Re-generate.
4809 2013-01-02 Richard Biener <rguenther@suse.de>
4811 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
4812 invariant load do not generate a vector load from the scalar location.
4814 2013-01-02 Richard Biener <rguenther@suse.de>
4817 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
4818 * configure: Regenerate.
4820 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4822 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
4823 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
4824 (expand_builtin_int_roundingfn_2): Keep the original target around
4825 for the fallback case.
4827 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4829 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
4830 to be clear for sign changes.
4832 2013-01-01 Jan Hubicka <jh@suse.cz>
4834 * ipa-inline-analysis.c: Fix formatting.
4836 2013-01-01 Jakub Jelinek <jakub@redhat.com>
4838 PR tree-optimization/55831
4839 * tree-vect-loop.c (get_initial_def_for_induction): Use
4840 gsi_after_labels instead of gsi_start_bb.
4842 Copyright (C) 2013 Free Software Foundation, Inc.
4844 Copying and distribution of this file, with or without modification,
4845 are permitted in any medium without royalty provided the copyright
4846 notice and this notice are preserved.