1 2013-03-27 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/56716
4 * tree-ssa-structalias.c (perform_var_substitution): Adjust
7 2013-03-27 Martin Jambor <mjambor@suse.cz>
9 PR tree-optimization/55334
10 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
11 restricted pointers to arrays.
13 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
15 * Makefile.in (.SUFFIXES): Add .cc.
16 (.c.o): Apply same recipe for implicit rule .cc.o.
18 2013-03-27 Richard Biener <rguenther@suse.de>
20 PR tree-optimization/37021
21 * tree-vect-data-refs.c (vect_check_strided_load): Allow
22 REALPART/IMAGPART_EXPRs around the supported refs.
23 * tree-ssa-structalias.c (find_func_aliases): Assume that
24 floating-point values are not used to transfer pointers.
26 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
28 * gcc/target.def (TARGET_HAS_IFUNC_P): New target hook.
29 * gcc/doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
30 * gcc/doc/tm.texi: Regenerate.
31 * gcc/targhooks.h (default_has_ifunc_p): New.
32 * gcc/targhooks.c (default_has_ifunc_p): Ditto.
33 * gcc/config/linux-protos.h: New file.
34 * gcc/config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
35 this hook for linux which disables support of indirect functions in
37 * gcc/config/linux-android.c: New file.
38 * gcc/config/t-linux-android.c: Ditto.
39 * gcc/config.gcc: Added new object file linux-android.o.
40 * gcc/config/i386/i386.c (ix86_get_function_versions_dispatcher):
41 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
42 * gcc/varasm.c (do_assemble_alias): Likewise.
43 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
44 doesn't support indirect functions.
45 * configure: Regenerate.
47 2013-03-27 Bin Cheng <bin.cheng@arm.com>
50 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
51 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
54 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
56 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
58 2013-03-27 Terry Guo <terry.guo@arm.com>
60 * config/arm/arm-cores.def: Added core cortex-r7.
61 * config/arm/arm-tune.md: Regenerated.
62 * config/arm/arm-tables.opt: Regenerated.
63 * doc/invoke.texi: Added entry for core cortex-r7.
65 2013-03-27 Walter Lee <walt@tilera.com>
67 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
68 double-decrement of next_scratch_regno.
70 2013-03-27 Walter Lee <walt@tilera.com>
72 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
74 (insn_v1mulus): Ditto.
77 2013-03-27 Walter Lee <walt@tilera.com>
79 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
81 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
83 2013-03-27 Walter Lee <walt@tilera.com>
85 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute
87 (*sibcall_value): Ditto.
89 2013-03-27 Walter Lee <walt@tilera.com>
91 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
92 (insn_mnz_v8qi): ... this ...
93 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
95 (insn_v<n>mnz): Replaced by ...
96 (insn_v1mnz): ... this ...
97 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
99 (insn_mz_<mode>): Replaced by ...
100 (insn_mz_v8qi): ... this ...
101 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
103 (insn_v<n>mz): Replaced by ...
104 (insn_v1mz): ... this ...
105 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
108 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
110 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
112 2013-03-26 Roland McGrath <mcgrathr@google.com>
114 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
115 than fprintf with a non-constant, non-format string.
117 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
119 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
120 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
122 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
123 attribute. Use general_x64nomem_operand as operand 1 predicate.
124 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
125 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
126 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
127 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
128 (mov<mode>_insv_1): Remove expander. Merge insn with
129 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
130 Use general_x64nomem_operand as operand 1 predicate.
131 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
132 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
133 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
134 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
135 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
136 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
137 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
138 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
139 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
140 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
141 (general_x64nomem_operand): Ditto.
143 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
145 * config/rtems.opt: Add -pthread option.
147 2013-03-26 Richard Biener <rguenther@suse.de>
149 * alias.c (find_base_term): Avoid redundant and not used recursion.
150 (base_alias_check): Get the initial base term from the caller.
151 (true_dependence_1): Compute and pass base terms to base_alias_check.
152 (write_dependence_p): Likewise.
153 (may_alias_p): Likewise.
155 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
157 * config/aarch64/aarch64.c (aarch64_classify_address): Support
158 PC-relative load in SI modes and above only.
160 2013-03-26 Xinyu Qi <xyqi@marvell.com>
162 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
163 * config/arm/iwmmxt.md (WCGR0): Update.
164 (WCGR1, WCGR2, WCGR3): Likewise.
166 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
168 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
169 Use x64 and nox64 isa attributes.
171 2013-03-26 Richard Biener <rguenther@suse.de>
173 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
174 alignment computations and rely on get_object_alignment_1
175 for the !TYPE_P case.
176 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
178 2013-03-26 Walter Lee <walt@tilera.com>
180 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
181 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
183 2013-03-25 Jeff Law <law@redhat.com>
184 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
185 check for INTEGRAL_TYPE_P that was missing due to checking in
186 wrong version of prior patch.
188 2013-03-25 Walter Lee <walt@tilera.com>
190 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
191 TILEGX_INSN_SHUFFLEBYTES1.
192 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
194 (tilegx_builtins): Ditto.
195 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
197 2013-03-25 Walter Lee <walt@tilera.com>
199 * config/tilegx/tilegx.md (floatsisf2): New pattern.
200 (floatunssisf2): New pattern.
201 (floatsidf2): New pattern.
202 (floatunssidf2): New pattern.
204 2013-03-25 Walter Lee <walt@tilera.com>
206 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
207 tests for constraint J, K, N, P.
209 2013-03-25 Walter Lee <walt@tilera.com>
211 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
212 Use indirect/pcrel encoding.
213 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
216 2013-03-25 Steve Ellcey <sellcey@mips.com>
218 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
219 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
220 * config/mips/mips.c (mips_option_override): Set IMADD default.
221 * config/mips/mips.h (PTF_AVOID_IMADD): New.
222 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
223 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
224 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
225 * doc/invoke.texi (-mimadd/-mno-imadd): New.
227 2013-03-25 Jeff Law <law@redhat.com>
229 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
230 slightly to avoid creating and folding useless trees. Simplify
231 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
233 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
235 * config/i386/i386.md (*zero_extendsidi2): Merge with
236 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
237 * config/i386/predicates.md (x86_64_zext_operand): Rename from
238 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
239 targets. Clarify comment.
241 2013-03-25 Martin Jambor <mjambor@suse.cz>
243 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
244 pass-through jump functions differently.
245 (ipa_read_jump_function): Likewise. Also use setter functions to set
248 2013-03-25 Martin Jambor <mjambor@suse.cz>
250 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
251 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
253 (ipa_get_indirect_edge_target): New function.
254 (devirtualization_time_bonus): New parameter known_aggs, pass it to
255 ipa_get_indirect_edge_target. Update all callers.
256 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
257 ipa_get_indirect_edge_target_1 instead of calling
258 ipa_get_indirect_edge_target.
259 (create_specialized_node): Pass aggvlas to
260 ipcp_discover_new_direct_edges.
262 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
264 * config/arm/arm.md (f_sels, f_seld): New types.
265 (*cmov<mode>): New pattern.
266 * config/arm/predicates.md (arm_vsel_comparison_operator): New
269 2013-03-25 Kai Tietz <ktietz@redhat.com>
271 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
272 POSIX-printf for mingw-hosted builds.
274 2013-03-25 Richard Biener <rguenther@suse.de>
277 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
278 must-not-throw stmt location.
280 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
282 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
283 Emit load-acquire versions when acq is true.
284 (arm_emit_store_exclusive): Add rel parameter.
285 Emit store-release versions when rel is true.
286 (arm_split_compare_and_swap): Use acquire-release instructions
288 of barriers when appropriate.
289 (arm_split_atomic_op): Likewise.
290 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
291 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
292 (VUNSPEC_SLX): Likewise.
293 (VUNSPEC_LDA): Likewise.
294 (VUNSPEC_STL): Likewise.
295 * config/arm/sync.md (atomic_load<mode>): New pattern.
296 (atomic_store<mode>): Likewise.
297 (arm_load_acquire_exclusive<mode>): Likewise.
298 (arm_load_acquire_exclusivesi): Likewise.
299 (arm_load_acquire_exclusivedi): Likewise.
300 (arm_store_release_exclusive<mode>): Likewise.
302 2013-03-25 Catherine Moore <clm@codesourcery.com>
304 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
305 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
306 * config/mip/predicates.md (lwsp_swsp_operand,
307 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
308 sb16_operand, db4_operand, db7_operand, ib3_operand,
309 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
310 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
311 andi16_operand): New predicates.
312 * config/mips/mips.md (compression): New attribute.
313 (enabled): New attribute.
314 (length): Consider compression in computing length.
315 (shift_compression): New code attribute.
316 (*add<mode>3): New operands. Record compression.
317 (sub<mode>3): Likewise.
318 (one_cmpl<mode>2): Likewise.
319 (*and<mode>3): Likewise.
320 (*ior<mode>3): Likewise.
321 (unnamed pattern for xor): Likewise.
322 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
323 (*<optab><mode>3): Likewise.
324 (*mov<mode>_internal: Likewise.
325 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
326 (mips_unsigned_immediate_p): New.
327 (umips_lwsp_swsp_address_p): New.
328 (m16_based_address_p): New.
329 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
330 (mips_unsigned_immediate_p): New prototype.
331 (lwsp_swsp_address_p): New prototype.
332 (m16_based_address_p): New prototype.
333 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
334 (mips_signed_immediate_p): New function.
335 (m16_based_address_p): New function.
336 (lwsp_swsp_address_p): New function.
337 (mips_print_operand_punctuation): Recognize short delay slot insns
338 for microMIPS.add<mode>3"
340 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
343 * config/arm/iterators.md (v_cmp_result): New mode attribute.
344 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
346 2013-03-25 Richard Biener <rguenther@suse.de>
348 PR tree-optimization/56689
349 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
352 2013-03-25 Richard Biener <rguenther@suse.de>
354 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
356 (memory_references): Likewise.
357 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
358 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
359 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
360 (gather_mem_refs_in_loops): Fold into ...
361 (analyze_memory_references): ... this. Move initialization
362 to tree_ssa_lim_initialize.
363 (fill_always_executed_in): Rename to ...
364 (fill_always_executed_in_1): ... this.
365 (fill_always_executed_in): Move contains_call computation to
366 this new function from ...
367 (tree_ssa_lim_initialize): ... here.
368 (tree_ssa_lim): Call fill_always_executed_in.
370 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
372 * postreload.c (reload_combine): Fix code detecting returns.
374 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
376 * function.c (emit_use_return_register_into_block): On cc0 targets,
377 do not emit the sequence between cc0 setter and user.
379 2013-03-25 Kai Tietz <ktietz@redhat.com>
381 * config/i386/predicates.md (local_symbolic_operand): Interpret
382 dll-imported symbols as none-local.
384 2013-03-25 Richard Biener <rguenther@suse.de>
386 * tree-ssa-loop-im.c (struct depend): Remove.
387 (struct lim_aux_data): Make depends a vec of gimples.
388 (free_lim_aux_data): Adjust.
389 (add_dependency): Likewise.
390 (set_level): Likewise.
392 2013-03-25 Richard Biener <rguenther@suse.de>
395 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
396 the pointer returned by calls with ECF_MALLOC set.
398 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
400 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
402 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
404 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
405 using MMXMODE mode iterator.
406 (*move<mode>_internal): Merge with *movv2sf_internal and
407 *movv2sf_internal_rex64 using MMXMODE mode iterator.
409 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
411 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
412 (record_last_mem_set_info): Likewise.
414 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
415 of XNEWVEC followed by memset.
416 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
418 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
420 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
421 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
422 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
423 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
424 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
425 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
426 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
427 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
428 BARRIER_P instead of GET_CODE.
430 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
432 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
433 inaccuracy in the probing code.
435 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
436 (ctrapdi4): Likewise.
438 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
440 * calls.c (expand_call): Add missing guard to code handling return
441 of non-BLKmode structures in MSB.
442 * function.c (expand_function_end): Likewise.
444 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
446 * combine.c (try_combine): Adjust comment. Do not add the set of
447 insn #0 if the destination indirectly is set or dies in insn #2.
448 Tidy up code to distribute a new note.
450 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
452 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
453 also for alternatives 16 and 17.
455 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
457 * config/i386/sse.md (*mov<mode>_internal): Merge with
458 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
459 Emit insn template depending on type attribute. Use
460 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
461 movd instead of movq mnemonic for interunit moves. Rewrite mode
462 attribute calculation. Remove unit attribute calculation.
463 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
464 Set prefix_data16 attribute for DImode ssemov types.
465 Use Ym instead of y for SSE-MMX conversion alternatives.
466 Reorder operand constraints.
468 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
470 * df.h (df_insn_delete): Adjust prototype.
471 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
472 and let it decide whether mark the basic block dirty.
473 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
474 * df-scan.c (df_insn_info_delete): New helper function, split
475 off from df_insn_delete.
476 (df_scan_free_bb_info): Use it.
477 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
479 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
480 that the insn is actually an insn and it has a non-NULL basic block.
481 Do not mark basic block dirty if only deleting a DEBUG_INSN.
483 2013-03-22 Richard Biener <rguenther@suse.de>
485 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
487 (mem_ref_alloc): Do not allocate them.
488 (refs_independent_p): Do not query or maintain a cache.
490 2013-03-22 Richard Biener <rguenther@suse.de>
492 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
493 (gather_mem_refs_in_loops): Do not compute it.
494 (analyze_memory_references): Do not allocate it.
495 (tree_ssa_lim_finalize): Do not free it.
496 (for_all_locs_in_loop): Do not query all_refs_in_loop.
498 2013-03-22 Richard Biener <rguenther@suse.de>
500 * is-a.h (as_a): Use gcc_checking_assert.
502 2013-03-22 Ian Bolton <ian.bolton@arm.com>
504 * config/aarch64/aarch64.c (aarch64_print_operand): New
505 format specifier for printing a constant in hex.
506 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
507 format specifier for printing second operand.
509 2013-03-22 Richard Biener <rguenther@suse.de>
511 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
513 (gather_mem_refs_in_loops): Perform store accumulation here.
514 (create_vop_ref_mapping_loop): Remove.
515 (create_vop_ref_mapping): Likewise.
516 (analyze_memory_references): Initialize refs_stored_in_loop.
517 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
518 (record_indep_loop): Remove.
519 (record_dep_loop): New function.
520 (ref_indep_loop_p_1): Adjust to only walk over references
521 in the loop, not its subloops.
522 (ref_indep_loop_p): Rename to ...
523 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
524 maintaining a more fine-grained cache.
525 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
526 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
528 2013-03-22 Richard Biener <rguenther@suse.de>
530 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
531 (struct mem_ref): Make accesses_in_loop a vec of a vec of
532 aggregate mem_ref_loc.
533 (free_mem_ref_locs): Inline into ...
534 (memref_free): ... this and adjust.
535 (mem_ref_alloc): Adjust.
536 (mem_ref_locs_alloc): Remove.
537 (record_mem_ref_loc): Adjust.
538 (get_all_locs_in_loop): Rewrite into ...
539 (for_all_locs_in_loop): ... this iterator.
540 (rewrite_mem_ref_loc): New functor.
541 (rewrite_mem_refs): Use for_all_locs_in_loop.
542 (sm_set_flag_if_changed): New functor.
543 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
544 (ref_always_accessed): New functor.
545 (ref_always_accessed_p): Use for_all_locs_in_loop.
547 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
549 * tree-pass.h (PROP_gimple_lvec): New.
550 * passes.c (dump_properties): Handle PROP_gimple_lvec.
551 (init_optimization_passes): Move pass_lower_vector.
552 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
554 (pass_lower_vector): Provide PROP_gimple_lvec.
555 (pass_lower_vector_ssa): Likewise.
556 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
558 2013-03-21 Mark Wielaard <mjw@redhat.com>
560 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
562 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
564 * config/i386/i386.md (*movdi_internal): Disparage slightly
565 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
566 conversion alternatives.
568 2013-03-21 Jakub Jelinek <jakub@redhat.com>
571 * diagnostic.def (DK_WERROR): New kind.
572 * diagnostic.h (werrorcount): Define.
573 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
574 promoted to DK_ERROR, increment DK_WERROR counter instead of
576 * toplev.c (toplev_main): Call print_ignored_options even if
577 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
578 even if just werrorcount is non-zero.
581 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
583 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
584 (string_cst_pool_decl): New function.
585 (optimize_one_addr_into_implicit_ptr): New function.
586 (resolve_addr_in_expr): Optimize DWARF location expression
587 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
588 which doesn't live in memory, but has DW_AT_location or
589 DW_AT_const_value, or refers to a string literal, into
590 DW_OP_GNU_implicit_pointer.
591 (optimize_location_into_implicit_ptr): New function.
592 (resolve_addr): If removing DW_AT_location of a variable because
593 it was DW_OP_addr of address of the variable, but the variable doesn't
594 live in memory, try to emit const value attribute for the initializer.
596 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
598 * tree.h (VECTOR_TYPE_P): New macro.
599 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
601 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
602 VEC_COND_EXPR cannot be lvalues.
603 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
605 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
607 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
608 Restrict the transformation to equal modes.
610 2013-03-21 Richard Biener <rguenther@suse.de>
612 PR tree-optimization/39326
613 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
614 (MEM_ANALYZABLE): Adjust.
615 (record_mem_ref_loc): Move bitmap ops ...
616 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
617 unanalyzable refs, do not record locations for it.
618 (analyze_memory_references): Allocate ref zero as shared
620 (refs_independent_p): Do not test for unanalyzed mems here.
621 (ref_indep_loop_p_1): Special-case disambiguation against
623 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
625 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
627 * config/arm/arm-protos.h (tune_params): Add
628 prefer_neon_for_64bits field.
629 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
630 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
631 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
632 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
633 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
634 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
635 (arm_option_override): Handle -mneon-for-64bits new option.
636 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
637 (prefer_neon_for_64bits): Declare new variable.
638 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
639 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
640 (arch_enabled): Handle new arch types. Remove support for onlya8
642 (one_cmpldi2): Use new arch names.
643 (zero_extend<mode>di2, extend<mode>di2): Ditto.
644 * config/arm/arm.opt (mneon-for-64bits): Add option.
645 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
646 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
647 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
649 * doc/invoke.texi (-mneon-for-64bits): Document.
651 2013-03-21 Richard Biener <rguenther@suse.de>
653 PR tree-optimization/39326
654 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
655 (sort_bbs_in_loop_postorder_cmp): New function.
656 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
658 2013-03-21 Richard Biener <rguenther@suse.de>
660 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
661 (vect_insert_into_interleaving_chain): Likewise.
662 (vect_drs_dependent_in_basic_block): Inline ...
663 (vect_slp_analyze_data_ref_dependence): ... here. New function,
665 (vect_analyze_data_ref_dependence): ... here. Simplify.
666 (vect_check_interleaving): Simplify.
667 (vect_analyze_data_ref_dependences): Likewise. Split out ...
668 (vect_slp_analyze_data_ref_dependences): ... this new function.
669 (dr_group_sort_cmp): New function.
670 (vect_analyze_data_ref_accesses): Compute data-reference groups
671 here instead of in vect_analyze_data_ref_dependence. Use
672 a more efficient algorithm.
673 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
674 vect_slp_analyze_data_ref_dependences. Call
675 vect_analyze_data_ref_accesses earlier.
676 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
677 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
678 (vect_slp_analyze_data_ref_dependences): New prototype.
680 2013-03-21 Richard Biener <rguenther@suse.de>
682 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
683 ref is stored in the loop.
684 (find_refs_for_sm): Walk only over all stores.
685 (store_motion_loop): Allocate from lim_bitmap_obstack.
686 (store_motion): Likewise.
688 2013-03-21 Richard Biener <rguenther@suse.de>
690 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
691 Update virtual SSA form.
693 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
695 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
696 * configure: Regenerate.
697 * config.in: Regenerate.
698 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
699 if !HAVE_LD_EH_FRAME_CIEV3.
701 2013-03-21 Richard Biener <rguenther@suse.de>
703 * tree-cfg.c (verify_expr_no_block): New function.
704 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
705 nor DECL_VALUE_EXPR have locations with associated blocks.
706 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
707 (clear_unused_block_pointer): Remove code dealing with
708 blocks in DECL_DEBUG_EXPR locations.
710 2013-03-21 Richard Biener <rguenther@suse.de>
712 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
713 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
714 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
715 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
716 instead of DECL_DEBUG_EXPR_IS_FROM.
717 * gimplify.c (gimplify_modify_expr): Likewise.
718 * tree-cfg.c (verify_expr_location_1): Likewise.
719 * tree-complex.c (create_one_component_var): Likewise.
720 * tree-sra.c (create_access_replacement): Likewise.
721 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
722 (clear_unused_block_pointer): Likewise.
723 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
724 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
725 * var-tracking.c (var_debug_decl): Likewise.
726 (track_expr_p): Likewise.
727 * tree-inline.c (add_local_variables): Likewise. Set
728 DECL_HAS_DEBUG_EXPR_P after copying it.
729 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
730 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
732 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
735 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
736 * configure: Regenerate.
737 * config.in: Regenerate.
738 * config/i386/i386.md (*movdf_internal): Use
739 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
740 movd instead of movq mnemonic for interunit moves.
741 (*movdi_internal): Ditto.
743 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
745 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
746 (abd<mode>_3): New pattern.
747 (aba<mode>_3): New pattern.
748 (fabd<mode>_3): New pattern.
750 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
752 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
753 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
754 occurrence of REGISTER_PREFIX as its empty string.
756 2013-03-20 Jeff Law <law@redhat.com>
758 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
759 addititional equivalences for equality comparisons between an SSA_NAME
760 and a constant where the SSA_NAME was set from a widening conversion.
762 2013-03-20 Walter Lee <walt@tilera.com>
764 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
766 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
768 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
769 depending on type attribute.
770 (*movti_internal): Ditto.
771 (*movtf_internal): Ditto.
772 (*movxf_internal): Ditto.
773 (*movdf_internal): Ditto.
774 (*movsf_internal): Ditto.
776 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
778 * config/i386/i386.md (*movti_internal): Set prefix attribute to
779 maybe_vex for sselog1 and ssemov types.
780 (*movdi_internal): Reorder operand constraints.
781 (*movsi_internal): Ditto. Set prefix attribute to
782 maybe_vex for sselog1 and ssemov types.
783 (*movtf_internal): Set prefix attribute to maybe_vex
784 for sselog1 and ssemov types.
785 (*movdf_internal): Ditto. Set prefix_data16 attribute for
786 DImode ssemov types. Reorder operand constraints.
787 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
788 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
789 attribute for SImode ssemov types. Reorder operand constraints.
791 2013-03-20 Martin Jambor <mjambor@suse.cz>
793 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
794 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
796 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
798 * config/rs6000/predicates.md (indexed_address, update_address_mem
799 update_indexed_address_mem): New predicates.
800 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
801 attribute for load/store instructions.
802 * config/rs6000/dfp.md (movsd_store): Likewise.
803 (movsd_load): Likewise.
804 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
805 (unnamed HI->DI extend define_insn): Likewise.
806 (unnamed SI->DI extend define_insn): Likewise.
807 (unnamed QI->SI extend define_insn): Likewise.
808 (unnamed QI->HI extend define_insn): Likewise.
809 (unnamed HI->SI extend define_insn): Likewise.
810 (unnamed HI->SI extend define_insn): Likewise.
811 (extendsfdf2_fpr): Likewise.
812 (movsi_internal1): Likewise.
813 (movsi_internal1_single): Likewise.
814 (movhi_internal): Likewise.
815 (movqi_internal): Likewise.
816 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
817 attribute for load/store instructions.
818 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
820 (mov<mode>_softfloat): Likewise.
821 (mov<mode>_hardfloat32): Likewise.
822 (mov<mode>_hardfloat64): Likewise.
823 (mov<mode>_softfloat64): Likewise.
824 (movdi_internal32): Likewise.
825 (movdi_internal64): Likewise.
826 (probe_stack_<mode>): Likewise.
828 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
830 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
831 floating point, and decimal floating point to reload iterator.
833 * config/rs6000/constraints.md (wl constraint): New constraints to
834 return FLOAT_REGS if certain options are used to reduce the number
835 of separate patterns that exist in the file.
836 (wx constraint): Likewise.
837 (wz constraint): Likewise.
839 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
840 -mdebug=reg, print wg, wl, wx, and wz constraints.
841 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
842 Initialize the reload functions for 64-bit binary/decimal floating
844 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
845 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
846 create the buffer on the stack to overcome not having a 32-bit
848 (rs6000_emit_move): Likewise.
849 (rs6000_secondary_memory_needed_rtx): Likewise.
850 (rs6000_alloc_sdmode_stack_slot): Likewise.
851 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
852 via xxlxor, just like DFmode 0.0.
854 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
855 define as 1 if we are running on a power7 or newer.
856 (enum r6000_reg_class_enum): Add new constraints.
858 * config/rs6000/dfp.md (movsd): Delete, combine with binary
859 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
860 with other moves by using conditional constraits (wg). Use LFIWZX
861 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
862 (movsd splitter): Likewise.
863 (movsd_hardfloat): Likewise.
864 (movsd_softfloat): Likewise.
866 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
867 binary and decimal floating point moves.
868 (fmove_ok): New attributes to combine binary and decimal floating
869 point moves, and to combine power6x (mfpgpr) moves along normal
871 (real_value_to_target): Likewise.
878 (movsf): Combine binary and decimal floating point moves. Combine
879 power6x (mfpgpr) moves with other moves by using conditional
880 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
881 (mov<mode> for SFmode/SDmode); Likewise.
882 (SFmode/SDmode splitters): Likewise.
883 (movsf_hardfloat): Likewise.
884 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
885 (movsf_softfloat): Likewise.
886 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
888 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
889 wx and wz constraints.
891 * config/rs6000/constraints.md (wg constraint): New constraint to
892 return FLOAT_REGS if -mmfpgpr (power6x) was used.
894 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
897 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
898 -mdebug=reg, print wg, wl, wx, and wz constraints.
899 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
900 Initialize the reload functions for 64-bit binary/decimal floating
902 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
903 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
904 create the buffer on the stack to overcome not having a 32-bit
906 (rs6000_emit_move): Likewise.
907 (rs6000_secondary_memory_needed_rtx): Likewise.
908 (rs6000_alloc_sdmode_stack_slot): Likewise.
909 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
910 via xxlxor, just like DFmode 0.0.
912 * config/rs6000/dfp.md (movdd): Delete, combine with binary
913 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
914 with other moves by using conditional constraits (wg). Use LFIWZX
915 and STFIWX for loading SDmode on power7.
916 (movdd splitters): Likewise.
917 (movdd_hardfloat32): Likewise.
918 (movdd_softfloat32): Likewise.
919 (movdd_hardfloat64_mfpgpr): Likewise.
920 (movdd_hardfloat64): Likewise.
921 (movdd_softfloat64): Likewise.
923 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
924 64-bit binary and decimal floating point moves.
925 (FMOVE64X): Likewise.
926 (movdf): Combine 64-bit binary and decimal floating point moves.
927 Combine power6x (mfpgpr) moves with other moves by using
928 conditional constraits (wg).
929 (mov<mode> for DFmode/DDmode): Likewise.
930 (DFmode/DDmode splitters): Likewise.
931 (movdf_hardfloat32): Likewise.
932 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
933 (movdf_softfloat32): Likewise.
934 (movdf_hardfloat64_mfpgpr): Likewise.
935 (movdf_hardfloat64): Likewise.
936 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
937 (movdf_softfloat64): Likewise.
938 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
939 (reload_<mode>_load): Move to later in the file so they aren't in
940 the middle of the floating point move insns.
941 (reload_<mode>_store): Likewise.
943 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
946 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
947 constraint if -mdebug=reg.
948 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
949 Enable using dd reload support if needed.
951 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
952 binary and decimal floating point moves in rs6000.md.
953 (movtd_internal): Likewise.
955 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
956 decimal floating point moves.
958 (movtf_internal): Likewise.
959 (mov<mode>_internal, TDmode/TFmode): Likewise.
960 (movtf_softfloat): Likewise.
961 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
963 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
964 movdi_internal64, using wg constraint for move direct operations.
965 (movdi_internal64): Likewise.
967 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
968 MODES_TIEABLE_P for selected modes. Print the numerical value of
969 the various virtual registers. Use GPR/FPR first/last values,
970 instead of hard coding the register numbers. Print which modes
971 have reload functions registered.
972 (rs6000_option_override_internal): If -mdebug=reg, trace the options
973 settings before/after setting cpu, target and subtarget settings.
974 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
975 and for secondary reload failures in rs6000_secondary_reload_inner.
976 (rs6000_secondary_reload_fail): Likewise.
977 (rs6000_secondary_reload_inner): Likewise.
979 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
980 macros for first/last GPR and FPR registers.
981 (LAST_GPR_REGNO): Likewise.
982 (FIRST_FPR_REGNO): Likewise.
983 (LAST_FPR_REGNO): Likewise.
985 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
986 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
987 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
988 (vcond<mode><mode>): Likewise.
989 (vcondu<mode><mode>): Likewise.
990 (vector_gtu<mode>): Likewise.
991 (vector_gte<mode>): Likewise.
992 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
993 to prevent the compiler from converting DImode operations to TImode.
994 (ior<mode>3): Likewise.
995 (and<mode>3): Likewise.
996 (one_cmpl<mode>2): Likewise.
997 (nor<mode>3): Likewise.
998 (andc<mode>3): Likewise.
1000 * config/rs6000/constraints.md (wt constraint): New constraint
1001 that returns VSX_REGS if TImode is allowed in VSX registers.
1003 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
1006 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
1007 similar to TImode, but it is restricted to being in the GPRs.
1009 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
1010 TImode to occupy a single VSX register.
1012 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
1013 -mvsx-timode for power7/power8.
1014 (power7 cpu): Likewise.
1015 (power8 cpu): Likewise.
1017 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
1018 sure that TFmode/TDmode take up two registers if they are ever
1019 allowed in the upper VSX registers.
1020 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
1022 (rs6000_init_hard_regno_mode_ok): Likewise.
1023 (rs6000_debug_reg_global): Add debugging for PTImode and wt
1024 constraint. Print if LRA is turned on.
1025 (rs6000_option_override_internal): Give an error if -mvsx-timode
1026 and VSX is not enabled.
1027 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
1028 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
1029 to reg+offset addressing. Use PTImode when checking offset
1030 addresses for validity.
1031 (reg_offset_addressing_ok_p): Likewise.
1032 (rs6000_legitimate_offset_address_p): Likewise.
1033 (rs6000_legitimize_address): Likewise.
1034 (rs6000_legitimize_reload_address): Likewise.
1035 (rs6000_legitimate_address_p): Likewise.
1036 (rs6000_eliminate_indexed_memrefs): Likewise.
1037 (rs6000_emit_move): Likewise.
1038 (rs6000_secondary_reload): Likewise.
1039 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
1040 reloads to fpr registers to continue to use reg+offset addressing,
1041 but 64-bit reloads to altivec registers need reg+reg addressing.
1042 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
1043 it. Treat LO_SUM like a PLUS operation.
1044 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
1045 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
1046 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
1047 registers to share a register with a smaller sized type, since VSX
1048 puts scalars in the upper 64-bits.
1049 (print_operand): Add support for PTImode.
1050 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
1051 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
1052 registers, but don't have arithmetic support.
1053 (rs6000_memory_move_cost): Add test for VSX.
1054 (rs6000_opt_masks): Add -mvsx-timode.
1056 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
1059 (VSr): Use wt constraint for TImode.
1060 (VSv): Drop TImode support.
1061 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
1062 (vsx_movti_64bit): Likewise.
1063 (vsx_movti_32bit): Likewise.
1064 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
1065 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
1066 one '?' on the appropriate output constraint. Do not allow TImode
1067 logical operations on 32-bit systems.
1068 (vsx_ior<mode>3): Likewise.
1069 (vsx_xor<mode>3): Likewise.
1070 (vsx_one_cmpl<mode>2): Likewise.
1071 (vsx_nor<mode>3): Likewise.
1072 (vsx_andc<mode>3): Likewise.
1073 (vsx_concat_<mode>): Likewise.
1074 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
1076 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
1077 OPTION_MASK_VSX_TIMODE.
1078 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
1079 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
1081 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
1082 (TI2 iterator): New iterator for TImode, PTImode.
1083 (wd mode attribute): Add values for vector types.
1084 (movti_string): Replace TI move operations with operations for TImode
1085 and PTImode. Add support for TImode being allowed in VSX registers.
1086 (mov<mode>_string, TImode/PTImode): Likewise.
1087 (movti_ppc64): Likewise.
1088 (mov<mode>_ppc64, TImode/PTImode): Likewise.
1089 (TI mode splitters): Likewise.
1091 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
1094 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
1096 PR tree-optimization/56355
1097 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
1098 Also handle integers with undefined overflow.
1100 2013-03-20 Catherine Moore <clm@codesourcery.com>
1101 Maciej W. Rozycki <macro@codesourcery.com>
1102 Tom de Vries <tom@codesourcery.com>
1103 Nathan Sidwell <nathan@codesourcery.com>
1104 Iain Sandoe <iain@codesourcery.com>
1105 Nathan Froyd <froydnj@codesourcery.com>
1106 Chao-ying Fu <fu@mips.com>
1108 * doc/extend.texi: (micromips, nomicromips, nocompression):
1109 Document new function attributes.
1110 * doc/invoke.texi (minterlink-compressed, mmicromips,
1111 m14k, m14ke, m14kec): Document new options.
1112 (minterlink-mips16): Update documentation.
1113 * doc/md.texi (ZC, ZD): Document new constraints.
1114 * configure.ac (gcc_cv_as_micromips): Check if linker
1115 supports the .set micromips directive.
1116 * configure: Regenerate.
1117 * config.in: Regenerate.
1118 * config/mips/mips-tables.opt: Regenerate.
1119 * config/mips/micromips.md: New file.
1120 * constraints.md (ZC, ZD): New constraints.
1121 * config/mips/predicates.md (movep_src_register): New predicate.
1122 (movep_src_operand): New predicate.
1123 (non_volatile_mem_operand): New predicate.
1124 * config/mips/mips.md (multimem): New type.
1125 (length): Differentiate between 17-bit and 18-bit branch offsets.
1126 (MOVEP1, MOVEP2): New mode iterator.
1127 (mov_<load>l): Use ZC constraint.
1128 (mov_<load>r): Likewise.
1129 (mov_<store>l): Likewise.
1130 (mov_<store>r): Likewise.
1131 (*branch_equality<mode>_inverted): Add microMIPS support.
1132 (*branch_equality<mode>): Likewise.
1133 (*jump_absolute): Likewise.
1134 (indirect_jump_<mode>): Likewise.
1135 (tablejump_<mode>): Likewise.
1136 (<optab>_internal): Likewise.
1137 (sibcall_internal): Likewise.
1138 (sibcall_value_internal): Likewise.
1139 (prefetch): Use constraint ZD.
1140 * config/mips/mips.opt (minterlink-compressed): New option.
1141 (minterlink-mips16): Now an alias for minterlink-compressed.
1142 (mmicromips): New option.
1143 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1144 (compare_and_swap_12): Likewise.
1145 (sync_add<mode>): Likewise.
1146 (sync_<optab>_12): Likewise.
1147 (sync_old_<optab>_12): Likewise.
1148 (sync_new_<optab>_12): Likewise.
1149 (sync_nand_12): Likewise.
1150 (sync_old_nand_12): Likewise.
1151 (sync_new_nand_12): Likewise.
1152 (sync_sub<mode>): Likewise.
1153 (sync_old_add<mode>): Likewise.
1154 (sync_old_sub<mode>): Likewise.
1155 (sync_new_add<mode>): Likewise.
1156 (sync_new_sub<mode>): Likewise.
1157 (sync_<optab><mode>): Likewise.
1158 (sync_old_<optab><mode>): Likewise.
1159 (sync_new_<optab><mode>): Likewise.
1160 (sync_nand<mode>): Likewise.
1161 (sync_old_nand<mode>): Likewise.
1162 (sync_new_nand<mode>): Likewise.
1163 (sync_lock_test_and_set<mode>): Likewise.
1164 (test_and_set_12): Likewise.
1165 (atomic_compare_and_swap<mode>): Likewise.
1166 (atomic_exchange<mode>_llsc): Likewise.
1167 (atomic_fetch_add<mode>_llsc): Likewise.
1168 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1169 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1170 (umips_save_restore_pattern_p): Likewise.
1171 (umips_load_store_pair_p): Likewise.
1172 (umips_output_load_store_pair): Likewise.
1173 (umips_movep_target_p): Likewise.
1174 (umips_12bit_offset_address_p): Likewise.
1175 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1176 (mips_base_mips16): Rename this...
1177 (mips_base_compression_flags): ...to this. Update all uses.
1178 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1179 (mips_mips16_decl_p): Delete.
1180 (mips_nomips16_decl_p): Delete.
1181 (mips_get_compress_on_flags): New function.
1182 (mips_get_compress_off_flags): New function.
1183 (mips_get_compress_mode): New function.
1184 (mips_get_compress_on_name): New function.
1185 (mips_get_compress_off_name): New function.
1186 (mips_insert_attributes): Support multiple compression types.
1187 (mips_merge_decl_attributes): Likewise.
1188 (umips_12bit_offset_address_p): New function.
1189 (mips_start_function_definition): Emit .set micromips directive.
1190 (mips_call_may_need_jalx_p): New function.
1191 (mips_function_ok_for_sibcall): Add microMIPS support.
1192 (mips_print_operand_punctuation): Support short delay slots and
1194 (umips_swm_mask, umips_swm_encoding): New.
1195 (umips_build_save_restore): New function.
1196 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1197 (was_mips16_p): Remove.
1198 (old_compression_mode): New.
1199 (mips_set_compression_mode): New function.
1200 (mips_set_current_function): Add microMIPS support.
1201 (mips_option_override): Likewise.
1202 (umips_save_restore_pattern_p): New function.
1203 (umips_output_save_restore): New function.
1204 (umips_load_store_pair_p_1): New function.
1205 (umips_load_store_pair_p): New function.
1206 (umips_output_load_store_pair_1): New function.
1207 (umips_output_load_store_pair): New function.
1208 (umips_movep_target_p) New function.
1209 (mips_prepare_pch_save): Add microMIPS support.
1210 * config/mips/mips.h (TARGET_COMPRESSION): New.
1211 (TARGET_CPU_CPP_BUILTINS): Update macro
1212 to use new compression flags and to support microMIPS.
1213 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1214 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1215 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1216 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1217 (ASM_SPEC): Support mmicromips and mno-micromips.
1218 (M16STORE_REG_P): New macro.
1219 (MIPS_CALL): Support TARGET_MICROMIPS.
1220 (MICROMIPS_J): New macro.
1221 (mips_base_mips16): Rename this...
1222 (mips_base_compression_flags): ...to this.
1223 (UMIPS_12BIT_OFFSET_P): New macro.
1224 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1225 (MULTILIB_DIRNAMES): Likewise.
1226 2013-03-20 Richard Biener <rguenther@suse.de>
1228 PR tree-optimization/56661
1229 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
1230 the result does not have to be distinct.
1232 2013-03-20 Richard Biener <rguenther@suse.de>
1234 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
1237 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1238 Steven Bosscher <steven@gcc.gnu.org>
1240 PR rtl-optimization/56605
1241 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
1243 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1246 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
1247 that require movd instead of movq.
1249 2013-03-20 Richard Biener <rguenther@suse.de>
1251 * tree-ssa-structalias.c (struct variable_info): Add pointer
1252 to the first field of an aggregate with sub-vars. Make
1253 this and the pointer to the next subfield its ID.
1254 (vi_next): New function.
1255 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
1256 storedanything_id, integer_id): Increment by one.
1257 (new_var_info, get_call_vi, lookup_call_clobber_vi,
1258 get_call_clobber_vi): Adjust.
1259 (solution_set_expand): Simplify and speedup.
1260 (solution_set_add): Inline into ...
1261 (set_union_with_increment): ... this. Adjust accordingly.
1262 (do_sd_constraint): Likewise.
1263 (do_ds_constraint): Likewise.
1264 (do_complex_constraint): Simplify.
1265 (build_pred_graph): Adjust.
1266 (solve_graph): Likewise. Simplify and speedup.
1267 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
1268 get_constraint_for_component_ref, get_constraint_for_1,
1269 first_vi_for_offset, first_or_preceding_vi_for_offset,
1270 create_function_info_for, create_variable_info_for_1,
1271 create_variable_info_for, intra_create_variable_infos): Adjust.
1272 (init_base_vars): Push NULL for ID zero.
1273 (compute_points_to_sets): Adjust.
1275 2013-03-20 Richard Biener <rguenther@suse.de>
1277 * cfgloop.c (verify_loop_structure): Streamline and avoid
1278 ICEing on corrupt loop tree.
1279 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
1282 2013-03-20 Richard Biener <rguenther@suse.de>
1284 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
1285 check whether an SSA update is needed.
1287 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
1289 * config/mips/constraints.md (T): Rename to...
1293 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
1294 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
1296 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1298 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
1299 (*subsi3_carryin_uxtw): Likewise.
1301 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1303 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
1304 (*rorsi3_insn_uxtw): Likewise.
1306 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1308 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
1309 (*extrsi5_insn_uxtw): Likewise.
1311 2013-03-19 Richard Biener <rguenther@suse.de>
1313 PR tree-optimization/56273
1314 * passes.c (init_optimization_passes): Move second VRP after DOM.
1316 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
1318 * config/i386/i386.md (*movti_internal): Merge from
1319 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
1320 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
1321 nox64 isa attributes.
1323 2013-03-18 Richard Biener <rguenther@suse.de>
1325 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
1327 (merge_node_constraints): Likewise.
1328 (build_succ_graph): Likewise.
1329 (valid_graph_edge): Inline into single caller.
1330 (unify_nodes): Likewise. Use bitmap_set_bit return value
1332 (scc_visit): Fix formatting and variable use.
1333 (do_sd_constraint): Use gcc_checking_assert.
1334 (do_ds_constraint): Likewise.
1335 (do_complex_constraint): Likewise.
1336 (condense_visit): Likewise. Cleanup.
1337 (dump_pred_graph): New function.
1338 (perform_var_substitution): Dump the pred-graph before
1339 variable substitution.
1340 (find_equivalent_node): Use gcc_checking_assert.
1341 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
1343 2013-03-18 Richard Biener <rguenther@suse.de>
1345 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1346 Remove cond_expr_stmt_list argument and do not gimplify the
1348 (vect_loop_versioning): Adjust.
1349 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1350 Cleanup to use less temporaries.
1351 (vect_create_data_ref_ptr): Cleanup.
1353 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1355 PR tree-optimization/56635
1356 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
1357 require types_compatible_p types.
1359 2013-03-18 Nick Clifton <nickc@redhat.com>
1361 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
1364 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
1365 Add missing line to comment describing function.
1367 2013-03-18 Richard Biener <rguenther@suse.de>
1369 PR tree-optimization/56210
1370 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1371 Handle string / character search functions.
1372 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1374 2013-03-18 Richard Biener <rguenther@suse.de>
1377 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
1378 and implement properly.
1379 * gimple.h (gimple_cond_single_var_p): Remove.
1381 2013-03-18 Richard Biener <rguenther@suse.de>
1383 * tree-data-ref.h (find_data_references_in_loop): Declare.
1384 * tree-data-ref.c (get_references_in_stmt): Use a stack
1385 vector pre-allocated in the callers.
1386 (find_data_references_in_stmt): Adjust.
1387 (graphite_find_data_references_in_stmt): Likewise.
1388 (create_rdg_vertices): Likewise.
1389 (find_data_references_in_loop): Export.
1390 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
1391 Compute dependences here...
1392 (vect_analyze_data_refs): ...not here. When we encounter
1393 a non-vectorizable data reference in basic-block vectorization
1394 truncate the data reference vector. Do not bother to
1395 fixup data-dependence information for gather loads.
1396 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
1397 of data references, as reported.
1399 2013-03-18 Richard Biener <rguenther@suse.de>
1401 PR tree-optimization/3713
1402 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
1403 has_constants and expr.
1404 (stmt_has_constants): Properly valueize SSA names when deciding
1405 whether the stmt has constants.
1407 2013-03-18 Richard Biener <rguenther@suse.de>
1409 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
1410 whole function when there is nothing to do.
1411 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
1412 * tree-vectorizer.c (vectorize_loops): Update virtual and
1413 loop-closed SSA once.
1414 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
1416 2013-03-18 Richard Biener <rguenther@suse.de>
1419 * domwalk.c (bb_postorder): New global static.
1420 (cmp_bb_postorder): New function.
1421 (walk_dominator_tree): Replace scheme imposing an order for
1422 visiting dominator sons by one sorting them at the time they
1423 are pushed on the stack.
1425 2013-03-18 Richard Biener <rguenther@suse.de>
1427 PR tree-optimization/39326
1428 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
1429 (struct mem_ref): Replace mem member with ao_ref typed member.
1430 (MEM_ANALYZABLE): Adjust.
1431 (memref_eq): Likewise.
1432 (mem_ref_alloc): Likewise.
1433 (gather_mem_refs_stmt): Likewise.
1434 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
1435 (execute_sm_if_changed_flag_set): Adjust.
1436 (execute_sm): Likewise.
1437 (ref_always_accessed_p): Likewise.
1438 (refs_independent_p): Likewise.
1439 (can_sm_ref_p): Likewise.
1441 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1444 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
1445 return 1 even for !unsignedp.
1447 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1449 * config/i386/i386.md (isa): Add x64 and nox64.
1450 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
1451 (*pushtf): Enable *roF alternative for x64 isa only.
1452 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
1453 mode attribute of integer alternatives to DImode for TARGET_64BIT.
1454 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
1455 (*movtf_internal): Merge from *movtf_internal_rex64 and
1456 *movtf_internal_sse. Use x64 and nox64 isa attributes.
1457 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
1458 nox64 isa attributes.
1459 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
1460 nox64 isa attributes.
1461 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
1463 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1465 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1467 2013-03-17 Jakub Jelinek <jakub@redhat.com>
1470 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
1471 class names. Remove trailing comma after "ALL_REGS".
1473 2013-03-16 Jan Hubicka <jh@suse.cz>
1475 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
1476 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
1477 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
1478 of cgraph_get_create_node.
1479 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1481 2013-03-16 Jason Merrill <jason@redhat.com>
1484 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
1485 with DW_AT_default_value.
1487 2013-03-16 Jakub Jelinek <jakub@redhat.com>
1489 * BASE-VER: Set to 4.9.0.
1491 2013-03-14 Andi Kleen <ak@linux.intel.com>
1494 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
1495 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
1496 Document _x* TSX intrinsics.
1498 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1499 David Holsgrove <david.holsgrove@xilinx.com>
1501 * configure.ac: Add MicroBlaze TLS support detection.
1502 * configure: Regenerate.
1503 * config/microblaze/microblaze-protos.h
1504 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
1505 symbol_mentioned_p, label_mentioned_p): Add prototypes.
1506 * config/microblaze/microblaze.c (microblaze_address_type): Add
1507 ADDRESS_TLS and tls_reloc address types.
1508 (microblaze_address_info): Add tls_reloc.
1509 (TARGET_HAVE_TLS): Define.
1510 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
1511 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
1512 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
1513 load_tls_operand, microblaze_call_tls_get_addr,
1514 microblaze_legitimize_tls_address): New functions.
1515 (microblaze_classify_unspec): Handle UNSPEC_TLS.
1516 (get_base_reg): Use microblaze_tls_symbol_p.
1517 (microblaze_classify_address): Handle TLS.
1518 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
1519 label_mentioned_p and microblaze_tls_referenced_p.
1520 (microblaze_legitimize_address): Handle TLS.
1521 (microblaze_address_insns): Handle ADDRESS_TLS.
1522 (pic_address_needs_scratch): Handle TLS.
1523 (print_operand_address): Handle TLS.
1524 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
1525 (microblaze_expand_move): Handle TLS.
1526 (microblaze_legitimate_constant_p): Check
1527 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
1528 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1529 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
1530 (PIC_OFFSET_TABLE_REGNUM): Set.
1531 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
1532 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
1533 (addsi3, movsi_internal2, movdf_internal): Update constraints
1534 * config/microblaze/predicates.md (arith_plus_operand): Define
1535 (move_operand): Redefine as move_src_operand,
1536 check microblaze_tls_referenced_p.
1538 2013-03-14 Ian Bolton <ian.bolton@arm.com>
1540 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
1541 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
1543 2013-03-14 Ian Bolton <ian.bolton@arm.com>
1545 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
1548 2013-03-14 Jakub Jelinek <jakub@redhat.com>
1550 PR tree-optimization/53265
1551 * common.opt (Waggressive-loop-optimizations): New option.
1552 * tree-ssa-loop-niter.c: Include tree-pass.h.
1553 (do_warn_aggressive_loop_optimizations): New function.
1554 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
1555 if number_of_latch_executions returned constant.
1556 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
1557 early. If number_of_latch_executions returned constant, set
1558 nb_iterations_upper_bound back to it.
1559 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
1561 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
1562 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
1564 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
1565 (MULTILIB_OSDIRNAMES): Set.
1566 * genmultilib: If defaultosdirname doesn't start with :: , set
1567 defaultosdirname2 instead, clear it and emit two . multilib_raw
1568 entries instead of just one.
1570 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
1572 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1573 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
1574 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1575 (SUBTARGET_OVERRIDE_OPTIONS): New.
1577 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
1580 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
1581 (musermode): Convert to Var(TARGET_USERMODE).
1582 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
1583 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
1584 * config/sh/sh.c (sh_option_override): Use
1585 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
1586 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
1588 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
1590 (udivsi3_i4_single, divsi3_i4_single): Use
1591 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
1593 2013-03-13 Dave Korn <dave.korn.cygwin@....>
1595 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
1598 2013-03-13 Richard Biener <rguenther@suse.de>
1600 PR tree-optimization/56608
1601 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
1602 calls when vectorizing basic-blocks.
1604 2013-03-13 Jakub Jelinek <jakub@redhat.com>
1607 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
1610 2013-03-12 Jakub Jelinek <jakub@redhat.com>
1612 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
1614 2013-03-11 Jan Hubicka <jh@suse.cz>
1617 * lto-streamer-out.c (output_symbol_p): Skip references from
1618 constructors of external variables.
1620 2013-03-11 Jan Hubicka <jh@suse.cz>
1623 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
1625 * emit-rtl.c (verify_rtx_sharing): Likewise.
1626 (copy_insn_1): Likewise.
1627 * rtl.c (copy_rtx): Likewise.
1629 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
1632 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
1633 output_operand_lossage message.
1635 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
1638 * arm.c (shift_op): Validate RTL pattern on the fly.
1639 (arm_print_operand, case 'S'): Don't use shift_operator to validate
1642 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1645 * config/pa/pa.md (call_value): Check for calls to powf and direct to
1646 new call patterns that clobber %fr12.
1647 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
1648 split and postreload patterns.
1649 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
1650 registers %fr12 and %fr12R as call used.
1652 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
1654 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
1655 (canon_address, record_store, replace_read, check_mem_read_rtx,
1656 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
1657 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
1658 rest_of_handle_dse): Likewise.
1660 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1663 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
1665 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
1666 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
1667 (save_optabs_if_changed): Replace with...
1668 (init_tree_optimization_optabs): ...this.
1669 * optabs.c (save_optabs_if_changed): Rename to...
1670 (init_tree_optimization_optabs): ...this. Take the optimization node
1671 as argument. Do nothing if the base optabs are already correct.
1672 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
1673 to recompute optabs.
1674 * function.h (function): Remove optabs field.
1675 * function.c (invoke_set_current_function_hook): Call
1676 init_tree_optimization_optabs. Use the result to initialize
1679 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
1681 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
1682 if GTMA_HAS_NO_INSTRUMENTATION.
1683 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
1684 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
1685 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
1686 * gimple-pretty-print.c (dump_gimple_transaction): Handle
1687 GTMA_HAS_NO_INSTRUMENTATION.
1689 2013-03-08 Jakub Jelinek <jakub@redhat.com>
1691 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
1694 2013-03-08 Marek Polacek <polacek@redhat.com>
1695 Jakub Jelinek <jakub@redhat.com>
1697 PR tree-optimization/56478
1698 * predict.c (is_comparison_with_loop_invariant_p): Change the
1699 type of loop_step to tree.
1700 (predict_loops): Adjust.
1701 (predict_iv_comparison): Perform the computations on double_ints.
1703 2013-03-08 Richard Biener <rguenther@suse.de>
1705 PR tree-optimization/56570
1706 * tree-cfg.c (verify_expr_location_1): Verify locations for
1708 * tree-sra.c (create_access_replacement): Strip locations
1709 from DECL_DEBUG_EXPRs.
1711 2013-03-08 Richard Biener <rguenther@suse.de>
1713 * tree-inline.c (expand_call_inline): Do not associate
1714 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
1715 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
1717 2013-03-08 Richard Biener <rguenther@suse.de>
1719 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
1720 or block changes with -Og. Fix for location / block encoding
1721 changes and PHI arguments with locations.
1723 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
1725 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
1727 (struct output_info): Likewise.
1728 (register_overhead): Remove bad gcc_assert.
1729 (bitmap_find_bit): If there is only a single bitmap element, do not
1730 count a miss as a search.
1731 (print_statistics): Update for counter type changes.
1732 (dump_bitmap_statistics): Likewise. Print headers such that they
1733 are properly lined up with the printed counters.
1735 2013-03-07 Jakub Jelinek <jakub@redhat.com>
1737 PR tree-optimization/56559
1738 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
1739 check that it has only a single use.
1741 2013-03-07 Richard Biener <rguenther@suse.de>
1743 * doc/invoke.texi (fwhole-program): Discourage use in combination
1746 2013-03-06 Jakub Jelinek <jakub@redhat.com>
1748 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
1750 PR tree-optimization/56539
1751 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
1752 instead of GSI_CONTINUE_LINKING as last argument to
1753 force_gimple_operand_gsi. Adjust function comment.
1755 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
1759 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
1760 promoted mode, convert the result back to the original mode.
1762 2013-03-06 Richard Biener <rguenther@suse.de>
1765 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
1766 (insert_updated_phi_nodes_compare_uids): New function.
1767 (update_ssa): Sort symbols_to_rename after UID before
1768 traversing it to insert PHI nodes.
1770 2013-03-06 Richard Biener <rguenther@suse.de>
1773 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
1774 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
1777 2013-02-13 Richard Biener <rguenther@suse.de>
1780 * varasm.c (output_constant_def_1): Get the decl representing
1781 the constant as argument.
1782 (output_constant_def): Wrap output_constant_def_1.
1783 (make_decl_rtl): Use output_constant_def_1 with the decl
1784 representing the constant.
1785 (build_constant_desc): Optionally re-use a decl already
1786 representing the constant.
1787 (tree_output_constant_def): Adjust.
1789 2013-03-06 Joey Ye <joey.ye@arm.com>
1792 * gcc.c (convert_white_space): New function.
1793 (main): Handles white space in function name.
1795 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
1798 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
1799 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
1800 to SH_DIV_CALL_TABLE for TARGET_SH2.
1801 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
1803 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
1806 2013-03-05 Sterling Augustine <saugustine@google.com>
1807 Cary Coutant <ccoutant@google.com>
1810 * dwarf2out.c (resolve_addr): Don't call
1811 remove_loc_list_addr_table_entries a second time for the same
1814 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1817 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
1818 (avoid_complex_debug_insns): New function.
1819 (expand_debug_locations): Call it.
1821 PR rtl-optimization/56484
1822 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
1823 lifetimes of hard registers on small register class machines.
1825 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1827 * config/microblaze/microblaze-protos.h: Rename
1828 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
1829 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
1831 (microblaze_fast_interrupt_function_p): New function.
1832 (microblaze_is_interrupt_handler): Rename to
1833 microblaze_is_interrupt_variant and add fast_interrupt check.
1834 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
1835 (save_restore_insns): Likewise.
1836 (compute_frame_size): Likewise.
1837 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
1838 (microblaze_globalize_label): Likewise.
1839 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
1840 * config/microblaze/microblaze.md: Use wrapper
1841 microblaze_is_interrupt_variant.
1843 2013-03-05 Kai Tietz <ktietz@redhat.com>
1845 * sdbout.c (sdbout_one_type): Switch to current function's section
1846 supporting cold/hot.
1848 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1850 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
1853 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1856 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
1857 if VALGRIND_GET_VBITS is defined, temporarily make object
1858 memory all defined, and restore previous valgrind addressability
1859 and definability afterwards. Free this_object at the end.
1862 * lra.c (lra): Call lra_clear_live_ranges if live_p,
1863 right before calling lra_create_live_ranges, also call it
1864 when clearing live_p. Only call lra_clear_live_ranges
1865 at the end if live_p.
1868 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
1870 2013-03-05 Richard Biener <rguenther@suse.de>
1872 PR tree-optimization/56521
1873 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
1876 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
1879 * except.h (remove_unreachable_eh_regions): New prototype.
1880 * except.c (remove_eh_handler_splicer): New function, split out
1881 of remove_eh_handler.
1882 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
1883 warning about running it on many EH regions one at a time.
1884 (remove_unreachable_eh_regions_worker): New function, walk the
1885 EH tree in depth-first order and remove non-marked regions.
1886 (remove_unreachable_eh_regions): New function.
1887 * tree-eh.c (mark_reachable_handlers): New function, split out
1888 from remove_unreachable_handlers.
1889 (remove_unreachable_handlers): Use mark_reachable_handlers and
1890 remove_unreachable_eh_regions.
1891 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
1892 and remove_unreachable_eh_regions.
1894 2013-03-05 Richard Biener <rguenther@suse.de>
1897 * loop-init.c (fix_loop_structure): Remove loops in two stages,
1898 not freeing them until the end.
1900 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1902 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
1904 2013-03-05 Richard Biener <rguenther@suse.de>
1906 PR tree-optimization/56270
1907 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
1908 of loads after scheduling an SLP instance.
1910 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1912 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
1914 (check_gcc_parallelize): Run guality.exp as a separate job from
1915 vect.exp with unsorted.exp and $(dg_target_exps) separately from
1916 struct-layout-1.exp with stackalign.exp.
1918 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
1921 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
1922 load_index sbitmap even if some bit in it isn't set.
1925 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
1926 (discover_iteration_bound_by_body_walk): Change queues to
1927 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
1928 spelling in comment. Call safe_push on queues[bound_index] directly.
1929 Release queues[queue_index] in every iteration unconditionally.
1930 Release bounds vector.
1933 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
1934 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
1935 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
1938 2013-03-05 Richard Biener <rguenther@suse.de>
1941 * tree-inline.c (remap_blocks_to_null): New function.
1942 (expand_call_inline): When expanding a call stmt without
1943 an associated block inline remap all callee blocks to NULL.
1945 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1947 PR rtl-optimization/56494
1948 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
1949 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
1950 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
1953 * sel-sched-ir.c (free_sched_pools): Release
1954 succs_info_pool.stack[succs_info_pool.max_top] vectors too
1955 if succs_info_pool.max_top isn't -1.
1958 * opts.c (opts_obstack, opts_concat): Moved to...
1959 * opts-common.c (opts_obstack, opts_concat): ... here.
1961 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1964 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
1966 2013-03-04 Martin Jambor <mjambor@suse.cz>
1968 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
1969 all appropriate places.
1971 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
1973 PR tree-optimization/56424
1974 * ipa-split.c (split_function): Do not set the RSO flag if result is
1975 not by reference and its type is a register type.
1977 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
1979 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
1980 (microblaze_legitimate_pic_operand): Likewise
1981 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
1982 new function microblaze_legitimate_pic_operand
1983 * config/microblaze/microblaze-protos.h
1984 (microblaze_legitimate_pic_operand): Declare.
1986 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1988 * config/microblaze/predicates.md (call_insn_simple_operand):
1989 New predicate for supported rtx code types.
1990 * config/microblaze/microblaze.md (call_internal1): Use
1991 call_insn_simple_operand predicate.
1993 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1996 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
1997 partitions.ordered_remove.
2000 * tree-vect-stmts.c (vectorizable_conversion): Don't call
2001 vec_oprnds0.create (1) for modifier == NONE.
2004 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
2005 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
2006 vec_oprnds1 right before pushing anything to it for
2010 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
2011 set nbbs to 0 instead of having separate code path.
2012 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
2013 instead of false as last argument if returning NULL.
2015 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
2017 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
2018 the attribute is now called "target" instead of "option".
2019 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
2020 * doc/tm.texi.in (Target Attributes): Likewise document the correct
2021 attribute/pragma name for TARGET_OPTION_VALID_P and
2022 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
2023 * doc/tm.texi: Regenerated.
2025 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
2027 * config/microblaze/microblaze.c:
2028 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
2029 * config/microblaze/microblaze.h: Add -mxl-reorder to
2031 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
2032 instructions emitted if TARGET_REORDER.
2033 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
2034 or 0 for -m/-mno case, but initialises as 2 to detect default use case
2037 2013-03-01 Xinliang David Li <davidxl@google.com>
2039 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
2042 2013-03-01 Jakub Jelinek <jakub@redhat.com>
2045 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
2046 vector even when returning true. Fix up function comment formatting.
2049 * ira-build.c (ira_loop_nodes_count): New variable.
2050 (create_loop_tree_nodes): Initialize it.
2051 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
2054 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
2055 method on dr_chain and result_chain.
2056 * tree-vect-stmts.c (vectorizable_store): Only call
2057 result_chain.create if j == 0.
2060 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
2061 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
2062 before overwriting it.
2064 2013-03-01 Tobias Burnus <burnus@net-b.de>
2066 * doc/extended.texi (C Extensions): Change order in @menu
2068 (Other MIPS Built-in Functions): Move last MIPS entry before
2069 "picoChip Built-in Functions".
2070 (SH Built-in Functions): Move after RX Built-in Functions.
2071 * doc/gcc.texi (Introduction): Change order in @menu
2073 * doc/md.texi (Constraints): Ditto.
2074 * gty.texi (Type Information): Ditto.
2075 (User-provided marking routines for template types): Make
2077 * doc/invoke.texi (AArch64 Options): Move before
2078 "Adapteva Epiphany Options".
2080 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2081 Jakub Jelinek <jakub@redhat.com>
2084 * asan.c (gate_asan): Lookup no_sanitize_address instead of
2085 no_address_safety_analysis attribute.
2086 * doc/extend.texi (no_address_safety_attribute): Rename to
2087 no_sanitize_address attribute, mention no_address_safety_analysis
2088 attribute as deprecated alias.
2090 2013-02-28 Jakub Jelinek <jakub@redhat.com>
2093 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
2094 type to vec<vec<tree> > *.
2095 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
2096 to be vec<tree> instead of vec<tree> *, set vec_defs
2097 to vNULL and call vec_defs.create (number_of_vects), adjust other
2099 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
2100 vectorizable_condition): Adjust vect_get_slp_defs callers.
2102 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2104 * config/aarch64/aarch64.c
2105 (aarch64_float_const_representable): Remove unused variable.
2107 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2109 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
2111 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2113 * config/aarch64/aarch64-builtins.c
2114 (aarch64_init_simd_builtins): Make static.
2116 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2118 * config/aarch64/aarch64.c
2119 (aarch64_simd_make_constant): Make static.
2121 2013-02-28 Martin Jambor <mjambor@suse.cz>
2123 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
2124 with no initialization to the RHS of debug statements.
2126 2013-02-28 Martin Jambor <mjambor@suse.cz>
2128 PR tree-optimization/56294
2129 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
2131 (get_access_replacement): Do not call create_access_replacement.
2132 Assert a replacement exists.
2133 (get_repl_default_def_ssa_name): Create the replacement declaration
2136 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2138 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
2141 2013-02-28 Marek Polacek <polacek@redhat.com>
2143 PR rtl-optimization/56466
2144 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
2145 if we're changing a loop.
2146 (peel_loops_completely): Likewise.
2148 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
2151 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
2153 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2156 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
2157 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
2158 INTX_FTYPE_FX, FX_FTYPE_INTX.
2159 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
2161 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2163 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
2164 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
2165 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
2166 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
2167 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
2168 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
2169 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
2170 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
2171 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
2172 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
2173 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
2174 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
2175 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
2176 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
2177 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
2178 (avrxmega6): Increase max flash segments from 5 to 6.
2179 * config/avr/t-multilib: Regenerate.
2180 * config/avr/avr-tables.opt: Regenerate.
2181 * doc/avr-mmcu.texi: Regenerate.
2183 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2185 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
2186 (avr_device_to_arch): Rename to avr_device_to_ld.
2187 (avr_device_to_as): New prototype.
2188 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
2189 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
2190 * config/avr/driver-avr.c (avr_device_to_as): New.
2191 (avr_device_to_arch): Rename to avr_device_to_ld.
2193 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2196 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
2197 method on dr_chain and result_chain.
2200 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
2201 pointer_set_destroy on not_executed_last_iteration.
2204 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
2207 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
2208 FOR_EACH_DEFINED_FUNCTION when freeing state.
2211 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
2213 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
2217 * ipa-cp.c (decide_whether_version_node): Call vec_free on
2218 known_aggs[i].items and release known_aggs vector.
2221 * ipa-reference.c (propagate): Free node_info even for alias nodes.
2223 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2225 * config/microblaze/microblaze.c (microblaze_emit_compare):
2226 Use xor for EQ/NE comparisions.
2227 * config/microblaze/microblaze.md (cstoresf4): Add constraints
2228 (cbranchsf4): Adjust operator to comparison_operator.
2230 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2233 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
2235 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
2236 vec_safe_push, always update *slot.
2237 (redirect_edge_var_map_clear): Use vec_free.
2238 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
2239 (free_var_map_entry): Use vec_free.
2240 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
2241 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
2243 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
2246 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
2247 when the may_trap_p bit of the exprs being merged differs.
2248 Reorder tests for speculativeness in the logical and operator.
2250 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2252 * incpath.c (add_standard_paths): Use reconcat instead of concat
2253 where appropriate and avoid leaking memory.
2255 * opts.h: Include obstack.h.
2256 (opts_concat): New prototype.
2257 (opts_obstack): New declaration.
2258 * opts.c (opts_concat): New function.
2259 (opts_obstack): New variable.
2260 (init_options_struct): Call gcc_init_obstack on opts_obstack.
2261 (finish_options): Use opts_concat instead of concat
2262 and XOBNEWVEC instead of XNEWVEC.
2263 * opts-common.c (generate_canonical_option, decode_cmdline_option,
2264 generate_option): Likewise.
2265 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
2266 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
2269 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
2270 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
2272 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2275 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
2277 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2279 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
2280 (arm_block_move_unaligned_straight): Likewise.
2281 (arm_adjust_block_mem): Likewise.
2283 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2286 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
2287 temp, cond and label.
2288 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
2291 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
2292 * config/c6x/c6x.h (dbx_register_map): Update declaration.
2295 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
2296 of prologue/epilogue functions.
2299 * config/tilegx/tilegx.c (tilegx_expand_prologue):
2300 Remove unused variable cfa_offset.
2301 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
2304 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
2305 type promotion to unsigned.
2308 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
2309 for HOST_WIDE_INT of 32 bit / same size as int.
2310 (arm_block_move_unaligned_straight): Likewise.
2311 (arm_adjust_block_mem): Likewise.
2314 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
2317 2013-02-26 Marek Polacek <polacek@redhat.com>
2319 PR tree-optimization/56426
2320 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
2322 2013-02-26 Richard Biener <rguenther@suse.de>
2325 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
2326 unused variable loops.
2328 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2330 PR tree-optimization/56448
2331 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
2332 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
2333 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
2334 later operands of the references, or even first operand for
2335 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
2337 PR tree-optimization/56443
2338 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
2339 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
2340 to type_for_mode langhook.
2342 2013-02-25 Matt Turner <mattst88@gmail.com>
2344 * doc/invoke.texi: Document r4700.
2346 2013-02-25 Richard Biener <rguenther@suse.de>
2348 PR tree-optimization/56175
2349 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
2351 (simplify_bitwise_binary): ... here. Also guard the conversion
2352 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
2354 2013-02-25 Catherine Moore <clm@codesourcery.com>
2357 2013-02-24 Catherine Moore <clm@codesourcery.com>
2358 Maciej W. Rozycki <macro@codesourcery.com>
2359 Tom de Vries <tom@codesourcery.com>
2360 Nathan Sidwell <nathan@codesourcery.com>
2361 Iain Sandoe <iain@codesourcery.com>
2362 Nathan Froyd <froydnj@codesourcery.com>
2363 Chao-ying Fu <fu@mips.com>
2365 * doc/extend.texi: (micromips, nomicromips, nocompression):
2366 Document new function attributes.
2367 * doc/invoke.texi (minterlink-compressed, mmicromips,
2368 m14k, m14ke, m14kec): Document new options.
2369 (minterlink-mips16): Update documentation.
2370 * doc/md.texi (ZC, ZD): Document new constraints.
2371 * configure.ac (gcc_cv_as_micromips): Check if linker
2372 supports the .set micromips directive.
2373 * configure: Regenerate.
2374 * config.in: Regenerate.
2375 * config/mips/mips-tables.opt: Regenerate.
2376 * config/mips/micromips.md: New file.
2377 * constraints.md (ZC, AD): New constraints.
2378 * config/mips/predicates.md (movep_src_register): New predicate.
2379 (movep_src_operand): New predicate.
2380 (non_volatile_mem_operand): New predicate.
2381 * config/mips/mips.md (multimem): New type.
2382 (length): Differentiate between 17-bit and 18-bit branch offsets.
2383 (MOVEP1, MOVEP2): New mode iterator.
2384 (mov_<load>l): Use ZC constraint.
2385 (mov_<load>r): Likewise.
2386 (mov_<store>l): Likewise.
2387 (mov_<store>r): Likewise.
2388 (*branch_equality<mode>_inverted): Add microMIPS support.
2389 (*branch_equality<mode>): Likewise.
2390 (*jump_absolute): Likewise.
2391 (indirect_jump_<mode>): Likewise.
2392 (tablejump_<mode>): Likewise.
2393 (<optab>_internal): Likewise.
2394 (sibcall_internal): Likewise.
2395 (sibcall_value_internal): Likewise.
2396 (prefetch): Use constraint ZD.
2397 * config/mips/mips.opt (minterlink-compressed): New option.
2398 (minterlink-mips16): Now an alias for minterlink-compressed.
2399 (mmicromips): New option.
2400 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2401 (compare_and_swap_12): Likewise.
2402 (sync_add<mode>): Likewise.
2403 (sync_<optab>_12): Likewise.
2404 (sync_old_<optab>_12): Likewise.
2405 (sync_new_<optab>_12): Likewise.
2406 (sync_nand_12): Likewise.
2407 (sync_old_nand_12): Likewise.
2408 (sync_new_nand_12): Likewise.
2409 (sync_sub<mode>): Likewise.
2410 (sync_old_add<mode>): Likewise.
2411 (sync_old_sub<mode>): Likewise.
2412 (sync_new_add<mode>): Likewise.
2413 (sync_new_sub<mode>): Likewise.
2414 (sync_<optab><mode>): Likewise.
2415 (sync_old_<optab><mode>): Likewise.
2416 (sync_new_<optab><mode>): Likewise.
2417 (sync_nand<mode>): Likewise.
2418 (sync_old_nand<mode>): Likewise.
2419 (sync_new_nand<mode>): Likewise.
2420 (sync_lock_test_and_set<mode>): Likewise.
2421 (test_and_set_12): Likewise.
2422 (atomic_compare_and_swap<mode>): Likewise.
2423 (atomic_exchange<mode>_llsc): Likewise.
2424 (atomic_fetch_add<mode>_llsc): Likewise.
2425 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2426 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2427 (umips_save_restore_pattern_p): Likewise.
2428 (umips_load_store_pair_p): Likewise.
2429 (umips_output_load_store_pair): Likewise.
2430 (umips_movep_target_p): Likewise.
2431 (umips_12bit_offset_address_p): Likewise.
2432 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2433 (mips_base_mips16): Rename this...
2434 (mips_base_compression_flags): ...to this. Update all uses.
2435 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2436 (mips_mips16_decl_p): Delete.
2437 (mips_nomips16_decl_p): Delete.
2438 (mips_get_compress_on_flags): New function.
2439 (mips_get_compress_off_flags): New function.
2440 (mips_get_compress_mode): New function.
2441 (mips_get_compress_on_name): New function.
2442 (mips_get_compress_off_name): New function.
2443 (mips_insert_attributes): Support multiple compression types.
2444 (mips_merge_decl_attributes): Likewise.
2445 (umips_12bit_offset_address_p): New function.
2446 (mips_start_function_definition): Emit .set micromips directive.
2447 (mips_call_may_need_jalx_p): New function.
2448 (mips_function_ok_for_sibcall): Add microMIPS support.
2449 (mips_print_operand_punctuation): Support short delay slots and
2451 (umips_swm_mask, umips_swm_encoding): New.
2452 (umips_build_save_restore): New function.
2453 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2454 (was_mips16_p): Remove.
2455 (old_compression_mode): New.
2456 (mips_set_compression_mode): New function.
2457 (mips_set_current_function): Add microMIPS support.
2458 (mips_option_override): Likewise.
2459 (umips_save_restore_pattern_p): New function.
2460 (umips_output_save_restore): New function.
2461 (umips_load_store_pair_p_1): New function.
2462 (umips_load_store_pair_p): New function.
2463 (umips_output_load_store_pair_1): New function.
2464 (umips_output_load_store_pair): New function.
2465 (umips_movep_target_p) New function.
2466 (mips_prepare_pch_save): Add microMIPS support.
2467 * config/mips/mips.h (TARGET_COMPRESSION): New.
2468 (TARGET_CPU_CPP_BUILTINS): Update macro
2469 to use new compression flags and to support microMIPS.
2470 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2471 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2472 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2473 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2474 (ASM_SPEC): Support mmicromips and mno-micromips.
2475 (M16STORE_REG_P): New macro.
2476 (MIPS_CALL): Support TARGET_MICROMIPS.
2477 (MICROMIPS_J): New macro.
2478 (mips_base_mips16): Rename this...
2479 (mips_base_compression_flags): ...to this.
2480 (UMIPS_12BIT_OFFSET_P): New macro.
2481 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2482 (MULTILIB_DIRNAMES): Likewise.
2484 2013-02-25 Tom de Vries <tom@codesourcery.com>
2486 PR rtl-optimization/56131
2487 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
2488 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
2489 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
2491 2013-02-25 Tobias Burnus <burnus@net-b.de>
2493 * doc/invoke.texi (-fsanitize=): Move from optimization
2494 to debugging options.
2496 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2498 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
2500 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2501 Alexander Monakov <amonakov@ispras.ru>
2504 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
2505 flush pending lists also on non-jumps. Adjust comment.
2507 2013-02-24 Catherine Moore <clm@codesourcery.com>
2508 Maciej W. Rozycki <macro@codesourcery.com>
2509 Tom de Vries <tom@codesourcery.com>
2510 Nathan Sidwell <nathan@codesourcery.com>
2511 Iain Sandoe <iain@codesourcery.com>
2512 Nathan Froyd <froydnj@codesourcery.com>
2513 Chao-ying Fu <fu@mips.com>
2515 * doc/extend.texi: (micromips, nomicromips, nocompression):
2516 Document new function attributes.
2517 * doc/invoke.texi (minterlink-compressed, mmicromips,
2518 m14k, m14ke, m14kec): Document new options.
2519 (minterlink-mips16): Update documentation.
2520 * doc/md.texi (ZC, ZD): Document new constraints.
2521 * configure.ac (gcc_cv_as_micromips): Check if linker
2522 supports the .set micromips directive.
2523 * configure: Regenerate.
2524 * config.in: Regenerate.
2525 * config/mips/mips-tables.opt: Regenerate.
2526 * config/mips/micromips.md: New file.
2527 * constraints.md (ZC, AD): New constraints.
2528 * config/mips/predicates.md (movep_src_register): New predicate.
2529 (movep_src_operand): New predicate.
2530 (non_volatile_mem_operand): New predicate.
2531 * config/mips/mips.md (multimem): New type.
2532 (length): Differentiate between 17-bit and 18-bit branch offsets.
2533 (MOVEP1, MOVEP2): New mode iterator.
2534 (mov_<load>l): Use ZC constraint.
2535 (mov_<load>r): Likewise.
2536 (mov_<store>l): Likewise.
2537 (mov_<store>r): Likewise.
2538 (*branch_equality<mode>_inverted): Add microMIPS support.
2539 (*branch_equality<mode>): Likewise.
2540 (*jump_absolute): Likewise.
2541 (indirect_jump_<mode>): Likewise.
2542 (tablejump_<mode>): Likewise.
2543 (<optab>_internal): Likewise.
2544 (sibcall_internal): Likewise.
2545 (sibcall_value_internal): Likewise.
2546 (prefetch): Use constraint ZD.
2547 * config/mips/mips.opt (minterlink-compressed): New option.
2548 (minterlink-mips16): Now an alias for minterlink-compressed.
2549 (mmicromips): New option.
2550 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2551 (compare_and_swap_12): Likewise.
2552 (sync_add<mode>): Likewise.
2553 (sync_<optab>_12): Likewise.
2554 (sync_old_<optab>_12): Likewise.
2555 (sync_new_<optab>_12): Likewise.
2556 (sync_nand_12): Likewise.
2557 (sync_old_nand_12): Likewise.
2558 (sync_new_nand_12): Likewise.
2559 (sync_sub<mode>): Likewise.
2560 (sync_old_add<mode>): Likewise.
2561 (sync_old_sub<mode>): Likewise.
2562 (sync_new_add<mode>): Likewise.
2563 (sync_new_sub<mode>): Likewise.
2564 (sync_<optab><mode>): Likewise.
2565 (sync_old_<optab><mode>): Likewise.
2566 (sync_new_<optab><mode>): Likewise.
2567 (sync_nand<mode>): Likewise.
2568 (sync_old_nand<mode>): Likewise.
2569 (sync_new_nand<mode>): Likewise.
2570 (sync_lock_test_and_set<mode>): Likewise.
2571 (test_and_set_12): Likewise.
2572 (atomic_compare_and_swap<mode>): Likewise.
2573 (atomic_exchange<mode>_llsc): Likewise.
2574 (atomic_fetch_add<mode>_llsc): Likewise.
2575 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2576 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2577 (umips_save_restore_pattern_p): Likewise.
2578 (umips_load_store_pair_p): Likewise.
2579 (umips_output_load_store_pair): Likewise.
2580 (umips_movep_target_p): Likewise.
2581 (umips_12bit_offset_address_p): Likewise.
2582 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2583 (mips_base_mips16): Rename this...
2584 (mips_base_compression_flags): ...to this. Update all uses.
2585 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2586 (mips_mips16_decl_p): Delete.
2587 (mips_nomips16_decl_p): Delete.
2588 (mips_get_compress_on_flags): New function.
2589 (mips_get_compress_off_flags): New function.
2590 (mips_get_compress_mode): New function.
2591 (mips_get_compress_on_name): New function.
2592 (mips_get_compress_off_name): New function.
2593 (mips_insert_attributes): Support multiple compression types.
2594 (mips_merge_decl_attributes): Likewise.
2595 (umips_12bit_offset_address_p): New function.
2596 (mips_start_function_definition): Emit .set micromips directive.
2597 (mips_call_may_need_jalx_p): New function.
2598 (mips_function_ok_for_sibcall): Add microMIPS support.
2599 (mips_print_operand_punctuation): Support short delay slots and
2601 (umips_swm_mask, umips_swm_encoding): New.
2602 (umips_build_save_restore): New function.
2603 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2604 (was_mips16_p): Remove.
2605 (old_compression_mode): New.
2606 (mips_set_compression_mode): New function.
2607 (mips_set_current_function): Add microMIPS support.
2608 (mips_option_override): Likewise.
2609 (umips_save_restore_pattern_p): New function.
2610 (umips_output_save_restore): New function.
2611 (umips_load_store_pair_p_1): New function.
2612 (umips_load_store_pair_p): New function.
2613 (umips_output_load_store_pair_1): New function.
2614 (umips_output_load_store_pair): New function.
2615 (umips_movep_target_p) New function.
2616 (mips_prepare_pch_save): Add microMIPS support.
2617 * config/mips/mips.h (TARGET_COMPRESSION): New.
2618 (TARGET_CPU_CPP_BUILTINS): Update macro
2619 to use new compression flags and to support microMIPS.
2620 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2621 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2622 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2623 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2624 (ASM_SPEC): Support mmicromips and mno-micromips.
2625 (M16STORE_REG_P): New macro.
2626 (MIPS_CALL): Support TARGET_MICROMIPS.
2627 (MICROMIPS_J): New macro.
2628 (mips_base_mips16): Rename this...
2629 (mips_base_compression_flags): ...to this.
2630 (UMIPS_12BIT_OFFSET_P): New macro.
2631 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2632 (MULTILIB_DIRNAMES): Likewise.
2634 2013-02-24 Jakub Jelinek <jakub@redhat.com>
2637 * target-globals.c (save_target_globals): For init_reg_sets and
2638 target_reinit remporarily set this_fn_optabs to this_target_optabs.
2640 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
2642 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
2643 * config/aarch64/t-aarch64
2644 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
2646 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
2649 * lra-constraints.c (process_alt_operands): Reload operand
2650 conflicting with earlier clobber only if no more other conflicting
2653 2013-02-22 Jakub Jelinek <jakub@redhat.com>
2656 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
2657 if not linking a shared library.
2659 2013-02-22 Seth LaForge <sethml@google.com>
2661 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
2663 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
2665 * config/arm/arm.md (split for extendsidi): Update condition.
2666 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
2667 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
2668 (qhs_zextenddi_cstr): Likewise.
2670 2013-02-21 Jakub Jelinek <jakub@redhat.com>
2673 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
2674 avoid signed wrapping.
2675 (expand_mult): Handle properly multiplication by
2676 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
2677 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
2678 in the compiler if coeff is HOST_WIDE_INT_MIN.
2679 (expand_divmod): Don't make ext_op1 static, change it's type to
2680 uhwi. Avoid undefined behavior in -INTVAL (op1).
2682 PR rtl-optimization/50339
2683 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
2685 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
2686 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
2687 into splitting_ashiftrt field.
2688 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
2690 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
2693 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
2696 * trans-mem.c (execute_tm_mark): Do not expand transactions that
2697 are sure to go irrevocable.
2699 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
2701 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
2702 scalars are valid operands.
2704 2013-02-21 Martin Jambor <mjambor@suse.cz>
2706 PR tree-optimization/56310
2707 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
2708 only matching indices and non-negative final offsets.
2709 (intersect_aggregates_with_edge): Pass src_idx to
2710 agg_replacements_to_vector. Pass src_idx insstead of index to
2711 intersect_with_agg_replacements.
2713 2013-02-21 Martin Jambor <mjambor@suse.cz>
2715 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
2716 instead of hard-wired defaults.
2718 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
2720 * doc/invoke.texi (MIPS Options): Update documentation of the
2721 floating-point multiply-accumulate instruction restrictions.
2723 2013-02-21 Kostya Serebryany <kcc@google.com>
2725 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
2726 asan_shadow_offset on x86_64 linux.
2728 2013-02-21 Richard Biener <rguenther@suse.de>
2730 PR tree-optimization/56415
2732 2013-02-11 Richard Biener <rguenther@suse.de>
2734 PR tree-optimization/56273
2735 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2738 2013-02-21 Jakub Jelinek <jakub@redhat.com>
2741 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
2745 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
2746 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
2748 2013-02-20 Jan Hubicka <jh@suse.cz>
2750 PR tree-optimization/56265
2751 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
2752 when target is referenced for first time.
2754 2013-02-20 Richard Biener <rguenther@suse.de>
2756 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
2757 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2758 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2759 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
2760 not return anything.
2761 (rename_ssa_copies): Do not remove unused locals.
2762 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
2763 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
2764 * passes.c (execute_function_todo): Do not schedule unused locals
2765 removal if cleanup_tree_cfg did something.
2766 * tree-ssa-live.c (remove_unused_locals): Dump statistics
2767 about the number of removed locals.
2769 2013-02-20 Richard Biener <rguenther@suse.de>
2771 PR tree-optimization/56398
2772 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
2774 2013-02-20 Martin Jambor <mjambor@suse.cz>
2776 PR tree-optimization/55334
2777 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
2778 restricted pointers to arrays.
2780 2013-02-20 Richard Biener <rguenther@suse.de>
2781 Jakub Jelinek <jakub@redhat.com>
2783 PR tree-optimization/56396
2784 * tree-ssa-ccp.c (n_const_val): New static variable.
2785 (get_value): Return NULL for SSA names we don't have a lattice
2787 (ccp_initialize): Initialize n_const_val.
2788 * tree-ssa-copy.c (n_copy_of): New static variable.
2789 (init_copy_prop): Initialize n_copy_of.
2790 (get_value): Return NULL_TREE for SSA names we don't have a
2793 2013-02-20 Martin Jambor <mjambor@suse.cz>
2795 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
2797 2013-02-20 Richard Biener <rguenther@suse.de>
2799 * genpreds.c (write_lookup_constraint): Do not compare first
2800 letter of the constraint again.
2802 2013-02-20 Richard Biener <rguenther@suse.de>
2804 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
2806 (get_use_iv_cost): Terminate hashtable walk when coming across
2809 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
2811 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
2812 reassociation for avx2 targets.
2814 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2816 * config/microblaze/microblaze.c: microblaze_has_clz = 0
2817 Add version check for v8.10.a to enable microblaze_has_clz
2818 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
2819 version and TARGET_PATTERN_COMPARE check
2820 * config/microblaze/microblaze.md: New clzsi2 instruction
2822 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2824 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
2825 function before branching.
2827 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
2829 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
2831 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
2833 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
2836 * sel-sched.c: Include ira.h.
2837 (implicit_clobber_conflict_p): New function.
2838 (moveup_expr): Use it.
2839 * Makefile.in (sel-sched.o): Depend on ira.h.
2841 2013-02-19 Richard Biener <rguenther@suse.de>
2843 PR tree-optimization/56384
2844 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
2845 (vn_hash_type): Split out from ...
2846 (vn_hash_constant_with_type): ... here.
2847 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
2848 (vn_phi_eq): Compare types from vn_phi_s structure.
2849 (vn_phi_lookup): Populate vn_phi_s type.
2850 (vn_phi_insert): Likewise.
2852 2013-02-19 Jakub Jelinek <jakub@redhat.com>
2854 PR tree-optimization/56350
2855 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
2856 if haven't found reduction or nested cycle operand, rather than
2857 asserting we must find it.
2859 PR tree-optimization/56381
2860 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
2863 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
2864 Jakub Jelinek <jakub@redhat.com>
2867 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
2868 (swap_optab_enable): Same.
2869 (init_all_optabs): Use argument instead of global.
2870 * tree.h (struct tree_optimization_option): New field target_optabs.
2871 * expr.h (init_all_optabs): Add argument to prototype.
2872 (TREE_OPTIMIZATION_OPTABS): New.
2873 (save_optabs_if_changed): Protoize.
2874 * optabs.h: Declare this_fn_optabs.
2875 * optabs.c (save_optabs_if_changed): New.
2876 Declare this_fn_optabs.
2877 (init_optabs): Add argument to init_all_optabs() call.
2878 * function.c (invoke_set_current_function_hook): Handle per
2880 * function.h (struct function): New field optabs.
2881 * config/mips/mips.c (mips_set_mips16_mode): Handle when
2882 optimization_current_node has changed.
2883 * target-globals.h (save_target_globals_default_opts): Protoize.
2884 * target-globals.c (save_target_globals_default_opts): New.
2886 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2889 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
2890 registers %fr12 and %fr12R as call used.
2893 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
2894 and HImode, require all displacements to be an integer multiple of
2896 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
2897 only allow QImode and HImode when reload is in progress and strict is
2898 true. Likewise for symbolic addresses. Use base14_operand to check
2899 displacements in REG+BASE addresses.
2901 2013-02-18 Richard Biener <rguenther@suse.de>
2903 PR tree-optimization/56366
2904 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2905 handle sign-conversion of outer-loop initial induction value.
2907 2013-02-18 Richard Biener <rguenther@suse.de>
2910 * cfghooks.c (merge_blocks): If we merge a latch into another
2911 block adjust references to it.
2912 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
2913 (verify_loop_structure): Verify that a recorded latch is in fact
2916 2013-02-18 Richard Biener <rguenther@suse.de>
2918 PR tree-optimization/56321
2919 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
2920 order SSA name release and virtual operand unlinking.
2922 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2924 * config/microblaze/microblaze.md (save_stack_block): Define.
2925 (restore_stack_block): Likewise.
2927 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2929 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
2930 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
2931 * config/microblaze/microblaze.c (microblaze_option_override):
2932 Bail out early for PIC modes when target does not support PIC.
2934 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2936 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
2937 Replace with a microblaze version.
2938 (microblaze_trampoline_init): Adapt for microblaze.
2939 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
2942 2013-02-16 Jakub Jelinek <jakub@redhat.com>
2943 Dodji Seketeli <dodji@redhat.com>
2946 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
2947 (instrument_mem_region_access): Do not forget to always put
2948 instrumentation of the of 'base' and 'base + len' in a "if (len !=
2949 0) statement, even for cases where either 'base' or 'base + len'
2950 are not instrumented -- because they have been previously
2951 instrumented. Simplify the logic by putting all the statements
2952 instrument 'base + len' inside a sequence, and then insert that
2953 sequence right before the current insertion point. Then, to
2954 instrument 'base + len', just get an iterator on that statement.
2955 And do not forget to update the pointer to iterator the function
2956 received as argument.
2958 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
2960 PR rtl-optimization/56348
2961 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
2963 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
2965 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
2966 (clean_graph_dump_file): Pass base to start_graph_dump.
2968 2013-02-14 Richard Henderson <rth@redhat.com>
2971 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
2973 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
2975 * collect2-aix.h: Define F_LOADONLY.
2977 2013-02-14 Richard Biener <rguenther@suse.de>
2980 * varasm.c (output_constant_def_1): Get the decl representing
2981 the constant as argument.
2982 (output_constant_def): Wrap output_constant_def_1.
2983 (make_decl_rtl): Use output_constant_def_1 with the decl
2984 representing the constant.
2985 (build_constant_desc): Optionally re-use a decl already
2986 representing the constant.
2987 (tree_output_constant_def): Adjust.
2989 2013-02-14 Dodji Seketeli <dodji@redhat.com>
2992 * asan.c (instrument_builtin_call): Really put the length of the
2993 second source argument into src1_len.
2995 2013-02-13 Jakub Jelinek <jakub@redhat.com>
2997 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
2998 argument. If it is false, don't create edge from then_bb to
3000 (insert_if_then_before_iter): Pass true to it.
3001 (build_check_stmt): Pass false to it.
3002 (transform_statements): Flush hash table only on extended basic
3003 block boundaries, rather than at the beginning of every bb.
3004 Don't flush hash table on nonfreeing_call_p calls.
3005 * tree-flow.h (nonfreeing_call_p): New prototype.
3006 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
3008 2013-02-13 David S. Miller <davem@davemloft.net>
3010 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
3012 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
3015 * ira.c (max_regno_before_ira): Move from ...
3017 (fix_reg_equiv_init): Use max_regno_before_ira instead of
3020 2013-02-13 Jakub Jelinek <jakub@redhat.com>
3022 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
3024 2013-02-13 Richard Biener <rguenther@suse.de>
3027 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
3028 globals in MEM_REFs.
3030 2013-02-13 Richard Biener <rguenther@suse.de>
3032 * loop-init.c (loop_optimizer_init): Clear loop state when
3033 re-initializing preserved loops.
3034 * loop-unswitch.c (unswitch_single_loop): Return whether
3035 we unswitched the loop. Do not verify loop state here.
3036 (unswitch_loops): When we unswitched a loop discover new loops.
3038 2013-02-13 Kostya Serebryany <kcc@google.com>
3040 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
3042 * sanitizer.def: Rename __asan_init to __asan_init_v1.
3044 2013-02-12 Dodji Seketeli <dodji@redhat.com>
3046 Avoid instrumenting duplicated memory access in the same basic block
3047 * Makefile.in (asan.o): Add new dependency on hash-table.h
3048 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
3049 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
3050 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
3051 (free_mem_ref_resources, has_mem_ref_been_instrumented)
3052 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
3053 (get_mem_ref_of_assignment): New functions.
3054 (get_mem_refs_of_builtin_call): Extract from
3055 instrument_builtin_call and tweak a little bit to make it fit with
3057 (instrument_builtin_call): Use the new
3058 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
3059 of is_gimple_builtin_call.
3060 (instrument_derefs, instrument_mem_region_access): Insert the
3061 instrumented memory reference into the hash table.
3062 (maybe_instrument_assignment): Renamed instrument_assignment into
3063 this, and change it to advance the iterator when instrumentation
3064 actually happened and return true in that case. This makes it
3065 homogeneous with maybe_instrument_assignment, and thus give a
3066 chance to callers to be more 'regular'.
3067 (transform_statements): Clear the memory reference hash table
3068 whenever we enter a new BB, when we cross a function call, or when
3069 we are done transforming statements. Use
3070 maybe_instrument_assignment instead of instrumentation. No more
3071 need to special case maybe_instrument_assignment and advance the
3072 iterator after calling it; it's now handled just like
3073 maybe_instrument_call. Update comment.
3075 2013-02-13 Richard Biener <rguenther@suse.de>
3077 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3078 Fix loop discovery code.
3080 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
3083 * lra-constraints.c (process_alt_operands): Match early clobber
3084 operand with itself. Check conflicts with earlyclobber only if
3085 the operand is not reloaded. Prefer to reload conflicting operand
3086 if earlyclobber and matching operands are the same.
3088 2013-02-12 Richard Biener <rguenther@suse.de>
3091 * lto-streamer-out.c (write_symbol): Do not output symbols
3092 for hard register variables.
3094 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
3097 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
3098 (umulsidi3_insn, mulsidi3_insn): New insns.
3100 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
3102 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
3103 (struct tune_params): Add vec_costs field.
3104 * config/arm/arm.c (arm_builtin_vectorization_cost)
3105 (arm_add_stmt_cost): New functions.
3106 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
3107 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
3108 (arm_default_vec_cost): New struct of type cpu_vec_costs.
3109 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
3110 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
3111 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
3112 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
3114 2013-02-12 Richard Biener <rguenther@suse.de>
3117 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
3118 decls again if possible.
3120 2013-02-12 Richard Biener <rguenther@suse.de>
3123 * tree-ssa.c (verify_ssa_name): Fix check, move
3124 SSA_NAME_IN_FREE_LIST check up.
3126 2013-02-12 Jakub Jelinek <jakub@redhat.com>
3127 Steven Bosscher <steven@gcc.gnu.org>
3129 PR rtl-optimization/56151
3130 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
3131 equal to op0 or op1, and last_insn pattern is CODE operation
3132 with MEM dest and one of the operands matches that MEM.
3134 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
3136 * doc/extend.texi: Document Function Multiversioning and "default"
3137 parameter string to target attribute.
3138 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
3139 target attribute parameter is "default".
3140 (ix86_compare_version_priority): Remove checks for target attribute.
3141 (ix86_mangle_function_version_assembler_name): Change error to sorry.
3142 Remove check for target attribute equal to NULL. Add assert.
3143 (ix86_generate_version_dispatcher_body): Change error to sorry.
3145 2013-02-11 Iain Sandoe <iain@codesourcery.com>
3146 Jack Howarth <howarth@bromo.med.uc.edu>
3147 Patrick Marlier <patrick.marlier@gmail.com>
3150 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
3151 define ENDFILE_SPEC as TM_DESTRUCTOR.
3152 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
3154 2013-02-11 Alexander Potapenko <glider@google.com>
3155 Jack Howarth <howarth@bromo.med.uc.edu>
3156 Jakub Jelinek <jakub@redhat.com>
3159 * config/darwin.c (cdtor_record): Rename ctor_record.
3160 (sort_cdtor_records): Rename sort_ctor_records.
3161 (finalize_dtors): New routine to sort destructors by
3162 priority before use in assemble_integer.
3163 (machopic_asm_out_destructor): Use finalize_dtors if needed.
3165 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
3167 PR rtl-optimization/56275
3168 * simplify-rtx.c (avoid_constant_pool_reference): Check that
3169 offset is non-negative and less than cmode size before
3170 calling simplify_subreg.
3172 2013-02-11 Richard Biener <rguenther@suse.de>
3174 PR tree-optimization/56264
3175 * cfgloop.h (fix_loop_structure): Adjust prototype.
3176 * loop-init.c (fix_loop_structure): Return the number of
3177 newly discovered loops.
3178 * tree-cfgcleanup.c (repair_loop_structures): When new loops
3179 are discovered, do a full loop-closed SSA rewrite.
3181 2013-02-11 Richard Biener <rguenther@suse.de>
3183 PR tree-optimization/56273
3184 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3186 (check_array_ref): Fix missing newline in dumps.
3187 (search_for_addr_array): Likewise.
3189 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
3191 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
3193 2013-02-09 Jakub Jelinek <jakub@redhat.com>
3196 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
3198 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
3200 PR rtl-optimization/56246
3201 * lra-constraints.c (simplify_operand_subreg): Try to reuse
3203 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
3204 constraints are satisfied.
3206 2013-02-08 Jeff Law <law@redhat.com>
3209 * emit-rtl.c (reg_is_parm_p): New function.
3210 * regs.h (reg_is_parm_p): New prototype.
3211 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
3212 callee-clobbered registers.
3214 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3217 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
3218 If there is no implicit builtin declaration, just return NULL.
3220 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3222 * config/i386/sse.md (FMAMODEM): New mode iterator.
3223 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
3224 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
3226 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3228 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
3229 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
3230 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
3232 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3234 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
3235 (microblaze*-*-elf): Likewise.
3236 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
3238 * config/microblaze/microblaze-c.c: Add builtin defines for
3239 _LITTLE_ENDIAN and _BIG_ENDIAN.
3240 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
3241 add to TARGET_DEFAULT flags.
3242 Expand ASM_SPEC and LINK_SPEC.
3243 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3244 * config/microblaze/microblaze.md: Update extendsidi2 and
3245 movdi_internal instructions to use low-order / high-order reg
3247 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
3248 options and inversemask / mask of LITTLE_ENDIAN.
3249 * config/microblaze/t-microblaze: Expand multilib options to
3250 include mlittle-endian (le) and update exceptions patterns.
3252 2013-02-08 Jakub Jelinek <jakub@redhat.com>
3254 PR rtl-optimization/56195
3255 * lra-constraints.c (get_reload_reg): Don't reuse regs
3256 if they have smaller mode than requested, if they have
3257 wider mode than requested, try to return a SUBREG.
3259 PR tree-optimization/56250
3260 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
3261 if type is unsigned and code isn't MULT_EXPR.
3263 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3265 PR tree-optimization/56064
3266 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
3267 bits according to mode.
3268 * fixed-value.h (fixed_from_double_int)
3269 (const_fixed_from_double_int): Adjust comments.
3271 2013-02-08 Richard Biener <rguenther@suse.de>
3274 * lto-streamer.h (struct data_in): Remove current_file, current_line
3275 and current_col members.
3276 * lto-streamer-out.c (lto_output_location): Stream changed bits
3277 en-block for efficiency.
3278 * lto-streamer-in.c (clear_line_info): Remove.
3279 (lto_input_location): Cache current file, line and column
3280 globally via local statics. Read changed bits en-block.
3281 (input_function): Do not call clear_line_info.
3282 (lto_read_body): Likewise.
3283 (lto_input_toplevel_asms): Likewise.
3285 2013-02-08 Michael Matz <matz@suse.de>
3287 PR tree-optimization/52448
3288 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
3289 (nt_call_phase): New static.
3290 (add_or_mark_expr): Only mark accesses with newer phase than any
3292 (nonfreeing_call_p): New.
3293 (nt_init_block): Update nt_call_phase, mark blocks as visited.
3294 (nt_fini_block): Keep blocks marked as visited.
3295 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
3297 2013-02-08 Richard Biener <rguenther@suse.de>
3299 * ira.c (ira): Free broken dominator information.
3301 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3303 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
3305 2013-02-08 Marek Polacek <polacek@redhat.com>
3307 * cfgloop.c (verify_loop_structure): Add more checking of headers.
3309 2013-02-08 Richard Biener <rguenther@suse.de>
3312 * cfgloop.h (flow_loops_find): Adjust.
3313 (bb_loop_header_p): Declare.
3314 * cfgloop.c (bb_loop_header_p): New function split out from ...
3315 (flow_loops_find): ... here. Adjust function signature,
3316 support incremental loop structure update.
3317 (verify_loop_structure): Cleanup. Verify a loop is a loop.
3318 * cfgloopmanip.c (fix_loop_structure): Move ...
3319 * loop-init.c (fix_loop_structure): ... here.
3320 (apply_loop_flags): Split out from ...
3321 (loop_optimizer_init): ... here.
3322 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
3323 in incremental mode, only remove dead loops here.
3325 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3328 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
3329 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
3330 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
3331 (*round<mode>3.libgcc): New insns for fixed-modes.
3332 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
3333 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
3334 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
3335 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
3336 implementations. Define to __builtin_avr_absFX,
3337 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
3338 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
3339 __builtin_avr_countlsFX, respectively.
3340 * config/avr/avr-c.c (target.h): Include it.
3341 (enum avr_builtin_id): New enum.
3342 (avr_resolve_overloaded_builtin): New static function.
3343 (avr_register_target_pragmas): Use it to set
3344 targetm.resolve_overloaded_builtin.
3345 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
3346 tree nodes used by DEF_BUILTIN.
3347 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
3348 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
3349 <AVR_BUILTIN_xxBITS>: Same.
3351 2013-02-08 Richard Biener <rguenther@suse.de>
3353 * cfgloop.c (verify_loop_structure): Properly handle
3354 a loop exiting to another loop header.
3355 * ira-int.h (ira_loops): Remove.
3356 * ira.c (ira_loops): Remove.
3357 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
3358 (do_reload): Use loop_optimizer_finalize.
3359 * ira-build.c (create_loop_tree_nodes): Use get_loops and
3360 number_of_loops to access the loop tree.
3361 (more_one_region_p): Likewise.
3362 (finish_loop_tree_nodes): Likewise.
3363 (rebuild_regno_allocno_maps): Likewise.
3364 (mark_loops_for_removal): Likewise.
3365 (mark_all_loops_for_removal): Likewise.
3366 (remove_unnecessary_regions): Likewise.
3367 (ira_build): Likewise.
3368 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3370 2013-02-08 Richard Biener <rguenther@suse.de>
3372 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
3373 * ipa-pure-const.c (analyze_function): Avoid calling
3374 mark_irreducible_loops twice.
3375 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
3377 2013-02-07 David S. Miller <davem@davemloft.net>
3379 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
3381 * var-tracking.c (vt_add_function_parameter): Test the presence of
3382 HAVE_window_save properly and do not remap argument registers when
3383 we have a leaf function.
3385 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
3388 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
3390 * config/i386/i386.c (ix86_print_operand): Ditto.
3392 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3394 * lra-constraints.c (process_alt_operands): Fix recently added comment.
3396 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3398 PR rtl-optimization/56225
3399 * lra-constraints.c (process_alt_operands): Check that reload hard
3400 reg can hold value for strict_low_part.
3402 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3405 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
3406 dwarf2out_end_function.
3407 (in_first_function_p, maybe_at_text_label_p,
3408 first_loclabel_num_not_at_text_label): New variables.
3409 (dwarf2out_var_location): In the first function find out
3410 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
3411 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
3414 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
3416 PR rtl-optimization/56178
3417 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
3418 SUBREG of a register. Tidy up related block of code.
3419 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
3420 note if the source is a register or a SUBREG of a register.
3422 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3425 * config/rs6000/rs6000.md (ptrm): New mode attr.
3426 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
3427 call_value_indirect_aix<pttrsize>,
3428 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
3431 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3433 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
3434 if -bnortl. Convert to strcmp and strncmp.
3436 2013-02-07 Alan Modra <amodra@gmail.com>
3439 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
3440 addresses won't wrap when offsetting.
3441 (rs6000_secondary_reload): Provide secondary reloads needed for
3442 wrapping LO_SUM addresses.
3444 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
3446 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
3447 MACH, just __MACH__.
3449 2013-02-06 Richard Biener <rguenther@suse.de>
3451 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
3452 instead of calling fix_loop_structure.
3454 2013-02-06 Jakub Jelinek <jakub@redhat.com>
3457 * omp-low.c (use_pointer_for_field): Return false if
3458 lower_send_shared_vars doesn't generate any copy-out code.
3460 2013-02-06 Tom de Vries <tom@codesourcery.com>
3462 PR rtl-optimization/56131
3463 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
3464 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
3465 of the label is NULL. Add comment.
3467 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3469 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
3472 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
3473 (STATIC_LIBTSAN_LIBS): Likewise.
3474 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
3475 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
3476 is defined, don't add anything else beyond that.
3477 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
3478 (LINK_COMMAND_SPEC): Use them.
3480 PR tree-optimization/56205
3481 * tree-stdarg.c (check_all_va_list_escapes): Return true if
3482 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
3483 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
3485 2013-02-05 Richard Biener <rguenther@suse.de>
3487 PR tree-optimization/53342
3488 PR tree-optimization/53185
3489 * tree-vectorizer.h (vect_check_strided_load): Remove.
3490 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
3491 not disallow peeling for vectorized strided loads.
3492 (vect_check_strided_load): Make static and simplify.
3493 (vect_analyze_data_refs): Adjust.
3494 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
3495 correctly when vectorizing strided loads.
3497 2013-02-05 Richard Biener <rguenther@suse.de>
3499 * doc/install.texi: Refer to ISL, not PPL.
3501 2013-02-05 Jan Hubicka <jh@suse.cz>
3503 PR tree-optimization/55789
3504 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
3506 2013-02-05 Jan Hubicka <jh@suse.cz>
3508 PR tree-optimization/55789
3509 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
3510 the dead call anyway.
3512 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
3515 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
3517 2013-02-04 Alexander Potapenko <glider@google.com>
3518 Jack Howarth <howarth@bromo.med.uc.edu>
3519 Jakub Jelinek <jakub@redhat.com>
3522 * config/darwin.c (sort_ctor_records): Stabilized qsort
3523 on constructor priority by using original position.
3524 (finalize_ctors): New routine to sort constructors by
3525 priority before use in assemble_integer.
3526 (machopic_asm_out_constructor): Use finalize_ctors if needed.
3528 2013-02-04 Jakub Jelinek <jakub@redhat.com>
3531 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
3532 about visibility on artificial decls.
3533 * config/sol2.c (solaris_assemble_visibility): Likewise.
3535 2013-02-04 Kai Tietz <ktietz@redhat.com>
3538 * config/i386/i386.c (function_value_ms_64): Add additional valtype
3539 argument and improve checking of return-argument types for 16-byte
3541 (ix86_function_value_1): Add additional valtype argument on call
3542 of function_value_64.
3543 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
3544 handling infunction_value_64 function.
3546 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
3548 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
3550 2013-02-04 Richard Biener <rguenther@suse.de>
3552 PR tree-optimization/56188
3553 * tree-ssa-structalias.c (label_visit): Consider case with
3554 initially non-empty points-to set.
3555 (perform_var_substitution): Dump node mapping and clean up.
3557 2013-02-04 Richard Guenther <rguenther@suse.de>
3560 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
3561 node prevail as last resort.
3562 (lto_symtab_merge_decls): Remove guard on LTRANS here.
3563 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
3565 2013-02-04 Richard Biener <rguenther@suse.de>
3567 PR tree-optimization/56113
3568 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
3570 (equiv_class_lookup_or_add): ... this.
3571 (label_visit): Adjust and fix error in previous patch.
3572 (perform_var_substitution): Adjust.
3574 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
3576 * config/sh/divtab.c: Fix formatting and comments throughout the file.
3577 * config/sh/sh4-300.md: Likewise.
3578 * config/sh/sh4a.md: Likewise.
3579 * config/sh/constraints.md: Likewise.
3580 * config/sh/sh.md: Likewise.
3581 * config/sh/netbsd-elf.h: Likewise.
3582 * config/sh/predicates.md: Likewise.
3583 * config/sh/sh-protos.h: Likewise.
3584 * config/sh/ushmedia.h: Likewise.
3585 * config/sh/linux.h: Likewise.
3586 * config/sh/sh.c: Likewise.
3587 * config/sh/superh.h: Likewise.
3588 * config/sh/elf.h: Likewise.
3589 * config/sh/sh4.md: Likewise.
3590 * config/sh/sh.h: Likewise.
3592 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3594 * config/pa/constraints.md: Adjust unused letters. Change "T"
3595 constraint to match_test floating_point_store_memory_operand().
3596 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
3597 (base14_operand): New.
3598 (floating_point_store_memory_operand): New.
3599 (integer_store_memory_operand): Revise to use base14_operand and
3600 reg_plus_base_memory_operand.
3601 (move_dest_operand): Allow symbolic_memory_operands.
3602 (symbolic_memory_operand): Check for LO_SOM.
3603 (symbolic_operand): Change default case to break.
3604 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
3605 CONST_DOUBLE values to be reloaded by putting them into memory when
3606 the destination is a floating point register.
3607 (movdf): Remove code to handle CONST_DOUBLE.
3609 (reload_indf_r1): New.
3610 (reload_insf_r1): New.
3611 Consistently use "Q" and "T" constraints with integer and floating
3612 point move instructions, respectively.
3613 (movdi): Remove FAIL.
3614 Change predicate for source operand unamed DImode move from
3615 general_operand to move_src_operand.
3616 (umulsidi3): Change predicate for destination operand to
3618 Likewise for similar unamed patterns.
3619 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
3620 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
3621 (hppa_legitimize_address): Simplify mask calculation.
3622 (pa_emit_move_sequence): Revised handling of secondary reloads from
3623 REG+D addresses for floating point loads and stores. Directly handle
3624 loading CONST0_RTX (mode) to a floating point register.
3625 (pa_secondary_reload): Handle reloading DF and SFmode constant values
3626 to floating point registers. Don't restrict secondary reloads to
3627 floating point registers to integer modes. Revise some comments and
3629 (TARGET_LEGITIMATE_ADDRESS_P): Define.
3630 (pa_legitimate_address_p): New.
3631 (pa_legitimize_reload_address): New.
3632 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
3633 (STRICT_REG_OK_FOR_BASE_P): New.
3634 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
3635 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
3637 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
3638 Andrew Dixie <andrewd@gentrack.com>
3640 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
3643 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
3645 * expmed.c (extract_bit_field_1): Pass the full width of the
3646 structure to get_best_reg_extraction_insn.
3648 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
3651 * configure.ac (use_cxa_atexit): Add AIX.
3652 * configure: Regenerate.
3654 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
3656 2013-02-01 Jakub Jelinek <jakub@redhat.com>
3659 * final.c (need_profile_function): New variable.
3660 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
3661 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
3662 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
3663 notes, targetm.asm_out.function_prologue doesn't emit anything,
3664 HAVE_prologue and profiler should be emitted before prologue,
3665 set need_profile_function instead of emitting it.
3666 (final_scan_insn): If need_profile_function, emit
3667 profile_function on the first NOTE_INSN_BASIC_BLOCK or
3668 NOTE_INSN_FUNCTION_BEG note.
3670 2013-02-01 Richard Henderson <rth@redhat.com>
3672 * config/rs6000/rs6000.md (smulditi3): New.
3675 * config/alpha/alpha.md (umulditi3): New.
3677 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
3679 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
3680 (ASM_OUTPUT_ALIGNED_LOCAL): New.
3682 2013-02-01 Richard Biener <rguenther@suse.de>
3684 PR tree-optimization/56113
3685 * tree-ssa-structalias.c (label_visit): Reduce work for
3686 single-predecessor nodes.
3688 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
3690 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
3691 range isn't testing for zero.
3693 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
3696 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
3698 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
3699 Nick Clifton <nickc@redhat.com>
3701 * config/v850/constraints.md (Q): Define as a memory constraint.
3702 * config/v850/predicates.md (label_ref_operand): New predicate.
3703 (e3v5_shift_operand): New predicate.
3704 (ior_operator): New predicate.
3705 * config/v850/t-v850: Add e3v5 multilib.
3706 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
3707 (v850_gen_movdi): Prototype.
3708 * config/v850/v850.c: Add support for e3v5 architecture.
3709 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
3711 (construct_save_jarl): Add e3v5 long JARL support.
3712 (v850_adjust_insn_length): New function. Adjust length of call
3713 insns when using e3v5 instructions.
3714 (v850_gen_movdi): New function: Generate instructions to move a
3716 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
3717 (CPP_SPEC): Define __v850e3v5__ as appropriate.
3718 (TARGET_USE_FPU): Enable for e3v5.
3719 (CONST_OK_FOR_W): New macro.
3720 (ADJUST_INSN_LENGTH): Define.
3721 * config/v850/v850.md (UNSPEC_LOOP): Define.
3722 (attr cpu): Add v850e3v5.
3723 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
3724 (movdi): New pattern.
3725 (movdi_internal): New pattern.
3726 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
3727 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
3728 (cstoresf4): Likewise.
3729 (cstoredf4): Likewise.
3730 (insv): New pattern.
3731 (rotlso3_a): New pattern.
3732 (rotlsi3_b): New pattern
3733 (rotlsi3_v850e3v5): New pattern.
3734 (doloop_begin): New pattern.
3735 (fix_loop_counter): New pattern.
3736 (doloop_end): New pattern.
3737 (branch_normal): Add e3v5 long branch support.
3738 (branch_invert): Likewise.
3739 (branch_z_normal): Likewise.
3740 (branch_z_invert): Likewise.
3741 (branch_nz_normal): Likewise.
3742 (branch_nz_invert): Likewise.
3743 (call_internal_short): Add e3v5 register-indirect JARL support.
3744 (call_internal_long): Likewise.
3745 (call_value_internal_short): Likewise.
3746 (call_value_internal_long): Likewise.
3747 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
3748 (mloop): New option.
3749 * config.gcc: Add support for configuring v840e3v5 target.
3750 * doc/invoke.texi: Document new v850 specific command line options.
3752 2013-01-31 Paul Koning <ni1d@arrl.net>
3756 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
3757 children if parent is a class.
3758 (prune_unused_types_prune): Don't add DW_AT_declaration.
3760 2013-01-31 Richard Biener <rguenther@suse.de>
3762 PR tree-optimization/56157
3763 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
3764 match up operand with SLP child.
3766 2013-01-31 Jason Merrill <jason@redhat.com>
3769 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
3770 parameters the first time.
3771 (gen_scheduled_generic_parms_dies): Check completeness here.
3773 2013-01-31 Richard Biener <rguenther@suse.de>
3776 * common.opt (faggressive-loop-optimizations): New flag,
3778 * doc/invoke.texi (faggressive-loop-optimizations): Document.
3779 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
3780 infer_loop_bounds_from_undefined by it.
3782 2013-01-31 Richard Biener <rguenther@suse.de>
3784 PR tree-optimization/56150
3785 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
3786 visit virtual operands.
3787 (find_uses_to_rename_bb): Likewise.
3789 2013-01-31 Richard Biener <rguenther@suse.de>
3791 PR tree-optimization/56150
3792 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
3793 mixed store non-store stmts.
3795 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3798 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
3799 LIBASAN_EARLY_SPEC is defined.
3800 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
3801 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
3803 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
3806 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
3807 invalid args instead of ICEing on it.
3808 (ix86_valid_target_attribute_tree): Return error_mark_node if
3809 ix86_valid_target_attribute_inner_p failed.
3810 (ix86_valid_target_attribute_p): Return false only if
3811 ix86_valid_target_attribute_tree returned error_mark_node. Allow
3812 target("default") attribute.
3813 (sorted_attr_string): Change argument from const char * to tree,
3814 merge in all target attribute arguments rather than just one.
3815 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
3816 instead of free. Avoid using strcat.
3817 (ix86_mangle_function_version_assembler_name): Mangle
3818 target("default") as if no target attribute is present. Adjust
3819 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
3820 instead of xmalloc and XDELETEVEC instead of free.
3821 (ix86_function_versions): Don't return true if one of the decls
3822 doesn't have target attribute. If they don't and one of the decls
3823 is DECL_FUNCTION_VERSIONED, report an error. Adjust
3824 sorted_attr_string caller. Use XDELETEVEC instead of free.
3825 (ix86_supports_function_versions): Remove.
3826 (make_name): Fix up formatting.
3827 (make_dispatcher_decl): Remove resolver_name and its initialization.
3828 Avoid leaking memory.
3829 (is_function_default_version): Return true if there is
3830 target("default") attribute rather than no target attribute at all.
3831 (make_resolver_func): Avoid leaking memory.
3832 (ix86_generate_version_dispatcher_body): Likewise.
3833 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
3834 * target.def (supports_function_versions): Remove.
3835 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
3836 * doc/tm.texi: Regenerated.
3838 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
3840 PR rtl-optimization/56144
3841 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
3842 for values with side effects.
3844 2013-01-30 Richard Biener <rguenther@suse.de>
3846 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
3847 (sparseset_pop): Likewise.
3848 * cfganal.c (compute_idf): Likewise. Increase work-stack size
3849 to be able to use quick_push in the worker loop.
3851 2013-01-30 Marek Polacek <polacek@redhat.com>
3853 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
3855 2013-01-30 Richard Biener <rguenther@suse.de>
3858 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
3860 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
3862 PR tree-optimization/56064
3863 * fixed-value.c (fixed_from_double_int): New function.
3864 * fixed-value.h (fixed_from_double_int): New prototype.
3865 (const_fixed_from_double_int): New static inline function.
3866 * fold-const.c (native_interpret_fixed): New static function.
3867 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
3868 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
3869 (native_encode_fixed): New static function.
3870 (native_encode_expr) <FIXED_CST>: Use it.
3871 (native_interpret_int): Move double_int worker code to...
3872 * double-int.c (double_int::from_buffer): ...this new static method.
3873 * double-int.h (double_int::from_buffer): Prototype it.
3875 2013-01-30 Richard Biener <rguenther@suse.de>
3877 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
3878 New pointer-map and obstack.
3879 (init_alias_vars): Allocate pointer-map and obstack.
3880 (delete_points_to_sets): Free them.
3881 (find_what_var_points_to): Cache result.
3882 (find_what_p_points_to): Adjust for changed interface of
3883 find_what_var_points_to.
3884 (compute_points_to_sets): Likewise.
3885 (ipa_pta_execute): Likewise.
3887 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3889 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
3890 * configure: Regenerate.
3891 * config.in: Regenerate.
3892 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
3893 #nobits/#progbits if supported.
3895 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
3898 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
3899 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
3900 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
3902 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3904 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
3905 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
3907 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3909 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
3910 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
3912 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3914 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
3916 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
3917 * config/arm/cortex-a7.md: New bypasses using
3918 arm_mac_accumulator_is_result.
3920 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3922 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
3923 (cortex_a7_neon_mla): Likewise.
3924 (cortex_a7_fpfmad): New reservation.
3925 (cortex_a7_fpmacs): Use ffmas and update required units.
3926 (cortex_a7_fpmuld): Update required units and latency.
3927 (cortex_a7_fpmacd): Likewise.
3928 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
3929 (cortex_a7_neon). Likewise.
3930 (bypass) Update participating units.
3932 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3934 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
3935 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
3937 * config/arm/vfp11.md (vfp_farith): Use ffmas.
3938 (vfp_fmul): Use ffmad.
3939 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
3940 (cortex_r4_fmacd): Use ffmad.
3941 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
3942 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
3943 (cortex_a9_fmacd): Use ffmad.
3944 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
3945 (cortex_a8_vfp_macd): Use ffmad.
3946 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
3947 (cortex_a5_fpmacd): Use ffmad.
3948 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
3949 (cortex_a15_vfp_macd): Use ffmad.
3950 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
3952 2013-01-29 Jason Merrill <jason@redhat.com>
3955 * varasm.c (default_assemble_visibility): Don't warn about
3956 visibility on artificial decls.
3958 2013-01-29 Richard Biener <rguenther@suse.de>
3960 PR tree-optimization/56113
3961 * tree-ssa-structalias.c (equiv_class_lookup): Also return
3963 (label_visit): Free duplicate bitmaps and record the leader instead.
3964 (perform_var_substitution): Adjust.
3966 2013-01-29 Richard Biener <rguenther@suse.de>
3968 PR tree-optimization/55270
3969 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
3970 the CFG, schedule loops for fixup.
3972 2013-01-29 Nick Clifton <nickc@redhat.com>
3974 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
3977 2013-01-28 Leif Ekblad <leif@rdos.net>
3979 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
3980 * config/i386/i386.h (TARGET_RDOS): New macro.
3981 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
3982 * config/i386/i386.c (ix86_option_override_internal): For 64bit
3983 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
3984 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
3985 DEFAULT_LARGE_SECTION_THRESHOLD.
3986 * config/i386/i386.md (R14_REG, R15_REG): New constants.
3987 * config/i386/rdos.h: New file.
3988 * config/i386/rdos64.h: New file.
3990 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
3993 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
3996 2013-01-28 Jakub Jelinek <jakub@redhat.com>
3998 PR rtl-optimization/56117
3999 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
4000 call cselib_lookup_from_insn on the MEM before calling
4001 add_insn_mem_dependence.
4003 2013-01-28 Richard Biener <rguenther@suse.de>
4005 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
4006 to a stmt that didn't have one.
4007 (copy_phis_for_bb): Likewise for PHI arguments.
4008 (copy_debug_stmt): Likewise for debug stmts.
4010 2013-01-28 Richard Biener <rguenther@suse.de>
4012 PR tree-optimization/56034
4013 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
4014 (partition_builtin_p): Adjust.
4015 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
4016 it is the last partition.
4017 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
4018 up the vertex for the definition.
4019 (classify_partition): Classify whether a partition is a
4020 PKIND_REDUCTION, thus has uses outside of the loop.
4021 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
4022 Merge all PKIND_REDUCTION partitions into the last partition.
4023 (tree_loop_distribution): Seed partitions from reductions as well.
4025 2013-01-28 Jakub Jelinek <jakub@redhat.com>
4027 PR tree-optimization/56125
4028 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
4029 pow(x,c) into sqrt(x) * powi(x, n/2) or
4030 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
4031 optimizing for size.
4032 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
4033 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
4036 PR tree-optimization/56094
4037 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
4038 to UNKNOWN_LOCATION while gimplifying expr.
4040 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
4043 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
4044 operand 0 in movabs insn template for -masm=intel asm alternative.
4045 (*movabs<mode>_2): Ditto for operand 1.
4047 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
4050 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
4053 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4055 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
4058 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4060 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
4061 Undef to avoid warning.
4063 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4065 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
4066 * configure: Regenerate.
4068 2013-01-25 Jakub Jelinek <jakub@redhat.com>
4070 PR tree-optimization/56098
4071 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
4072 for stmts with volatile ops.
4073 (cond_store_replacement): Don't optimize if assign has volatile ops.
4074 (cond_if_else_store_replacement_1): Don't optimize if either
4075 then_assign or else_assign have volatile ops.
4076 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
4079 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4081 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
4083 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4085 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
4086 missing ':' in asm example.
4088 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
4090 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
4091 entries into lane and laneq entries.
4092 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
4093 Remove AdvSIMD scalar modes.
4094 (aarch64_sq<r>dmulh_laneq<mode>): New.
4095 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
4097 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
4098 builtin implementations to relfect changes in RTL in aarch64-simd.md.
4099 * config/aarch64/iterators.md (VCOND): New.
4102 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4105 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
4106 Add NULL LIBNAME argument to existing definitions.
4107 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
4108 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
4109 * config/avr/avr.c (DEF_BUILTIN): Same.
4110 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
4111 (avr_expand_builtin): Expand to a vanilla call if a libgcc
4112 implementation is available (DECL_ASSEMBLER_NAME is set).
4113 (avr_fold_absfx): New static function.
4114 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
4115 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
4116 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
4118 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
4119 (abshk, absk, abslk, absllk): Provide as static inline functions.
4121 2013-01-25 Marek Polacek <polacek@redhat.com>
4123 PR tree-optimization/56035
4124 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
4126 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
4128 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
4129 (*movtf_internal_rex64): Add (!o,C) alternative
4130 (*movxf_internal_rex64): Ditto.
4131 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
4133 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
4135 * doc/invoke.texi: fix typo.
4136 * doc/objc.texi: fix typo.
4138 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4140 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
4141 for the first two alternatives.
4143 2013-01-24 Diego Novillo <dnovillo@google.com>
4145 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
4146 (ggc-zone.o): Remove.
4147 * configure.ac: Remove option --with-gc.
4148 * configure: Re-generate.
4149 * doc/install.texi: Remove documentation for --with-gc.
4150 * gengtype.c (write_enum_defn): Remove. Update all users.
4151 (write_Types_process_field): Remove generation of gt_e_* argument.
4152 (output_type_enum): Remove. Update all users.
4153 (write_enum_defn): Remove. Update all users.
4154 (enum alloc_zone): Remove. Update all users.
4155 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
4156 * ggc-common.c (ggc_splay_alloc): Remove first argument.
4158 (struct ptr_data): Remove field TYPE. Update all users.
4159 (gt_pch_note_object): Remove argument TYPE. Update all users.
4160 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
4162 * ggc-none.c (ggc_alloc_typed_stat): Remove.
4163 (struct alloc_zone): Remove.
4164 (ggc_internal_alloc_zone_stat): Remove.
4165 (ggc_internal_cleared_alloc_zone_stat): Remove.
4166 * ggc-page.c (ggc_alloc_typed_stat): Remove.
4167 (ggc_pch_count_object): Remove last argument. Update all users.
4168 (ggc_pch_alloc_object): Remove last argument. Update all users.
4169 (struct alloc_zone): Remove.
4170 * ggc-zone.c: Remove.
4171 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
4172 (struct alloc_zone): Remove.
4173 (ggc_alloc_typed_stat): Remove.
4174 (ggc_alloc_typed): Remove.
4175 (ggc_splay_alloc): Remove first argument.
4176 (rtl_zone): Remove. Update all users.
4177 (tree_zone): Remove. Update all users.
4178 (tree_id_zone): Remove. Update all users.
4179 (ggc_internal_zone_alloc_stat): Remove. Update all users.
4180 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
4181 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
4182 * tree-ssanames.c: Remove references to zone allocator in comments.
4184 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
4186 * config/avr/avr.c (avr_out_fract): Make register numbers that
4187 might be outside of source operand signed.
4189 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
4191 * config/i386/constraints.md (Yf): New constraint.
4192 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
4193 of f constraint to conditionaly disable x87 register preferences.
4194 (*movdf_internal): Ditto.
4195 (*movsf_internal): Ditto.
4197 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
4200 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
4201 that have operands with impossible constraints.
4202 Add a FIXME for a speed-up opportunity.
4203 * lra-constraints.c (process_alt_operands): Verify that a class
4204 selected from constraints on asms is valid for the operand mode.
4205 (curr_insn_transform): Remove incorrect comment.
4207 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
4209 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
4210 TOC operand is a valid symbol ref in the constant pool.
4212 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4214 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
4216 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
4219 * config/avr/stdfix.h: New file.
4220 * t-avr (stdfix-gcc.h): New rule to build it.
4221 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
4223 2013-01-23 Kostya Serebryany <kcc@google.com>
4225 * config/darwin.h: remove dependency on
4226 CoreFoundation (asan on Mac OS).
4228 2013-01-23 Jakub Jelinek <jakub@redhat.com>
4231 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
4232 instead of cmpdi_operand for first comparison operand.
4233 Don't assert that comparison operands aren't both constants.
4235 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4237 * doc/install.texi (Downloading the Source): Update references to
4238 downloading separate components.
4240 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4242 * doc/extend.texi (__int128): Improve grammar.
4244 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
4247 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
4248 alternative to (o,r).
4249 (*movdi_internal_rex64): Remove (!o,n) alternative.
4250 (DImode immediate->memory splitter): Remove.
4251 (DImode immediate->memory peephole2): Remove.
4252 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
4253 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
4254 alternative to (!o,*r).
4255 (*movtf_internal_sse): New pattern.
4256 (*movxf_internal_rex64): New pattern.
4257 (*movxf_internal): Disable for TARGET_64BIT.
4258 (*movdf_internal_rex64): Remove (!o,F) alternative.
4260 2013-01-22 Jakub Jelinek <jakub@redhat.com>
4263 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
4264 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
4265 * tree-vect-loop-manip.c (find_loop_location): Also ignore
4266 stmt locations where LOCATION_LOCUS of the stmt location is
4267 UNKNOWN_LOCATION or BUILTINS_LOCATION.
4270 * config/i386/i386.md (UNSPEC_STOS): New.
4271 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
4272 *strsetqi_1): Add UNSPEC_STOS.
4274 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
4277 * doc/invoke.texi: Remove left over -Wsynth example.
4279 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4281 PR tree-optimization/56051
4282 * fold-const.c (fold_binary_loc): Don't fold
4283 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
4284 a narrowing conversion, or widening conversion from signed
4287 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4289 PR rtl-optimization/56023
4290 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
4291 dependent on debug instruction.
4293 2013-01-21 Martin Jambor <mjambor@suse.cz>
4296 * function.c (allocate_struct_function): Call
4297 invoke_set_current_function_hook earlier.
4299 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4301 * reload1.c (init_reload): Only initialize reload_obstack
4302 during the first call.
4304 2013-01-21 Marek Polacek <polacek@redhat.com>
4306 * cfgloop.c (verify_loop_structure): Fix up grammar.
4308 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
4310 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
4311 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
4313 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4316 * config/arm/marvell-pj4.md: Update copyright year.
4317 Fix up use of alu to alu_reg and simple_alu_imm.
4319 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4321 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
4323 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
4326 * lra-constraints.c (curr_insn_transform): Don't reuse original
4327 insn for secondary memory move when memory mode should be different.
4329 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4331 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
4332 atomic_storedi_1): New patterns.
4334 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4336 btver2 pipeline descriptions.
4337 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
4339 * config/i386/i386.md (btver2_decode): New type attributes.
4340 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
4342 * config/i386/btver2.md: New file describing btver2 pipelines.
4344 2013-01-19 Andrew Pinski <apinski@cavium.com>
4346 PR tree-optimization/52631
4347 * tree-ssa-sccvn (visit_use): Before looking up the original
4348 statement, try looking up the simplified expression.
4350 2013-01-19 Anthony Green <green@moxielogic.com>
4352 * config/moxie/moxie.c (moxie_expand_prologue): Set
4353 current_function_static_stack_size.
4355 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4357 PR tree-optimization/56029
4358 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
4359 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
4361 2013-01-18 Sharad Singhai <singhai@google.com>
4363 PR tree-optimization/55995
4364 * dumpfile.c (dump_loc): Print location only if available.
4365 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
4367 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
4370 * lra-constraints.c (curr_insn_transform): Reuse original insn for
4371 secondary memory move.
4372 (inherit_reload_reg): Use rclass instead of cl for
4373 check_secondary_memory_needed_p.
4375 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4378 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
4379 the case where writing real complex part of target modifies op1.
4381 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
4383 * config/aarch64/aarch64-simd.md
4384 (aarch64_vcond_internal<mode>): Handle unordered cases.
4385 * config/aarch64/iterators.md (v_cmp_result): New.
4387 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
4388 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4390 * config/arm/marvell-pj4.md: New file.
4391 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
4392 * config/arm/arm.md (generic_sched): Add marvell_pj4.
4393 (generic_vfp): Likewise.
4394 * config/arm/arm-cores.def: Add marvell-pj4.
4395 * config/arm/arm-tune.md: Regenerate.
4396 * config/arm/arm-tables.opt: Regenerate.
4397 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
4398 * doc/invoke.texi: Document marvell-pj4.
4400 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
4402 * config/aarch64/arm_neon.h: Map scalar types to standard types.
4404 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4409 * var-tracking.c (negative_power_of_two_p): New.
4410 (global_get_addr_cache, local_get_addr_cache): New.
4411 (get_addr_from_global_cache, get_addr_from_local_cache): New.
4412 (vt_canonicalize_addr): Rewrite using the above. Adjust the
4414 (vt_stack_offset_p): Remove.
4415 (vt_canon_true_dep): Always canonicalize loc's address.
4416 (clobber_overlapping_mems): Make sure we have a MEM.
4417 (local_get_addr_clear_given_value): New.
4418 (val_reset): Clear local cached entries.
4419 (compute_bb_dataflow): Create and release the local cache.
4420 Disable duplicate MEMs clobbering.
4421 (emit_notes_in_bb): Clobber MEMs likewise.
4422 (vt_emit_notes): Create and release the local cache.
4423 (vt_initialize, vt_finalize): Create and release the global
4424 cache, respectively.
4425 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
4427 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4430 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
4431 not found in the symtab.
4433 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4436 PR rtl-optimization/55547
4437 PR rtl-optimization/53827
4440 * alias.c (offset_overlap_p): New, factored out of...
4441 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
4442 the conservative special case for symbolic constants. Don't
4443 adjust zero sizes on alignment.
4445 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
4447 PR rtl-optimization/52573
4448 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
4449 REG_UNUSED for the same register.
4451 2013-01-17 Richard Biener <rguenther@suse.de>
4452 Marek Polacek <polacek@redhat.com>
4454 PR rtl-optimization/55833
4455 * loop-unswitch.c (unswitch_loops): Move loop verification...
4456 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
4457 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
4458 Set it to true when we're removing a loop from hierarchy tree in
4459 an irreducible region.
4460 (fix_bb_placements): Adjust caller.
4461 (fix_loop_placements): Likewise.
4463 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
4465 * config/avr/builtins.def (DEF_BUILTIN): Factor out
4466 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
4467 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
4468 Remove ID. Adjust comments.
4469 * config/avr/avr-c.c (avr_builtin_name): Remove.
4470 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
4471 * config/avr/avr.c (avr_tolower): New static function.
4472 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
4473 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
4474 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
4477 2013-01-17 Jan Hubicka <jh@suse.cz>
4479 PR tree-optimization/55273
4480 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
4482 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
4485 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
4486 store through atomic_store<mode>_1.
4487 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
4489 2013-01-17 Martin Jambor <mjambor@suse.cz>
4491 PR tree-optimizations/55264
4492 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
4493 for virtual methods.
4494 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
4495 virtual methods before inlining is over.
4496 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
4498 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
4501 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
4503 PR rtl-optimization/56005
4504 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
4505 pending reads for prefetch.
4507 2013-01-16 Ian Bolton <ian.bolton@arm.com>
4509 * config/aarch64/aarch64.md
4510 (*cstoresi_neg_uxtw): New pattern.
4511 (*cmovsi_insn_uxtw): New pattern.
4512 (*<optab>si3_uxtw): New pattern.
4513 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
4514 (*<optab>si3_insn_uxtw): New pattern.
4515 (*bswapsi2_uxtw): New pattern.
4517 2013-01-16 Richard Biener <rguenther@suse.de>
4519 * tree-inline.c (tree_function_versioning): Remove set but
4520 never used variable.
4522 2013-01-16 Richard Biener <rguenther@suse.de>
4524 PR tree-optimization/55964
4525 * tree-flow.h (rename_variables_in_loop): Remove.
4526 (rename_variables_in_bb): Likewise.
4527 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
4528 (copy_loop_before): Adjust and delete update-ssa status.
4529 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
4530 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
4531 (rename_variables_in_loop): Remove.
4532 (slpeel_update_phis_for_duplicate_loop): Likewise.
4533 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
4534 use available cfg machinery instead of duplicating it.
4535 Update PHI nodes and perform poor-mans SSA update here.
4536 (slpeel_tree_peel_loop_to_edge): Adjust.
4538 2013-01-16 Richard Biener <rguenther@suse.de>
4540 PR tree-optimization/54767
4541 PR tree-optimization/53465
4542 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
4543 (vrp_visit_phi_node): For PHI arguments coming via backedges
4544 drop all symbolical range information.
4545 (execute_vrp): Compute backedges.
4547 2013-01-16 Richard Biener <rguenther@suse.de>
4549 * doc/install.texi: Update CLooG and ISL requirements to
4552 2013-01-16 Christian Bruel <christian.bruel@st.com>
4555 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
4556 (broken_move): Handle UNSPECV_SP_SWITCH_B.
4557 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
4559 2013-01-16 DJ Delorie <dj@redhat.com>
4561 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4562 (UNSPECV_SP_SWITCH_E): New.
4563 (sp_switch_1): Change to an unspec.
4564 (sp_switch_2): Change to an unspec. Don't use post-inc when we
4567 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
4569 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
4570 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
4571 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
4572 (expand_mem_thread_fence): Ditto.
4573 (expand_mem_signal_fence): Ditto.
4574 (expand_atomic_load): Ditto.
4575 (expand_atomic_store): Ditto.
4577 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
4579 PR rtl-optimization/55547
4580 PR rtl-optimization/53827
4583 * alias.c (memrefs_conflict_p): Set sizes to negative after
4586 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4589 * function.c (thread_prologue_and_epilogue_insns): Always
4590 add crtl->drap_reg to set_up_by_prologue.set, even if
4591 stack_realign_drap is false.
4593 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4595 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
4596 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
4597 *call): Fix indention.
4599 2013-01-15 Tom de Vries <tom@codesourcery.com>
4602 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
4605 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
4607 PR rtl-optimization/55153
4608 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
4610 2013-01-15 Martin Jambor <mjambor@suse.cz>
4612 PR tree-optimization/55920
4613 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
4614 accesses as grp_to_be_debug_replaced.
4616 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4618 PR tree-optimization/55920
4619 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
4620 there is non-useless type conversion needed from debug rhs to lhs,
4621 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
4623 2013-01-15 Joseph Myers <joseph@codesourcery.com>
4624 Mikael Pettersson <mikpe@it.uu.se>
4627 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
4629 (ASM_OUTPUT_CASE_LABEL): Remove.
4630 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
4631 * final.c (shorten_branches): Update alignment of labels before
4632 jump tables if CASE_VECTOR_SHORTEN_MODE.
4634 2013-01-15 Richard Biener <rguenther@suse.de>
4637 * system.h: Do not include gmp.h for building host tools.
4639 2013-01-15 Richard Biener <rguenther@suse.de>
4642 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
4643 account for bitpos when computing alignment.
4645 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
4647 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
4648 (ix86_target_macros_internal): Likewise.
4650 * config/i386/i386.c (m_CORE2I7): Removed.
4651 (m_CORE_HASWELL): New macro.
4652 (m_CORE_ALL): Likewise.
4653 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
4654 (initial_ix86_arch_features): Likewise.
4655 (processor_target_table): Initializations for Core avx2.
4656 (cpu_names): New names "core-avx2".
4657 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
4658 PROCESSOR_CORE_HASWELL.
4659 (ix86_issue_rate): New case.
4660 (ia32_multipass_dfa_lookahead): Likewise.
4661 (ix86_sched_init_global): Likewise.
4663 * config/i386/i386.h (TARGET_HASWELL): New macro.
4664 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
4665 (processor_type): New PROCESSOR_HASWELL.
4667 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4669 PR tree-optimization/55955
4670 * tree-vect-loop.c (vectorizable_reduction): Give up early on
4671 *SHIFT_EXPR and *ROTATE_EXPR codes.
4673 PR tree-optimization/48766
4674 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
4675 -ftrapv disable -fwrapv.
4677 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4680 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
4681 etc. to 1 and not to __flash.
4682 Use LL suffix for __INT24_MAX__ with -mint8.
4683 Use ULL suffix for __UINT24_MAX__ with -mint8.
4685 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4687 * config/avr/avr-arch.h
4688 (struct base_arch_s): Use typedef avr_arch_t instead.
4689 (struct arch_info_s): Use typedef avr_arch_info_t instead.
4690 (struct mcu_type_s): Use typedef avr_mcu_t instead.
4691 * config/avr/avr.c: Same.
4692 * config/avr/avr-devices.c: Same.
4693 * config/avr/driver-avr.c: Same.
4694 * config/avr/gen-avr-mmcu-texi.c: Same.
4695 * config/avr/avr-mcus.def: Adjust comment.
4697 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
4699 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
4700 * config/aarch64/iterators.md (VALLDI): New.
4702 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
4703 Andi Kleen <ak@linux.intel.com>
4706 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
4707 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
4710 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4712 * config/avr/avr-stdint.h: Remove trailing blanks.
4713 * config/avr/avr-log.h: Same.
4714 * config/avr/avr-arch.h: Same.
4715 * config/avr/avr-devices.c: Same.
4716 * config/avr/avr-dimode.md: Same.
4717 * config/avr/predicates.md: Same.
4718 * config/avr/avr-c.c: Same. And fix typo.
4720 * config/avr/avr-protos.h: Same. And:
4721 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
4722 (init_cumulative_args): Rename to avr_init_cumulative_args.
4723 (expand_prologue): Rename to avr_expand_prologue.
4724 (expand_epilogue): Rename to avr_expand_epilogue.
4725 (adjust_insn_length): Rename to avr_adjust_insn_length.
4726 (notice_update_cc): Rename to avr_notice_update_cc.
4727 (final_prescan_insn): Rename to avr_final_prescan_insn.
4728 * config/avr/avr.c: Same.
4729 * config/avr/avr.h: Same.
4730 * config/avr/avr.md: Remove trailing blanks.
4731 (prologue): Use avr_expand_prologue.
4732 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
4734 2013-01-14 Richard Biener <rguenther@suse.de>
4736 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
4737 verify_location, collect_subblocks): New functions.
4738 (verify_gimple_in_cfg): Verify that locations only reference
4739 BLOCKs in the functions BLOCK tree.
4741 2013-01-14 Richard Biener <rguenther@suse.de>
4743 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
4745 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
4747 (insert_out_of_ssa_copy_on_edge): Likewise.
4748 (rewrite_close_phi_out_of_ssa): Likewise.
4749 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
4751 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
4752 propagated constants.
4753 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
4756 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4758 * config/avr/avr-modes.def: Add GPL copyright notice.
4760 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
4762 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
4763 MEMMODEL_MASK to determine memory model.
4764 (atomic_store<mode>): Ditto from operands[2].
4765 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
4767 2013-01-13 Jakub Jelinek <jakub@redhat.com>
4770 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
4771 (fold_gimple_assign): Don't call unshare_expr here.
4772 (fold_ctor_reference): Call unshare_expr.
4774 2013-01-13 Terry Guo <terry.guo@arm.com>
4776 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
4777 * doc/fragments.texi: Document MULTILIB_REUSE.
4778 * gcc.c (multilib_reuse): New internal spec.
4779 (set_multilib_dir): Also search multilib from multilib_reuse.
4780 * genmultilib (tmpmultilib3): Refactor code.
4781 (tmpmultilib4): Ditto.
4782 (multilib_reuse): New multilib argument.
4784 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
4786 * Makefile.in: Update copyright.
4788 2013-01-12 Tom de Vries <tom@codesourcery.com>
4791 * calls.c (expand_call): Check if arg_nr is valid.
4793 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4795 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
4796 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
4797 documentation. Add missing '__' in front of
4798 __builtin_ia32_packssdw256.
4800 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4803 * config/s390/s390.c (s390_preferred_reload_class): Do not return
4804 NO_REGS for larl operands.
4805 (s390_reload_larl_operand): Use s390_load_address instead of
4808 2013-01-11 Richard Biener <rguenther@suse.de>
4810 * tree-cfg.c (verify_node_sharing_1): Split out from ...
4811 (verify_node_sharing): ... here.
4812 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
4814 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
4816 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
4817 Substitute TREECHECKING.
4818 * configure: Regenerate.
4819 * Makefile.in (TREECHECKING): New.
4821 2013-01-11 Richard Guenther <rguenther@suse.de>
4823 PR tree-optimization/44061
4824 * tree-vrp.c (extract_range_basic): Compute zero as
4825 value-range for __builtin_constant_p of function parameters.
4827 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
4829 Update copyright years.
4831 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
4833 PR rtl-optimization/55672
4834 * lra-eliminations.c (mark_not_eliminable): Permit addition with
4835 const to be eliminable.
4837 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
4839 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
4840 * configure: Regenerate.
4842 2013-01-10 Richard Biener <rguenther@suse.de>
4844 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
4846 2013-01-10 Richard Biener <rguenther@suse.de>
4849 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
4850 locations for virtual PHI arguments.
4851 (rewrite_update_phi_arguments): Likewise.
4853 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
4855 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
4858 2013-01-10 Jakub Jelinek <jakub@redhat.com>
4860 PR tree-optimization/55921
4861 * tree-complex.c (expand_complex_asm): New function.
4862 (expand_complex_operations_1): Call it for GIMPLE_ASM.
4864 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4867 * config/s390/s390.c (s390_symref_operand_p)
4868 (s390_loadrelative_operand_p): Merge the two functions.
4869 (s390_check_qrst_address, print_operand_address): Add parameters
4870 to s390_loadrelative_operand_p invokation.
4871 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
4872 (s390_reload_larl_operand, s390_secondary_reload): Use
4873 s390_loadrelative_operand_p instead of s390_symref_operand_p.
4874 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
4876 2013-01-09 Mike Stump <mikestump@comcast.net>
4878 * dse.c (record_store): Remove unnecessary assert.
4880 2013-01-09 Jan Hubicka <jh@suse.cz>
4882 PR tree-optimization/55569
4883 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
4884 * cfgloop.h (scale_loop_profile): Likewise.
4886 2013-01-09 Jan Hubicka <jh@suse.cz>
4889 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
4891 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
4893 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
4896 * expr.h (maybe_emit_group_store): Declare.
4897 * expr.c (maybe_emit_group_store): New function.
4898 * builtins.c (expand_builtin_int_roundingfn): Call it.
4899 (expand_builtin_int_roundingfn_2): Likewise.
4901 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
4903 PR rtl-optimization/55829
4904 * lra-constraints.c (match_reload): Add code for absent output.
4905 (curr_insn_transform): Add code for reloads of matched inputs
4908 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
4910 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
4911 attribute of movddup insn to DF.
4912 (*vec_interleave_lowv2df): Ditto.
4913 (vec_dupv2df): Ditto.
4915 2013-01-09 Jan Hubicka <jh@suse.cz>
4917 PR tree-optimiation/55875
4918 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
4919 EVERY_ITERATION parameter.
4920 (number_of_iterations_exit): Check if exit is executed every iteration.
4921 (idx_infer_loop_bounds): Similarly here.
4922 (n_of_executions_at_most): Simplify
4923 to only test for cases where statement is dominated by the
4924 particular bound; handle correctly the "postdominance" test.
4925 (scev_probably_wraps_p): Use max loop iterations info
4926 as a global bound first.
4928 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
4929 Nick Clifton <nickc@redhat.com>
4931 * config/v850/v850.md (cbranchsf4): New pattern.
4932 (cstoresf4): New pattern.
4933 (cbranchdf4): New pattern.
4934 (cstoredf4): New pattern.
4935 (movsicc): Disallow floating point comparisons.
4936 (cmpsf_le_insn): Fix order of operators.
4937 (cmpsf_lt_insn): Likewise.
4938 (cmpsf_eq_insn): Likewise.
4939 (cmpdf_le_insn): Likewise.
4940 (cmpdf_lt_insn): Likewise.
4941 (cmpdf_eq_insn): Likewise.
4942 (cmpsf_ge_insn): Use LE comparison.
4943 (cmpdf_ge_insn): Likewise.
4944 (cmpsf_gt_insn): Use LT comparison.
4945 (cmpdf_gt_insn): Likewise.
4946 (cmpsf_ne_insn): Delete pattern.
4947 (cmpdf_ne_insn): Delete pattern.
4948 * config/v850/v850.c (v850_gen_float_compare): Use
4949 gen_cmpdf_eq_insn for NE comparison.
4950 (v850_float_z_comparison_operator)
4951 (v850_float_nz_comparison_operator): Move from here ...
4952 * config/v850/predicates.md: ... to here. Move GT and GE
4953 comparisons into v850_float_z_comparison_operator.
4954 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
4956 (v850_float_nz_comparison_operator): Likewise.
4958 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4960 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
4961 with calls to gen_insvsi/gen_insvdi.
4963 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4965 * config/i386/i386.c (initial_ix86_tune_features): Set up
4966 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
4968 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
4969 Jakub Jelinek <jakub@redhat.com>
4971 PR tree-optimization/48189
4972 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
4973 If nitercst is 0, don't predict the exit edge.
4975 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4977 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
4978 in asm_fprintf with reg_names.
4979 (aarch64_print_operand_address): Likewise.
4980 (aarch64_return_addr): Likewise.
4981 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
4983 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4985 * config/pa/pa.h (VAL_U6_BITS_P): Define.
4986 (INT_U6_BITS): Likewise.
4987 * config/pa/predicates.md (uint6_operand): New predicate.
4988 (shift5_operand, shift6_operand): Likewise.
4989 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
4991 (lshrdi3): Use shift6_operand.
4992 (shrpsi4, shrpdi4): New insn patterns.
4993 (extzv): Delete expander.
4994 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
4995 predicates in unamed zero extract patterns. Tighten common constraint.
4996 (extv): Delete expander.
4997 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
4998 predicates in unamed sign extract patterns. Tighten common constraint.
4999 (insv): Delete expander.
5000 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
5001 predicates in unamed insert patterns. Tighten common constraint.
5002 Change uint32_operand predicate to uint6_operand predicate in unamed
5003 DImode pattern to insert constant values of type 1...1xxxx.
5005 2013-01-04 Jan Hubicka <jh@suse.cz>
5007 PR tree-optimization/55823
5008 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
5011 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5012 Uros Bizjak <ubizjak@gmail.com>
5014 PR rtl-optimization/55845
5015 * df-problems.c (can_move_insns_across): Stop scanning at
5016 volatile_insn_p source instruction or give up if
5017 across_from .. across_to range contains any volatile_insn_p
5020 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5022 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
5023 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
5025 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
5026 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
5028 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5031 * asan.c (asan_clear_shadow): New function.
5032 (asan_emit_stack_protection): Use it.
5034 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5036 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
5037 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
5038 with tab instead of space.
5040 2013-01-08 Nick Clifton <nickc@redhat.com>
5042 * config/rl78/rl78.c (rl78_expand_prologue): Always select
5043 register bank 0 at the start of an interrupt handler.
5044 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
5047 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5049 * config/aarch64/aarch64-simd.md
5050 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
5051 (aarch64_simd_bsl): Likewise.
5052 (aarch64_vcond_internal<mode>): Likewise.
5053 (vcond<mode><mode>): Likewise.
5054 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
5055 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
5057 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5059 * config/aarch64/aarch64-builtins.c
5060 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
5062 2013-01-08 Martin Jambor <mjambor@suse.cz>
5065 * tree-sra.c (analyze_access_subtree): Return true also after
5066 potentially creating a debug-only replacement.
5068 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5071 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
5073 PR tree-optimization/54120
5074 * tree-vrp.c (range_fits_type_p): Don't allow
5075 src_precision < precision from signed vr to unsigned_p
5076 if vr->min or vr->max is negative.
5077 (simplify_float_conversion_using_ranges): Test can_float_p
5078 against CODE_FOR_nothing.
5080 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5081 Richard Biener <rguenther@suse.de>
5084 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
5085 types instead of just INTEGER_TYPE types.
5087 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
5089 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
5092 2013-01-07 Steve Ellcey <sellcey@mips.com>
5095 * config/mips/mips.opt: Change mad to mmad to match documentation.
5097 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5100 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
5103 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5106 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
5107 (avr_addrspace_t): Add .section_name field.
5108 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
5110 (avr_addrspace): Same. Initialize .section_name. Remove last
5111 NULL entry. Put __memx into .progmemx.data.
5112 (progmem_section_prefix): Remove.
5113 (avr_asm_init_sections): No need to initialize progmem_section.
5114 (avr_asm_named_section): Use avr_addrspace[].section_name to get
5115 section name prefix.
5116 (avr_asm_select_section): Ditto. And use get_unnamed_section to
5117 retrieve the progmem section.
5118 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
5119 boundary to run over avr_addrspace[].
5120 (avr_register_target_pragmas): Ditto.
5122 2013-01-06 Jakub Jelinek <jakub@redhat.com>
5124 * varasm.c (output_constant_def_contents): For asan_protect_global
5125 protected strings, adjust DECL_ALIGN if needed, before testing for
5127 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
5128 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
5130 (output_object_block): For asan protected decls, emit asan padding
5131 after their contents.
5132 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
5133 (asan_finish_file): Test it here instead.
5135 2013-01-07 Nick Clifton <nickc@redhat.com>
5136 Matthias Klose <doko@debian.org>
5137 Doug Kwan <dougkwan@google.com>
5138 H.J. Lu <hongjiu.lu@intel.com>
5141 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
5143 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
5145 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
5147 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
5149 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
5151 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5154 * doc/install.texi (Cross-Compiler-Specific Options): Document
5157 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
5159 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
5160 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
5161 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
5162 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
5163 vqmovun_high_s64): Fix source operand number and update copyright.
5165 2013-01-07 Richard Biener <rguenther@suse.de>
5168 * gimple.h (gimple_call_builtin_p): New overload.
5169 * gimple.c (validate_call): New function.
5170 (gimple_call_builtin_p): Likewise.
5171 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5172 Use gimple_call_builtin_p.
5173 (find_func_clobbers): Likewise.
5174 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
5175 (strlen_optimize_stmt): Likewise.
5177 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5179 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
5180 (vld1q_dup_*): Likewise.
5182 (vld1q_*): Likewise.
5183 (vld1_lane_*): Likewise.
5184 (vld1q_lane_*): Likewise.
5186 2013-01-07 Richard Biener <rguenther@suse.de>
5188 * lto-streamer.h (LTO_minor_version): Bump to 2.
5190 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5192 * config/aarch64/aarch64-protos.h
5193 (aarch64_const_double_zero_rtx_p): Rename to...
5194 (aarch64_float_const_zero_rtx_p): ...this.
5195 (aarch64_float_const_representable_p): New.
5196 (aarch64_output_simd_mov_immediate): Likewise.
5197 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
5198 move immediate case.
5199 * config/aarch64/aarch64.c
5200 (aarch64_const_double_zero_rtx_p): Rename to...
5201 (aarch64_float_const_zero_rtx_p): ...this.
5202 (aarch64_print_operand): Allow printing of new constants.
5203 (aarch64_valid_floating_const): New.
5204 (aarch64_legitimate_constant_p): Check for valid floating-point
5206 (aarch64_simd_valid_immediate): Likewise.
5207 (aarch64_vect_float_const_representable_p): New.
5208 (aarch64_float_const_representable_p): Likewise.
5209 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
5210 (aarch64_output_simd_mov_immediate): New.
5211 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
5212 (*movdf_aarch64): Likewise.
5213 * config/aarch64/constraints.md (Ufc): New.
5214 (Y): call aarch64_float_const_zero_rtx.
5215 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
5217 2013-01-07 Richard Biener <rguenther@suse.de>
5219 PR tree-optimization/55888
5220 PR tree-optimization/55862
5221 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
5222 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
5223 not if it is contained therein.
5225 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5227 * config/avr/t-avr: Typo.
5229 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5232 * config/avr/t-avr: Don't automatically rebuild
5233 $(srcdir)/config/avr/t-multilib
5234 $(srcdir)/config/avr/avr-tables.opt
5235 $(srcdir)/doc/avr-mmcu.texi
5236 (avr-mcus): New phony target to build them on request.
5237 (s-avr-mlib, s-avr-mmcu-texi): Remove.
5238 * avr/avr-mcus.def: Adjust comments.
5240 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
5242 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
5244 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5246 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
5248 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5250 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
5252 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
5254 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
5255 to generate profiling.
5256 * config/rs6000/aix64.h (LIB_SPEC): Same.
5258 2013-01-04 Andrew Pinski <apinski@cavium.com>
5260 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
5262 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5264 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
5266 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
5268 (ix86_expand_move): Ditto.
5269 (ix86_zero_extend_to_Pmode): Ditto.
5270 (ix86_expand_call): Ditto.
5271 (ix86_expand_special_args_builtin): Ditto.
5272 (ix86_expand_builtin): Ditto.
5274 2013-01-04 Richard Biener <rguenther@suse.de>
5276 PR tree-optimization/55862
5277 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
5278 translating them through PHI nodes.
5280 2013-01-04 Martin Jambor <mjambor@suse.cz>
5282 PR tree-optimization/55755
5283 * tree-sra.c (sra_modify_assign): Do not check that an access has no
5284 children when trying to avoid producing a VIEW_CONVERT_EXPR.
5286 2013-01-04 Marek Polacek <polacek@redhat.com>
5289 * opts.c (default_options_optimization): Clarify error message.
5291 2013-01-04 Richard Biener <rguenther@suse.de>
5294 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
5297 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5300 * config/pa/pa.md (movsi): Revert previous change.
5301 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
5304 2013-01-03 Richard Henderson <rth@redhat.com>
5306 * config/i386/i386.c (ix86_expand_move): Always assign to op1
5307 after eliminating TLS symbols.
5309 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
5312 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
5313 * graphite-poly.c (debug_gmp_value): Likewise.
5315 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
5318 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
5319 selected code model, define __code_mode_small__, __code_model_medium__,
5320 __code_model_large__, __code_model_32__ or __code_model_kernel__.
5321 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
5322 xchg temporary register with %k. Declare temporary register as
5324 [__x86_64__]: For medium and large code models, preserve %rbx register.
5326 2013-01-03 Richard Biener <rguenther@suse.de>
5328 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
5329 (dump_subscript): Adjust.
5330 (finalize_ddr_dependent): Do not dump redundant info.
5331 (analyze_siv_subscript): Adjust.
5332 (subscript_dependence_tester): Likewise.
5333 (compute_affine_dependence): Likewise.
5335 2013-01-03 Richard Biener <rguenther@suse.de>
5338 2013-01-03 Richard Biener <rguenther@suse.de>
5340 PR tree-optimization/55857
5341 * tree-vect-stmts.c (vectorizable_load): Do not setup
5342 re-alignment for invariant loads.
5344 2013-01-02 Richard Biener <rguenther@suse.de>
5346 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5347 invariant load do not generate a vector load from the scalar location.
5349 2013-01-03 Richard Biener <rguenther@suse.de>
5351 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
5352 for not vectorizing.
5353 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5354 not build INDIRECT_REFs, call get_name once only.
5355 (vect_create_data_ref_ptr): Likewise. Dump base object kind
5356 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
5358 2013-01-03 Richard Biener <rguenther@suse.de>
5360 PR tree-optimization/55857
5361 * tree-vect-stmts.c (vectorizable_load): Do not setup
5362 re-alignment for invariant loads.
5364 2013-01-03 Richard Biener <rguenther@suse.de>
5367 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
5368 prefer a built-in decl.
5370 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5372 * gcc.c (process_command): Update copyright notice dates.
5373 * gcov.c (print_version): Likewise.
5374 * gcov-dump.c (print_version): Likewise.
5376 PR rtl-optimization/55838
5377 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
5378 iv0.step, iv1.step and step.
5380 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5381 Marc Glisse <marc.glisse@inria.fr>
5383 PR tree-optimization/55832
5384 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
5385 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
5386 integer_{one,zero}_node.
5388 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5391 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
5392 * var-tracking.c (reverse_op): Don't add reverse ops to
5393 VALUEs that have already
5394 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
5396 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
5398 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
5400 2013-01-02 Teresa Johnson <tejohnson@google.com>
5402 * dumpfile.c (dump_loc): Print filename with location.
5403 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
5404 new location_t parameter to emit complete unroll message with
5406 (canonicalize_loop_induction_variables): Compute loops location
5407 and pass to try_unroll_loop_completely.
5408 * loop-unroll.c (report_unroll_peel): New function.
5409 (peel_loops_completely): Use new dump format with location
5410 for main dumpfile message, and invoke report_unroll_peel on success.
5411 (decide_unrolling_and_peeling): Ditto.
5412 (decide_peel_once_rolling): Remove old dumpfile message subsumed
5413 by report_unroll_peel.
5414 (decide_peel_completely): Ditto.
5415 (decide_unroll_constant_iterations): Ditto.
5416 (decide_unroll_runtime_iterations): Ditto.
5417 (decide_peel_simple): Ditto.
5418 (decide_unroll_stupid): Ditto.
5419 * cfgloop.c (get_loop_location): New function.
5420 * cfgloop.h (get_loop_location): Declare.
5422 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5424 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
5427 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5430 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
5431 BLKmode objects when EXPAND_MEMORY is specified.
5433 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5435 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
5437 (fold_builtin_cpu): Do not share cpu model decls across statements.
5439 2013-01-02 Jason Merrill <jason@redhat.com>
5442 * tree.c (build_array_type_1): Revert earlier change.
5444 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
5446 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
5448 * config/aarch64/aarch64-tune.md: Re-generate.
5450 2013-01-02 Richard Biener <rguenther@suse.de>
5452 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5453 invariant load do not generate a vector load from the scalar location.
5455 2013-01-02 Richard Biener <rguenther@suse.de>
5458 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
5459 * configure: Regenerate.
5461 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5463 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
5464 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
5465 (expand_builtin_int_roundingfn_2): Keep the original target around
5466 for the fallback case.
5468 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5470 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
5471 to be clear for sign changes.
5473 2013-01-01 Jan Hubicka <jh@suse.cz>
5475 * ipa-inline-analysis.c: Fix formatting.
5477 2013-01-01 Jakub Jelinek <jakub@redhat.com>
5479 PR tree-optimization/55831
5480 * tree-vect-loop.c (get_initial_def_for_induction): Use
5481 gsi_after_labels instead of gsi_start_bb.
5483 Copyright (C) 2013 Free Software Foundation, Inc.
5485 Copying and distribution of this file, with or without modification,
5486 are permitted in any medium without royalty provided the copyright
5487 notice and this notice are preserved.