1 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3 * Makefile.in (.SUFFIXES): Add .cc.
4 (.c.o): Apply same recipe for implicit rule .cc.o.
6 2013-03-27 Richard Biener <rguenther@suse.de>
8 PR tree-optimization/37021
9 * tree-vect-data-refs.c (vect_check_strided_load): Allow
10 REALPART/IMAGPART_EXPRs around the supported refs.
11 * tree-ssa-structalias.c (find_func_aliases): Assume that
12 floating-point values are not used to transfer pointers.
14 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
16 * gcc/target.def (TARGET_HAS_IFUNC_P): New target hook.
17 * gcc/doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
18 * gcc/doc/tm.texi: Regenerate.
19 * gcc/targhooks.h (default_has_ifunc_p): New.
20 * gcc/targhooks.c (default_has_ifunc_p): Ditto.
21 * gcc/config/linux-protos.h: New file.
22 * gcc/config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
23 this hook for linux which disables support of indirect functions in
25 * gcc/config/linux-android.c: New file.
26 * gcc/config/t-linux-android.c: Ditto.
27 * gcc/config.gcc: Added new object file linux-android.o.
28 * gcc/config/i386/i386.c (ix86_get_function_versions_dispatcher):
29 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
30 * gcc/varasm.c (do_assemble_alias): Likewise.
31 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
32 doesn't support indirect functions.
33 * configure: Regenerate.
35 2013-03-27 Bin Cheng <bin.cheng@arm.com>
38 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
39 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
42 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
44 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
46 2013-03-27 Terry Guo <terry.guo@arm.com>
48 * config/arm/arm-cores.def: Added core cortex-r7.
49 * config/arm/arm-tune.md: Regenerated.
50 * config/arm/arm-tables.opt: Regenerated.
51 * doc/invoke.texi: Added entry for core cortex-r7.
53 2013-03-27 Walter Lee <walt@tilera.com>
55 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
56 double-decrement of next_scratch_regno.
58 2013-03-27 Walter Lee <walt@tilera.com>
60 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
62 (insn_v1mulus): Ditto.
65 2013-03-27 Walter Lee <walt@tilera.com>
67 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
69 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
71 2013-03-27 Walter Lee <walt@tilera.com>
73 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute
75 (*sibcall_value): Ditto.
77 2013-03-27 Walter Lee <walt@tilera.com>
79 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
80 (insn_mnz_v8qi): ... this ...
81 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
83 (insn_v<n>mnz): Replaced by ...
84 (insn_v1mnz): ... this ...
85 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
87 (insn_mz_<mode>): Replaced by ...
88 (insn_mz_v8qi): ... this ...
89 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
91 (insn_v<n>mz): Replaced by ...
92 (insn_v1mz): ... this ...
93 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
96 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
98 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
100 2013-03-26 Roland McGrath <mcgrathr@google.com>
102 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
103 than fprintf with a non-constant, non-format string.
105 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
107 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
108 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
110 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
111 attribute. Use general_x64nomem_operand as operand 1 predicate.
112 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
113 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
114 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
115 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
116 (mov<mode>_insv_1): Remove expander. Merge insn with
117 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
118 Use general_x64nomem_operand as operand 1 predicate.
119 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
120 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
121 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
122 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
123 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
124 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
125 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
126 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
127 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
128 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
129 (general_x64nomem_operand): Ditto.
131 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
133 * config/rtems.opt: Add -pthread option.
135 2013-03-26 Richard Biener <rguenther@suse.de>
137 * alias.c (find_base_term): Avoid redundant and not used recursion.
138 (base_alias_check): Get the initial base term from the caller.
139 (true_dependence_1): Compute and pass base terms to base_alias_check.
140 (write_dependence_p): Likewise.
141 (may_alias_p): Likewise.
143 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
145 * config/aarch64/aarch64.c (aarch64_classify_address): Support
146 PC-relative load in SI modes and above only.
148 2013-03-26 Xinyu Qi <xyqi@marvell.com>
150 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
151 * config/arm/iwmmxt.md (WCGR0): Update.
152 (WCGR1, WCGR2, WCGR3): Likewise.
154 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
156 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
157 Use x64 and nox64 isa attributes.
159 2013-03-26 Richard Biener <rguenther@suse.de>
161 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
162 alignment computations and rely on get_object_alignment_1
163 for the !TYPE_P case.
164 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
166 2013-03-26 Walter Lee <walt@tilera.com>
168 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
169 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
171 2013-03-25 Jeff Law <law@redhat.com>
172 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
173 check for INTEGRAL_TYPE_P that was missing due to checking in
174 wrong version of prior patch.
176 2013-03-25 Walter Lee <walt@tilera.com>
178 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
179 TILEGX_INSN_SHUFFLEBYTES1.
180 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
182 (tilegx_builtins): Ditto.
183 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
185 2013-03-25 Walter Lee <walt@tilera.com>
187 * config/tilegx/tilegx.md (floatsisf2): New pattern.
188 (floatunssisf2): New pattern.
189 (floatsidf2): New pattern.
190 (floatunssidf2): New pattern.
192 2013-03-25 Walter Lee <walt@tilera.com>
194 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
195 tests for constraint J, K, N, P.
197 2013-03-25 Walter Lee <walt@tilera.com>
199 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
200 Use indirect/pcrel encoding.
201 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
204 2013-03-25 Steve Ellcey <sellcey@mips.com>
206 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
207 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
208 * config/mips/mips.c (mips_option_override): Set IMADD default.
209 * config/mips/mips.h (PTF_AVOID_IMADD): New.
210 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
211 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
212 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
213 * doc/invoke.texi (-mimadd/-mno-imadd): New.
215 2013-03-25 Jeff Law <law@redhat.com>
217 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
218 slightly to avoid creating and folding useless trees. Simplify
219 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
221 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
223 * config/i386/i386.md (*zero_extendsidi2): Merge with
224 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
225 * config/i386/predicates.md (x86_64_zext_operand): Rename from
226 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
227 targets. Clarify comment.
229 2013-03-25 Martin Jambor <mjambor@suse.cz>
231 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
232 pass-through jump functions differently.
233 (ipa_read_jump_function): Likewise. Also use setter functions to set
236 2013-03-25 Martin Jambor <mjambor@suse.cz>
238 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
239 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
241 (ipa_get_indirect_edge_target): New function.
242 (devirtualization_time_bonus): New parameter known_aggs, pass it to
243 ipa_get_indirect_edge_target. Update all callers.
244 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
245 ipa_get_indirect_edge_target_1 instead of calling
246 ipa_get_indirect_edge_target.
247 (create_specialized_node): Pass aggvlas to
248 ipcp_discover_new_direct_edges.
250 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
252 * config/arm/arm.md (f_sels, f_seld): New types.
253 (*cmov<mode>): New pattern.
254 * config/arm/predicates.md (arm_vsel_comparison_operator): New
257 2013-03-25 Kai Tietz <ktietz@redhat.com>
259 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
260 POSIX-printf for mingw-hosted builds.
262 2013-03-25 Richard Biener <rguenther@suse.de>
265 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
266 must-not-throw stmt location.
268 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
270 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
271 Emit load-acquire versions when acq is true.
272 (arm_emit_store_exclusive): Add rel parameter.
273 Emit store-release versions when rel is true.
274 (arm_split_compare_and_swap): Use acquire-release instructions
276 of barriers when appropriate.
277 (arm_split_atomic_op): Likewise.
278 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
279 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
280 (VUNSPEC_SLX): Likewise.
281 (VUNSPEC_LDA): Likewise.
282 (VUNSPEC_STL): Likewise.
283 * config/arm/sync.md (atomic_load<mode>): New pattern.
284 (atomic_store<mode>): Likewise.
285 (arm_load_acquire_exclusive<mode>): Likewise.
286 (arm_load_acquire_exclusivesi): Likewise.
287 (arm_load_acquire_exclusivedi): Likewise.
288 (arm_store_release_exclusive<mode>): Likewise.
290 2013-03-25 Catherine Moore <clm@codesourcery.com>
292 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
293 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
294 * config/mip/predicates.md (lwsp_swsp_operand,
295 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
296 sb16_operand, db4_operand, db7_operand, ib3_operand,
297 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
298 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
299 andi16_operand): New predicates.
300 * config/mips/mips.md (compression): New attribute.
301 (enabled): New attribute.
302 (length): Consider compression in computing length.
303 (shift_compression): New code attribute.
304 (*add<mode>3): New operands. Record compression.
305 (sub<mode>3): Likewise.
306 (one_cmpl<mode>2): Likewise.
307 (*and<mode>3): Likewise.
308 (*ior<mode>3): Likewise.
309 (unnamed pattern for xor): Likewise.
310 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
311 (*<optab><mode>3): Likewise.
312 (*mov<mode>_internal: Likewise.
313 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
314 (mips_unsigned_immediate_p): New.
315 (umips_lwsp_swsp_address_p): New.
316 (m16_based_address_p): New.
317 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
318 (mips_unsigned_immediate_p): New prototype.
319 (lwsp_swsp_address_p): New prototype.
320 (m16_based_address_p): New prototype.
321 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
322 (mips_signed_immediate_p): New function.
323 (m16_based_address_p): New function.
324 (lwsp_swsp_address_p): New function.
325 (mips_print_operand_punctuation): Recognize short delay slot insns
326 for microMIPS.add<mode>3"
328 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
331 * config/arm/iterators.md (v_cmp_result): New mode attribute.
332 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
334 2013-03-25 Richard Biener <rguenther@suse.de>
336 PR tree-optimization/56689
337 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
340 2013-03-25 Richard Biener <rguenther@suse.de>
342 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
344 (memory_references): Likewise.
345 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
346 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
347 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
348 (gather_mem_refs_in_loops): Fold into ...
349 (analyze_memory_references): ... this. Move initialization
350 to tree_ssa_lim_initialize.
351 (fill_always_executed_in): Rename to ...
352 (fill_always_executed_in_1): ... this.
353 (fill_always_executed_in): Move contains_call computation to
354 this new function from ...
355 (tree_ssa_lim_initialize): ... here.
356 (tree_ssa_lim): Call fill_always_executed_in.
358 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
360 * postreload.c (reload_combine): Fix code detecting returns.
362 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
364 * function.c (emit_use_return_register_into_block): On cc0 targets,
365 do not emit the sequence between cc0 setter and user.
367 2013-03-25 Kai Tietz <ktietz@redhat.com>
369 * config/i386/predicates.md (local_symbolic_operand): Interpret
370 dll-imported symbols as none-local.
372 2013-03-25 Richard Biener <rguenther@suse.de>
374 * tree-ssa-loop-im.c (struct depend): Remove.
375 (struct lim_aux_data): Make depends a vec of gimples.
376 (free_lim_aux_data): Adjust.
377 (add_dependency): Likewise.
378 (set_level): Likewise.
380 2013-03-25 Richard Biener <rguenther@suse.de>
383 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
384 the pointer returned by calls with ECF_MALLOC set.
386 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
388 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
390 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
392 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
393 using MMXMODE mode iterator.
394 (*move<mode>_internal): Merge with *movv2sf_internal and
395 *movv2sf_internal_rex64 using MMXMODE mode iterator.
397 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
399 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
400 (record_last_mem_set_info): Likewise.
402 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
403 of XNEWVEC followed by memset.
404 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
406 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
408 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
409 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
410 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
411 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
412 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
413 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
414 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
415 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
416 BARRIER_P instead of GET_CODE.
418 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
420 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
421 inaccuracy in the probing code.
423 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
424 (ctrapdi4): Likewise.
426 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
428 * calls.c (expand_call): Add missing guard to code handling return
429 of non-BLKmode structures in MSB.
430 * function.c (expand_function_end): Likewise.
432 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
434 * combine.c (try_combine): Adjust comment. Do not add the set of
435 insn #0 if the destination indirectly is set or dies in insn #2.
436 Tidy up code to distribute a new note.
438 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
440 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
441 also for alternatives 16 and 17.
443 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
445 * config/i386/sse.md (*mov<mode>_internal): Merge with
446 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
447 Emit insn template depending on type attribute. Use
448 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
449 movd instead of movq mnemonic for interunit moves. Rewrite mode
450 attribute calculation. Remove unit attribute calculation.
451 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
452 Set prefix_data16 attribute for DImode ssemov types.
453 Use Ym instead of y for SSE-MMX conversion alternatives.
454 Reorder operand constraints.
456 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
458 * df.h (df_insn_delete): Adjust prototype.
459 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
460 and let it decide whether mark the basic block dirty.
461 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
462 * df-scan.c (df_insn_info_delete): New helper function, split
463 off from df_insn_delete.
464 (df_scan_free_bb_info): Use it.
465 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
467 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
468 that the insn is actually an insn and it has a non-NULL basic block.
469 Do not mark basic block dirty if only deleting a DEBUG_INSN.
471 2013-03-22 Richard Biener <rguenther@suse.de>
473 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
475 (mem_ref_alloc): Do not allocate them.
476 (refs_independent_p): Do not query or maintain a cache.
478 2013-03-22 Richard Biener <rguenther@suse.de>
480 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
481 (gather_mem_refs_in_loops): Do not compute it.
482 (analyze_memory_references): Do not allocate it.
483 (tree_ssa_lim_finalize): Do not free it.
484 (for_all_locs_in_loop): Do not query all_refs_in_loop.
486 2013-03-22 Richard Biener <rguenther@suse.de>
488 * is-a.h (as_a): Use gcc_checking_assert.
490 2013-03-22 Ian Bolton <ian.bolton@arm.com>
492 * config/aarch64/aarch64.c (aarch64_print_operand): New
493 format specifier for printing a constant in hex.
494 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
495 format specifier for printing second operand.
497 2013-03-22 Richard Biener <rguenther@suse.de>
499 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
501 (gather_mem_refs_in_loops): Perform store accumulation here.
502 (create_vop_ref_mapping_loop): Remove.
503 (create_vop_ref_mapping): Likewise.
504 (analyze_memory_references): Initialize refs_stored_in_loop.
505 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
506 (record_indep_loop): Remove.
507 (record_dep_loop): New function.
508 (ref_indep_loop_p_1): Adjust to only walk over references
509 in the loop, not its subloops.
510 (ref_indep_loop_p): Rename to ...
511 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
512 maintaining a more fine-grained cache.
513 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
514 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
516 2013-03-22 Richard Biener <rguenther@suse.de>
518 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
519 (struct mem_ref): Make accesses_in_loop a vec of a vec of
520 aggregate mem_ref_loc.
521 (free_mem_ref_locs): Inline into ...
522 (memref_free): ... this and adjust.
523 (mem_ref_alloc): Adjust.
524 (mem_ref_locs_alloc): Remove.
525 (record_mem_ref_loc): Adjust.
526 (get_all_locs_in_loop): Rewrite into ...
527 (for_all_locs_in_loop): ... this iterator.
528 (rewrite_mem_ref_loc): New functor.
529 (rewrite_mem_refs): Use for_all_locs_in_loop.
530 (sm_set_flag_if_changed): New functor.
531 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
532 (ref_always_accessed): New functor.
533 (ref_always_accessed_p): Use for_all_locs_in_loop.
535 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
537 * tree-pass.h (PROP_gimple_lvec): New.
538 * passes.c (dump_properties): Handle PROP_gimple_lvec.
539 (init_optimization_passes): Move pass_lower_vector.
540 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
542 (pass_lower_vector): Provide PROP_gimple_lvec.
543 (pass_lower_vector_ssa): Likewise.
544 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
546 2013-03-21 Mark Wielaard <mjw@redhat.com>
548 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
550 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
552 * config/i386/i386.md (*movdi_internal): Disparage slightly
553 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
554 conversion alternatives.
556 2013-03-21 Jakub Jelinek <jakub@redhat.com>
559 * diagnostic.def (DK_WERROR): New kind.
560 * diagnostic.h (werrorcount): Define.
561 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
562 promoted to DK_ERROR, increment DK_WERROR counter instead of
564 * toplev.c (toplev_main): Call print_ignored_options even if
565 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
566 even if just werrorcount is non-zero.
569 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
571 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
572 (string_cst_pool_decl): New function.
573 (optimize_one_addr_into_implicit_ptr): New function.
574 (resolve_addr_in_expr): Optimize DWARF location expression
575 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
576 which doesn't live in memory, but has DW_AT_location or
577 DW_AT_const_value, or refers to a string literal, into
578 DW_OP_GNU_implicit_pointer.
579 (optimize_location_into_implicit_ptr): New function.
580 (resolve_addr): If removing DW_AT_location of a variable because
581 it was DW_OP_addr of address of the variable, but the variable doesn't
582 live in memory, try to emit const value attribute for the initializer.
584 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
586 * tree.h (VECTOR_TYPE_P): New macro.
587 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
589 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
590 VEC_COND_EXPR cannot be lvalues.
591 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
593 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
595 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
596 Restrict the transformation to equal modes.
598 2013-03-21 Richard Biener <rguenther@suse.de>
600 PR tree-optimization/39326
601 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
602 (MEM_ANALYZABLE): Adjust.
603 (record_mem_ref_loc): Move bitmap ops ...
604 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
605 unanalyzable refs, do not record locations for it.
606 (analyze_memory_references): Allocate ref zero as shared
608 (refs_independent_p): Do not test for unanalyzed mems here.
609 (ref_indep_loop_p_1): Special-case disambiguation against
611 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
613 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
615 * config/arm/arm-protos.h (tune_params): Add
616 prefer_neon_for_64bits field.
617 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
618 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
619 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
620 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
621 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
622 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
623 (arm_option_override): Handle -mneon-for-64bits new option.
624 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
625 (prefer_neon_for_64bits): Declare new variable.
626 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
627 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
628 (arch_enabled): Handle new arch types. Remove support for onlya8
630 (one_cmpldi2): Use new arch names.
631 (zero_extend<mode>di2, extend<mode>di2): Ditto.
632 * config/arm/arm.opt (mneon-for-64bits): Add option.
633 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
634 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
635 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
637 * doc/invoke.texi (-mneon-for-64bits): Document.
639 2013-03-21 Richard Biener <rguenther@suse.de>
641 PR tree-optimization/39326
642 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
643 (sort_bbs_in_loop_postorder_cmp): New function.
644 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
646 2013-03-21 Richard Biener <rguenther@suse.de>
648 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
649 (vect_insert_into_interleaving_chain): Likewise.
650 (vect_drs_dependent_in_basic_block): Inline ...
651 (vect_slp_analyze_data_ref_dependence): ... here. New function,
653 (vect_analyze_data_ref_dependence): ... here. Simplify.
654 (vect_check_interleaving): Simplify.
655 (vect_analyze_data_ref_dependences): Likewise. Split out ...
656 (vect_slp_analyze_data_ref_dependences): ... this new function.
657 (dr_group_sort_cmp): New function.
658 (vect_analyze_data_ref_accesses): Compute data-reference groups
659 here instead of in vect_analyze_data_ref_dependence. Use
660 a more efficient algorithm.
661 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
662 vect_slp_analyze_data_ref_dependences. Call
663 vect_analyze_data_ref_accesses earlier.
664 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
665 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
666 (vect_slp_analyze_data_ref_dependences): New prototype.
668 2013-03-21 Richard Biener <rguenther@suse.de>
670 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
671 ref is stored in the loop.
672 (find_refs_for_sm): Walk only over all stores.
673 (store_motion_loop): Allocate from lim_bitmap_obstack.
674 (store_motion): Likewise.
676 2013-03-21 Richard Biener <rguenther@suse.de>
678 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
679 Update virtual SSA form.
681 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
683 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
684 * configure: Regenerate.
685 * config.in: Regenerate.
686 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
687 if !HAVE_LD_EH_FRAME_CIEV3.
689 2013-03-21 Richard Biener <rguenther@suse.de>
691 * tree-cfg.c (verify_expr_no_block): New function.
692 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
693 nor DECL_VALUE_EXPR have locations with associated blocks.
694 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
695 (clear_unused_block_pointer): Remove code dealing with
696 blocks in DECL_DEBUG_EXPR locations.
698 2013-03-21 Richard Biener <rguenther@suse.de>
700 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
701 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
702 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
703 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
704 instead of DECL_DEBUG_EXPR_IS_FROM.
705 * gimplify.c (gimplify_modify_expr): Likewise.
706 * tree-cfg.c (verify_expr_location_1): Likewise.
707 * tree-complex.c (create_one_component_var): Likewise.
708 * tree-sra.c (create_access_replacement): Likewise.
709 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
710 (clear_unused_block_pointer): Likewise.
711 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
712 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
713 * var-tracking.c (var_debug_decl): Likewise.
714 (track_expr_p): Likewise.
715 * tree-inline.c (add_local_variables): Likewise. Set
716 DECL_HAS_DEBUG_EXPR_P after copying it.
717 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
718 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
720 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
723 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
724 * configure: Regenerate.
725 * config.in: Regenerate.
726 * config/i386/i386.md (*movdf_internal): Use
727 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
728 movd instead of movq mnemonic for interunit moves.
729 (*movdi_internal): Ditto.
731 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
733 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
734 (abd<mode>_3): New pattern.
735 (aba<mode>_3): New pattern.
736 (fabd<mode>_3): New pattern.
738 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
740 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
741 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
742 occurrence of REGISTER_PREFIX as its empty string.
744 2013-03-20 Jeff Law <law@redhat.com>
746 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
747 addititional equivalences for equality comparisons between an SSA_NAME
748 and a constant where the SSA_NAME was set from a widening conversion.
750 2013-03-20 Walter Lee <walt@tilera.com>
752 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
754 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
756 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
757 depending on type attribute.
758 (*movti_internal): Ditto.
759 (*movtf_internal): Ditto.
760 (*movxf_internal): Ditto.
761 (*movdf_internal): Ditto.
762 (*movsf_internal): Ditto.
764 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
766 * config/i386/i386.md (*movti_internal): Set prefix attribute to
767 maybe_vex for sselog1 and ssemov types.
768 (*movdi_internal): Reorder operand constraints.
769 (*movsi_internal): Ditto. Set prefix attribute to
770 maybe_vex for sselog1 and ssemov types.
771 (*movtf_internal): Set prefix attribute to maybe_vex
772 for sselog1 and ssemov types.
773 (*movdf_internal): Ditto. Set prefix_data16 attribute for
774 DImode ssemov types. Reorder operand constraints.
775 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
776 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
777 attribute for SImode ssemov types. Reorder operand constraints.
779 2013-03-20 Martin Jambor <mjambor@suse.cz>
781 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
782 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
784 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
786 * config/rs6000/predicates.md (indexed_address, update_address_mem
787 update_indexed_address_mem): New predicates.
788 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
789 attribute for load/store instructions.
790 * config/rs6000/dfp.md (movsd_store): Likewise.
791 (movsd_load): Likewise.
792 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
793 (unnamed HI->DI extend define_insn): Likewise.
794 (unnamed SI->DI extend define_insn): Likewise.
795 (unnamed QI->SI extend define_insn): Likewise.
796 (unnamed QI->HI extend define_insn): Likewise.
797 (unnamed HI->SI extend define_insn): Likewise.
798 (unnamed HI->SI extend define_insn): Likewise.
799 (extendsfdf2_fpr): Likewise.
800 (movsi_internal1): Likewise.
801 (movsi_internal1_single): Likewise.
802 (movhi_internal): Likewise.
803 (movqi_internal): Likewise.
804 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
805 attribute for load/store instructions.
806 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
808 (mov<mode>_softfloat): Likewise.
809 (mov<mode>_hardfloat32): Likewise.
810 (mov<mode>_hardfloat64): Likewise.
811 (mov<mode>_softfloat64): Likewise.
812 (movdi_internal32): Likewise.
813 (movdi_internal64): Likewise.
814 (probe_stack_<mode>): Likewise.
816 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
818 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
819 floating point, and decimal floating point to reload iterator.
821 * config/rs6000/constraints.md (wl constraint): New constraints to
822 return FLOAT_REGS if certain options are used to reduce the number
823 of separate patterns that exist in the file.
824 (wx constraint): Likewise.
825 (wz constraint): Likewise.
827 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
828 -mdebug=reg, print wg, wl, wx, and wz constraints.
829 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
830 Initialize the reload functions for 64-bit binary/decimal floating
832 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
833 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
834 create the buffer on the stack to overcome not having a 32-bit
836 (rs6000_emit_move): Likewise.
837 (rs6000_secondary_memory_needed_rtx): Likewise.
838 (rs6000_alloc_sdmode_stack_slot): Likewise.
839 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
840 via xxlxor, just like DFmode 0.0.
842 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
843 define as 1 if we are running on a power7 or newer.
844 (enum r6000_reg_class_enum): Add new constraints.
846 * config/rs6000/dfp.md (movsd): Delete, combine with binary
847 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
848 with other moves by using conditional constraits (wg). Use LFIWZX
849 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
850 (movsd splitter): Likewise.
851 (movsd_hardfloat): Likewise.
852 (movsd_softfloat): Likewise.
854 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
855 binary and decimal floating point moves.
856 (fmove_ok): New attributes to combine binary and decimal floating
857 point moves, and to combine power6x (mfpgpr) moves along normal
859 (real_value_to_target): Likewise.
866 (movsf): Combine binary and decimal floating point moves. Combine
867 power6x (mfpgpr) moves with other moves by using conditional
868 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
869 (mov<mode> for SFmode/SDmode); Likewise.
870 (SFmode/SDmode splitters): Likewise.
871 (movsf_hardfloat): Likewise.
872 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
873 (movsf_softfloat): Likewise.
874 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
876 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
877 wx and wz constraints.
879 * config/rs6000/constraints.md (wg constraint): New constraint to
880 return FLOAT_REGS if -mmfpgpr (power6x) was used.
882 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
885 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
886 -mdebug=reg, print wg, wl, wx, and wz constraints.
887 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
888 Initialize the reload functions for 64-bit binary/decimal floating
890 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
891 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
892 create the buffer on the stack to overcome not having a 32-bit
894 (rs6000_emit_move): Likewise.
895 (rs6000_secondary_memory_needed_rtx): Likewise.
896 (rs6000_alloc_sdmode_stack_slot): Likewise.
897 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
898 via xxlxor, just like DFmode 0.0.
900 * config/rs6000/dfp.md (movdd): Delete, combine with binary
901 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
902 with other moves by using conditional constraits (wg). Use LFIWZX
903 and STFIWX for loading SDmode on power7.
904 (movdd splitters): Likewise.
905 (movdd_hardfloat32): Likewise.
906 (movdd_softfloat32): Likewise.
907 (movdd_hardfloat64_mfpgpr): Likewise.
908 (movdd_hardfloat64): Likewise.
909 (movdd_softfloat64): Likewise.
911 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
912 64-bit binary and decimal floating point moves.
913 (FMOVE64X): Likewise.
914 (movdf): Combine 64-bit binary and decimal floating point moves.
915 Combine power6x (mfpgpr) moves with other moves by using
916 conditional constraits (wg).
917 (mov<mode> for DFmode/DDmode): Likewise.
918 (DFmode/DDmode splitters): Likewise.
919 (movdf_hardfloat32): Likewise.
920 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
921 (movdf_softfloat32): Likewise.
922 (movdf_hardfloat64_mfpgpr): Likewise.
923 (movdf_hardfloat64): Likewise.
924 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
925 (movdf_softfloat64): Likewise.
926 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
927 (reload_<mode>_load): Move to later in the file so they aren't in
928 the middle of the floating point move insns.
929 (reload_<mode>_store): Likewise.
931 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
934 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
935 constraint if -mdebug=reg.
936 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
937 Enable using dd reload support if needed.
939 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
940 binary and decimal floating point moves in rs6000.md.
941 (movtd_internal): Likewise.
943 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
944 decimal floating point moves.
946 (movtf_internal): Likewise.
947 (mov<mode>_internal, TDmode/TFmode): Likewise.
948 (movtf_softfloat): Likewise.
949 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
951 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
952 movdi_internal64, using wg constraint for move direct operations.
953 (movdi_internal64): Likewise.
955 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
956 MODES_TIEABLE_P for selected modes. Print the numerical value of
957 the various virtual registers. Use GPR/FPR first/last values,
958 instead of hard coding the register numbers. Print which modes
959 have reload functions registered.
960 (rs6000_option_override_internal): If -mdebug=reg, trace the options
961 settings before/after setting cpu, target and subtarget settings.
962 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
963 and for secondary reload failures in rs6000_secondary_reload_inner.
964 (rs6000_secondary_reload_fail): Likewise.
965 (rs6000_secondary_reload_inner): Likewise.
967 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
968 macros for first/last GPR and FPR registers.
969 (LAST_GPR_REGNO): Likewise.
970 (FIRST_FPR_REGNO): Likewise.
971 (LAST_FPR_REGNO): Likewise.
973 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
974 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
975 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
976 (vcond<mode><mode>): Likewise.
977 (vcondu<mode><mode>): Likewise.
978 (vector_gtu<mode>): Likewise.
979 (vector_gte<mode>): Likewise.
980 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
981 to prevent the compiler from converting DImode operations to TImode.
982 (ior<mode>3): Likewise.
983 (and<mode>3): Likewise.
984 (one_cmpl<mode>2): Likewise.
985 (nor<mode>3): Likewise.
986 (andc<mode>3): Likewise.
988 * config/rs6000/constraints.md (wt constraint): New constraint
989 that returns VSX_REGS if TImode is allowed in VSX registers.
991 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
994 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
995 similar to TImode, but it is restricted to being in the GPRs.
997 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
998 TImode to occupy a single VSX register.
1000 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
1001 -mvsx-timode for power7/power8.
1002 (power7 cpu): Likewise.
1003 (power8 cpu): Likewise.
1005 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
1006 sure that TFmode/TDmode take up two registers if they are ever
1007 allowed in the upper VSX registers.
1008 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
1010 (rs6000_init_hard_regno_mode_ok): Likewise.
1011 (rs6000_debug_reg_global): Add debugging for PTImode and wt
1012 constraint. Print if LRA is turned on.
1013 (rs6000_option_override_internal): Give an error if -mvsx-timode
1014 and VSX is not enabled.
1015 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
1016 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
1017 to reg+offset addressing. Use PTImode when checking offset
1018 addresses for validity.
1019 (reg_offset_addressing_ok_p): Likewise.
1020 (rs6000_legitimate_offset_address_p): Likewise.
1021 (rs6000_legitimize_address): Likewise.
1022 (rs6000_legitimize_reload_address): Likewise.
1023 (rs6000_legitimate_address_p): Likewise.
1024 (rs6000_eliminate_indexed_memrefs): Likewise.
1025 (rs6000_emit_move): Likewise.
1026 (rs6000_secondary_reload): Likewise.
1027 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
1028 reloads to fpr registers to continue to use reg+offset addressing,
1029 but 64-bit reloads to altivec registers need reg+reg addressing.
1030 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
1031 it. Treat LO_SUM like a PLUS operation.
1032 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
1033 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
1034 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
1035 registers to share a register with a smaller sized type, since VSX
1036 puts scalars in the upper 64-bits.
1037 (print_operand): Add support for PTImode.
1038 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
1039 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
1040 registers, but don't have arithmetic support.
1041 (rs6000_memory_move_cost): Add test for VSX.
1042 (rs6000_opt_masks): Add -mvsx-timode.
1044 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
1047 (VSr): Use wt constraint for TImode.
1048 (VSv): Drop TImode support.
1049 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
1050 (vsx_movti_64bit): Likewise.
1051 (vsx_movti_32bit): Likewise.
1052 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
1053 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
1054 one '?' on the appropriate output constraint. Do not allow TImode
1055 logical operations on 32-bit systems.
1056 (vsx_ior<mode>3): Likewise.
1057 (vsx_xor<mode>3): Likewise.
1058 (vsx_one_cmpl<mode>2): Likewise.
1059 (vsx_nor<mode>3): Likewise.
1060 (vsx_andc<mode>3): Likewise.
1061 (vsx_concat_<mode>): Likewise.
1062 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
1064 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
1065 OPTION_MASK_VSX_TIMODE.
1066 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
1067 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
1069 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
1070 (TI2 iterator): New iterator for TImode, PTImode.
1071 (wd mode attribute): Add values for vector types.
1072 (movti_string): Replace TI move operations with operations for TImode
1073 and PTImode. Add support for TImode being allowed in VSX registers.
1074 (mov<mode>_string, TImode/PTImode): Likewise.
1075 (movti_ppc64): Likewise.
1076 (mov<mode>_ppc64, TImode/PTImode): Likewise.
1077 (TI mode splitters): Likewise.
1079 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
1082 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
1084 PR tree-optimization/56355
1085 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
1086 Also handle integers with undefined overflow.
1088 2013-03-20 Catherine Moore <clm@codesourcery.com>
1089 Maciej W. Rozycki <macro@codesourcery.com>
1090 Tom de Vries <tom@codesourcery.com>
1091 Nathan Sidwell <nathan@codesourcery.com>
1092 Iain Sandoe <iain@codesourcery.com>
1093 Nathan Froyd <froydnj@codesourcery.com>
1094 Chao-ying Fu <fu@mips.com>
1096 * doc/extend.texi: (micromips, nomicromips, nocompression):
1097 Document new function attributes.
1098 * doc/invoke.texi (minterlink-compressed, mmicromips,
1099 m14k, m14ke, m14kec): Document new options.
1100 (minterlink-mips16): Update documentation.
1101 * doc/md.texi (ZC, ZD): Document new constraints.
1102 * configure.ac (gcc_cv_as_micromips): Check if linker
1103 supports the .set micromips directive.
1104 * configure: Regenerate.
1105 * config.in: Regenerate.
1106 * config/mips/mips-tables.opt: Regenerate.
1107 * config/mips/micromips.md: New file.
1108 * constraints.md (ZC, ZD): New constraints.
1109 * config/mips/predicates.md (movep_src_register): New predicate.
1110 (movep_src_operand): New predicate.
1111 (non_volatile_mem_operand): New predicate.
1112 * config/mips/mips.md (multimem): New type.
1113 (length): Differentiate between 17-bit and 18-bit branch offsets.
1114 (MOVEP1, MOVEP2): New mode iterator.
1115 (mov_<load>l): Use ZC constraint.
1116 (mov_<load>r): Likewise.
1117 (mov_<store>l): Likewise.
1118 (mov_<store>r): Likewise.
1119 (*branch_equality<mode>_inverted): Add microMIPS support.
1120 (*branch_equality<mode>): Likewise.
1121 (*jump_absolute): Likewise.
1122 (indirect_jump_<mode>): Likewise.
1123 (tablejump_<mode>): Likewise.
1124 (<optab>_internal): Likewise.
1125 (sibcall_internal): Likewise.
1126 (sibcall_value_internal): Likewise.
1127 (prefetch): Use constraint ZD.
1128 * config/mips/mips.opt (minterlink-compressed): New option.
1129 (minterlink-mips16): Now an alias for minterlink-compressed.
1130 (mmicromips): New option.
1131 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1132 (compare_and_swap_12): Likewise.
1133 (sync_add<mode>): Likewise.
1134 (sync_<optab>_12): Likewise.
1135 (sync_old_<optab>_12): Likewise.
1136 (sync_new_<optab>_12): Likewise.
1137 (sync_nand_12): Likewise.
1138 (sync_old_nand_12): Likewise.
1139 (sync_new_nand_12): Likewise.
1140 (sync_sub<mode>): Likewise.
1141 (sync_old_add<mode>): Likewise.
1142 (sync_old_sub<mode>): Likewise.
1143 (sync_new_add<mode>): Likewise.
1144 (sync_new_sub<mode>): Likewise.
1145 (sync_<optab><mode>): Likewise.
1146 (sync_old_<optab><mode>): Likewise.
1147 (sync_new_<optab><mode>): Likewise.
1148 (sync_nand<mode>): Likewise.
1149 (sync_old_nand<mode>): Likewise.
1150 (sync_new_nand<mode>): Likewise.
1151 (sync_lock_test_and_set<mode>): Likewise.
1152 (test_and_set_12): Likewise.
1153 (atomic_compare_and_swap<mode>): Likewise.
1154 (atomic_exchange<mode>_llsc): Likewise.
1155 (atomic_fetch_add<mode>_llsc): Likewise.
1156 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1157 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1158 (umips_save_restore_pattern_p): Likewise.
1159 (umips_load_store_pair_p): Likewise.
1160 (umips_output_load_store_pair): Likewise.
1161 (umips_movep_target_p): Likewise.
1162 (umips_12bit_offset_address_p): Likewise.
1163 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1164 (mips_base_mips16): Rename this...
1165 (mips_base_compression_flags): ...to this. Update all uses.
1166 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1167 (mips_mips16_decl_p): Delete.
1168 (mips_nomips16_decl_p): Delete.
1169 (mips_get_compress_on_flags): New function.
1170 (mips_get_compress_off_flags): New function.
1171 (mips_get_compress_mode): New function.
1172 (mips_get_compress_on_name): New function.
1173 (mips_get_compress_off_name): New function.
1174 (mips_insert_attributes): Support multiple compression types.
1175 (mips_merge_decl_attributes): Likewise.
1176 (umips_12bit_offset_address_p): New function.
1177 (mips_start_function_definition): Emit .set micromips directive.
1178 (mips_call_may_need_jalx_p): New function.
1179 (mips_function_ok_for_sibcall): Add microMIPS support.
1180 (mips_print_operand_punctuation): Support short delay slots and
1182 (umips_swm_mask, umips_swm_encoding): New.
1183 (umips_build_save_restore): New function.
1184 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1185 (was_mips16_p): Remove.
1186 (old_compression_mode): New.
1187 (mips_set_compression_mode): New function.
1188 (mips_set_current_function): Add microMIPS support.
1189 (mips_option_override): Likewise.
1190 (umips_save_restore_pattern_p): New function.
1191 (umips_output_save_restore): New function.
1192 (umips_load_store_pair_p_1): New function.
1193 (umips_load_store_pair_p): New function.
1194 (umips_output_load_store_pair_1): New function.
1195 (umips_output_load_store_pair): New function.
1196 (umips_movep_target_p) New function.
1197 (mips_prepare_pch_save): Add microMIPS support.
1198 * config/mips/mips.h (TARGET_COMPRESSION): New.
1199 (TARGET_CPU_CPP_BUILTINS): Update macro
1200 to use new compression flags and to support microMIPS.
1201 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1202 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1203 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1204 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1205 (ASM_SPEC): Support mmicromips and mno-micromips.
1206 (M16STORE_REG_P): New macro.
1207 (MIPS_CALL): Support TARGET_MICROMIPS.
1208 (MICROMIPS_J): New macro.
1209 (mips_base_mips16): Rename this...
1210 (mips_base_compression_flags): ...to this.
1211 (UMIPS_12BIT_OFFSET_P): New macro.
1212 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1213 (MULTILIB_DIRNAMES): Likewise.
1214 2013-03-20 Richard Biener <rguenther@suse.de>
1216 PR tree-optimization/56661
1217 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
1218 the result does not have to be distinct.
1220 2013-03-20 Richard Biener <rguenther@suse.de>
1222 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
1225 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1226 Steven Bosscher <steven@gcc.gnu.org>
1228 PR rtl-optimization/56605
1229 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
1231 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1234 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
1235 that require movd instead of movq.
1237 2013-03-20 Richard Biener <rguenther@suse.de>
1239 * tree-ssa-structalias.c (struct variable_info): Add pointer
1240 to the first field of an aggregate with sub-vars. Make
1241 this and the pointer to the next subfield its ID.
1242 (vi_next): New function.
1243 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
1244 storedanything_id, integer_id): Increment by one.
1245 (new_var_info, get_call_vi, lookup_call_clobber_vi,
1246 get_call_clobber_vi): Adjust.
1247 (solution_set_expand): Simplify and speedup.
1248 (solution_set_add): Inline into ...
1249 (set_union_with_increment): ... this. Adjust accordingly.
1250 (do_sd_constraint): Likewise.
1251 (do_ds_constraint): Likewise.
1252 (do_complex_constraint): Simplify.
1253 (build_pred_graph): Adjust.
1254 (solve_graph): Likewise. Simplify and speedup.
1255 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
1256 get_constraint_for_component_ref, get_constraint_for_1,
1257 first_vi_for_offset, first_or_preceding_vi_for_offset,
1258 create_function_info_for, create_variable_info_for_1,
1259 create_variable_info_for, intra_create_variable_infos): Adjust.
1260 (init_base_vars): Push NULL for ID zero.
1261 (compute_points_to_sets): Adjust.
1263 2013-03-20 Richard Biener <rguenther@suse.de>
1265 * cfgloop.c (verify_loop_structure): Streamline and avoid
1266 ICEing on corrupt loop tree.
1267 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
1270 2013-03-20 Richard Biener <rguenther@suse.de>
1272 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
1273 check whether an SSA update is needed.
1275 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
1277 * config/mips/constraints.md (T): Rename to...
1281 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
1282 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
1284 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1286 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
1287 (*subsi3_carryin_uxtw): Likewise.
1289 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1291 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
1292 (*rorsi3_insn_uxtw): Likewise.
1294 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1296 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
1297 (*extrsi5_insn_uxtw): Likewise.
1299 2013-03-19 Richard Biener <rguenther@suse.de>
1301 PR tree-optimization/56273
1302 * passes.c (init_optimization_passes): Move second VRP after DOM.
1304 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
1306 * config/i386/i386.md (*movti_internal): Merge from
1307 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
1308 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
1309 nox64 isa attributes.
1311 2013-03-18 Richard Biener <rguenther@suse.de>
1313 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
1315 (merge_node_constraints): Likewise.
1316 (build_succ_graph): Likewise.
1317 (valid_graph_edge): Inline into single caller.
1318 (unify_nodes): Likewise. Use bitmap_set_bit return value
1320 (scc_visit): Fix formatting and variable use.
1321 (do_sd_constraint): Use gcc_checking_assert.
1322 (do_ds_constraint): Likewise.
1323 (do_complex_constraint): Likewise.
1324 (condense_visit): Likewise. Cleanup.
1325 (dump_pred_graph): New function.
1326 (perform_var_substitution): Dump the pred-graph before
1327 variable substitution.
1328 (find_equivalent_node): Use gcc_checking_assert.
1329 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
1331 2013-03-18 Richard Biener <rguenther@suse.de>
1333 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1334 Remove cond_expr_stmt_list argument and do not gimplify the
1336 (vect_loop_versioning): Adjust.
1337 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1338 Cleanup to use less temporaries.
1339 (vect_create_data_ref_ptr): Cleanup.
1341 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1343 PR tree-optimization/56635
1344 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
1345 require types_compatible_p types.
1347 2013-03-18 Nick Clifton <nickc@redhat.com>
1349 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
1352 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
1353 Add missing line to comment describing function.
1355 2013-03-18 Richard Biener <rguenther@suse.de>
1357 PR tree-optimization/56210
1358 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1359 Handle string / character search functions.
1360 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1362 2013-03-18 Richard Biener <rguenther@suse.de>
1365 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
1366 and implement properly.
1367 * gimple.h (gimple_cond_single_var_p): Remove.
1369 2013-03-18 Richard Biener <rguenther@suse.de>
1371 * tree-data-ref.h (find_data_references_in_loop): Declare.
1372 * tree-data-ref.c (get_references_in_stmt): Use a stack
1373 vector pre-allocated in the callers.
1374 (find_data_references_in_stmt): Adjust.
1375 (graphite_find_data_references_in_stmt): Likewise.
1376 (create_rdg_vertices): Likewise.
1377 (find_data_references_in_loop): Export.
1378 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
1379 Compute dependences here...
1380 (vect_analyze_data_refs): ...not here. When we encounter
1381 a non-vectorizable data reference in basic-block vectorization
1382 truncate the data reference vector. Do not bother to
1383 fixup data-dependence information for gather loads.
1384 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
1385 of data references, as reported.
1387 2013-03-18 Richard Biener <rguenther@suse.de>
1389 PR tree-optimization/3713
1390 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
1391 has_constants and expr.
1392 (stmt_has_constants): Properly valueize SSA names when deciding
1393 whether the stmt has constants.
1395 2013-03-18 Richard Biener <rguenther@suse.de>
1397 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
1398 whole function when there is nothing to do.
1399 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
1400 * tree-vectorizer.c (vectorize_loops): Update virtual and
1401 loop-closed SSA once.
1402 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
1404 2013-03-18 Richard Biener <rguenther@suse.de>
1407 * domwalk.c (bb_postorder): New global static.
1408 (cmp_bb_postorder): New function.
1409 (walk_dominator_tree): Replace scheme imposing an order for
1410 visiting dominator sons by one sorting them at the time they
1411 are pushed on the stack.
1413 2013-03-18 Richard Biener <rguenther@suse.de>
1415 PR tree-optimization/39326
1416 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
1417 (struct mem_ref): Replace mem member with ao_ref typed member.
1418 (MEM_ANALYZABLE): Adjust.
1419 (memref_eq): Likewise.
1420 (mem_ref_alloc): Likewise.
1421 (gather_mem_refs_stmt): Likewise.
1422 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
1423 (execute_sm_if_changed_flag_set): Adjust.
1424 (execute_sm): Likewise.
1425 (ref_always_accessed_p): Likewise.
1426 (refs_independent_p): Likewise.
1427 (can_sm_ref_p): Likewise.
1429 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1432 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
1433 return 1 even for !unsignedp.
1435 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1437 * config/i386/i386.md (isa): Add x64 and nox64.
1438 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
1439 (*pushtf): Enable *roF alternative for x64 isa only.
1440 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
1441 mode attribute of integer alternatives to DImode for TARGET_64BIT.
1442 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
1443 (*movtf_internal): Merge from *movtf_internal_rex64 and
1444 *movtf_internal_sse. Use x64 and nox64 isa attributes.
1445 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
1446 nox64 isa attributes.
1447 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
1448 nox64 isa attributes.
1449 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
1451 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1453 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1455 2013-03-17 Jakub Jelinek <jakub@redhat.com>
1458 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
1459 class names. Remove trailing comma after "ALL_REGS".
1461 2013-03-16 Jan Hubicka <jh@suse.cz>
1463 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
1464 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
1465 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
1466 of cgraph_get_create_node.
1467 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1469 2013-03-16 Jason Merrill <jason@redhat.com>
1472 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
1473 with DW_AT_default_value.
1475 2013-03-16 Jakub Jelinek <jakub@redhat.com>
1477 * BASE-VER: Set to 4.9.0.
1479 2013-03-14 Andi Kleen <ak@linux.intel.com>
1482 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
1483 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
1484 Document _x* TSX intrinsics.
1486 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1487 David Holsgrove <david.holsgrove@xilinx.com>
1489 * configure.ac: Add MicroBlaze TLS support detection.
1490 * configure: Regenerate.
1491 * config/microblaze/microblaze-protos.h
1492 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
1493 symbol_mentioned_p, label_mentioned_p): Add prototypes.
1494 * config/microblaze/microblaze.c (microblaze_address_type): Add
1495 ADDRESS_TLS and tls_reloc address types.
1496 (microblaze_address_info): Add tls_reloc.
1497 (TARGET_HAVE_TLS): Define.
1498 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
1499 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
1500 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
1501 load_tls_operand, microblaze_call_tls_get_addr,
1502 microblaze_legitimize_tls_address): New functions.
1503 (microblaze_classify_unspec): Handle UNSPEC_TLS.
1504 (get_base_reg): Use microblaze_tls_symbol_p.
1505 (microblaze_classify_address): Handle TLS.
1506 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
1507 label_mentioned_p and microblaze_tls_referenced_p.
1508 (microblaze_legitimize_address): Handle TLS.
1509 (microblaze_address_insns): Handle ADDRESS_TLS.
1510 (pic_address_needs_scratch): Handle TLS.
1511 (print_operand_address): Handle TLS.
1512 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
1513 (microblaze_expand_move): Handle TLS.
1514 (microblaze_legitimate_constant_p): Check
1515 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
1516 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1517 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
1518 (PIC_OFFSET_TABLE_REGNUM): Set.
1519 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
1520 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
1521 (addsi3, movsi_internal2, movdf_internal): Update constraints
1522 * config/microblaze/predicates.md (arith_plus_operand): Define
1523 (move_operand): Redefine as move_src_operand,
1524 check microblaze_tls_referenced_p.
1526 2013-03-14 Ian Bolton <ian.bolton@arm.com>
1528 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
1529 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
1531 2013-03-14 Ian Bolton <ian.bolton@arm.com>
1533 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
1536 2013-03-14 Jakub Jelinek <jakub@redhat.com>
1538 PR tree-optimization/53265
1539 * common.opt (Waggressive-loop-optimizations): New option.
1540 * tree-ssa-loop-niter.c: Include tree-pass.h.
1541 (do_warn_aggressive_loop_optimizations): New function.
1542 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
1543 if number_of_latch_executions returned constant.
1544 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
1545 early. If number_of_latch_executions returned constant, set
1546 nb_iterations_upper_bound back to it.
1547 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
1549 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
1550 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
1552 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
1553 (MULTILIB_OSDIRNAMES): Set.
1554 * genmultilib: If defaultosdirname doesn't start with :: , set
1555 defaultosdirname2 instead, clear it and emit two . multilib_raw
1556 entries instead of just one.
1558 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
1560 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1561 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
1562 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1563 (SUBTARGET_OVERRIDE_OPTIONS): New.
1565 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
1568 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
1569 (musermode): Convert to Var(TARGET_USERMODE).
1570 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
1571 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
1572 * config/sh/sh.c (sh_option_override): Use
1573 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
1574 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
1576 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
1578 (udivsi3_i4_single, divsi3_i4_single): Use
1579 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
1581 2013-03-13 Dave Korn <dave.korn.cygwin@....>
1583 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
1586 2013-03-13 Richard Biener <rguenther@suse.de>
1588 PR tree-optimization/56608
1589 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
1590 calls when vectorizing basic-blocks.
1592 2013-03-13 Jakub Jelinek <jakub@redhat.com>
1595 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
1598 2013-03-12 Jakub Jelinek <jakub@redhat.com>
1600 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
1602 2013-03-11 Jan Hubicka <jh@suse.cz>
1605 * lto-streamer-out.c (output_symbol_p): Skip references from
1606 constructors of external variables.
1608 2013-03-11 Jan Hubicka <jh@suse.cz>
1611 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
1613 * emit-rtl.c (verify_rtx_sharing): Likewise.
1614 (copy_insn_1): Likewise.
1615 * rtl.c (copy_rtx): Likewise.
1617 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
1620 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
1621 output_operand_lossage message.
1623 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
1626 * arm.c (shift_op): Validate RTL pattern on the fly.
1627 (arm_print_operand, case 'S'): Don't use shift_operator to validate
1630 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1633 * config/pa/pa.md (call_value): Check for calls to powf and direct to
1634 new call patterns that clobber %fr12.
1635 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
1636 split and postreload patterns.
1637 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
1638 registers %fr12 and %fr12R as call used.
1640 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
1642 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
1643 (canon_address, record_store, replace_read, check_mem_read_rtx,
1644 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
1645 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
1646 rest_of_handle_dse): Likewise.
1648 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1651 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
1653 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
1654 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
1655 (save_optabs_if_changed): Replace with...
1656 (init_tree_optimization_optabs): ...this.
1657 * optabs.c (save_optabs_if_changed): Rename to...
1658 (init_tree_optimization_optabs): ...this. Take the optimization node
1659 as argument. Do nothing if the base optabs are already correct.
1660 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
1661 to recompute optabs.
1662 * function.h (function): Remove optabs field.
1663 * function.c (invoke_set_current_function_hook): Call
1664 init_tree_optimization_optabs. Use the result to initialize
1667 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
1669 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
1670 if GTMA_HAS_NO_INSTRUMENTATION.
1671 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
1672 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
1673 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
1674 * gimple-pretty-print.c (dump_gimple_transaction): Handle
1675 GTMA_HAS_NO_INSTRUMENTATION.
1677 2013-03-08 Jakub Jelinek <jakub@redhat.com>
1679 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
1682 2013-03-08 Marek Polacek <polacek@redhat.com>
1683 Jakub Jelinek <jakub@redhat.com>
1685 PR tree-optimization/56478
1686 * predict.c (is_comparison_with_loop_invariant_p): Change the
1687 type of loop_step to tree.
1688 (predict_loops): Adjust.
1689 (predict_iv_comparison): Perform the computations on double_ints.
1691 2013-03-08 Richard Biener <rguenther@suse.de>
1693 PR tree-optimization/56570
1694 * tree-cfg.c (verify_expr_location_1): Verify locations for
1696 * tree-sra.c (create_access_replacement): Strip locations
1697 from DECL_DEBUG_EXPRs.
1699 2013-03-08 Richard Biener <rguenther@suse.de>
1701 * tree-inline.c (expand_call_inline): Do not associate
1702 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
1703 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
1705 2013-03-08 Richard Biener <rguenther@suse.de>
1707 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
1708 or block changes with -Og. Fix for location / block encoding
1709 changes and PHI arguments with locations.
1711 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
1713 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
1715 (struct output_info): Likewise.
1716 (register_overhead): Remove bad gcc_assert.
1717 (bitmap_find_bit): If there is only a single bitmap element, do not
1718 count a miss as a search.
1719 (print_statistics): Update for counter type changes.
1720 (dump_bitmap_statistics): Likewise. Print headers such that they
1721 are properly lined up with the printed counters.
1723 2013-03-07 Jakub Jelinek <jakub@redhat.com>
1725 PR tree-optimization/56559
1726 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
1727 check that it has only a single use.
1729 2013-03-07 Richard Biener <rguenther@suse.de>
1731 * doc/invoke.texi (fwhole-program): Discourage use in combination
1734 2013-03-06 Jakub Jelinek <jakub@redhat.com>
1736 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
1738 PR tree-optimization/56539
1739 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
1740 instead of GSI_CONTINUE_LINKING as last argument to
1741 force_gimple_operand_gsi. Adjust function comment.
1743 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
1747 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
1748 promoted mode, convert the result back to the original mode.
1750 2013-03-06 Richard Biener <rguenther@suse.de>
1753 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
1754 (insert_updated_phi_nodes_compare_uids): New function.
1755 (update_ssa): Sort symbols_to_rename after UID before
1756 traversing it to insert PHI nodes.
1758 2013-03-06 Richard Biener <rguenther@suse.de>
1761 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
1762 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
1765 2013-02-13 Richard Biener <rguenther@suse.de>
1768 * varasm.c (output_constant_def_1): Get the decl representing
1769 the constant as argument.
1770 (output_constant_def): Wrap output_constant_def_1.
1771 (make_decl_rtl): Use output_constant_def_1 with the decl
1772 representing the constant.
1773 (build_constant_desc): Optionally re-use a decl already
1774 representing the constant.
1775 (tree_output_constant_def): Adjust.
1777 2013-03-06 Joey Ye <joey.ye@arm.com>
1780 * gcc.c (convert_white_space): New function.
1781 (main): Handles white space in function name.
1783 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
1786 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
1787 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
1788 to SH_DIV_CALL_TABLE for TARGET_SH2.
1789 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
1791 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
1794 2013-03-05 Sterling Augustine <saugustine@google.com>
1795 Cary Coutant <ccoutant@google.com>
1798 * dwarf2out.c (resolve_addr): Don't call
1799 remove_loc_list_addr_table_entries a second time for the same
1802 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1805 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
1806 (avoid_complex_debug_insns): New function.
1807 (expand_debug_locations): Call it.
1809 PR rtl-optimization/56484
1810 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
1811 lifetimes of hard registers on small register class machines.
1813 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1815 * config/microblaze/microblaze-protos.h: Rename
1816 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
1817 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
1819 (microblaze_fast_interrupt_function_p): New function.
1820 (microblaze_is_interrupt_handler): Rename to
1821 microblaze_is_interrupt_variant and add fast_interrupt check.
1822 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
1823 (save_restore_insns): Likewise.
1824 (compute_frame_size): Likewise.
1825 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
1826 (microblaze_globalize_label): Likewise.
1827 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
1828 * config/microblaze/microblaze.md: Use wrapper
1829 microblaze_is_interrupt_variant.
1831 2013-03-05 Kai Tietz <ktietz@redhat.com>
1833 * sdbout.c (sdbout_one_type): Switch to current function's section
1834 supporting cold/hot.
1836 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1838 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
1841 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1844 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
1845 if VALGRIND_GET_VBITS is defined, temporarily make object
1846 memory all defined, and restore previous valgrind addressability
1847 and definability afterwards. Free this_object at the end.
1850 * lra.c (lra): Call lra_clear_live_ranges if live_p,
1851 right before calling lra_create_live_ranges, also call it
1852 when clearing live_p. Only call lra_clear_live_ranges
1853 at the end if live_p.
1856 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
1858 2013-03-05 Richard Biener <rguenther@suse.de>
1860 PR tree-optimization/56521
1861 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
1864 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
1867 * except.h (remove_unreachable_eh_regions): New prototype.
1868 * except.c (remove_eh_handler_splicer): New function, split out
1869 of remove_eh_handler.
1870 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
1871 warning about running it on many EH regions one at a time.
1872 (remove_unreachable_eh_regions_worker): New function, walk the
1873 EH tree in depth-first order and remove non-marked regions.
1874 (remove_unreachable_eh_regions): New function.
1875 * tree-eh.c (mark_reachable_handlers): New function, split out
1876 from remove_unreachable_handlers.
1877 (remove_unreachable_handlers): Use mark_reachable_handlers and
1878 remove_unreachable_eh_regions.
1879 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
1880 and remove_unreachable_eh_regions.
1882 2013-03-05 Richard Biener <rguenther@suse.de>
1885 * loop-init.c (fix_loop_structure): Remove loops in two stages,
1886 not freeing them until the end.
1888 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1890 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
1892 2013-03-05 Richard Biener <rguenther@suse.de>
1894 PR tree-optimization/56270
1895 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
1896 of loads after scheduling an SLP instance.
1898 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1900 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
1902 (check_gcc_parallelize): Run guality.exp as a separate job from
1903 vect.exp with unsorted.exp and $(dg_target_exps) separately from
1904 struct-layout-1.exp with stackalign.exp.
1906 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
1909 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
1910 load_index sbitmap even if some bit in it isn't set.
1913 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
1914 (discover_iteration_bound_by_body_walk): Change queues to
1915 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
1916 spelling in comment. Call safe_push on queues[bound_index] directly.
1917 Release queues[queue_index] in every iteration unconditionally.
1918 Release bounds vector.
1921 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
1922 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
1923 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
1926 2013-03-05 Richard Biener <rguenther@suse.de>
1929 * tree-inline.c (remap_blocks_to_null): New function.
1930 (expand_call_inline): When expanding a call stmt without
1931 an associated block inline remap all callee blocks to NULL.
1933 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1935 PR rtl-optimization/56494
1936 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
1937 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
1938 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
1941 * sel-sched-ir.c (free_sched_pools): Release
1942 succs_info_pool.stack[succs_info_pool.max_top] vectors too
1943 if succs_info_pool.max_top isn't -1.
1946 * opts.c (opts_obstack, opts_concat): Moved to...
1947 * opts-common.c (opts_obstack, opts_concat): ... here.
1949 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1952 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
1954 2013-03-04 Martin Jambor <mjambor@suse.cz>
1956 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
1957 all appropriate places.
1959 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
1961 PR tree-optimization/56424
1962 * ipa-split.c (split_function): Do not set the RSO flag if result is
1963 not by reference and its type is a register type.
1965 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
1967 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
1968 (microblaze_legitimate_pic_operand): Likewise
1969 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
1970 new function microblaze_legitimate_pic_operand
1971 * config/microblaze/microblaze-protos.h
1972 (microblaze_legitimate_pic_operand): Declare.
1974 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1976 * config/microblaze/predicates.md (call_insn_simple_operand):
1977 New predicate for supported rtx code types.
1978 * config/microblaze/microblaze.md (call_internal1): Use
1979 call_insn_simple_operand predicate.
1981 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1984 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
1985 partitions.ordered_remove.
1988 * tree-vect-stmts.c (vectorizable_conversion): Don't call
1989 vec_oprnds0.create (1) for modifier == NONE.
1992 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
1993 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
1994 vec_oprnds1 right before pushing anything to it for
1998 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
1999 set nbbs to 0 instead of having separate code path.
2000 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
2001 instead of false as last argument if returning NULL.
2003 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
2005 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
2006 the attribute is now called "target" instead of "option".
2007 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
2008 * doc/tm.texi.in (Target Attributes): Likewise document the correct
2009 attribute/pragma name for TARGET_OPTION_VALID_P and
2010 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
2011 * doc/tm.texi: Regenerated.
2013 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
2015 * config/microblaze/microblaze.c:
2016 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
2017 * config/microblaze/microblaze.h: Add -mxl-reorder to
2019 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
2020 instructions emitted if TARGET_REORDER.
2021 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
2022 or 0 for -m/-mno case, but initialises as 2 to detect default use case
2025 2013-03-01 Xinliang David Li <davidxl@google.com>
2027 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
2030 2013-03-01 Jakub Jelinek <jakub@redhat.com>
2033 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
2034 vector even when returning true. Fix up function comment formatting.
2037 * ira-build.c (ira_loop_nodes_count): New variable.
2038 (create_loop_tree_nodes): Initialize it.
2039 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
2042 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
2043 method on dr_chain and result_chain.
2044 * tree-vect-stmts.c (vectorizable_store): Only call
2045 result_chain.create if j == 0.
2048 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
2049 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
2050 before overwriting it.
2052 2013-03-01 Tobias Burnus <burnus@net-b.de>
2054 * doc/extended.texi (C Extensions): Change order in @menu
2056 (Other MIPS Built-in Functions): Move last MIPS entry before
2057 "picoChip Built-in Functions".
2058 (SH Built-in Functions): Move after RX Built-in Functions.
2059 * doc/gcc.texi (Introduction): Change order in @menu
2061 * doc/md.texi (Constraints): Ditto.
2062 * gty.texi (Type Information): Ditto.
2063 (User-provided marking routines for template types): Make
2065 * doc/invoke.texi (AArch64 Options): Move before
2066 "Adapteva Epiphany Options".
2068 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2069 Jakub Jelinek <jakub@redhat.com>
2072 * asan.c (gate_asan): Lookup no_sanitize_address instead of
2073 no_address_safety_analysis attribute.
2074 * doc/extend.texi (no_address_safety_attribute): Rename to
2075 no_sanitize_address attribute, mention no_address_safety_analysis
2076 attribute as deprecated alias.
2078 2013-02-28 Jakub Jelinek <jakub@redhat.com>
2081 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
2082 type to vec<vec<tree> > *.
2083 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
2084 to be vec<tree> instead of vec<tree> *, set vec_defs
2085 to vNULL and call vec_defs.create (number_of_vects), adjust other
2087 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
2088 vectorizable_condition): Adjust vect_get_slp_defs callers.
2090 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2092 * config/aarch64/aarch64.c
2093 (aarch64_float_const_representable): Remove unused variable.
2095 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2097 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
2099 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2101 * config/aarch64/aarch64-builtins.c
2102 (aarch64_init_simd_builtins): Make static.
2104 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2106 * config/aarch64/aarch64.c
2107 (aarch64_simd_make_constant): Make static.
2109 2013-02-28 Martin Jambor <mjambor@suse.cz>
2111 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
2112 with no initialization to the RHS of debug statements.
2114 2013-02-28 Martin Jambor <mjambor@suse.cz>
2116 PR tree-optimization/56294
2117 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
2119 (get_access_replacement): Do not call create_access_replacement.
2120 Assert a replacement exists.
2121 (get_repl_default_def_ssa_name): Create the replacement declaration
2124 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2126 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
2129 2013-02-28 Marek Polacek <polacek@redhat.com>
2131 PR rtl-optimization/56466
2132 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
2133 if we're changing a loop.
2134 (peel_loops_completely): Likewise.
2136 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
2139 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
2141 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2144 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
2145 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
2146 INTX_FTYPE_FX, FX_FTYPE_INTX.
2147 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
2149 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2151 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
2152 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
2153 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
2154 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
2155 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
2156 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
2157 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
2158 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
2159 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
2160 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
2161 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
2162 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
2163 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
2164 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
2165 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
2166 (avrxmega6): Increase max flash segments from 5 to 6.
2167 * config/avr/t-multilib: Regenerate.
2168 * config/avr/avr-tables.opt: Regenerate.
2169 * doc/avr-mmcu.texi: Regenerate.
2171 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2173 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
2174 (avr_device_to_arch): Rename to avr_device_to_ld.
2175 (avr_device_to_as): New prototype.
2176 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
2177 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
2178 * config/avr/driver-avr.c (avr_device_to_as): New.
2179 (avr_device_to_arch): Rename to avr_device_to_ld.
2181 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2184 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
2185 method on dr_chain and result_chain.
2188 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
2189 pointer_set_destroy on not_executed_last_iteration.
2192 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
2195 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
2196 FOR_EACH_DEFINED_FUNCTION when freeing state.
2199 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
2201 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
2205 * ipa-cp.c (decide_whether_version_node): Call vec_free on
2206 known_aggs[i].items and release known_aggs vector.
2209 * ipa-reference.c (propagate): Free node_info even for alias nodes.
2211 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2213 * config/microblaze/microblaze.c (microblaze_emit_compare):
2214 Use xor for EQ/NE comparisions.
2215 * config/microblaze/microblaze.md (cstoresf4): Add constraints
2216 (cbranchsf4): Adjust operator to comparison_operator.
2218 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2221 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
2223 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
2224 vec_safe_push, always update *slot.
2225 (redirect_edge_var_map_clear): Use vec_free.
2226 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
2227 (free_var_map_entry): Use vec_free.
2228 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
2229 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
2231 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
2234 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
2235 when the may_trap_p bit of the exprs being merged differs.
2236 Reorder tests for speculativeness in the logical and operator.
2238 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2240 * incpath.c (add_standard_paths): Use reconcat instead of concat
2241 where appropriate and avoid leaking memory.
2243 * opts.h: Include obstack.h.
2244 (opts_concat): New prototype.
2245 (opts_obstack): New declaration.
2246 * opts.c (opts_concat): New function.
2247 (opts_obstack): New variable.
2248 (init_options_struct): Call gcc_init_obstack on opts_obstack.
2249 (finish_options): Use opts_concat instead of concat
2250 and XOBNEWVEC instead of XNEWVEC.
2251 * opts-common.c (generate_canonical_option, decode_cmdline_option,
2252 generate_option): Likewise.
2253 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
2254 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
2257 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
2258 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
2260 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2263 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
2265 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2267 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
2268 (arm_block_move_unaligned_straight): Likewise.
2269 (arm_adjust_block_mem): Likewise.
2271 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2274 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
2275 temp, cond and label.
2276 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
2279 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
2280 * config/c6x/c6x.h (dbx_register_map): Update declaration.
2283 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
2284 of prologue/epilogue functions.
2287 * config/tilegx/tilegx.c (tilegx_expand_prologue):
2288 Remove unused variable cfa_offset.
2289 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
2292 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
2293 type promotion to unsigned.
2296 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
2297 for HOST_WIDE_INT of 32 bit / same size as int.
2298 (arm_block_move_unaligned_straight): Likewise.
2299 (arm_adjust_block_mem): Likewise.
2302 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
2305 2013-02-26 Marek Polacek <polacek@redhat.com>
2307 PR tree-optimization/56426
2308 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
2310 2013-02-26 Richard Biener <rguenther@suse.de>
2313 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
2314 unused variable loops.
2316 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2318 PR tree-optimization/56448
2319 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
2320 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
2321 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
2322 later operands of the references, or even first operand for
2323 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
2325 PR tree-optimization/56443
2326 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
2327 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
2328 to type_for_mode langhook.
2330 2013-02-25 Matt Turner <mattst88@gmail.com>
2332 * doc/invoke.texi: Document r4700.
2334 2013-02-25 Richard Biener <rguenther@suse.de>
2336 PR tree-optimization/56175
2337 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
2339 (simplify_bitwise_binary): ... here. Also guard the conversion
2340 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
2342 2013-02-25 Catherine Moore <clm@codesourcery.com>
2345 2013-02-24 Catherine Moore <clm@codesourcery.com>
2346 Maciej W. Rozycki <macro@codesourcery.com>
2347 Tom de Vries <tom@codesourcery.com>
2348 Nathan Sidwell <nathan@codesourcery.com>
2349 Iain Sandoe <iain@codesourcery.com>
2350 Nathan Froyd <froydnj@codesourcery.com>
2351 Chao-ying Fu <fu@mips.com>
2353 * doc/extend.texi: (micromips, nomicromips, nocompression):
2354 Document new function attributes.
2355 * doc/invoke.texi (minterlink-compressed, mmicromips,
2356 m14k, m14ke, m14kec): Document new options.
2357 (minterlink-mips16): Update documentation.
2358 * doc/md.texi (ZC, ZD): Document new constraints.
2359 * configure.ac (gcc_cv_as_micromips): Check if linker
2360 supports the .set micromips directive.
2361 * configure: Regenerate.
2362 * config.in: Regenerate.
2363 * config/mips/mips-tables.opt: Regenerate.
2364 * config/mips/micromips.md: New file.
2365 * constraints.md (ZC, AD): New constraints.
2366 * config/mips/predicates.md (movep_src_register): New predicate.
2367 (movep_src_operand): New predicate.
2368 (non_volatile_mem_operand): New predicate.
2369 * config/mips/mips.md (multimem): New type.
2370 (length): Differentiate between 17-bit and 18-bit branch offsets.
2371 (MOVEP1, MOVEP2): New mode iterator.
2372 (mov_<load>l): Use ZC constraint.
2373 (mov_<load>r): Likewise.
2374 (mov_<store>l): Likewise.
2375 (mov_<store>r): Likewise.
2376 (*branch_equality<mode>_inverted): Add microMIPS support.
2377 (*branch_equality<mode>): Likewise.
2378 (*jump_absolute): Likewise.
2379 (indirect_jump_<mode>): Likewise.
2380 (tablejump_<mode>): Likewise.
2381 (<optab>_internal): Likewise.
2382 (sibcall_internal): Likewise.
2383 (sibcall_value_internal): Likewise.
2384 (prefetch): Use constraint ZD.
2385 * config/mips/mips.opt (minterlink-compressed): New option.
2386 (minterlink-mips16): Now an alias for minterlink-compressed.
2387 (mmicromips): New option.
2388 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2389 (compare_and_swap_12): Likewise.
2390 (sync_add<mode>): Likewise.
2391 (sync_<optab>_12): Likewise.
2392 (sync_old_<optab>_12): Likewise.
2393 (sync_new_<optab>_12): Likewise.
2394 (sync_nand_12): Likewise.
2395 (sync_old_nand_12): Likewise.
2396 (sync_new_nand_12): Likewise.
2397 (sync_sub<mode>): Likewise.
2398 (sync_old_add<mode>): Likewise.
2399 (sync_old_sub<mode>): Likewise.
2400 (sync_new_add<mode>): Likewise.
2401 (sync_new_sub<mode>): Likewise.
2402 (sync_<optab><mode>): Likewise.
2403 (sync_old_<optab><mode>): Likewise.
2404 (sync_new_<optab><mode>): Likewise.
2405 (sync_nand<mode>): Likewise.
2406 (sync_old_nand<mode>): Likewise.
2407 (sync_new_nand<mode>): Likewise.
2408 (sync_lock_test_and_set<mode>): Likewise.
2409 (test_and_set_12): Likewise.
2410 (atomic_compare_and_swap<mode>): Likewise.
2411 (atomic_exchange<mode>_llsc): Likewise.
2412 (atomic_fetch_add<mode>_llsc): Likewise.
2413 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2414 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2415 (umips_save_restore_pattern_p): Likewise.
2416 (umips_load_store_pair_p): Likewise.
2417 (umips_output_load_store_pair): Likewise.
2418 (umips_movep_target_p): Likewise.
2419 (umips_12bit_offset_address_p): Likewise.
2420 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2421 (mips_base_mips16): Rename this...
2422 (mips_base_compression_flags): ...to this. Update all uses.
2423 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2424 (mips_mips16_decl_p): Delete.
2425 (mips_nomips16_decl_p): Delete.
2426 (mips_get_compress_on_flags): New function.
2427 (mips_get_compress_off_flags): New function.
2428 (mips_get_compress_mode): New function.
2429 (mips_get_compress_on_name): New function.
2430 (mips_get_compress_off_name): New function.
2431 (mips_insert_attributes): Support multiple compression types.
2432 (mips_merge_decl_attributes): Likewise.
2433 (umips_12bit_offset_address_p): New function.
2434 (mips_start_function_definition): Emit .set micromips directive.
2435 (mips_call_may_need_jalx_p): New function.
2436 (mips_function_ok_for_sibcall): Add microMIPS support.
2437 (mips_print_operand_punctuation): Support short delay slots and
2439 (umips_swm_mask, umips_swm_encoding): New.
2440 (umips_build_save_restore): New function.
2441 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2442 (was_mips16_p): Remove.
2443 (old_compression_mode): New.
2444 (mips_set_compression_mode): New function.
2445 (mips_set_current_function): Add microMIPS support.
2446 (mips_option_override): Likewise.
2447 (umips_save_restore_pattern_p): New function.
2448 (umips_output_save_restore): New function.
2449 (umips_load_store_pair_p_1): New function.
2450 (umips_load_store_pair_p): New function.
2451 (umips_output_load_store_pair_1): New function.
2452 (umips_output_load_store_pair): New function.
2453 (umips_movep_target_p) New function.
2454 (mips_prepare_pch_save): Add microMIPS support.
2455 * config/mips/mips.h (TARGET_COMPRESSION): New.
2456 (TARGET_CPU_CPP_BUILTINS): Update macro
2457 to use new compression flags and to support microMIPS.
2458 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2459 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2460 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2461 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2462 (ASM_SPEC): Support mmicromips and mno-micromips.
2463 (M16STORE_REG_P): New macro.
2464 (MIPS_CALL): Support TARGET_MICROMIPS.
2465 (MICROMIPS_J): New macro.
2466 (mips_base_mips16): Rename this...
2467 (mips_base_compression_flags): ...to this.
2468 (UMIPS_12BIT_OFFSET_P): New macro.
2469 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2470 (MULTILIB_DIRNAMES): Likewise.
2472 2013-02-25 Tom de Vries <tom@codesourcery.com>
2474 PR rtl-optimization/56131
2475 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
2476 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
2477 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
2479 2013-02-25 Tobias Burnus <burnus@net-b.de>
2481 * doc/invoke.texi (-fsanitize=): Move from optimization
2482 to debugging options.
2484 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2486 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
2488 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2489 Alexander Monakov <amonakov@ispras.ru>
2492 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
2493 flush pending lists also on non-jumps. Adjust comment.
2495 2013-02-24 Catherine Moore <clm@codesourcery.com>
2496 Maciej W. Rozycki <macro@codesourcery.com>
2497 Tom de Vries <tom@codesourcery.com>
2498 Nathan Sidwell <nathan@codesourcery.com>
2499 Iain Sandoe <iain@codesourcery.com>
2500 Nathan Froyd <froydnj@codesourcery.com>
2501 Chao-ying Fu <fu@mips.com>
2503 * doc/extend.texi: (micromips, nomicromips, nocompression):
2504 Document new function attributes.
2505 * doc/invoke.texi (minterlink-compressed, mmicromips,
2506 m14k, m14ke, m14kec): Document new options.
2507 (minterlink-mips16): Update documentation.
2508 * doc/md.texi (ZC, ZD): Document new constraints.
2509 * configure.ac (gcc_cv_as_micromips): Check if linker
2510 supports the .set micromips directive.
2511 * configure: Regenerate.
2512 * config.in: Regenerate.
2513 * config/mips/mips-tables.opt: Regenerate.
2514 * config/mips/micromips.md: New file.
2515 * constraints.md (ZC, AD): New constraints.
2516 * config/mips/predicates.md (movep_src_register): New predicate.
2517 (movep_src_operand): New predicate.
2518 (non_volatile_mem_operand): New predicate.
2519 * config/mips/mips.md (multimem): New type.
2520 (length): Differentiate between 17-bit and 18-bit branch offsets.
2521 (MOVEP1, MOVEP2): New mode iterator.
2522 (mov_<load>l): Use ZC constraint.
2523 (mov_<load>r): Likewise.
2524 (mov_<store>l): Likewise.
2525 (mov_<store>r): Likewise.
2526 (*branch_equality<mode>_inverted): Add microMIPS support.
2527 (*branch_equality<mode>): Likewise.
2528 (*jump_absolute): Likewise.
2529 (indirect_jump_<mode>): Likewise.
2530 (tablejump_<mode>): Likewise.
2531 (<optab>_internal): Likewise.
2532 (sibcall_internal): Likewise.
2533 (sibcall_value_internal): Likewise.
2534 (prefetch): Use constraint ZD.
2535 * config/mips/mips.opt (minterlink-compressed): New option.
2536 (minterlink-mips16): Now an alias for minterlink-compressed.
2537 (mmicromips): New option.
2538 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2539 (compare_and_swap_12): Likewise.
2540 (sync_add<mode>): Likewise.
2541 (sync_<optab>_12): Likewise.
2542 (sync_old_<optab>_12): Likewise.
2543 (sync_new_<optab>_12): Likewise.
2544 (sync_nand_12): Likewise.
2545 (sync_old_nand_12): Likewise.
2546 (sync_new_nand_12): Likewise.
2547 (sync_sub<mode>): Likewise.
2548 (sync_old_add<mode>): Likewise.
2549 (sync_old_sub<mode>): Likewise.
2550 (sync_new_add<mode>): Likewise.
2551 (sync_new_sub<mode>): Likewise.
2552 (sync_<optab><mode>): Likewise.
2553 (sync_old_<optab><mode>): Likewise.
2554 (sync_new_<optab><mode>): Likewise.
2555 (sync_nand<mode>): Likewise.
2556 (sync_old_nand<mode>): Likewise.
2557 (sync_new_nand<mode>): Likewise.
2558 (sync_lock_test_and_set<mode>): Likewise.
2559 (test_and_set_12): Likewise.
2560 (atomic_compare_and_swap<mode>): Likewise.
2561 (atomic_exchange<mode>_llsc): Likewise.
2562 (atomic_fetch_add<mode>_llsc): Likewise.
2563 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2564 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2565 (umips_save_restore_pattern_p): Likewise.
2566 (umips_load_store_pair_p): Likewise.
2567 (umips_output_load_store_pair): Likewise.
2568 (umips_movep_target_p): Likewise.
2569 (umips_12bit_offset_address_p): Likewise.
2570 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2571 (mips_base_mips16): Rename this...
2572 (mips_base_compression_flags): ...to this. Update all uses.
2573 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2574 (mips_mips16_decl_p): Delete.
2575 (mips_nomips16_decl_p): Delete.
2576 (mips_get_compress_on_flags): New function.
2577 (mips_get_compress_off_flags): New function.
2578 (mips_get_compress_mode): New function.
2579 (mips_get_compress_on_name): New function.
2580 (mips_get_compress_off_name): New function.
2581 (mips_insert_attributes): Support multiple compression types.
2582 (mips_merge_decl_attributes): Likewise.
2583 (umips_12bit_offset_address_p): New function.
2584 (mips_start_function_definition): Emit .set micromips directive.
2585 (mips_call_may_need_jalx_p): New function.
2586 (mips_function_ok_for_sibcall): Add microMIPS support.
2587 (mips_print_operand_punctuation): Support short delay slots and
2589 (umips_swm_mask, umips_swm_encoding): New.
2590 (umips_build_save_restore): New function.
2591 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2592 (was_mips16_p): Remove.
2593 (old_compression_mode): New.
2594 (mips_set_compression_mode): New function.
2595 (mips_set_current_function): Add microMIPS support.
2596 (mips_option_override): Likewise.
2597 (umips_save_restore_pattern_p): New function.
2598 (umips_output_save_restore): New function.
2599 (umips_load_store_pair_p_1): New function.
2600 (umips_load_store_pair_p): New function.
2601 (umips_output_load_store_pair_1): New function.
2602 (umips_output_load_store_pair): New function.
2603 (umips_movep_target_p) New function.
2604 (mips_prepare_pch_save): Add microMIPS support.
2605 * config/mips/mips.h (TARGET_COMPRESSION): New.
2606 (TARGET_CPU_CPP_BUILTINS): Update macro
2607 to use new compression flags and to support microMIPS.
2608 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2609 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2610 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2611 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2612 (ASM_SPEC): Support mmicromips and mno-micromips.
2613 (M16STORE_REG_P): New macro.
2614 (MIPS_CALL): Support TARGET_MICROMIPS.
2615 (MICROMIPS_J): New macro.
2616 (mips_base_mips16): Rename this...
2617 (mips_base_compression_flags): ...to this.
2618 (UMIPS_12BIT_OFFSET_P): New macro.
2619 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2620 (MULTILIB_DIRNAMES): Likewise.
2622 2013-02-24 Jakub Jelinek <jakub@redhat.com>
2625 * target-globals.c (save_target_globals): For init_reg_sets and
2626 target_reinit remporarily set this_fn_optabs to this_target_optabs.
2628 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
2630 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
2631 * config/aarch64/t-aarch64
2632 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
2634 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
2637 * lra-constraints.c (process_alt_operands): Reload operand
2638 conflicting with earlier clobber only if no more other conflicting
2641 2013-02-22 Jakub Jelinek <jakub@redhat.com>
2644 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
2645 if not linking a shared library.
2647 2013-02-22 Seth LaForge <sethml@google.com>
2649 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
2651 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
2653 * config/arm/arm.md (split for extendsidi): Update condition.
2654 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
2655 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
2656 (qhs_zextenddi_cstr): Likewise.
2658 2013-02-21 Jakub Jelinek <jakub@redhat.com>
2661 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
2662 avoid signed wrapping.
2663 (expand_mult): Handle properly multiplication by
2664 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
2665 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
2666 in the compiler if coeff is HOST_WIDE_INT_MIN.
2667 (expand_divmod): Don't make ext_op1 static, change it's type to
2668 uhwi. Avoid undefined behavior in -INTVAL (op1).
2670 PR rtl-optimization/50339
2671 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
2673 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
2674 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
2675 into splitting_ashiftrt field.
2676 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
2678 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
2681 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
2684 * trans-mem.c (execute_tm_mark): Do not expand transactions that
2685 are sure to go irrevocable.
2687 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
2689 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
2690 scalars are valid operands.
2692 2013-02-21 Martin Jambor <mjambor@suse.cz>
2694 PR tree-optimization/56310
2695 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
2696 only matching indices and non-negative final offsets.
2697 (intersect_aggregates_with_edge): Pass src_idx to
2698 agg_replacements_to_vector. Pass src_idx insstead of index to
2699 intersect_with_agg_replacements.
2701 2013-02-21 Martin Jambor <mjambor@suse.cz>
2703 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
2704 instead of hard-wired defaults.
2706 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
2708 * doc/invoke.texi (MIPS Options): Update documentation of the
2709 floating-point multiply-accumulate instruction restrictions.
2711 2013-02-21 Kostya Serebryany <kcc@google.com>
2713 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
2714 asan_shadow_offset on x86_64 linux.
2716 2013-02-21 Richard Biener <rguenther@suse.de>
2718 PR tree-optimization/56415
2720 2013-02-11 Richard Biener <rguenther@suse.de>
2722 PR tree-optimization/56273
2723 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2726 2013-02-21 Jakub Jelinek <jakub@redhat.com>
2729 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
2733 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
2734 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
2736 2013-02-20 Jan Hubicka <jh@suse.cz>
2738 PR tree-optimization/56265
2739 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
2740 when target is referenced for first time.
2742 2013-02-20 Richard Biener <rguenther@suse.de>
2744 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
2745 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2746 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2747 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
2748 not return anything.
2749 (rename_ssa_copies): Do not remove unused locals.
2750 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
2751 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
2752 * passes.c (execute_function_todo): Do not schedule unused locals
2753 removal if cleanup_tree_cfg did something.
2754 * tree-ssa-live.c (remove_unused_locals): Dump statistics
2755 about the number of removed locals.
2757 2013-02-20 Richard Biener <rguenther@suse.de>
2759 PR tree-optimization/56398
2760 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
2762 2013-02-20 Martin Jambor <mjambor@suse.cz>
2764 PR tree-optimization/55334
2765 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
2766 restricted pointers to arrays.
2768 2013-02-20 Richard Biener <rguenther@suse.de>
2769 Jakub Jelinek <jakub@redhat.com>
2771 PR tree-optimization/56396
2772 * tree-ssa-ccp.c (n_const_val): New static variable.
2773 (get_value): Return NULL for SSA names we don't have a lattice
2775 (ccp_initialize): Initialize n_const_val.
2776 * tree-ssa-copy.c (n_copy_of): New static variable.
2777 (init_copy_prop): Initialize n_copy_of.
2778 (get_value): Return NULL_TREE for SSA names we don't have a
2781 2013-02-20 Martin Jambor <mjambor@suse.cz>
2783 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
2785 2013-02-20 Richard Biener <rguenther@suse.de>
2787 * genpreds.c (write_lookup_constraint): Do not compare first
2788 letter of the constraint again.
2790 2013-02-20 Richard Biener <rguenther@suse.de>
2792 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
2794 (get_use_iv_cost): Terminate hashtable walk when coming across
2797 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
2799 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
2800 reassociation for avx2 targets.
2802 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2804 * config/microblaze/microblaze.c: microblaze_has_clz = 0
2805 Add version check for v8.10.a to enable microblaze_has_clz
2806 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
2807 version and TARGET_PATTERN_COMPARE check
2808 * config/microblaze/microblaze.md: New clzsi2 instruction
2810 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2812 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
2813 function before branching.
2815 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
2817 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
2819 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
2821 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
2824 * sel-sched.c: Include ira.h.
2825 (implicit_clobber_conflict_p): New function.
2826 (moveup_expr): Use it.
2827 * Makefile.in (sel-sched.o): Depend on ira.h.
2829 2013-02-19 Richard Biener <rguenther@suse.de>
2831 PR tree-optimization/56384
2832 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
2833 (vn_hash_type): Split out from ...
2834 (vn_hash_constant_with_type): ... here.
2835 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
2836 (vn_phi_eq): Compare types from vn_phi_s structure.
2837 (vn_phi_lookup): Populate vn_phi_s type.
2838 (vn_phi_insert): Likewise.
2840 2013-02-19 Jakub Jelinek <jakub@redhat.com>
2842 PR tree-optimization/56350
2843 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
2844 if haven't found reduction or nested cycle operand, rather than
2845 asserting we must find it.
2847 PR tree-optimization/56381
2848 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
2851 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
2852 Jakub Jelinek <jakub@redhat.com>
2855 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
2856 (swap_optab_enable): Same.
2857 (init_all_optabs): Use argument instead of global.
2858 * tree.h (struct tree_optimization_option): New field target_optabs.
2859 * expr.h (init_all_optabs): Add argument to prototype.
2860 (TREE_OPTIMIZATION_OPTABS): New.
2861 (save_optabs_if_changed): Protoize.
2862 * optabs.h: Declare this_fn_optabs.
2863 * optabs.c (save_optabs_if_changed): New.
2864 Declare this_fn_optabs.
2865 (init_optabs): Add argument to init_all_optabs() call.
2866 * function.c (invoke_set_current_function_hook): Handle per
2868 * function.h (struct function): New field optabs.
2869 * config/mips/mips.c (mips_set_mips16_mode): Handle when
2870 optimization_current_node has changed.
2871 * target-globals.h (save_target_globals_default_opts): Protoize.
2872 * target-globals.c (save_target_globals_default_opts): New.
2874 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2877 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
2878 registers %fr12 and %fr12R as call used.
2881 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
2882 and HImode, require all displacements to be an integer multiple of
2884 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
2885 only allow QImode and HImode when reload is in progress and strict is
2886 true. Likewise for symbolic addresses. Use base14_operand to check
2887 displacements in REG+BASE addresses.
2889 2013-02-18 Richard Biener <rguenther@suse.de>
2891 PR tree-optimization/56366
2892 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2893 handle sign-conversion of outer-loop initial induction value.
2895 2013-02-18 Richard Biener <rguenther@suse.de>
2898 * cfghooks.c (merge_blocks): If we merge a latch into another
2899 block adjust references to it.
2900 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
2901 (verify_loop_structure): Verify that a recorded latch is in fact
2904 2013-02-18 Richard Biener <rguenther@suse.de>
2906 PR tree-optimization/56321
2907 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
2908 order SSA name release and virtual operand unlinking.
2910 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2912 * config/microblaze/microblaze.md (save_stack_block): Define.
2913 (restore_stack_block): Likewise.
2915 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2917 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
2918 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
2919 * config/microblaze/microblaze.c (microblaze_option_override):
2920 Bail out early for PIC modes when target does not support PIC.
2922 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2924 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
2925 Replace with a microblaze version.
2926 (microblaze_trampoline_init): Adapt for microblaze.
2927 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
2930 2013-02-16 Jakub Jelinek <jakub@redhat.com>
2931 Dodji Seketeli <dodji@redhat.com>
2934 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
2935 (instrument_mem_region_access): Do not forget to always put
2936 instrumentation of the of 'base' and 'base + len' in a "if (len !=
2937 0) statement, even for cases where either 'base' or 'base + len'
2938 are not instrumented -- because they have been previously
2939 instrumented. Simplify the logic by putting all the statements
2940 instrument 'base + len' inside a sequence, and then insert that
2941 sequence right before the current insertion point. Then, to
2942 instrument 'base + len', just get an iterator on that statement.
2943 And do not forget to update the pointer to iterator the function
2944 received as argument.
2946 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
2948 PR rtl-optimization/56348
2949 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
2951 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
2953 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
2954 (clean_graph_dump_file): Pass base to start_graph_dump.
2956 2013-02-14 Richard Henderson <rth@redhat.com>
2959 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
2961 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
2963 * collect2-aix.h: Define F_LOADONLY.
2965 2013-02-14 Richard Biener <rguenther@suse.de>
2968 * varasm.c (output_constant_def_1): Get the decl representing
2969 the constant as argument.
2970 (output_constant_def): Wrap output_constant_def_1.
2971 (make_decl_rtl): Use output_constant_def_1 with the decl
2972 representing the constant.
2973 (build_constant_desc): Optionally re-use a decl already
2974 representing the constant.
2975 (tree_output_constant_def): Adjust.
2977 2013-02-14 Dodji Seketeli <dodji@redhat.com>
2980 * asan.c (instrument_builtin_call): Really put the length of the
2981 second source argument into src1_len.
2983 2013-02-13 Jakub Jelinek <jakub@redhat.com>
2985 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
2986 argument. If it is false, don't create edge from then_bb to
2988 (insert_if_then_before_iter): Pass true to it.
2989 (build_check_stmt): Pass false to it.
2990 (transform_statements): Flush hash table only on extended basic
2991 block boundaries, rather than at the beginning of every bb.
2992 Don't flush hash table on nonfreeing_call_p calls.
2993 * tree-flow.h (nonfreeing_call_p): New prototype.
2994 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
2996 2013-02-13 David S. Miller <davem@davemloft.net>
2998 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
3000 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
3003 * ira.c (max_regno_before_ira): Move from ...
3005 (fix_reg_equiv_init): Use max_regno_before_ira instead of
3008 2013-02-13 Jakub Jelinek <jakub@redhat.com>
3010 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
3012 2013-02-13 Richard Biener <rguenther@suse.de>
3015 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
3016 globals in MEM_REFs.
3018 2013-02-13 Richard Biener <rguenther@suse.de>
3020 * loop-init.c (loop_optimizer_init): Clear loop state when
3021 re-initializing preserved loops.
3022 * loop-unswitch.c (unswitch_single_loop): Return whether
3023 we unswitched the loop. Do not verify loop state here.
3024 (unswitch_loops): When we unswitched a loop discover new loops.
3026 2013-02-13 Kostya Serebryany <kcc@google.com>
3028 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
3030 * sanitizer.def: Rename __asan_init to __asan_init_v1.
3032 2013-02-12 Dodji Seketeli <dodji@redhat.com>
3034 Avoid instrumenting duplicated memory access in the same basic block
3035 * Makefile.in (asan.o): Add new dependency on hash-table.h
3036 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
3037 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
3038 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
3039 (free_mem_ref_resources, has_mem_ref_been_instrumented)
3040 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
3041 (get_mem_ref_of_assignment): New functions.
3042 (get_mem_refs_of_builtin_call): Extract from
3043 instrument_builtin_call and tweak a little bit to make it fit with
3045 (instrument_builtin_call): Use the new
3046 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
3047 of is_gimple_builtin_call.
3048 (instrument_derefs, instrument_mem_region_access): Insert the
3049 instrumented memory reference into the hash table.
3050 (maybe_instrument_assignment): Renamed instrument_assignment into
3051 this, and change it to advance the iterator when instrumentation
3052 actually happened and return true in that case. This makes it
3053 homogeneous with maybe_instrument_assignment, and thus give a
3054 chance to callers to be more 'regular'.
3055 (transform_statements): Clear the memory reference hash table
3056 whenever we enter a new BB, when we cross a function call, or when
3057 we are done transforming statements. Use
3058 maybe_instrument_assignment instead of instrumentation. No more
3059 need to special case maybe_instrument_assignment and advance the
3060 iterator after calling it; it's now handled just like
3061 maybe_instrument_call. Update comment.
3063 2013-02-13 Richard Biener <rguenther@suse.de>
3065 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3066 Fix loop discovery code.
3068 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
3071 * lra-constraints.c (process_alt_operands): Match early clobber
3072 operand with itself. Check conflicts with earlyclobber only if
3073 the operand is not reloaded. Prefer to reload conflicting operand
3074 if earlyclobber and matching operands are the same.
3076 2013-02-12 Richard Biener <rguenther@suse.de>
3079 * lto-streamer-out.c (write_symbol): Do not output symbols
3080 for hard register variables.
3082 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
3085 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
3086 (umulsidi3_insn, mulsidi3_insn): New insns.
3088 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
3090 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
3091 (struct tune_params): Add vec_costs field.
3092 * config/arm/arm.c (arm_builtin_vectorization_cost)
3093 (arm_add_stmt_cost): New functions.
3094 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
3095 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
3096 (arm_default_vec_cost): New struct of type cpu_vec_costs.
3097 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
3098 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
3099 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
3100 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
3102 2013-02-12 Richard Biener <rguenther@suse.de>
3105 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
3106 decls again if possible.
3108 2013-02-12 Richard Biener <rguenther@suse.de>
3111 * tree-ssa.c (verify_ssa_name): Fix check, move
3112 SSA_NAME_IN_FREE_LIST check up.
3114 2013-02-12 Jakub Jelinek <jakub@redhat.com>
3115 Steven Bosscher <steven@gcc.gnu.org>
3117 PR rtl-optimization/56151
3118 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
3119 equal to op0 or op1, and last_insn pattern is CODE operation
3120 with MEM dest and one of the operands matches that MEM.
3122 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
3124 * doc/extend.texi: Document Function Multiversioning and "default"
3125 parameter string to target attribute.
3126 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
3127 target attribute parameter is "default".
3128 (ix86_compare_version_priority): Remove checks for target attribute.
3129 (ix86_mangle_function_version_assembler_name): Change error to sorry.
3130 Remove check for target attribute equal to NULL. Add assert.
3131 (ix86_generate_version_dispatcher_body): Change error to sorry.
3133 2013-02-11 Iain Sandoe <iain@codesourcery.com>
3134 Jack Howarth <howarth@bromo.med.uc.edu>
3135 Patrick Marlier <patrick.marlier@gmail.com>
3138 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
3139 define ENDFILE_SPEC as TM_DESTRUCTOR.
3140 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
3142 2013-02-11 Alexander Potapenko <glider@google.com>
3143 Jack Howarth <howarth@bromo.med.uc.edu>
3144 Jakub Jelinek <jakub@redhat.com>
3147 * config/darwin.c (cdtor_record): Rename ctor_record.
3148 (sort_cdtor_records): Rename sort_ctor_records.
3149 (finalize_dtors): New routine to sort destructors by
3150 priority before use in assemble_integer.
3151 (machopic_asm_out_destructor): Use finalize_dtors if needed.
3153 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
3155 PR rtl-optimization/56275
3156 * simplify-rtx.c (avoid_constant_pool_reference): Check that
3157 offset is non-negative and less than cmode size before
3158 calling simplify_subreg.
3160 2013-02-11 Richard Biener <rguenther@suse.de>
3162 PR tree-optimization/56264
3163 * cfgloop.h (fix_loop_structure): Adjust prototype.
3164 * loop-init.c (fix_loop_structure): Return the number of
3165 newly discovered loops.
3166 * tree-cfgcleanup.c (repair_loop_structures): When new loops
3167 are discovered, do a full loop-closed SSA rewrite.
3169 2013-02-11 Richard Biener <rguenther@suse.de>
3171 PR tree-optimization/56273
3172 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3174 (check_array_ref): Fix missing newline in dumps.
3175 (search_for_addr_array): Likewise.
3177 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
3179 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
3181 2013-02-09 Jakub Jelinek <jakub@redhat.com>
3184 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
3186 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
3188 PR rtl-optimization/56246
3189 * lra-constraints.c (simplify_operand_subreg): Try to reuse
3191 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
3192 constraints are satisfied.
3194 2013-02-08 Jeff Law <law@redhat.com>
3197 * emit-rtl.c (reg_is_parm_p): New function.
3198 * regs.h (reg_is_parm_p): New prototype.
3199 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
3200 callee-clobbered registers.
3202 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3205 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
3206 If there is no implicit builtin declaration, just return NULL.
3208 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3210 * config/i386/sse.md (FMAMODEM): New mode iterator.
3211 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
3212 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
3214 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3216 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
3217 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
3218 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
3220 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3222 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
3223 (microblaze*-*-elf): Likewise.
3224 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
3226 * config/microblaze/microblaze-c.c: Add builtin defines for
3227 _LITTLE_ENDIAN and _BIG_ENDIAN.
3228 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
3229 add to TARGET_DEFAULT flags.
3230 Expand ASM_SPEC and LINK_SPEC.
3231 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3232 * config/microblaze/microblaze.md: Update extendsidi2 and
3233 movdi_internal instructions to use low-order / high-order reg
3235 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
3236 options and inversemask / mask of LITTLE_ENDIAN.
3237 * config/microblaze/t-microblaze: Expand multilib options to
3238 include mlittle-endian (le) and update exceptions patterns.
3240 2013-02-08 Jakub Jelinek <jakub@redhat.com>
3242 PR rtl-optimization/56195
3243 * lra-constraints.c (get_reload_reg): Don't reuse regs
3244 if they have smaller mode than requested, if they have
3245 wider mode than requested, try to return a SUBREG.
3247 PR tree-optimization/56250
3248 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
3249 if type is unsigned and code isn't MULT_EXPR.
3251 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3253 PR tree-optimization/56064
3254 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
3255 bits according to mode.
3256 * fixed-value.h (fixed_from_double_int)
3257 (const_fixed_from_double_int): Adjust comments.
3259 2013-02-08 Richard Biener <rguenther@suse.de>
3262 * lto-streamer.h (struct data_in): Remove current_file, current_line
3263 and current_col members.
3264 * lto-streamer-out.c (lto_output_location): Stream changed bits
3265 en-block for efficiency.
3266 * lto-streamer-in.c (clear_line_info): Remove.
3267 (lto_input_location): Cache current file, line and column
3268 globally via local statics. Read changed bits en-block.
3269 (input_function): Do not call clear_line_info.
3270 (lto_read_body): Likewise.
3271 (lto_input_toplevel_asms): Likewise.
3273 2013-02-08 Michael Matz <matz@suse.de>
3275 PR tree-optimization/52448
3276 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
3277 (nt_call_phase): New static.
3278 (add_or_mark_expr): Only mark accesses with newer phase than any
3280 (nonfreeing_call_p): New.
3281 (nt_init_block): Update nt_call_phase, mark blocks as visited.
3282 (nt_fini_block): Keep blocks marked as visited.
3283 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
3285 2013-02-08 Richard Biener <rguenther@suse.de>
3287 * ira.c (ira): Free broken dominator information.
3289 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3291 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
3293 2013-02-08 Marek Polacek <polacek@redhat.com>
3295 * cfgloop.c (verify_loop_structure): Add more checking of headers.
3297 2013-02-08 Richard Biener <rguenther@suse.de>
3300 * cfgloop.h (flow_loops_find): Adjust.
3301 (bb_loop_header_p): Declare.
3302 * cfgloop.c (bb_loop_header_p): New function split out from ...
3303 (flow_loops_find): ... here. Adjust function signature,
3304 support incremental loop structure update.
3305 (verify_loop_structure): Cleanup. Verify a loop is a loop.
3306 * cfgloopmanip.c (fix_loop_structure): Move ...
3307 * loop-init.c (fix_loop_structure): ... here.
3308 (apply_loop_flags): Split out from ...
3309 (loop_optimizer_init): ... here.
3310 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
3311 in incremental mode, only remove dead loops here.
3313 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3316 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
3317 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
3318 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
3319 (*round<mode>3.libgcc): New insns for fixed-modes.
3320 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
3321 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
3322 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
3323 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
3324 implementations. Define to __builtin_avr_absFX,
3325 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
3326 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
3327 __builtin_avr_countlsFX, respectively.
3328 * config/avr/avr-c.c (target.h): Include it.
3329 (enum avr_builtin_id): New enum.
3330 (avr_resolve_overloaded_builtin): New static function.
3331 (avr_register_target_pragmas): Use it to set
3332 targetm.resolve_overloaded_builtin.
3333 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
3334 tree nodes used by DEF_BUILTIN.
3335 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
3336 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
3337 <AVR_BUILTIN_xxBITS>: Same.
3339 2013-02-08 Richard Biener <rguenther@suse.de>
3341 * cfgloop.c (verify_loop_structure): Properly handle
3342 a loop exiting to another loop header.
3343 * ira-int.h (ira_loops): Remove.
3344 * ira.c (ira_loops): Remove.
3345 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
3346 (do_reload): Use loop_optimizer_finalize.
3347 * ira-build.c (create_loop_tree_nodes): Use get_loops and
3348 number_of_loops to access the loop tree.
3349 (more_one_region_p): Likewise.
3350 (finish_loop_tree_nodes): Likewise.
3351 (rebuild_regno_allocno_maps): Likewise.
3352 (mark_loops_for_removal): Likewise.
3353 (mark_all_loops_for_removal): Likewise.
3354 (remove_unnecessary_regions): Likewise.
3355 (ira_build): Likewise.
3356 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3358 2013-02-08 Richard Biener <rguenther@suse.de>
3360 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
3361 * ipa-pure-const.c (analyze_function): Avoid calling
3362 mark_irreducible_loops twice.
3363 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
3365 2013-02-07 David S. Miller <davem@davemloft.net>
3367 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
3369 * var-tracking.c (vt_add_function_parameter): Test the presence of
3370 HAVE_window_save properly and do not remap argument registers when
3371 we have a leaf function.
3373 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
3376 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
3378 * config/i386/i386.c (ix86_print_operand): Ditto.
3380 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3382 * lra-constraints.c (process_alt_operands): Fix recently added comment.
3384 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3386 PR rtl-optimization/56225
3387 * lra-constraints.c (process_alt_operands): Check that reload hard
3388 reg can hold value for strict_low_part.
3390 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3393 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
3394 dwarf2out_end_function.
3395 (in_first_function_p, maybe_at_text_label_p,
3396 first_loclabel_num_not_at_text_label): New variables.
3397 (dwarf2out_var_location): In the first function find out
3398 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
3399 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
3402 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
3404 PR rtl-optimization/56178
3405 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
3406 SUBREG of a register. Tidy up related block of code.
3407 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
3408 note if the source is a register or a SUBREG of a register.
3410 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3413 * config/rs6000/rs6000.md (ptrm): New mode attr.
3414 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
3415 call_value_indirect_aix<pttrsize>,
3416 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
3419 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3421 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
3422 if -bnortl. Convert to strcmp and strncmp.
3424 2013-02-07 Alan Modra <amodra@gmail.com>
3427 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
3428 addresses won't wrap when offsetting.
3429 (rs6000_secondary_reload): Provide secondary reloads needed for
3430 wrapping LO_SUM addresses.
3432 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
3434 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
3435 MACH, just __MACH__.
3437 2013-02-06 Richard Biener <rguenther@suse.de>
3439 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
3440 instead of calling fix_loop_structure.
3442 2013-02-06 Jakub Jelinek <jakub@redhat.com>
3445 * omp-low.c (use_pointer_for_field): Return false if
3446 lower_send_shared_vars doesn't generate any copy-out code.
3448 2013-02-06 Tom de Vries <tom@codesourcery.com>
3450 PR rtl-optimization/56131
3451 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
3452 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
3453 of the label is NULL. Add comment.
3455 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3457 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
3460 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
3461 (STATIC_LIBTSAN_LIBS): Likewise.
3462 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
3463 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
3464 is defined, don't add anything else beyond that.
3465 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
3466 (LINK_COMMAND_SPEC): Use them.
3468 PR tree-optimization/56205
3469 * tree-stdarg.c (check_all_va_list_escapes): Return true if
3470 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
3471 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
3473 2013-02-05 Richard Biener <rguenther@suse.de>
3475 PR tree-optimization/53342
3476 PR tree-optimization/53185
3477 * tree-vectorizer.h (vect_check_strided_load): Remove.
3478 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
3479 not disallow peeling for vectorized strided loads.
3480 (vect_check_strided_load): Make static and simplify.
3481 (vect_analyze_data_refs): Adjust.
3482 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
3483 correctly when vectorizing strided loads.
3485 2013-02-05 Richard Biener <rguenther@suse.de>
3487 * doc/install.texi: Refer to ISL, not PPL.
3489 2013-02-05 Jan Hubicka <jh@suse.cz>
3491 PR tree-optimization/55789
3492 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
3494 2013-02-05 Jan Hubicka <jh@suse.cz>
3496 PR tree-optimization/55789
3497 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
3498 the dead call anyway.
3500 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
3503 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
3505 2013-02-04 Alexander Potapenko <glider@google.com>
3506 Jack Howarth <howarth@bromo.med.uc.edu>
3507 Jakub Jelinek <jakub@redhat.com>
3510 * config/darwin.c (sort_ctor_records): Stabilized qsort
3511 on constructor priority by using original position.
3512 (finalize_ctors): New routine to sort constructors by
3513 priority before use in assemble_integer.
3514 (machopic_asm_out_constructor): Use finalize_ctors if needed.
3516 2013-02-04 Jakub Jelinek <jakub@redhat.com>
3519 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
3520 about visibility on artificial decls.
3521 * config/sol2.c (solaris_assemble_visibility): Likewise.
3523 2013-02-04 Kai Tietz <ktietz@redhat.com>
3526 * config/i386/i386.c (function_value_ms_64): Add additional valtype
3527 argument and improve checking of return-argument types for 16-byte
3529 (ix86_function_value_1): Add additional valtype argument on call
3530 of function_value_64.
3531 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
3532 handling infunction_value_64 function.
3534 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
3536 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
3538 2013-02-04 Richard Biener <rguenther@suse.de>
3540 PR tree-optimization/56188
3541 * tree-ssa-structalias.c (label_visit): Consider case with
3542 initially non-empty points-to set.
3543 (perform_var_substitution): Dump node mapping and clean up.
3545 2013-02-04 Richard Guenther <rguenther@suse.de>
3548 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
3549 node prevail as last resort.
3550 (lto_symtab_merge_decls): Remove guard on LTRANS here.
3551 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
3553 2013-02-04 Richard Biener <rguenther@suse.de>
3555 PR tree-optimization/56113
3556 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
3558 (equiv_class_lookup_or_add): ... this.
3559 (label_visit): Adjust and fix error in previous patch.
3560 (perform_var_substitution): Adjust.
3562 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
3564 * config/sh/divtab.c: Fix formatting and comments throughout the file.
3565 * config/sh/sh4-300.md: Likewise.
3566 * config/sh/sh4a.md: Likewise.
3567 * config/sh/constraints.md: Likewise.
3568 * config/sh/sh.md: Likewise.
3569 * config/sh/netbsd-elf.h: Likewise.
3570 * config/sh/predicates.md: Likewise.
3571 * config/sh/sh-protos.h: Likewise.
3572 * config/sh/ushmedia.h: Likewise.
3573 * config/sh/linux.h: Likewise.
3574 * config/sh/sh.c: Likewise.
3575 * config/sh/superh.h: Likewise.
3576 * config/sh/elf.h: Likewise.
3577 * config/sh/sh4.md: Likewise.
3578 * config/sh/sh.h: Likewise.
3580 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3582 * config/pa/constraints.md: Adjust unused letters. Change "T"
3583 constraint to match_test floating_point_store_memory_operand().
3584 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
3585 (base14_operand): New.
3586 (floating_point_store_memory_operand): New.
3587 (integer_store_memory_operand): Revise to use base14_operand and
3588 reg_plus_base_memory_operand.
3589 (move_dest_operand): Allow symbolic_memory_operands.
3590 (symbolic_memory_operand): Check for LO_SOM.
3591 (symbolic_operand): Change default case to break.
3592 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
3593 CONST_DOUBLE values to be reloaded by putting them into memory when
3594 the destination is a floating point register.
3595 (movdf): Remove code to handle CONST_DOUBLE.
3597 (reload_indf_r1): New.
3598 (reload_insf_r1): New.
3599 Consistently use "Q" and "T" constraints with integer and floating
3600 point move instructions, respectively.
3601 (movdi): Remove FAIL.
3602 Change predicate for source operand unamed DImode move from
3603 general_operand to move_src_operand.
3604 (umulsidi3): Change predicate for destination operand to
3606 Likewise for similar unamed patterns.
3607 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
3608 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
3609 (hppa_legitimize_address): Simplify mask calculation.
3610 (pa_emit_move_sequence): Revised handling of secondary reloads from
3611 REG+D addresses for floating point loads and stores. Directly handle
3612 loading CONST0_RTX (mode) to a floating point register.
3613 (pa_secondary_reload): Handle reloading DF and SFmode constant values
3614 to floating point registers. Don't restrict secondary reloads to
3615 floating point registers to integer modes. Revise some comments and
3617 (TARGET_LEGITIMATE_ADDRESS_P): Define.
3618 (pa_legitimate_address_p): New.
3619 (pa_legitimize_reload_address): New.
3620 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
3621 (STRICT_REG_OK_FOR_BASE_P): New.
3622 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
3623 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
3625 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
3626 Andrew Dixie <andrewd@gentrack.com>
3628 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
3631 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
3633 * expmed.c (extract_bit_field_1): Pass the full width of the
3634 structure to get_best_reg_extraction_insn.
3636 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
3639 * configure.ac (use_cxa_atexit): Add AIX.
3640 * configure: Regenerate.
3642 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
3644 2013-02-01 Jakub Jelinek <jakub@redhat.com>
3647 * final.c (need_profile_function): New variable.
3648 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
3649 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
3650 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
3651 notes, targetm.asm_out.function_prologue doesn't emit anything,
3652 HAVE_prologue and profiler should be emitted before prologue,
3653 set need_profile_function instead of emitting it.
3654 (final_scan_insn): If need_profile_function, emit
3655 profile_function on the first NOTE_INSN_BASIC_BLOCK or
3656 NOTE_INSN_FUNCTION_BEG note.
3658 2013-02-01 Richard Henderson <rth@redhat.com>
3660 * config/rs6000/rs6000.md (smulditi3): New.
3663 * config/alpha/alpha.md (umulditi3): New.
3665 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
3667 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
3668 (ASM_OUTPUT_ALIGNED_LOCAL): New.
3670 2013-02-01 Richard Biener <rguenther@suse.de>
3672 PR tree-optimization/56113
3673 * tree-ssa-structalias.c (label_visit): Reduce work for
3674 single-predecessor nodes.
3676 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
3678 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
3679 range isn't testing for zero.
3681 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
3684 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
3686 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
3687 Nick Clifton <nickc@redhat.com>
3689 * config/v850/constraints.md (Q): Define as a memory constraint.
3690 * config/v850/predicates.md (label_ref_operand): New predicate.
3691 (e3v5_shift_operand): New predicate.
3692 (ior_operator): New predicate.
3693 * config/v850/t-v850: Add e3v5 multilib.
3694 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
3695 (v850_gen_movdi): Prototype.
3696 * config/v850/v850.c: Add support for e3v5 architecture.
3697 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
3699 (construct_save_jarl): Add e3v5 long JARL support.
3700 (v850_adjust_insn_length): New function. Adjust length of call
3701 insns when using e3v5 instructions.
3702 (v850_gen_movdi): New function: Generate instructions to move a
3704 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
3705 (CPP_SPEC): Define __v850e3v5__ as appropriate.
3706 (TARGET_USE_FPU): Enable for e3v5.
3707 (CONST_OK_FOR_W): New macro.
3708 (ADJUST_INSN_LENGTH): Define.
3709 * config/v850/v850.md (UNSPEC_LOOP): Define.
3710 (attr cpu): Add v850e3v5.
3711 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
3712 (movdi): New pattern.
3713 (movdi_internal): New pattern.
3714 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
3715 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
3716 (cstoresf4): Likewise.
3717 (cstoredf4): Likewise.
3718 (insv): New pattern.
3719 (rotlso3_a): New pattern.
3720 (rotlsi3_b): New pattern
3721 (rotlsi3_v850e3v5): New pattern.
3722 (doloop_begin): New pattern.
3723 (fix_loop_counter): New pattern.
3724 (doloop_end): New pattern.
3725 (branch_normal): Add e3v5 long branch support.
3726 (branch_invert): Likewise.
3727 (branch_z_normal): Likewise.
3728 (branch_z_invert): Likewise.
3729 (branch_nz_normal): Likewise.
3730 (branch_nz_invert): Likewise.
3731 (call_internal_short): Add e3v5 register-indirect JARL support.
3732 (call_internal_long): Likewise.
3733 (call_value_internal_short): Likewise.
3734 (call_value_internal_long): Likewise.
3735 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
3736 (mloop): New option.
3737 * config.gcc: Add support for configuring v840e3v5 target.
3738 * doc/invoke.texi: Document new v850 specific command line options.
3740 2013-01-31 Paul Koning <ni1d@arrl.net>
3744 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
3745 children if parent is a class.
3746 (prune_unused_types_prune): Don't add DW_AT_declaration.
3748 2013-01-31 Richard Biener <rguenther@suse.de>
3750 PR tree-optimization/56157
3751 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
3752 match up operand with SLP child.
3754 2013-01-31 Jason Merrill <jason@redhat.com>
3757 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
3758 parameters the first time.
3759 (gen_scheduled_generic_parms_dies): Check completeness here.
3761 2013-01-31 Richard Biener <rguenther@suse.de>
3764 * common.opt (faggressive-loop-optimizations): New flag,
3766 * doc/invoke.texi (faggressive-loop-optimizations): Document.
3767 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
3768 infer_loop_bounds_from_undefined by it.
3770 2013-01-31 Richard Biener <rguenther@suse.de>
3772 PR tree-optimization/56150
3773 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
3774 visit virtual operands.
3775 (find_uses_to_rename_bb): Likewise.
3777 2013-01-31 Richard Biener <rguenther@suse.de>
3779 PR tree-optimization/56150
3780 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
3781 mixed store non-store stmts.
3783 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3786 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
3787 LIBASAN_EARLY_SPEC is defined.
3788 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
3789 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
3791 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
3794 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
3795 invalid args instead of ICEing on it.
3796 (ix86_valid_target_attribute_tree): Return error_mark_node if
3797 ix86_valid_target_attribute_inner_p failed.
3798 (ix86_valid_target_attribute_p): Return false only if
3799 ix86_valid_target_attribute_tree returned error_mark_node. Allow
3800 target("default") attribute.
3801 (sorted_attr_string): Change argument from const char * to tree,
3802 merge in all target attribute arguments rather than just one.
3803 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
3804 instead of free. Avoid using strcat.
3805 (ix86_mangle_function_version_assembler_name): Mangle
3806 target("default") as if no target attribute is present. Adjust
3807 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
3808 instead of xmalloc and XDELETEVEC instead of free.
3809 (ix86_function_versions): Don't return true if one of the decls
3810 doesn't have target attribute. If they don't and one of the decls
3811 is DECL_FUNCTION_VERSIONED, report an error. Adjust
3812 sorted_attr_string caller. Use XDELETEVEC instead of free.
3813 (ix86_supports_function_versions): Remove.
3814 (make_name): Fix up formatting.
3815 (make_dispatcher_decl): Remove resolver_name and its initialization.
3816 Avoid leaking memory.
3817 (is_function_default_version): Return true if there is
3818 target("default") attribute rather than no target attribute at all.
3819 (make_resolver_func): Avoid leaking memory.
3820 (ix86_generate_version_dispatcher_body): Likewise.
3821 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
3822 * target.def (supports_function_versions): Remove.
3823 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
3824 * doc/tm.texi: Regenerated.
3826 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
3828 PR rtl-optimization/56144
3829 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
3830 for values with side effects.
3832 2013-01-30 Richard Biener <rguenther@suse.de>
3834 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
3835 (sparseset_pop): Likewise.
3836 * cfganal.c (compute_idf): Likewise. Increase work-stack size
3837 to be able to use quick_push in the worker loop.
3839 2013-01-30 Marek Polacek <polacek@redhat.com>
3841 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
3843 2013-01-30 Richard Biener <rguenther@suse.de>
3846 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
3848 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
3850 PR tree-optimization/56064
3851 * fixed-value.c (fixed_from_double_int): New function.
3852 * fixed-value.h (fixed_from_double_int): New prototype.
3853 (const_fixed_from_double_int): New static inline function.
3854 * fold-const.c (native_interpret_fixed): New static function.
3855 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
3856 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
3857 (native_encode_fixed): New static function.
3858 (native_encode_expr) <FIXED_CST>: Use it.
3859 (native_interpret_int): Move double_int worker code to...
3860 * double-int.c (double_int::from_buffer): ...this new static method.
3861 * double-int.h (double_int::from_buffer): Prototype it.
3863 2013-01-30 Richard Biener <rguenther@suse.de>
3865 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
3866 New pointer-map and obstack.
3867 (init_alias_vars): Allocate pointer-map and obstack.
3868 (delete_points_to_sets): Free them.
3869 (find_what_var_points_to): Cache result.
3870 (find_what_p_points_to): Adjust for changed interface of
3871 find_what_var_points_to.
3872 (compute_points_to_sets): Likewise.
3873 (ipa_pta_execute): Likewise.
3875 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3877 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
3878 * configure: Regenerate.
3879 * config.in: Regenerate.
3880 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
3881 #nobits/#progbits if supported.
3883 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
3886 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
3887 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
3888 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
3890 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3892 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
3893 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
3895 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3897 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
3898 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
3900 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3902 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
3904 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
3905 * config/arm/cortex-a7.md: New bypasses using
3906 arm_mac_accumulator_is_result.
3908 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3910 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
3911 (cortex_a7_neon_mla): Likewise.
3912 (cortex_a7_fpfmad): New reservation.
3913 (cortex_a7_fpmacs): Use ffmas and update required units.
3914 (cortex_a7_fpmuld): Update required units and latency.
3915 (cortex_a7_fpmacd): Likewise.
3916 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
3917 (cortex_a7_neon). Likewise.
3918 (bypass) Update participating units.
3920 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3922 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
3923 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
3925 * config/arm/vfp11.md (vfp_farith): Use ffmas.
3926 (vfp_fmul): Use ffmad.
3927 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
3928 (cortex_r4_fmacd): Use ffmad.
3929 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
3930 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
3931 (cortex_a9_fmacd): Use ffmad.
3932 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
3933 (cortex_a8_vfp_macd): Use ffmad.
3934 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
3935 (cortex_a5_fpmacd): Use ffmad.
3936 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
3937 (cortex_a15_vfp_macd): Use ffmad.
3938 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
3940 2013-01-29 Jason Merrill <jason@redhat.com>
3943 * varasm.c (default_assemble_visibility): Don't warn about
3944 visibility on artificial decls.
3946 2013-01-29 Richard Biener <rguenther@suse.de>
3948 PR tree-optimization/56113
3949 * tree-ssa-structalias.c (equiv_class_lookup): Also return
3951 (label_visit): Free duplicate bitmaps and record the leader instead.
3952 (perform_var_substitution): Adjust.
3954 2013-01-29 Richard Biener <rguenther@suse.de>
3956 PR tree-optimization/55270
3957 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
3958 the CFG, schedule loops for fixup.
3960 2013-01-29 Nick Clifton <nickc@redhat.com>
3962 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
3965 2013-01-28 Leif Ekblad <leif@rdos.net>
3967 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
3968 * config/i386/i386.h (TARGET_RDOS): New macro.
3969 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
3970 * config/i386/i386.c (ix86_option_override_internal): For 64bit
3971 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
3972 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
3973 DEFAULT_LARGE_SECTION_THRESHOLD.
3974 * config/i386/i386.md (R14_REG, R15_REG): New constants.
3975 * config/i386/rdos.h: New file.
3976 * config/i386/rdos64.h: New file.
3978 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
3981 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
3984 2013-01-28 Jakub Jelinek <jakub@redhat.com>
3986 PR rtl-optimization/56117
3987 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
3988 call cselib_lookup_from_insn on the MEM before calling
3989 add_insn_mem_dependence.
3991 2013-01-28 Richard Biener <rguenther@suse.de>
3993 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
3994 to a stmt that didn't have one.
3995 (copy_phis_for_bb): Likewise for PHI arguments.
3996 (copy_debug_stmt): Likewise for debug stmts.
3998 2013-01-28 Richard Biener <rguenther@suse.de>
4000 PR tree-optimization/56034
4001 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
4002 (partition_builtin_p): Adjust.
4003 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
4004 it is the last partition.
4005 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
4006 up the vertex for the definition.
4007 (classify_partition): Classify whether a partition is a
4008 PKIND_REDUCTION, thus has uses outside of the loop.
4009 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
4010 Merge all PKIND_REDUCTION partitions into the last partition.
4011 (tree_loop_distribution): Seed partitions from reductions as well.
4013 2013-01-28 Jakub Jelinek <jakub@redhat.com>
4015 PR tree-optimization/56125
4016 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
4017 pow(x,c) into sqrt(x) * powi(x, n/2) or
4018 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
4019 optimizing for size.
4020 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
4021 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
4024 PR tree-optimization/56094
4025 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
4026 to UNKNOWN_LOCATION while gimplifying expr.
4028 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
4031 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
4032 operand 0 in movabs insn template for -masm=intel asm alternative.
4033 (*movabs<mode>_2): Ditto for operand 1.
4035 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
4038 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
4041 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4043 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
4046 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4048 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
4049 Undef to avoid warning.
4051 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4053 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
4054 * configure: Regenerate.
4056 2013-01-25 Jakub Jelinek <jakub@redhat.com>
4058 PR tree-optimization/56098
4059 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
4060 for stmts with volatile ops.
4061 (cond_store_replacement): Don't optimize if assign has volatile ops.
4062 (cond_if_else_store_replacement_1): Don't optimize if either
4063 then_assign or else_assign have volatile ops.
4064 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
4067 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4069 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
4071 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4073 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
4074 missing ':' in asm example.
4076 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
4078 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
4079 entries into lane and laneq entries.
4080 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
4081 Remove AdvSIMD scalar modes.
4082 (aarch64_sq<r>dmulh_laneq<mode>): New.
4083 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
4085 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
4086 builtin implementations to relfect changes in RTL in aarch64-simd.md.
4087 * config/aarch64/iterators.md (VCOND): New.
4090 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4093 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
4094 Add NULL LIBNAME argument to existing definitions.
4095 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
4096 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
4097 * config/avr/avr.c (DEF_BUILTIN): Same.
4098 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
4099 (avr_expand_builtin): Expand to a vanilla call if a libgcc
4100 implementation is available (DECL_ASSEMBLER_NAME is set).
4101 (avr_fold_absfx): New static function.
4102 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
4103 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
4104 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
4106 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
4107 (abshk, absk, abslk, absllk): Provide as static inline functions.
4109 2013-01-25 Marek Polacek <polacek@redhat.com>
4111 PR tree-optimization/56035
4112 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
4114 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
4116 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
4117 (*movtf_internal_rex64): Add (!o,C) alternative
4118 (*movxf_internal_rex64): Ditto.
4119 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
4121 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
4123 * doc/invoke.texi: fix typo.
4124 * doc/objc.texi: fix typo.
4126 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4128 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
4129 for the first two alternatives.
4131 2013-01-24 Diego Novillo <dnovillo@google.com>
4133 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
4134 (ggc-zone.o): Remove.
4135 * configure.ac: Remove option --with-gc.
4136 * configure: Re-generate.
4137 * doc/install.texi: Remove documentation for --with-gc.
4138 * gengtype.c (write_enum_defn): Remove. Update all users.
4139 (write_Types_process_field): Remove generation of gt_e_* argument.
4140 (output_type_enum): Remove. Update all users.
4141 (write_enum_defn): Remove. Update all users.
4142 (enum alloc_zone): Remove. Update all users.
4143 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
4144 * ggc-common.c (ggc_splay_alloc): Remove first argument.
4146 (struct ptr_data): Remove field TYPE. Update all users.
4147 (gt_pch_note_object): Remove argument TYPE. Update all users.
4148 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
4150 * ggc-none.c (ggc_alloc_typed_stat): Remove.
4151 (struct alloc_zone): Remove.
4152 (ggc_internal_alloc_zone_stat): Remove.
4153 (ggc_internal_cleared_alloc_zone_stat): Remove.
4154 * ggc-page.c (ggc_alloc_typed_stat): Remove.
4155 (ggc_pch_count_object): Remove last argument. Update all users.
4156 (ggc_pch_alloc_object): Remove last argument. Update all users.
4157 (struct alloc_zone): Remove.
4158 * ggc-zone.c: Remove.
4159 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
4160 (struct alloc_zone): Remove.
4161 (ggc_alloc_typed_stat): Remove.
4162 (ggc_alloc_typed): Remove.
4163 (ggc_splay_alloc): Remove first argument.
4164 (rtl_zone): Remove. Update all users.
4165 (tree_zone): Remove. Update all users.
4166 (tree_id_zone): Remove. Update all users.
4167 (ggc_internal_zone_alloc_stat): Remove. Update all users.
4168 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
4169 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
4170 * tree-ssanames.c: Remove references to zone allocator in comments.
4172 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
4174 * config/avr/avr.c (avr_out_fract): Make register numbers that
4175 might be outside of source operand signed.
4177 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
4179 * config/i386/constraints.md (Yf): New constraint.
4180 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
4181 of f constraint to conditionaly disable x87 register preferences.
4182 (*movdf_internal): Ditto.
4183 (*movsf_internal): Ditto.
4185 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
4188 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
4189 that have operands with impossible constraints.
4190 Add a FIXME for a speed-up opportunity.
4191 * lra-constraints.c (process_alt_operands): Verify that a class
4192 selected from constraints on asms is valid for the operand mode.
4193 (curr_insn_transform): Remove incorrect comment.
4195 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
4197 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
4198 TOC operand is a valid symbol ref in the constant pool.
4200 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4202 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
4204 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
4207 * config/avr/stdfix.h: New file.
4208 * t-avr (stdfix-gcc.h): New rule to build it.
4209 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
4211 2013-01-23 Kostya Serebryany <kcc@google.com>
4213 * config/darwin.h: remove dependency on
4214 CoreFoundation (asan on Mac OS).
4216 2013-01-23 Jakub Jelinek <jakub@redhat.com>
4219 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
4220 instead of cmpdi_operand for first comparison operand.
4221 Don't assert that comparison operands aren't both constants.
4223 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4225 * doc/install.texi (Downloading the Source): Update references to
4226 downloading separate components.
4228 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4230 * doc/extend.texi (__int128): Improve grammar.
4232 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
4235 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
4236 alternative to (o,r).
4237 (*movdi_internal_rex64): Remove (!o,n) alternative.
4238 (DImode immediate->memory splitter): Remove.
4239 (DImode immediate->memory peephole2): Remove.
4240 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
4241 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
4242 alternative to (!o,*r).
4243 (*movtf_internal_sse): New pattern.
4244 (*movxf_internal_rex64): New pattern.
4245 (*movxf_internal): Disable for TARGET_64BIT.
4246 (*movdf_internal_rex64): Remove (!o,F) alternative.
4248 2013-01-22 Jakub Jelinek <jakub@redhat.com>
4251 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
4252 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
4253 * tree-vect-loop-manip.c (find_loop_location): Also ignore
4254 stmt locations where LOCATION_LOCUS of the stmt location is
4255 UNKNOWN_LOCATION or BUILTINS_LOCATION.
4258 * config/i386/i386.md (UNSPEC_STOS): New.
4259 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
4260 *strsetqi_1): Add UNSPEC_STOS.
4262 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
4265 * doc/invoke.texi: Remove left over -Wsynth example.
4267 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4269 PR tree-optimization/56051
4270 * fold-const.c (fold_binary_loc): Don't fold
4271 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
4272 a narrowing conversion, or widening conversion from signed
4275 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4277 PR rtl-optimization/56023
4278 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
4279 dependent on debug instruction.
4281 2013-01-21 Martin Jambor <mjambor@suse.cz>
4284 * function.c (allocate_struct_function): Call
4285 invoke_set_current_function_hook earlier.
4287 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4289 * reload1.c (init_reload): Only initialize reload_obstack
4290 during the first call.
4292 2013-01-21 Marek Polacek <polacek@redhat.com>
4294 * cfgloop.c (verify_loop_structure): Fix up grammar.
4296 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
4298 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
4299 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
4301 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4304 * config/arm/marvell-pj4.md: Update copyright year.
4305 Fix up use of alu to alu_reg and simple_alu_imm.
4307 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4309 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
4311 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
4314 * lra-constraints.c (curr_insn_transform): Don't reuse original
4315 insn for secondary memory move when memory mode should be different.
4317 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4319 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
4320 atomic_storedi_1): New patterns.
4322 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4324 btver2 pipeline descriptions.
4325 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
4327 * config/i386/i386.md (btver2_decode): New type attributes.
4328 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
4330 * config/i386/btver2.md: New file describing btver2 pipelines.
4332 2013-01-19 Andrew Pinski <apinski@cavium.com>
4334 PR tree-optimization/52631
4335 * tree-ssa-sccvn (visit_use): Before looking up the original
4336 statement, try looking up the simplified expression.
4338 2013-01-19 Anthony Green <green@moxielogic.com>
4340 * config/moxie/moxie.c (moxie_expand_prologue): Set
4341 current_function_static_stack_size.
4343 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4345 PR tree-optimization/56029
4346 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
4347 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
4349 2013-01-18 Sharad Singhai <singhai@google.com>
4351 PR tree-optimization/55995
4352 * dumpfile.c (dump_loc): Print location only if available.
4353 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
4355 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
4358 * lra-constraints.c (curr_insn_transform): Reuse original insn for
4359 secondary memory move.
4360 (inherit_reload_reg): Use rclass instead of cl for
4361 check_secondary_memory_needed_p.
4363 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4366 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
4367 the case where writing real complex part of target modifies op1.
4369 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
4371 * config/aarch64/aarch64-simd.md
4372 (aarch64_vcond_internal<mode>): Handle unordered cases.
4373 * config/aarch64/iterators.md (v_cmp_result): New.
4375 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
4376 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4378 * config/arm/marvell-pj4.md: New file.
4379 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
4380 * config/arm/arm.md (generic_sched): Add marvell_pj4.
4381 (generic_vfp): Likewise.
4382 * config/arm/arm-cores.def: Add marvell-pj4.
4383 * config/arm/arm-tune.md: Regenerate.
4384 * config/arm/arm-tables.opt: Regenerate.
4385 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
4386 * doc/invoke.texi: Document marvell-pj4.
4388 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
4390 * config/aarch64/arm_neon.h: Map scalar types to standard types.
4392 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4397 * var-tracking.c (negative_power_of_two_p): New.
4398 (global_get_addr_cache, local_get_addr_cache): New.
4399 (get_addr_from_global_cache, get_addr_from_local_cache): New.
4400 (vt_canonicalize_addr): Rewrite using the above. Adjust the
4402 (vt_stack_offset_p): Remove.
4403 (vt_canon_true_dep): Always canonicalize loc's address.
4404 (clobber_overlapping_mems): Make sure we have a MEM.
4405 (local_get_addr_clear_given_value): New.
4406 (val_reset): Clear local cached entries.
4407 (compute_bb_dataflow): Create and release the local cache.
4408 Disable duplicate MEMs clobbering.
4409 (emit_notes_in_bb): Clobber MEMs likewise.
4410 (vt_emit_notes): Create and release the local cache.
4411 (vt_initialize, vt_finalize): Create and release the global
4412 cache, respectively.
4413 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
4415 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4418 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
4419 not found in the symtab.
4421 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4424 PR rtl-optimization/55547
4425 PR rtl-optimization/53827
4428 * alias.c (offset_overlap_p): New, factored out of...
4429 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
4430 the conservative special case for symbolic constants. Don't
4431 adjust zero sizes on alignment.
4433 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
4435 PR rtl-optimization/52573
4436 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
4437 REG_UNUSED for the same register.
4439 2013-01-17 Richard Biener <rguenther@suse.de>
4440 Marek Polacek <polacek@redhat.com>
4442 PR rtl-optimization/55833
4443 * loop-unswitch.c (unswitch_loops): Move loop verification...
4444 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
4445 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
4446 Set it to true when we're removing a loop from hierarchy tree in
4447 an irreducible region.
4448 (fix_bb_placements): Adjust caller.
4449 (fix_loop_placements): Likewise.
4451 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
4453 * config/avr/builtins.def (DEF_BUILTIN): Factor out
4454 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
4455 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
4456 Remove ID. Adjust comments.
4457 * config/avr/avr-c.c (avr_builtin_name): Remove.
4458 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
4459 * config/avr/avr.c (avr_tolower): New static function.
4460 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
4461 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
4462 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
4465 2013-01-17 Jan Hubicka <jh@suse.cz>
4467 PR tree-optimization/55273
4468 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
4470 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
4473 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
4474 store through atomic_store<mode>_1.
4475 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
4477 2013-01-17 Martin Jambor <mjambor@suse.cz>
4479 PR tree-optimizations/55264
4480 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
4481 for virtual methods.
4482 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
4483 virtual methods before inlining is over.
4484 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
4486 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
4489 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
4491 PR rtl-optimization/56005
4492 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
4493 pending reads for prefetch.
4495 2013-01-16 Ian Bolton <ian.bolton@arm.com>
4497 * config/aarch64/aarch64.md
4498 (*cstoresi_neg_uxtw): New pattern.
4499 (*cmovsi_insn_uxtw): New pattern.
4500 (*<optab>si3_uxtw): New pattern.
4501 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
4502 (*<optab>si3_insn_uxtw): New pattern.
4503 (*bswapsi2_uxtw): New pattern.
4505 2013-01-16 Richard Biener <rguenther@suse.de>
4507 * tree-inline.c (tree_function_versioning): Remove set but
4508 never used variable.
4510 2013-01-16 Richard Biener <rguenther@suse.de>
4512 PR tree-optimization/55964
4513 * tree-flow.h (rename_variables_in_loop): Remove.
4514 (rename_variables_in_bb): Likewise.
4515 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
4516 (copy_loop_before): Adjust and delete update-ssa status.
4517 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
4518 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
4519 (rename_variables_in_loop): Remove.
4520 (slpeel_update_phis_for_duplicate_loop): Likewise.
4521 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
4522 use available cfg machinery instead of duplicating it.
4523 Update PHI nodes and perform poor-mans SSA update here.
4524 (slpeel_tree_peel_loop_to_edge): Adjust.
4526 2013-01-16 Richard Biener <rguenther@suse.de>
4528 PR tree-optimization/54767
4529 PR tree-optimization/53465
4530 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
4531 (vrp_visit_phi_node): For PHI arguments coming via backedges
4532 drop all symbolical range information.
4533 (execute_vrp): Compute backedges.
4535 2013-01-16 Richard Biener <rguenther@suse.de>
4537 * doc/install.texi: Update CLooG and ISL requirements to
4540 2013-01-16 Christian Bruel <christian.bruel@st.com>
4543 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
4544 (broken_move): Handle UNSPECV_SP_SWITCH_B.
4545 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
4547 2013-01-16 DJ Delorie <dj@redhat.com>
4549 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4550 (UNSPECV_SP_SWITCH_E): New.
4551 (sp_switch_1): Change to an unspec.
4552 (sp_switch_2): Change to an unspec. Don't use post-inc when we
4555 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
4557 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
4558 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
4559 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
4560 (expand_mem_thread_fence): Ditto.
4561 (expand_mem_signal_fence): Ditto.
4562 (expand_atomic_load): Ditto.
4563 (expand_atomic_store): Ditto.
4565 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
4567 PR rtl-optimization/55547
4568 PR rtl-optimization/53827
4571 * alias.c (memrefs_conflict_p): Set sizes to negative after
4574 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4577 * function.c (thread_prologue_and_epilogue_insns): Always
4578 add crtl->drap_reg to set_up_by_prologue.set, even if
4579 stack_realign_drap is false.
4581 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4583 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
4584 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
4585 *call): Fix indention.
4587 2013-01-15 Tom de Vries <tom@codesourcery.com>
4590 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
4593 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
4595 PR rtl-optimization/55153
4596 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
4598 2013-01-15 Martin Jambor <mjambor@suse.cz>
4600 PR tree-optimization/55920
4601 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
4602 accesses as grp_to_be_debug_replaced.
4604 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4606 PR tree-optimization/55920
4607 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
4608 there is non-useless type conversion needed from debug rhs to lhs,
4609 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
4611 2013-01-15 Joseph Myers <joseph@codesourcery.com>
4612 Mikael Pettersson <mikpe@it.uu.se>
4615 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
4617 (ASM_OUTPUT_CASE_LABEL): Remove.
4618 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
4619 * final.c (shorten_branches): Update alignment of labels before
4620 jump tables if CASE_VECTOR_SHORTEN_MODE.
4622 2013-01-15 Richard Biener <rguenther@suse.de>
4625 * system.h: Do not include gmp.h for building host tools.
4627 2013-01-15 Richard Biener <rguenther@suse.de>
4630 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
4631 account for bitpos when computing alignment.
4633 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
4635 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
4636 (ix86_target_macros_internal): Likewise.
4638 * config/i386/i386.c (m_CORE2I7): Removed.
4639 (m_CORE_HASWELL): New macro.
4640 (m_CORE_ALL): Likewise.
4641 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
4642 (initial_ix86_arch_features): Likewise.
4643 (processor_target_table): Initializations for Core avx2.
4644 (cpu_names): New names "core-avx2".
4645 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
4646 PROCESSOR_CORE_HASWELL.
4647 (ix86_issue_rate): New case.
4648 (ia32_multipass_dfa_lookahead): Likewise.
4649 (ix86_sched_init_global): Likewise.
4651 * config/i386/i386.h (TARGET_HASWELL): New macro.
4652 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
4653 (processor_type): New PROCESSOR_HASWELL.
4655 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4657 PR tree-optimization/55955
4658 * tree-vect-loop.c (vectorizable_reduction): Give up early on
4659 *SHIFT_EXPR and *ROTATE_EXPR codes.
4661 PR tree-optimization/48766
4662 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
4663 -ftrapv disable -fwrapv.
4665 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4668 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
4669 etc. to 1 and not to __flash.
4670 Use LL suffix for __INT24_MAX__ with -mint8.
4671 Use ULL suffix for __UINT24_MAX__ with -mint8.
4673 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4675 * config/avr/avr-arch.h
4676 (struct base_arch_s): Use typedef avr_arch_t instead.
4677 (struct arch_info_s): Use typedef avr_arch_info_t instead.
4678 (struct mcu_type_s): Use typedef avr_mcu_t instead.
4679 * config/avr/avr.c: Same.
4680 * config/avr/avr-devices.c: Same.
4681 * config/avr/driver-avr.c: Same.
4682 * config/avr/gen-avr-mmcu-texi.c: Same.
4683 * config/avr/avr-mcus.def: Adjust comment.
4685 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
4687 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
4688 * config/aarch64/iterators.md (VALLDI): New.
4690 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
4691 Andi Kleen <ak@linux.intel.com>
4694 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
4695 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
4698 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4700 * config/avr/avr-stdint.h: Remove trailing blanks.
4701 * config/avr/avr-log.h: Same.
4702 * config/avr/avr-arch.h: Same.
4703 * config/avr/avr-devices.c: Same.
4704 * config/avr/avr-dimode.md: Same.
4705 * config/avr/predicates.md: Same.
4706 * config/avr/avr-c.c: Same. And fix typo.
4708 * config/avr/avr-protos.h: Same. And:
4709 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
4710 (init_cumulative_args): Rename to avr_init_cumulative_args.
4711 (expand_prologue): Rename to avr_expand_prologue.
4712 (expand_epilogue): Rename to avr_expand_epilogue.
4713 (adjust_insn_length): Rename to avr_adjust_insn_length.
4714 (notice_update_cc): Rename to avr_notice_update_cc.
4715 (final_prescan_insn): Rename to avr_final_prescan_insn.
4716 * config/avr/avr.c: Same.
4717 * config/avr/avr.h: Same.
4718 * config/avr/avr.md: Remove trailing blanks.
4719 (prologue): Use avr_expand_prologue.
4720 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
4722 2013-01-14 Richard Biener <rguenther@suse.de>
4724 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
4725 verify_location, collect_subblocks): New functions.
4726 (verify_gimple_in_cfg): Verify that locations only reference
4727 BLOCKs in the functions BLOCK tree.
4729 2013-01-14 Richard Biener <rguenther@suse.de>
4731 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
4733 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
4735 (insert_out_of_ssa_copy_on_edge): Likewise.
4736 (rewrite_close_phi_out_of_ssa): Likewise.
4737 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
4739 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
4740 propagated constants.
4741 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
4744 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4746 * config/avr/avr-modes.def: Add GPL copyright notice.
4748 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
4750 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
4751 MEMMODEL_MASK to determine memory model.
4752 (atomic_store<mode>): Ditto from operands[2].
4753 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
4755 2013-01-13 Jakub Jelinek <jakub@redhat.com>
4758 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
4759 (fold_gimple_assign): Don't call unshare_expr here.
4760 (fold_ctor_reference): Call unshare_expr.
4762 2013-01-13 Terry Guo <terry.guo@arm.com>
4764 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
4765 * doc/fragments.texi: Document MULTILIB_REUSE.
4766 * gcc.c (multilib_reuse): New internal spec.
4767 (set_multilib_dir): Also search multilib from multilib_reuse.
4768 * genmultilib (tmpmultilib3): Refactor code.
4769 (tmpmultilib4): Ditto.
4770 (multilib_reuse): New multilib argument.
4772 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
4774 * Makefile.in: Update copyright.
4776 2013-01-12 Tom de Vries <tom@codesourcery.com>
4779 * calls.c (expand_call): Check if arg_nr is valid.
4781 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4783 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
4784 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
4785 documentation. Add missing '__' in front of
4786 __builtin_ia32_packssdw256.
4788 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4791 * config/s390/s390.c (s390_preferred_reload_class): Do not return
4792 NO_REGS for larl operands.
4793 (s390_reload_larl_operand): Use s390_load_address instead of
4796 2013-01-11 Richard Biener <rguenther@suse.de>
4798 * tree-cfg.c (verify_node_sharing_1): Split out from ...
4799 (verify_node_sharing): ... here.
4800 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
4802 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
4804 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
4805 Substitute TREECHECKING.
4806 * configure: Regenerate.
4807 * Makefile.in (TREECHECKING): New.
4809 2013-01-11 Richard Guenther <rguenther@suse.de>
4811 PR tree-optimization/44061
4812 * tree-vrp.c (extract_range_basic): Compute zero as
4813 value-range for __builtin_constant_p of function parameters.
4815 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
4817 Update copyright years.
4819 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
4821 PR rtl-optimization/55672
4822 * lra-eliminations.c (mark_not_eliminable): Permit addition with
4823 const to be eliminable.
4825 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
4827 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
4828 * configure: Regenerate.
4830 2013-01-10 Richard Biener <rguenther@suse.de>
4832 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
4834 2013-01-10 Richard Biener <rguenther@suse.de>
4837 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
4838 locations for virtual PHI arguments.
4839 (rewrite_update_phi_arguments): Likewise.
4841 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
4843 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
4846 2013-01-10 Jakub Jelinek <jakub@redhat.com>
4848 PR tree-optimization/55921
4849 * tree-complex.c (expand_complex_asm): New function.
4850 (expand_complex_operations_1): Call it for GIMPLE_ASM.
4852 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4855 * config/s390/s390.c (s390_symref_operand_p)
4856 (s390_loadrelative_operand_p): Merge the two functions.
4857 (s390_check_qrst_address, print_operand_address): Add parameters
4858 to s390_loadrelative_operand_p invokation.
4859 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
4860 (s390_reload_larl_operand, s390_secondary_reload): Use
4861 s390_loadrelative_operand_p instead of s390_symref_operand_p.
4862 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
4864 2013-01-09 Mike Stump <mikestump@comcast.net>
4866 * dse.c (record_store): Remove unnecessary assert.
4868 2013-01-09 Jan Hubicka <jh@suse.cz>
4870 PR tree-optimization/55569
4871 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
4872 * cfgloop.h (scale_loop_profile): Likewise.
4874 2013-01-09 Jan Hubicka <jh@suse.cz>
4877 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
4879 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
4881 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
4884 * expr.h (maybe_emit_group_store): Declare.
4885 * expr.c (maybe_emit_group_store): New function.
4886 * builtins.c (expand_builtin_int_roundingfn): Call it.
4887 (expand_builtin_int_roundingfn_2): Likewise.
4889 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
4891 PR rtl-optimization/55829
4892 * lra-constraints.c (match_reload): Add code for absent output.
4893 (curr_insn_transform): Add code for reloads of matched inputs
4896 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
4898 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
4899 attribute of movddup insn to DF.
4900 (*vec_interleave_lowv2df): Ditto.
4901 (vec_dupv2df): Ditto.
4903 2013-01-09 Jan Hubicka <jh@suse.cz>
4905 PR tree-optimiation/55875
4906 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
4907 EVERY_ITERATION parameter.
4908 (number_of_iterations_exit): Check if exit is executed every iteration.
4909 (idx_infer_loop_bounds): Similarly here.
4910 (n_of_executions_at_most): Simplify
4911 to only test for cases where statement is dominated by the
4912 particular bound; handle correctly the "postdominance" test.
4913 (scev_probably_wraps_p): Use max loop iterations info
4914 as a global bound first.
4916 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
4917 Nick Clifton <nickc@redhat.com>
4919 * config/v850/v850.md (cbranchsf4): New pattern.
4920 (cstoresf4): New pattern.
4921 (cbranchdf4): New pattern.
4922 (cstoredf4): New pattern.
4923 (movsicc): Disallow floating point comparisons.
4924 (cmpsf_le_insn): Fix order of operators.
4925 (cmpsf_lt_insn): Likewise.
4926 (cmpsf_eq_insn): Likewise.
4927 (cmpdf_le_insn): Likewise.
4928 (cmpdf_lt_insn): Likewise.
4929 (cmpdf_eq_insn): Likewise.
4930 (cmpsf_ge_insn): Use LE comparison.
4931 (cmpdf_ge_insn): Likewise.
4932 (cmpsf_gt_insn): Use LT comparison.
4933 (cmpdf_gt_insn): Likewise.
4934 (cmpsf_ne_insn): Delete pattern.
4935 (cmpdf_ne_insn): Delete pattern.
4936 * config/v850/v850.c (v850_gen_float_compare): Use
4937 gen_cmpdf_eq_insn for NE comparison.
4938 (v850_float_z_comparison_operator)
4939 (v850_float_nz_comparison_operator): Move from here ...
4940 * config/v850/predicates.md: ... to here. Move GT and GE
4941 comparisons into v850_float_z_comparison_operator.
4942 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
4944 (v850_float_nz_comparison_operator): Likewise.
4946 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4948 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
4949 with calls to gen_insvsi/gen_insvdi.
4951 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4953 * config/i386/i386.c (initial_ix86_tune_features): Set up
4954 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
4956 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
4957 Jakub Jelinek <jakub@redhat.com>
4959 PR tree-optimization/48189
4960 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
4961 If nitercst is 0, don't predict the exit edge.
4963 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4965 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
4966 in asm_fprintf with reg_names.
4967 (aarch64_print_operand_address): Likewise.
4968 (aarch64_return_addr): Likewise.
4969 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
4971 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4973 * config/pa/pa.h (VAL_U6_BITS_P): Define.
4974 (INT_U6_BITS): Likewise.
4975 * config/pa/predicates.md (uint6_operand): New predicate.
4976 (shift5_operand, shift6_operand): Likewise.
4977 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
4979 (lshrdi3): Use shift6_operand.
4980 (shrpsi4, shrpdi4): New insn patterns.
4981 (extzv): Delete expander.
4982 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
4983 predicates in unamed zero extract patterns. Tighten common constraint.
4984 (extv): Delete expander.
4985 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
4986 predicates in unamed sign extract patterns. Tighten common constraint.
4987 (insv): Delete expander.
4988 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
4989 predicates in unamed insert patterns. Tighten common constraint.
4990 Change uint32_operand predicate to uint6_operand predicate in unamed
4991 DImode pattern to insert constant values of type 1...1xxxx.
4993 2013-01-04 Jan Hubicka <jh@suse.cz>
4995 PR tree-optimization/55823
4996 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
4999 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5000 Uros Bizjak <ubizjak@gmail.com>
5002 PR rtl-optimization/55845
5003 * df-problems.c (can_move_insns_across): Stop scanning at
5004 volatile_insn_p source instruction or give up if
5005 across_from .. across_to range contains any volatile_insn_p
5008 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5010 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
5011 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
5013 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
5014 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
5016 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5019 * asan.c (asan_clear_shadow): New function.
5020 (asan_emit_stack_protection): Use it.
5022 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5024 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
5025 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
5026 with tab instead of space.
5028 2013-01-08 Nick Clifton <nickc@redhat.com>
5030 * config/rl78/rl78.c (rl78_expand_prologue): Always select
5031 register bank 0 at the start of an interrupt handler.
5032 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
5035 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5037 * config/aarch64/aarch64-simd.md
5038 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
5039 (aarch64_simd_bsl): Likewise.
5040 (aarch64_vcond_internal<mode>): Likewise.
5041 (vcond<mode><mode>): Likewise.
5042 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
5043 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
5045 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5047 * config/aarch64/aarch64-builtins.c
5048 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
5050 2013-01-08 Martin Jambor <mjambor@suse.cz>
5053 * tree-sra.c (analyze_access_subtree): Return true also after
5054 potentially creating a debug-only replacement.
5056 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5059 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
5061 PR tree-optimization/54120
5062 * tree-vrp.c (range_fits_type_p): Don't allow
5063 src_precision < precision from signed vr to unsigned_p
5064 if vr->min or vr->max is negative.
5065 (simplify_float_conversion_using_ranges): Test can_float_p
5066 against CODE_FOR_nothing.
5068 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5069 Richard Biener <rguenther@suse.de>
5072 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
5073 types instead of just INTEGER_TYPE types.
5075 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
5077 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
5080 2013-01-07 Steve Ellcey <sellcey@mips.com>
5083 * config/mips/mips.opt: Change mad to mmad to match documentation.
5085 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5088 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
5091 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5094 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
5095 (avr_addrspace_t): Add .section_name field.
5096 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
5098 (avr_addrspace): Same. Initialize .section_name. Remove last
5099 NULL entry. Put __memx into .progmemx.data.
5100 (progmem_section_prefix): Remove.
5101 (avr_asm_init_sections): No need to initialize progmem_section.
5102 (avr_asm_named_section): Use avr_addrspace[].section_name to get
5103 section name prefix.
5104 (avr_asm_select_section): Ditto. And use get_unnamed_section to
5105 retrieve the progmem section.
5106 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
5107 boundary to run over avr_addrspace[].
5108 (avr_register_target_pragmas): Ditto.
5110 2013-01-06 Jakub Jelinek <jakub@redhat.com>
5112 * varasm.c (output_constant_def_contents): For asan_protect_global
5113 protected strings, adjust DECL_ALIGN if needed, before testing for
5115 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
5116 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
5118 (output_object_block): For asan protected decls, emit asan padding
5119 after their contents.
5120 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
5121 (asan_finish_file): Test it here instead.
5123 2013-01-07 Nick Clifton <nickc@redhat.com>
5124 Matthias Klose <doko@debian.org>
5125 Doug Kwan <dougkwan@google.com>
5126 H.J. Lu <hongjiu.lu@intel.com>
5129 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
5131 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
5133 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
5135 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
5137 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
5139 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5142 * doc/install.texi (Cross-Compiler-Specific Options): Document
5145 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
5147 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
5148 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
5149 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
5150 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
5151 vqmovun_high_s64): Fix source operand number and update copyright.
5153 2013-01-07 Richard Biener <rguenther@suse.de>
5156 * gimple.h (gimple_call_builtin_p): New overload.
5157 * gimple.c (validate_call): New function.
5158 (gimple_call_builtin_p): Likewise.
5159 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5160 Use gimple_call_builtin_p.
5161 (find_func_clobbers): Likewise.
5162 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
5163 (strlen_optimize_stmt): Likewise.
5165 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5167 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
5168 (vld1q_dup_*): Likewise.
5170 (vld1q_*): Likewise.
5171 (vld1_lane_*): Likewise.
5172 (vld1q_lane_*): Likewise.
5174 2013-01-07 Richard Biener <rguenther@suse.de>
5176 * lto-streamer.h (LTO_minor_version): Bump to 2.
5178 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5180 * config/aarch64/aarch64-protos.h
5181 (aarch64_const_double_zero_rtx_p): Rename to...
5182 (aarch64_float_const_zero_rtx_p): ...this.
5183 (aarch64_float_const_representable_p): New.
5184 (aarch64_output_simd_mov_immediate): Likewise.
5185 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
5186 move immediate case.
5187 * config/aarch64/aarch64.c
5188 (aarch64_const_double_zero_rtx_p): Rename to...
5189 (aarch64_float_const_zero_rtx_p): ...this.
5190 (aarch64_print_operand): Allow printing of new constants.
5191 (aarch64_valid_floating_const): New.
5192 (aarch64_legitimate_constant_p): Check for valid floating-point
5194 (aarch64_simd_valid_immediate): Likewise.
5195 (aarch64_vect_float_const_representable_p): New.
5196 (aarch64_float_const_representable_p): Likewise.
5197 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
5198 (aarch64_output_simd_mov_immediate): New.
5199 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
5200 (*movdf_aarch64): Likewise.
5201 * config/aarch64/constraints.md (Ufc): New.
5202 (Y): call aarch64_float_const_zero_rtx.
5203 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
5205 2013-01-07 Richard Biener <rguenther@suse.de>
5207 PR tree-optimization/55888
5208 PR tree-optimization/55862
5209 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
5210 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
5211 not if it is contained therein.
5213 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5215 * config/avr/t-avr: Typo.
5217 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5220 * config/avr/t-avr: Don't automatically rebuild
5221 $(srcdir)/config/avr/t-multilib
5222 $(srcdir)/config/avr/avr-tables.opt
5223 $(srcdir)/doc/avr-mmcu.texi
5224 (avr-mcus): New phony target to build them on request.
5225 (s-avr-mlib, s-avr-mmcu-texi): Remove.
5226 * avr/avr-mcus.def: Adjust comments.
5228 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
5230 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
5232 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5234 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
5236 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5238 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
5240 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
5242 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
5243 to generate profiling.
5244 * config/rs6000/aix64.h (LIB_SPEC): Same.
5246 2013-01-04 Andrew Pinski <apinski@cavium.com>
5248 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
5250 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5252 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
5254 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
5256 (ix86_expand_move): Ditto.
5257 (ix86_zero_extend_to_Pmode): Ditto.
5258 (ix86_expand_call): Ditto.
5259 (ix86_expand_special_args_builtin): Ditto.
5260 (ix86_expand_builtin): Ditto.
5262 2013-01-04 Richard Biener <rguenther@suse.de>
5264 PR tree-optimization/55862
5265 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
5266 translating them through PHI nodes.
5268 2013-01-04 Martin Jambor <mjambor@suse.cz>
5270 PR tree-optimization/55755
5271 * tree-sra.c (sra_modify_assign): Do not check that an access has no
5272 children when trying to avoid producing a VIEW_CONVERT_EXPR.
5274 2013-01-04 Marek Polacek <polacek@redhat.com>
5277 * opts.c (default_options_optimization): Clarify error message.
5279 2013-01-04 Richard Biener <rguenther@suse.de>
5282 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
5285 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5288 * config/pa/pa.md (movsi): Revert previous change.
5289 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
5292 2013-01-03 Richard Henderson <rth@redhat.com>
5294 * config/i386/i386.c (ix86_expand_move): Always assign to op1
5295 after eliminating TLS symbols.
5297 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
5300 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
5301 * graphite-poly.c (debug_gmp_value): Likewise.
5303 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
5306 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
5307 selected code model, define __code_mode_small__, __code_model_medium__,
5308 __code_model_large__, __code_model_32__ or __code_model_kernel__.
5309 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
5310 xchg temporary register with %k. Declare temporary register as
5312 [__x86_64__]: For medium and large code models, preserve %rbx register.
5314 2013-01-03 Richard Biener <rguenther@suse.de>
5316 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
5317 (dump_subscript): Adjust.
5318 (finalize_ddr_dependent): Do not dump redundant info.
5319 (analyze_siv_subscript): Adjust.
5320 (subscript_dependence_tester): Likewise.
5321 (compute_affine_dependence): Likewise.
5323 2013-01-03 Richard Biener <rguenther@suse.de>
5326 2013-01-03 Richard Biener <rguenther@suse.de>
5328 PR tree-optimization/55857
5329 * tree-vect-stmts.c (vectorizable_load): Do not setup
5330 re-alignment for invariant loads.
5332 2013-01-02 Richard Biener <rguenther@suse.de>
5334 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5335 invariant load do not generate a vector load from the scalar location.
5337 2013-01-03 Richard Biener <rguenther@suse.de>
5339 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
5340 for not vectorizing.
5341 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5342 not build INDIRECT_REFs, call get_name once only.
5343 (vect_create_data_ref_ptr): Likewise. Dump base object kind
5344 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
5346 2013-01-03 Richard Biener <rguenther@suse.de>
5348 PR tree-optimization/55857
5349 * tree-vect-stmts.c (vectorizable_load): Do not setup
5350 re-alignment for invariant loads.
5352 2013-01-03 Richard Biener <rguenther@suse.de>
5355 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
5356 prefer a built-in decl.
5358 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5360 * gcc.c (process_command): Update copyright notice dates.
5361 * gcov.c (print_version): Likewise.
5362 * gcov-dump.c (print_version): Likewise.
5364 PR rtl-optimization/55838
5365 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
5366 iv0.step, iv1.step and step.
5368 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5369 Marc Glisse <marc.glisse@inria.fr>
5371 PR tree-optimization/55832
5372 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
5373 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
5374 integer_{one,zero}_node.
5376 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5379 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
5380 * var-tracking.c (reverse_op): Don't add reverse ops to
5381 VALUEs that have already
5382 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
5384 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
5386 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
5388 2013-01-02 Teresa Johnson <tejohnson@google.com>
5390 * dumpfile.c (dump_loc): Print filename with location.
5391 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
5392 new location_t parameter to emit complete unroll message with
5394 (canonicalize_loop_induction_variables): Compute loops location
5395 and pass to try_unroll_loop_completely.
5396 * loop-unroll.c (report_unroll_peel): New function.
5397 (peel_loops_completely): Use new dump format with location
5398 for main dumpfile message, and invoke report_unroll_peel on success.
5399 (decide_unrolling_and_peeling): Ditto.
5400 (decide_peel_once_rolling): Remove old dumpfile message subsumed
5401 by report_unroll_peel.
5402 (decide_peel_completely): Ditto.
5403 (decide_unroll_constant_iterations): Ditto.
5404 (decide_unroll_runtime_iterations): Ditto.
5405 (decide_peel_simple): Ditto.
5406 (decide_unroll_stupid): Ditto.
5407 * cfgloop.c (get_loop_location): New function.
5408 * cfgloop.h (get_loop_location): Declare.
5410 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5412 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
5415 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5418 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
5419 BLKmode objects when EXPAND_MEMORY is specified.
5421 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5423 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
5425 (fold_builtin_cpu): Do not share cpu model decls across statements.
5427 2013-01-02 Jason Merrill <jason@redhat.com>
5430 * tree.c (build_array_type_1): Revert earlier change.
5432 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
5434 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
5436 * config/aarch64/aarch64-tune.md: Re-generate.
5438 2013-01-02 Richard Biener <rguenther@suse.de>
5440 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5441 invariant load do not generate a vector load from the scalar location.
5443 2013-01-02 Richard Biener <rguenther@suse.de>
5446 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
5447 * configure: Regenerate.
5449 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5451 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
5452 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
5453 (expand_builtin_int_roundingfn_2): Keep the original target around
5454 for the fallback case.
5456 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5458 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
5459 to be clear for sign changes.
5461 2013-01-01 Jan Hubicka <jh@suse.cz>
5463 * ipa-inline-analysis.c: Fix formatting.
5465 2013-01-01 Jakub Jelinek <jakub@redhat.com>
5467 PR tree-optimization/55831
5468 * tree-vect-loop.c (get_initial_def_for_induction): Use
5469 gsi_after_labels instead of gsi_start_bb.
5471 Copyright (C) 2013 Free Software Foundation, Inc.
5473 Copying and distribution of this file, with or without modification,
5474 are permitted in any medium without royalty provided the copyright
5475 notice and this notice are preserved.