1 2013-10-16 Release Manager
5 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
7 Backport from mainline.
8 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
10 * config/aarch64/arm_neon.h
11 (vtbx<1,3>_<psu>8): Fix register constriants.
13 2013-10-10 Jakub Jelinek <jakub@redhat.com>
16 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
17 if any labels are in FALLTHRU_BB, use a special label emitted
18 immediately after the asm goto insn rather than label_rtx
20 (expand_asm_stmt): Adjust caller.
21 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
22 edge if the last insn in predecessor is a jump with single successor,
23 but it isn't simplejump_p.
25 2013-10-09 Jakub Jelinek <jakub@redhat.com>
27 Backport from mainline
28 2013-09-26 Richard Biener <rguenther@suse.de>
30 PR tree-optimization/58539
31 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
32 the fact that debug statements are not taking part in loop-closed
35 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
38 loop to work also for 31bit ABI.
39 Save the stack pointer for frame_size > 0.
41 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
44 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
45 constraint letters from expanders.
46 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
47 retry count to general_operand.
48 ("tabort"): Give operand 0 a mode.
49 ("tabort_1"): Add mode and constraint letter for operand 0.
50 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
52 2013-10-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
54 Backport from mainline.
57 * config/aarch64/aarch64.md (*add_<shift>_<mode>)
58 (*add_<shift>_si_uxtw,*add_mul_imm_<mode>)
60 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
63 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
65 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
67 2013-10-01 Jakub Jelinek <jakub@redhat.com>
68 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
71 * config/s390/s390.c (s390_chunkify_start): Handle tablejump_p first,
72 continue when done, for other jumps look through PARALLEL
75 2013-09-30 Jakub Jelinek <jakub@redhat.com>
78 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
79 optimization, punt if sign_bit_p looked through any zero extension.
81 2013-09-27 Paulo Matos <pmatos@broadcom.com>
83 Backport from mainline.
86 2013-03-27 Richard Biener <rguenther@suse.de>
88 PR tree-optimization/56716
89 * tree-ssa-structalias.c (perform_var_substitution): Adjust
90 dumping for ref nodes.
92 2013-09-27 Paulo Matos <pmatos@broadcom.com>
94 Backport from mainline.
96 2013-09-27 Paulo Matos <pmatos@broadcom.com>
98 * gcc.dg/pr58463.c: New test.
100 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
102 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
103 assignment statements.
105 2013-09-23 Alan Modra <amodra@gmail.com>
108 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
110 2013-09-23 Alan Modra <amodra@gmail.com>
112 * config/rs6000/predicates.md (add_cint_operand): New.
113 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
114 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
115 using add_cint_operand.
116 (largetoc_high_plus_aix): Likewise.
117 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
119 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
122 * config/pa/pa.c (pa_option_override): Disable auto increment and
123 decrement instructions until reload is completed.
125 * config/pa/pa.md: In "scc" insn patterns, change output template to
126 handle const0_rtx in reg_or_0_operand operands.
128 2013-09-19 Jakub Jelinek <jakub@redhat.com>
130 * omp-low.c (expand_omp_sections): Always pass len - 1 to
131 GOMP_sections_start, even if !exit_reachable.
133 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
135 * arm.c (arm_expand_prologue): Validate architecture supports
136 LDRD/STRD before accepting tuning preferences.
137 (arm_expand_epilogue): Likewise.
139 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
140 Paolo Carlini <paolo.carlini@oracle.com>
143 * doc/implement-cxx.texi: Fix references to the C++ standards.
145 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
147 PR tree-optimization/58088
148 * fold-const.c (mask_with_trailing_zeros): New function.
149 (fold_binary_loc): Make sure we don't recurse infinitely
150 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
151 Use mask_with_trailing_zeros where appropriate.
153 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
156 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
159 2013-09-13 Christian Bruel <christian.bruel@st.com>
162 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
164 2013-09-11 Andi Kleen <ak@linux.intel.com>
166 Backport from mainline
167 * doc/extend.texi: Use __atomic_store_n instead of
168 __atomic_store in HLE example.
170 2013-09-11 Andi Kleen <ak@linux.intel.com>
172 Backport from mainline
173 * doc/extend.texi: Dont use __atomic_clear in HLE
176 2013-09-11 Andi Kleen <ak@linux.intel.com>
178 Backport from mainline
179 * doc/extend.texi: Document that __atomic_clear and
180 __atomic_test_and_set should only be used with bool.
182 2013-09-11 Richard Biener <rguenther@suse.de>
185 * passes.c (init_optimization_passes): Split critical edges
186 before late uninit warning pass in the -Og pipeline.
188 2013-09-11 Jakub Jelinek <jakub@redhat.com>
190 PR tree-optimization/58385
191 * fold-const.c (build_range_check): If both low and high are NULL,
192 use omit_one_operand_loc to preserve exp side-effects.
194 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
197 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
198 support conditional execution.
199 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
201 2013-09-10 Jakub Jelinek <jakub@redhat.com>
203 PR rtl-optimization/58365
204 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
205 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
208 2013-09-09 Jakub Jelinek <jakub@redhat.com>
210 PR tree-optimization/58364
211 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
212 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
213 the current range can't be an unconditional true or false.
215 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
218 Backport from mainline
219 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
221 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
222 Use gen_int_mode rather than GEN_INT.
224 2013-09-09 Richard Biener <rguenther@suse.de>
226 Backport from mainline
227 2013-08-27 Richard Biener <rguenther@suse.de>
229 PR tree-optimization/57521
230 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
231 one edge is non-critical.
232 (find_phi_replacement_condition): Make sure to use a non-critical
233 edge. Cleanup and remove old bug workarounds.
234 (bb_postdominates_preds): Remove.
235 (if_convertible_loop_p_1): Do not compute post-dominators.
236 (combine_blocks): Do not free post-dominators.
237 (main_tree_if_conversion): Likewise.
239 2013-09-09 Richard Biener <rguenther@suse.de>
241 Backport from mainline
242 2013-09-03 Richard Biener <rguenther@suse.de>
245 * fold-const.c (negate_expr_p): Fix division case.
246 (negate_expr): Likewise.
248 2013-09-09 Richard Biener <rguenther@suse.de>
250 Backport from mainline
251 2013-08-29 Richard Biener <rguenther@suse.de>
253 PR tree-optimization/57685
254 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
255 single-use operands to avoid exponential complexity.
257 2013-09-09 Richard Biener <rguenther@suse.de>
259 Backport from mainline
260 2013-08-30 Richard Biener <rguenther@suse.de>
262 PR tree-optimization/58223
263 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
264 (has_anti_or_output_dependence): ... this and adjust to also
265 look for output dependences.
266 (mark_nodes_having_upstream_mem_writes): Adjust.
267 (rdg_flag_uses): Likewise.
269 2013-09-03 Richard Biener <rguenther@suse.de>
271 Backport from mainline
272 2013-08-29 Richard Biener <rguenther@suse.de>
274 PR tree-optimization/58246
275 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
276 handle the dominance check inside a basic-block.
278 2013-09-03 Richard Biener <rguenther@suse.de>
280 Backport from mainline
281 2013-08-30 Richard Biener <rguenther@suse.de>
283 PR tree-optimization/58228
284 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
285 allow invariant loads in nested loop vectorization.
287 2013-09-03 Richard Biener <rguenther@suse.de>
289 Backport from mainline
290 2013-08-30 Richard Biener <rguenther@suse.de>
292 PR tree-optimization/58010
293 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
294 assert that we have a loop-closed PHI.
296 2013-09-01 Uros Bizjak <ubizjak@gmail.com>
298 Backport from mainline
299 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
301 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
302 "cmp" RTX before signed_comparison_operator check to account
305 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
307 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
309 2013-08-30 Jakub Jelinek <jakub@redhat.com>
311 PR tree-optimization/58277
312 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
313 after seeing too many stmts with vdef in between dombb and current
314 bb, invalidate everything.
316 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
318 Backport from mainline
319 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
322 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
324 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
325 rtx (*) (rtx, ...) with insn_gen_fn.
326 * genoutput.c (output_insn_data): Cast gen_? function pointers to
327 insn_gen_fn::stored_funcptr. Add initializer braces.
329 Backport from mainline
330 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
333 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
334 (rs6000_emit_swdiv_high_precision, rs6000_emit_swdiv_low_precision,
335 rs6000_emit_swrsqrt): Don't cast result of GEN_FCN to gen_2arg_fn_t.
337 2013-08-29 Jakub Jelinek <jakub@redhat.com>
339 Backported from mainline
340 2013-05-27 Richard Biener <rguenther@suse.de>
343 PR tree-optimization/57417
344 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
346 (set_ssa_val_to): Compare addresses using
347 get_addr_base_and_unit_offset.
349 PR tree-optimization/57396
350 * tree-affine.c (double_int_constant_multiple_p): Properly
351 return false for val == 0 and div != 0.
353 PR tree-optimization/57343
354 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
355 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
356 (number_of_iterations_cond): Do not build the folded tree.
358 2013-08-28 Jakub Jelinek <jakub@redhat.com>
361 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
363 2013-08-28 Richard Biener <rguenther@suse.de>
365 Backport from mainline
366 2013-06-24 Richard Biener <rguenther@suse.de>
369 * passes.c (init_optimization_passes): Move pass_fold_builtins
370 and pass_dce earlier with -Og.
372 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
374 Backport from mainline
375 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
377 * config/i386/driver-i386.c (host_detect_local_cpu): Update
378 Haswell processor detection.
380 Backport from mainline
381 2013-08-27 Christian Widmer <shadow@umbrox.de>
384 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
385 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
386 AVX2 capable processors.
388 2013-08-23 Jakub Jelinek <jakub@redhat.com>
391 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
392 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
394 PR tree-optimization/58209
395 * tree-tailcall.c (find_tail_calls): Give up for pointer result types
396 if m or a is non-NULL.
398 2013-08-21 Richard Earnshaw <rearnsha@arm.com>
401 * arm.c (aapcs_vfp_allocate): Decompose the argument if the
402 suggested mode for the assignment isn't compatible with the
405 2013-08-20 Alan Modra <amodra@gmail.com>
408 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
409 (rs6000_emit_epilogue): Likewise.
411 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
412 Jakub Jelinek <jakub@redhat.com>
414 Backport from mainline
415 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
416 destination and source operands.
418 2013-08-18 Jakub Jelinek <jakub@redhat.com>
420 PR tree-optimization/58006
421 * tree-parloops.c (take_address_of): Don't ICE if get_name
423 (eliminate_local_variables_stmt): Remove clobber stmts.
425 2013-08-16 Jakub Jelinek <jakub@redhat.com>
427 PR tree-optimization/58164
428 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
429 walk gimple_goto_dest of GIMPLE_GOTO.
431 PR tree-optimization/58165
432 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
433 bi_call must be the last stmt in a bb, don't split_block, instead
434 use fallthru edge from it and give up if there is none.
435 Release conds vector when returning early.
437 2013-08-15 David Given <dg@cowlark.com>
439 Backport from mainline
440 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
442 * lra-constraints.c (process_alt_operands): Use #if HAVE_ATTR_enable
445 2013-08-14 Jakub Jelinek <jakub@redhat.com>
447 PR tree-optimization/58145
448 * tree-sra.c (build_ref_for_offset): If prev_base has
449 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
451 2013-08-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
453 * config/s390/htmxlintrin.h: Add file missing from last commit.
454 * config/s390/htmintrin.h: Likewise.
455 * config/s390/s390intrin.h: Likewise.
457 2013-08-14 Uros Bizjak <ubizjak@gmail.com>
459 Backport from mainline
460 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
462 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
463 when Pmode != word_mode. Add length_address attribute.
464 (sse3_monitor_<mode>): Merge from sse3_monitor and
465 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
466 Pmode != word_mode. Update insn length attribute.
467 * config/i386/i386.c (ix86_option_override_internal): Update
468 ix86_gen_monitor selection for merged sse3_monitor insn.
470 2013-08-14 Jakub Jelinek <jakub@redhat.com>
471 Alexandre Oliva <aoliva@redhat.com>
474 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
475 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
476 there also UNSPEC_PLTOFF.
478 2013-08-13 Jakub Jelinek <jakub@redhat.com>
481 * asan.c (instrument_strlen_call): Fix typo in comment.
482 Use char * type even for the lhs of POINTER_PLUS_EXPR.
484 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
486 Backport from mainline
487 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
489 PR rtl-optimization/57459
490 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
491 type when setting live regs.
493 2013-08-13 Marek Polacek <polacek@redhat.com>
494 Jakub Jelinek <jakub@redhat.com>
496 PR tree-optimization/57980
497 * tree-tailcall.c (process_assignment): Return false
498 when not dealing with integers or floats.
500 2013-08-12 Andrew Haley <aph@redhat.com>
502 Backport from mainline:
503 * 2013-07-11 Andreas Schwab <schwab@suse.de>
505 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
507 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
509 Backport from mainline
510 2013-08-12 Perez Read <netfirewall@gmail.com>
513 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
514 operand 0 for intel asm alternative.
515 (*movabs<mode>_2): Ditto for operand 1.
517 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
519 Backport from mainline:
520 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
522 * config/arm/neon.md (vcond): Fix floating-point vector
523 comparisons against 0.
525 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
527 Backport from mainline:
528 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
530 * config/arm/neon.md (movmisalign<mode>): Disable when we
531 don't allow unaligned accesses.
532 (*movmisalign<mode>_neon_store): Likewise.
533 (*movmisalign<mode>_neon_load): Likewise.
534 (*movmisalign<mode>_neon_store): Likewise.
535 (*movmisalign<mode>_neon_load): Likewise.
537 2013-08-06 Martin Jambor <mjambor@suse.cz>
540 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
541 MEM_REF has proper alignment information.
543 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
545 PR rtl-optimization/57708
546 * recog.c (peep2_find_free_register): Validate all regs in a
549 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
551 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
552 the implied StoreLoad barrier for atomic operations if before.
554 2013-08-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
556 Backports from mainline:
557 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
559 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
560 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
561 (struct machine_function): Add tbegin_p.
562 (s390_canonicalize_comparison): Fold CC mode compares to
563 conditional jump if possible.
564 (s390_emit_jump): Return the emitted jump.
565 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
566 Handle CCRAWmode compares.
567 (s390_option_override): Default to -mhtm if available.
568 (s390_reg_clobbered_rtx): Handle floating point regs as well.
569 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
570 FPRs instead of df_regs_ever_live_p.
571 (s390_optimize_nonescaping_tx): New function.
572 (s390_init_frame_layout): Extend clobbered_regs array to cover
574 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
575 (s390_expand_tbegin): New function.
576 (enum s390_builtin): New enum definition.
577 (code_for_builtin): New array definition.
578 (s390_init_builtins): New function.
579 (s390_expand_builtin): New function.
580 (TARGET_INIT_BUILTINS): Define.
581 (TARGET_EXPAND_BUILTIN): Define.
582 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
583 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
584 (s390_alc_comparison): Likewise.
585 * config/s390/s390-modes.def: Add CCRAWmode.
586 * config/s390/s390.h (processor_flags): Add PF_TX.
587 (TARGET_CPU_HTM): Define macro.
588 (TARGET_HTM): Define macro.
589 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
590 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
591 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
592 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
593 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
595 (TBEGIN_MASK, TBEGINC_MASK): New constants.
596 ("*cc_to_int"): Move up.
597 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
598 constants other than 0.
599 ("*ccraw_to_int"): New insn and splitter definition.
600 ("tbegin", "tbegin_nofloat", "tbegin_retry")
601 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
602 ("tx_assist"): New expander.
603 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
604 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
605 * config/s390/s390.opt: Add -mhtm option.
606 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
607 * config/s390/htmxlintrin.h: New file.
608 * config/s390/htmintrin.h: New file.
609 * config/s390/s390intrin.h: New file.
610 * doc/extend.texi: Document htm builtins.
611 * config.gcc: Add the new header files to extra_headers.
613 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
615 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
616 enabled without -march=zEC12.
617 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
620 2013-08-01 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
622 Backport from mainline
623 2013-05-13 Ganesh Gopalasubramanian
624 <Ganesh.Gopalasubramanian@amd.com>
626 * config/i386/i386.c (processor_target_table): Modified default
627 alignment values for AMD BD and BT architectures.
629 2013-07-31 Sriraman Tallam <tmsriram@google.com>
631 * config/i386/i386.c (dispatch_function_versions): Fix array
632 indexing of function_version_info to match actual_versions.
634 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
636 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
637 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
639 2013-07-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
641 Backport from mainline
642 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
644 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
646 2013-07-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
648 * config/s390/linux-unwind.h: Use the proper dwarf to hard reg
649 mapping for FPRs when creating the fallback framestate.
651 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
653 * config/s390/s390.md ("movcc"): Swap load and store instructions.
655 2013-07-25 Terry Guo <terry.guo@arm.com>
657 Backport from mainline:
658 2013-07-25 Terry Guo <terry.guo@arm.com>
660 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
661 shift_add/shift_sub0/shift_sub1 RTXs.
663 2013-07-22 Iain Sandoe <iain@codesourcery.com>
665 Backport from mainline:
666 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
668 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
669 it is not needed after split.
671 2013-07-20 Iain Sandoe <iain@codesourcery.com>
674 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
675 second label for nonlocal goto receivers. Don't output pic base labels
676 unless we're producing PIC; mark that action unreachable().
677 (ix86_save_reg): If the function contains a nonlocal label, save the
679 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
680 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
681 (update_pic_label_number_if_needed): New.
682 (machopic_output_function_base_name): Adjust for nonlocal receiver
684 (machopic_should_output_picbase_label): New.
685 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
686 (nonlocal_goto_receiver): New insn and split.
688 2013-07-19 Wei Mi <wmi@google.com>
690 Backport from mainline:
691 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
692 Wei Mi <wmi@google.com>
694 PR rtl-optimization/57878
695 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
696 top. Promote lra_assert to gcc_assert.
697 (reload_pseudo_compare_func): Check regs first for reload pseudos.
699 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
701 Backport from 2013-07-19 trunk r201051.
704 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
705 * config/avr/avr.md (adjust_len): Add `round'.
706 * config/avr/avr-protos.h (avr_out_round): New prototype.
707 (avr_out_plus): Add `out_label' argument.
708 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
709 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
710 Handle the case where `insn' is just a pattern.
711 (avr_out_bitop): Handle the case where `insn' is just a pattern.
712 (avr_out_round): New function.
713 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
715 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
717 * config/i386/bmiintrin.h (_bextr_u32): New.
723 (_blsmsk_u32): Ditto.
724 (_blsmsk_u64): Ditto.
728 2013-07-17 James Greenhalgh <james.greenhalgh@arm.com>
730 Backport From mainline:
731 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
733 * config/aarch64/aarch64-builtins.c
734 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
735 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
737 * config/aarch64/aarch64-simd.md
738 (aarch64_ld1<VALL:mode>): New.
739 (aarch64_st1<VALL:mode>): Likewise.
740 * config/aarch64/arm_neon.h
741 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
743 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
745 Backport from 2013-07-11 trunk r200901.
748 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
749 name seen by assembler/linker if available.
751 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
753 Backport from 2013-07-10 trunk r200872.
756 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
759 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
761 Backport from 2013-07-10 trunk r200870.
764 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
765 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
766 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
767 Remove duplicate devices.
768 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
769 * config/avr/t-multilib: Regenerate.
770 * config/avr/avr-tables.opt: Regenerate.
771 * doc/avr-mmcu.texi: Regenerate.
773 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
776 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
778 2013-07-09 Joseph Myers <joseph@codesourcery.com>
780 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
781 adjust register size for TDmode and TFmode for VSX registers.
783 2013-07-08 Kai Tietz <ktietz@redhat.com>
785 Backport from mainline
787 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
788 hook_bool_const_tree_true.
790 2013-07-08 Uros Bizjak <ubizjak@gmail.com>
792 Backport from mainline
793 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
795 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
796 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
798 Backport from mainline
799 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
801 * config/i386/sse.md (sse_movlhps): Change alternative 3
804 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
806 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
808 2013-07-08 Jakub Jelinek <jakub@redhat.com>
810 PR rtl-optimization/57829
811 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
812 mask bits outside of mode are just sign-extension from mode to HWI.
814 2013-07-03 Jakub Jelinek <jakub@redhat.com>
817 * config/i386/predicates.md (vsib_address_operand): Disallow
818 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
820 2013-06-30 Terry Guo <terry.guo@arm.com>
822 Backport from mainline
823 2013-03-27 Bin Cheng <bin.cheng@arm.com>
826 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
827 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
830 2013-06-28 Jakub Jelinek <jakub@redhat.com>
833 * config/i386/i386.c (ix86_expand_builtin): If target == NULL
834 and mode is VOIDmode, don't create a VOIDmode pseudo to copy result
837 2013-06-27 Jakub Jelinek <jakub@redhat.com>
840 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
841 constraints of operand 1 and 2.
844 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
845 to match RTL canonicalization. Swap predicates and
846 constraints of operand 1 and 2.
848 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
849 decl before the loop, initialize to NULL.
850 (vectorizable_load): Initialize ptr_incr to NULL.
852 2013-06-24 Martin Jambor <mjambor@suse.cz>
854 PR tree-optimization/57358
855 * ipa-prop.c (parm_ref_data_preserved_p): Always return true when
858 2013-06-24 Alan Modra <amodra@gmail.com>
860 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
861 (gen_easy_altivec_constant): Likewise.
862 * config/rs6000/predicates.md (easy_vector_constant_add_self,
863 easy_vector_constant_msb): Likewise.
865 2013-06-21 Uros Bizjak <ubizjak@gmail.com>
867 Backport from mainline
868 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
871 * config/i386/i386.c (construct_container): Report error if
872 long double is used with disabled x87 float returns.
874 2013-06-20 Wei Mi <wmi@google.com>
876 Backport from mainline
877 2013-06-19 Wei Mi <wmi@google.com>
879 PR rtl-optimization/57518
880 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
881 if regno is used in paradoxical subreg.
882 (update_equiv_regs): Check pdx_subregs[regno] before
883 set a reg to be equivalent with a mem.
886 2013-06-20 David Edelsohn <dje.gcc@gmail.com>
888 Backport from mainline
889 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
892 * collect2.c (collect_atexit): New.
893 (collect_exit): Delete.
894 (main): Register collect_atexit with atexit.
895 (collect_wait): Change collect_exit to exit.
897 * collect2.h (collect_exit): Delete.
898 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
900 2013-06-19 Matthias Klose <doko@ubuntu.com>
903 * file-find.h (find_a_file): Add a mode parameter.
904 * file-find.c (find_a_file): Likewise.
905 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
906 with X_OK for the executables.
907 * collect2.c (main): Call find_a_file with X_OK.
909 2013-06-19 Igor Zamyatin <igor.zamyatin@intel.com>
911 * doc/invoke.texi (core-avx2): Document.
912 (atom): Updated with MOVBE.
914 2013-06-19 Jakub Jelinek <jakub@redhat.com>
917 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
918 PERSONALITY in $PATH derived prefixes.
920 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
923 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
924 that now in C++ the value is correct per the C++ standards.
926 2013-06-19 Alan Modra <amodra@gmail.com>
928 Apply mainline patches
929 2013-06-13 Alan Modra <amodra@gmail.com>
930 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
931 * config/rs6000/rs6000.md (signbittf2): New insn.
932 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
933 (abstf2_internal, cmptf_internal2): Likewise.
934 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
936 2013-06-11 Anton Blanchard <anton@samba.org>
937 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
938 correct shift value in little-endian mode.
940 2013-06-07 Alan Modra <amodra@gmail.com>
941 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
944 2013-06-04 Alan Modra <amodra@gmail.com>
945 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
948 2013-05-10 Alan Modra <amodra@gmail.com>
949 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
950 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
951 * configure: Regenerate.
953 2013-05-09 Alan Modra <amodra@gmail.com>
954 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
956 * configure: Regenerate.
958 2013-05-07 Anton Blanchard <anton@samba.org>
959 * configure.ac (HAVE_LD_LARGE_TOC): Use right linker emulation
960 for powerpc64 little endian.
961 * configure: Regenerate.
963 2013-05-06 Alan Modra <amodra@gmail.com>
964 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
965 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
966 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
967 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
968 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
969 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
971 2013-05-06 Alan Modra <amodra@gmail.com>
972 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
973 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
974 (DEFAULT_ASM_ENDIAN): Define.
975 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
976 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
977 Update -K PIC clause from sysv4.h.
978 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
979 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
981 2013-05-06 Alan Modra <amodra@gmail.com>
982 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
983 twice for little-endian.
984 (ashrdi3_no_power, ashrdi3): Support little-endian.
986 2013-04-25 Alan Modra <amodra@gmail.com>
987 * config.gcc: Support little-endian powerpc-linux targets.
988 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
989 (LINK_OS_LINUX_SPEC): Define.
990 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
991 Preserve MASK_LITTLE_ENDIAN.
992 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
993 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
994 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
995 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
996 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
997 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
998 Correct fp word order for little-endian. Don't shift toc entries
999 smaller than a word for little-endian.
1000 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
1001 (bswapdi2 splits): Correct low-part subreg for little-endian.
1002 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
1003 low/high where such is correct only for be.
1004 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
1005 little-endian for -mcall-aixdesc.
1007 2013-06-12 Martin Jambor <mjambor@suse.cz>
1009 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1010 within bounds at the beginning of the function.
1012 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1014 PR tree-optimization/57537
1015 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1016 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1018 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
1020 Backport from mainline
1021 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
1023 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1024 cmp_code to construct REG_EQUAL note.
1026 2013-06-10 Oleg Endo <olegendo@gcc.gnu.org>
1028 Backport from mainline
1029 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1032 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1033 (*fmasf4, *fmasf4_media): New insns.
1035 2013-06-09 Jakub Jelinek <jakub@redhat.com>
1038 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1039 that operands[2] doesn't overlap with operands[0].
1041 2013-06-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1043 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1044 address mode. Move pointer mode initialization to the same place.
1046 2013-06-07 Sofiane Naci <sofiane.naci@arm.com>
1048 Backport from mainline
1049 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1051 2013-06-07 Uros Bizjak <ubizjak@gmail.com>
1053 Backport from mainline
1054 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
1056 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1057 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1059 Backport from mainline
1060 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
1063 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1064 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1065 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1067 2013-06-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1069 Backport from mainline.
1070 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1072 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1074 2013-06-03 James Greenhalgh <james.greenhalgh@arm.com>
1076 Backport from mainline.
1077 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1079 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
1080 format specifier in 'X' case.
1082 2013-05-31 Richard Henderson <rth@redhat.com>
1085 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1086 (ix86_reorg): Call it.
1088 2012-05-31 Jakub Jelinek <jakub@redhat.com>
1090 * BASE-VER: Set to 4.8.2.
1091 * DEV-PHASE: Set to prerelease.
1093 2013-05-31 Release Manager
1095 * GCC 4.8.1 released.
1097 2013-05-24 Greta Yorsh <Greta.Yorsh@arm.com>
1099 Backport from mainline
1100 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
1103 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
1104 generating simple_return for naked functions.
1106 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1109 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
1110 that index is not negative.
1112 2013-05-23 Martin Jambor <mjambor@suse.cz>
1115 * tree.h (contains_bitfld_component_ref_p): Declare.
1116 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
1117 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its caller.
1118 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1119 not access a bit-field. Assert all final offsets are byte-aligned.
1121 2013-05-23 Richard Biener <rguenther@suse.de>
1123 PR rtl-optimization/57341
1124 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1125 instead of true_dependence.
1127 2013-05-23 Jakub Jelinek <jakub@redhat.com>
1130 * expmed.c (store_split_bit_field): If op0 is a REG or
1131 SUBREG of a REG, don't lower unit. Handle unit not being
1132 always BITS_PER_WORD.
1134 2013-05-22 Uros Bizjak <ubizjak@gmail.com>
1137 * config/i386/i386.md (*movti_internal_rex64): Emit movaps/movups
1138 for non-sse2 targets.
1139 (*movti_internal): Simplify mode attribute calculation.
1141 2013-05-22 Richard Biener <rguenther@suse.de>
1143 Backport from mainline
1144 2013-05-21 Richard Biener <rguenther@suse.de>
1146 PR tree-optimization/57318
1147 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1148 estimate stmts with side-effects as likely eliminated.
1150 2013-05-21 Richard Biener <rguenther@suse.de>
1152 PR tree-optimization/57330
1153 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1154 preserve the call stmts fntype.
1156 2013-05-21 Richard Biener <rguenther@suse.de>
1158 PR tree-optimization/57303
1159 * tree-ssa-sink.c (statement_sink_location): Properly handle
1162 2013-05-21 Magnus Granberg <baldrick@free.fr>
1165 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
1167 2013-05-21 Eric Botcazou <ebotcazou@adacore.com>
1169 Backport from mainline
1170 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1172 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1173 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1175 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1177 PR rtl-optimization/57281
1178 PR rtl-optimization/57300
1179 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1180 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1181 what the other splitter did if the registers are dead.
1183 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
1185 Backport from mainline
1186 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1188 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1189 cache parameters using detect_caches_amd also for CYRIX,
1190 NSC and TM2 signatures.
1192 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1193 Dzianis Kahanovich <mahatma@eu.by>
1197 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1198 VIA/Centaur processors and determine their cache parameters
1199 using detect_caches_amd.
1201 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
1203 * config/i386/i386.c (ix86_option_override_internal): Update
1204 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
1205 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1206 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
1207 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1209 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1211 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1213 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1216 PR tree-optimization/57051
1217 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1218 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1220 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1222 * omp-low.c (extract_omp_for_data): For collapsed loops,
1223 if at least one of the loops is known at compile time to
1224 iterate zero times, set count to 0.
1225 (expand_omp_regimplify_p): New function.
1226 (expand_omp_for_generic): For collapsed loops, if at least
1227 one of the loops isn't known to iterate at least once,
1228 add runtime check with setting count to 0.
1229 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1230 For unsigned types if it isn't known at compile time that
1231 the loop will iterate at least once, add runtime check to bypass
1232 the whole loop if initial condition isn't true.
1234 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1237 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1238 the case when both op0 and op1 have VOIDmode.
1240 2013-05-13 Jakub Jelinek <jakub@redhat.com>
1242 PR tree-optimization/57230
1243 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1246 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1248 * config/epiphany/epiphany.c (epiphany_init): Check size of
1249 NUM_MODES_FOR_MODE_SWITCHING.
1250 (epiphany_expand_prologue):
1251 Remove CONFIG_REGNUM initial value handling code.
1252 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1253 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
1254 (emit_set_fp_mode, epiphany_mode_after): Likewise.
1255 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1256 Don't return 1 for FP_MODE_NONE.
1257 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1258 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1259 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1260 * config/epiphany/epiphany.md (save_config): New pattern.
1262 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
1264 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1265 Add mthumb/march=armv7-a multilib.
1266 Add mthumb/march=armv7-r multilib.
1267 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1269 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1272 * config/v850/t-rtems: Add more multilibs.
1274 2013-05-10 Richard Biener <rguenther@suse.de>
1276 PR tree-optimization/57214
1277 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1278 not propagate from SSA names that occur in abnormal PHI nodes.
1280 2013-05-10 Alan Modra <amodra@gmail.com>
1283 * varasm.c (default_elf_select_section): Move !DECL_P check..
1284 (get_named_section): ..to here before calling get_section_name.
1286 (default_section_type_flags): Add DECL_P check.
1287 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1288 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1290 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
1292 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1293 When using gen_stack_adjust_str with a register offset, add a
1294 REG_FRAME_RELATED_EXPR note.
1296 2013-05-09 Martin Jambor <mjambor@suse.cz>
1299 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
1300 * ipa-cp.c (find_aggregate_values_for_callers_subset): Fill in the
1301 by_ref flag of ipa_agg_replacement_value structures.
1302 (known_aggs_to_agg_replacement_list): Likewise.
1303 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
1304 (read_agg_replacement_chain): Likewise.
1305 (ipcp_transform_function): Also check that by_ref flags match.
1307 2013-05-08 Diego Novillo <dnovillo@google.com>
1313 2012-08-17 Diego Novillo <dnovillo@google.com>
1316 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
1317 * config.in: Regenerate.
1318 * configure: Regenerate.
1319 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is
1322 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
1324 PR tree-optimization/57200
1325 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1326 Only call inform if the preceding warning_at returns true.
1328 2013-05-07 Jakub Jelinek <jakub@redhat.com>
1330 PR tree-optimization/57149
1331 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
1332 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
1333 collect_phi_def_edges, execute_late_warn_uninitialized): Use
1334 uninit_undefined_value_p instead of ssa_undefined_value_p.
1337 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
1338 for modifier == EXPAND_INITIALIZER.
1340 2013-05-07 Richard Biener <rguenther@suse.de>
1342 Backport from mainline
1343 2013-05-06 Richard Biener <rguenther@suse.de>
1345 PR tree-optimization/57185
1346 * tree-parloops.c (add_field_for_reduction): Handle anonymous
1349 2013-04-19 Richard Biener <rguenther@suse.de>
1351 PR tree-optimization/57000
1352 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
1354 2013-05-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1357 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1360 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1361 to save TFmode registers and DImode to save TImode registers for
1362 caller save operations.
1363 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1364 mark being partially clobbered since they only use the first
1367 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1368 and TDmode only use the upper 64-bits of each VSX register.
1370 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1373 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
1375 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
1377 Backport from mainline
1378 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
1381 * config/i386/i386.c (add_parameter_dependencies): Add dependence
1382 between "first_arg" and "insn", not "last" and "insn".
1384 2013-05-03 Jakub Jelinek <jakub@redhat.com>
1386 PR rtl-optimization/57130
1387 * combine.c (make_compound_operation) <case SUBREG>: Pass
1388 SET instead of COMPARE as in_code to the recursive call
1391 Backported from mainline
1392 2013-04-26 Jakub Jelinek <jakub@redhat.com>
1394 PR tree-optimization/57051
1395 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
1396 and VEC_RSHIFT_EXPR if shift count is a multiple of element
1399 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
1401 * fold-const.c (fold_binary_loc): Call const_binop also for mixed
1402 vector-scalar operations.
1404 2013-05-03 Marek Polacek <polacek@redhat.com>
1406 Backport from mainline
1407 2013-04-25 Marek Polacek <polacek@redhat.com>
1409 PR tree-optimization/57066
1410 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
1412 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1414 Backport from mainline
1415 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1417 * lra-constraints.c (process_alt_operands): Add checking alt
1418 number to choose the best alternative.
1420 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
1423 * lra-constraints.c (best_small_class_operands_num): Remove.
1424 (process_alt_operands): Remove small_class_operands_num. Take
1425 small classes operands into losers and only if the operand is not
1426 matched. Modify debugging output.
1427 (curr_insn_transform): Remove best_small_class_operands_num.
1430 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1432 Backport from mainline
1433 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
1436 * lra-constraints.c (process_alt_operands): Discourage a bit more
1437 using memory for pseudos. Print cost dump for alternatives.
1438 Modify cost values for conflicts with early clobbers.
1439 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
1441 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1443 Backport from mainline
1444 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
1446 PR rtl-optimizations/57046
1447 * lra-constraints (split_reg): Set up lra_risky_transformations_p
1448 for multi-reg splits.
1450 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1452 Backport from mainline
1453 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
1456 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
1457 a set sp if no stack realignment.
1459 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1461 Backport from mainline
1462 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
1464 PR rtl-optimization/56999
1465 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
1467 (lra_coalesce): Remove split_origin_bitmap and related code.
1468 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
1469 ranges if necessary.
1471 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1473 Backport from mainline
1474 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1476 PR rtl-optimization/56847
1477 * lra-constraints.c (process_alt_operands): Discourage alternative
1478 with non-matche doffsettable memory constraint fro memory with
1481 2013-05-02 Ian Bolton <ian.bolton@arm.com>
1483 Backport from mainline
1484 2013-03-28 Ian Bolton <ian.bolton@arm.com>
1486 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
1487 record only when desired or required.
1489 2013-04-30 Jakub Jelinek <jakub@redhat.com>
1491 PR tree-optimization/57104
1492 * tsan.c (instrument_expr): Don't instrument accesses to
1493 DECL_HARD_REGISTER VAR_DECLs.
1495 2013-04-30 Uros Bizjak <ubizjak@gmail.com>
1497 Backport from mainline
1498 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
1501 * config/i386/i386.md (*zero_extendsidi2_rex64): Add "!" to m->?*y
1503 (*zero_extendsidi2): Ditto.
1505 Backport from mainline
1506 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
1509 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
1511 2013-04-29 Richard Biener <rguenther@suse.de>
1514 * tree-cfg.c (move_stmt_op): Fix condition under which to update
1516 (move_stmt_r): Remove redundant checking.
1518 2013-04-29 Christian Bruel <christian.bruel@st.com>
1521 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
1523 2013-04-29 Jakub Jelinek <jakub@redhat.com>
1525 PR tree-optimization/57083
1526 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
1527 non-singleton shift count range, zero extend low_bound for uns case.
1529 2013-04-28 Eric Botcazou <ebotcazou@gcc.gnu.org>
1531 * stor-layout.c (finalize_size_functions): Allocate a structure and
1532 reset cfun before dumping the functions.
1534 2013-04-27 Jakub Jelinek <jakub@redhat.com>
1537 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
1538 use xop_pmacsdqh if uns_p.
1539 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
1540 the immediate rotate count.
1542 2013-04-25 Jakub Jelinek <jakub@redhat.com>
1544 PR rtl-optimization/57003
1545 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1546 call note_stores with kill_clobbered_value callback again after
1547 killing regs_invalidated_by_call.
1549 2013-04-25 Ian Bolton <ian.bolton@arm.com>
1551 Backported from mainline.
1552 2013-03-22 Ian Bolton <ian.bolton@arm.com>
1554 * config/aarch64/aarch64.c (aarch64_print_operand): New
1555 format specifier for printing a constant in hex.
1556 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
1557 format specifier for printing second operand.
1559 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
1561 Backported from mainline.
1562 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
1564 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
1565 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
1566 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
1568 2013-04-24 Greta Yorsh <Greta.Yorsh@arm.com>
1570 Backported from mainline.
1572 * config/arm/arm.c (load_multiple_sequence): Require SP
1573 as base register for loads if SP is in the register list.
1575 2013-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1576 Steven Bosscher <steven@gcc.gnu.org>
1578 Backported from mainline.
1579 PR rtl-optimization/56605
1580 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
1582 2013-04-22 Marek Polacek <polacek@redhat.com>
1584 Backported from mainline.
1585 2013-04-22 Marek Polacek <polacek@redhat.com>
1588 * tsan.c (instrument_expr): Don't instrument expression
1589 in case its size is zero.
1591 2013-04-22 Yufeng Zhang <yufeng.zhang@arm.com>
1593 Backported from mainline.
1594 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
1595 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
1596 (aarch64_start_file): Use the new function.
1598 2013-04-18 Jakub Jelinek <jakub@redhat.com>
1600 PR tree-optimization/56984
1601 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
1602 and (x >> M) >= N don't register any assertion if N << M is the
1605 2013-04-17 David Edelsohn <dje.gcc@gmail.com>
1608 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
1610 2013-04-15 Jakub Jelinek <jakub@redhat.com>
1612 PR tree-optimization/56962
1613 * gimple-ssa-strength-reduction.c (record_increment): Only set
1614 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
1615 either rhs1 or rhs2 is equal to c->base_expr.
1617 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1619 * emit-rtl.c (reset_all_used_flags): New function.
1620 (verify_rtl_sharing): Call reset_all_used_flags before and after
1621 performing the checks.
1623 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
1626 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
1627 (S_MODES): Set H_MODE bit.
1628 (SF_MODES): Set only S_MODE and SF_MODE bits.
1629 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
1630 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
1631 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
1632 <MODE_FLOAT>: Likewise.
1634 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
1637 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
1638 lra_in_progress for return.
1640 2013-04-12 Jakub Jelinek <jakub@redhat.com>
1642 PR tree-optimization/56918
1643 PR tree-optimization/56920
1644 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
1645 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
1646 argument to rshift method.
1648 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1650 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as
1653 2013-04-11 Marek Polacek <polacek@redhat.com>
1655 PR tree-optimization/48184
1656 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum
1659 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1661 Backported from mainline.
1662 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1664 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
1665 floating-point vector comparisons against 0.
1667 2013-04-11 Jakub Jelinek <jakub@redhat.com>
1669 PR tree-optimization/56899
1670 * fold-const.c (extract_muldiv_1): Apply distributive law
1671 only if TYPE_OVERFLOW_WRAPS (ctype).
1673 2013-04-10 David S. Miller <davem@davemloft.net>
1675 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
1676 or -mcpu=hypersparc.
1678 2013-04-10 Jakub Jelinek <jakub@redhat.com>
1680 Backported from mainline
1681 2013-04-09 Jakub Jelinek <jakub@redhat.com>
1684 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
1685 expand_omp_for_static_chunk): Use simple_p = true in
1686 force_gimple_operand_gsi calls when assigning to addressable decls.
1688 2013-04-09 Marek Polacek <polacek@redhat.com>
1690 PR tree-optimization/48762
1691 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum
1694 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1696 * config/s390/s390.c (s390_expand_insv): Only accept insertions
1699 2013-04-08 Marek Polacek <polacek@redhat.com>
1701 PR rtl-optimization/48182
1702 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
1705 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1708 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
1709 nuses, make sure we have a label.
1711 2013-04-04 Ian Lance Taylor <iant@google.com>
1713 Backport from mainline:
1714 * doc/standards.texi (Standards): The Go frontend supports the Go
1715 1 language standard.
1717 2013-04-04 Marek Polacek <polacek@redhat.com>
1719 Backport from mainline:
1720 2013-04-04 Marek Polacek <polacek@redhat.com>
1722 PR tree-optimization/48186
1723 * predict.c (maybe_hot_frequency_p): Return false if
1724 HOT_BB_FREQUENCY_FRACTION is 0.
1725 (cgraph_maybe_hot_edge_p): Likewise.
1727 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1729 Backport from mainline:
1730 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1733 * config/arm/iterators.md (v_cmp_result): New mode attribute.
1734 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
1736 2013-04-04 Richard Biener <rguenther@suse.de>
1738 PR tree-optimization/56837
1739 * tree-loop-distribution.c (classify_partition): For non-zero
1740 values require that the value has the same precision as its
1741 mode to be useful as memset value.
1743 2013-04-03 Roland McGrath <mcgrathr@google.com>
1745 Backport from mainline:
1746 2013-03-26 Roland McGrath <mcgrathr@google.com>
1748 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
1749 than fprintf with a non-constant, non-format string.
1751 2013-04-03 Marek Polacek <polacek@redhat.com>
1753 Backport from mainline:
1754 2013-04-03 Marek Polacek <polacek@redhat.com>
1757 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN
1760 2013-04-03 Richard Biener <rguenther@suse.de>
1762 PR tree-optimization/56817
1763 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1765 (tree_unroll_loops_completely_1): ... new function to manually
1766 walk the loop tree, properly defering outer loops of unrolled
1767 loops to later iterations.
1769 2013-04-02 Jakub Jelinek <jakub@redhat.com>
1771 PR rtl-optimization/56745
1772 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
1773 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
1775 2013-04-02 Wei Mi <wmi@google.com>
1777 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
1778 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
1779 *<rotate_insn><mode>3_mask in i386.md.
1781 2013-04-01 Wei Mi <wmi@google.com>
1783 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
1784 Truncate operand 2 using %b asm operand modifier.
1785 (*<shift_insn><mode>3_mask): Ditto.
1786 (*<rotate_insn><mode>3_mask): Ditto.
1788 2013-04-01 Uros Bizjak <ubizjak@gmail.com>
1790 * config/i386/i386.md (*movsf_internal): Change type of
1791 alternatives 3,4 to imov.
1793 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
1796 * doc/invoke.texi ([-fwhole-program]): Fix typo.
1798 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
1800 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
1801 Fix declaration name.
1803 2013-03-28 Gerald Pfeifer <gerald@pfeifer.com>
1805 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
1806 * doc/extend.texi (Named Address Spaces): Ditto.
1807 (Variable Attributes): Ditto.
1809 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
1811 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
1812 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
1815 2013-03-27 Walter Lee <walt@tilera.com>
1817 Backport from mainline:
1818 2013-03-27 Walter Lee <walt@tilera.com>
1820 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
1821 double-decrement of next_scratch_regno.
1823 2013-03-27 Walter Lee <walt@tilera.com>
1825 Backport from mainline:
1826 2013-03-27 Walter Lee <walt@tilera.com>
1828 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
1830 (insn_v1mulus): Ditto.
1831 (insn_v2muls): Ditto.
1833 2013-03-27 Walter Lee <walt@tilera.com>
1835 Backport from mainline:
1836 2013-03-27 Walter Lee <walt@tilera.com>
1838 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
1840 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
1842 2013-03-27 Walter Lee <walt@tilera.com>
1844 Backport from mainline:
1845 2013-03-27 Walter Lee <walt@tilera.com>
1847 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
1848 (*sibcall_value): Ditto.
1850 2013-03-27 Walter Lee <walt@tilera.com>
1852 Backport from mainline:
1853 2013-03-27 Walter Lee <walt@tilera.com>
1855 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
1856 (insn_mnz_v8qi): ... this ...
1857 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
1859 (insn_v<n>mnz): Replaced by ...
1860 (insn_v1mnz): ... this ...
1861 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
1863 (insn_mz_<mode>): Replaced by ...
1864 (insn_mz_v8qi): ... this ...
1865 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
1867 (insn_v<n>mz): Replaced by ...
1868 (insn_v1mz): ... this ...
1869 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
1872 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
1874 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
1876 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
1878 * config/rtems.opt: Add -pthread option.
1880 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
1882 * config/aarch64/aarch64.c (aarch64_classify_address): Support
1883 PC-relative load in SI modes and above only.
1885 2013-03-26 Walter Lee <walt@tilera.com>
1887 Backport from mainline:
1888 2013-03-26 Walter Lee <walt@tilera.com>
1890 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
1891 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
1893 2013-03-26 Walter Lee <walt@tilera.com>
1895 Backport from mainline:
1896 2013-03-25 Walter Lee <walt@tilera.com>
1898 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
1899 TILEGX_INSN_SHUFFLEBYTES1.
1900 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
1902 (tilegx_builtins): Ditto.
1903 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
1905 2013-03-26 Walter Lee <walt@tilera.com>
1907 Backport from mainline:
1908 2013-03-25 Walter Lee <walt@tilera.com>
1910 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
1911 tests for constraint J, K, N, P.
1913 2013-03-26 Walter Lee <walt@tilera.com>
1915 Backport from mainline:
1916 2013-03-25 Walter Lee <walt@tilera.com>
1918 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
1919 Use indirect/pcrel encoding.
1920 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
1923 2013-03-25 Richard Biener <rguenther@suse.de>
1926 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
1927 must-not-throw stmt location.
1929 2012-03-22 Jakub Jelinek <jakub@redhat.com>
1931 * BASE-VER: Set to 4.8.1.
1932 * DEV-PHASE: Set to prerelease.
1934 2013-03-22 Release Manager
1936 * GCC 4.8.0 released.
1938 2013-03-21 Walter Lee <walt@tilera.com>
1940 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
1942 2013-03-21 Mark Wielaard <mjw@redhat.com>
1944 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
1946 2013-03-20 Richard Biener <rguenther@suse.de>
1948 PR tree-optimization/56661
1949 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
1950 the result does not have to be distinct.
1952 2013-03-20 Jakub Jelinek <jakub@redhat.com>
1954 PR tree-optimization/56635
1955 * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Give up
1956 if lhs of then_assign and else_assign don't have compatible types.
1958 2013-03-17 Jakub Jelinek <jakub@redhat.com>
1961 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
1962 class names. Remove trailing comma after "ALL_REGS".
1964 2013-03-16 Jakub Jelinek <jakub@redhat.com>
1966 * DEV-PHASE: Set to prerelease.
1968 2013-03-14 Andi Kleen <ak@linux.intel.com>
1971 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
1972 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
1973 Document _x* TSX intrinsics.
1975 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1976 David Holsgrove <david.holsgrove@xilinx.com>
1978 * configure.ac: Add MicroBlaze TLS support detection.
1979 * configure: Regenerate.
1980 * config/microblaze/microblaze-protos.h
1981 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
1982 symbol_mentioned_p, label_mentioned_p): Add prototypes.
1983 * config/microblaze/microblaze.c (microblaze_address_type): Add
1984 ADDRESS_TLS and tls_reloc address types.
1985 (microblaze_address_info): Add tls_reloc.
1986 (TARGET_HAVE_TLS): Define.
1987 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
1988 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
1989 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
1990 load_tls_operand, microblaze_call_tls_get_addr,
1991 microblaze_legitimize_tls_address): New functions.
1992 (microblaze_classify_unspec): Handle UNSPEC_TLS.
1993 (get_base_reg): Use microblaze_tls_symbol_p.
1994 (microblaze_classify_address): Handle TLS.
1995 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
1996 label_mentioned_p and microblaze_tls_referenced_p.
1997 (microblaze_legitimize_address): Handle TLS.
1998 (microblaze_address_insns): Handle ADDRESS_TLS.
1999 (pic_address_needs_scratch): Handle TLS.
2000 (print_operand_address): Handle TLS.
2001 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
2002 (microblaze_expand_move): Handle TLS.
2003 (microblaze_legitimate_constant_p): Check
2004 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
2005 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2006 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
2007 (PIC_OFFSET_TABLE_REGNUM): Set.
2008 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
2009 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
2010 (addsi3, movsi_internal2, movdf_internal): Update constraints
2011 * config/microblaze/predicates.md (arith_plus_operand): Define
2012 (move_operand): Redefine as move_src_operand, check
2013 microblaze_tls_referenced_p.
2015 2013-03-14 Ian Bolton <ian.bolton@arm.com>
2017 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
2018 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
2020 2013-03-14 Ian Bolton <ian.bolton@arm.com>
2022 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
2025 2013-03-14 Jakub Jelinek <jakub@redhat.com>
2027 PR tree-optimization/53265
2028 * common.opt (Waggressive-loop-optimizations): New option.
2029 * tree-ssa-loop-niter.c: Include tree-pass.h.
2030 (do_warn_aggressive_loop_optimizations): New function.
2031 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
2032 if number_of_latch_executions returned constant.
2033 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
2034 early. If number_of_latch_executions returned constant, set
2035 nb_iterations_upper_bound back to it.
2036 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
2038 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
2039 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
2041 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
2042 (MULTILIB_OSDIRNAMES): Set.
2043 * genmultilib: If defaultosdirname doesn't start with :: , set
2044 defaultosdirname2 instead, clear it and emit two . multilib_raw
2045 entries instead of just one.
2047 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
2049 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2050 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
2051 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2052 (SUBTARGET_OVERRIDE_OPTIONS): New.
2054 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
2057 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
2058 (musermode): Convert to Var(TARGET_USERMODE).
2059 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
2060 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
2061 * config/sh/sh.c (sh_option_override): Use
2062 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
2063 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
2065 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
2067 (udivsi3_i4_single, divsi3_i4_single): Use
2068 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
2070 2013-03-13 Dave Korn <dave.korn.cygwin@....>
2072 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
2075 2013-03-13 Richard Biener <rguenther@suse.de>
2077 PR tree-optimization/56608
2078 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
2079 calls when vectorizing basic-blocks.
2081 2013-03-13 Jakub Jelinek <jakub@redhat.com>
2084 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
2087 2013-03-12 Jakub Jelinek <jakub@redhat.com>
2089 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
2091 2013-03-11 Jan Hubicka <jh@suse.cz>
2094 * lto-streamer-out.c (output_symbol_p): Skip references from
2095 constructors of external variables.
2097 2013-03-11 Jan Hubicka <jh@suse.cz>
2100 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
2102 * emit-rtl.c (verify_rtx_sharing): Likewise.
2103 (copy_insn_1): Likewise.
2104 * rtl.c (copy_rtx): Likewise.
2106 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
2109 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
2110 output_operand_lossage message.
2112 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
2115 * arm.c (shift_op): Validate RTL pattern on the fly.
2116 (arm_print_operand, case 'S'): Don't use shift_operator to validate
2119 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2122 * config/pa/pa.md (call_value): Check for calls to powf and direct to
2123 new call patterns that clobber %fr12.
2124 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
2125 split and postreload patterns.
2126 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
2127 registers %fr12 and %fr12R as call used.
2129 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
2131 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
2132 (canon_address, record_store, replace_read, check_mem_read_rtx,
2133 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
2134 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
2135 rest_of_handle_dse): Likewise.
2137 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2140 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
2142 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
2143 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
2144 (save_optabs_if_changed): Replace with...
2145 (init_tree_optimization_optabs): ...this.
2146 * optabs.c (save_optabs_if_changed): Rename to...
2147 (init_tree_optimization_optabs): ...this. Take the optimization node
2148 as argument. Do nothing if the base optabs are already correct.
2149 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
2150 to recompute optabs.
2151 * function.h (function): Remove optabs field.
2152 * function.c (invoke_set_current_function_hook): Call
2153 init_tree_optimization_optabs. Use the result to initialize
2156 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
2158 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
2159 if GTMA_HAS_NO_INSTRUMENTATION.
2160 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
2161 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
2162 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
2163 * gimple-pretty-print.c (dump_gimple_transaction): Handle
2164 GTMA_HAS_NO_INSTRUMENTATION.
2166 2013-03-08 Jakub Jelinek <jakub@redhat.com>
2168 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
2171 2013-03-08 Marek Polacek <polacek@redhat.com>
2172 Jakub Jelinek <jakub@redhat.com>
2174 PR tree-optimization/56478
2175 * predict.c (is_comparison_with_loop_invariant_p): Change the
2176 type of loop_step to tree.
2177 (predict_loops): Adjust.
2178 (predict_iv_comparison): Perform the computations on double_ints.
2180 2013-03-08 Richard Biener <rguenther@suse.de>
2182 PR tree-optimization/56570
2183 * tree-cfg.c (verify_expr_location_1): Verify locations for
2185 * tree-sra.c (create_access_replacement): Strip locations
2186 from DECL_DEBUG_EXPRs.
2188 2013-03-08 Richard Biener <rguenther@suse.de>
2190 * tree-inline.c (expand_call_inline): Do not associate
2191 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
2192 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
2194 2013-03-08 Richard Biener <rguenther@suse.de>
2196 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
2197 or block changes with -Og. Fix for location / block encoding
2198 changes and PHI arguments with locations.
2200 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
2202 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
2204 (struct output_info): Likewise.
2205 (register_overhead): Remove bad gcc_assert.
2206 (bitmap_find_bit): If there is only a single bitmap element, do not
2207 count a miss as a search.
2208 (print_statistics): Update for counter type changes.
2209 (dump_bitmap_statistics): Likewise. Print headers such that they
2210 are properly lined up with the printed counters.
2212 2013-03-07 Jakub Jelinek <jakub@redhat.com>
2214 PR tree-optimization/56559
2215 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
2216 check that it has only a single use.
2218 2013-03-07 Richard Biener <rguenther@suse.de>
2220 * doc/invoke.texi (fwhole-program): Discourage use in combination
2223 2013-03-06 Jakub Jelinek <jakub@redhat.com>
2225 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
2227 PR tree-optimization/56539
2228 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
2229 instead of GSI_CONTINUE_LINKING as last argument to
2230 force_gimple_operand_gsi. Adjust function comment.
2232 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
2236 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
2237 promoted mode, convert the result back to the original mode.
2239 2013-03-06 Richard Biener <rguenther@suse.de>
2242 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
2243 (insert_updated_phi_nodes_compare_uids): New function.
2244 (update_ssa): Sort symbols_to_rename after UID before
2245 traversing it to insert PHI nodes.
2247 2013-03-06 Richard Biener <rguenther@suse.de>
2250 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
2251 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
2254 2013-02-13 Richard Biener <rguenther@suse.de>
2257 * varasm.c (output_constant_def_1): Get the decl representing
2258 the constant as argument.
2259 (output_constant_def): Wrap output_constant_def_1.
2260 (make_decl_rtl): Use output_constant_def_1 with the decl
2261 representing the constant.
2262 (build_constant_desc): Optionally re-use a decl already
2263 representing the constant.
2264 (tree_output_constant_def): Adjust.
2266 2013-03-06 Joey Ye <joey.ye@arm.com>
2269 * gcc.c (convert_white_space): New function.
2270 (main): Handles white space in function name.
2272 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
2275 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
2276 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
2277 to SH_DIV_CALL_TABLE for TARGET_SH2.
2278 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
2280 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
2283 2013-03-05 Sterling Augustine <saugustine@google.com>
2284 Cary Coutant <ccoutant@google.com>
2287 * dwarf2out.c (resolve_addr): Don't call
2288 remove_loc_list_addr_table_entries a second time for the same
2291 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2294 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
2295 (avoid_complex_debug_insns): New function.
2296 (expand_debug_locations): Call it.
2298 PR rtl-optimization/56484
2299 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
2300 lifetimes of hard registers on small register class machines.
2302 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
2304 * config/microblaze/microblaze-protos.h: Rename
2305 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
2306 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
2308 (microblaze_fast_interrupt_function_p): New function.
2309 (microblaze_is_interrupt_handler): Rename to
2310 microblaze_is_interrupt_variant and add fast_interrupt check.
2311 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
2312 (save_restore_insns): Likewise.
2313 (compute_frame_size): Likewise.
2314 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
2315 (microblaze_globalize_label): Likewise.
2316 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
2317 * config/microblaze/microblaze.md: Use wrapper
2318 microblaze_is_interrupt_variant.
2320 2013-03-05 Kai Tietz <ktietz@redhat.com>
2322 * sdbout.c (sdbout_one_type): Switch to current function's section
2323 supporting cold/hot.
2325 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
2327 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
2330 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2333 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
2334 if VALGRIND_GET_VBITS is defined, temporarily make object
2335 memory all defined, and restore previous valgrind addressability
2336 and definability afterwards. Free this_object at the end.
2339 * lra.c (lra): Call lra_clear_live_ranges if live_p,
2340 right before calling lra_create_live_ranges, also call it
2341 when clearing live_p. Only call lra_clear_live_ranges
2342 at the end if live_p.
2345 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
2347 2013-03-05 Richard Biener <rguenther@suse.de>
2349 PR tree-optimization/56521
2350 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
2353 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
2356 * except.h (remove_unreachable_eh_regions): New prototype.
2357 * except.c (remove_eh_handler_splicer): New function, split out
2358 of remove_eh_handler.
2359 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
2360 warning about running it on many EH regions one at a time.
2361 (remove_unreachable_eh_regions_worker): New function, walk the
2362 EH tree in depth-first order and remove non-marked regions.
2363 (remove_unreachable_eh_regions): New function.
2364 * tree-eh.c (mark_reachable_handlers): New function, split out
2365 from remove_unreachable_handlers.
2366 (remove_unreachable_handlers): Use mark_reachable_handlers and
2367 remove_unreachable_eh_regions.
2368 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
2369 and remove_unreachable_eh_regions.
2371 2013-03-05 Richard Biener <rguenther@suse.de>
2374 * loop-init.c (fix_loop_structure): Remove loops in two stages,
2375 not freeing them until the end.
2377 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2379 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
2381 2013-03-05 Richard Biener <rguenther@suse.de>
2383 PR tree-optimization/56270
2384 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
2385 of loads after scheduling an SLP instance.
2387 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2389 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
2391 (check_gcc_parallelize): Run guality.exp as a separate job from
2392 vect.exp with unsorted.exp and $(dg_target_exps) separately from
2393 struct-layout-1.exp with stackalign.exp.
2395 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
2398 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
2399 load_index sbitmap even if some bit in it isn't set.
2402 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
2403 (discover_iteration_bound_by_body_walk): Change queues to
2404 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
2405 spelling in comment. Call safe_push on queues[bound_index] directly.
2406 Release queues[queue_index] in every iteration unconditionally.
2407 Release bounds vector.
2410 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
2411 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
2412 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
2415 2013-03-05 Richard Biener <rguenther@suse.de>
2418 * tree-inline.c (remap_blocks_to_null): New function.
2419 (expand_call_inline): When expanding a call stmt without
2420 an associated block inline remap all callee blocks to NULL.
2422 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2424 PR rtl-optimization/56494
2425 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
2426 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
2427 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
2430 * sel-sched-ir.c (free_sched_pools): Release
2431 succs_info_pool.stack[succs_info_pool.max_top] vectors too
2432 if succs_info_pool.max_top isn't -1.
2435 * opts.c (opts_obstack, opts_concat): Moved to...
2436 * opts-common.c (opts_obstack, opts_concat): ... here.
2438 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2441 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
2443 2013-03-04 Martin Jambor <mjambor@suse.cz>
2445 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
2446 all appropriate places.
2448 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
2450 PR tree-optimization/56424
2451 * ipa-split.c (split_function): Do not set the RSO flag if result is
2452 not by reference and its type is a register type.
2454 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
2456 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New.
2457 (microblaze_legitimate_pic_operand): Likewise.
2458 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): Call
2459 new function microblaze_legitimate_pic_operand.
2460 * config/microblaze/microblaze-protos.h
2461 (microblaze_legitimate_pic_operand): Declare.
2463 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2465 * config/microblaze/predicates.md (call_insn_simple_operand):
2466 New predicate for supported rtx code types.
2467 * config/microblaze/microblaze.md (call_internal1): Use
2468 call_insn_simple_operand predicate.
2470 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2473 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
2474 partitions.ordered_remove.
2477 * tree-vect-stmts.c (vectorizable_conversion): Don't call
2478 vec_oprnds0.create (1) for modifier == NONE.
2481 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
2482 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
2483 vec_oprnds1 right before pushing anything to it for
2487 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
2488 set nbbs to 0 instead of having separate code path.
2489 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
2490 instead of false as last argument if returning NULL.
2492 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
2494 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
2495 the attribute is now called "target" instead of "option".
2496 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
2497 * doc/tm.texi.in (Target Attributes): Likewise document the correct
2498 attribute/pragma name for TARGET_OPTION_VALID_P and
2499 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
2500 * doc/tm.texi: Regenerated.
2502 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
2504 * config/microblaze/microblaze.c:
2505 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
2506 * config/microblaze/microblaze.h: Add -mxl-reorder to
2508 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
2509 instructions emitted if TARGET_REORDER.
2510 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
2511 or 0 for -m/-mno case, but initialises as 2 to detect default use case
2514 2013-03-01 Xinliang David Li <davidxl@google.com>
2516 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
2519 2013-03-01 Jakub Jelinek <jakub@redhat.com>
2522 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
2523 vector even when returning true. Fix up function comment formatting.
2526 * ira-build.c (ira_loop_nodes_count): New variable.
2527 (create_loop_tree_nodes): Initialize it.
2528 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
2531 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
2532 method on dr_chain and result_chain.
2533 * tree-vect-stmts.c (vectorizable_store): Only call
2534 result_chain.create if j == 0.
2537 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
2538 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
2539 before overwriting it.
2541 2013-03-01 Tobias Burnus <burnus@net-b.de>
2543 * doc/extended.texi (C Extensions): Change order in @menu
2545 (Other MIPS Built-in Functions): Move last MIPS entry before
2546 "picoChip Built-in Functions".
2547 (SH Built-in Functions): Move after RX Built-in Functions.
2548 * doc/gcc.texi (Introduction): Change order in @menu to match @node.
2549 * doc/md.texi (Constraints): Ditto.
2550 * gty.texi (Type Information): Ditto.
2551 (User-provided marking routines for template types): Make subsection.
2552 * doc/invoke.texi (AArch64 Options): Move before
2553 "Adapteva Epiphany Options".
2555 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2556 Jakub Jelinek <jakub@redhat.com>
2559 * asan.c (gate_asan): Lookup no_sanitize_address instead of
2560 no_address_safety_analysis attribute.
2561 * doc/extend.texi (no_address_safety_attribute): Rename to
2562 no_sanitize_address attribute, mention no_address_safety_analysis
2563 attribute as deprecated alias.
2565 2013-02-28 Jakub Jelinek <jakub@redhat.com>
2568 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
2569 type to vec<vec<tree> > *.
2570 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
2571 to be vec<tree> instead of vec<tree> *, set vec_defs
2572 to vNULL and call vec_defs.create (number_of_vects), adjust other
2574 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
2575 vectorizable_condition): Adjust vect_get_slp_defs callers.
2577 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2579 * config/aarch64/aarch64.c
2580 (aarch64_float_const_representable): Remove unused variable.
2582 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2584 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
2586 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2588 * config/aarch64/aarch64-builtins.c
2589 (aarch64_init_simd_builtins): Make static.
2591 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2593 * config/aarch64/aarch64.c
2594 (aarch64_simd_make_constant): Make static.
2596 2013-02-28 Martin Jambor <mjambor@suse.cz>
2598 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
2599 with no initialization to the RHS of debug statements.
2601 2013-02-28 Martin Jambor <mjambor@suse.cz>
2603 PR tree-optimization/56294
2604 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
2606 (get_access_replacement): Do not call create_access_replacement.
2607 Assert a replacement exists.
2608 (get_repl_default_def_ssa_name): Create the replacement declaration
2611 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2613 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
2616 2013-02-28 Marek Polacek <polacek@redhat.com>
2618 PR rtl-optimization/56466
2619 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
2620 if we're changing a loop.
2621 (peel_loops_completely): Likewise.
2623 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
2626 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
2628 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2631 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
2632 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
2633 INTX_FTYPE_FX, FX_FTYPE_INTX.
2634 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
2636 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2638 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
2639 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
2640 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
2641 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
2642 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
2643 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
2644 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
2645 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
2646 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
2647 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
2648 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
2649 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
2650 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
2651 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
2652 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
2653 (avrxmega6): Increase max flash segments from 5 to 6.
2654 * config/avr/t-multilib: Regenerate.
2655 * config/avr/avr-tables.opt: Regenerate.
2656 * doc/avr-mmcu.texi: Regenerate.
2658 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2660 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
2661 (avr_device_to_arch): Rename to avr_device_to_ld.
2662 (avr_device_to_as): New prototype.
2663 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
2664 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
2665 * config/avr/driver-avr.c (avr_device_to_as): New.
2666 (avr_device_to_arch): Rename to avr_device_to_ld.
2668 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2671 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
2672 method on dr_chain and result_chain.
2675 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
2676 pointer_set_destroy on not_executed_last_iteration.
2679 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
2682 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
2683 FOR_EACH_DEFINED_FUNCTION when freeing state.
2686 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
2688 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
2692 * ipa-cp.c (decide_whether_version_node): Call vec_free on
2693 known_aggs[i].items and release known_aggs vector.
2696 * ipa-reference.c (propagate): Free node_info even for alias nodes.
2698 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2700 * config/microblaze/microblaze.c (microblaze_emit_compare):
2701 Use xor for EQ/NE comparisions.
2702 * config/microblaze/microblaze.md (cstoresf4): Add constraints
2703 (cbranchsf4): Adjust operator to comparison_operator.
2705 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2708 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
2710 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
2711 vec_safe_push, always update *slot.
2712 (redirect_edge_var_map_clear): Use vec_free.
2713 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
2714 (free_var_map_entry): Use vec_free.
2715 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
2716 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
2718 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
2721 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
2722 when the may_trap_p bit of the exprs being merged differs.
2723 Reorder tests for speculativeness in the logical and operator.
2725 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2727 * incpath.c (add_standard_paths): Use reconcat instead of concat
2728 where appropriate and avoid leaking memory.
2730 * opts.h: Include obstack.h.
2731 (opts_concat): New prototype.
2732 (opts_obstack): New declaration.
2733 * opts.c (opts_concat): New function.
2734 (opts_obstack): New variable.
2735 (init_options_struct): Call gcc_init_obstack on opts_obstack.
2736 (finish_options): Use opts_concat instead of concat
2737 and XOBNEWVEC instead of XNEWVEC.
2738 * opts-common.c (generate_canonical_option, decode_cmdline_option,
2739 generate_option): Likewise.
2740 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
2741 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
2744 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
2745 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
2747 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2750 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
2752 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2754 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
2755 (arm_block_move_unaligned_straight): Likewise.
2756 (arm_adjust_block_mem): Likewise.
2758 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2761 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
2762 temp, cond and label.
2763 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
2766 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
2767 * config/c6x/c6x.h (dbx_register_map): Update declaration.
2770 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
2771 of prologue/epilogue functions.
2774 * config/tilegx/tilegx.c (tilegx_expand_prologue):
2775 Remove unused variable cfa_offset.
2776 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
2779 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
2780 type promotion to unsigned.
2783 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
2784 for HOST_WIDE_INT of 32 bit / same size as int.
2785 (arm_block_move_unaligned_straight): Likewise.
2786 (arm_adjust_block_mem): Likewise.
2789 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
2792 2013-02-26 Marek Polacek <polacek@redhat.com>
2794 PR tree-optimization/56426
2795 * tree-ssa-loop.c (tree_ssa_loop_init): Always call
2798 2013-02-26 Richard Biener <rguenther@suse.de>
2801 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
2802 unused variable loops.
2804 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2806 PR tree-optimization/56448
2807 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
2808 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
2809 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
2810 later operands of the references, or even first operand for
2811 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
2813 PR tree-optimization/56443
2814 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
2815 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
2816 to type_for_mode langhook.
2818 2013-02-25 Matt Turner <mattst88@gmail.com>
2820 * doc/invoke.texi: Document r4700.
2822 2013-02-25 Richard Biener <rguenther@suse.de>
2824 PR tree-optimization/56175
2825 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
2827 (simplify_bitwise_binary): ... here. Also guard the conversion
2828 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
2830 2013-02-25 Catherine Moore <clm@codesourcery.com>
2833 2013-02-24 Catherine Moore <clm@codesourcery.com>
2834 Maciej W. Rozycki <macro@codesourcery.com>
2835 Tom de Vries <tom@codesourcery.com>
2836 Nathan Sidwell <nathan@codesourcery.com>
2837 Iain Sandoe <iain@codesourcery.com>
2838 Nathan Froyd <froydnj@codesourcery.com>
2839 Chao-ying Fu <fu@mips.com>
2841 * doc/extend.texi (micromips, nomicromips, nocompression):
2842 Document new function attributes.
2843 * doc/invoke.texi (minterlink-compressed, mmicromips,
2844 m14k, m14ke, m14kec): Document new options.
2845 (minterlink-mips16): Update documentation.
2846 * doc/md.texi (ZC, ZD): Document new constraints.
2847 * configure.ac (gcc_cv_as_micromips): Check if linker
2848 supports the .set micromips directive.
2849 * configure: Regenerate.
2850 * config.in: Regenerate.
2851 * config/mips/mips-tables.opt: Regenerate.
2852 * config/mips/micromips.md: New file.
2853 * constraints.md (ZC, AD): New constraints.
2854 * config/mips/predicates.md (movep_src_register): New predicate.
2855 (movep_src_operand): New predicate.
2856 (non_volatile_mem_operand): New predicate.
2857 * config/mips/mips.md (multimem): New type.
2858 (length): Differentiate between 17-bit and 18-bit branch offsets.
2859 (MOVEP1, MOVEP2): New mode iterator.
2860 (mov_<load>l): Use ZC constraint.
2861 (mov_<load>r): Likewise.
2862 (mov_<store>l): Likewise.
2863 (mov_<store>r): Likewise.
2864 (*branch_equality<mode>_inverted): Add microMIPS support.
2865 (*branch_equality<mode>): Likewise.
2866 (*jump_absolute): Likewise.
2867 (indirect_jump_<mode>): Likewise.
2868 (tablejump_<mode>): Likewise.
2869 (<optab>_internal): Likewise.
2870 (sibcall_internal): Likewise.
2871 (sibcall_value_internal): Likewise.
2872 (prefetch): Use constraint ZD.
2873 * config/mips/mips.opt (minterlink-compressed): New option.
2874 (minterlink-mips16): Now an alias for minterlink-compressed.
2875 (mmicromips): New option.
2876 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2877 (compare_and_swap_12): Likewise.
2878 (sync_add<mode>): Likewise.
2879 (sync_<optab>_12): Likewise.
2880 (sync_old_<optab>_12): Likewise.
2881 (sync_new_<optab>_12): Likewise.
2882 (sync_nand_12): Likewise.
2883 (sync_old_nand_12): Likewise.
2884 (sync_new_nand_12): Likewise.
2885 (sync_sub<mode>): Likewise.
2886 (sync_old_add<mode>): Likewise.
2887 (sync_old_sub<mode>): Likewise.
2888 (sync_new_add<mode>): Likewise.
2889 (sync_new_sub<mode>): Likewise.
2890 (sync_<optab><mode>): Likewise.
2891 (sync_old_<optab><mode>): Likewise.
2892 (sync_new_<optab><mode>): Likewise.
2893 (sync_nand<mode>): Likewise.
2894 (sync_old_nand<mode>): Likewise.
2895 (sync_new_nand<mode>): Likewise.
2896 (sync_lock_test_and_set<mode>): Likewise.
2897 (test_and_set_12): Likewise.
2898 (atomic_compare_and_swap<mode>): Likewise.
2899 (atomic_exchange<mode>_llsc): Likewise.
2900 (atomic_fetch_add<mode>_llsc): Likewise.
2901 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2902 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2903 (umips_save_restore_pattern_p): Likewise.
2904 (umips_load_store_pair_p): Likewise.
2905 (umips_output_load_store_pair): Likewise.
2906 (umips_movep_target_p): Likewise.
2907 (umips_12bit_offset_address_p): Likewise.
2908 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2909 (mips_base_mips16): Rename this...
2910 (mips_base_compression_flags): ...to this. Update all uses.
2911 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2912 (mips_mips16_decl_p): Delete.
2913 (mips_nomips16_decl_p): Delete.
2914 (mips_get_compress_on_flags): New function.
2915 (mips_get_compress_off_flags): New function.
2916 (mips_get_compress_mode): New function.
2917 (mips_get_compress_on_name): New function.
2918 (mips_get_compress_off_name): New function.
2919 (mips_insert_attributes): Support multiple compression types.
2920 (mips_merge_decl_attributes): Likewise.
2921 (umips_12bit_offset_address_p): New function.
2922 (mips_start_function_definition): Emit .set micromips directive.
2923 (mips_call_may_need_jalx_p): New function.
2924 (mips_function_ok_for_sibcall): Add microMIPS support.
2925 (mips_print_operand_punctuation): Support short delay slots and
2927 (umips_swm_mask, umips_swm_encoding): New.
2928 (umips_build_save_restore): New function.
2929 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2930 (was_mips16_p): Remove.
2931 (old_compression_mode): New.
2932 (mips_set_compression_mode): New function.
2933 (mips_set_current_function): Add microMIPS support.
2934 (mips_option_override): Likewise.
2935 (umips_save_restore_pattern_p): New function.
2936 (umips_output_save_restore): New function.
2937 (umips_load_store_pair_p_1): New function.
2938 (umips_load_store_pair_p): New function.
2939 (umips_output_load_store_pair_1): New function.
2940 (umips_output_load_store_pair): New function.
2941 (umips_movep_target_p) New function.
2942 (mips_prepare_pch_save): Add microMIPS support.
2943 * config/mips/mips.h (TARGET_COMPRESSION): New.
2944 (TARGET_CPU_CPP_BUILTINS): Update macro
2945 to use new compression flags and to support microMIPS.
2946 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2947 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2948 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2949 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2950 (ASM_SPEC): Support mmicromips and mno-micromips.
2951 (M16STORE_REG_P): New macro.
2952 (MIPS_CALL): Support TARGET_MICROMIPS.
2953 (MICROMIPS_J): New macro.
2954 (mips_base_mips16): Rename this...
2955 (mips_base_compression_flags): ...to this.
2956 (UMIPS_12BIT_OFFSET_P): New macro.
2957 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2958 (MULTILIB_DIRNAMES): Likewise.
2960 2013-02-25 Tom de Vries <tom@codesourcery.com>
2962 PR rtl-optimization/56131
2963 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
2964 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
2965 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
2967 2013-02-25 Tobias Burnus <burnus@net-b.de>
2969 * doc/invoke.texi (-fsanitize=): Move from optimization
2970 to debugging options.
2972 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2974 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
2976 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2977 Alexander Monakov <amonakov@ispras.ru>
2980 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
2981 flush pending lists also on non-jumps. Adjust comment.
2983 2013-02-24 Catherine Moore <clm@codesourcery.com>
2984 Maciej W. Rozycki <macro@codesourcery.com>
2985 Tom de Vries <tom@codesourcery.com>
2986 Nathan Sidwell <nathan@codesourcery.com>
2987 Iain Sandoe <iain@codesourcery.com>
2988 Nathan Froyd <froydnj@codesourcery.com>
2989 Chao-ying Fu <fu@mips.com>
2991 * doc/extend.texi (micromips, nomicromips, nocompression):
2992 Document new function attributes.
2993 * doc/invoke.texi (minterlink-compressed, mmicromips,
2994 m14k, m14ke, m14kec): Document new options.
2995 (minterlink-mips16): Update documentation.
2996 * doc/md.texi (ZC, ZD): Document new constraints.
2997 * configure.ac (gcc_cv_as_micromips): Check if linker
2998 supports the .set micromips directive.
2999 * configure: Regenerate.
3000 * config.in: Regenerate.
3001 * config/mips/mips-tables.opt: Regenerate.
3002 * config/mips/micromips.md: New file.
3003 * constraints.md (ZC, AD): New constraints.
3004 * config/mips/predicates.md (movep_src_register): New predicate.
3005 (movep_src_operand): New predicate.
3006 (non_volatile_mem_operand): New predicate.
3007 * config/mips/mips.md (multimem): New type.
3008 (length): Differentiate between 17-bit and 18-bit branch offsets.
3009 (MOVEP1, MOVEP2): New mode iterator.
3010 (mov_<load>l): Use ZC constraint.
3011 (mov_<load>r): Likewise.
3012 (mov_<store>l): Likewise.
3013 (mov_<store>r): Likewise.
3014 (*branch_equality<mode>_inverted): Add microMIPS support.
3015 (*branch_equality<mode>): Likewise.
3016 (*jump_absolute): Likewise.
3017 (indirect_jump_<mode>): Likewise.
3018 (tablejump_<mode>): Likewise.
3019 (<optab>_internal): Likewise.
3020 (sibcall_internal): Likewise.
3021 (sibcall_value_internal): Likewise.
3022 (prefetch): Use constraint ZD.
3023 * config/mips/mips.opt (minterlink-compressed): New option.
3024 (minterlink-mips16): Now an alias for minterlink-compressed.
3025 (mmicromips): New option.
3026 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3027 (compare_and_swap_12): Likewise.
3028 (sync_add<mode>): Likewise.
3029 (sync_<optab>_12): Likewise.
3030 (sync_old_<optab>_12): Likewise.
3031 (sync_new_<optab>_12): Likewise.
3032 (sync_nand_12): Likewise.
3033 (sync_old_nand_12): Likewise.
3034 (sync_new_nand_12): Likewise.
3035 (sync_sub<mode>): Likewise.
3036 (sync_old_add<mode>): Likewise.
3037 (sync_old_sub<mode>): Likewise.
3038 (sync_new_add<mode>): Likewise.
3039 (sync_new_sub<mode>): Likewise.
3040 (sync_<optab><mode>): Likewise.
3041 (sync_old_<optab><mode>): Likewise.
3042 (sync_new_<optab><mode>): Likewise.
3043 (sync_nand<mode>): Likewise.
3044 (sync_old_nand<mode>): Likewise.
3045 (sync_new_nand<mode>): Likewise.
3046 (sync_lock_test_and_set<mode>): Likewise.
3047 (test_and_set_12): Likewise.
3048 (atomic_compare_and_swap<mode>): Likewise.
3049 (atomic_exchange<mode>_llsc): Likewise.
3050 (atomic_fetch_add<mode>_llsc): Likewise.
3051 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3052 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3053 (umips_save_restore_pattern_p): Likewise.
3054 (umips_load_store_pair_p): Likewise.
3055 (umips_output_load_store_pair): Likewise.
3056 (umips_movep_target_p): Likewise.
3057 (umips_12bit_offset_address_p): Likewise.
3058 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3059 (mips_base_mips16): Rename this...
3060 (mips_base_compression_flags): ...to this. Update all uses.
3061 (mips_attribute_table): Add micromips, nomicromips and nocompression.
3062 (mips_mips16_decl_p): Delete.
3063 (mips_nomips16_decl_p): Delete.
3064 (mips_get_compress_on_flags): New function.
3065 (mips_get_compress_off_flags): New function.
3066 (mips_get_compress_mode): New function.
3067 (mips_get_compress_on_name): New function.
3068 (mips_get_compress_off_name): New function.
3069 (mips_insert_attributes): Support multiple compression types.
3070 (mips_merge_decl_attributes): Likewise.
3071 (umips_12bit_offset_address_p): New function.
3072 (mips_start_function_definition): Emit .set micromips directive.
3073 (mips_call_may_need_jalx_p): New function.
3074 (mips_function_ok_for_sibcall): Add microMIPS support.
3075 (mips_print_operand_punctuation): Support short delay slots and
3077 (umips_swm_mask, umips_swm_encoding): New.
3078 (umips_build_save_restore): New function.
3079 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3080 (was_mips16_p): Remove.
3081 (old_compression_mode): New.
3082 (mips_set_compression_mode): New function.
3083 (mips_set_current_function): Add microMIPS support.
3084 (mips_option_override): Likewise.
3085 (umips_save_restore_pattern_p): New function.
3086 (umips_output_save_restore): New function.
3087 (umips_load_store_pair_p_1): New function.
3088 (umips_load_store_pair_p): New function.
3089 (umips_output_load_store_pair_1): New function.
3090 (umips_output_load_store_pair): New function.
3091 (umips_movep_target_p) New function.
3092 (mips_prepare_pch_save): Add microMIPS support.
3093 * config/mips/mips.h (TARGET_COMPRESSION): New.
3094 (TARGET_CPU_CPP_BUILTINS): Update macro
3095 to use new compression flags and to support microMIPS.
3096 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3097 (MIPS_ARCH_FLOAT_SPEC): Likewise.
3098 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3099 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3100 (ASM_SPEC): Support mmicromips and mno-micromips.
3101 (M16STORE_REG_P): New macro.
3102 (MIPS_CALL): Support TARGET_MICROMIPS.
3103 (MICROMIPS_J): New macro.
3104 (mips_base_mips16): Rename this...
3105 (mips_base_compression_flags): ...to this.
3106 (UMIPS_12BIT_OFFSET_P): New macro.
3107 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3108 (MULTILIB_DIRNAMES): Likewise.
3110 2013-02-24 Jakub Jelinek <jakub@redhat.com>
3113 * target-globals.c (save_target_globals): For init_reg_sets and
3114 target_reinit remporarily set this_fn_optabs to this_target_optabs.
3116 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
3118 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
3119 * config/aarch64/t-aarch64
3120 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
3122 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
3125 * lra-constraints.c (process_alt_operands): Reload operand
3126 conflicting with earlier clobber only if no more other conflicting
3129 2013-02-22 Jakub Jelinek <jakub@redhat.com>
3132 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
3133 if not linking a shared library.
3135 2013-02-22 Seth LaForge <sethml@google.com>
3137 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
3139 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
3141 * config/arm/arm.md (split for extendsidi): Update condition.
3142 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
3143 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
3144 (qhs_zextenddi_cstr): Likewise.
3146 2013-02-21 Jakub Jelinek <jakub@redhat.com>
3149 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
3150 avoid signed wrapping.
3151 (expand_mult): Handle properly multiplication by
3152 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
3153 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
3154 in the compiler if coeff is HOST_WIDE_INT_MIN.
3155 (expand_divmod): Don't make ext_op1 static, change it's type to uhwi.
3156 Avoid undefined behavior in -INTVAL (op1).
3158 PR rtl-optimization/50339
3159 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
3161 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
3162 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
3163 into splitting_ashiftrt field.
3164 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
3166 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
3169 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
3172 * trans-mem.c (execute_tm_mark): Do not expand transactions that
3173 are sure to go irrevocable.
3175 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
3177 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
3178 scalars are valid operands.
3180 2013-02-21 Martin Jambor <mjambor@suse.cz>
3182 PR tree-optimization/56310
3183 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
3184 only matching indices and non-negative final offsets.
3185 (intersect_aggregates_with_edge): Pass src_idx to
3186 agg_replacements_to_vector. Pass src_idx insstead of index to
3187 intersect_with_agg_replacements.
3189 2013-02-21 Martin Jambor <mjambor@suse.cz>
3191 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
3192 instead of hard-wired defaults.
3194 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
3196 * doc/invoke.texi (MIPS Options): Update documentation of the
3197 floating-point multiply-accumulate instruction restrictions.
3199 2013-02-21 Kostya Serebryany <kcc@google.com>
3201 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
3202 asan_shadow_offset on x86_64 linux.
3204 2013-02-21 Richard Biener <rguenther@suse.de>
3206 PR tree-optimization/56415
3208 2013-02-11 Richard Biener <rguenther@suse.de>
3210 PR tree-optimization/56273
3211 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3214 2013-02-21 Jakub Jelinek <jakub@redhat.com>
3217 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
3221 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
3222 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
3224 2013-02-20 Jan Hubicka <jh@suse.cz>
3226 PR tree-optimization/56265
3227 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph when
3228 target is referenced for first time.
3230 2013-02-20 Richard Biener <rguenther@suse.de>
3232 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
3233 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
3234 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3235 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
3236 not return anything.
3237 (rename_ssa_copies): Do not remove unused locals.
3238 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
3239 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
3240 * passes.c (execute_function_todo): Do not schedule unused locals
3241 removal if cleanup_tree_cfg did something.
3242 * tree-ssa-live.c (remove_unused_locals): Dump statistics
3243 about the number of removed locals.
3245 2013-02-20 Richard Biener <rguenther@suse.de>
3247 PR tree-optimization/56398
3248 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip
3251 2013-02-20 Martin Jambor <mjambor@suse.cz>
3253 PR tree-optimization/55334
3254 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
3255 restricted pointers to arrays.
3257 2013-02-20 Richard Biener <rguenther@suse.de>
3258 Jakub Jelinek <jakub@redhat.com>
3260 PR tree-optimization/56396
3261 * tree-ssa-ccp.c (n_const_val): New static variable.
3262 (get_value): Return NULL for SSA names we don't have a lattice
3264 (ccp_initialize): Initialize n_const_val.
3265 * tree-ssa-copy.c (n_copy_of): New static variable.
3266 (init_copy_prop): Initialize n_copy_of.
3267 (get_value): Return NULL_TREE for SSA names we don't have a
3270 2013-02-20 Martin Jambor <mjambor@suse.cz>
3272 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
3274 2013-02-20 Richard Biener <rguenther@suse.de>
3276 * genpreds.c (write_lookup_constraint): Do not compare first
3277 letter of the constraint again.
3279 2013-02-20 Richard Biener <rguenther@suse.de>
3281 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
3283 (get_use_iv_cost): Terminate hashtable walk when coming across
3286 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
3288 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
3289 reassociation for avx2 targets.
3291 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3293 * config/microblaze/microblaze.c: microblaze_has_clz = 0
3294 Add version check for v8.10.a to enable microblaze_has_clz
3295 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
3296 version and TARGET_PATTERN_COMPARE check
3297 * config/microblaze/microblaze.md: New clzsi2 instruction
3299 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3301 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
3302 function before branching.
3304 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
3306 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
3308 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
3310 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
3313 * sel-sched.c: Include ira.h.
3314 (implicit_clobber_conflict_p): New function.
3315 (moveup_expr): Use it.
3316 * Makefile.in (sel-sched.o): Depend on ira.h.
3318 2013-02-19 Richard Biener <rguenther@suse.de>
3320 PR tree-optimization/56384
3321 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
3322 (vn_hash_type): Split out from ...
3323 (vn_hash_constant_with_type): ... here.
3324 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
3325 (vn_phi_eq): Compare types from vn_phi_s structure.
3326 (vn_phi_lookup): Populate vn_phi_s type.
3327 (vn_phi_insert): Likewise.
3329 2013-02-19 Jakub Jelinek <jakub@redhat.com>
3331 PR tree-optimization/56350
3332 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
3333 if haven't found reduction or nested cycle operand, rather than
3334 asserting we must find it.
3336 PR tree-optimization/56381
3337 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
3340 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3341 Jakub Jelinek <jakub@redhat.com>
3344 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
3345 (swap_optab_enable): Same.
3346 (init_all_optabs): Use argument instead of global.
3347 * tree.h (struct tree_optimization_option): New field target_optabs.
3348 * expr.h (init_all_optabs): Add argument to prototype.
3349 (TREE_OPTIMIZATION_OPTABS): New.
3350 (save_optabs_if_changed): Protoize.
3351 * optabs.h: Declare this_fn_optabs.
3352 * optabs.c (save_optabs_if_changed): New.
3353 Declare this_fn_optabs.
3354 (init_optabs): Add argument to init_all_optabs() call.
3355 * function.c (invoke_set_current_function_hook): Handle per
3357 * function.h (struct function): New field optabs.
3358 * config/mips/mips.c (mips_set_mips16_mode): Handle when
3359 optimization_current_node has changed.
3360 * target-globals.h (save_target_globals_default_opts): Protoize.
3361 * target-globals.c (save_target_globals_default_opts): New.
3363 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3366 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
3367 registers %fr12 and %fr12R as call used.
3370 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
3371 and HImode, require all displacements to be an integer multiple of
3373 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
3374 only allow QImode and HImode when reload is in progress and strict is
3375 true. Likewise for symbolic addresses. Use base14_operand to check
3376 displacements in REG+BASE addresses.
3378 2013-02-18 Richard Biener <rguenther@suse.de>
3380 PR tree-optimization/56366
3381 * tree-vect-loop.c (get_initial_def_for_induction): Properly
3382 handle sign-conversion of outer-loop initial induction value.
3384 2013-02-18 Richard Biener <rguenther@suse.de>
3387 * cfghooks.c (merge_blocks): If we merge a latch into another
3388 block adjust references to it.
3389 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
3390 (verify_loop_structure): Verify that a recorded latch is in fact
3393 2013-02-18 Richard Biener <rguenther@suse.de>
3395 PR tree-optimization/56321
3396 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
3397 order SSA name release and virtual operand unlinking.
3399 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3401 * config/microblaze/microblaze.md (save_stack_block): Define.
3402 (restore_stack_block): Likewise.
3404 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3406 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
3407 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
3408 * config/microblaze/microblaze.c (microblaze_option_override):
3409 Bail out early for PIC modes when target does not support PIC.
3411 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3413 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
3414 Replace with a microblaze version.
3415 (microblaze_trampoline_init): Adapt for microblaze.
3416 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
3419 2013-02-16 Jakub Jelinek <jakub@redhat.com>
3420 Dodji Seketeli <dodji@redhat.com>
3423 * asan.c (get_mem_refs_of_builtin_call): White space and style
3425 (instrument_mem_region_access): Do not forget to always put
3426 instrumentation of the of 'base' and 'base + len' in a "if (len !=
3427 0) statement, even for cases where either 'base' or 'base + len'
3428 are not instrumented -- because they have been previously
3429 instrumented. Simplify the logic by putting all the statements
3430 instrument 'base + len' inside a sequence, and then insert that
3431 sequence right before the current insertion point. Then, to
3432 instrument 'base + len', just get an iterator on that statement.
3433 And do not forget to update the pointer to iterator the function
3434 received as argument.
3436 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
3438 PR rtl-optimization/56348
3439 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
3441 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
3443 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
3444 (clean_graph_dump_file): Pass base to start_graph_dump.
3446 2013-02-14 Richard Henderson <rth@redhat.com>
3449 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
3451 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
3453 * collect2-aix.h: Define F_LOADONLY.
3455 2013-02-14 Richard Biener <rguenther@suse.de>
3458 * varasm.c (output_constant_def_1): Get the decl representing
3459 the constant as argument.
3460 (output_constant_def): Wrap output_constant_def_1.
3461 (make_decl_rtl): Use output_constant_def_1 with the decl
3462 representing the constant.
3463 (build_constant_desc): Optionally re-use a decl already
3464 representing the constant.
3465 (tree_output_constant_def): Adjust.
3467 2013-02-14 Dodji Seketeli <dodji@redhat.com>
3470 * asan.c (instrument_builtin_call): Really put the length of the
3471 second source argument into src1_len.
3473 2013-02-13 Jakub Jelinek <jakub@redhat.com>
3475 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
3476 argument. If it is false, don't create edge from then_bb to
3478 (insert_if_then_before_iter): Pass true to it.
3479 (build_check_stmt): Pass false to it.
3480 (transform_statements): Flush hash table only on extended basic
3481 block boundaries, rather than at the beginning of every bb.
3482 Don't flush hash table on nonfreeing_call_p calls.
3483 * tree-flow.h (nonfreeing_call_p): New prototype.
3484 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
3486 2013-02-13 David S. Miller <davem@davemloft.net>
3488 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
3490 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
3493 * ira.c (max_regno_before_ira): Move from ...
3495 (fix_reg_equiv_init): Use max_regno_before_ira instead of
3498 2013-02-13 Jakub Jelinek <jakub@redhat.com>
3500 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
3502 2013-02-13 Richard Biener <rguenther@suse.de>
3505 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
3506 globals in MEM_REFs.
3508 2013-02-13 Richard Biener <rguenther@suse.de>
3510 * loop-init.c (loop_optimizer_init): Clear loop state when
3511 re-initializing preserved loops.
3512 * loop-unswitch.c (unswitch_single_loop): Return whether
3513 we unswitched the loop. Do not verify loop state here.
3514 (unswitch_loops): When we unswitched a loop discover new
3517 2013-02-13 Kostya Serebryany <kcc@google.com>
3519 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset on x86_64
3521 * sanitizer.def: Rename __asan_init to __asan_init_v1.
3523 2013-02-12 Dodji Seketeli <dodji@redhat.com>
3525 Avoid instrumenting duplicated memory access in the same basic block
3526 * Makefile.in (asan.o): Add new dependency on hash-table.h
3527 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
3528 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
3529 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
3530 (free_mem_ref_resources, has_mem_ref_been_instrumented)
3531 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
3532 (get_mem_ref_of_assignment): New functions.
3533 (get_mem_refs_of_builtin_call): Extract from
3534 instrument_builtin_call and tweak a little bit to make it fit with
3536 (instrument_builtin_call): Use the new
3537 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
3538 of is_gimple_builtin_call.
3539 (instrument_derefs, instrument_mem_region_access): Insert the
3540 instrumented memory reference into the hash table.
3541 (maybe_instrument_assignment): Renamed instrument_assignment into
3542 this, and change it to advance the iterator when instrumentation
3543 actually happened and return true in that case. This makes it
3544 homogeneous with maybe_instrument_assignment, and thus give a
3545 chance to callers to be more 'regular'.
3546 (transform_statements): Clear the memory reference hash table
3547 whenever we enter a new BB, when we cross a function call, or when
3548 we are done transforming statements. Use
3549 maybe_instrument_assignment instead of instrumentation. No more
3550 need to special case maybe_instrument_assignment and advance the
3551 iterator after calling it; it's now handled just like
3552 maybe_instrument_call. Update comment.
3554 2013-02-13 Richard Biener <rguenther@suse.de>
3556 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3557 Fix loop discovery code.
3559 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
3562 * lra-constraints.c (process_alt_operands): Match early clobber
3563 operand with itself. Check conflicts with earlyclobber only if
3564 the operand is not reloaded. Prefer to reload conflicting operand
3565 if earlyclobber and matching operands are the same.
3567 2013-02-12 Richard Biener <rguenther@suse.de>
3570 * lto-streamer-out.c (write_symbol): Do not output symbols
3571 for hard register variables.
3573 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
3576 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
3577 (umulsidi3_insn, mulsidi3_insn): New insns.
3579 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
3581 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
3582 (struct tune_params): Add vec_costs field.
3583 * config/arm/arm.c (arm_builtin_vectorization_cost)
3584 (arm_add_stmt_cost): New functions.
3585 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
3586 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
3587 (arm_default_vec_cost): New struct of type cpu_vec_costs.
3588 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
3589 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
3590 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
3591 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
3593 2013-02-12 Richard Biener <rguenther@suse.de>
3596 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
3597 decls again if possible.
3599 2013-02-12 Richard Biener <rguenther@suse.de>
3602 * tree-ssa.c (verify_ssa_name): Fix check, move
3603 SSA_NAME_IN_FREE_LIST check up.
3605 2013-02-12 Jakub Jelinek <jakub@redhat.com>
3606 Steven Bosscher <steven@gcc.gnu.org>
3608 PR rtl-optimization/56151
3609 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
3610 equal to op0 or op1, and last_insn pattern is CODE operation
3611 with MEM dest and one of the operands matches that MEM.
3613 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
3615 * doc/extend.texi: Document Function Multiversioning and "default"
3616 parameter string to target attribute.
3617 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
3618 target attribute parameter is "default".
3619 (ix86_compare_version_priority): Remove checks for target attribute.
3620 (ix86_mangle_function_version_assembler_name): Change error to sorry.
3621 Remove check for target attribute equal to NULL. Add assert.
3622 (ix86_generate_version_dispatcher_body): Change error to sorry.
3624 2013-02-11 Iain Sandoe <iain@codesourcery.com>
3625 Jack Howarth <howarth@bromo.med.uc.edu>
3626 Patrick Marlier <patrick.marlier@gmail.com>
3629 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
3630 define ENDFILE_SPEC as TM_DESTRUCTOR.
3631 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
3633 2013-02-11 Alexander Potapenko <glider@google.com>
3634 Jack Howarth <howarth@bromo.med.uc.edu>
3635 Jakub Jelinek <jakub@redhat.com>
3638 * config/darwin.c (cdtor_record): Rename ctor_record.
3639 (sort_cdtor_records): Rename sort_ctor_records.
3640 (finalize_dtors): New routine to sort destructors by
3641 priority before use in assemble_integer.
3642 (machopic_asm_out_destructor): Use finalize_dtors if needed.
3644 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
3646 PR rtl-optimization/56275
3647 * simplify-rtx.c (avoid_constant_pool_reference): Check that
3648 offset is non-negative and less than cmode size before
3649 calling simplify_subreg.
3651 2013-02-11 Richard Biener <rguenther@suse.de>
3653 PR tree-optimization/56264
3654 * cfgloop.h (fix_loop_structure): Adjust prototype.
3655 * loop-init.c (fix_loop_structure): Return the number of
3656 newly discovered loops.
3657 * tree-cfgcleanup.c (repair_loop_structures): When new loops
3658 are discovered, do a full loop-closed SSA rewrite.
3660 2013-02-11 Richard Biener <rguenther@suse.de>
3662 PR tree-optimization/56273
3663 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3665 (check_array_ref): Fix missing newline in dumps.
3666 (search_for_addr_array): Likewise.
3668 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
3670 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
3672 2013-02-09 Jakub Jelinek <jakub@redhat.com>
3675 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
3677 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
3679 PR rtl-optimization/56246
3680 * lra-constraints.c (simplify_operand_subreg): Try to reuse
3682 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
3683 constraints are satisfied.
3685 2013-02-08 Jeff Law <law@redhat.com>
3688 * emit-rtl.c (reg_is_parm_p): New function.
3689 * regs.h (reg_is_parm_p): New prototype.
3690 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
3691 callee-clobbered registers.
3693 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3696 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
3697 If there is no implicit builtin declaration, just return NULL.
3699 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3701 * config/i386/sse.md (FMAMODEM): New mode iterator.
3702 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
3703 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
3705 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3707 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
3708 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
3709 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
3711 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3713 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
3714 (microblaze*-*-elf): Likewise.
3715 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
3717 * config/microblaze/microblaze-c.c: Add builtin defines for
3718 _LITTLE_ENDIAN and _BIG_ENDIAN.
3719 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
3720 add to TARGET_DEFAULT flags.
3721 Expand ASM_SPEC and LINK_SPEC.
3722 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3723 * config/microblaze/microblaze.md: Update extendsidi2 and
3724 movdi_internal instructions to use low-order / high-order reg
3726 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
3727 options and inversemask / mask of LITTLE_ENDIAN.
3728 * config/microblaze/t-microblaze: Expand multilib options to
3729 include mlittle-endian (le) and update exceptions patterns.
3731 2013-02-08 Jakub Jelinek <jakub@redhat.com>
3733 PR rtl-optimization/56195
3734 * lra-constraints.c (get_reload_reg): Don't reuse regs
3735 if they have smaller mode than requested, if they have
3736 wider mode than requested, try to return a SUBREG.
3738 PR tree-optimization/56250
3739 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
3740 if type is unsigned and code isn't MULT_EXPR.
3742 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3744 PR tree-optimization/56064
3745 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
3746 bits according to mode.
3747 * fixed-value.h (fixed_from_double_int)
3748 (const_fixed_from_double_int): Adjust comments.
3750 2013-02-08 Richard Biener <rguenther@suse.de>
3753 * lto-streamer.h (struct data_in): Remove current_file, current_line
3754 and current_col members.
3755 * lto-streamer-out.c (lto_output_location): Stream changed bits
3756 en-block for efficiency.
3757 * lto-streamer-in.c (clear_line_info): Remove.
3758 (lto_input_location): Cache current file, line and column
3759 globally via local statics. Read changed bits en-block.
3760 (input_function): Do not call clear_line_info.
3761 (lto_read_body): Likewise.
3762 (lto_input_toplevel_asms): Likewise.
3764 2013-02-08 Michael Matz <matz@suse.de>
3766 PR tree-optimization/52448
3767 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
3768 (nt_call_phase): New static.
3769 (add_or_mark_expr): Only mark accesses with newer phase than any
3771 (nonfreeing_call_p): New.
3772 (nt_init_block): Update nt_call_phase, mark blocks as visited.
3773 (nt_fini_block): Keep blocks marked as visited.
3774 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
3776 2013-02-08 Richard Biener <rguenther@suse.de>
3778 * ira.c (ira): Free broken dominator information.
3780 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3782 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
3784 2013-02-08 Marek Polacek <polacek@redhat.com>
3786 * cfgloop.c (verify_loop_structure): Add more checking of headers.
3788 2013-02-08 Richard Biener <rguenther@suse.de>
3791 * cfgloop.h (flow_loops_find): Adjust.
3792 (bb_loop_header_p): Declare.
3793 * cfgloop.c (bb_loop_header_p): New function split out from ...
3794 (flow_loops_find): ... here. Adjust function signature,
3795 support incremental loop structure update.
3796 (verify_loop_structure): Cleanup. Verify a loop is a loop.
3797 * cfgloopmanip.c (fix_loop_structure): Move ...
3798 * loop-init.c (fix_loop_structure): ... here.
3799 (apply_loop_flags): Split out from ...
3800 (loop_optimizer_init): ... here.
3801 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
3802 in incremental mode, only remove dead loops here.
3804 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3807 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
3808 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
3809 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
3810 (*round<mode>3.libgcc): New insns for fixed-modes.
3811 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
3812 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
3813 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
3814 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
3815 implementations. Define to __builtin_avr_absFX,
3816 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
3817 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
3818 __builtin_avr_countlsFX, respectively.
3819 * config/avr/avr-c.c (target.h): Include it.
3820 (enum avr_builtin_id): New enum.
3821 (avr_resolve_overloaded_builtin): New static function.
3822 (avr_register_target_pragmas): Use it to set
3823 targetm.resolve_overloaded_builtin.
3824 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
3825 tree nodes used by DEF_BUILTIN.
3826 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
3827 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
3828 <AVR_BUILTIN_xxBITS>: Same.
3830 2013-02-08 Richard Biener <rguenther@suse.de>
3832 * cfgloop.c (verify_loop_structure): Properly handle
3833 a loop exiting to another loop header.
3834 * ira-int.h (ira_loops): Remove.
3835 * ira.c (ira_loops): Remove.
3836 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
3837 (do_reload): Use loop_optimizer_finalize.
3838 * ira-build.c (create_loop_tree_nodes): Use get_loops and
3839 number_of_loops to access the loop tree.
3840 (more_one_region_p): Likewise.
3841 (finish_loop_tree_nodes): Likewise.
3842 (rebuild_regno_allocno_maps): Likewise.
3843 (mark_loops_for_removal): Likewise.
3844 (mark_all_loops_for_removal): Likewise.
3845 (remove_unnecessary_regions): Likewise.
3846 (ira_build): Likewise.
3847 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3849 2013-02-08 Richard Biener <rguenther@suse.de>
3851 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
3852 * ipa-pure-const.c (analyze_function): Avoid calling
3853 mark_irreducible_loops twice.
3854 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
3856 2013-02-07 David S. Miller <davem@davemloft.net>
3858 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
3860 * var-tracking.c (vt_add_function_parameter): Test the presence of
3861 HAVE_window_save properly and do not remap argument registers when
3862 we have a leaf function.
3864 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
3867 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
3869 * config/i386/i386.c (ix86_print_operand): Ditto.
3871 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3873 * lra-constraints.c (process_alt_operands): Fix recently added comment.
3875 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3877 PR rtl-optimization/56225
3878 * lra-constraints.c (process_alt_operands): Check that reload hard
3879 reg can hold value for strict_low_part.
3881 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3884 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
3885 dwarf2out_end_function.
3886 (in_first_function_p, maybe_at_text_label_p,
3887 first_loclabel_num_not_at_text_label): New variables.
3888 (dwarf2out_var_location): In the first function find out
3889 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
3890 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
3893 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
3895 PR rtl-optimization/56178
3896 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
3897 SUBREG of a register. Tidy up related block of code.
3898 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
3899 note if the source is a register or a SUBREG of a register.
3901 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3904 * config/rs6000/rs6000.md (ptrm): New mode attr.
3905 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
3906 call_value_indirect_aix<pttrsize>,
3907 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
3910 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3912 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
3913 if -bnortl. Convert to strcmp and strncmp.
3915 2013-02-07 Alan Modra <amodra@gmail.com>
3918 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
3919 addresses won't wrap when offsetting.
3920 (rs6000_secondary_reload): Provide secondary reloads needed for
3921 wrapping LO_SUM addresses.
3923 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
3925 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
3926 MACH, just __MACH__.
3928 2013-02-06 Richard Biener <rguenther@suse.de>
3930 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
3931 instead of calling fix_loop_structure.
3933 2013-02-06 Jakub Jelinek <jakub@redhat.com>
3936 * omp-low.c (use_pointer_for_field): Return false if
3937 lower_send_shared_vars doesn't generate any copy-out code.
3939 2013-02-06 Tom de Vries <tom@codesourcery.com>
3941 PR rtl-optimization/56131
3942 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
3943 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
3944 of the label is NULL. Add comment.
3946 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3948 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
3951 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
3952 (STATIC_LIBTSAN_LIBS): Likewise.
3953 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
3954 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
3955 is defined, don't add anything else beyond that.
3956 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
3957 (LINK_COMMAND_SPEC): Use them.
3959 PR tree-optimization/56205
3960 * tree-stdarg.c (check_all_va_list_escapes): Return true if
3961 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
3962 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
3964 2013-02-05 Richard Biener <rguenther@suse.de>
3966 PR tree-optimization/53342
3967 PR tree-optimization/53185
3968 * tree-vectorizer.h (vect_check_strided_load): Remove.
3969 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
3970 not disallow peeling for vectorized strided loads.
3971 (vect_check_strided_load): Make static and simplify.
3972 (vect_analyze_data_refs): Adjust.
3973 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
3974 correctly when vectorizing strided loads.
3976 2013-02-05 Richard Biener <rguenther@suse.de>
3978 * doc/install.texi: Refer to ISL, not PPL.
3980 2013-02-05 Jan Hubicka <jh@suse.cz>
3982 PR tree-optimization/55789
3983 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
3985 2013-02-05 Jan Hubicka <jh@suse.cz>
3987 PR tree-optimization/55789
3988 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
3989 the dead call anyway.
3991 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
3994 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
3996 2013-02-04 Alexander Potapenko <glider@google.com>
3997 Jack Howarth <howarth@bromo.med.uc.edu>
3998 Jakub Jelinek <jakub@redhat.com>
4001 * config/darwin.c (sort_ctor_records): Stabilized qsort
4002 on constructor priority by using original position.
4003 (finalize_ctors): New routine to sort constructors by
4004 priority before use in assemble_integer.
4005 (machopic_asm_out_constructor): Use finalize_ctors if needed.
4007 2013-02-04 Jakub Jelinek <jakub@redhat.com>
4010 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
4011 about visibility on artificial decls.
4012 * config/sol2.c (solaris_assemble_visibility): Likewise.
4014 2013-02-04 Kai Tietz <ktietz@redhat.com>
4017 * config/i386/i386.c (function_value_ms_64): Add additional valtype
4018 argument and improve checking of return-argument types for 16-byte
4020 (ix86_function_value_1): Add additional valtype argument on call
4021 of function_value_64.
4022 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
4023 handling infunction_value_64 function.
4025 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
4027 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
4029 2013-02-04 Richard Biener <rguenther@suse.de>
4031 PR tree-optimization/56188
4032 * tree-ssa-structalias.c (label_visit): Consider case with
4033 initially non-empty points-to set.
4034 (perform_var_substitution): Dump node mapping and clean up.
4036 2013-02-04 Richard Guenther <rguenther@suse.de>
4039 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
4040 node prevail as last resort.
4041 (lto_symtab_merge_decls): Remove guard on LTRANS here.
4042 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
4044 2013-02-04 Richard Biener <rguenther@suse.de>
4046 PR tree-optimization/56113
4047 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
4049 (equiv_class_lookup_or_add): ... this.
4050 (label_visit): Adjust and fix error in previous patch.
4051 (perform_var_substitution): Adjust.
4053 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
4055 * config/sh/divtab.c: Fix formatting and comments throughout the file.
4056 * config/sh/sh4-300.md: Likewise.
4057 * config/sh/sh4a.md: Likewise.
4058 * config/sh/constraints.md: Likewise.
4059 * config/sh/sh.md: Likewise.
4060 * config/sh/netbsd-elf.h: Likewise.
4061 * config/sh/predicates.md: Likewise.
4062 * config/sh/sh-protos.h: Likewise.
4063 * config/sh/ushmedia.h: Likewise.
4064 * config/sh/linux.h: Likewise.
4065 * config/sh/sh.c: Likewise.
4066 * config/sh/superh.h: Likewise.
4067 * config/sh/elf.h: Likewise.
4068 * config/sh/sh4.md: Likewise.
4069 * config/sh/sh.h: Likewise.
4071 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4073 * config/pa/constraints.md: Adjust unused letters. Change "T"
4074 constraint to match_test floating_point_store_memory_operand().
4075 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
4076 (base14_operand): New.
4077 (floating_point_store_memory_operand): New.
4078 (integer_store_memory_operand): Revise to use base14_operand and
4079 reg_plus_base_memory_operand.
4080 (move_dest_operand): Allow symbolic_memory_operands.
4081 (symbolic_memory_operand): Check for LO_SOM.
4082 (symbolic_operand): Change default case to break.
4083 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
4084 CONST_DOUBLE values to be reloaded by putting them into memory when
4085 the destination is a floating point register.
4086 (movdf): Remove code to handle CONST_DOUBLE.
4088 (reload_indf_r1): New.
4089 (reload_insf_r1): New.
4090 Consistently use "Q" and "T" constraints with integer and floating
4091 point move instructions, respectively.
4092 (movdi): Remove FAIL.
4093 Change predicate for source operand unamed DImode move from
4094 general_operand to move_src_operand.
4095 (umulsidi3): Change predicate for destination operand to
4097 Likewise for similar unamed patterns.
4098 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
4099 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
4100 (hppa_legitimize_address): Simplify mask calculation.
4101 (pa_emit_move_sequence): Revised handling of secondary reloads from
4102 REG+D addresses for floating point loads and stores. Directly handle
4103 loading CONST0_RTX (mode) to a floating point register.
4104 (pa_secondary_reload): Handle reloading DF and SFmode constant values
4105 to floating point registers. Don't restrict secondary reloads to
4106 floating point registers to integer modes. Revise some comments and
4108 (TARGET_LEGITIMATE_ADDRESS_P): Define.
4109 (pa_legitimate_address_p): New.
4110 (pa_legitimize_reload_address): New.
4111 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
4112 (STRICT_REG_OK_FOR_BASE_P): New.
4113 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
4114 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
4116 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
4117 Andrew Dixie <andrewd@gentrack.com>
4119 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
4122 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
4124 * expmed.c (extract_bit_field_1): Pass the full width of the
4125 structure to get_best_reg_extraction_insn.
4127 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
4130 * configure.ac (use_cxa_atexit): Add AIX.
4131 * configure: Regenerate.
4133 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
4135 2013-02-01 Jakub Jelinek <jakub@redhat.com>
4138 * final.c (need_profile_function): New variable.
4139 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
4140 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
4141 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
4142 notes, targetm.asm_out.function_prologue doesn't emit anything,
4143 HAVE_prologue and profiler should be emitted before prologue,
4144 set need_profile_function instead of emitting it.
4145 (final_scan_insn): If need_profile_function, emit
4146 profile_function on the first NOTE_INSN_BASIC_BLOCK or
4147 NOTE_INSN_FUNCTION_BEG note.
4149 2013-02-01 Richard Henderson <rth@redhat.com>
4151 * config/rs6000/rs6000.md (smulditi3): New.
4154 * config/alpha/alpha.md (umulditi3): New.
4156 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
4158 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
4159 (ASM_OUTPUT_ALIGNED_LOCAL): New.
4161 2013-02-01 Richard Biener <rguenther@suse.de>
4163 PR tree-optimization/56113
4164 * tree-ssa-structalias.c (label_visit): Reduce work for
4165 single-predecessor nodes.
4167 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
4169 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
4170 range isn't testing for zero.
4172 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
4175 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
4177 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
4178 Nick Clifton <nickc@redhat.com>
4180 * config/v850/constraints.md (Q): Define as a memory constraint.
4181 * config/v850/predicates.md (label_ref_operand): New predicate.
4182 (e3v5_shift_operand): New predicate.
4183 (ior_operator): New predicate.
4184 * config/v850/t-v850: Add e3v5 multilib.
4185 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
4186 (v850_gen_movdi): Prototype.
4187 * config/v850/v850.c: Add support for e3v5 architecture.
4188 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
4190 (construct_save_jarl): Add e3v5 long JARL support.
4191 (v850_adjust_insn_length): New function. Adjust length of call
4192 insns when using e3v5 instructions.
4193 (v850_gen_movdi): New function: Generate instructions to move a
4195 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
4196 (CPP_SPEC): Define __v850e3v5__ as appropriate.
4197 (TARGET_USE_FPU): Enable for e3v5.
4198 (CONST_OK_FOR_W): New macro.
4199 (ADJUST_INSN_LENGTH): Define.
4200 * config/v850/v850.md (UNSPEC_LOOP): Define.
4201 (attr cpu): Add v850e3v5.
4202 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
4203 (movdi): New pattern.
4204 (movdi_internal): New pattern.
4205 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
4206 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
4207 (cstoresf4): Likewise.
4208 (cstoredf4): Likewise.
4209 (insv): New pattern.
4210 (rotlso3_a): New pattern.
4211 (rotlsi3_b): New pattern
4212 (rotlsi3_v850e3v5): New pattern.
4213 (doloop_begin): New pattern.
4214 (fix_loop_counter): New pattern.
4215 (doloop_end): New pattern.
4216 (branch_normal): Add e3v5 long branch support.
4217 (branch_invert): Likewise.
4218 (branch_z_normal): Likewise.
4219 (branch_z_invert): Likewise.
4220 (branch_nz_normal): Likewise.
4221 (branch_nz_invert): Likewise.
4222 (call_internal_short): Add e3v5 register-indirect JARL support.
4223 (call_internal_long): Likewise.
4224 (call_value_internal_short): Likewise.
4225 (call_value_internal_long): Likewise.
4226 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
4227 (mloop): New option.
4228 * config.gcc: Add support for configuring v840e3v5 target.
4229 * doc/invoke.texi: Document new v850 specific command line options.
4231 2013-01-31 Paul Koning <ni1d@arrl.net>
4235 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
4236 children if parent is a class.
4237 (prune_unused_types_prune): Don't add DW_AT_declaration.
4239 2013-01-31 Richard Biener <rguenther@suse.de>
4241 PR tree-optimization/56157
4242 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
4243 match up operand with SLP child.
4245 2013-01-31 Jason Merrill <jason@redhat.com>
4248 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
4249 parameters the first time.
4250 (gen_scheduled_generic_parms_dies): Check completeness here.
4252 2013-01-31 Richard Biener <rguenther@suse.de>
4255 * common.opt (faggressive-loop-optimizations): New flag,
4257 * doc/invoke.texi (faggressive-loop-optimizations): Document.
4258 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
4259 infer_loop_bounds_from_undefined by it.
4261 2013-01-31 Richard Biener <rguenther@suse.de>
4263 PR tree-optimization/56150
4264 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
4265 visit virtual operands.
4266 (find_uses_to_rename_bb): Likewise.
4268 2013-01-31 Richard Biener <rguenther@suse.de>
4270 PR tree-optimization/56150
4271 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
4272 mixed store non-store stmts.
4274 2013-01-30 Jakub Jelinek <jakub@redhat.com>
4277 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
4278 LIBASAN_EARLY_SPEC is defined.
4279 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
4280 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
4282 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
4285 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
4286 invalid args instead of ICEing on it.
4287 (ix86_valid_target_attribute_tree): Return error_mark_node if
4288 ix86_valid_target_attribute_inner_p failed.
4289 (ix86_valid_target_attribute_p): Return false only if
4290 ix86_valid_target_attribute_tree returned error_mark_node. Allow
4291 target("default") attribute.
4292 (sorted_attr_string): Change argument from const char * to tree,
4293 merge in all target attribute arguments rather than just one.
4294 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
4295 instead of free. Avoid using strcat.
4296 (ix86_mangle_function_version_assembler_name): Mangle
4297 target("default") as if no target attribute is present. Adjust
4298 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
4299 instead of xmalloc and XDELETEVEC instead of free.
4300 (ix86_function_versions): Don't return true if one of the decls
4301 doesn't have target attribute. If they don't and one of the decls
4302 is DECL_FUNCTION_VERSIONED, report an error. Adjust
4303 sorted_attr_string caller. Use XDELETEVEC instead of free.
4304 (ix86_supports_function_versions): Remove.
4305 (make_name): Fix up formatting.
4306 (make_dispatcher_decl): Remove resolver_name and its initialization.
4307 Avoid leaking memory.
4308 (is_function_default_version): Return true if there is
4309 target("default") attribute rather than no target attribute at all.
4310 (make_resolver_func): Avoid leaking memory.
4311 (ix86_generate_version_dispatcher_body): Likewise.
4312 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
4313 * target.def (supports_function_versions): Remove.
4314 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
4315 * doc/tm.texi: Regenerated.
4317 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
4319 PR rtl-optimization/56144
4320 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
4321 for values with side effects.
4323 2013-01-30 Richard Biener <rguenther@suse.de>
4325 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
4326 (sparseset_pop): Likewise.
4327 * cfganal.c (compute_idf): Likewise. Increase work-stack size
4328 to be able to use quick_push in the worker loop.
4330 2013-01-30 Marek Polacek <polacek@redhat.com>
4332 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
4334 2013-01-30 Richard Biener <rguenther@suse.de>
4337 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
4339 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
4341 PR tree-optimization/56064
4342 * fixed-value.c (fixed_from_double_int): New function.
4343 * fixed-value.h (fixed_from_double_int): New prototype.
4344 (const_fixed_from_double_int): New static inline function.
4345 * fold-const.c (native_interpret_fixed): New static function.
4346 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
4347 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
4348 (native_encode_fixed): New static function.
4349 (native_encode_expr) <FIXED_CST>: Use it.
4350 (native_interpret_int): Move double_int worker code to...
4351 * double-int.c (double_int::from_buffer): ...this new static method.
4352 * double-int.h (double_int::from_buffer): Prototype it.
4354 2013-01-30 Richard Biener <rguenther@suse.de>
4356 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
4357 New pointer-map and obstack.
4358 (init_alias_vars): Allocate pointer-map and obstack.
4359 (delete_points_to_sets): Free them.
4360 (find_what_var_points_to): Cache result.
4361 (find_what_p_points_to): Adjust for changed interface of
4362 find_what_var_points_to.
4363 (compute_points_to_sets): Likewise.
4364 (ipa_pta_execute): Likewise.
4366 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4368 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
4369 * configure: Regenerate.
4370 * config.in: Regenerate.
4371 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
4372 #nobits/#progbits if supported.
4374 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
4377 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
4378 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
4379 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
4381 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4383 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
4384 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
4386 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4388 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
4389 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
4391 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4393 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
4395 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
4396 * config/arm/cortex-a7.md: New bypasses using
4397 arm_mac_accumulator_is_result.
4399 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4401 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
4402 (cortex_a7_neon_mla): Likewise.
4403 (cortex_a7_fpfmad): New reservation.
4404 (cortex_a7_fpmacs): Use ffmas and update required units.
4405 (cortex_a7_fpmuld): Update required units and latency.
4406 (cortex_a7_fpmacd): Likewise.
4407 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
4408 (cortex_a7_neon). Likewise.
4409 (bypass) Update participating units.
4411 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4413 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
4414 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
4416 * config/arm/vfp11.md (vfp_farith): Use ffmas.
4417 (vfp_fmul): Use ffmad.
4418 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
4419 (cortex_r4_fmacd): Use ffmad.
4420 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
4421 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
4422 (cortex_a9_fmacd): Use ffmad.
4423 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
4424 (cortex_a8_vfp_macd): Use ffmad.
4425 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
4426 (cortex_a5_fpmacd): Use ffmad.
4427 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
4428 (cortex_a15_vfp_macd): Use ffmad.
4429 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
4431 2013-01-29 Jason Merrill <jason@redhat.com>
4434 * varasm.c (default_assemble_visibility): Don't warn about
4435 visibility on artificial decls.
4437 2013-01-29 Richard Biener <rguenther@suse.de>
4439 PR tree-optimization/56113
4440 * tree-ssa-structalias.c (equiv_class_lookup): Also return
4442 (label_visit): Free duplicate bitmaps and record the leader instead.
4443 (perform_var_substitution): Adjust.
4445 2013-01-29 Richard Biener <rguenther@suse.de>
4447 PR tree-optimization/55270
4448 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
4449 the CFG, schedule loops for fixup.
4451 2013-01-29 Nick Clifton <nickc@redhat.com>
4453 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
4456 2013-01-28 Leif Ekblad <leif@rdos.net>
4458 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
4459 * config/i386/i386.h (TARGET_RDOS): New macro.
4460 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
4461 * config/i386/i386.c (ix86_option_override_internal): For 64bit
4462 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
4463 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
4464 DEFAULT_LARGE_SECTION_THRESHOLD.
4465 * config/i386/i386.md (R14_REG, R15_REG): New constants.
4466 * config/i386/rdos.h: New file.
4467 * config/i386/rdos64.h: New file.
4469 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
4472 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
4475 2013-01-28 Jakub Jelinek <jakub@redhat.com>
4477 PR rtl-optimization/56117
4478 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
4479 call cselib_lookup_from_insn on the MEM before calling
4480 add_insn_mem_dependence.
4482 2013-01-28 Richard Biener <rguenther@suse.de>
4484 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
4485 to a stmt that didn't have one.
4486 (copy_phis_for_bb): Likewise for PHI arguments.
4487 (copy_debug_stmt): Likewise for debug stmts.
4489 2013-01-28 Richard Biener <rguenther@suse.de>
4491 PR tree-optimization/56034
4492 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
4493 (partition_builtin_p): Adjust.
4494 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
4495 it is the last partition.
4496 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
4497 up the vertex for the definition.
4498 (classify_partition): Classify whether a partition is a
4499 PKIND_REDUCTION, thus has uses outside of the loop.
4500 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
4501 Merge all PKIND_REDUCTION partitions into the last partition.
4502 (tree_loop_distribution): Seed partitions from reductions as well.
4504 2013-01-28 Jakub Jelinek <jakub@redhat.com>
4506 PR tree-optimization/56125
4507 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
4508 pow(x,c) into sqrt(x) * powi(x, n/2) or
4509 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
4510 optimizing for size.
4511 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
4512 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
4515 PR tree-optimization/56094
4516 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
4517 to UNKNOWN_LOCATION while gimplifying expr.
4519 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
4522 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
4523 operand 0 in movabs insn template for -masm=intel asm alternative.
4524 (*movabs<mode>_2): Ditto for operand 1.
4526 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
4529 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
4532 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4534 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
4537 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4539 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
4540 Undef to avoid warning.
4542 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4544 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
4545 * configure: Regenerate.
4547 2013-01-25 Jakub Jelinek <jakub@redhat.com>
4549 PR tree-optimization/56098
4550 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
4551 for stmts with volatile ops.
4552 (cond_store_replacement): Don't optimize if assign has volatile ops.
4553 (cond_if_else_store_replacement_1): Don't optimize if either
4554 then_assign or else_assign have volatile ops.
4555 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
4558 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4560 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
4562 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4564 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
4565 missing ':' in asm example.
4567 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
4569 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
4570 entries into lane and laneq entries.
4571 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
4572 Remove AdvSIMD scalar modes.
4573 (aarch64_sq<r>dmulh_laneq<mode>): New.
4574 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
4576 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
4577 builtin implementations to relfect changes in RTL in aarch64-simd.md.
4578 * config/aarch64/iterators.md (VCOND): New.
4581 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4584 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
4585 Add NULL LIBNAME argument to existing definitions.
4586 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
4587 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
4588 * config/avr/avr.c (DEF_BUILTIN): Same.
4589 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
4590 (avr_expand_builtin): Expand to a vanilla call if a libgcc
4591 implementation is available (DECL_ASSEMBLER_NAME is set).
4592 (avr_fold_absfx): New static function.
4593 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
4594 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
4595 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
4597 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
4598 (abshk, absk, abslk, absllk): Provide as static inline functions.
4600 2013-01-25 Marek Polacek <polacek@redhat.com>
4602 PR tree-optimization/56035
4603 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
4605 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
4607 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
4608 (*movtf_internal_rex64): Add (!o,C) alternative
4609 (*movxf_internal_rex64): Ditto.
4610 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
4612 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
4614 * doc/invoke.texi: fix typo.
4615 * doc/objc.texi: fix typo.
4617 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4619 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
4620 for the first two alternatives.
4622 2013-01-24 Diego Novillo <dnovillo@google.com>
4624 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
4625 (ggc-zone.o): Remove.
4626 * configure.ac: Remove option --with-gc.
4627 * configure: Re-generate.
4628 * doc/install.texi: Remove documentation for --with-gc.
4629 * gengtype.c (write_enum_defn): Remove. Update all users.
4630 (write_Types_process_field): Remove generation of gt_e_* argument.
4631 (output_type_enum): Remove. Update all users.
4632 (write_enum_defn): Remove. Update all users.
4633 (enum alloc_zone): Remove. Update all users.
4634 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
4635 * ggc-common.c (ggc_splay_alloc): Remove first argument.
4637 (struct ptr_data): Remove field TYPE. Update all users.
4638 (gt_pch_note_object): Remove argument TYPE. Update all users.
4639 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
4641 * ggc-none.c (ggc_alloc_typed_stat): Remove.
4642 (struct alloc_zone): Remove.
4643 (ggc_internal_alloc_zone_stat): Remove.
4644 (ggc_internal_cleared_alloc_zone_stat): Remove.
4645 * ggc-page.c (ggc_alloc_typed_stat): Remove.
4646 (ggc_pch_count_object): Remove last argument. Update all users.
4647 (ggc_pch_alloc_object): Remove last argument. Update all users.
4648 (struct alloc_zone): Remove.
4649 * ggc-zone.c: Remove.
4650 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
4651 (struct alloc_zone): Remove.
4652 (ggc_alloc_typed_stat): Remove.
4653 (ggc_alloc_typed): Remove.
4654 (ggc_splay_alloc): Remove first argument.
4655 (rtl_zone): Remove. Update all users.
4656 (tree_zone): Remove. Update all users.
4657 (tree_id_zone): Remove. Update all users.
4658 (ggc_internal_zone_alloc_stat): Remove. Update all users.
4659 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
4660 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
4661 * tree-ssanames.c: Remove references to zone allocator in comments.
4663 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
4665 * config/avr/avr.c (avr_out_fract): Make register numbers that
4666 might be outside of source operand signed.
4668 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
4670 * config/i386/constraints.md (Yf): New constraint.
4671 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
4672 of f constraint to conditionaly disable x87 register preferences.
4673 (*movdf_internal): Ditto.
4674 (*movsf_internal): Ditto.
4676 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
4679 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
4680 that have operands with impossible constraints.
4681 Add a FIXME for a speed-up opportunity.
4682 * lra-constraints.c (process_alt_operands): Verify that a class
4683 selected from constraints on asms is valid for the operand mode.
4684 (curr_insn_transform): Remove incorrect comment.
4686 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
4688 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
4689 TOC operand is a valid symbol ref in the constant pool.
4691 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4693 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
4695 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
4698 * config/avr/stdfix.h: New file.
4699 * t-avr (stdfix-gcc.h): New rule to build it.
4700 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
4702 2013-01-23 Kostya Serebryany <kcc@google.com>
4704 * config/darwin.h: remove dependency on
4705 CoreFoundation (asan on Mac OS).
4707 2013-01-23 Jakub Jelinek <jakub@redhat.com>
4710 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
4711 instead of cmpdi_operand for first comparison operand.
4712 Don't assert that comparison operands aren't both constants.
4714 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4716 * doc/install.texi (Downloading the Source): Update references to
4717 downloading separate components.
4719 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4721 * doc/extend.texi (__int128): Improve grammar.
4723 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
4726 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
4727 alternative to (o,r).
4728 (*movdi_internal_rex64): Remove (!o,n) alternative.
4729 (DImode immediate->memory splitter): Remove.
4730 (DImode immediate->memory peephole2): Remove.
4731 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
4732 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
4733 alternative to (!o,*r).
4734 (*movtf_internal_sse): New pattern.
4735 (*movxf_internal_rex64): New pattern.
4736 (*movxf_internal): Disable for TARGET_64BIT.
4737 (*movdf_internal_rex64): Remove (!o,F) alternative.
4739 2013-01-22 Jakub Jelinek <jakub@redhat.com>
4742 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
4743 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
4744 * tree-vect-loop-manip.c (find_loop_location): Also ignore
4745 stmt locations where LOCATION_LOCUS of the stmt location is
4746 UNKNOWN_LOCATION or BUILTINS_LOCATION.
4749 * config/i386/i386.md (UNSPEC_STOS): New.
4750 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
4751 *strsetqi_1): Add UNSPEC_STOS.
4753 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
4756 * doc/invoke.texi: Remove left over -Wsynth example.
4758 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4760 PR tree-optimization/56051
4761 * fold-const.c (fold_binary_loc): Don't fold
4762 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
4763 a narrowing conversion, or widening conversion from signed
4766 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4768 PR rtl-optimization/56023
4769 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
4770 dependent on debug instruction.
4772 2013-01-21 Martin Jambor <mjambor@suse.cz>
4775 * function.c (allocate_struct_function): Call
4776 invoke_set_current_function_hook earlier.
4778 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4780 * reload1.c (init_reload): Only initialize reload_obstack
4781 during the first call.
4783 2013-01-21 Marek Polacek <polacek@redhat.com>
4785 * cfgloop.c (verify_loop_structure): Fix up grammar.
4787 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
4789 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
4790 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
4792 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4795 * config/arm/marvell-pj4.md: Update copyright year.
4796 Fix up use of alu to alu_reg and simple_alu_imm.
4798 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4800 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
4802 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
4805 * lra-constraints.c (curr_insn_transform): Don't reuse original
4806 insn for secondary memory move when memory mode should be different.
4808 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4810 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
4811 atomic_storedi_1): New patterns.
4813 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4815 btver2 pipeline descriptions.
4816 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
4818 * config/i386/i386.md (btver2_decode): New type attributes.
4819 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
4821 * config/i386/btver2.md: New file describing btver2 pipelines.
4823 2013-01-19 Andrew Pinski <apinski@cavium.com>
4825 PR tree-optimization/52631
4826 * tree-ssa-sccvn (visit_use): Before looking up the original
4827 statement, try looking up the simplified expression.
4829 2013-01-19 Anthony Green <green@moxielogic.com>
4831 * config/moxie/moxie.c (moxie_expand_prologue): Set
4832 current_function_static_stack_size.
4834 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4836 PR tree-optimization/56029
4837 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
4838 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
4840 2013-01-18 Sharad Singhai <singhai@google.com>
4842 PR tree-optimization/55995
4843 * dumpfile.c (dump_loc): Print location only if available.
4844 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
4846 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
4849 * lra-constraints.c (curr_insn_transform): Reuse original insn for
4850 secondary memory move.
4851 (inherit_reload_reg): Use rclass instead of cl for
4852 check_secondary_memory_needed_p.
4854 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4857 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
4858 the case where writing real complex part of target modifies op1.
4860 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
4862 * config/aarch64/aarch64-simd.md
4863 (aarch64_vcond_internal<mode>): Handle unordered cases.
4864 * config/aarch64/iterators.md (v_cmp_result): New.
4866 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
4867 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4869 * config/arm/marvell-pj4.md: New file.
4870 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
4871 * config/arm/arm.md (generic_sched): Add marvell_pj4.
4872 (generic_vfp): Likewise.
4873 * config/arm/arm-cores.def: Add marvell-pj4.
4874 * config/arm/arm-tune.md: Regenerate.
4875 * config/arm/arm-tables.opt: Regenerate.
4876 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
4877 * doc/invoke.texi: Document marvell-pj4.
4879 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
4881 * config/aarch64/arm_neon.h: Map scalar types to standard types.
4883 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4888 * var-tracking.c (negative_power_of_two_p): New.
4889 (global_get_addr_cache, local_get_addr_cache): New.
4890 (get_addr_from_global_cache, get_addr_from_local_cache): New.
4891 (vt_canonicalize_addr): Rewrite using the above. Adjust the
4893 (vt_stack_offset_p): Remove.
4894 (vt_canon_true_dep): Always canonicalize loc's address.
4895 (clobber_overlapping_mems): Make sure we have a MEM.
4896 (local_get_addr_clear_given_value): New.
4897 (val_reset): Clear local cached entries.
4898 (compute_bb_dataflow): Create and release the local cache.
4899 Disable duplicate MEMs clobbering.
4900 (emit_notes_in_bb): Clobber MEMs likewise.
4901 (vt_emit_notes): Create and release the local cache.
4902 (vt_initialize, vt_finalize): Create and release the global
4903 cache, respectively.
4904 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
4906 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4909 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
4910 not found in the symtab.
4912 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4915 PR rtl-optimization/55547
4916 PR rtl-optimization/53827
4919 * alias.c (offset_overlap_p): New, factored out of...
4920 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
4921 the conservative special case for symbolic constants. Don't
4922 adjust zero sizes on alignment.
4924 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
4926 PR rtl-optimization/52573
4927 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
4928 REG_UNUSED for the same register.
4930 2013-01-17 Richard Biener <rguenther@suse.de>
4931 Marek Polacek <polacek@redhat.com>
4933 PR rtl-optimization/55833
4934 * loop-unswitch.c (unswitch_loops): Move loop verification...
4935 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
4936 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
4937 Set it to true when we're removing a loop from hierarchy tree in
4938 an irreducible region.
4939 (fix_bb_placements): Adjust caller.
4940 (fix_loop_placements): Likewise.
4942 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
4944 * config/avr/builtins.def (DEF_BUILTIN): Factor out
4945 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
4946 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
4947 Remove ID. Adjust comments.
4948 * config/avr/avr-c.c (avr_builtin_name): Remove.
4949 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
4950 * config/avr/avr.c (avr_tolower): New static function.
4951 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
4952 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
4953 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
4956 2013-01-17 Jan Hubicka <jh@suse.cz>
4958 PR tree-optimization/55273
4959 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
4961 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
4964 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
4965 store through atomic_store<mode>_1.
4966 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
4968 2013-01-17 Martin Jambor <mjambor@suse.cz>
4970 PR tree-optimizations/55264
4971 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
4972 for virtual methods.
4973 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
4974 virtual methods before inlining is over.
4975 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
4977 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
4980 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
4982 PR rtl-optimization/56005
4983 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
4984 pending reads for prefetch.
4986 2013-01-16 Ian Bolton <ian.bolton@arm.com>
4988 * config/aarch64/aarch64.md
4989 (*cstoresi_neg_uxtw): New pattern.
4990 (*cmovsi_insn_uxtw): New pattern.
4991 (*<optab>si3_uxtw): New pattern.
4992 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
4993 (*<optab>si3_insn_uxtw): New pattern.
4994 (*bswapsi2_uxtw): New pattern.
4996 2013-01-16 Richard Biener <rguenther@suse.de>
4998 * tree-inline.c (tree_function_versioning): Remove set but
4999 never used variable.
5001 2013-01-16 Richard Biener <rguenther@suse.de>
5003 PR tree-optimization/55964
5004 * tree-flow.h (rename_variables_in_loop): Remove.
5005 (rename_variables_in_bb): Likewise.
5006 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
5007 (copy_loop_before): Adjust and delete update-ssa status.
5008 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
5009 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
5010 (rename_variables_in_loop): Remove.
5011 (slpeel_update_phis_for_duplicate_loop): Likewise.
5012 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
5013 use available cfg machinery instead of duplicating it.
5014 Update PHI nodes and perform poor-mans SSA update here.
5015 (slpeel_tree_peel_loop_to_edge): Adjust.
5017 2013-01-16 Richard Biener <rguenther@suse.de>
5019 PR tree-optimization/54767
5020 PR tree-optimization/53465
5021 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
5022 (vrp_visit_phi_node): For PHI arguments coming via backedges
5023 drop all symbolical range information.
5024 (execute_vrp): Compute backedges.
5026 2013-01-16 Richard Biener <rguenther@suse.de>
5028 * doc/install.texi: Update CLooG and ISL requirements to
5031 2013-01-16 Christian Bruel <christian.bruel@st.com>
5034 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
5035 (broken_move): Handle UNSPECV_SP_SWITCH_B.
5036 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
5038 2013-01-16 DJ Delorie <dj@redhat.com>
5040 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
5041 (UNSPECV_SP_SWITCH_E): New.
5042 (sp_switch_1): Change to an unspec.
5043 (sp_switch_2): Change to an unspec. Don't use post-inc when we
5046 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
5048 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
5049 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
5050 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
5051 (expand_mem_thread_fence): Ditto.
5052 (expand_mem_signal_fence): Ditto.
5053 (expand_atomic_load): Ditto.
5054 (expand_atomic_store): Ditto.
5056 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
5058 PR rtl-optimization/55547
5059 PR rtl-optimization/53827
5062 * alias.c (memrefs_conflict_p): Set sizes to negative after
5065 2013-01-15 Jakub Jelinek <jakub@redhat.com>
5068 * function.c (thread_prologue_and_epilogue_insns): Always
5069 add crtl->drap_reg to set_up_by_prologue.set, even if
5070 stack_realign_drap is false.
5072 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5074 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
5075 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
5076 *call): Fix indention.
5078 2013-01-15 Tom de Vries <tom@codesourcery.com>
5081 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
5084 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
5086 PR rtl-optimization/55153
5087 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
5089 2013-01-15 Martin Jambor <mjambor@suse.cz>
5091 PR tree-optimization/55920
5092 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
5093 accesses as grp_to_be_debug_replaced.
5095 2013-01-15 Jakub Jelinek <jakub@redhat.com>
5097 PR tree-optimization/55920
5098 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
5099 there is non-useless type conversion needed from debug rhs to lhs,
5100 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
5102 2013-01-15 Joseph Myers <joseph@codesourcery.com>
5103 Mikael Pettersson <mikpe@it.uu.se>
5106 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
5108 (ASM_OUTPUT_CASE_LABEL): Remove.
5109 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
5110 * final.c (shorten_branches): Update alignment of labels before
5111 jump tables if CASE_VECTOR_SHORTEN_MODE.
5113 2013-01-15 Richard Biener <rguenther@suse.de>
5116 * system.h: Do not include gmp.h for building host tools.
5118 2013-01-15 Richard Biener <rguenther@suse.de>
5121 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
5122 account for bitpos when computing alignment.
5124 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
5126 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
5127 (ix86_target_macros_internal): Likewise.
5129 * config/i386/i386.c (m_CORE2I7): Removed.
5130 (m_CORE_HASWELL): New macro.
5131 (m_CORE_ALL): Likewise.
5132 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
5133 (initial_ix86_arch_features): Likewise.
5134 (processor_target_table): Initializations for Core avx2.
5135 (cpu_names): New names "core-avx2".
5136 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
5137 PROCESSOR_CORE_HASWELL.
5138 (ix86_issue_rate): New case.
5139 (ia32_multipass_dfa_lookahead): Likewise.
5140 (ix86_sched_init_global): Likewise.
5142 * config/i386/i386.h (TARGET_HASWELL): New macro.
5143 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
5144 (processor_type): New PROCESSOR_HASWELL.
5146 2013-01-15 Jakub Jelinek <jakub@redhat.com>
5148 PR tree-optimization/55955
5149 * tree-vect-loop.c (vectorizable_reduction): Give up early on
5150 *SHIFT_EXPR and *ROTATE_EXPR codes.
5152 PR tree-optimization/48766
5153 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
5154 -ftrapv disable -fwrapv.
5156 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5159 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
5160 etc. to 1 and not to __flash.
5161 Use LL suffix for __INT24_MAX__ with -mint8.
5162 Use ULL suffix for __UINT24_MAX__ with -mint8.
5164 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5166 * config/avr/avr-arch.h
5167 (struct base_arch_s): Use typedef avr_arch_t instead.
5168 (struct arch_info_s): Use typedef avr_arch_info_t instead.
5169 (struct mcu_type_s): Use typedef avr_mcu_t instead.
5170 * config/avr/avr.c: Same.
5171 * config/avr/avr-devices.c: Same.
5172 * config/avr/driver-avr.c: Same.
5173 * config/avr/gen-avr-mmcu-texi.c: Same.
5174 * config/avr/avr-mcus.def: Adjust comment.
5176 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
5178 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
5179 * config/aarch64/iterators.md (VALLDI): New.
5181 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
5182 Andi Kleen <ak@linux.intel.com>
5185 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
5186 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
5189 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5191 * config/avr/avr-stdint.h: Remove trailing blanks.
5192 * config/avr/avr-log.h: Same.
5193 * config/avr/avr-arch.h: Same.
5194 * config/avr/avr-devices.c: Same.
5195 * config/avr/avr-dimode.md: Same.
5196 * config/avr/predicates.md: Same.
5197 * config/avr/avr-c.c: Same. And fix typo.
5199 * config/avr/avr-protos.h: Same. And:
5200 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
5201 (init_cumulative_args): Rename to avr_init_cumulative_args.
5202 (expand_prologue): Rename to avr_expand_prologue.
5203 (expand_epilogue): Rename to avr_expand_epilogue.
5204 (adjust_insn_length): Rename to avr_adjust_insn_length.
5205 (notice_update_cc): Rename to avr_notice_update_cc.
5206 (final_prescan_insn): Rename to avr_final_prescan_insn.
5207 * config/avr/avr.c: Same.
5208 * config/avr/avr.h: Same.
5209 * config/avr/avr.md: Remove trailing blanks.
5210 (prologue): Use avr_expand_prologue.
5211 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
5213 2013-01-14 Richard Biener <rguenther@suse.de>
5215 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
5216 verify_location, collect_subblocks): New functions.
5217 (verify_gimple_in_cfg): Verify that locations only reference
5218 BLOCKs in the functions BLOCK tree.
5220 2013-01-14 Richard Biener <rguenther@suse.de>
5222 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
5224 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
5226 (insert_out_of_ssa_copy_on_edge): Likewise.
5227 (rewrite_close_phi_out_of_ssa): Likewise.
5228 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
5230 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
5231 propagated constants.
5232 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
5235 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5237 * config/avr/avr-modes.def: Add GPL copyright notice.
5239 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
5241 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
5242 MEMMODEL_MASK to determine memory model.
5243 (atomic_store<mode>): Ditto from operands[2].
5244 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
5246 2013-01-13 Jakub Jelinek <jakub@redhat.com>
5249 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
5250 (fold_gimple_assign): Don't call unshare_expr here.
5251 (fold_ctor_reference): Call unshare_expr.
5253 2013-01-13 Terry Guo <terry.guo@arm.com>
5255 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
5256 * doc/fragments.texi: Document MULTILIB_REUSE.
5257 * gcc.c (multilib_reuse): New internal spec.
5258 (set_multilib_dir): Also search multilib from multilib_reuse.
5259 * genmultilib (tmpmultilib3): Refactor code.
5260 (tmpmultilib4): Ditto.
5261 (multilib_reuse): New multilib argument.
5263 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
5265 * Makefile.in: Update copyright.
5267 2013-01-12 Tom de Vries <tom@codesourcery.com>
5270 * calls.c (expand_call): Check if arg_nr is valid.
5272 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5274 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
5275 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5276 documentation. Add missing '__' in front of
5277 __builtin_ia32_packssdw256.
5279 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5282 * config/s390/s390.c (s390_preferred_reload_class): Do not return
5283 NO_REGS for larl operands.
5284 (s390_reload_larl_operand): Use s390_load_address instead of
5287 2013-01-11 Richard Biener <rguenther@suse.de>
5289 * tree-cfg.c (verify_node_sharing_1): Split out from ...
5290 (verify_node_sharing): ... here.
5291 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
5293 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
5295 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
5296 Substitute TREECHECKING.
5297 * configure: Regenerate.
5298 * Makefile.in (TREECHECKING): New.
5300 2013-01-11 Richard Guenther <rguenther@suse.de>
5302 PR tree-optimization/44061
5303 * tree-vrp.c (extract_range_basic): Compute zero as
5304 value-range for __builtin_constant_p of function parameters.
5306 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
5308 Update copyright years.
5310 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
5312 PR rtl-optimization/55672
5313 * lra-eliminations.c (mark_not_eliminable): Permit addition with
5314 const to be eliminable.
5316 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
5318 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
5319 * configure: Regenerate.
5321 2013-01-10 Richard Biener <rguenther@suse.de>
5323 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
5325 2013-01-10 Richard Biener <rguenther@suse.de>
5328 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
5329 locations for virtual PHI arguments.
5330 (rewrite_update_phi_arguments): Likewise.
5332 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
5334 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
5337 2013-01-10 Jakub Jelinek <jakub@redhat.com>
5339 PR tree-optimization/55921
5340 * tree-complex.c (expand_complex_asm): New function.
5341 (expand_complex_operations_1): Call it for GIMPLE_ASM.
5343 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5346 * config/s390/s390.c (s390_symref_operand_p)
5347 (s390_loadrelative_operand_p): Merge the two functions.
5348 (s390_check_qrst_address, print_operand_address): Add parameters
5349 to s390_loadrelative_operand_p invokation.
5350 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
5351 (s390_reload_larl_operand, s390_secondary_reload): Use
5352 s390_loadrelative_operand_p instead of s390_symref_operand_p.
5353 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
5355 2013-01-09 Mike Stump <mikestump@comcast.net>
5357 * dse.c (record_store): Remove unnecessary assert.
5359 2013-01-09 Jan Hubicka <jh@suse.cz>
5361 PR tree-optimization/55569
5362 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
5363 * cfgloop.h (scale_loop_profile): Likewise.
5365 2013-01-09 Jan Hubicka <jh@suse.cz>
5368 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
5370 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
5372 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
5375 * expr.h (maybe_emit_group_store): Declare.
5376 * expr.c (maybe_emit_group_store): New function.
5377 * builtins.c (expand_builtin_int_roundingfn): Call it.
5378 (expand_builtin_int_roundingfn_2): Likewise.
5380 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
5382 PR rtl-optimization/55829
5383 * lra-constraints.c (match_reload): Add code for absent output.
5384 (curr_insn_transform): Add code for reloads of matched inputs
5387 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
5389 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
5390 attribute of movddup insn to DF.
5391 (*vec_interleave_lowv2df): Ditto.
5392 (vec_dupv2df): Ditto.
5394 2013-01-09 Jan Hubicka <jh@suse.cz>
5396 PR tree-optimiation/55875
5397 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
5398 EVERY_ITERATION parameter.
5399 (number_of_iterations_exit): Check if exit is executed every iteration.
5400 (idx_infer_loop_bounds): Similarly here.
5401 (n_of_executions_at_most): Simplify
5402 to only test for cases where statement is dominated by the
5403 particular bound; handle correctly the "postdominance" test.
5404 (scev_probably_wraps_p): Use max loop iterations info
5405 as a global bound first.
5407 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
5408 Nick Clifton <nickc@redhat.com>
5410 * config/v850/v850.md (cbranchsf4): New pattern.
5411 (cstoresf4): New pattern.
5412 (cbranchdf4): New pattern.
5413 (cstoredf4): New pattern.
5414 (movsicc): Disallow floating point comparisons.
5415 (cmpsf_le_insn): Fix order of operators.
5416 (cmpsf_lt_insn): Likewise.
5417 (cmpsf_eq_insn): Likewise.
5418 (cmpdf_le_insn): Likewise.
5419 (cmpdf_lt_insn): Likewise.
5420 (cmpdf_eq_insn): Likewise.
5421 (cmpsf_ge_insn): Use LE comparison.
5422 (cmpdf_ge_insn): Likewise.
5423 (cmpsf_gt_insn): Use LT comparison.
5424 (cmpdf_gt_insn): Likewise.
5425 (cmpsf_ne_insn): Delete pattern.
5426 (cmpdf_ne_insn): Delete pattern.
5427 * config/v850/v850.c (v850_gen_float_compare): Use
5428 gen_cmpdf_eq_insn for NE comparison.
5429 (v850_float_z_comparison_operator)
5430 (v850_float_nz_comparison_operator): Move from here ...
5431 * config/v850/predicates.md: ... to here. Move GT and GE
5432 comparisons into v850_float_z_comparison_operator.
5433 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
5435 (v850_float_nz_comparison_operator): Likewise.
5437 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5439 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
5440 with calls to gen_insvsi/gen_insvdi.
5442 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5444 * config/i386/i386.c (initial_ix86_tune_features): Set up
5445 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
5447 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
5448 Jakub Jelinek <jakub@redhat.com>
5450 PR tree-optimization/48189
5451 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
5452 If nitercst is 0, don't predict the exit edge.
5454 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5456 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
5457 in asm_fprintf with reg_names.
5458 (aarch64_print_operand_address): Likewise.
5459 (aarch64_return_addr): Likewise.
5460 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
5462 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5464 * config/pa/pa.h (VAL_U6_BITS_P): Define.
5465 (INT_U6_BITS): Likewise.
5466 * config/pa/predicates.md (uint6_operand): New predicate.
5467 (shift5_operand, shift6_operand): Likewise.
5468 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
5470 (lshrdi3): Use shift6_operand.
5471 (shrpsi4, shrpdi4): New insn patterns.
5472 (extzv): Delete expander.
5473 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
5474 predicates in unamed zero extract patterns. Tighten common constraint.
5475 (extv): Delete expander.
5476 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
5477 predicates in unamed sign extract patterns. Tighten common constraint.
5478 (insv): Delete expander.
5479 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
5480 predicates in unamed insert patterns. Tighten common constraint.
5481 Change uint32_operand predicate to uint6_operand predicate in unamed
5482 DImode pattern to insert constant values of type 1...1xxxx.
5484 2013-01-04 Jan Hubicka <jh@suse.cz>
5486 PR tree-optimization/55823
5487 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
5490 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5491 Uros Bizjak <ubizjak@gmail.com>
5493 PR rtl-optimization/55845
5494 * df-problems.c (can_move_insns_across): Stop scanning at
5495 volatile_insn_p source instruction or give up if
5496 across_from .. across_to range contains any volatile_insn_p
5499 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5501 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
5502 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
5504 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
5505 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
5507 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5510 * asan.c (asan_clear_shadow): New function.
5511 (asan_emit_stack_protection): Use it.
5513 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5515 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
5516 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
5517 with tab instead of space.
5519 2013-01-08 Nick Clifton <nickc@redhat.com>
5521 * config/rl78/rl78.c (rl78_expand_prologue): Always select
5522 register bank 0 at the start of an interrupt handler.
5523 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
5526 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5528 * config/aarch64/aarch64-simd.md
5529 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
5530 (aarch64_simd_bsl): Likewise.
5531 (aarch64_vcond_internal<mode>): Likewise.
5532 (vcond<mode><mode>): Likewise.
5533 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
5534 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
5536 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5538 * config/aarch64/aarch64-builtins.c
5539 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
5541 2013-01-08 Martin Jambor <mjambor@suse.cz>
5544 * tree-sra.c (analyze_access_subtree): Return true also after
5545 potentially creating a debug-only replacement.
5547 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5550 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
5552 PR tree-optimization/54120
5553 * tree-vrp.c (range_fits_type_p): Don't allow
5554 src_precision < precision from signed vr to unsigned_p
5555 if vr->min or vr->max is negative.
5556 (simplify_float_conversion_using_ranges): Test can_float_p
5557 against CODE_FOR_nothing.
5559 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5560 Richard Biener <rguenther@suse.de>
5563 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
5564 types instead of just INTEGER_TYPE types.
5566 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
5568 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
5571 2013-01-07 Steve Ellcey <sellcey@mips.com>
5574 * config/mips/mips.opt: Change mad to mmad to match documentation.
5576 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5579 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
5582 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5585 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
5586 (avr_addrspace_t): Add .section_name field.
5587 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
5589 (avr_addrspace): Same. Initialize .section_name. Remove last
5590 NULL entry. Put __memx into .progmemx.data.
5591 (progmem_section_prefix): Remove.
5592 (avr_asm_init_sections): No need to initialize progmem_section.
5593 (avr_asm_named_section): Use avr_addrspace[].section_name to get
5594 section name prefix.
5595 (avr_asm_select_section): Ditto. And use get_unnamed_section to
5596 retrieve the progmem section.
5597 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
5598 boundary to run over avr_addrspace[].
5599 (avr_register_target_pragmas): Ditto.
5601 2013-01-06 Jakub Jelinek <jakub@redhat.com>
5603 * varasm.c (output_constant_def_contents): For asan_protect_global
5604 protected strings, adjust DECL_ALIGN if needed, before testing for
5606 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
5607 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
5609 (output_object_block): For asan protected decls, emit asan padding
5610 after their contents.
5611 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
5612 (asan_finish_file): Test it here instead.
5614 2013-01-07 Nick Clifton <nickc@redhat.com>
5615 Matthias Klose <doko@debian.org>
5616 Doug Kwan <dougkwan@google.com>
5617 H.J. Lu <hongjiu.lu@intel.com>
5620 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
5622 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
5624 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
5626 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
5628 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
5630 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5633 * doc/install.texi (Cross-Compiler-Specific Options): Document
5636 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
5638 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
5639 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
5640 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
5641 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
5642 vqmovun_high_s64): Fix source operand number and update copyright.
5644 2013-01-07 Richard Biener <rguenther@suse.de>
5647 * gimple.h (gimple_call_builtin_p): New overload.
5648 * gimple.c (validate_call): New function.
5649 (gimple_call_builtin_p): Likewise.
5650 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5651 Use gimple_call_builtin_p.
5652 (find_func_clobbers): Likewise.
5653 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
5654 (strlen_optimize_stmt): Likewise.
5656 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5658 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
5659 (vld1q_dup_*): Likewise.
5661 (vld1q_*): Likewise.
5662 (vld1_lane_*): Likewise.
5663 (vld1q_lane_*): Likewise.
5665 2013-01-07 Richard Biener <rguenther@suse.de>
5667 * lto-streamer.h (LTO_minor_version): Bump to 2.
5669 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5671 * config/aarch64/aarch64-protos.h
5672 (aarch64_const_double_zero_rtx_p): Rename to...
5673 (aarch64_float_const_zero_rtx_p): ...this.
5674 (aarch64_float_const_representable_p): New.
5675 (aarch64_output_simd_mov_immediate): Likewise.
5676 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
5677 move immediate case.
5678 * config/aarch64/aarch64.c
5679 (aarch64_const_double_zero_rtx_p): Rename to...
5680 (aarch64_float_const_zero_rtx_p): ...this.
5681 (aarch64_print_operand): Allow printing of new constants.
5682 (aarch64_valid_floating_const): New.
5683 (aarch64_legitimate_constant_p): Check for valid floating-point
5685 (aarch64_simd_valid_immediate): Likewise.
5686 (aarch64_vect_float_const_representable_p): New.
5687 (aarch64_float_const_representable_p): Likewise.
5688 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
5689 (aarch64_output_simd_mov_immediate): New.
5690 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
5691 (*movdf_aarch64): Likewise.
5692 * config/aarch64/constraints.md (Ufc): New.
5693 (Y): call aarch64_float_const_zero_rtx.
5694 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
5696 2013-01-07 Richard Biener <rguenther@suse.de>
5698 PR tree-optimization/55888
5699 PR tree-optimization/55862
5700 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
5701 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
5702 not if it is contained therein.
5704 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5706 * config/avr/t-avr: Typo.
5708 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5711 * config/avr/t-avr: Don't automatically rebuild
5712 $(srcdir)/config/avr/t-multilib
5713 $(srcdir)/config/avr/avr-tables.opt
5714 $(srcdir)/doc/avr-mmcu.texi
5715 (avr-mcus): New phony target to build them on request.
5716 (s-avr-mlib, s-avr-mmcu-texi): Remove.
5717 * avr/avr-mcus.def: Adjust comments.
5719 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
5721 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
5723 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5725 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
5727 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5729 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
5731 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
5733 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
5734 to generate profiling.
5735 * config/rs6000/aix64.h (LIB_SPEC): Same.
5737 2013-01-04 Andrew Pinski <apinski@cavium.com>
5739 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
5741 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5743 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
5745 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
5747 (ix86_expand_move): Ditto.
5748 (ix86_zero_extend_to_Pmode): Ditto.
5749 (ix86_expand_call): Ditto.
5750 (ix86_expand_special_args_builtin): Ditto.
5751 (ix86_expand_builtin): Ditto.
5753 2013-01-04 Richard Biener <rguenther@suse.de>
5755 PR tree-optimization/55862
5756 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
5757 translating them through PHI nodes.
5759 2013-01-04 Martin Jambor <mjambor@suse.cz>
5761 PR tree-optimization/55755
5762 * tree-sra.c (sra_modify_assign): Do not check that an access has no
5763 children when trying to avoid producing a VIEW_CONVERT_EXPR.
5765 2013-01-04 Marek Polacek <polacek@redhat.com>
5768 * opts.c (default_options_optimization): Clarify error message.
5770 2013-01-04 Richard Biener <rguenther@suse.de>
5773 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
5776 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5779 * config/pa/pa.md (movsi): Revert previous change.
5780 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
5783 2013-01-03 Richard Henderson <rth@redhat.com>
5785 * config/i386/i386.c (ix86_expand_move): Always assign to op1
5786 after eliminating TLS symbols.
5788 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
5791 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
5792 * graphite-poly.c (debug_gmp_value): Likewise.
5794 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
5797 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
5798 selected code model, define __code_mode_small__, __code_model_medium__,
5799 __code_model_large__, __code_model_32__ or __code_model_kernel__.
5800 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
5801 xchg temporary register with %k. Declare temporary register as
5803 [__x86_64__]: For medium and large code models, preserve %rbx register.
5805 2013-01-03 Richard Biener <rguenther@suse.de>
5807 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
5808 (dump_subscript): Adjust.
5809 (finalize_ddr_dependent): Do not dump redundant info.
5810 (analyze_siv_subscript): Adjust.
5811 (subscript_dependence_tester): Likewise.
5812 (compute_affine_dependence): Likewise.
5814 2013-01-03 Richard Biener <rguenther@suse.de>
5817 2013-01-03 Richard Biener <rguenther@suse.de>
5819 PR tree-optimization/55857
5820 * tree-vect-stmts.c (vectorizable_load): Do not setup
5821 re-alignment for invariant loads.
5823 2013-01-02 Richard Biener <rguenther@suse.de>
5825 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5826 invariant load do not generate a vector load from the scalar location.
5828 2013-01-03 Richard Biener <rguenther@suse.de>
5830 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
5831 for not vectorizing.
5832 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5833 not build INDIRECT_REFs, call get_name once only.
5834 (vect_create_data_ref_ptr): Likewise. Dump base object kind
5835 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
5837 2013-01-03 Richard Biener <rguenther@suse.de>
5839 PR tree-optimization/55857
5840 * tree-vect-stmts.c (vectorizable_load): Do not setup
5841 re-alignment for invariant loads.
5843 2013-01-03 Richard Biener <rguenther@suse.de>
5846 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
5847 prefer a built-in decl.
5849 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5851 * gcc.c (process_command): Update copyright notice dates.
5852 * gcov.c (print_version): Likewise.
5853 * gcov-dump.c (print_version): Likewise.
5855 PR rtl-optimization/55838
5856 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
5857 iv0.step, iv1.step and step.
5859 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5860 Marc Glisse <marc.glisse@inria.fr>
5862 PR tree-optimization/55832
5863 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
5864 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
5865 integer_{one,zero}_node.
5867 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5870 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
5871 * var-tracking.c (reverse_op): Don't add reverse ops to
5872 VALUEs that have already
5873 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
5875 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
5877 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
5879 2013-01-02 Teresa Johnson <tejohnson@google.com>
5881 * dumpfile.c (dump_loc): Print filename with location.
5882 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
5883 new location_t parameter to emit complete unroll message with
5885 (canonicalize_loop_induction_variables): Compute loops location
5886 and pass to try_unroll_loop_completely.
5887 * loop-unroll.c (report_unroll_peel): New function.
5888 (peel_loops_completely): Use new dump format with location
5889 for main dumpfile message, and invoke report_unroll_peel on success.
5890 (decide_unrolling_and_peeling): Ditto.
5891 (decide_peel_once_rolling): Remove old dumpfile message subsumed
5892 by report_unroll_peel.
5893 (decide_peel_completely): Ditto.
5894 (decide_unroll_constant_iterations): Ditto.
5895 (decide_unroll_runtime_iterations): Ditto.
5896 (decide_peel_simple): Ditto.
5897 (decide_unroll_stupid): Ditto.
5898 * cfgloop.c (get_loop_location): New function.
5899 * cfgloop.h (get_loop_location): Declare.
5901 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5903 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
5906 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5909 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
5910 BLKmode objects when EXPAND_MEMORY is specified.
5912 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5914 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
5916 (fold_builtin_cpu): Do not share cpu model decls across statements.
5918 2013-01-02 Jason Merrill <jason@redhat.com>
5921 * tree.c (build_array_type_1): Revert earlier change.
5923 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
5925 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
5927 * config/aarch64/aarch64-tune.md: Re-generate.
5929 2013-01-02 Richard Biener <rguenther@suse.de>
5931 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5932 invariant load do not generate a vector load from the scalar location.
5934 2013-01-02 Richard Biener <rguenther@suse.de>
5937 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
5938 * configure: Regenerate.
5940 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5942 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
5943 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
5944 (expand_builtin_int_roundingfn_2): Keep the original target around
5945 for the fallback case.
5947 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5949 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
5950 to be clear for sign changes.
5952 2013-01-01 Jan Hubicka <jh@suse.cz>
5954 * ipa-inline-analysis.c: Fix formatting.
5956 2013-01-01 Jakub Jelinek <jakub@redhat.com>
5958 PR tree-optimization/55831
5959 * tree-vect-loop.c (get_initial_def_for_induction): Use
5960 gsi_after_labels instead of gsi_start_bb.
5962 Copyright (C) 2013 Free Software Foundation, Inc.
5964 Copying and distribution of this file, with or without modification,
5965 are permitted in any medium without royalty provided the copyright
5966 notice and this notice are preserved.