1 2013-01-29 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/56113
4 * tree-ssa-structalias.c (equiv_class_lookup): Also return
6 (label_visit): Free duplicate bitmaps and record the leader instead.
7 (perform_var_substitution): Adjust.
9 2013-01-29 Richard Biener <rguenther@suse.de>
11 PR tree-optimization/55270
12 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
13 the CFG, schedule loops for fixup.
15 2013-01-29 Nick Clifton <nickc@redhat.com>
17 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
20 2013-01-28 Leif Ekblad <leif@rdos.net>
22 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
23 * config/i386/i386.h (TARGET_RDOS): New macro.
24 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
25 * config/i386/i386.c (ix86_option_override_internal): For 64bit
26 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
27 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
28 DEFAULT_LARGE_SECTION_THRESHOLD.
29 * config/i386/i386.md (R14_REG, R15_REG): New constants.
30 * config/i386/rdos.h: New file.
31 * config/i386/rdos64.h: New file.
33 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
36 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
39 2013-01-28 Jakub Jelinek <jakub@redhat.com>
41 PR rtl-optimization/56117
42 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
43 call cselib_lookup_from_insn on the MEM before calling
44 add_insn_mem_dependence.
46 2013-01-28 Richard Biener <rguenther@suse.de>
48 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
49 to a stmt that didn't have one.
50 (copy_phis_for_bb): Likewise for PHI arguments.
51 (copy_debug_stmt): Likewise for debug stmts.
53 2013-01-28 Richard Biener <rguenther@suse.de>
55 PR tree-optimization/56034
56 * tree-loop-distribution.c (enum partition_kind): Add
58 (partition_builtin_p): Adjust.
59 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
60 it is the last partition.
61 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
62 up the vertex for the definition.
63 (classify_partition): Classify whether a partition is a
64 PKIND_REDUCTION, thus has uses outside of the loop.
65 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
66 Merge all PKIND_REDUCTION partitions into the last partition.
67 (tree_loop_distribution): Seed partitions from reductions as well.
69 2013-01-28 Jakub Jelinek <jakub@redhat.com>
71 PR tree-optimization/56125
72 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
73 pow(x,c) into sqrt(x) * powi(x, n/2) or
74 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
76 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
77 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
80 PR tree-optimization/56094
81 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
82 to UNKNOWN_LOCATION while gimplifying expr.
84 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
87 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
88 operand 0 in movabs insn template for -masm=intel asm alternative.
89 (*movabs<mode>_2): Ditto for operand 1.
91 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
94 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
97 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
99 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
102 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
104 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
105 Undef to avoid warning.
107 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
109 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
110 * configure: Regenerate.
112 2013-01-25 Jakub Jelinek <jakub@redhat.com>
114 PR tree-optimization/56098
115 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
116 for stmts with volatile ops.
117 (cond_store_replacement): Don't optimize if assign has volatile ops.
118 (cond_if_else_store_replacement_1): Don't optimize if either
119 then_assign or else_assign have volatile ops.
120 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
123 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
125 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
127 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
129 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
130 missing ':' in asm example.
132 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
134 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
135 entries into lane and laneq entries.
136 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
137 Remove AdvSIMD scalar modes.
138 (aarch64_sq<r>dmulh_laneq<mode>): New.
139 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
141 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
142 builtin implementations to relfect changes in RTL in aarch64-simd.md.
143 * config/aarch64/iterators.md (VCOND): New.
146 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
149 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
150 Add NULL LIBNAME argument to existing definitions.
151 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
152 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
153 * config/avr/avr.c (DEF_BUILTIN): Same.
154 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
155 (avr_expand_builtin): Expand to a vanilla call if a libgcc
156 implementation is available (DECL_ASSEMBLER_NAME is set).
157 (avr_fold_absfx): New static function.
158 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
159 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
160 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
162 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
163 (abshk, absk, abslk, absllk): Provide as static inline functions.
165 2013-01-25 Marek Polacek <polacek@redhat.com>
167 PR tree-optimization/56035
168 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
170 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
172 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
173 (*movtf_internal_rex64): Add (!o,C) alternative
174 (*movxf_internal_rex64): Ditto.
175 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
177 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
179 * doc/invoke.texi: fix typo.
180 * doc/objc.texi: fix typo.
182 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
184 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
185 for the first two alternatives.
187 2013-01-24 Diego Novillo <dnovillo@google.com>
189 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
190 (ggc-zone.o): Remove.
191 * configure.ac: Remove option --with-gc.
192 * configure: Re-generate.
193 * doc/install.texi: Remove documentation for --with-gc.
194 * gengtype.c (write_enum_defn): Remove. Update all users.
195 (write_Types_process_field): Remove generation of gt_e_* argument.
196 (output_type_enum): Remove. Update all users.
197 (write_enum_defn): Remove. Update all users.
198 (enum alloc_zone): Remove. Update all users.
199 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
200 * ggc-common.c (ggc_splay_alloc): Remove first argument.
202 (struct ptr_data): Remove field TYPE. Update all users.
203 (gt_pch_note_object): Remove argument TYPE. Update all users.
204 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
206 * ggc-none.c (ggc_alloc_typed_stat): Remove.
207 (struct alloc_zone): Remove.
208 (ggc_internal_alloc_zone_stat): Remove.
209 (ggc_internal_cleared_alloc_zone_stat): Remove.
210 * ggc-page.c (ggc_alloc_typed_stat): Remove.
211 (ggc_pch_count_object): Remove last argument. Update all users.
212 (ggc_pch_alloc_object): Remove last argument. Update all users.
213 (struct alloc_zone): Remove.
214 * ggc-zone.c: Remove.
215 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
216 (struct alloc_zone): Remove.
217 (ggc_alloc_typed_stat): Remove.
218 (ggc_alloc_typed): Remove.
219 (ggc_splay_alloc): Remove first argument.
220 (rtl_zone): Remove. Update all users.
221 (tree_zone): Remove. Update all users.
222 (tree_id_zone): Remove. Update all users.
223 (ggc_internal_zone_alloc_stat): Remove. Update all users.
224 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
225 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
226 * tree-ssanames.c: Remove references to zone allocator in comments.
228 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
230 * config/avr/avr.c (avr_out_fract): Make register numbers that
231 might be outside of source operand signed.
233 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
235 * config/i386/constraints.md (Yf): New constraint.
236 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
237 of f constraint to conditionaly disable x87 register preferences.
238 (*movdf_internal): Ditto.
239 (*movsf_internal): Ditto.
241 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
244 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
245 that have operands with impossible constraints.
246 Add a FIXME for a speed-up opportunity.
247 * lra-constraints.c (process_alt_operands): Verify that a class
248 selected from constraints on asms is valid for the operand mode.
249 (curr_insn_transform): Remove incorrect comment.
251 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
253 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
254 TOC operand is a valid symbol ref in the constant pool.
256 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
258 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
260 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
263 * config/avr/stdfix.h: New file.
264 * t-avr (stdfix-gcc.h): New rule to build it.
265 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
267 2013-01-23 Kostya Serebryany <kcc@google.com>
269 * config/darwin.h: remove dependency on
270 CoreFoundation (asan on Mac OS).
272 2013-01-23 Jakub Jelinek <jakub@redhat.com>
275 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
276 instead of cmpdi_operand for first comparison operand.
277 Don't assert that comparison operands aren't both constants.
279 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
281 * doc/install.texi (Downloading the Source): Update references to
282 downloading separate components.
284 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
286 * doc/extend.texi (__int128): Improve grammar.
288 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
291 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
292 alternative to (o,r).
293 (*movdi_internal_rex64): Remove (!o,n) alternative.
294 (DImode immediate->memory splitter): Remove.
295 (DImode immediate->memory peephole2): Remove.
296 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
297 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
298 alternative to (!o,*r).
299 (*movtf_internal_sse): New pattern.
300 (*movxf_internal_rex64): New pattern.
301 (*movxf_internal): Disable for TARGET_64BIT.
302 (*movdf_internal_rex64): Remove (!o,F) alternative.
304 2013-01-22 Jakub Jelinek <jakub@redhat.com>
307 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
308 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
309 * tree-vect-loop-manip.c (find_loop_location): Also ignore
310 stmt locations where LOCATION_LOCUS of the stmt location is
311 UNKNOWN_LOCATION or BUILTINS_LOCATION.
314 * config/i386/i386.md (UNSPEC_STOS): New.
315 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
316 *strsetqi_1): Add UNSPEC_STOS.
318 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
321 * doc/invoke.texi: Remove left over -Wsynth example.
323 2013-01-21 Jakub Jelinek <jakub@redhat.com>
325 PR tree-optimization/56051
326 * fold-const.c (fold_binary_loc): Don't fold
327 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
328 a narrowing conversion, or widening conversion from signed
331 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
333 PR rtl-optimization/56023
334 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
335 dependent on debug instruction.
337 2013-01-21 Martin Jambor <mjambor@suse.cz>
340 * function.c (allocate_struct_function): Call
341 invoke_set_current_function_hook earlier.
343 2013-01-21 Jakub Jelinek <jakub@redhat.com>
345 * reload1.c (init_reload): Only initialize reload_obstack
346 during the first call.
348 2013-01-21 Marek Polacek <polacek@redhat.com>
350 * cfgloop.c (verify_loop_structure): Fix up grammar.
352 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
354 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
355 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
357 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
360 * config/arm/marvell-pj4.md: Update copyright year.
361 Fix up use of alu to alu_reg and simple_alu_imm.
363 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
365 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
367 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
370 * lra-constraints.c (curr_insn_transform): Don't reuse original
371 insn for secondary memory move when memory mode should be different.
373 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
375 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
376 atomic_storedi_1): New patterns.
378 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
380 btver2 pipeline descriptions.
381 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
383 * config/i386/i386.md (btver2_decode): New type attributes.
384 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
386 * config/i386/btver2.md: New file describing btver2 pipelines.
388 2013-01-19 Andrew Pinski <apinski@cavium.com>
390 PR tree-optimization/52631
391 * tree-ssa-sccvn (visit_use): Before looking up the original
392 statement, try looking up the simplified expression.
394 2013-01-19 Anthony Green <green@moxielogic.com>
396 * config/moxie/moxie.c (moxie_expand_prologue): Set
397 current_function_static_stack_size.
399 2013-01-18 Jakub Jelinek <jakub@redhat.com>
401 PR tree-optimization/56029
402 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
403 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
405 2013-01-18 Sharad Singhai <singhai@google.com>
407 PR tree-optimization/55995
408 * dumpfile.c (dump_loc): Print location only if available.
409 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
411 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
414 * lra-constraints.c (curr_insn_transform): Reuse original insn for
415 secondary memory move.
416 (inherit_reload_reg): Use rclass instead of cl for
417 check_secondary_memory_needed_p.
419 2013-01-18 Jakub Jelinek <jakub@redhat.com>
422 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
423 the case where writing real complex part of target modifies op1.
425 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
427 * config/aarch64/aarch64-simd.md
428 (aarch64_vcond_internal<mode>): Handle unordered cases.
429 * config/aarch64/iterators.md (v_cmp_result): New.
431 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
432 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
434 * config/arm/marvell-pj4.md: New file.
435 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
436 * config/arm/arm.md (generic_sched): Add marvell_pj4.
437 (generic_vfp): Likewise.
438 * config/arm/arm-cores.def: Add marvell-pj4.
439 * config/arm/arm-tune.md: Regenerate.
440 * config/arm/arm-tables.opt: Regenerate.
441 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
442 * doc/invoke.texi: Document marvell-pj4.
444 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
446 * config/aarch64/arm_neon.h: Map scalar types to standard types.
448 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
453 * var-tracking.c (negative_power_of_two_p): New.
454 (global_get_addr_cache, local_get_addr_cache): New.
455 (get_addr_from_global_cache, get_addr_from_local_cache): New.
456 (vt_canonicalize_addr): Rewrite using the above. Adjust the
458 (vt_stack_offset_p): Remove.
459 (vt_canon_true_dep): Always canonicalize loc's address.
460 (clobber_overlapping_mems): Make sure we have a MEM.
461 (local_get_addr_clear_given_value): New.
462 (val_reset): Clear local cached entries.
463 (compute_bb_dataflow): Create and release the local cache.
464 Disable duplicate MEMs clobbering.
465 (emit_notes_in_bb): Clobber MEMs likewise.
466 (vt_emit_notes): Create and release the local cache.
467 (vt_initialize, vt_finalize): Create and release the global
469 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
471 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
474 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
475 not found in the symtab.
477 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
480 PR rtl-optimization/55547
481 PR rtl-optimization/53827
484 * alias.c (offset_overlap_p): New, factored out of...
485 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
486 the conservative special case for symbolic constants. Don't
487 adjust zero sizes on alignment.
489 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
491 PR rtl-optimization/52573
492 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
493 REG_UNUSED for the same register.
495 2013-01-17 Richard Biener <rguenther@suse.de>
496 Marek Polacek <polacek@redhat.com>
498 PR rtl-optimization/55833
499 * loop-unswitch.c (unswitch_loops): Move loop verification...
500 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
501 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
502 Set it to true when we're removing a loop from hierarchy tree in
503 an irreducible region.
504 (fix_bb_placements): Adjust caller.
505 (fix_loop_placements): Likewise.
507 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
509 * config/avr/builtins.def (DEF_BUILTIN): Factor out
510 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
511 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
512 Remove ID. Adjust comments.
513 * config/avr/avr-c.c (avr_builtin_name): Remove.
514 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
515 * config/avr/avr.c (avr_tolower): New static function.
516 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
517 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
518 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
521 2013-01-17 Jan Hubicka <jh@suse.cz>
523 PR tree-optimization/55273
524 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
526 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
529 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
530 store through atomic_store<mode>_1.
531 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
533 2013-01-17 Martin Jambor <mjambor@suse.cz>
535 PR tree-optimizations/55264
536 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
538 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
539 virtual methods before inlining is over.
540 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
542 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
545 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
547 PR rtl-optimization/56005
548 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
549 pending reads for prefetch.
551 2013-01-16 Ian Bolton <ian.bolton@arm.com>
553 * config/aarch64/aarch64.md
554 (*cstoresi_neg_uxtw): New pattern.
555 (*cmovsi_insn_uxtw): New pattern.
556 (*<optab>si3_uxtw): New pattern.
557 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
558 (*<optab>si3_insn_uxtw): New pattern.
559 (*bswapsi2_uxtw): New pattern.
561 2013-01-16 Richard Biener <rguenther@suse.de>
563 * tree-inline.c (tree_function_versioning): Remove set but
566 2013-01-16 Richard Biener <rguenther@suse.de>
568 PR tree-optimization/55964
569 * tree-flow.h (rename_variables_in_loop): Remove.
570 (rename_variables_in_bb): Likewise.
571 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
572 (copy_loop_before): Adjust and delete update-ssa status.
573 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
574 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
575 (rename_variables_in_loop): Remove.
576 (slpeel_update_phis_for_duplicate_loop): Likewise.
577 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
578 use available cfg machinery instead of duplicating it.
579 Update PHI nodes and perform poor-mans SSA update here.
580 (slpeel_tree_peel_loop_to_edge): Adjust.
582 2013-01-16 Richard Biener <rguenther@suse.de>
584 PR tree-optimization/54767
585 PR tree-optimization/53465
586 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
587 (vrp_visit_phi_node): For PHI arguments coming via backedges
588 drop all symbolical range information.
589 (execute_vrp): Compute backedges.
591 2013-01-16 Richard Biener <rguenther@suse.de>
593 * doc/install.texi: Update CLooG and ISL requirements to
596 2013-01-16 Christian Bruel <christian.bruel@st.com>
599 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
600 (broken_move): Handle UNSPECV_SP_SWITCH_B.
601 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
603 2013-01-16 DJ Delorie <dj@redhat.com>
605 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
606 (UNSPECV_SP_SWITCH_E): New.
607 (sp_switch_1): Change to an unspec.
608 (sp_switch_2): Change to an unspec. Don't use post-inc when we
611 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
613 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
614 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
615 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
616 (expand_mem_thread_fence): Ditto.
617 (expand_mem_signal_fence): Ditto.
618 (expand_atomic_load): Ditto.
619 (expand_atomic_store): Ditto.
621 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
623 PR rtl-optimization/55547
624 PR rtl-optimization/53827
627 * alias.c (memrefs_conflict_p): Set sizes to negative after
630 2013-01-15 Jakub Jelinek <jakub@redhat.com>
633 * function.c (thread_prologue_and_epilogue_insns): Always
634 add crtl->drap_reg to set_up_by_prologue.set, even if
635 stack_realign_drap is false.
637 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
639 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
640 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
641 *call): Fix indention.
643 2013-01-15 Tom de Vries <tom@codesourcery.com>
646 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
649 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
651 PR rtl-optimization/55153
652 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
654 2013-01-15 Martin Jambor <mjambor@suse.cz>
656 PR tree-optimization/55920
657 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
658 accesses as grp_to_be_debug_replaced.
660 2013-01-15 Jakub Jelinek <jakub@redhat.com>
662 PR tree-optimization/55920
663 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
664 there is non-useless type conversion needed from debug rhs to lhs,
665 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
667 2013-01-15 Joseph Myers <joseph@codesourcery.com>
668 Mikael Pettersson <mikpe@it.uu.se>
671 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
673 (ASM_OUTPUT_CASE_LABEL): Remove.
674 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
675 * final.c (shorten_branches): Update alignment of labels before
676 jump tables if CASE_VECTOR_SHORTEN_MODE.
678 2013-01-15 Richard Biener <rguenther@suse.de>
681 * system.h: Do not include gmp.h for building host tools.
683 2013-01-15 Richard Biener <rguenther@suse.de>
686 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
687 account for bitpos when computing alignment.
689 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
691 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
692 (ix86_target_macros_internal): Likewise.
694 * config/i386/i386.c (m_CORE2I7): Removed.
695 (m_CORE_HASWELL): New macro.
696 (m_CORE_ALL): Likewise.
697 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
698 (initial_ix86_arch_features): Likewise.
699 (processor_target_table): Initializations for Core avx2.
700 (cpu_names): New names "core-avx2".
701 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
702 PROCESSOR_CORE_HASWELL.
703 (ix86_issue_rate): New case.
704 (ia32_multipass_dfa_lookahead): Likewise.
705 (ix86_sched_init_global): Likewise.
707 * config/i386/i386.h (TARGET_HASWELL): New macro.
708 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
709 (processor_type): New PROCESSOR_HASWELL.
711 2013-01-15 Jakub Jelinek <jakub@redhat.com>
713 PR tree-optimization/55955
714 * tree-vect-loop.c (vectorizable_reduction): Give up early on
715 *SHIFT_EXPR and *ROTATE_EXPR codes.
717 PR tree-optimization/48766
718 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
719 -ftrapv disable -fwrapv.
721 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
724 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
725 etc. to 1 and not to __flash.
726 Use LL suffix for __INT24_MAX__ with -mint8.
727 Use ULL suffix for __UINT24_MAX__ with -mint8.
729 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
731 * config/avr/avr-arch.h
732 (struct base_arch_s): Use typedef avr_arch_t instead.
733 (struct arch_info_s): Use typedef avr_arch_info_t instead.
734 (struct mcu_type_s): Use typedef avr_mcu_t instead.
735 * config/avr/avr.c: Same.
736 * config/avr/avr-devices.c: Same.
737 * config/avr/driver-avr.c: Same.
738 * config/avr/gen-avr-mmcu-texi.c: Same.
739 * config/avr/avr-mcus.def: Adjust comment.
741 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
743 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
744 * config/aarch64/iterators.md (VALLDI): New.
746 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
747 Andi Kleen <ak@linux.intel.com>
750 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
751 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
754 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
756 * config/avr/avr-stdint.h: Remove trailing blanks.
757 * config/avr/avr-log.h: Same.
758 * config/avr/avr-arch.h: Same.
759 * config/avr/avr-devices.c: Same.
760 * config/avr/avr-dimode.md: Same.
761 * config/avr/predicates.md: Same.
762 * config/avr/avr-c.c: Same. And fix typo.
764 * config/avr/avr-protos.h: Same. And:
765 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
766 (init_cumulative_args): Rename to avr_init_cumulative_args.
767 (expand_prologue): Rename to avr_expand_prologue.
768 (expand_epilogue): Rename to avr_expand_epilogue.
769 (adjust_insn_length): Rename to avr_adjust_insn_length.
770 (notice_update_cc): Rename to avr_notice_update_cc.
771 (final_prescan_insn): Rename to avr_final_prescan_insn.
772 * config/avr/avr.c: Same.
773 * config/avr/avr.h: Same.
774 * config/avr/avr.md: Remove trailing blanks.
775 (prologue): Use avr_expand_prologue.
776 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
778 2013-01-14 Richard Biener <rguenther@suse.de>
780 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
781 verify_location, collect_subblocks): New functions.
782 (verify_gimple_in_cfg): Verify that locations only reference
783 BLOCKs in the functions BLOCK tree.
785 2013-01-14 Richard Biener <rguenther@suse.de>
787 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
789 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
791 (insert_out_of_ssa_copy_on_edge): Likewise.
792 (rewrite_close_phi_out_of_ssa): Likewise.
793 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
795 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
796 propagated constants.
797 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
800 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
802 * config/avr/avr-modes.def: Add GPL copyright notice.
804 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
806 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
807 MEMMODEL_MASK to determine memory model.
808 (atomic_store<mode>): Ditto from operands[2].
809 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
811 2013-01-13 Jakub Jelinek <jakub@redhat.com>
814 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
815 (fold_gimple_assign): Don't call unshare_expr here.
816 (fold_ctor_reference): Call unshare_expr.
818 2013-01-13 Terry Guo <terry.guo@arm.com>
820 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
821 * doc/fragments.texi: Document MULTILIB_REUSE.
822 * gcc.c (multilib_reuse): New internal spec.
823 (set_multilib_dir): Also search multilib from multilib_reuse.
824 * genmultilib (tmpmultilib3): Refactor code.
825 (tmpmultilib4): Ditto.
826 (multilib_reuse): New multilib argument.
828 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
830 * Makefile.in: Update copyright.
832 2013-01-12 Tom de Vries <tom@codesourcery.com>
835 * calls.c (expand_call): Check if arg_nr is valid.
837 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
839 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
840 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
841 documentation. Add missing '__' in front of
842 __builtin_ia32_packssdw256.
844 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
847 * config/s390/s390.c (s390_preferred_reload_class): Do not return
848 NO_REGS for larl operands.
849 (s390_reload_larl_operand): Use s390_load_address instead of
852 2013-01-11 Richard Biener <rguenther@suse.de>
854 * tree-cfg.c (verify_node_sharing_1): Split out from ...
855 (verify_node_sharing): ... here.
856 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
858 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
860 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
861 Substitute TREECHECKING.
862 * configure: Regenerate.
863 * Makefile.in (TREECHECKING): New.
865 2013-01-11 Richard Guenther <rguenther@suse.de>
867 PR tree-optimization/44061
868 * tree-vrp.c (extract_range_basic): Compute zero as
869 value-range for __builtin_constant_p of function parameters.
871 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
873 Update copyright years.
875 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
877 PR rtl-optimization/55672
878 * lra-eliminations.c (mark_not_eliminable): Permit addition with
879 const to be eliminable.
881 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
883 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
884 * configure: Regenerate.
886 2013-01-10 Richard Biener <rguenther@suse.de>
888 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
890 2013-01-10 Richard Biener <rguenther@suse.de>
893 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
894 locations for virtual PHI arguments.
895 (rewrite_update_phi_arguments): Likewise.
897 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
899 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
902 2013-01-10 Jakub Jelinek <jakub@redhat.com>
904 PR tree-optimization/55921
905 * tree-complex.c (expand_complex_asm): New function.
906 (expand_complex_operations_1): Call it for GIMPLE_ASM.
908 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
911 * config/s390/s390.c (s390_symref_operand_p)
912 (s390_loadrelative_operand_p): Merge the two functions.
913 (s390_check_qrst_address, print_operand_address): Add parameters
914 to s390_loadrelative_operand_p invokation.
915 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
916 (s390_reload_larl_operand, s390_secondary_reload): Use
917 s390_loadrelative_operand_p instead of s390_symref_operand_p.
918 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
920 2013-01-09 Mike Stump <mikestump@comcast.net>
922 * dse.c (record_store): Remove unnecessary assert.
924 2013-01-09 Jan Hubicka <jh@suse.cz>
926 PR tree-optimization/55569
927 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
928 * cfgloop.h (scale_loop_profile): Likewise.
930 2013-01-09 Jan Hubicka <jh@suse.cz>
933 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
935 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
937 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
940 * expr.h (maybe_emit_group_store): Declare.
941 * expr.c (maybe_emit_group_store): New function.
942 * builtins.c (expand_builtin_int_roundingfn): Call it.
943 (expand_builtin_int_roundingfn_2): Likewise.
945 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
947 PR rtl-optimization/55829
948 * lra-constraints.c (match_reload): Add code for absent output.
949 (curr_insn_transform): Add code for reloads of matched inputs
952 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
954 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
955 attribute of movddup insn to DF.
956 (*vec_interleave_lowv2df): Ditto.
957 (vec_dupv2df): Ditto.
959 2013-01-09 Jan Hubicka <jh@suse.cz>
961 PR tree-optimiation/55875
962 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
963 EVERY_ITERATION parameter.
964 (number_of_iterations_exit): Check if exit is executed every iteration.
965 (idx_infer_loop_bounds): Similarly here.
966 (n_of_executions_at_most): Simplify
967 to only test for cases where statement is dominated by the
968 particular bound; handle correctly the "postdominance" test.
969 (scev_probably_wraps_p): Use max loop iterations info
970 as a global bound first.
972 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
973 Nick Clifton <nickc@redhat.com>
975 * config/v850/v850.md (cbranchsf4): New pattern.
976 (cstoresf4): New pattern.
977 (cbranchdf4): New pattern.
978 (cstoredf4): New pattern.
979 (movsicc): Disallow floating point comparisons.
980 (cmpsf_le_insn): Fix order of operators.
981 (cmpsf_lt_insn): Likewise.
982 (cmpsf_eq_insn): Likewise.
983 (cmpdf_le_insn): Likewise.
984 (cmpdf_lt_insn): Likewise.
985 (cmpdf_eq_insn): Likewise.
986 (cmpsf_ge_insn): Use LE comparison.
987 (cmpdf_ge_insn): Likewise.
988 (cmpsf_gt_insn): Use LT comparison.
989 (cmpdf_gt_insn): Likewise.
990 (cmpsf_ne_insn): Delete pattern.
991 (cmpdf_ne_insn): Delete pattern.
992 * config/v850/v850.c (v850_gen_float_compare): Use
993 gen_cmpdf_eq_insn for NE comparison.
994 (v850_float_z_comparison_operator)
995 (v850_float_nz_comparison_operator): Move from here ...
996 * config/v850/predicates.md: ... to here. Move GT and GE
997 comparisons into v850_float_z_comparison_operator.
998 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
1000 (v850_float_nz_comparison_operator): Likewise.
1002 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1004 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
1005 with calls to gen_insvsi/gen_insvdi.
1007 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1009 * config/i386/i386.c (initial_ix86_tune_features): Set up
1010 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
1012 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
1013 Jakub Jelinek <jakub@redhat.com>
1015 PR tree-optimization/48189
1016 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
1017 If nitercst is 0, don't predict the exit edge.
1019 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1021 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
1022 in asm_fprintf with reg_names.
1023 (aarch64_print_operand_address): Likewise.
1024 (aarch64_return_addr): Likewise.
1025 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
1027 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1029 * config/pa/pa.h (VAL_U6_BITS_P): Define.
1030 (INT_U6_BITS): Likewise.
1031 * config/pa/predicates.md (uint6_operand): New predicate.
1032 (shift5_operand, shift6_operand): Likewise.
1033 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
1035 (lshrdi3): Use shift6_operand.
1036 (shrpsi4, shrpdi4): New insn patterns.
1037 (extzv): Delete expander.
1038 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
1039 predicates in unamed zero extract patterns. Tighten common constraint.
1040 (extv): Delete expander.
1041 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
1042 predicates in unamed sign extract patterns. Tighten common constraint.
1043 (insv): Delete expander.
1044 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
1045 predicates in unamed insert patterns. Tighten common constraint.
1046 Change uint32_operand predicate to uint6_operand predicate in unamed
1047 DImode pattern to insert constant values of type 1...1xxxx.
1049 2013-01-04 Jan Hubicka <jh@suse.cz>
1051 PR tree-optimization/55823
1052 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
1055 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1056 Uros Bizjak <ubizjak@gmail.com>
1058 PR rtl-optimization/55845
1059 * df-problems.c (can_move_insns_across): Stop scanning at
1060 volatile_insn_p source instruction or give up if
1061 across_from .. across_to range contains any volatile_insn_p
1064 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
1066 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
1067 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
1069 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
1070 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
1072 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1075 * asan.c (asan_clear_shadow): New function.
1076 (asan_emit_stack_protection): Use it.
1078 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
1080 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
1081 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
1082 with tab instead of space.
1084 2013-01-08 Nick Clifton <nickc@redhat.com>
1086 * config/rl78/rl78.c (rl78_expand_prologue): Always select
1087 register bank 0 at the start of an interrupt handler.
1088 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
1091 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
1093 * config/aarch64/aarch64-simd.md
1094 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
1095 (aarch64_simd_bsl): Likewise.
1096 (aarch64_vcond_internal<mode>): Likewise.
1097 (vcond<mode><mode>): Likewise.
1098 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
1099 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
1101 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
1103 * config/aarch64/aarch64-builtins.c
1104 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
1106 2013-01-08 Martin Jambor <mjambor@suse.cz>
1109 * tree-sra.c (analyze_access_subtree): Return true also after
1110 potentially creating a debug-only replacement.
1112 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1115 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
1117 PR tree-optimization/54120
1118 * tree-vrp.c (range_fits_type_p): Don't allow
1119 src_precision < precision from signed vr to unsigned_p
1120 if vr->min or vr->max is negative.
1121 (simplify_float_conversion_using_ranges): Test can_float_p
1122 against CODE_FOR_nothing.
1124 2013-01-08 Jakub Jelinek <jakub@redhat.com>
1125 Richard Biener <rguenther@suse.de>
1128 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
1129 types instead of just INTEGER_TYPE types.
1131 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
1133 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
1136 2013-01-07 Steve Ellcey <sellcey@mips.com>
1139 * config/mips/mips.opt: Change mad to mmad to match documentation.
1141 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1144 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
1147 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1150 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
1151 (avr_addrspace_t): Add .section_name field.
1152 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
1154 (avr_addrspace): Same. Initialize .section_name. Remove last
1155 NULL entry. Put __memx into .progmemx.data.
1156 (progmem_section_prefix): Remove.
1157 (avr_asm_init_sections): No need to initialize progmem_section.
1158 (avr_asm_named_section): Use avr_addrspace[].section_name to get
1159 section name prefix.
1160 (avr_asm_select_section): Ditto. And use get_unnamed_section to
1161 retrieve the progmem section.
1162 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
1163 boundary to run over avr_addrspace[].
1164 (avr_register_target_pragmas): Ditto.
1166 2013-01-06 Jakub Jelinek <jakub@redhat.com>
1168 * varasm.c (output_constant_def_contents): For asan_protect_global
1169 protected strings, adjust DECL_ALIGN if needed, before testing for
1171 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
1172 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
1174 (output_object_block): For asan protected decls, emit asan padding
1175 after their contents.
1176 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
1177 (asan_finish_file): Test it here instead.
1179 2013-01-07 Nick Clifton <nickc@redhat.com>
1180 Matthias Klose <doko@debian.org>
1181 Doug Kwan <dougkwan@google.com>
1182 H.J. Lu <hongjiu.lu@intel.com>
1185 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
1187 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
1189 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
1191 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
1193 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
1195 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1198 * doc/install.texi (Cross-Compiler-Specific Options): Document
1201 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
1203 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
1204 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
1205 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
1206 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
1207 vqmovun_high_s64): Fix source operand number and update copyright.
1209 2013-01-07 Richard Biener <rguenther@suse.de>
1212 * gimple.h (gimple_call_builtin_p): New overload.
1213 * gimple.c (validate_call): New function.
1214 (gimple_call_builtin_p): Likewise.
1215 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1216 Use gimple_call_builtin_p.
1217 (find_func_clobbers): Likewise.
1218 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
1219 (strlen_optimize_stmt): Likewise.
1221 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1223 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
1224 (vld1q_dup_*): Likewise.
1226 (vld1q_*): Likewise.
1227 (vld1_lane_*): Likewise.
1228 (vld1q_lane_*): Likewise.
1230 2013-01-07 Richard Biener <rguenther@suse.de>
1232 * lto-streamer.h (LTO_minor_version): Bump to 2.
1234 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1236 * config/aarch64/aarch64-protos.h
1237 (aarch64_const_double_zero_rtx_p): Rename to...
1238 (aarch64_float_const_zero_rtx_p): ...this.
1239 (aarch64_float_const_representable_p): New.
1240 (aarch64_output_simd_mov_immediate): Likewise.
1241 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
1242 move immediate case.
1243 * config/aarch64/aarch64.c
1244 (aarch64_const_double_zero_rtx_p): Rename to...
1245 (aarch64_float_const_zero_rtx_p): ...this.
1246 (aarch64_print_operand): Allow printing of new constants.
1247 (aarch64_valid_floating_const): New.
1248 (aarch64_legitimate_constant_p): Check for valid floating-point
1250 (aarch64_simd_valid_immediate): Likewise.
1251 (aarch64_vect_float_const_representable_p): New.
1252 (aarch64_float_const_representable_p): Likewise.
1253 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
1254 (aarch64_output_simd_mov_immediate): New.
1255 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
1256 (*movdf_aarch64): Likewise.
1257 * config/aarch64/constraints.md (Ufc): New.
1258 (Y): call aarch64_float_const_zero_rtx.
1259 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
1261 2013-01-07 Richard Biener <rguenther@suse.de>
1263 PR tree-optimization/55888
1264 PR tree-optimization/55862
1265 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
1266 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
1267 not if it is contained therein.
1269 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1271 * config/avr/t-avr: Typo.
1273 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
1276 * config/avr/t-avr: Don't automatically rebuild
1277 $(srcdir)/config/avr/t-multilib
1278 $(srcdir)/config/avr/avr-tables.opt
1279 $(srcdir)/doc/avr-mmcu.texi
1280 (avr-mcus): New phony target to build them on request.
1281 (s-avr-mlib, s-avr-mmcu-texi): Remove.
1282 * avr/avr-mcus.def: Adjust comments.
1284 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
1286 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
1288 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
1290 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
1292 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
1294 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
1296 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
1298 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
1299 to generate profiling.
1300 * config/rs6000/aix64.h (LIB_SPEC): Same.
1302 2013-01-04 Andrew Pinski <apinski@cavium.com>
1304 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
1306 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1308 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
1310 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
1312 (ix86_expand_move): Ditto.
1313 (ix86_zero_extend_to_Pmode): Ditto.
1314 (ix86_expand_call): Ditto.
1315 (ix86_expand_special_args_builtin): Ditto.
1316 (ix86_expand_builtin): Ditto.
1318 2013-01-04 Richard Biener <rguenther@suse.de>
1320 PR tree-optimization/55862
1321 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
1322 translating them through PHI nodes.
1324 2013-01-04 Martin Jambor <mjambor@suse.cz>
1326 PR tree-optimization/55755
1327 * tree-sra.c (sra_modify_assign): Do not check that an access has no
1328 children when trying to avoid producing a VIEW_CONVERT_EXPR.
1330 2013-01-04 Marek Polacek <polacek@redhat.com>
1333 * opts.c (default_options_optimization): Clarify error message.
1335 2013-01-04 Richard Biener <rguenther@suse.de>
1338 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
1341 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1344 * config/pa/pa.md (movsi): Revert previous change.
1345 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
1348 2013-01-03 Richard Henderson <rth@redhat.com>
1350 * config/i386/i386.c (ix86_expand_move): Always assign to op1
1351 after eliminating TLS symbols.
1353 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
1356 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
1357 * graphite-poly.c (debug_gmp_value): Likewise.
1359 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
1362 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
1363 selected code model, define __code_mode_small__, __code_model_medium__,
1364 __code_model_large__, __code_model_32__ or __code_model_kernel__.
1365 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
1366 xchg temporary register with %k. Declare temporary register as
1368 [__x86_64__]: For medium and large code models, preserve %rbx register.
1370 2013-01-03 Richard Biener <rguenther@suse.de>
1372 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
1373 (dump_subscript): Adjust.
1374 (finalize_ddr_dependent): Do not dump redundant info.
1375 (analyze_siv_subscript): Adjust.
1376 (subscript_dependence_tester): Likewise.
1377 (compute_affine_dependence): Likewise.
1379 2013-01-03 Richard Biener <rguenther@suse.de>
1382 2013-01-03 Richard Biener <rguenther@suse.de>
1384 PR tree-optimization/55857
1385 * tree-vect-stmts.c (vectorizable_load): Do not setup
1386 re-alignment for invariant loads.
1388 2013-01-02 Richard Biener <rguenther@suse.de>
1390 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
1391 invariant load do not generate a vector load from the scalar location.
1393 2013-01-03 Richard Biener <rguenther@suse.de>
1395 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
1396 for not vectorizing.
1397 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1398 not build INDIRECT_REFs, call get_name once only.
1399 (vect_create_data_ref_ptr): Likewise. Dump base object kind
1400 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
1402 2013-01-03 Richard Biener <rguenther@suse.de>
1404 PR tree-optimization/55857
1405 * tree-vect-stmts.c (vectorizable_load): Do not setup
1406 re-alignment for invariant loads.
1408 2013-01-03 Richard Biener <rguenther@suse.de>
1411 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
1412 prefer a built-in decl.
1414 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1416 * gcc.c (process_command): Update copyright notice dates.
1417 * gcov.c (print_version): Likewise.
1418 * gcov-dump.c (print_version): Likewise.
1420 PR rtl-optimization/55838
1421 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
1422 iv0.step, iv1.step and step.
1424 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1425 Marc Glisse <marc.glisse@inria.fr>
1427 PR tree-optimization/55832
1428 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
1429 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
1430 integer_{one,zero}_node.
1432 2013-01-03 Jakub Jelinek <jakub@redhat.com>
1435 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
1436 * var-tracking.c (reverse_op): Don't add reverse ops to
1437 VALUEs that have already
1438 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
1440 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
1442 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
1444 2013-01-02 Teresa Johnson <tejohnson@google.com>
1446 * dumpfile.c (dump_loc): Print filename with location.
1447 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
1448 new location_t parameter to emit complete unroll message with
1450 (canonicalize_loop_induction_variables): Compute loops location
1451 and pass to try_unroll_loop_completely.
1452 * loop-unroll.c (report_unroll_peel): New function.
1453 (peel_loops_completely): Use new dump format with location
1454 for main dumpfile message, and invoke report_unroll_peel on success.
1455 (decide_unrolling_and_peeling): Ditto.
1456 (decide_peel_once_rolling): Remove old dumpfile message subsumed
1457 by report_unroll_peel.
1458 (decide_peel_completely): Ditto.
1459 (decide_unroll_constant_iterations): Ditto.
1460 (decide_unroll_runtime_iterations): Ditto.
1461 (decide_peel_simple): Ditto.
1462 (decide_unroll_stupid): Ditto.
1463 * cfgloop.c (get_loop_location): New function.
1464 * cfgloop.h (get_loop_location): Declare.
1466 2013-01-02 Sriraman Tallam <tmsriram@google.com>
1468 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
1471 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1474 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
1475 BLKmode objects when EXPAND_MEMORY is specified.
1477 2013-01-02 Sriraman Tallam <tmsriram@google.com>
1479 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
1481 (fold_builtin_cpu): Do not share cpu model decls across statements.
1483 2013-01-02 Jason Merrill <jason@redhat.com>
1486 * tree.c (build_array_type_1): Revert earlier change.
1488 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
1490 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
1492 * config/aarch64/aarch64-tune.md: Re-generate.
1494 2013-01-02 Richard Biener <rguenther@suse.de>
1496 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
1497 invariant load do not generate a vector load from the scalar location.
1499 2013-01-02 Richard Biener <rguenther@suse.de>
1502 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
1503 * configure: Regenerate.
1505 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1507 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
1508 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
1509 (expand_builtin_int_roundingfn_2): Keep the original target around
1510 for the fallback case.
1512 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1514 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
1515 to be clear for sign changes.
1517 2013-01-01 Jan Hubicka <jh@suse.cz>
1519 * ipa-inline-analysis.c: Fix formatting.
1521 2013-01-01 Jakub Jelinek <jakub@redhat.com>
1523 PR tree-optimization/55831
1524 * tree-vect-loop.c (get_initial_def_for_induction): Use
1525 gsi_after_labels instead of gsi_start_bb.
1527 Copyright (C) 2013 Free Software Foundation, Inc.
1529 Copying and distribution of this file, with or without modification,
1530 are permitted in any medium without royalty provided the copyright
1531 notice and this notice are preserved.