1 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
3 PR tree-optimization/56064
4 * fixed-value.c (fixed_from_double_int): New function.
5 * fixed-value.h (fixed_from_double_int): New prototype.
6 (const_fixed_from_double_int): New static inline function.
7 * fold-const.c (native_interpret_fixed): New static function.
8 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10 (native_encode_fixed): New static function.
11 (native_encode_expr) <FIXED_CST>: Use it.
12 (native_interpret_int): Move double_int worker code to...
13 * double-int.c (double_int::from_buffer): ...this new static method.
14 * double-int.h (double_int::from_buffer): Prototype it.
16 2013-01-30 Richard Biener <rguenther@suse.de>
18 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
19 New pointer-map and obstack.
20 (init_alias_vars): Allocate pointer-map and obstack.
21 (delete_points_to_sets): Free them.
22 (find_what_var_points_to): Cache result.
23 (find_what_p_points_to): Adjust for changed interface of
24 find_what_var_points_to.
25 (compute_points_to_sets): Likewise.
26 (ipa_pta_execute): Likewise.
28 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
31 * configure: Regenerate.
32 * config.in: Regenerate.
33 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
34 #nobits/#progbits if supported.
36 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
39 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
40 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
41 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
43 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
45 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
46 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
48 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
50 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
51 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
53 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
55 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
57 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
58 * config/arm/cortex-a7.md: New bypasses using
59 arm_mac_accumulator_is_result.
61 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
63 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
64 (cortex_a7_neon_mla): Likewise.
65 (cortex_a7_fpfmad): New reservation.
66 (cortex_a7_fpmacs): Use ffmas and update required units.
67 (cortex_a7_fpmuld): Update required units and latency.
68 (cortex_a7_fpmacd): Likewise.
69 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
70 (cortex_a7_neon). Likewise.
71 (bypass) Update participating units.
73 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
75 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
76 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
78 * config/arm/vfp11.md (vfp_farith): Use ffmas.
79 (vfp_fmul): Use ffmad.
80 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
81 (cortex_r4_fmacd): Use ffmad.
82 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
83 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
84 (cortex_a9_fmacd): Use ffmad.
85 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
86 (cortex_a8_vfp_macd): Use ffmad.
87 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
88 (cortex_a5_fpmacd): Use ffmad.
89 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
90 (cortex_a15_vfp_macd): Use ffmad.
91 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
93 2013-01-29 Jason Merrill <jason@redhat.com>
96 * varasm.c (default_assemble_visibility): Don't warn about
97 visibility on artificial decls.
99 2013-01-29 Richard Biener <rguenther@suse.de>
101 PR tree-optimization/56113
102 * tree-ssa-structalias.c (equiv_class_lookup): Also return
104 (label_visit): Free duplicate bitmaps and record the leader instead.
105 (perform_var_substitution): Adjust.
107 2013-01-29 Richard Biener <rguenther@suse.de>
109 PR tree-optimization/55270
110 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
111 the CFG, schedule loops for fixup.
113 2013-01-29 Nick Clifton <nickc@redhat.com>
115 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
118 2013-01-28 Leif Ekblad <leif@rdos.net>
120 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
121 * config/i386/i386.h (TARGET_RDOS): New macro.
122 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
123 * config/i386/i386.c (ix86_option_override_internal): For 64bit
124 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
125 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
126 DEFAULT_LARGE_SECTION_THRESHOLD.
127 * config/i386/i386.md (R14_REG, R15_REG): New constants.
128 * config/i386/rdos.h: New file.
129 * config/i386/rdos64.h: New file.
131 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
134 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
137 2013-01-28 Jakub Jelinek <jakub@redhat.com>
139 PR rtl-optimization/56117
140 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
141 call cselib_lookup_from_insn on the MEM before calling
142 add_insn_mem_dependence.
144 2013-01-28 Richard Biener <rguenther@suse.de>
146 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
147 to a stmt that didn't have one.
148 (copy_phis_for_bb): Likewise for PHI arguments.
149 (copy_debug_stmt): Likewise for debug stmts.
151 2013-01-28 Richard Biener <rguenther@suse.de>
153 PR tree-optimization/56034
154 * tree-loop-distribution.c (enum partition_kind): Add
156 (partition_builtin_p): Adjust.
157 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
158 it is the last partition.
159 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
160 up the vertex for the definition.
161 (classify_partition): Classify whether a partition is a
162 PKIND_REDUCTION, thus has uses outside of the loop.
163 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
164 Merge all PKIND_REDUCTION partitions into the last partition.
165 (tree_loop_distribution): Seed partitions from reductions as well.
167 2013-01-28 Jakub Jelinek <jakub@redhat.com>
169 PR tree-optimization/56125
170 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
171 pow(x,c) into sqrt(x) * powi(x, n/2) or
172 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
174 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
175 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
178 PR tree-optimization/56094
179 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
180 to UNKNOWN_LOCATION while gimplifying expr.
182 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
185 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
186 operand 0 in movabs insn template for -masm=intel asm alternative.
187 (*movabs<mode>_2): Ditto for operand 1.
189 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
192 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
195 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
197 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
200 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
202 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
203 Undef to avoid warning.
205 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
207 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
208 * configure: Regenerate.
210 2013-01-25 Jakub Jelinek <jakub@redhat.com>
212 PR tree-optimization/56098
213 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
214 for stmts with volatile ops.
215 (cond_store_replacement): Don't optimize if assign has volatile ops.
216 (cond_if_else_store_replacement_1): Don't optimize if either
217 then_assign or else_assign have volatile ops.
218 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
221 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
223 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
225 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
227 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
228 missing ':' in asm example.
230 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
232 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
233 entries into lane and laneq entries.
234 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
235 Remove AdvSIMD scalar modes.
236 (aarch64_sq<r>dmulh_laneq<mode>): New.
237 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
239 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
240 builtin implementations to relfect changes in RTL in aarch64-simd.md.
241 * config/aarch64/iterators.md (VCOND): New.
244 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
247 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
248 Add NULL LIBNAME argument to existing definitions.
249 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
250 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
251 * config/avr/avr.c (DEF_BUILTIN): Same.
252 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
253 (avr_expand_builtin): Expand to a vanilla call if a libgcc
254 implementation is available (DECL_ASSEMBLER_NAME is set).
255 (avr_fold_absfx): New static function.
256 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
257 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
258 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
260 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
261 (abshk, absk, abslk, absllk): Provide as static inline functions.
263 2013-01-25 Marek Polacek <polacek@redhat.com>
265 PR tree-optimization/56035
266 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
268 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
270 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
271 (*movtf_internal_rex64): Add (!o,C) alternative
272 (*movxf_internal_rex64): Ditto.
273 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
275 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
277 * doc/invoke.texi: fix typo.
278 * doc/objc.texi: fix typo.
280 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
282 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
283 for the first two alternatives.
285 2013-01-24 Diego Novillo <dnovillo@google.com>
287 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
288 (ggc-zone.o): Remove.
289 * configure.ac: Remove option --with-gc.
290 * configure: Re-generate.
291 * doc/install.texi: Remove documentation for --with-gc.
292 * gengtype.c (write_enum_defn): Remove. Update all users.
293 (write_Types_process_field): Remove generation of gt_e_* argument.
294 (output_type_enum): Remove. Update all users.
295 (write_enum_defn): Remove. Update all users.
296 (enum alloc_zone): Remove. Update all users.
297 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
298 * ggc-common.c (ggc_splay_alloc): Remove first argument.
300 (struct ptr_data): Remove field TYPE. Update all users.
301 (gt_pch_note_object): Remove argument TYPE. Update all users.
302 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
304 * ggc-none.c (ggc_alloc_typed_stat): Remove.
305 (struct alloc_zone): Remove.
306 (ggc_internal_alloc_zone_stat): Remove.
307 (ggc_internal_cleared_alloc_zone_stat): Remove.
308 * ggc-page.c (ggc_alloc_typed_stat): Remove.
309 (ggc_pch_count_object): Remove last argument. Update all users.
310 (ggc_pch_alloc_object): Remove last argument. Update all users.
311 (struct alloc_zone): Remove.
312 * ggc-zone.c: Remove.
313 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
314 (struct alloc_zone): Remove.
315 (ggc_alloc_typed_stat): Remove.
316 (ggc_alloc_typed): Remove.
317 (ggc_splay_alloc): Remove first argument.
318 (rtl_zone): Remove. Update all users.
319 (tree_zone): Remove. Update all users.
320 (tree_id_zone): Remove. Update all users.
321 (ggc_internal_zone_alloc_stat): Remove. Update all users.
322 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
323 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
324 * tree-ssanames.c: Remove references to zone allocator in comments.
326 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
328 * config/avr/avr.c (avr_out_fract): Make register numbers that
329 might be outside of source operand signed.
331 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
333 * config/i386/constraints.md (Yf): New constraint.
334 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
335 of f constraint to conditionaly disable x87 register preferences.
336 (*movdf_internal): Ditto.
337 (*movsf_internal): Ditto.
339 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
342 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
343 that have operands with impossible constraints.
344 Add a FIXME for a speed-up opportunity.
345 * lra-constraints.c (process_alt_operands): Verify that a class
346 selected from constraints on asms is valid for the operand mode.
347 (curr_insn_transform): Remove incorrect comment.
349 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
351 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
352 TOC operand is a valid symbol ref in the constant pool.
354 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
356 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
358 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
361 * config/avr/stdfix.h: New file.
362 * t-avr (stdfix-gcc.h): New rule to build it.
363 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
365 2013-01-23 Kostya Serebryany <kcc@google.com>
367 * config/darwin.h: remove dependency on
368 CoreFoundation (asan on Mac OS).
370 2013-01-23 Jakub Jelinek <jakub@redhat.com>
373 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
374 instead of cmpdi_operand for first comparison operand.
375 Don't assert that comparison operands aren't both constants.
377 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
379 * doc/install.texi (Downloading the Source): Update references to
380 downloading separate components.
382 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
384 * doc/extend.texi (__int128): Improve grammar.
386 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
389 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
390 alternative to (o,r).
391 (*movdi_internal_rex64): Remove (!o,n) alternative.
392 (DImode immediate->memory splitter): Remove.
393 (DImode immediate->memory peephole2): Remove.
394 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
395 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
396 alternative to (!o,*r).
397 (*movtf_internal_sse): New pattern.
398 (*movxf_internal_rex64): New pattern.
399 (*movxf_internal): Disable for TARGET_64BIT.
400 (*movdf_internal_rex64): Remove (!o,F) alternative.
402 2013-01-22 Jakub Jelinek <jakub@redhat.com>
405 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
406 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
407 * tree-vect-loop-manip.c (find_loop_location): Also ignore
408 stmt locations where LOCATION_LOCUS of the stmt location is
409 UNKNOWN_LOCATION or BUILTINS_LOCATION.
412 * config/i386/i386.md (UNSPEC_STOS): New.
413 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
414 *strsetqi_1): Add UNSPEC_STOS.
416 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
419 * doc/invoke.texi: Remove left over -Wsynth example.
421 2013-01-21 Jakub Jelinek <jakub@redhat.com>
423 PR tree-optimization/56051
424 * fold-const.c (fold_binary_loc): Don't fold
425 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
426 a narrowing conversion, or widening conversion from signed
429 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
431 PR rtl-optimization/56023
432 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
433 dependent on debug instruction.
435 2013-01-21 Martin Jambor <mjambor@suse.cz>
438 * function.c (allocate_struct_function): Call
439 invoke_set_current_function_hook earlier.
441 2013-01-21 Jakub Jelinek <jakub@redhat.com>
443 * reload1.c (init_reload): Only initialize reload_obstack
444 during the first call.
446 2013-01-21 Marek Polacek <polacek@redhat.com>
448 * cfgloop.c (verify_loop_structure): Fix up grammar.
450 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
452 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
453 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
455 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
458 * config/arm/marvell-pj4.md: Update copyright year.
459 Fix up use of alu to alu_reg and simple_alu_imm.
461 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
463 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
465 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
468 * lra-constraints.c (curr_insn_transform): Don't reuse original
469 insn for secondary memory move when memory mode should be different.
471 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
473 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
474 atomic_storedi_1): New patterns.
476 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
478 btver2 pipeline descriptions.
479 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
481 * config/i386/i386.md (btver2_decode): New type attributes.
482 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
484 * config/i386/btver2.md: New file describing btver2 pipelines.
486 2013-01-19 Andrew Pinski <apinski@cavium.com>
488 PR tree-optimization/52631
489 * tree-ssa-sccvn (visit_use): Before looking up the original
490 statement, try looking up the simplified expression.
492 2013-01-19 Anthony Green <green@moxielogic.com>
494 * config/moxie/moxie.c (moxie_expand_prologue): Set
495 current_function_static_stack_size.
497 2013-01-18 Jakub Jelinek <jakub@redhat.com>
499 PR tree-optimization/56029
500 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
501 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
503 2013-01-18 Sharad Singhai <singhai@google.com>
505 PR tree-optimization/55995
506 * dumpfile.c (dump_loc): Print location only if available.
507 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
509 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
512 * lra-constraints.c (curr_insn_transform): Reuse original insn for
513 secondary memory move.
514 (inherit_reload_reg): Use rclass instead of cl for
515 check_secondary_memory_needed_p.
517 2013-01-18 Jakub Jelinek <jakub@redhat.com>
520 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
521 the case where writing real complex part of target modifies op1.
523 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
525 * config/aarch64/aarch64-simd.md
526 (aarch64_vcond_internal<mode>): Handle unordered cases.
527 * config/aarch64/iterators.md (v_cmp_result): New.
529 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
530 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
532 * config/arm/marvell-pj4.md: New file.
533 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
534 * config/arm/arm.md (generic_sched): Add marvell_pj4.
535 (generic_vfp): Likewise.
536 * config/arm/arm-cores.def: Add marvell-pj4.
537 * config/arm/arm-tune.md: Regenerate.
538 * config/arm/arm-tables.opt: Regenerate.
539 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
540 * doc/invoke.texi: Document marvell-pj4.
542 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
544 * config/aarch64/arm_neon.h: Map scalar types to standard types.
546 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
551 * var-tracking.c (negative_power_of_two_p): New.
552 (global_get_addr_cache, local_get_addr_cache): New.
553 (get_addr_from_global_cache, get_addr_from_local_cache): New.
554 (vt_canonicalize_addr): Rewrite using the above. Adjust the
556 (vt_stack_offset_p): Remove.
557 (vt_canon_true_dep): Always canonicalize loc's address.
558 (clobber_overlapping_mems): Make sure we have a MEM.
559 (local_get_addr_clear_given_value): New.
560 (val_reset): Clear local cached entries.
561 (compute_bb_dataflow): Create and release the local cache.
562 Disable duplicate MEMs clobbering.
563 (emit_notes_in_bb): Clobber MEMs likewise.
564 (vt_emit_notes): Create and release the local cache.
565 (vt_initialize, vt_finalize): Create and release the global
567 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
569 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
572 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
573 not found in the symtab.
575 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
578 PR rtl-optimization/55547
579 PR rtl-optimization/53827
582 * alias.c (offset_overlap_p): New, factored out of...
583 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
584 the conservative special case for symbolic constants. Don't
585 adjust zero sizes on alignment.
587 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
589 PR rtl-optimization/52573
590 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
591 REG_UNUSED for the same register.
593 2013-01-17 Richard Biener <rguenther@suse.de>
594 Marek Polacek <polacek@redhat.com>
596 PR rtl-optimization/55833
597 * loop-unswitch.c (unswitch_loops): Move loop verification...
598 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
599 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
600 Set it to true when we're removing a loop from hierarchy tree in
601 an irreducible region.
602 (fix_bb_placements): Adjust caller.
603 (fix_loop_placements): Likewise.
605 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
607 * config/avr/builtins.def (DEF_BUILTIN): Factor out
608 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
609 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
610 Remove ID. Adjust comments.
611 * config/avr/avr-c.c (avr_builtin_name): Remove.
612 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
613 * config/avr/avr.c (avr_tolower): New static function.
614 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
615 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
616 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
619 2013-01-17 Jan Hubicka <jh@suse.cz>
621 PR tree-optimization/55273
622 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
624 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
627 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
628 store through atomic_store<mode>_1.
629 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
631 2013-01-17 Martin Jambor <mjambor@suse.cz>
633 PR tree-optimizations/55264
634 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
636 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
637 virtual methods before inlining is over.
638 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
640 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
643 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
645 PR rtl-optimization/56005
646 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
647 pending reads for prefetch.
649 2013-01-16 Ian Bolton <ian.bolton@arm.com>
651 * config/aarch64/aarch64.md
652 (*cstoresi_neg_uxtw): New pattern.
653 (*cmovsi_insn_uxtw): New pattern.
654 (*<optab>si3_uxtw): New pattern.
655 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
656 (*<optab>si3_insn_uxtw): New pattern.
657 (*bswapsi2_uxtw): New pattern.
659 2013-01-16 Richard Biener <rguenther@suse.de>
661 * tree-inline.c (tree_function_versioning): Remove set but
664 2013-01-16 Richard Biener <rguenther@suse.de>
666 PR tree-optimization/55964
667 * tree-flow.h (rename_variables_in_loop): Remove.
668 (rename_variables_in_bb): Likewise.
669 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
670 (copy_loop_before): Adjust and delete update-ssa status.
671 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
672 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
673 (rename_variables_in_loop): Remove.
674 (slpeel_update_phis_for_duplicate_loop): Likewise.
675 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
676 use available cfg machinery instead of duplicating it.
677 Update PHI nodes and perform poor-mans SSA update here.
678 (slpeel_tree_peel_loop_to_edge): Adjust.
680 2013-01-16 Richard Biener <rguenther@suse.de>
682 PR tree-optimization/54767
683 PR tree-optimization/53465
684 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
685 (vrp_visit_phi_node): For PHI arguments coming via backedges
686 drop all symbolical range information.
687 (execute_vrp): Compute backedges.
689 2013-01-16 Richard Biener <rguenther@suse.de>
691 * doc/install.texi: Update CLooG and ISL requirements to
694 2013-01-16 Christian Bruel <christian.bruel@st.com>
697 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
698 (broken_move): Handle UNSPECV_SP_SWITCH_B.
699 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
701 2013-01-16 DJ Delorie <dj@redhat.com>
703 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
704 (UNSPECV_SP_SWITCH_E): New.
705 (sp_switch_1): Change to an unspec.
706 (sp_switch_2): Change to an unspec. Don't use post-inc when we
709 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
711 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
712 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
713 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
714 (expand_mem_thread_fence): Ditto.
715 (expand_mem_signal_fence): Ditto.
716 (expand_atomic_load): Ditto.
717 (expand_atomic_store): Ditto.
719 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
721 PR rtl-optimization/55547
722 PR rtl-optimization/53827
725 * alias.c (memrefs_conflict_p): Set sizes to negative after
728 2013-01-15 Jakub Jelinek <jakub@redhat.com>
731 * function.c (thread_prologue_and_epilogue_insns): Always
732 add crtl->drap_reg to set_up_by_prologue.set, even if
733 stack_realign_drap is false.
735 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
737 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
738 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
739 *call): Fix indention.
741 2013-01-15 Tom de Vries <tom@codesourcery.com>
744 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
747 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
749 PR rtl-optimization/55153
750 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
752 2013-01-15 Martin Jambor <mjambor@suse.cz>
754 PR tree-optimization/55920
755 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
756 accesses as grp_to_be_debug_replaced.
758 2013-01-15 Jakub Jelinek <jakub@redhat.com>
760 PR tree-optimization/55920
761 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
762 there is non-useless type conversion needed from debug rhs to lhs,
763 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
765 2013-01-15 Joseph Myers <joseph@codesourcery.com>
766 Mikael Pettersson <mikpe@it.uu.se>
769 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
771 (ASM_OUTPUT_CASE_LABEL): Remove.
772 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
773 * final.c (shorten_branches): Update alignment of labels before
774 jump tables if CASE_VECTOR_SHORTEN_MODE.
776 2013-01-15 Richard Biener <rguenther@suse.de>
779 * system.h: Do not include gmp.h for building host tools.
781 2013-01-15 Richard Biener <rguenther@suse.de>
784 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
785 account for bitpos when computing alignment.
787 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
789 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
790 (ix86_target_macros_internal): Likewise.
792 * config/i386/i386.c (m_CORE2I7): Removed.
793 (m_CORE_HASWELL): New macro.
794 (m_CORE_ALL): Likewise.
795 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
796 (initial_ix86_arch_features): Likewise.
797 (processor_target_table): Initializations for Core avx2.
798 (cpu_names): New names "core-avx2".
799 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
800 PROCESSOR_CORE_HASWELL.
801 (ix86_issue_rate): New case.
802 (ia32_multipass_dfa_lookahead): Likewise.
803 (ix86_sched_init_global): Likewise.
805 * config/i386/i386.h (TARGET_HASWELL): New macro.
806 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
807 (processor_type): New PROCESSOR_HASWELL.
809 2013-01-15 Jakub Jelinek <jakub@redhat.com>
811 PR tree-optimization/55955
812 * tree-vect-loop.c (vectorizable_reduction): Give up early on
813 *SHIFT_EXPR and *ROTATE_EXPR codes.
815 PR tree-optimization/48766
816 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
817 -ftrapv disable -fwrapv.
819 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
822 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
823 etc. to 1 and not to __flash.
824 Use LL suffix for __INT24_MAX__ with -mint8.
825 Use ULL suffix for __UINT24_MAX__ with -mint8.
827 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
829 * config/avr/avr-arch.h
830 (struct base_arch_s): Use typedef avr_arch_t instead.
831 (struct arch_info_s): Use typedef avr_arch_info_t instead.
832 (struct mcu_type_s): Use typedef avr_mcu_t instead.
833 * config/avr/avr.c: Same.
834 * config/avr/avr-devices.c: Same.
835 * config/avr/driver-avr.c: Same.
836 * config/avr/gen-avr-mmcu-texi.c: Same.
837 * config/avr/avr-mcus.def: Adjust comment.
839 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
841 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
842 * config/aarch64/iterators.md (VALLDI): New.
844 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
845 Andi Kleen <ak@linux.intel.com>
848 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
849 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
852 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
854 * config/avr/avr-stdint.h: Remove trailing blanks.
855 * config/avr/avr-log.h: Same.
856 * config/avr/avr-arch.h: Same.
857 * config/avr/avr-devices.c: Same.
858 * config/avr/avr-dimode.md: Same.
859 * config/avr/predicates.md: Same.
860 * config/avr/avr-c.c: Same. And fix typo.
862 * config/avr/avr-protos.h: Same. And:
863 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
864 (init_cumulative_args): Rename to avr_init_cumulative_args.
865 (expand_prologue): Rename to avr_expand_prologue.
866 (expand_epilogue): Rename to avr_expand_epilogue.
867 (adjust_insn_length): Rename to avr_adjust_insn_length.
868 (notice_update_cc): Rename to avr_notice_update_cc.
869 (final_prescan_insn): Rename to avr_final_prescan_insn.
870 * config/avr/avr.c: Same.
871 * config/avr/avr.h: Same.
872 * config/avr/avr.md: Remove trailing blanks.
873 (prologue): Use avr_expand_prologue.
874 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
876 2013-01-14 Richard Biener <rguenther@suse.de>
878 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
879 verify_location, collect_subblocks): New functions.
880 (verify_gimple_in_cfg): Verify that locations only reference
881 BLOCKs in the functions BLOCK tree.
883 2013-01-14 Richard Biener <rguenther@suse.de>
885 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
887 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
889 (insert_out_of_ssa_copy_on_edge): Likewise.
890 (rewrite_close_phi_out_of_ssa): Likewise.
891 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
893 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
894 propagated constants.
895 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
898 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
900 * config/avr/avr-modes.def: Add GPL copyright notice.
902 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
904 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
905 MEMMODEL_MASK to determine memory model.
906 (atomic_store<mode>): Ditto from operands[2].
907 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
909 2013-01-13 Jakub Jelinek <jakub@redhat.com>
912 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
913 (fold_gimple_assign): Don't call unshare_expr here.
914 (fold_ctor_reference): Call unshare_expr.
916 2013-01-13 Terry Guo <terry.guo@arm.com>
918 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
919 * doc/fragments.texi: Document MULTILIB_REUSE.
920 * gcc.c (multilib_reuse): New internal spec.
921 (set_multilib_dir): Also search multilib from multilib_reuse.
922 * genmultilib (tmpmultilib3): Refactor code.
923 (tmpmultilib4): Ditto.
924 (multilib_reuse): New multilib argument.
926 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
928 * Makefile.in: Update copyright.
930 2013-01-12 Tom de Vries <tom@codesourcery.com>
933 * calls.c (expand_call): Check if arg_nr is valid.
935 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
937 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
938 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
939 documentation. Add missing '__' in front of
940 __builtin_ia32_packssdw256.
942 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
945 * config/s390/s390.c (s390_preferred_reload_class): Do not return
946 NO_REGS for larl operands.
947 (s390_reload_larl_operand): Use s390_load_address instead of
950 2013-01-11 Richard Biener <rguenther@suse.de>
952 * tree-cfg.c (verify_node_sharing_1): Split out from ...
953 (verify_node_sharing): ... here.
954 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
956 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
958 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
959 Substitute TREECHECKING.
960 * configure: Regenerate.
961 * Makefile.in (TREECHECKING): New.
963 2013-01-11 Richard Guenther <rguenther@suse.de>
965 PR tree-optimization/44061
966 * tree-vrp.c (extract_range_basic): Compute zero as
967 value-range for __builtin_constant_p of function parameters.
969 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
971 Update copyright years.
973 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
975 PR rtl-optimization/55672
976 * lra-eliminations.c (mark_not_eliminable): Permit addition with
977 const to be eliminable.
979 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
981 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
982 * configure: Regenerate.
984 2013-01-10 Richard Biener <rguenther@suse.de>
986 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
988 2013-01-10 Richard Biener <rguenther@suse.de>
991 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
992 locations for virtual PHI arguments.
993 (rewrite_update_phi_arguments): Likewise.
995 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
997 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
1000 2013-01-10 Jakub Jelinek <jakub@redhat.com>
1002 PR tree-optimization/55921
1003 * tree-complex.c (expand_complex_asm): New function.
1004 (expand_complex_operations_1): Call it for GIMPLE_ASM.
1006 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1009 * config/s390/s390.c (s390_symref_operand_p)
1010 (s390_loadrelative_operand_p): Merge the two functions.
1011 (s390_check_qrst_address, print_operand_address): Add parameters
1012 to s390_loadrelative_operand_p invokation.
1013 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
1014 (s390_reload_larl_operand, s390_secondary_reload): Use
1015 s390_loadrelative_operand_p instead of s390_symref_operand_p.
1016 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
1018 2013-01-09 Mike Stump <mikestump@comcast.net>
1020 * dse.c (record_store): Remove unnecessary assert.
1022 2013-01-09 Jan Hubicka <jh@suse.cz>
1024 PR tree-optimization/55569
1025 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
1026 * cfgloop.h (scale_loop_profile): Likewise.
1028 2013-01-09 Jan Hubicka <jh@suse.cz>
1031 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
1033 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
1035 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
1038 * expr.h (maybe_emit_group_store): Declare.
1039 * expr.c (maybe_emit_group_store): New function.
1040 * builtins.c (expand_builtin_int_roundingfn): Call it.
1041 (expand_builtin_int_roundingfn_2): Likewise.
1043 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
1045 PR rtl-optimization/55829
1046 * lra-constraints.c (match_reload): Add code for absent output.
1047 (curr_insn_transform): Add code for reloads of matched inputs
1050 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
1052 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
1053 attribute of movddup insn to DF.
1054 (*vec_interleave_lowv2df): Ditto.
1055 (vec_dupv2df): Ditto.
1057 2013-01-09 Jan Hubicka <jh@suse.cz>
1059 PR tree-optimiation/55875
1060 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
1061 EVERY_ITERATION parameter.
1062 (number_of_iterations_exit): Check if exit is executed every iteration.
1063 (idx_infer_loop_bounds): Similarly here.
1064 (n_of_executions_at_most): Simplify
1065 to only test for cases where statement is dominated by the
1066 particular bound; handle correctly the "postdominance" test.
1067 (scev_probably_wraps_p): Use max loop iterations info
1068 as a global bound first.
1070 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
1071 Nick Clifton <nickc@redhat.com>
1073 * config/v850/v850.md (cbranchsf4): New pattern.
1074 (cstoresf4): New pattern.
1075 (cbranchdf4): New pattern.
1076 (cstoredf4): New pattern.
1077 (movsicc): Disallow floating point comparisons.
1078 (cmpsf_le_insn): Fix order of operators.
1079 (cmpsf_lt_insn): Likewise.
1080 (cmpsf_eq_insn): Likewise.
1081 (cmpdf_le_insn): Likewise.
1082 (cmpdf_lt_insn): Likewise.
1083 (cmpdf_eq_insn): Likewise.
1084 (cmpsf_ge_insn): Use LE comparison.
1085 (cmpdf_ge_insn): Likewise.
1086 (cmpsf_gt_insn): Use LT comparison.
1087 (cmpdf_gt_insn): Likewise.
1088 (cmpsf_ne_insn): Delete pattern.
1089 (cmpdf_ne_insn): Delete pattern.
1090 * config/v850/v850.c (v850_gen_float_compare): Use
1091 gen_cmpdf_eq_insn for NE comparison.
1092 (v850_float_z_comparison_operator)
1093 (v850_float_nz_comparison_operator): Move from here ...
1094 * config/v850/predicates.md: ... to here. Move GT and GE
1095 comparisons into v850_float_z_comparison_operator.
1096 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
1098 (v850_float_nz_comparison_operator): Likewise.
1100 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1102 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
1103 with calls to gen_insvsi/gen_insvdi.
1105 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1107 * config/i386/i386.c (initial_ix86_tune_features): Set up
1108 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
1110 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
1111 Jakub Jelinek <jakub@redhat.com>
1113 PR tree-optimization/48189
1114 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
1115 If nitercst is 0, don't predict the exit edge.
1117 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1119 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
1120 in asm_fprintf with reg_names.
1121 (aarch64_print_operand_address): Likewise.
1122 (aarch64_return_addr): Likewise.
1123 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
1125 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1127 * config/pa/pa.h (VAL_U6_BITS_P): Define.
1128 (INT_U6_BITS): Likewise.
1129 * config/pa/predicates.md (uint6_operand): New predicate.
1130 (shift5_operand, shift6_operand): Likewise.
1131 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
1133 (lshrdi3): Use shift6_operand.
1134 (shrpsi4, shrpdi4): New insn patterns.
1135 (extzv): Delete expander.
1136 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
1137 predicates in unamed zero extract patterns. Tighten common constraint.
1138 (extv): Delete expander.
1139 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
1140 predicates in unamed sign extract patterns. Tighten common constraint.
1141 (insv): Delete expander.
1142 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
1143 predicates in unamed insert patterns. Tighten common constraint.
1144 Change uint32_operand predicate to uint6_operand predicate in unamed
1145 DImode pattern to insert constant values of type 1...1xxxx.
1147 2013-01-04 Jan Hubicka <jh@suse.cz>
1149 PR tree-optimization/55823
1150 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
1153 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1154 Uros Bizjak <ubizjak@gmail.com>
1156 PR rtl-optimization/55845
1157 * df-problems.c (can_move_insns_across): Stop scanning at
1158 volatile_insn_p source instruction or give up if
1159 across_from .. across_to range contains any volatile_insn_p
1162 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
1164 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
1165 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
1167 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
1168 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
1170 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1173 * asan.c (asan_clear_shadow): New function.
1174 (asan_emit_stack_protection): Use it.
1176 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
1178 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
1179 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
1180 with tab instead of space.
1182 2013-01-08 Nick Clifton <nickc@redhat.com>
1184 * config/rl78/rl78.c (rl78_expand_prologue): Always select
1185 register bank 0 at the start of an interrupt handler.
1186 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
1189 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
1191 * config/aarch64/aarch64-simd.md
1192 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
1193 (aarch64_simd_bsl): Likewise.
1194 (aarch64_vcond_internal<mode>): Likewise.
1195 (vcond<mode><mode>): Likewise.
1196 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
1197 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
1199 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
1201 * config/aarch64/aarch64-builtins.c
1202 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
1204 2013-01-08 Martin Jambor <mjambor@suse.cz>
1207 * tree-sra.c (analyze_access_subtree): Return true also after
1208 potentially creating a debug-only replacement.
1210 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1213 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
1215 PR tree-optimization/54120
1216 * tree-vrp.c (range_fits_type_p): Don't allow
1217 src_precision < precision from signed vr to unsigned_p
1218 if vr->min or vr->max is negative.
1219 (simplify_float_conversion_using_ranges): Test can_float_p
1220 against CODE_FOR_nothing.
1222 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1223 Richard Biener <rguenther@suse.de>
1226 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
1227 types instead of just INTEGER_TYPE types.
1229 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
1231 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
1234 2013-01-07 Steve Ellcey <sellcey@mips.com>
1237 * config/mips/mips.opt: Change mad to mmad to match documentation.
1239 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1242 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
1245 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1248 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
1249 (avr_addrspace_t): Add .section_name field.
1250 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
1252 (avr_addrspace): Same. Initialize .section_name. Remove last
1253 NULL entry. Put __memx into .progmemx.data.
1254 (progmem_section_prefix): Remove.
1255 (avr_asm_init_sections): No need to initialize progmem_section.
1256 (avr_asm_named_section): Use avr_addrspace[].section_name to get
1257 section name prefix.
1258 (avr_asm_select_section): Ditto. And use get_unnamed_section to
1259 retrieve the progmem section.
1260 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
1261 boundary to run over avr_addrspace[].
1262 (avr_register_target_pragmas): Ditto.
1264 2013-01-06 Jakub Jelinek <jakub@redhat.com>
1266 * varasm.c (output_constant_def_contents): For asan_protect_global
1267 protected strings, adjust DECL_ALIGN if needed, before testing for
1269 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
1270 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
1272 (output_object_block): For asan protected decls, emit asan padding
1273 after their contents.
1274 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
1275 (asan_finish_file): Test it here instead.
1277 2013-01-07 Nick Clifton <nickc@redhat.com>
1278 Matthias Klose <doko@debian.org>
1279 Doug Kwan <dougkwan@google.com>
1280 H.J. Lu <hongjiu.lu@intel.com>
1283 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
1285 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
1287 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
1289 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
1291 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
1293 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1296 * doc/install.texi (Cross-Compiler-Specific Options): Document
1299 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
1301 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
1302 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
1303 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
1304 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
1305 vqmovun_high_s64): Fix source operand number and update copyright.
1307 2013-01-07 Richard Biener <rguenther@suse.de>
1310 * gimple.h (gimple_call_builtin_p): New overload.
1311 * gimple.c (validate_call): New function.
1312 (gimple_call_builtin_p): Likewise.
1313 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1314 Use gimple_call_builtin_p.
1315 (find_func_clobbers): Likewise.
1316 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
1317 (strlen_optimize_stmt): Likewise.
1319 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1321 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
1322 (vld1q_dup_*): Likewise.
1324 (vld1q_*): Likewise.
1325 (vld1_lane_*): Likewise.
1326 (vld1q_lane_*): Likewise.
1328 2013-01-07 Richard Biener <rguenther@suse.de>
1330 * lto-streamer.h (LTO_minor_version): Bump to 2.
1332 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1334 * config/aarch64/aarch64-protos.h
1335 (aarch64_const_double_zero_rtx_p): Rename to...
1336 (aarch64_float_const_zero_rtx_p): ...this.
1337 (aarch64_float_const_representable_p): New.
1338 (aarch64_output_simd_mov_immediate): Likewise.
1339 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
1340 move immediate case.
1341 * config/aarch64/aarch64.c
1342 (aarch64_const_double_zero_rtx_p): Rename to...
1343 (aarch64_float_const_zero_rtx_p): ...this.
1344 (aarch64_print_operand): Allow printing of new constants.
1345 (aarch64_valid_floating_const): New.
1346 (aarch64_legitimate_constant_p): Check for valid floating-point
1348 (aarch64_simd_valid_immediate): Likewise.
1349 (aarch64_vect_float_const_representable_p): New.
1350 (aarch64_float_const_representable_p): Likewise.
1351 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
1352 (aarch64_output_simd_mov_immediate): New.
1353 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
1354 (*movdf_aarch64): Likewise.
1355 * config/aarch64/constraints.md (Ufc): New.
1356 (Y): call aarch64_float_const_zero_rtx.
1357 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
1359 2013-01-07 Richard Biener <rguenther@suse.de>
1361 PR tree-optimization/55888
1362 PR tree-optimization/55862
1363 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
1364 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
1365 not if it is contained therein.
1367 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1369 * config/avr/t-avr: Typo.
1371 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1374 * config/avr/t-avr: Don't automatically rebuild
1375 $(srcdir)/config/avr/t-multilib
1376 $(srcdir)/config/avr/avr-tables.opt
1377 $(srcdir)/doc/avr-mmcu.texi
1378 (avr-mcus): New phony target to build them on request.
1379 (s-avr-mlib, s-avr-mmcu-texi): Remove.
1380 * avr/avr-mcus.def: Adjust comments.
1382 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
1384 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
1386 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
1388 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
1390 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
1392 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
1394 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
1396 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
1397 to generate profiling.
1398 * config/rs6000/aix64.h (LIB_SPEC): Same.
1400 2013-01-04 Andrew Pinski <apinski@cavium.com>
1402 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
1404 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1406 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
1408 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
1410 (ix86_expand_move): Ditto.
1411 (ix86_zero_extend_to_Pmode): Ditto.
1412 (ix86_expand_call): Ditto.
1413 (ix86_expand_special_args_builtin): Ditto.
1414 (ix86_expand_builtin): Ditto.
1416 2013-01-04 Richard Biener <rguenther@suse.de>
1418 PR tree-optimization/55862
1419 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
1420 translating them through PHI nodes.
1422 2013-01-04 Martin Jambor <mjambor@suse.cz>
1424 PR tree-optimization/55755
1425 * tree-sra.c (sra_modify_assign): Do not check that an access has no
1426 children when trying to avoid producing a VIEW_CONVERT_EXPR.
1428 2013-01-04 Marek Polacek <polacek@redhat.com>
1431 * opts.c (default_options_optimization): Clarify error message.
1433 2013-01-04 Richard Biener <rguenther@suse.de>
1436 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
1439 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1442 * config/pa/pa.md (movsi): Revert previous change.
1443 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
1446 2013-01-03 Richard Henderson <rth@redhat.com>
1448 * config/i386/i386.c (ix86_expand_move): Always assign to op1
1449 after eliminating TLS symbols.
1451 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
1454 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
1455 * graphite-poly.c (debug_gmp_value): Likewise.
1457 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
1460 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
1461 selected code model, define __code_mode_small__, __code_model_medium__,
1462 __code_model_large__, __code_model_32__ or __code_model_kernel__.
1463 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
1464 xchg temporary register with %k. Declare temporary register as
1466 [__x86_64__]: For medium and large code models, preserve %rbx register.
1468 2013-01-03 Richard Biener <rguenther@suse.de>
1470 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
1471 (dump_subscript): Adjust.
1472 (finalize_ddr_dependent): Do not dump redundant info.
1473 (analyze_siv_subscript): Adjust.
1474 (subscript_dependence_tester): Likewise.
1475 (compute_affine_dependence): Likewise.
1477 2013-01-03 Richard Biener <rguenther@suse.de>
1480 2013-01-03 Richard Biener <rguenther@suse.de>
1482 PR tree-optimization/55857
1483 * tree-vect-stmts.c (vectorizable_load): Do not setup
1484 re-alignment for invariant loads.
1486 2013-01-02 Richard Biener <rguenther@suse.de>
1488 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
1489 invariant load do not generate a vector load from the scalar location.
1491 2013-01-03 Richard Biener <rguenther@suse.de>
1493 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
1494 for not vectorizing.
1495 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1496 not build INDIRECT_REFs, call get_name once only.
1497 (vect_create_data_ref_ptr): Likewise. Dump base object kind
1498 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
1500 2013-01-03 Richard Biener <rguenther@suse.de>
1502 PR tree-optimization/55857
1503 * tree-vect-stmts.c (vectorizable_load): Do not setup
1504 re-alignment for invariant loads.
1506 2013-01-03 Richard Biener <rguenther@suse.de>
1509 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
1510 prefer a built-in decl.
1512 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1514 * gcc.c (process_command): Update copyright notice dates.
1515 * gcov.c (print_version): Likewise.
1516 * gcov-dump.c (print_version): Likewise.
1518 PR rtl-optimization/55838
1519 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
1520 iv0.step, iv1.step and step.
1522 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1523 Marc Glisse <marc.glisse@inria.fr>
1525 PR tree-optimization/55832
1526 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
1527 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
1528 integer_{one,zero}_node.
1530 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1533 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
1534 * var-tracking.c (reverse_op): Don't add reverse ops to
1535 VALUEs that have already
1536 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
1538 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
1540 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
1542 2013-01-02 Teresa Johnson <tejohnson@google.com>
1544 * dumpfile.c (dump_loc): Print filename with location.
1545 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
1546 new location_t parameter to emit complete unroll message with
1548 (canonicalize_loop_induction_variables): Compute loops location
1549 and pass to try_unroll_loop_completely.
1550 * loop-unroll.c (report_unroll_peel): New function.
1551 (peel_loops_completely): Use new dump format with location
1552 for main dumpfile message, and invoke report_unroll_peel on success.
1553 (decide_unrolling_and_peeling): Ditto.
1554 (decide_peel_once_rolling): Remove old dumpfile message subsumed
1555 by report_unroll_peel.
1556 (decide_peel_completely): Ditto.
1557 (decide_unroll_constant_iterations): Ditto.
1558 (decide_unroll_runtime_iterations): Ditto.
1559 (decide_peel_simple): Ditto.
1560 (decide_unroll_stupid): Ditto.
1561 * cfgloop.c (get_loop_location): New function.
1562 * cfgloop.h (get_loop_location): Declare.
1564 2013-01-02 Sriraman Tallam <tmsriram@google.com>
1566 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
1569 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1572 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
1573 BLKmode objects when EXPAND_MEMORY is specified.
1575 2013-01-02 Sriraman Tallam <tmsriram@google.com>
1577 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
1579 (fold_builtin_cpu): Do not share cpu model decls across statements.
1581 2013-01-02 Jason Merrill <jason@redhat.com>
1584 * tree.c (build_array_type_1): Revert earlier change.
1586 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
1588 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
1590 * config/aarch64/aarch64-tune.md: Re-generate.
1592 2013-01-02 Richard Biener <rguenther@suse.de>
1594 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
1595 invariant load do not generate a vector load from the scalar location.
1597 2013-01-02 Richard Biener <rguenther@suse.de>
1600 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
1601 * configure: Regenerate.
1603 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1605 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
1606 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
1607 (expand_builtin_int_roundingfn_2): Keep the original target around
1608 for the fallback case.
1610 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1612 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
1613 to be clear for sign changes.
1615 2013-01-01 Jan Hubicka <jh@suse.cz>
1617 * ipa-inline-analysis.c: Fix formatting.
1619 2013-01-01 Jakub Jelinek <jakub@redhat.com>
1621 PR tree-optimization/55831
1622 * tree-vect-loop.c (get_initial_def_for_induction): Use
1623 gsi_after_labels instead of gsi_start_bb.
1625 Copyright (C) 2013 Free Software Foundation, Inc.
1627 Copying and distribution of this file, with or without modification,
1628 are permitted in any medium without royalty provided the copyright
1629 notice and this notice are preserved.