1 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
4 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
6 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11 * config/arm/cortex-a7.md: New bypasses using
12 arm_mac_accumulator_is_result.
14 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
16 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
17 (cortex_a7_neon_mla): Likewise.
18 (cortex_a7_fpfmad): New reservation.
19 (cortex_a7_fpmacs): Use ffmas and update required units.
20 (cortex_a7_fpmuld): Update required units and latency.
21 (cortex_a7_fpmacd): Likewise.
22 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
23 (cortex_a7_neon). Likewise.
24 (bypass) Update participating units.
26 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
28 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
29 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
31 * config/arm/vfp11.md (vfp_farith): Use ffmas.
32 (vfp_fmul): Use ffmad.
33 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
34 (cortex_r4_fmacd): Use ffmad.
35 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
36 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
37 (cortex_a9_fmacd): Use ffmad.
38 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
39 (cortex_a8_vfp_macd): Use ffmad.
40 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
41 (cortex_a5_fpmacd): Use ffmad.
42 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
43 (cortex_a15_vfp_macd): Use ffmad.
44 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
46 2013-01-29 Jason Merrill <jason@redhat.com>
49 * varasm.c (default_assemble_visibility): Don't warn about
50 visibility on artificial decls.
52 2013-01-29 Richard Biener <rguenther@suse.de>
54 PR tree-optimization/56113
55 * tree-ssa-structalias.c (equiv_class_lookup): Also return
57 (label_visit): Free duplicate bitmaps and record the leader instead.
58 (perform_var_substitution): Adjust.
60 2013-01-29 Richard Biener <rguenther@suse.de>
62 PR tree-optimization/55270
63 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
64 the CFG, schedule loops for fixup.
66 2013-01-29 Nick Clifton <nickc@redhat.com>
68 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
71 2013-01-28 Leif Ekblad <leif@rdos.net>
73 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
74 * config/i386/i386.h (TARGET_RDOS): New macro.
75 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
76 * config/i386/i386.c (ix86_option_override_internal): For 64bit
77 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
78 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
79 DEFAULT_LARGE_SECTION_THRESHOLD.
80 * config/i386/i386.md (R14_REG, R15_REG): New constants.
81 * config/i386/rdos.h: New file.
82 * config/i386/rdos64.h: New file.
84 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
87 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
90 2013-01-28 Jakub Jelinek <jakub@redhat.com>
92 PR rtl-optimization/56117
93 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
94 call cselib_lookup_from_insn on the MEM before calling
95 add_insn_mem_dependence.
97 2013-01-28 Richard Biener <rguenther@suse.de>
99 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
100 to a stmt that didn't have one.
101 (copy_phis_for_bb): Likewise for PHI arguments.
102 (copy_debug_stmt): Likewise for debug stmts.
104 2013-01-28 Richard Biener <rguenther@suse.de>
106 PR tree-optimization/56034
107 * tree-loop-distribution.c (enum partition_kind): Add
109 (partition_builtin_p): Adjust.
110 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
111 it is the last partition.
112 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
113 up the vertex for the definition.
114 (classify_partition): Classify whether a partition is a
115 PKIND_REDUCTION, thus has uses outside of the loop.
116 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
117 Merge all PKIND_REDUCTION partitions into the last partition.
118 (tree_loop_distribution): Seed partitions from reductions as well.
120 2013-01-28 Jakub Jelinek <jakub@redhat.com>
122 PR tree-optimization/56125
123 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
124 pow(x,c) into sqrt(x) * powi(x, n/2) or
125 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
127 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
128 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
131 PR tree-optimization/56094
132 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
133 to UNKNOWN_LOCATION while gimplifying expr.
135 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
138 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
139 operand 0 in movabs insn template for -masm=intel asm alternative.
140 (*movabs<mode>_2): Ditto for operand 1.
142 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
145 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
148 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
150 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
153 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
155 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
156 Undef to avoid warning.
158 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
160 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
161 * configure: Regenerate.
163 2013-01-25 Jakub Jelinek <jakub@redhat.com>
165 PR tree-optimization/56098
166 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
167 for stmts with volatile ops.
168 (cond_store_replacement): Don't optimize if assign has volatile ops.
169 (cond_if_else_store_replacement_1): Don't optimize if either
170 then_assign or else_assign have volatile ops.
171 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
174 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
176 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
178 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
180 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
181 missing ':' in asm example.
183 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
185 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
186 entries into lane and laneq entries.
187 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
188 Remove AdvSIMD scalar modes.
189 (aarch64_sq<r>dmulh_laneq<mode>): New.
190 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
192 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
193 builtin implementations to relfect changes in RTL in aarch64-simd.md.
194 * config/aarch64/iterators.md (VCOND): New.
197 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
200 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
201 Add NULL LIBNAME argument to existing definitions.
202 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
203 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
204 * config/avr/avr.c (DEF_BUILTIN): Same.
205 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
206 (avr_expand_builtin): Expand to a vanilla call if a libgcc
207 implementation is available (DECL_ASSEMBLER_NAME is set).
208 (avr_fold_absfx): New static function.
209 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
210 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
211 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
213 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
214 (abshk, absk, abslk, absllk): Provide as static inline functions.
216 2013-01-25 Marek Polacek <polacek@redhat.com>
218 PR tree-optimization/56035
219 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
221 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
223 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
224 (*movtf_internal_rex64): Add (!o,C) alternative
225 (*movxf_internal_rex64): Ditto.
226 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
228 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
230 * doc/invoke.texi: fix typo.
231 * doc/objc.texi: fix typo.
233 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
235 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
236 for the first two alternatives.
238 2013-01-24 Diego Novillo <dnovillo@google.com>
240 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
241 (ggc-zone.o): Remove.
242 * configure.ac: Remove option --with-gc.
243 * configure: Re-generate.
244 * doc/install.texi: Remove documentation for --with-gc.
245 * gengtype.c (write_enum_defn): Remove. Update all users.
246 (write_Types_process_field): Remove generation of gt_e_* argument.
247 (output_type_enum): Remove. Update all users.
248 (write_enum_defn): Remove. Update all users.
249 (enum alloc_zone): Remove. Update all users.
250 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
251 * ggc-common.c (ggc_splay_alloc): Remove first argument.
253 (struct ptr_data): Remove field TYPE. Update all users.
254 (gt_pch_note_object): Remove argument TYPE. Update all users.
255 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
257 * ggc-none.c (ggc_alloc_typed_stat): Remove.
258 (struct alloc_zone): Remove.
259 (ggc_internal_alloc_zone_stat): Remove.
260 (ggc_internal_cleared_alloc_zone_stat): Remove.
261 * ggc-page.c (ggc_alloc_typed_stat): Remove.
262 (ggc_pch_count_object): Remove last argument. Update all users.
263 (ggc_pch_alloc_object): Remove last argument. Update all users.
264 (struct alloc_zone): Remove.
265 * ggc-zone.c: Remove.
266 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
267 (struct alloc_zone): Remove.
268 (ggc_alloc_typed_stat): Remove.
269 (ggc_alloc_typed): Remove.
270 (ggc_splay_alloc): Remove first argument.
271 (rtl_zone): Remove. Update all users.
272 (tree_zone): Remove. Update all users.
273 (tree_id_zone): Remove. Update all users.
274 (ggc_internal_zone_alloc_stat): Remove. Update all users.
275 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
276 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
277 * tree-ssanames.c: Remove references to zone allocator in comments.
279 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
281 * config/avr/avr.c (avr_out_fract): Make register numbers that
282 might be outside of source operand signed.
284 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
286 * config/i386/constraints.md (Yf): New constraint.
287 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
288 of f constraint to conditionaly disable x87 register preferences.
289 (*movdf_internal): Ditto.
290 (*movsf_internal): Ditto.
292 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
295 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
296 that have operands with impossible constraints.
297 Add a FIXME for a speed-up opportunity.
298 * lra-constraints.c (process_alt_operands): Verify that a class
299 selected from constraints on asms is valid for the operand mode.
300 (curr_insn_transform): Remove incorrect comment.
302 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
304 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
305 TOC operand is a valid symbol ref in the constant pool.
307 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
309 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
311 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
314 * config/avr/stdfix.h: New file.
315 * t-avr (stdfix-gcc.h): New rule to build it.
316 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
318 2013-01-23 Kostya Serebryany <kcc@google.com>
320 * config/darwin.h: remove dependency on
321 CoreFoundation (asan on Mac OS).
323 2013-01-23 Jakub Jelinek <jakub@redhat.com>
326 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
327 instead of cmpdi_operand for first comparison operand.
328 Don't assert that comparison operands aren't both constants.
330 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
332 * doc/install.texi (Downloading the Source): Update references to
333 downloading separate components.
335 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
337 * doc/extend.texi (__int128): Improve grammar.
339 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
342 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
343 alternative to (o,r).
344 (*movdi_internal_rex64): Remove (!o,n) alternative.
345 (DImode immediate->memory splitter): Remove.
346 (DImode immediate->memory peephole2): Remove.
347 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
348 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
349 alternative to (!o,*r).
350 (*movtf_internal_sse): New pattern.
351 (*movxf_internal_rex64): New pattern.
352 (*movxf_internal): Disable for TARGET_64BIT.
353 (*movdf_internal_rex64): Remove (!o,F) alternative.
355 2013-01-22 Jakub Jelinek <jakub@redhat.com>
358 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
359 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
360 * tree-vect-loop-manip.c (find_loop_location): Also ignore
361 stmt locations where LOCATION_LOCUS of the stmt location is
362 UNKNOWN_LOCATION or BUILTINS_LOCATION.
365 * config/i386/i386.md (UNSPEC_STOS): New.
366 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
367 *strsetqi_1): Add UNSPEC_STOS.
369 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
372 * doc/invoke.texi: Remove left over -Wsynth example.
374 2013-01-21 Jakub Jelinek <jakub@redhat.com>
376 PR tree-optimization/56051
377 * fold-const.c (fold_binary_loc): Don't fold
378 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
379 a narrowing conversion, or widening conversion from signed
382 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
384 PR rtl-optimization/56023
385 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
386 dependent on debug instruction.
388 2013-01-21 Martin Jambor <mjambor@suse.cz>
391 * function.c (allocate_struct_function): Call
392 invoke_set_current_function_hook earlier.
394 2013-01-21 Jakub Jelinek <jakub@redhat.com>
396 * reload1.c (init_reload): Only initialize reload_obstack
397 during the first call.
399 2013-01-21 Marek Polacek <polacek@redhat.com>
401 * cfgloop.c (verify_loop_structure): Fix up grammar.
403 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
405 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
406 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
408 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
411 * config/arm/marvell-pj4.md: Update copyright year.
412 Fix up use of alu to alu_reg and simple_alu_imm.
414 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
416 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
418 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
421 * lra-constraints.c (curr_insn_transform): Don't reuse original
422 insn for secondary memory move when memory mode should be different.
424 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
426 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
427 atomic_storedi_1): New patterns.
429 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
431 btver2 pipeline descriptions.
432 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
434 * config/i386/i386.md (btver2_decode): New type attributes.
435 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
437 * config/i386/btver2.md: New file describing btver2 pipelines.
439 2013-01-19 Andrew Pinski <apinski@cavium.com>
441 PR tree-optimization/52631
442 * tree-ssa-sccvn (visit_use): Before looking up the original
443 statement, try looking up the simplified expression.
445 2013-01-19 Anthony Green <green@moxielogic.com>
447 * config/moxie/moxie.c (moxie_expand_prologue): Set
448 current_function_static_stack_size.
450 2013-01-18 Jakub Jelinek <jakub@redhat.com>
452 PR tree-optimization/56029
453 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
454 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
456 2013-01-18 Sharad Singhai <singhai@google.com>
458 PR tree-optimization/55995
459 * dumpfile.c (dump_loc): Print location only if available.
460 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
462 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
465 * lra-constraints.c (curr_insn_transform): Reuse original insn for
466 secondary memory move.
467 (inherit_reload_reg): Use rclass instead of cl for
468 check_secondary_memory_needed_p.
470 2013-01-18 Jakub Jelinek <jakub@redhat.com>
473 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
474 the case where writing real complex part of target modifies op1.
476 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
478 * config/aarch64/aarch64-simd.md
479 (aarch64_vcond_internal<mode>): Handle unordered cases.
480 * config/aarch64/iterators.md (v_cmp_result): New.
482 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
483 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
485 * config/arm/marvell-pj4.md: New file.
486 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
487 * config/arm/arm.md (generic_sched): Add marvell_pj4.
488 (generic_vfp): Likewise.
489 * config/arm/arm-cores.def: Add marvell-pj4.
490 * config/arm/arm-tune.md: Regenerate.
491 * config/arm/arm-tables.opt: Regenerate.
492 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
493 * doc/invoke.texi: Document marvell-pj4.
495 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
497 * config/aarch64/arm_neon.h: Map scalar types to standard types.
499 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
504 * var-tracking.c (negative_power_of_two_p): New.
505 (global_get_addr_cache, local_get_addr_cache): New.
506 (get_addr_from_global_cache, get_addr_from_local_cache): New.
507 (vt_canonicalize_addr): Rewrite using the above. Adjust the
509 (vt_stack_offset_p): Remove.
510 (vt_canon_true_dep): Always canonicalize loc's address.
511 (clobber_overlapping_mems): Make sure we have a MEM.
512 (local_get_addr_clear_given_value): New.
513 (val_reset): Clear local cached entries.
514 (compute_bb_dataflow): Create and release the local cache.
515 Disable duplicate MEMs clobbering.
516 (emit_notes_in_bb): Clobber MEMs likewise.
517 (vt_emit_notes): Create and release the local cache.
518 (vt_initialize, vt_finalize): Create and release the global
520 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
522 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
525 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
526 not found in the symtab.
528 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
531 PR rtl-optimization/55547
532 PR rtl-optimization/53827
535 * alias.c (offset_overlap_p): New, factored out of...
536 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
537 the conservative special case for symbolic constants. Don't
538 adjust zero sizes on alignment.
540 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
542 PR rtl-optimization/52573
543 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
544 REG_UNUSED for the same register.
546 2013-01-17 Richard Biener <rguenther@suse.de>
547 Marek Polacek <polacek@redhat.com>
549 PR rtl-optimization/55833
550 * loop-unswitch.c (unswitch_loops): Move loop verification...
551 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
552 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
553 Set it to true when we're removing a loop from hierarchy tree in
554 an irreducible region.
555 (fix_bb_placements): Adjust caller.
556 (fix_loop_placements): Likewise.
558 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
560 * config/avr/builtins.def (DEF_BUILTIN): Factor out
561 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
562 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
563 Remove ID. Adjust comments.
564 * config/avr/avr-c.c (avr_builtin_name): Remove.
565 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
566 * config/avr/avr.c (avr_tolower): New static function.
567 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
568 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
569 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
572 2013-01-17 Jan Hubicka <jh@suse.cz>
574 PR tree-optimization/55273
575 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
577 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
580 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
581 store through atomic_store<mode>_1.
582 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
584 2013-01-17 Martin Jambor <mjambor@suse.cz>
586 PR tree-optimizations/55264
587 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
589 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
590 virtual methods before inlining is over.
591 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
593 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
596 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
598 PR rtl-optimization/56005
599 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
600 pending reads for prefetch.
602 2013-01-16 Ian Bolton <ian.bolton@arm.com>
604 * config/aarch64/aarch64.md
605 (*cstoresi_neg_uxtw): New pattern.
606 (*cmovsi_insn_uxtw): New pattern.
607 (*<optab>si3_uxtw): New pattern.
608 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
609 (*<optab>si3_insn_uxtw): New pattern.
610 (*bswapsi2_uxtw): New pattern.
612 2013-01-16 Richard Biener <rguenther@suse.de>
614 * tree-inline.c (tree_function_versioning): Remove set but
617 2013-01-16 Richard Biener <rguenther@suse.de>
619 PR tree-optimization/55964
620 * tree-flow.h (rename_variables_in_loop): Remove.
621 (rename_variables_in_bb): Likewise.
622 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
623 (copy_loop_before): Adjust and delete update-ssa status.
624 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
625 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
626 (rename_variables_in_loop): Remove.
627 (slpeel_update_phis_for_duplicate_loop): Likewise.
628 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
629 use available cfg machinery instead of duplicating it.
630 Update PHI nodes and perform poor-mans SSA update here.
631 (slpeel_tree_peel_loop_to_edge): Adjust.
633 2013-01-16 Richard Biener <rguenther@suse.de>
635 PR tree-optimization/54767
636 PR tree-optimization/53465
637 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
638 (vrp_visit_phi_node): For PHI arguments coming via backedges
639 drop all symbolical range information.
640 (execute_vrp): Compute backedges.
642 2013-01-16 Richard Biener <rguenther@suse.de>
644 * doc/install.texi: Update CLooG and ISL requirements to
647 2013-01-16 Christian Bruel <christian.bruel@st.com>
650 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
651 (broken_move): Handle UNSPECV_SP_SWITCH_B.
652 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
654 2013-01-16 DJ Delorie <dj@redhat.com>
656 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
657 (UNSPECV_SP_SWITCH_E): New.
658 (sp_switch_1): Change to an unspec.
659 (sp_switch_2): Change to an unspec. Don't use post-inc when we
662 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
664 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
665 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
666 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
667 (expand_mem_thread_fence): Ditto.
668 (expand_mem_signal_fence): Ditto.
669 (expand_atomic_load): Ditto.
670 (expand_atomic_store): Ditto.
672 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
674 PR rtl-optimization/55547
675 PR rtl-optimization/53827
678 * alias.c (memrefs_conflict_p): Set sizes to negative after
681 2013-01-15 Jakub Jelinek <jakub@redhat.com>
684 * function.c (thread_prologue_and_epilogue_insns): Always
685 add crtl->drap_reg to set_up_by_prologue.set, even if
686 stack_realign_drap is false.
688 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
690 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
691 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
692 *call): Fix indention.
694 2013-01-15 Tom de Vries <tom@codesourcery.com>
697 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
700 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
702 PR rtl-optimization/55153
703 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
705 2013-01-15 Martin Jambor <mjambor@suse.cz>
707 PR tree-optimization/55920
708 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
709 accesses as grp_to_be_debug_replaced.
711 2013-01-15 Jakub Jelinek <jakub@redhat.com>
713 PR tree-optimization/55920
714 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
715 there is non-useless type conversion needed from debug rhs to lhs,
716 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
718 2013-01-15 Joseph Myers <joseph@codesourcery.com>
719 Mikael Pettersson <mikpe@it.uu.se>
722 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
724 (ASM_OUTPUT_CASE_LABEL): Remove.
725 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
726 * final.c (shorten_branches): Update alignment of labels before
727 jump tables if CASE_VECTOR_SHORTEN_MODE.
729 2013-01-15 Richard Biener <rguenther@suse.de>
732 * system.h: Do not include gmp.h for building host tools.
734 2013-01-15 Richard Biener <rguenther@suse.de>
737 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
738 account for bitpos when computing alignment.
740 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
742 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
743 (ix86_target_macros_internal): Likewise.
745 * config/i386/i386.c (m_CORE2I7): Removed.
746 (m_CORE_HASWELL): New macro.
747 (m_CORE_ALL): Likewise.
748 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
749 (initial_ix86_arch_features): Likewise.
750 (processor_target_table): Initializations for Core avx2.
751 (cpu_names): New names "core-avx2".
752 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
753 PROCESSOR_CORE_HASWELL.
754 (ix86_issue_rate): New case.
755 (ia32_multipass_dfa_lookahead): Likewise.
756 (ix86_sched_init_global): Likewise.
758 * config/i386/i386.h (TARGET_HASWELL): New macro.
759 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
760 (processor_type): New PROCESSOR_HASWELL.
762 2013-01-15 Jakub Jelinek <jakub@redhat.com>
764 PR tree-optimization/55955
765 * tree-vect-loop.c (vectorizable_reduction): Give up early on
766 *SHIFT_EXPR and *ROTATE_EXPR codes.
768 PR tree-optimization/48766
769 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
770 -ftrapv disable -fwrapv.
772 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
775 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
776 etc. to 1 and not to __flash.
777 Use LL suffix for __INT24_MAX__ with -mint8.
778 Use ULL suffix for __UINT24_MAX__ with -mint8.
780 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
782 * config/avr/avr-arch.h
783 (struct base_arch_s): Use typedef avr_arch_t instead.
784 (struct arch_info_s): Use typedef avr_arch_info_t instead.
785 (struct mcu_type_s): Use typedef avr_mcu_t instead.
786 * config/avr/avr.c: Same.
787 * config/avr/avr-devices.c: Same.
788 * config/avr/driver-avr.c: Same.
789 * config/avr/gen-avr-mmcu-texi.c: Same.
790 * config/avr/avr-mcus.def: Adjust comment.
792 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
794 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
795 * config/aarch64/iterators.md (VALLDI): New.
797 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
798 Andi Kleen <ak@linux.intel.com>
801 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
802 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
805 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
807 * config/avr/avr-stdint.h: Remove trailing blanks.
808 * config/avr/avr-log.h: Same.
809 * config/avr/avr-arch.h: Same.
810 * config/avr/avr-devices.c: Same.
811 * config/avr/avr-dimode.md: Same.
812 * config/avr/predicates.md: Same.
813 * config/avr/avr-c.c: Same. And fix typo.
815 * config/avr/avr-protos.h: Same. And:
816 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
817 (init_cumulative_args): Rename to avr_init_cumulative_args.
818 (expand_prologue): Rename to avr_expand_prologue.
819 (expand_epilogue): Rename to avr_expand_epilogue.
820 (adjust_insn_length): Rename to avr_adjust_insn_length.
821 (notice_update_cc): Rename to avr_notice_update_cc.
822 (final_prescan_insn): Rename to avr_final_prescan_insn.
823 * config/avr/avr.c: Same.
824 * config/avr/avr.h: Same.
825 * config/avr/avr.md: Remove trailing blanks.
826 (prologue): Use avr_expand_prologue.
827 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
829 2013-01-14 Richard Biener <rguenther@suse.de>
831 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
832 verify_location, collect_subblocks): New functions.
833 (verify_gimple_in_cfg): Verify that locations only reference
834 BLOCKs in the functions BLOCK tree.
836 2013-01-14 Richard Biener <rguenther@suse.de>
838 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
840 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
842 (insert_out_of_ssa_copy_on_edge): Likewise.
843 (rewrite_close_phi_out_of_ssa): Likewise.
844 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
846 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
847 propagated constants.
848 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
851 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
853 * config/avr/avr-modes.def: Add GPL copyright notice.
855 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
857 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
858 MEMMODEL_MASK to determine memory model.
859 (atomic_store<mode>): Ditto from operands[2].
860 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
862 2013-01-13 Jakub Jelinek <jakub@redhat.com>
865 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
866 (fold_gimple_assign): Don't call unshare_expr here.
867 (fold_ctor_reference): Call unshare_expr.
869 2013-01-13 Terry Guo <terry.guo@arm.com>
871 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
872 * doc/fragments.texi: Document MULTILIB_REUSE.
873 * gcc.c (multilib_reuse): New internal spec.
874 (set_multilib_dir): Also search multilib from multilib_reuse.
875 * genmultilib (tmpmultilib3): Refactor code.
876 (tmpmultilib4): Ditto.
877 (multilib_reuse): New multilib argument.
879 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
881 * Makefile.in: Update copyright.
883 2013-01-12 Tom de Vries <tom@codesourcery.com>
886 * calls.c (expand_call): Check if arg_nr is valid.
888 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
890 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
891 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
892 documentation. Add missing '__' in front of
893 __builtin_ia32_packssdw256.
895 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
898 * config/s390/s390.c (s390_preferred_reload_class): Do not return
899 NO_REGS for larl operands.
900 (s390_reload_larl_operand): Use s390_load_address instead of
903 2013-01-11 Richard Biener <rguenther@suse.de>
905 * tree-cfg.c (verify_node_sharing_1): Split out from ...
906 (verify_node_sharing): ... here.
907 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
909 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
911 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
912 Substitute TREECHECKING.
913 * configure: Regenerate.
914 * Makefile.in (TREECHECKING): New.
916 2013-01-11 Richard Guenther <rguenther@suse.de>
918 PR tree-optimization/44061
919 * tree-vrp.c (extract_range_basic): Compute zero as
920 value-range for __builtin_constant_p of function parameters.
922 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
924 Update copyright years.
926 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
928 PR rtl-optimization/55672
929 * lra-eliminations.c (mark_not_eliminable): Permit addition with
930 const to be eliminable.
932 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
934 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
935 * configure: Regenerate.
937 2013-01-10 Richard Biener <rguenther@suse.de>
939 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
941 2013-01-10 Richard Biener <rguenther@suse.de>
944 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
945 locations for virtual PHI arguments.
946 (rewrite_update_phi_arguments): Likewise.
948 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
950 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
953 2013-01-10 Jakub Jelinek <jakub@redhat.com>
955 PR tree-optimization/55921
956 * tree-complex.c (expand_complex_asm): New function.
957 (expand_complex_operations_1): Call it for GIMPLE_ASM.
959 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
962 * config/s390/s390.c (s390_symref_operand_p)
963 (s390_loadrelative_operand_p): Merge the two functions.
964 (s390_check_qrst_address, print_operand_address): Add parameters
965 to s390_loadrelative_operand_p invokation.
966 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
967 (s390_reload_larl_operand, s390_secondary_reload): Use
968 s390_loadrelative_operand_p instead of s390_symref_operand_p.
969 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
971 2013-01-09 Mike Stump <mikestump@comcast.net>
973 * dse.c (record_store): Remove unnecessary assert.
975 2013-01-09 Jan Hubicka <jh@suse.cz>
977 PR tree-optimization/55569
978 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
979 * cfgloop.h (scale_loop_profile): Likewise.
981 2013-01-09 Jan Hubicka <jh@suse.cz>
984 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
986 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
988 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
991 * expr.h (maybe_emit_group_store): Declare.
992 * expr.c (maybe_emit_group_store): New function.
993 * builtins.c (expand_builtin_int_roundingfn): Call it.
994 (expand_builtin_int_roundingfn_2): Likewise.
996 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
998 PR rtl-optimization/55829
999 * lra-constraints.c (match_reload): Add code for absent output.
1000 (curr_insn_transform): Add code for reloads of matched inputs
1003 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
1005 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
1006 attribute of movddup insn to DF.
1007 (*vec_interleave_lowv2df): Ditto.
1008 (vec_dupv2df): Ditto.
1010 2013-01-09 Jan Hubicka <jh@suse.cz>
1012 PR tree-optimiation/55875
1013 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
1014 EVERY_ITERATION parameter.
1015 (number_of_iterations_exit): Check if exit is executed every iteration.
1016 (idx_infer_loop_bounds): Similarly here.
1017 (n_of_executions_at_most): Simplify
1018 to only test for cases where statement is dominated by the
1019 particular bound; handle correctly the "postdominance" test.
1020 (scev_probably_wraps_p): Use max loop iterations info
1021 as a global bound first.
1023 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
1024 Nick Clifton <nickc@redhat.com>
1026 * config/v850/v850.md (cbranchsf4): New pattern.
1027 (cstoresf4): New pattern.
1028 (cbranchdf4): New pattern.
1029 (cstoredf4): New pattern.
1030 (movsicc): Disallow floating point comparisons.
1031 (cmpsf_le_insn): Fix order of operators.
1032 (cmpsf_lt_insn): Likewise.
1033 (cmpsf_eq_insn): Likewise.
1034 (cmpdf_le_insn): Likewise.
1035 (cmpdf_lt_insn): Likewise.
1036 (cmpdf_eq_insn): Likewise.
1037 (cmpsf_ge_insn): Use LE comparison.
1038 (cmpdf_ge_insn): Likewise.
1039 (cmpsf_gt_insn): Use LT comparison.
1040 (cmpdf_gt_insn): Likewise.
1041 (cmpsf_ne_insn): Delete pattern.
1042 (cmpdf_ne_insn): Delete pattern.
1043 * config/v850/v850.c (v850_gen_float_compare): Use
1044 gen_cmpdf_eq_insn for NE comparison.
1045 (v850_float_z_comparison_operator)
1046 (v850_float_nz_comparison_operator): Move from here ...
1047 * config/v850/predicates.md: ... to here. Move GT and GE
1048 comparisons into v850_float_z_comparison_operator.
1049 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
1051 (v850_float_nz_comparison_operator): Likewise.
1053 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1055 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
1056 with calls to gen_insvsi/gen_insvdi.
1058 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1060 * config/i386/i386.c (initial_ix86_tune_features): Set up
1061 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
1063 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
1064 Jakub Jelinek <jakub@redhat.com>
1066 PR tree-optimization/48189
1067 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
1068 If nitercst is 0, don't predict the exit edge.
1070 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1072 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
1073 in asm_fprintf with reg_names.
1074 (aarch64_print_operand_address): Likewise.
1075 (aarch64_return_addr): Likewise.
1076 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
1078 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1080 * config/pa/pa.h (VAL_U6_BITS_P): Define.
1081 (INT_U6_BITS): Likewise.
1082 * config/pa/predicates.md (uint6_operand): New predicate.
1083 (shift5_operand, shift6_operand): Likewise.
1084 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
1086 (lshrdi3): Use shift6_operand.
1087 (shrpsi4, shrpdi4): New insn patterns.
1088 (extzv): Delete expander.
1089 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
1090 predicates in unamed zero extract patterns. Tighten common constraint.
1091 (extv): Delete expander.
1092 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
1093 predicates in unamed sign extract patterns. Tighten common constraint.
1094 (insv): Delete expander.
1095 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
1096 predicates in unamed insert patterns. Tighten common constraint.
1097 Change uint32_operand predicate to uint6_operand predicate in unamed
1098 DImode pattern to insert constant values of type 1...1xxxx.
1100 2013-01-04 Jan Hubicka <jh@suse.cz>
1102 PR tree-optimization/55823
1103 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
1106 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1107 Uros Bizjak <ubizjak@gmail.com>
1109 PR rtl-optimization/55845
1110 * df-problems.c (can_move_insns_across): Stop scanning at
1111 volatile_insn_p source instruction or give up if
1112 across_from .. across_to range contains any volatile_insn_p
1115 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
1117 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
1118 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
1120 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
1121 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
1123 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1126 * asan.c (asan_clear_shadow): New function.
1127 (asan_emit_stack_protection): Use it.
1129 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
1131 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
1132 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
1133 with tab instead of space.
1135 2013-01-08 Nick Clifton <nickc@redhat.com>
1137 * config/rl78/rl78.c (rl78_expand_prologue): Always select
1138 register bank 0 at the start of an interrupt handler.
1139 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
1142 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
1144 * config/aarch64/aarch64-simd.md
1145 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
1146 (aarch64_simd_bsl): Likewise.
1147 (aarch64_vcond_internal<mode>): Likewise.
1148 (vcond<mode><mode>): Likewise.
1149 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
1150 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
1152 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
1154 * config/aarch64/aarch64-builtins.c
1155 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
1157 2013-01-08 Martin Jambor <mjambor@suse.cz>
1160 * tree-sra.c (analyze_access_subtree): Return true also after
1161 potentially creating a debug-only replacement.
1163 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1166 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
1168 PR tree-optimization/54120
1169 * tree-vrp.c (range_fits_type_p): Don't allow
1170 src_precision < precision from signed vr to unsigned_p
1171 if vr->min or vr->max is negative.
1172 (simplify_float_conversion_using_ranges): Test can_float_p
1173 against CODE_FOR_nothing.
1175 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1176 Richard Biener <rguenther@suse.de>
1179 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
1180 types instead of just INTEGER_TYPE types.
1182 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
1184 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
1187 2013-01-07 Steve Ellcey <sellcey@mips.com>
1190 * config/mips/mips.opt: Change mad to mmad to match documentation.
1192 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1195 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
1198 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1201 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
1202 (avr_addrspace_t): Add .section_name field.
1203 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
1205 (avr_addrspace): Same. Initialize .section_name. Remove last
1206 NULL entry. Put __memx into .progmemx.data.
1207 (progmem_section_prefix): Remove.
1208 (avr_asm_init_sections): No need to initialize progmem_section.
1209 (avr_asm_named_section): Use avr_addrspace[].section_name to get
1210 section name prefix.
1211 (avr_asm_select_section): Ditto. And use get_unnamed_section to
1212 retrieve the progmem section.
1213 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
1214 boundary to run over avr_addrspace[].
1215 (avr_register_target_pragmas): Ditto.
1217 2013-01-06 Jakub Jelinek <jakub@redhat.com>
1219 * varasm.c (output_constant_def_contents): For asan_protect_global
1220 protected strings, adjust DECL_ALIGN if needed, before testing for
1222 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
1223 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
1225 (output_object_block): For asan protected decls, emit asan padding
1226 after their contents.
1227 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
1228 (asan_finish_file): Test it here instead.
1230 2013-01-07 Nick Clifton <nickc@redhat.com>
1231 Matthias Klose <doko@debian.org>
1232 Doug Kwan <dougkwan@google.com>
1233 H.J. Lu <hongjiu.lu@intel.com>
1236 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
1238 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
1240 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
1242 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
1244 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
1246 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1249 * doc/install.texi (Cross-Compiler-Specific Options): Document
1252 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
1254 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
1255 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
1256 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
1257 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
1258 vqmovun_high_s64): Fix source operand number and update copyright.
1260 2013-01-07 Richard Biener <rguenther@suse.de>
1263 * gimple.h (gimple_call_builtin_p): New overload.
1264 * gimple.c (validate_call): New function.
1265 (gimple_call_builtin_p): Likewise.
1266 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1267 Use gimple_call_builtin_p.
1268 (find_func_clobbers): Likewise.
1269 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
1270 (strlen_optimize_stmt): Likewise.
1272 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1274 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
1275 (vld1q_dup_*): Likewise.
1277 (vld1q_*): Likewise.
1278 (vld1_lane_*): Likewise.
1279 (vld1q_lane_*): Likewise.
1281 2013-01-07 Richard Biener <rguenther@suse.de>
1283 * lto-streamer.h (LTO_minor_version): Bump to 2.
1285 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1287 * config/aarch64/aarch64-protos.h
1288 (aarch64_const_double_zero_rtx_p): Rename to...
1289 (aarch64_float_const_zero_rtx_p): ...this.
1290 (aarch64_float_const_representable_p): New.
1291 (aarch64_output_simd_mov_immediate): Likewise.
1292 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
1293 move immediate case.
1294 * config/aarch64/aarch64.c
1295 (aarch64_const_double_zero_rtx_p): Rename to...
1296 (aarch64_float_const_zero_rtx_p): ...this.
1297 (aarch64_print_operand): Allow printing of new constants.
1298 (aarch64_valid_floating_const): New.
1299 (aarch64_legitimate_constant_p): Check for valid floating-point
1301 (aarch64_simd_valid_immediate): Likewise.
1302 (aarch64_vect_float_const_representable_p): New.
1303 (aarch64_float_const_representable_p): Likewise.
1304 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
1305 (aarch64_output_simd_mov_immediate): New.
1306 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
1307 (*movdf_aarch64): Likewise.
1308 * config/aarch64/constraints.md (Ufc): New.
1309 (Y): call aarch64_float_const_zero_rtx.
1310 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
1312 2013-01-07 Richard Biener <rguenther@suse.de>
1314 PR tree-optimization/55888
1315 PR tree-optimization/55862
1316 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
1317 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
1318 not if it is contained therein.
1320 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1322 * config/avr/t-avr: Typo.
1324 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1327 * config/avr/t-avr: Don't automatically rebuild
1328 $(srcdir)/config/avr/t-multilib
1329 $(srcdir)/config/avr/avr-tables.opt
1330 $(srcdir)/doc/avr-mmcu.texi
1331 (avr-mcus): New phony target to build them on request.
1332 (s-avr-mlib, s-avr-mmcu-texi): Remove.
1333 * avr/avr-mcus.def: Adjust comments.
1335 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
1337 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
1339 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
1341 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
1343 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
1345 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
1347 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
1349 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
1350 to generate profiling.
1351 * config/rs6000/aix64.h (LIB_SPEC): Same.
1353 2013-01-04 Andrew Pinski <apinski@cavium.com>
1355 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
1357 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1359 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
1361 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
1363 (ix86_expand_move): Ditto.
1364 (ix86_zero_extend_to_Pmode): Ditto.
1365 (ix86_expand_call): Ditto.
1366 (ix86_expand_special_args_builtin): Ditto.
1367 (ix86_expand_builtin): Ditto.
1369 2013-01-04 Richard Biener <rguenther@suse.de>
1371 PR tree-optimization/55862
1372 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
1373 translating them through PHI nodes.
1375 2013-01-04 Martin Jambor <mjambor@suse.cz>
1377 PR tree-optimization/55755
1378 * tree-sra.c (sra_modify_assign): Do not check that an access has no
1379 children when trying to avoid producing a VIEW_CONVERT_EXPR.
1381 2013-01-04 Marek Polacek <polacek@redhat.com>
1384 * opts.c (default_options_optimization): Clarify error message.
1386 2013-01-04 Richard Biener <rguenther@suse.de>
1389 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
1392 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1395 * config/pa/pa.md (movsi): Revert previous change.
1396 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
1399 2013-01-03 Richard Henderson <rth@redhat.com>
1401 * config/i386/i386.c (ix86_expand_move): Always assign to op1
1402 after eliminating TLS symbols.
1404 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
1407 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
1408 * graphite-poly.c (debug_gmp_value): Likewise.
1410 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
1413 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
1414 selected code model, define __code_mode_small__, __code_model_medium__,
1415 __code_model_large__, __code_model_32__ or __code_model_kernel__.
1416 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
1417 xchg temporary register with %k. Declare temporary register as
1419 [__x86_64__]: For medium and large code models, preserve %rbx register.
1421 2013-01-03 Richard Biener <rguenther@suse.de>
1423 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
1424 (dump_subscript): Adjust.
1425 (finalize_ddr_dependent): Do not dump redundant info.
1426 (analyze_siv_subscript): Adjust.
1427 (subscript_dependence_tester): Likewise.
1428 (compute_affine_dependence): Likewise.
1430 2013-01-03 Richard Biener <rguenther@suse.de>
1433 2013-01-03 Richard Biener <rguenther@suse.de>
1435 PR tree-optimization/55857
1436 * tree-vect-stmts.c (vectorizable_load): Do not setup
1437 re-alignment for invariant loads.
1439 2013-01-02 Richard Biener <rguenther@suse.de>
1441 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
1442 invariant load do not generate a vector load from the scalar location.
1444 2013-01-03 Richard Biener <rguenther@suse.de>
1446 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
1447 for not vectorizing.
1448 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1449 not build INDIRECT_REFs, call get_name once only.
1450 (vect_create_data_ref_ptr): Likewise. Dump base object kind
1451 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
1453 2013-01-03 Richard Biener <rguenther@suse.de>
1455 PR tree-optimization/55857
1456 * tree-vect-stmts.c (vectorizable_load): Do not setup
1457 re-alignment for invariant loads.
1459 2013-01-03 Richard Biener <rguenther@suse.de>
1462 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
1463 prefer a built-in decl.
1465 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1467 * gcc.c (process_command): Update copyright notice dates.
1468 * gcov.c (print_version): Likewise.
1469 * gcov-dump.c (print_version): Likewise.
1471 PR rtl-optimization/55838
1472 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
1473 iv0.step, iv1.step and step.
1475 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1476 Marc Glisse <marc.glisse@inria.fr>
1478 PR tree-optimization/55832
1479 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
1480 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
1481 integer_{one,zero}_node.
1483 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1486 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
1487 * var-tracking.c (reverse_op): Don't add reverse ops to
1488 VALUEs that have already
1489 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
1491 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
1493 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
1495 2013-01-02 Teresa Johnson <tejohnson@google.com>
1497 * dumpfile.c (dump_loc): Print filename with location.
1498 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
1499 new location_t parameter to emit complete unroll message with
1501 (canonicalize_loop_induction_variables): Compute loops location
1502 and pass to try_unroll_loop_completely.
1503 * loop-unroll.c (report_unroll_peel): New function.
1504 (peel_loops_completely): Use new dump format with location
1505 for main dumpfile message, and invoke report_unroll_peel on success.
1506 (decide_unrolling_and_peeling): Ditto.
1507 (decide_peel_once_rolling): Remove old dumpfile message subsumed
1508 by report_unroll_peel.
1509 (decide_peel_completely): Ditto.
1510 (decide_unroll_constant_iterations): Ditto.
1511 (decide_unroll_runtime_iterations): Ditto.
1512 (decide_peel_simple): Ditto.
1513 (decide_unroll_stupid): Ditto.
1514 * cfgloop.c (get_loop_location): New function.
1515 * cfgloop.h (get_loop_location): Declare.
1517 2013-01-02 Sriraman Tallam <tmsriram@google.com>
1519 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
1522 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1525 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
1526 BLKmode objects when EXPAND_MEMORY is specified.
1528 2013-01-02 Sriraman Tallam <tmsriram@google.com>
1530 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
1532 (fold_builtin_cpu): Do not share cpu model decls across statements.
1534 2013-01-02 Jason Merrill <jason@redhat.com>
1537 * tree.c (build_array_type_1): Revert earlier change.
1539 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
1541 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
1543 * config/aarch64/aarch64-tune.md: Re-generate.
1545 2013-01-02 Richard Biener <rguenther@suse.de>
1547 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
1548 invariant load do not generate a vector load from the scalar location.
1550 2013-01-02 Richard Biener <rguenther@suse.de>
1553 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
1554 * configure: Regenerate.
1556 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1558 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
1559 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
1560 (expand_builtin_int_roundingfn_2): Keep the original target around
1561 for the fallback case.
1563 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1565 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
1566 to be clear for sign changes.
1568 2013-01-01 Jan Hubicka <jh@suse.cz>
1570 * ipa-inline-analysis.c: Fix formatting.
1572 2013-01-01 Jakub Jelinek <jakub@redhat.com>
1574 PR tree-optimization/55831
1575 * tree-vect-loop.c (get_initial_def_for_induction): Use
1576 gsi_after_labels instead of gsi_start_bb.
1578 Copyright (C) 2013 Free Software Foundation, Inc.
1580 Copying and distribution of this file, with or without modification,
1581 are permitted in any medium without royalty provided the copyright
1582 notice and this notice are preserved.