1 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3 * combine.c (try_combine): Adjust comment. Do not add the set of
4 insn #0 if the destination indirectly is set or dies in insn #2.
5 Tidy up code to distribute a new note.
7 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
10 also for alternatives 16 and 17.
12 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
14 * config/i386/sse.md (*mov<mode>_internal): Merge with
15 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
16 Emit insn template depending on type attribute. Use
17 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
18 movd instead of movq mnemonic for interunit moves. Rewrite mode
19 attribute calculation. Remove unit attribute calculation.
20 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
21 Set prefix_data16 attribute for DImode ssemov types.
22 Use Ym instead of y for SSE-MMX conversion alternatives.
23 Reorder operand constraints.
25 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
27 * df.h (df_insn_delete): Adjust prototype.
28 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
29 and let it decide whether mark the basic block dirty.
30 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31 * df-scan.c (df_insn_info_delete): New helper function, split
32 off from df_insn_delete.
33 (df_scan_free_bb_info): Use it.
34 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
36 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
37 that the insn is actually an insn and it has a non-NULL basic block.
38 Do not mark basic block dirty if only deleting a DEBUG_INSN.
40 2013-03-22 Richard Biener <rguenther@suse.de>
42 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
44 (mem_ref_alloc): Do not allocate them.
45 (refs_independent_p): Do not query or maintain a cache.
47 2013-03-22 Richard Biener <rguenther@suse.de>
49 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
50 (gather_mem_refs_in_loops): Do not compute it.
51 (analyze_memory_references): Do not allocate it.
52 (tree_ssa_lim_finalize): Do not free it.
53 (for_all_locs_in_loop): Do not query all_refs_in_loop.
55 2013-03-22 Richard Biener <rguenther@suse.de>
57 * is-a.h (as_a): Use gcc_checking_assert.
59 2013-03-22 Ian Bolton <ian.bolton@arm.com>
61 * config/aarch64/aarch64.c (aarch64_print_operand): New
62 format specifier for printing a constant in hex.
63 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
64 format specifier for printing second operand.
66 2013-03-22 Richard Biener <rguenther@suse.de>
68 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
70 (gather_mem_refs_in_loops): Perform store accumulation here.
71 (create_vop_ref_mapping_loop): Remove.
72 (create_vop_ref_mapping): Likewise.
73 (analyze_memory_references): Initialize refs_stored_in_loop.
74 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
75 (record_indep_loop): Remove.
76 (record_dep_loop): New function.
77 (ref_indep_loop_p_1): Adjust to only walk over references
78 in the loop, not its subloops.
79 (ref_indep_loop_p): Rename to ...
80 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
81 maintaining a more fine-grained cache.
82 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
83 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
85 2013-03-22 Richard Biener <rguenther@suse.de>
87 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
88 (struct mem_ref): Make accesses_in_loop a vec of a vec of
89 aggregate mem_ref_loc.
90 (free_mem_ref_locs): Inline into ...
91 (memref_free): ... this and adjust.
92 (mem_ref_alloc): Adjust.
93 (mem_ref_locs_alloc): Remove.
94 (record_mem_ref_loc): Adjust.
95 (get_all_locs_in_loop): Rewrite into ...
96 (for_all_locs_in_loop): ... this iterator.
97 (rewrite_mem_ref_loc): New functor.
98 (rewrite_mem_refs): Use for_all_locs_in_loop.
99 (sm_set_flag_if_changed): New functor.
100 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
101 (ref_always_accessed): New functor.
102 (ref_always_accessed_p): Use for_all_locs_in_loop.
104 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
106 * tree-pass.h (PROP_gimple_lvec): New.
107 * passes.c (dump_properties): Handle PROP_gimple_lvec.
108 (init_optimization_passes): Move pass_lower_vector.
109 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
111 (pass_lower_vector): Provide PROP_gimple_lvec.
112 (pass_lower_vector_ssa): Likewise.
113 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
115 2013-03-21 Mark Wielaard <mjw@redhat.com>
117 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
119 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
121 * config/i386/i386.md (*movdi_internal): Disparage slightly
122 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
123 conversion alternatives.
125 2013-03-21 Jakub Jelinek <jakub@redhat.com>
128 * diagnostic.def (DK_WERROR): New kind.
129 * diagnostic.h (werrorcount): Define.
130 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
131 promoted to DK_ERROR, increment DK_WERROR counter instead of
133 * toplev.c (toplev_main): Call print_ignored_options even if
134 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
135 even if just werrorcount is non-zero.
138 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
140 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
141 (string_cst_pool_decl): New function.
142 (optimize_one_addr_into_implicit_ptr): New function.
143 (resolve_addr_in_expr): Optimize DWARF location expression
144 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
145 which doesn't live in memory, but has DW_AT_location or
146 DW_AT_const_value, or refers to a string literal, into
147 DW_OP_GNU_implicit_pointer.
148 (optimize_location_into_implicit_ptr): New function.
149 (resolve_addr): If removing DW_AT_location of a variable because
150 it was DW_OP_addr of address of the variable, but the variable doesn't
151 live in memory, try to emit const value attribute for the initializer.
153 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
155 * tree.h (VECTOR_TYPE_P): New macro.
156 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
158 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
159 VEC_COND_EXPR cannot be lvalues.
160 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
162 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
164 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
165 Restrict the transformation to equal modes.
167 2013-03-21 Richard Biener <rguenther@suse.de>
169 PR tree-optimization/39326
170 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
171 (MEM_ANALYZABLE): Adjust.
172 (record_mem_ref_loc): Move bitmap ops ...
173 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
174 unanalyzable refs, do not record locations for it.
175 (analyze_memory_references): Allocate ref zero as shared
177 (refs_independent_p): Do not test for unanalyzed mems here.
178 (ref_indep_loop_p_1): Special-case disambiguation against
180 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
182 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
184 * config/arm/arm-protos.h (tune_params): Add
185 prefer_neon_for_64bits field.
186 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
187 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
188 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
189 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
190 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
191 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
192 (arm_option_override): Handle -mneon-for-64bits new option.
193 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
194 (prefer_neon_for_64bits): Declare new variable.
195 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
196 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
197 (arch_enabled): Handle new arch types. Remove support for onlya8
199 (one_cmpldi2): Use new arch names.
200 (zero_extend<mode>di2, extend<mode>di2): Ditto.
201 * config/arm/arm.opt (mneon-for-64bits): Add option.
202 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
203 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
204 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
206 * doc/invoke.texi (-mneon-for-64bits): Document.
208 2013-03-21 Richard Biener <rguenther@suse.de>
210 PR tree-optimization/39326
211 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
212 (sort_bbs_in_loop_postorder_cmp): New function.
213 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
215 2013-03-21 Richard Biener <rguenther@suse.de>
217 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
218 (vect_insert_into_interleaving_chain): Likewise.
219 (vect_drs_dependent_in_basic_block): Inline ...
220 (vect_slp_analyze_data_ref_dependence): ... here. New function,
222 (vect_analyze_data_ref_dependence): ... here. Simplify.
223 (vect_check_interleaving): Simplify.
224 (vect_analyze_data_ref_dependences): Likewise. Split out ...
225 (vect_slp_analyze_data_ref_dependences): ... this new function.
226 (dr_group_sort_cmp): New function.
227 (vect_analyze_data_ref_accesses): Compute data-reference groups
228 here instead of in vect_analyze_data_ref_dependence. Use
229 a more efficient algorithm.
230 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
231 vect_slp_analyze_data_ref_dependences. Call
232 vect_analyze_data_ref_accesses earlier.
233 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
234 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
235 (vect_slp_analyze_data_ref_dependences): New prototype.
237 2013-03-21 Richard Biener <rguenther@suse.de>
239 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
240 ref is stored in the loop.
241 (find_refs_for_sm): Walk only over all stores.
242 (store_motion_loop): Allocate from lim_bitmap_obstack.
243 (store_motion): Likewise.
245 2013-03-21 Richard Biener <rguenther@suse.de>
247 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
248 Update virtual SSA form.
250 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
252 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
253 * configure: Regenerate.
254 * config.in: Regenerate.
255 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
256 if !HAVE_LD_EH_FRAME_CIEV3.
258 2013-03-21 Richard Biener <rguenther@suse.de>
260 * tree-cfg.c (verify_expr_no_block): New function.
261 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
262 nor DECL_VALUE_EXPR have locations with associated blocks.
263 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
264 (clear_unused_block_pointer): Remove code dealing with
265 blocks in DECL_DEBUG_EXPR locations.
267 2013-03-21 Richard Biener <rguenther@suse.de>
269 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
270 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
271 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
272 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
273 instead of DECL_DEBUG_EXPR_IS_FROM.
274 * gimplify.c (gimplify_modify_expr): Likewise.
275 * tree-cfg.c (verify_expr_location_1): Likewise.
276 * tree-complex.c (create_one_component_var): Likewise.
277 * tree-sra.c (create_access_replacement): Likewise.
278 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
279 (clear_unused_block_pointer): Likewise.
280 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
281 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
282 * var-tracking.c (var_debug_decl): Likewise.
283 (track_expr_p): Likewise.
284 * tree-inline.c (add_local_variables): Likewise. Set
285 DECL_HAS_DEBUG_EXPR_P after copying it.
286 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
287 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
289 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
292 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
293 * configure: Regenerate.
294 * config.in: Regenerate.
295 * config/i386/i386.md (*movdf_internal): Use
296 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
297 movd instead of movq mnemonic for interunit moves.
298 (*movdi_internal): Ditto.
300 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
302 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
303 (abd<mode>_3): New pattern.
304 (aba<mode>_3): New pattern.
305 (fabd<mode>_3): New pattern.
307 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
309 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
310 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
311 occurrence of REGISTER_PREFIX as its empty string.
313 2013-03-20 Jeff Law <law@redhat.com>
315 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
316 addititional equivalences for equality comparisons between an SSA_NAME
317 and a constant where the SSA_NAME was set from a widening conversion.
319 2013-03-20 Walter Lee <walt@tilera.com>
321 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
323 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
325 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
326 depending on type attribute.
327 (*movti_internal): Ditto.
328 (*movtf_internal): Ditto.
329 (*movxf_internal): Ditto.
330 (*movdf_internal): Ditto.
331 (*movsf_internal): Ditto.
333 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
335 * config/i386/i386.md (*movti_internal): Set prefix attribute to
336 maybe_vex for sselog1 and ssemov types.
337 (*movdi_internal): Reorder operand constraints.
338 (*movsi_internal): Ditto. Set prefix attribute to
339 maybe_vex for sselog1 and ssemov types.
340 (*movtf_internal): Set prefix attribute to maybe_vex
341 for sselog1 and ssemov types.
342 (*movdf_internal): Ditto. Set prefix_data16 attribute for
343 DImode ssemov types. Reorder operand constraints.
344 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
345 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
346 attribute for SImode ssemov types. Reorder operand constraints.
348 2013-03-20 Martin Jambor <mjambor@suse.cz>
350 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
351 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
353 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
355 * config/rs6000/predicates.md (indexed_address, update_address_mem
356 update_indexed_address_mem): New predicates.
357 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
358 attribute for load/store instructions.
359 * config/rs6000/dfp.md (movsd_store): Likewise.
360 (movsd_load): Likewise.
361 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
362 (unnamed HI->DI extend define_insn): Likewise.
363 (unnamed SI->DI extend define_insn): Likewise.
364 (unnamed QI->SI extend define_insn): Likewise.
365 (unnamed QI->HI extend define_insn): Likewise.
366 (unnamed HI->SI extend define_insn): Likewise.
367 (unnamed HI->SI extend define_insn): Likewise.
368 (extendsfdf2_fpr): Likewise.
369 (movsi_internal1): Likewise.
370 (movsi_internal1_single): Likewise.
371 (movhi_internal): Likewise.
372 (movqi_internal): Likewise.
373 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
374 attribute for load/store instructions.
375 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
377 (mov<mode>_softfloat): Likewise.
378 (mov<mode>_hardfloat32): Likewise.
379 (mov<mode>_hardfloat64): Likewise.
380 (mov<mode>_softfloat64): Likewise.
381 (movdi_internal32): Likewise.
382 (movdi_internal64): Likewise.
383 (probe_stack_<mode>): Likewise.
385 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
387 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
388 floating point, and decimal floating point to reload iterator.
390 * config/rs6000/constraints.md (wl constraint): New constraints to
391 return FLOAT_REGS if certain options are used to reduce the number
392 of separate patterns that exist in the file.
393 (wx constraint): Likewise.
394 (wz constraint): Likewise.
396 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
397 -mdebug=reg, print wg, wl, wx, and wz constraints.
398 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
399 Initialize the reload functions for 64-bit binary/decimal floating
401 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
402 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
403 create the buffer on the stack to overcome not having a 32-bit
405 (rs6000_emit_move): Likewise.
406 (rs6000_secondary_memory_needed_rtx): Likewise.
407 (rs6000_alloc_sdmode_stack_slot): Likewise.
408 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
409 via xxlxor, just like DFmode 0.0.
411 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
412 define as 1 if we are running on a power7 or newer.
413 (enum r6000_reg_class_enum): Add new constraints.
415 * config/rs6000/dfp.md (movsd): Delete, combine with binary
416 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
417 with other moves by using conditional constraits (wg). Use LFIWZX
418 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
419 (movsd splitter): Likewise.
420 (movsd_hardfloat): Likewise.
421 (movsd_softfloat): Likewise.
423 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
424 binary and decimal floating point moves.
425 (fmove_ok): New attributes to combine binary and decimal floating
426 point moves, and to combine power6x (mfpgpr) moves along normal
428 (real_value_to_target): Likewise.
435 (movsf): Combine binary and decimal floating point moves. Combine
436 power6x (mfpgpr) moves with other moves by using conditional
437 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
438 (mov<mode> for SFmode/SDmode); Likewise.
439 (SFmode/SDmode splitters): Likewise.
440 (movsf_hardfloat): Likewise.
441 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
442 (movsf_softfloat): Likewise.
443 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
445 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
446 wx and wz constraints.
448 * config/rs6000/constraints.md (wg constraint): New constraint to
449 return FLOAT_REGS if -mmfpgpr (power6x) was used.
451 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
454 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
455 -mdebug=reg, print wg, wl, wx, and wz constraints.
456 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
457 Initialize the reload functions for 64-bit binary/decimal floating
459 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
460 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
461 create the buffer on the stack to overcome not having a 32-bit
463 (rs6000_emit_move): Likewise.
464 (rs6000_secondary_memory_needed_rtx): Likewise.
465 (rs6000_alloc_sdmode_stack_slot): Likewise.
466 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
467 via xxlxor, just like DFmode 0.0.
469 * config/rs6000/dfp.md (movdd): Delete, combine with binary
470 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
471 with other moves by using conditional constraits (wg). Use LFIWZX
472 and STFIWX for loading SDmode on power7.
473 (movdd splitters): Likewise.
474 (movdd_hardfloat32): Likewise.
475 (movdd_softfloat32): Likewise.
476 (movdd_hardfloat64_mfpgpr): Likewise.
477 (movdd_hardfloat64): Likewise.
478 (movdd_softfloat64): Likewise.
480 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
481 64-bit binary and decimal floating point moves.
482 (FMOVE64X): Likewise.
483 (movdf): Combine 64-bit binary and decimal floating point moves.
484 Combine power6x (mfpgpr) moves with other moves by using
485 conditional constraits (wg).
486 (mov<mode> for DFmode/DDmode): Likewise.
487 (DFmode/DDmode splitters): Likewise.
488 (movdf_hardfloat32): Likewise.
489 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
490 (movdf_softfloat32): Likewise.
491 (movdf_hardfloat64_mfpgpr): Likewise.
492 (movdf_hardfloat64): Likewise.
493 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
494 (movdf_softfloat64): Likewise.
495 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
496 (reload_<mode>_load): Move to later in the file so they aren't in
497 the middle of the floating point move insns.
498 (reload_<mode>_store): Likewise.
500 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
503 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
504 constraint if -mdebug=reg.
505 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
506 Enable using dd reload support if needed.
508 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
509 binary and decimal floating point moves in rs6000.md.
510 (movtd_internal): Likewise.
512 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
513 decimal floating point moves.
515 (movtf_internal): Likewise.
516 (mov<mode>_internal, TDmode/TFmode): Likewise.
517 (movtf_softfloat): Likewise.
518 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
520 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
521 movdi_internal64, using wg constraint for move direct operations.
522 (movdi_internal64): Likewise.
524 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
525 MODES_TIEABLE_P for selected modes. Print the numerical value of
526 the various virtual registers. Use GPR/FPR first/last values,
527 instead of hard coding the register numbers. Print which modes
528 have reload functions registered.
529 (rs6000_option_override_internal): If -mdebug=reg, trace the options
530 settings before/after setting cpu, target and subtarget settings.
531 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
532 and for secondary reload failures in rs6000_secondary_reload_inner.
533 (rs6000_secondary_reload_fail): Likewise.
534 (rs6000_secondary_reload_inner): Likewise.
536 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
537 macros for first/last GPR and FPR registers.
538 (LAST_GPR_REGNO): Likewise.
539 (FIRST_FPR_REGNO): Likewise.
540 (LAST_FPR_REGNO): Likewise.
542 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
543 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
544 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
545 (vcond<mode><mode>): Likewise.
546 (vcondu<mode><mode>): Likewise.
547 (vector_gtu<mode>): Likewise.
548 (vector_gte<mode>): Likewise.
549 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
550 to prevent the compiler from converting DImode operations to TImode.
551 (ior<mode>3): Likewise.
552 (and<mode>3): Likewise.
553 (one_cmpl<mode>2): Likewise.
554 (nor<mode>3): Likewise.
555 (andc<mode>3): Likewise.
557 * config/rs6000/constraints.md (wt constraint): New constraint
558 that returns VSX_REGS if TImode is allowed in VSX registers.
560 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
563 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
564 similar to TImode, but it is restricted to being in the GPRs.
566 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
567 TImode to occupy a single VSX register.
569 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
570 -mvsx-timode for power7/power8.
571 (power7 cpu): Likewise.
572 (power8 cpu): Likewise.
574 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
575 sure that TFmode/TDmode take up two registers if they are ever
576 allowed in the upper VSX registers.
577 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
579 (rs6000_init_hard_regno_mode_ok): Likewise.
580 (rs6000_debug_reg_global): Add debugging for PTImode and wt
581 constraint. Print if LRA is turned on.
582 (rs6000_option_override_internal): Give an error if -mvsx-timode
583 and VSX is not enabled.
584 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
585 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
586 to reg+offset addressing. Use PTImode when checking offset
587 addresses for validity.
588 (reg_offset_addressing_ok_p): Likewise.
589 (rs6000_legitimate_offset_address_p): Likewise.
590 (rs6000_legitimize_address): Likewise.
591 (rs6000_legitimize_reload_address): Likewise.
592 (rs6000_legitimate_address_p): Likewise.
593 (rs6000_eliminate_indexed_memrefs): Likewise.
594 (rs6000_emit_move): Likewise.
595 (rs6000_secondary_reload): Likewise.
596 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
597 reloads to fpr registers to continue to use reg+offset addressing,
598 but 64-bit reloads to altivec registers need reg+reg addressing.
599 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
600 it. Treat LO_SUM like a PLUS operation.
601 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
602 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
603 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
604 registers to share a register with a smaller sized type, since VSX
605 puts scalars in the upper 64-bits.
606 (print_operand): Add support for PTImode.
607 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
608 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
609 registers, but don't have arithmetic support.
610 (rs6000_memory_move_cost): Add test for VSX.
611 (rs6000_opt_masks): Add -mvsx-timode.
613 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
616 (VSr): Use wt constraint for TImode.
617 (VSv): Drop TImode support.
618 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
619 (vsx_movti_64bit): Likewise.
620 (vsx_movti_32bit): Likewise.
621 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
622 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
623 one '?' on the appropriate output constraint. Do not allow TImode
624 logical operations on 32-bit systems.
625 (vsx_ior<mode>3): Likewise.
626 (vsx_xor<mode>3): Likewise.
627 (vsx_one_cmpl<mode>2): Likewise.
628 (vsx_nor<mode>3): Likewise.
629 (vsx_andc<mode>3): Likewise.
630 (vsx_concat_<mode>): Likewise.
631 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
633 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
634 OPTION_MASK_VSX_TIMODE.
635 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
636 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
638 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
639 (TI2 iterator): New iterator for TImode, PTImode.
640 (wd mode attribute): Add values for vector types.
641 (movti_string): Replace TI move operations with operations for TImode
642 and PTImode. Add support for TImode being allowed in VSX registers.
643 (mov<mode>_string, TImode/PTImode): Likewise.
644 (movti_ppc64): Likewise.
645 (mov<mode>_ppc64, TImode/PTImode): Likewise.
646 (TI mode splitters): Likewise.
648 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
651 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
653 PR tree-optimization/56355
654 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
655 Also handle integers with undefined overflow.
657 2013-03-20 Catherine Moore <clm@codesourcery.com>
658 Maciej W. Rozycki <macro@codesourcery.com>
659 Tom de Vries <tom@codesourcery.com>
660 Nathan Sidwell <nathan@codesourcery.com>
661 Iain Sandoe <iain@codesourcery.com>
662 Nathan Froyd <froydnj@codesourcery.com>
663 Chao-ying Fu <fu@mips.com>
665 * doc/extend.texi: (micromips, nomicromips, nocompression):
666 Document new function attributes.
667 * doc/invoke.texi (minterlink-compressed, mmicromips,
668 m14k, m14ke, m14kec): Document new options.
669 (minterlink-mips16): Update documentation.
670 * doc/md.texi (ZC, ZD): Document new constraints.
671 * configure.ac (gcc_cv_as_micromips): Check if linker
672 supports the .set micromips directive.
673 * configure: Regenerate.
674 * config.in: Regenerate.
675 * config/mips/mips-tables.opt: Regenerate.
676 * config/mips/micromips.md: New file.
677 * constraints.md (ZC, ZD): New constraints.
678 * config/mips/predicates.md (movep_src_register): New predicate.
679 (movep_src_operand): New predicate.
680 (non_volatile_mem_operand): New predicate.
681 * config/mips/mips.md (multimem): New type.
682 (length): Differentiate between 17-bit and 18-bit branch offsets.
683 (MOVEP1, MOVEP2): New mode iterator.
684 (mov_<load>l): Use ZC constraint.
685 (mov_<load>r): Likewise.
686 (mov_<store>l): Likewise.
687 (mov_<store>r): Likewise.
688 (*branch_equality<mode>_inverted): Add microMIPS support.
689 (*branch_equality<mode>): Likewise.
690 (*jump_absolute): Likewise.
691 (indirect_jump_<mode>): Likewise.
692 (tablejump_<mode>): Likewise.
693 (<optab>_internal): Likewise.
694 (sibcall_internal): Likewise.
695 (sibcall_value_internal): Likewise.
696 (prefetch): Use constraint ZD.
697 * config/mips/mips.opt (minterlink-compressed): New option.
698 (minterlink-mips16): Now an alias for minterlink-compressed.
699 (mmicromips): New option.
700 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
701 (compare_and_swap_12): Likewise.
702 (sync_add<mode>): Likewise.
703 (sync_<optab>_12): Likewise.
704 (sync_old_<optab>_12): Likewise.
705 (sync_new_<optab>_12): Likewise.
706 (sync_nand_12): Likewise.
707 (sync_old_nand_12): Likewise.
708 (sync_new_nand_12): Likewise.
709 (sync_sub<mode>): Likewise.
710 (sync_old_add<mode>): Likewise.
711 (sync_old_sub<mode>): Likewise.
712 (sync_new_add<mode>): Likewise.
713 (sync_new_sub<mode>): Likewise.
714 (sync_<optab><mode>): Likewise.
715 (sync_old_<optab><mode>): Likewise.
716 (sync_new_<optab><mode>): Likewise.
717 (sync_nand<mode>): Likewise.
718 (sync_old_nand<mode>): Likewise.
719 (sync_new_nand<mode>): Likewise.
720 (sync_lock_test_and_set<mode>): Likewise.
721 (test_and_set_12): Likewise.
722 (atomic_compare_and_swap<mode>): Likewise.
723 (atomic_exchange<mode>_llsc): Likewise.
724 (atomic_fetch_add<mode>_llsc): Likewise.
725 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
726 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
727 (umips_save_restore_pattern_p): Likewise.
728 (umips_load_store_pair_p): Likewise.
729 (umips_output_load_store_pair): Likewise.
730 (umips_movep_target_p): Likewise.
731 (umips_12bit_offset_address_p): Likewise.
732 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
733 (mips_base_mips16): Rename this...
734 (mips_base_compression_flags): ...to this. Update all uses.
735 (mips_attribute_table): Add micromips, nomicromips and nocompression.
736 (mips_mips16_decl_p): Delete.
737 (mips_nomips16_decl_p): Delete.
738 (mips_get_compress_on_flags): New function.
739 (mips_get_compress_off_flags): New function.
740 (mips_get_compress_mode): New function.
741 (mips_get_compress_on_name): New function.
742 (mips_get_compress_off_name): New function.
743 (mips_insert_attributes): Support multiple compression types.
744 (mips_merge_decl_attributes): Likewise.
745 (umips_12bit_offset_address_p): New function.
746 (mips_start_function_definition): Emit .set micromips directive.
747 (mips_call_may_need_jalx_p): New function.
748 (mips_function_ok_for_sibcall): Add microMIPS support.
749 (mips_print_operand_punctuation): Support short delay slots and
751 (umips_swm_mask, umips_swm_encoding): New.
752 (umips_build_save_restore): New function.
753 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
754 (was_mips16_p): Remove.
755 (old_compression_mode): New.
756 (mips_set_compression_mode): New function.
757 (mips_set_current_function): Add microMIPS support.
758 (mips_option_override): Likewise.
759 (umips_save_restore_pattern_p): New function.
760 (umips_output_save_restore): New function.
761 (umips_load_store_pair_p_1): New function.
762 (umips_load_store_pair_p): New function.
763 (umips_output_load_store_pair_1): New function.
764 (umips_output_load_store_pair): New function.
765 (umips_movep_target_p) New function.
766 (mips_prepare_pch_save): Add microMIPS support.
767 * config/mips/mips.h (TARGET_COMPRESSION): New.
768 (TARGET_CPU_CPP_BUILTINS): Update macro
769 to use new compression flags and to support microMIPS.
770 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
771 (MIPS_ARCH_FLOAT_SPEC): Likewise.
772 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
773 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
774 (ASM_SPEC): Support mmicromips and mno-micromips.
775 (M16STORE_REG_P): New macro.
776 (MIPS_CALL): Support TARGET_MICROMIPS.
777 (MICROMIPS_J): New macro.
778 (mips_base_mips16): Rename this...
779 (mips_base_compression_flags): ...to this.
780 (UMIPS_12BIT_OFFSET_P): New macro.
781 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
782 (MULTILIB_DIRNAMES): Likewise.
783 2013-03-20 Richard Biener <rguenther@suse.de>
785 PR tree-optimization/56661
786 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
787 the result does not have to be distinct.
789 2013-03-20 Richard Biener <rguenther@suse.de>
791 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
794 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
795 Steven Bosscher <steven@gcc.gnu.org>
797 PR rtl-optimization/56605
798 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
800 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
803 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
804 that require movd instead of movq.
806 2013-03-20 Richard Biener <rguenther@suse.de>
808 * tree-ssa-structalias.c (struct variable_info): Add pointer
809 to the first field of an aggregate with sub-vars. Make
810 this and the pointer to the next subfield its ID.
811 (vi_next): New function.
812 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
813 storedanything_id, integer_id): Increment by one.
814 (new_var_info, get_call_vi, lookup_call_clobber_vi,
815 get_call_clobber_vi): Adjust.
816 (solution_set_expand): Simplify and speedup.
817 (solution_set_add): Inline into ...
818 (set_union_with_increment): ... this. Adjust accordingly.
819 (do_sd_constraint): Likewise.
820 (do_ds_constraint): Likewise.
821 (do_complex_constraint): Simplify.
822 (build_pred_graph): Adjust.
823 (solve_graph): Likewise. Simplify and speedup.
824 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
825 get_constraint_for_component_ref, get_constraint_for_1,
826 first_vi_for_offset, first_or_preceding_vi_for_offset,
827 create_function_info_for, create_variable_info_for_1,
828 create_variable_info_for, intra_create_variable_infos): Adjust.
829 (init_base_vars): Push NULL for ID zero.
830 (compute_points_to_sets): Adjust.
832 2013-03-20 Richard Biener <rguenther@suse.de>
834 * cfgloop.c (verify_loop_structure): Streamline and avoid
835 ICEing on corrupt loop tree.
836 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
839 2013-03-20 Richard Biener <rguenther@suse.de>
841 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
842 check whether an SSA update is needed.
844 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
846 * config/mips/constraints.md (T): Rename to...
850 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
851 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
853 2013-03-19 Ian Bolton <ian.bolton@arm.com>
855 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
856 (*subsi3_carryin_uxtw): Likewise.
858 2013-03-19 Ian Bolton <ian.bolton@arm.com>
860 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
861 (*rorsi3_insn_uxtw): Likewise.
863 2013-03-19 Ian Bolton <ian.bolton@arm.com>
865 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
866 (*extrsi5_insn_uxtw): Likewise.
868 2013-03-19 Richard Biener <rguenther@suse.de>
870 PR tree-optimization/56273
871 * passes.c (init_optimization_passes): Move second VRP after DOM.
873 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
875 * config/i386/i386.md (*movti_internal): Merge from
876 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
877 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
878 nox64 isa attributes.
880 2013-03-18 Richard Biener <rguenther@suse.de>
882 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
884 (merge_node_constraints): Likewise.
885 (build_succ_graph): Likewise.
886 (valid_graph_edge): Inline into single caller.
887 (unify_nodes): Likewise. Use bitmap_set_bit return value
889 (scc_visit): Fix formatting and variable use.
890 (do_sd_constraint): Use gcc_checking_assert.
891 (do_ds_constraint): Likewise.
892 (do_complex_constraint): Likewise.
893 (condense_visit): Likewise. Cleanup.
894 (dump_pred_graph): New function.
895 (perform_var_substitution): Dump the pred-graph before
896 variable substitution.
897 (find_equivalent_node): Use gcc_checking_assert.
898 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
900 2013-03-18 Richard Biener <rguenther@suse.de>
902 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
903 Remove cond_expr_stmt_list argument and do not gimplify the
905 (vect_loop_versioning): Adjust.
906 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
907 Cleanup to use less temporaries.
908 (vect_create_data_ref_ptr): Cleanup.
910 2013-03-18 Jakub Jelinek <jakub@redhat.com>
912 PR tree-optimization/56635
913 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
914 require types_compatible_p types.
916 2013-03-18 Nick Clifton <nickc@redhat.com>
918 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
921 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
922 Add missing line to comment describing function.
924 2013-03-18 Richard Biener <rguenther@suse.de>
926 PR tree-optimization/56210
927 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
928 Handle string / character search functions.
929 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
931 2013-03-18 Richard Biener <rguenther@suse.de>
934 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
935 and implement properly.
936 * gimple.h (gimple_cond_single_var_p): Remove.
938 2013-03-18 Richard Biener <rguenther@suse.de>
940 * tree-data-ref.h (find_data_references_in_loop): Declare.
941 * tree-data-ref.c (get_references_in_stmt): Use a stack
942 vector pre-allocated in the callers.
943 (find_data_references_in_stmt): Adjust.
944 (graphite_find_data_references_in_stmt): Likewise.
945 (create_rdg_vertices): Likewise.
946 (find_data_references_in_loop): Export.
947 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
948 Compute dependences here...
949 (vect_analyze_data_refs): ...not here. When we encounter
950 a non-vectorizable data reference in basic-block vectorization
951 truncate the data reference vector. Do not bother to
952 fixup data-dependence information for gather loads.
953 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
954 of data references, as reported.
956 2013-03-18 Richard Biener <rguenther@suse.de>
958 PR tree-optimization/3713
959 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
960 has_constants and expr.
961 (stmt_has_constants): Properly valueize SSA names when deciding
962 whether the stmt has constants.
964 2013-03-18 Richard Biener <rguenther@suse.de>
966 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
967 whole function when there is nothing to do.
968 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
969 * tree-vectorizer.c (vectorize_loops): Update virtual and
970 loop-closed SSA once.
971 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
973 2013-03-18 Richard Biener <rguenther@suse.de>
976 * domwalk.c (bb_postorder): New global static.
977 (cmp_bb_postorder): New function.
978 (walk_dominator_tree): Replace scheme imposing an order for
979 visiting dominator sons by one sorting them at the time they
980 are pushed on the stack.
982 2013-03-18 Richard Biener <rguenther@suse.de>
984 PR tree-optimization/39326
985 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
986 (struct mem_ref): Replace mem member with ao_ref typed member.
987 (MEM_ANALYZABLE): Adjust.
988 (memref_eq): Likewise.
989 (mem_ref_alloc): Likewise.
990 (gather_mem_refs_stmt): Likewise.
991 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
992 (execute_sm_if_changed_flag_set): Adjust.
993 (execute_sm): Likewise.
994 (ref_always_accessed_p): Likewise.
995 (refs_independent_p): Likewise.
996 (can_sm_ref_p): Likewise.
998 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1001 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
1002 return 1 even for !unsignedp.
1004 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1006 * config/i386/i386.md (isa): Add x64 and nox64.
1007 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
1008 (*pushtf): Enable *roF alternative for x64 isa only.
1009 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
1010 mode attribute of integer alternatives to DImode for TARGET_64BIT.
1011 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
1012 (*movtf_internal): Merge from *movtf_internal_rex64 and
1013 *movtf_internal_sse. Use x64 and nox64 isa attributes.
1014 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
1015 nox64 isa attributes.
1016 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
1017 nox64 isa attributes.
1018 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
1020 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1022 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1024 2013-03-17 Jakub Jelinek <jakub@redhat.com>
1027 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
1028 class names. Remove trailing comma after "ALL_REGS".
1030 2013-03-16 Jan Hubicka <jh@suse.cz>
1032 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
1033 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
1034 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
1035 of cgraph_get_create_node.
1036 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1038 2013-03-16 Jason Merrill <jason@redhat.com>
1041 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
1042 with DW_AT_default_value.
1044 2013-03-16 Jakub Jelinek <jakub@redhat.com>
1046 * BASE-VER: Set to 4.9.0.
1048 2013-03-14 Andi Kleen <ak@linux.intel.com>
1051 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
1052 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
1053 Document _x* TSX intrinsics.
1055 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1056 David Holsgrove <david.holsgrove@xilinx.com>
1058 * configure.ac: Add MicroBlaze TLS support detection.
1059 * configure: Regenerate.
1060 * config/microblaze/microblaze-protos.h
1061 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
1062 symbol_mentioned_p, label_mentioned_p): Add prototypes.
1063 * config/microblaze/microblaze.c (microblaze_address_type): Add
1064 ADDRESS_TLS and tls_reloc address types.
1065 (microblaze_address_info): Add tls_reloc.
1066 (TARGET_HAVE_TLS): Define.
1067 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
1068 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
1069 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
1070 load_tls_operand, microblaze_call_tls_get_addr,
1071 microblaze_legitimize_tls_address): New functions.
1072 (microblaze_classify_unspec): Handle UNSPEC_TLS.
1073 (get_base_reg): Use microblaze_tls_symbol_p.
1074 (microblaze_classify_address): Handle TLS.
1075 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
1076 label_mentioned_p and microblaze_tls_referenced_p.
1077 (microblaze_legitimize_address): Handle TLS.
1078 (microblaze_address_insns): Handle ADDRESS_TLS.
1079 (pic_address_needs_scratch): Handle TLS.
1080 (print_operand_address): Handle TLS.
1081 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
1082 (microblaze_expand_move): Handle TLS.
1083 (microblaze_legitimate_constant_p): Check
1084 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
1085 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1086 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
1087 (PIC_OFFSET_TABLE_REGNUM): Set.
1088 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
1089 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
1090 (addsi3, movsi_internal2, movdf_internal): Update constraints
1091 * config/microblaze/predicates.md (arith_plus_operand): Define
1092 (move_operand): Redefine as move_src_operand,
1093 check microblaze_tls_referenced_p.
1095 2013-03-14 Ian Bolton <ian.bolton@arm.com>
1097 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
1098 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
1100 2013-03-14 Ian Bolton <ian.bolton@arm.com>
1102 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
1105 2013-03-14 Jakub Jelinek <jakub@redhat.com>
1107 PR tree-optimization/53265
1108 * common.opt (Waggressive-loop-optimizations): New option.
1109 * tree-ssa-loop-niter.c: Include tree-pass.h.
1110 (do_warn_aggressive_loop_optimizations): New function.
1111 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
1112 if number_of_latch_executions returned constant.
1113 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
1114 early. If number_of_latch_executions returned constant, set
1115 nb_iterations_upper_bound back to it.
1116 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
1118 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
1119 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
1121 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
1122 (MULTILIB_OSDIRNAMES): Set.
1123 * genmultilib: If defaultosdirname doesn't start with :: , set
1124 defaultosdirname2 instead, clear it and emit two . multilib_raw
1125 entries instead of just one.
1127 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
1129 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1130 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
1131 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1132 (SUBTARGET_OVERRIDE_OPTIONS): New.
1134 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
1137 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
1138 (musermode): Convert to Var(TARGET_USERMODE).
1139 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
1140 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
1141 * config/sh/sh.c (sh_option_override): Use
1142 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
1143 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
1145 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
1147 (udivsi3_i4_single, divsi3_i4_single): Use
1148 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
1150 2013-03-13 Dave Korn <dave.korn.cygwin@....>
1152 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
1155 2013-03-13 Richard Biener <rguenther@suse.de>
1157 PR tree-optimization/56608
1158 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
1159 calls when vectorizing basic-blocks.
1161 2013-03-13 Jakub Jelinek <jakub@redhat.com>
1164 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
1167 2013-03-12 Jakub Jelinek <jakub@redhat.com>
1169 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
1171 2013-03-11 Jan Hubicka <jh@suse.cz>
1174 * lto-streamer-out.c (output_symbol_p): Skip references from
1175 constructors of external variables.
1177 2013-03-11 Jan Hubicka <jh@suse.cz>
1180 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
1182 * emit-rtl.c (verify_rtx_sharing): Likewise.
1183 (copy_insn_1): Likewise.
1184 * rtl.c (copy_rtx): Likewise.
1186 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
1189 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
1190 output_operand_lossage message.
1192 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
1195 * arm.c (shift_op): Validate RTL pattern on the fly.
1196 (arm_print_operand, case 'S'): Don't use shift_operator to validate
1199 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1202 * config/pa/pa.md (call_value): Check for calls to powf and direct to
1203 new call patterns that clobber %fr12.
1204 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
1205 split and postreload patterns.
1206 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
1207 registers %fr12 and %fr12R as call used.
1209 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
1211 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
1212 (canon_address, record_store, replace_read, check_mem_read_rtx,
1213 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
1214 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
1215 rest_of_handle_dse): Likewise.
1217 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1220 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
1222 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
1223 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
1224 (save_optabs_if_changed): Replace with...
1225 (init_tree_optimization_optabs): ...this.
1226 * optabs.c (save_optabs_if_changed): Rename to...
1227 (init_tree_optimization_optabs): ...this. Take the optimization node
1228 as argument. Do nothing if the base optabs are already correct.
1229 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
1230 to recompute optabs.
1231 * function.h (function): Remove optabs field.
1232 * function.c (invoke_set_current_function_hook): Call
1233 init_tree_optimization_optabs. Use the result to initialize
1236 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
1238 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
1239 if GTMA_HAS_NO_INSTRUMENTATION.
1240 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
1241 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
1242 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
1243 * gimple-pretty-print.c (dump_gimple_transaction): Handle
1244 GTMA_HAS_NO_INSTRUMENTATION.
1246 2013-03-08 Jakub Jelinek <jakub@redhat.com>
1248 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
1251 2013-03-08 Marek Polacek <polacek@redhat.com>
1252 Jakub Jelinek <jakub@redhat.com>
1254 PR tree-optimization/56478
1255 * predict.c (is_comparison_with_loop_invariant_p): Change the
1256 type of loop_step to tree.
1257 (predict_loops): Adjust.
1258 (predict_iv_comparison): Perform the computations on double_ints.
1260 2013-03-08 Richard Biener <rguenther@suse.de>
1262 PR tree-optimization/56570
1263 * tree-cfg.c (verify_expr_location_1): Verify locations for
1265 * tree-sra.c (create_access_replacement): Strip locations
1266 from DECL_DEBUG_EXPRs.
1268 2013-03-08 Richard Biener <rguenther@suse.de>
1270 * tree-inline.c (expand_call_inline): Do not associate
1271 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
1272 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
1274 2013-03-08 Richard Biener <rguenther@suse.de>
1276 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
1277 or block changes with -Og. Fix for location / block encoding
1278 changes and PHI arguments with locations.
1280 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
1282 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
1284 (struct output_info): Likewise.
1285 (register_overhead): Remove bad gcc_assert.
1286 (bitmap_find_bit): If there is only a single bitmap element, do not
1287 count a miss as a search.
1288 (print_statistics): Update for counter type changes.
1289 (dump_bitmap_statistics): Likewise. Print headers such that they
1290 are properly lined up with the printed counters.
1292 2013-03-07 Jakub Jelinek <jakub@redhat.com>
1294 PR tree-optimization/56559
1295 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
1296 check that it has only a single use.
1298 2013-03-07 Richard Biener <rguenther@suse.de>
1300 * doc/invoke.texi (fwhole-program): Discourage use in combination
1303 2013-03-06 Jakub Jelinek <jakub@redhat.com>
1305 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
1307 PR tree-optimization/56539
1308 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
1309 instead of GSI_CONTINUE_LINKING as last argument to
1310 force_gimple_operand_gsi. Adjust function comment.
1312 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
1316 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
1317 promoted mode, convert the result back to the original mode.
1319 2013-03-06 Richard Biener <rguenther@suse.de>
1322 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
1323 (insert_updated_phi_nodes_compare_uids): New function.
1324 (update_ssa): Sort symbols_to_rename after UID before
1325 traversing it to insert PHI nodes.
1327 2013-03-06 Richard Biener <rguenther@suse.de>
1330 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
1331 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
1334 2013-02-13 Richard Biener <rguenther@suse.de>
1337 * varasm.c (output_constant_def_1): Get the decl representing
1338 the constant as argument.
1339 (output_constant_def): Wrap output_constant_def_1.
1340 (make_decl_rtl): Use output_constant_def_1 with the decl
1341 representing the constant.
1342 (build_constant_desc): Optionally re-use a decl already
1343 representing the constant.
1344 (tree_output_constant_def): Adjust.
1346 2013-03-06 Joey Ye <joey.ye@arm.com>
1349 * gcc.c (convert_white_space): New function.
1350 (main): Handles white space in function name.
1352 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
1355 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
1356 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
1357 to SH_DIV_CALL_TABLE for TARGET_SH2.
1358 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
1360 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
1363 2013-03-05 Sterling Augustine <saugustine@google.com>
1364 Cary Coutant <ccoutant@google.com>
1367 * dwarf2out.c (resolve_addr): Don't call
1368 remove_loc_list_addr_table_entries a second time for the same
1371 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1374 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
1375 (avoid_complex_debug_insns): New function.
1376 (expand_debug_locations): Call it.
1378 PR rtl-optimization/56484
1379 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
1380 lifetimes of hard registers on small register class machines.
1382 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1384 * config/microblaze/microblaze-protos.h: Rename
1385 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
1386 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
1388 (microblaze_fast_interrupt_function_p): New function.
1389 (microblaze_is_interrupt_handler): Rename to
1390 microblaze_is_interrupt_variant and add fast_interrupt check.
1391 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
1392 (save_restore_insns): Likewise.
1393 (compute_frame_size): Likewise.
1394 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
1395 (microblaze_globalize_label): Likewise.
1396 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
1397 * config/microblaze/microblaze.md: Use wrapper
1398 microblaze_is_interrupt_variant.
1400 2013-03-05 Kai Tietz <ktietz@redhat.com>
1402 * sdbout.c (sdbout_one_type): Switch to current function's section
1403 supporting cold/hot.
1405 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1407 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
1410 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1413 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
1414 if VALGRIND_GET_VBITS is defined, temporarily make object
1415 memory all defined, and restore previous valgrind addressability
1416 and definability afterwards. Free this_object at the end.
1419 * lra.c (lra): Call lra_clear_live_ranges if live_p,
1420 right before calling lra_create_live_ranges, also call it
1421 when clearing live_p. Only call lra_clear_live_ranges
1422 at the end if live_p.
1425 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
1427 2013-03-05 Richard Biener <rguenther@suse.de>
1429 PR tree-optimization/56521
1430 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
1433 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
1436 * except.h (remove_unreachable_eh_regions): New prototype.
1437 * except.c (remove_eh_handler_splicer): New function, split out
1438 of remove_eh_handler.
1439 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
1440 warning about running it on many EH regions one at a time.
1441 (remove_unreachable_eh_regions_worker): New function, walk the
1442 EH tree in depth-first order and remove non-marked regions.
1443 (remove_unreachable_eh_regions): New function.
1444 * tree-eh.c (mark_reachable_handlers): New function, split out
1445 from remove_unreachable_handlers.
1446 (remove_unreachable_handlers): Use mark_reachable_handlers and
1447 remove_unreachable_eh_regions.
1448 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
1449 and remove_unreachable_eh_regions.
1451 2013-03-05 Richard Biener <rguenther@suse.de>
1454 * loop-init.c (fix_loop_structure): Remove loops in two stages,
1455 not freeing them until the end.
1457 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1459 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
1461 2013-03-05 Richard Biener <rguenther@suse.de>
1463 PR tree-optimization/56270
1464 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
1465 of loads after scheduling an SLP instance.
1467 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1469 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
1471 (check_gcc_parallelize): Run guality.exp as a separate job from
1472 vect.exp with unsorted.exp and $(dg_target_exps) separately from
1473 struct-layout-1.exp with stackalign.exp.
1475 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
1478 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
1479 load_index sbitmap even if some bit in it isn't set.
1482 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
1483 (discover_iteration_bound_by_body_walk): Change queues to
1484 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
1485 spelling in comment. Call safe_push on queues[bound_index] directly.
1486 Release queues[queue_index] in every iteration unconditionally.
1487 Release bounds vector.
1490 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
1491 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
1492 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
1495 2013-03-05 Richard Biener <rguenther@suse.de>
1498 * tree-inline.c (remap_blocks_to_null): New function.
1499 (expand_call_inline): When expanding a call stmt without
1500 an associated block inline remap all callee blocks to NULL.
1502 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1504 PR rtl-optimization/56494
1505 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
1506 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
1507 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
1510 * sel-sched-ir.c (free_sched_pools): Release
1511 succs_info_pool.stack[succs_info_pool.max_top] vectors too
1512 if succs_info_pool.max_top isn't -1.
1515 * opts.c (opts_obstack, opts_concat): Moved to...
1516 * opts-common.c (opts_obstack, opts_concat): ... here.
1518 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1521 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
1523 2013-03-04 Martin Jambor <mjambor@suse.cz>
1525 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
1526 all appropriate places.
1528 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
1530 PR tree-optimization/56424
1531 * ipa-split.c (split_function): Do not set the RSO flag if result is
1532 not by reference and its type is a register type.
1534 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
1536 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
1537 (microblaze_legitimate_pic_operand): Likewise
1538 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
1539 new function microblaze_legitimate_pic_operand
1540 * config/microblaze/microblaze-protos.h
1541 (microblaze_legitimate_pic_operand): Declare.
1543 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1545 * config/microblaze/predicates.md (call_insn_simple_operand):
1546 New predicate for supported rtx code types.
1547 * config/microblaze/microblaze.md (call_internal1): Use
1548 call_insn_simple_operand predicate.
1550 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1553 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
1554 partitions.ordered_remove.
1557 * tree-vect-stmts.c (vectorizable_conversion): Don't call
1558 vec_oprnds0.create (1) for modifier == NONE.
1561 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
1562 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
1563 vec_oprnds1 right before pushing anything to it for
1567 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
1568 set nbbs to 0 instead of having separate code path.
1569 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
1570 instead of false as last argument if returning NULL.
1572 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
1574 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
1575 the attribute is now called "target" instead of "option".
1576 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
1577 * doc/tm.texi.in (Target Attributes): Likewise document the correct
1578 attribute/pragma name for TARGET_OPTION_VALID_P and
1579 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
1580 * doc/tm.texi: Regenerated.
1582 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
1584 * config/microblaze/microblaze.c:
1585 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
1586 * config/microblaze/microblaze.h: Add -mxl-reorder to
1588 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
1589 instructions emitted if TARGET_REORDER.
1590 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
1591 or 0 for -m/-mno case, but initialises as 2 to detect default use case
1594 2013-03-01 Xinliang David Li <davidxl@google.com>
1596 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
1599 2013-03-01 Jakub Jelinek <jakub@redhat.com>
1602 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
1603 vector even when returning true. Fix up function comment formatting.
1606 * ira-build.c (ira_loop_nodes_count): New variable.
1607 (create_loop_tree_nodes): Initialize it.
1608 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
1611 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
1612 method on dr_chain and result_chain.
1613 * tree-vect-stmts.c (vectorizable_store): Only call
1614 result_chain.create if j == 0.
1617 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
1618 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
1619 before overwriting it.
1621 2013-03-01 Tobias Burnus <burnus@net-b.de>
1623 * doc/extended.texi (C Extensions): Change order in @menu
1625 (Other MIPS Built-in Functions): Move last MIPS entry before
1626 "picoChip Built-in Functions".
1627 (SH Built-in Functions): Move after RX Built-in Functions.
1628 * doc/gcc.texi (Introduction): Change order in @menu
1630 * doc/md.texi (Constraints): Ditto.
1631 * gty.texi (Type Information): Ditto.
1632 (User-provided marking routines for template types): Make
1634 * doc/invoke.texi (AArch64 Options): Move before
1635 "Adapteva Epiphany Options".
1637 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1638 Jakub Jelinek <jakub@redhat.com>
1641 * asan.c (gate_asan): Lookup no_sanitize_address instead of
1642 no_address_safety_analysis attribute.
1643 * doc/extend.texi (no_address_safety_attribute): Rename to
1644 no_sanitize_address attribute, mention no_address_safety_analysis
1645 attribute as deprecated alias.
1647 2013-02-28 Jakub Jelinek <jakub@redhat.com>
1650 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
1651 type to vec<vec<tree> > *.
1652 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
1653 to be vec<tree> instead of vec<tree> *, set vec_defs
1654 to vNULL and call vec_defs.create (number_of_vects), adjust other
1656 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
1657 vectorizable_condition): Adjust vect_get_slp_defs callers.
1659 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1661 * config/aarch64/aarch64.c
1662 (aarch64_float_const_representable): Remove unused variable.
1664 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1666 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
1668 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1670 * config/aarch64/aarch64-builtins.c
1671 (aarch64_init_simd_builtins): Make static.
1673 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1675 * config/aarch64/aarch64.c
1676 (aarch64_simd_make_constant): Make static.
1678 2013-02-28 Martin Jambor <mjambor@suse.cz>
1680 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
1681 with no initialization to the RHS of debug statements.
1683 2013-02-28 Martin Jambor <mjambor@suse.cz>
1685 PR tree-optimization/56294
1686 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
1688 (get_access_replacement): Do not call create_access_replacement.
1689 Assert a replacement exists.
1690 (get_repl_default_def_ssa_name): Create the replacement declaration
1693 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1695 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
1698 2013-02-28 Marek Polacek <polacek@redhat.com>
1700 PR rtl-optimization/56466
1701 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
1702 if we're changing a loop.
1703 (peel_loops_completely): Likewise.
1705 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
1708 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
1710 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
1713 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
1714 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
1715 INTX_FTYPE_FX, FX_FTYPE_INTX.
1716 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
1718 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
1720 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
1721 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
1722 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
1723 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
1724 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
1725 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
1726 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
1727 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
1728 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
1729 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
1730 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
1731 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
1732 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
1733 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
1734 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
1735 (avrxmega6): Increase max flash segments from 5 to 6.
1736 * config/avr/t-multilib: Regenerate.
1737 * config/avr/avr-tables.opt: Regenerate.
1738 * doc/avr-mmcu.texi: Regenerate.
1740 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
1742 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
1743 (avr_device_to_arch): Rename to avr_device_to_ld.
1744 (avr_device_to_as): New prototype.
1745 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
1746 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
1747 * config/avr/driver-avr.c (avr_device_to_as): New.
1748 (avr_device_to_arch): Rename to avr_device_to_ld.
1750 2013-02-27 Jakub Jelinek <jakub@redhat.com>
1753 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
1754 method on dr_chain and result_chain.
1757 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
1758 pointer_set_destroy on not_executed_last_iteration.
1761 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
1764 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
1765 FOR_EACH_DEFINED_FUNCTION when freeing state.
1768 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
1770 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
1774 * ipa-cp.c (decide_whether_version_node): Call vec_free on
1775 known_aggs[i].items and release known_aggs vector.
1778 * ipa-reference.c (propagate): Free node_info even for alias nodes.
1780 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1782 * config/microblaze/microblaze.c (microblaze_emit_compare):
1783 Use xor for EQ/NE comparisions.
1784 * config/microblaze/microblaze.md (cstoresf4): Add constraints
1785 (cbranchsf4): Adjust operator to comparison_operator.
1787 2013-02-27 Jakub Jelinek <jakub@redhat.com>
1790 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
1792 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
1793 vec_safe_push, always update *slot.
1794 (redirect_edge_var_map_clear): Use vec_free.
1795 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
1796 (free_var_map_entry): Use vec_free.
1797 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
1798 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
1800 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
1803 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
1804 when the may_trap_p bit of the exprs being merged differs.
1805 Reorder tests for speculativeness in the logical and operator.
1807 2013-02-27 Jakub Jelinek <jakub@redhat.com>
1809 * incpath.c (add_standard_paths): Use reconcat instead of concat
1810 where appropriate and avoid leaking memory.
1812 * opts.h: Include obstack.h.
1813 (opts_concat): New prototype.
1814 (opts_obstack): New declaration.
1815 * opts.c (opts_concat): New function.
1816 (opts_obstack): New variable.
1817 (init_options_struct): Call gcc_init_obstack on opts_obstack.
1818 (finish_options): Use opts_concat instead of concat
1819 and XOBNEWVEC instead of XNEWVEC.
1820 * opts-common.c (generate_canonical_option, decode_cmdline_option,
1821 generate_option): Likewise.
1822 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
1823 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
1826 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
1827 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
1829 2013-02-26 Jakub Jelinek <jakub@redhat.com>
1832 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
1834 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
1836 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
1837 (arm_block_move_unaligned_straight): Likewise.
1838 (arm_adjust_block_mem): Likewise.
1840 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
1843 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
1844 temp, cond and label.
1845 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
1848 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
1849 * config/c6x/c6x.h (dbx_register_map): Update declaration.
1852 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
1853 of prologue/epilogue functions.
1856 * config/tilegx/tilegx.c (tilegx_expand_prologue):
1857 Remove unused variable cfa_offset.
1858 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
1861 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
1862 type promotion to unsigned.
1865 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
1866 for HOST_WIDE_INT of 32 bit / same size as int.
1867 (arm_block_move_unaligned_straight): Likewise.
1868 (arm_adjust_block_mem): Likewise.
1871 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
1874 2013-02-26 Marek Polacek <polacek@redhat.com>
1876 PR tree-optimization/56426
1877 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
1879 2013-02-26 Richard Biener <rguenther@suse.de>
1882 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
1883 unused variable loops.
1885 2013-02-26 Jakub Jelinek <jakub@redhat.com>
1887 PR tree-optimization/56448
1888 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
1889 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
1890 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
1891 later operands of the references, or even first operand for
1892 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
1894 PR tree-optimization/56443
1895 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
1896 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
1897 to type_for_mode langhook.
1899 2013-02-25 Matt Turner <mattst88@gmail.com>
1901 * doc/invoke.texi: Document r4700.
1903 2013-02-25 Richard Biener <rguenther@suse.de>
1905 PR tree-optimization/56175
1906 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
1908 (simplify_bitwise_binary): ... here. Also guard the conversion
1909 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
1911 2013-02-25 Catherine Moore <clm@codesourcery.com>
1914 2013-02-24 Catherine Moore <clm@codesourcery.com>
1915 Maciej W. Rozycki <macro@codesourcery.com>
1916 Tom de Vries <tom@codesourcery.com>
1917 Nathan Sidwell <nathan@codesourcery.com>
1918 Iain Sandoe <iain@codesourcery.com>
1919 Nathan Froyd <froydnj@codesourcery.com>
1920 Chao-ying Fu <fu@mips.com>
1922 * doc/extend.texi: (micromips, nomicromips, nocompression):
1923 Document new function attributes.
1924 * doc/invoke.texi (minterlink-compressed, mmicromips,
1925 m14k, m14ke, m14kec): Document new options.
1926 (minterlink-mips16): Update documentation.
1927 * doc/md.texi (ZC, ZD): Document new constraints.
1928 * configure.ac (gcc_cv_as_micromips): Check if linker
1929 supports the .set micromips directive.
1930 * configure: Regenerate.
1931 * config.in: Regenerate.
1932 * config/mips/mips-tables.opt: Regenerate.
1933 * config/mips/micromips.md: New file.
1934 * constraints.md (ZC, AD): New constraints.
1935 * config/mips/predicates.md (movep_src_register): New predicate.
1936 (movep_src_operand): New predicate.
1937 (non_volatile_mem_operand): New predicate.
1938 * config/mips/mips.md (multimem): New type.
1939 (length): Differentiate between 17-bit and 18-bit branch offsets.
1940 (MOVEP1, MOVEP2): New mode iterator.
1941 (mov_<load>l): Use ZC constraint.
1942 (mov_<load>r): Likewise.
1943 (mov_<store>l): Likewise.
1944 (mov_<store>r): Likewise.
1945 (*branch_equality<mode>_inverted): Add microMIPS support.
1946 (*branch_equality<mode>): Likewise.
1947 (*jump_absolute): Likewise.
1948 (indirect_jump_<mode>): Likewise.
1949 (tablejump_<mode>): Likewise.
1950 (<optab>_internal): Likewise.
1951 (sibcall_internal): Likewise.
1952 (sibcall_value_internal): Likewise.
1953 (prefetch): Use constraint ZD.
1954 * config/mips/mips.opt (minterlink-compressed): New option.
1955 (minterlink-mips16): Now an alias for minterlink-compressed.
1956 (mmicromips): New option.
1957 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1958 (compare_and_swap_12): Likewise.
1959 (sync_add<mode>): Likewise.
1960 (sync_<optab>_12): Likewise.
1961 (sync_old_<optab>_12): Likewise.
1962 (sync_new_<optab>_12): Likewise.
1963 (sync_nand_12): Likewise.
1964 (sync_old_nand_12): Likewise.
1965 (sync_new_nand_12): Likewise.
1966 (sync_sub<mode>): Likewise.
1967 (sync_old_add<mode>): Likewise.
1968 (sync_old_sub<mode>): Likewise.
1969 (sync_new_add<mode>): Likewise.
1970 (sync_new_sub<mode>): Likewise.
1971 (sync_<optab><mode>): Likewise.
1972 (sync_old_<optab><mode>): Likewise.
1973 (sync_new_<optab><mode>): Likewise.
1974 (sync_nand<mode>): Likewise.
1975 (sync_old_nand<mode>): Likewise.
1976 (sync_new_nand<mode>): Likewise.
1977 (sync_lock_test_and_set<mode>): Likewise.
1978 (test_and_set_12): Likewise.
1979 (atomic_compare_and_swap<mode>): Likewise.
1980 (atomic_exchange<mode>_llsc): Likewise.
1981 (atomic_fetch_add<mode>_llsc): Likewise.
1982 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1983 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1984 (umips_save_restore_pattern_p): Likewise.
1985 (umips_load_store_pair_p): Likewise.
1986 (umips_output_load_store_pair): Likewise.
1987 (umips_movep_target_p): Likewise.
1988 (umips_12bit_offset_address_p): Likewise.
1989 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1990 (mips_base_mips16): Rename this...
1991 (mips_base_compression_flags): ...to this. Update all uses.
1992 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1993 (mips_mips16_decl_p): Delete.
1994 (mips_nomips16_decl_p): Delete.
1995 (mips_get_compress_on_flags): New function.
1996 (mips_get_compress_off_flags): New function.
1997 (mips_get_compress_mode): New function.
1998 (mips_get_compress_on_name): New function.
1999 (mips_get_compress_off_name): New function.
2000 (mips_insert_attributes): Support multiple compression types.
2001 (mips_merge_decl_attributes): Likewise.
2002 (umips_12bit_offset_address_p): New function.
2003 (mips_start_function_definition): Emit .set micromips directive.
2004 (mips_call_may_need_jalx_p): New function.
2005 (mips_function_ok_for_sibcall): Add microMIPS support.
2006 (mips_print_operand_punctuation): Support short delay slots and
2008 (umips_swm_mask, umips_swm_encoding): New.
2009 (umips_build_save_restore): New function.
2010 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2011 (was_mips16_p): Remove.
2012 (old_compression_mode): New.
2013 (mips_set_compression_mode): New function.
2014 (mips_set_current_function): Add microMIPS support.
2015 (mips_option_override): Likewise.
2016 (umips_save_restore_pattern_p): New function.
2017 (umips_output_save_restore): New function.
2018 (umips_load_store_pair_p_1): New function.
2019 (umips_load_store_pair_p): New function.
2020 (umips_output_load_store_pair_1): New function.
2021 (umips_output_load_store_pair): New function.
2022 (umips_movep_target_p) New function.
2023 (mips_prepare_pch_save): Add microMIPS support.
2024 * config/mips/mips.h (TARGET_COMPRESSION): New.
2025 (TARGET_CPU_CPP_BUILTINS): Update macro
2026 to use new compression flags and to support microMIPS.
2027 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2028 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2029 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2030 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2031 (ASM_SPEC): Support mmicromips and mno-micromips.
2032 (M16STORE_REG_P): New macro.
2033 (MIPS_CALL): Support TARGET_MICROMIPS.
2034 (MICROMIPS_J): New macro.
2035 (mips_base_mips16): Rename this...
2036 (mips_base_compression_flags): ...to this.
2037 (UMIPS_12BIT_OFFSET_P): New macro.
2038 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2039 (MULTILIB_DIRNAMES): Likewise.
2041 2013-02-25 Tom de Vries <tom@codesourcery.com>
2043 PR rtl-optimization/56131
2044 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
2045 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
2046 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
2048 2013-02-25 Tobias Burnus <burnus@net-b.de>
2050 * doc/invoke.texi (-fsanitize=): Move from optimization
2051 to debugging options.
2053 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2055 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
2057 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2058 Alexander Monakov <amonakov@ispras.ru>
2061 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
2062 flush pending lists also on non-jumps. Adjust comment.
2064 2013-02-24 Catherine Moore <clm@codesourcery.com>
2065 Maciej W. Rozycki <macro@codesourcery.com>
2066 Tom de Vries <tom@codesourcery.com>
2067 Nathan Sidwell <nathan@codesourcery.com>
2068 Iain Sandoe <iain@codesourcery.com>
2069 Nathan Froyd <froydnj@codesourcery.com>
2070 Chao-ying Fu <fu@mips.com>
2072 * doc/extend.texi: (micromips, nomicromips, nocompression):
2073 Document new function attributes.
2074 * doc/invoke.texi (minterlink-compressed, mmicromips,
2075 m14k, m14ke, m14kec): Document new options.
2076 (minterlink-mips16): Update documentation.
2077 * doc/md.texi (ZC, ZD): Document new constraints.
2078 * configure.ac (gcc_cv_as_micromips): Check if linker
2079 supports the .set micromips directive.
2080 * configure: Regenerate.
2081 * config.in: Regenerate.
2082 * config/mips/mips-tables.opt: Regenerate.
2083 * config/mips/micromips.md: New file.
2084 * constraints.md (ZC, AD): New constraints.
2085 * config/mips/predicates.md (movep_src_register): New predicate.
2086 (movep_src_operand): New predicate.
2087 (non_volatile_mem_operand): New predicate.
2088 * config/mips/mips.md (multimem): New type.
2089 (length): Differentiate between 17-bit and 18-bit branch offsets.
2090 (MOVEP1, MOVEP2): New mode iterator.
2091 (mov_<load>l): Use ZC constraint.
2092 (mov_<load>r): Likewise.
2093 (mov_<store>l): Likewise.
2094 (mov_<store>r): Likewise.
2095 (*branch_equality<mode>_inverted): Add microMIPS support.
2096 (*branch_equality<mode>): Likewise.
2097 (*jump_absolute): Likewise.
2098 (indirect_jump_<mode>): Likewise.
2099 (tablejump_<mode>): Likewise.
2100 (<optab>_internal): Likewise.
2101 (sibcall_internal): Likewise.
2102 (sibcall_value_internal): Likewise.
2103 (prefetch): Use constraint ZD.
2104 * config/mips/mips.opt (minterlink-compressed): New option.
2105 (minterlink-mips16): Now an alias for minterlink-compressed.
2106 (mmicromips): New option.
2107 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2108 (compare_and_swap_12): Likewise.
2109 (sync_add<mode>): Likewise.
2110 (sync_<optab>_12): Likewise.
2111 (sync_old_<optab>_12): Likewise.
2112 (sync_new_<optab>_12): Likewise.
2113 (sync_nand_12): Likewise.
2114 (sync_old_nand_12): Likewise.
2115 (sync_new_nand_12): Likewise.
2116 (sync_sub<mode>): Likewise.
2117 (sync_old_add<mode>): Likewise.
2118 (sync_old_sub<mode>): Likewise.
2119 (sync_new_add<mode>): Likewise.
2120 (sync_new_sub<mode>): Likewise.
2121 (sync_<optab><mode>): Likewise.
2122 (sync_old_<optab><mode>): Likewise.
2123 (sync_new_<optab><mode>): Likewise.
2124 (sync_nand<mode>): Likewise.
2125 (sync_old_nand<mode>): Likewise.
2126 (sync_new_nand<mode>): Likewise.
2127 (sync_lock_test_and_set<mode>): Likewise.
2128 (test_and_set_12): Likewise.
2129 (atomic_compare_and_swap<mode>): Likewise.
2130 (atomic_exchange<mode>_llsc): Likewise.
2131 (atomic_fetch_add<mode>_llsc): Likewise.
2132 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2133 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2134 (umips_save_restore_pattern_p): Likewise.
2135 (umips_load_store_pair_p): Likewise.
2136 (umips_output_load_store_pair): Likewise.
2137 (umips_movep_target_p): Likewise.
2138 (umips_12bit_offset_address_p): Likewise.
2139 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2140 (mips_base_mips16): Rename this...
2141 (mips_base_compression_flags): ...to this. Update all uses.
2142 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2143 (mips_mips16_decl_p): Delete.
2144 (mips_nomips16_decl_p): Delete.
2145 (mips_get_compress_on_flags): New function.
2146 (mips_get_compress_off_flags): New function.
2147 (mips_get_compress_mode): New function.
2148 (mips_get_compress_on_name): New function.
2149 (mips_get_compress_off_name): New function.
2150 (mips_insert_attributes): Support multiple compression types.
2151 (mips_merge_decl_attributes): Likewise.
2152 (umips_12bit_offset_address_p): New function.
2153 (mips_start_function_definition): Emit .set micromips directive.
2154 (mips_call_may_need_jalx_p): New function.
2155 (mips_function_ok_for_sibcall): Add microMIPS support.
2156 (mips_print_operand_punctuation): Support short delay slots and
2158 (umips_swm_mask, umips_swm_encoding): New.
2159 (umips_build_save_restore): New function.
2160 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2161 (was_mips16_p): Remove.
2162 (old_compression_mode): New.
2163 (mips_set_compression_mode): New function.
2164 (mips_set_current_function): Add microMIPS support.
2165 (mips_option_override): Likewise.
2166 (umips_save_restore_pattern_p): New function.
2167 (umips_output_save_restore): New function.
2168 (umips_load_store_pair_p_1): New function.
2169 (umips_load_store_pair_p): New function.
2170 (umips_output_load_store_pair_1): New function.
2171 (umips_output_load_store_pair): New function.
2172 (umips_movep_target_p) New function.
2173 (mips_prepare_pch_save): Add microMIPS support.
2174 * config/mips/mips.h (TARGET_COMPRESSION): New.
2175 (TARGET_CPU_CPP_BUILTINS): Update macro
2176 to use new compression flags and to support microMIPS.
2177 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2178 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2179 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2180 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2181 (ASM_SPEC): Support mmicromips and mno-micromips.
2182 (M16STORE_REG_P): New macro.
2183 (MIPS_CALL): Support TARGET_MICROMIPS.
2184 (MICROMIPS_J): New macro.
2185 (mips_base_mips16): Rename this...
2186 (mips_base_compression_flags): ...to this.
2187 (UMIPS_12BIT_OFFSET_P): New macro.
2188 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2189 (MULTILIB_DIRNAMES): Likewise.
2191 2013-02-24 Jakub Jelinek <jakub@redhat.com>
2194 * target-globals.c (save_target_globals): For init_reg_sets and
2195 target_reinit remporarily set this_fn_optabs to this_target_optabs.
2197 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
2199 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
2200 * config/aarch64/t-aarch64
2201 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
2203 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
2206 * lra-constraints.c (process_alt_operands): Reload operand
2207 conflicting with earlier clobber only if no more other conflicting
2210 2013-02-22 Jakub Jelinek <jakub@redhat.com>
2213 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
2214 if not linking a shared library.
2216 2013-02-22 Seth LaForge <sethml@google.com>
2218 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
2220 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
2222 * config/arm/arm.md (split for extendsidi): Update condition.
2223 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
2224 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
2225 (qhs_zextenddi_cstr): Likewise.
2227 2013-02-21 Jakub Jelinek <jakub@redhat.com>
2230 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
2231 avoid signed wrapping.
2232 (expand_mult): Handle properly multiplication by
2233 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
2234 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
2235 in the compiler if coeff is HOST_WIDE_INT_MIN.
2236 (expand_divmod): Don't make ext_op1 static, change it's type to
2237 uhwi. Avoid undefined behavior in -INTVAL (op1).
2239 PR rtl-optimization/50339
2240 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
2242 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
2243 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
2244 into splitting_ashiftrt field.
2245 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
2247 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
2250 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
2253 * trans-mem.c (execute_tm_mark): Do not expand transactions that
2254 are sure to go irrevocable.
2256 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
2258 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
2259 scalars are valid operands.
2261 2013-02-21 Martin Jambor <mjambor@suse.cz>
2263 PR tree-optimization/56310
2264 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
2265 only matching indices and non-negative final offsets.
2266 (intersect_aggregates_with_edge): Pass src_idx to
2267 agg_replacements_to_vector. Pass src_idx insstead of index to
2268 intersect_with_agg_replacements.
2270 2013-02-21 Martin Jambor <mjambor@suse.cz>
2272 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
2273 instead of hard-wired defaults.
2275 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
2277 * doc/invoke.texi (MIPS Options): Update documentation of the
2278 floating-point multiply-accumulate instruction restrictions.
2280 2013-02-21 Kostya Serebryany <kcc@google.com>
2282 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
2283 asan_shadow_offset on x86_64 linux.
2285 2013-02-21 Richard Biener <rguenther@suse.de>
2287 PR tree-optimization/56415
2289 2013-02-11 Richard Biener <rguenther@suse.de>
2291 PR tree-optimization/56273
2292 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2295 2013-02-21 Jakub Jelinek <jakub@redhat.com>
2298 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
2302 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
2303 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
2305 2013-02-20 Jan Hubicka <jh@suse.cz>
2307 PR tree-optimization/56265
2308 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
2309 when target is referenced for first time.
2311 2013-02-20 Richard Biener <rguenther@suse.de>
2313 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
2314 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2315 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2316 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
2317 not return anything.
2318 (rename_ssa_copies): Do not remove unused locals.
2319 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
2320 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
2321 * passes.c (execute_function_todo): Do not schedule unused locals
2322 removal if cleanup_tree_cfg did something.
2323 * tree-ssa-live.c (remove_unused_locals): Dump statistics
2324 about the number of removed locals.
2326 2013-02-20 Richard Biener <rguenther@suse.de>
2328 PR tree-optimization/56398
2329 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
2331 2013-02-20 Martin Jambor <mjambor@suse.cz>
2333 PR tree-optimization/55334
2334 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
2335 restricted pointers to arrays.
2337 2013-02-20 Richard Biener <rguenther@suse.de>
2338 Jakub Jelinek <jakub@redhat.com>
2340 PR tree-optimization/56396
2341 * tree-ssa-ccp.c (n_const_val): New static variable.
2342 (get_value): Return NULL for SSA names we don't have a lattice
2344 (ccp_initialize): Initialize n_const_val.
2345 * tree-ssa-copy.c (n_copy_of): New static variable.
2346 (init_copy_prop): Initialize n_copy_of.
2347 (get_value): Return NULL_TREE for SSA names we don't have a
2350 2013-02-20 Martin Jambor <mjambor@suse.cz>
2352 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
2354 2013-02-20 Richard Biener <rguenther@suse.de>
2356 * genpreds.c (write_lookup_constraint): Do not compare first
2357 letter of the constraint again.
2359 2013-02-20 Richard Biener <rguenther@suse.de>
2361 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
2363 (get_use_iv_cost): Terminate hashtable walk when coming across
2366 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
2368 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
2369 reassociation for avx2 targets.
2371 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2373 * config/microblaze/microblaze.c: microblaze_has_clz = 0
2374 Add version check for v8.10.a to enable microblaze_has_clz
2375 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
2376 version and TARGET_PATTERN_COMPARE check
2377 * config/microblaze/microblaze.md: New clzsi2 instruction
2379 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2381 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
2382 function before branching.
2384 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
2386 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
2388 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
2390 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
2393 * sel-sched.c: Include ira.h.
2394 (implicit_clobber_conflict_p): New function.
2395 (moveup_expr): Use it.
2396 * Makefile.in (sel-sched.o): Depend on ira.h.
2398 2013-02-19 Richard Biener <rguenther@suse.de>
2400 PR tree-optimization/56384
2401 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
2402 (vn_hash_type): Split out from ...
2403 (vn_hash_constant_with_type): ... here.
2404 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
2405 (vn_phi_eq): Compare types from vn_phi_s structure.
2406 (vn_phi_lookup): Populate vn_phi_s type.
2407 (vn_phi_insert): Likewise.
2409 2013-02-19 Jakub Jelinek <jakub@redhat.com>
2411 PR tree-optimization/56350
2412 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
2413 if haven't found reduction or nested cycle operand, rather than
2414 asserting we must find it.
2416 PR tree-optimization/56381
2417 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
2420 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
2421 Jakub Jelinek <jakub@redhat.com>
2424 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
2425 (swap_optab_enable): Same.
2426 (init_all_optabs): Use argument instead of global.
2427 * tree.h (struct tree_optimization_option): New field target_optabs.
2428 * expr.h (init_all_optabs): Add argument to prototype.
2429 (TREE_OPTIMIZATION_OPTABS): New.
2430 (save_optabs_if_changed): Protoize.
2431 * optabs.h: Declare this_fn_optabs.
2432 * optabs.c (save_optabs_if_changed): New.
2433 Declare this_fn_optabs.
2434 (init_optabs): Add argument to init_all_optabs() call.
2435 * function.c (invoke_set_current_function_hook): Handle per
2437 * function.h (struct function): New field optabs.
2438 * config/mips/mips.c (mips_set_mips16_mode): Handle when
2439 optimization_current_node has changed.
2440 * target-globals.h (save_target_globals_default_opts): Protoize.
2441 * target-globals.c (save_target_globals_default_opts): New.
2443 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2446 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
2447 registers %fr12 and %fr12R as call used.
2450 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
2451 and HImode, require all displacements to be an integer multiple of
2453 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
2454 only allow QImode and HImode when reload is in progress and strict is
2455 true. Likewise for symbolic addresses. Use base14_operand to check
2456 displacements in REG+BASE addresses.
2458 2013-02-18 Richard Biener <rguenther@suse.de>
2460 PR tree-optimization/56366
2461 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2462 handle sign-conversion of outer-loop initial induction value.
2464 2013-02-18 Richard Biener <rguenther@suse.de>
2467 * cfghooks.c (merge_blocks): If we merge a latch into another
2468 block adjust references to it.
2469 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
2470 (verify_loop_structure): Verify that a recorded latch is in fact
2473 2013-02-18 Richard Biener <rguenther@suse.de>
2475 PR tree-optimization/56321
2476 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
2477 order SSA name release and virtual operand unlinking.
2479 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2481 * config/microblaze/microblaze.md (save_stack_block): Define.
2482 (restore_stack_block): Likewise.
2484 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2486 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
2487 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
2488 * config/microblaze/microblaze.c (microblaze_option_override):
2489 Bail out early for PIC modes when target does not support PIC.
2491 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2493 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
2494 Replace with a microblaze version.
2495 (microblaze_trampoline_init): Adapt for microblaze.
2496 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
2499 2013-02-16 Jakub Jelinek <jakub@redhat.com>
2500 Dodji Seketeli <dodji@redhat.com>
2503 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
2504 (instrument_mem_region_access): Do not forget to always put
2505 instrumentation of the of 'base' and 'base + len' in a "if (len !=
2506 0) statement, even for cases where either 'base' or 'base + len'
2507 are not instrumented -- because they have been previously
2508 instrumented. Simplify the logic by putting all the statements
2509 instrument 'base + len' inside a sequence, and then insert that
2510 sequence right before the current insertion point. Then, to
2511 instrument 'base + len', just get an iterator on that statement.
2512 And do not forget to update the pointer to iterator the function
2513 received as argument.
2515 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
2517 PR rtl-optimization/56348
2518 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
2520 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
2522 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
2523 (clean_graph_dump_file): Pass base to start_graph_dump.
2525 2013-02-14 Richard Henderson <rth@redhat.com>
2528 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
2530 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
2532 * collect2-aix.h: Define F_LOADONLY.
2534 2013-02-14 Richard Biener <rguenther@suse.de>
2537 * varasm.c (output_constant_def_1): Get the decl representing
2538 the constant as argument.
2539 (output_constant_def): Wrap output_constant_def_1.
2540 (make_decl_rtl): Use output_constant_def_1 with the decl
2541 representing the constant.
2542 (build_constant_desc): Optionally re-use a decl already
2543 representing the constant.
2544 (tree_output_constant_def): Adjust.
2546 2013-02-14 Dodji Seketeli <dodji@redhat.com>
2549 * asan.c (instrument_builtin_call): Really put the length of the
2550 second source argument into src1_len.
2552 2013-02-13 Jakub Jelinek <jakub@redhat.com>
2554 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
2555 argument. If it is false, don't create edge from then_bb to
2557 (insert_if_then_before_iter): Pass true to it.
2558 (build_check_stmt): Pass false to it.
2559 (transform_statements): Flush hash table only on extended basic
2560 block boundaries, rather than at the beginning of every bb.
2561 Don't flush hash table on nonfreeing_call_p calls.
2562 * tree-flow.h (nonfreeing_call_p): New prototype.
2563 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
2565 2013-02-13 David S. Miller <davem@davemloft.net>
2567 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
2569 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
2572 * ira.c (max_regno_before_ira): Move from ...
2574 (fix_reg_equiv_init): Use max_regno_before_ira instead of
2577 2013-02-13 Jakub Jelinek <jakub@redhat.com>
2579 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
2581 2013-02-13 Richard Biener <rguenther@suse.de>
2584 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
2585 globals in MEM_REFs.
2587 2013-02-13 Richard Biener <rguenther@suse.de>
2589 * loop-init.c (loop_optimizer_init): Clear loop state when
2590 re-initializing preserved loops.
2591 * loop-unswitch.c (unswitch_single_loop): Return whether
2592 we unswitched the loop. Do not verify loop state here.
2593 (unswitch_loops): When we unswitched a loop discover new loops.
2595 2013-02-13 Kostya Serebryany <kcc@google.com>
2597 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
2599 * sanitizer.def: Rename __asan_init to __asan_init_v1.
2601 2013-02-12 Dodji Seketeli <dodji@redhat.com>
2603 Avoid instrumenting duplicated memory access in the same basic block
2604 * Makefile.in (asan.o): Add new dependency on hash-table.h
2605 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
2606 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
2607 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
2608 (free_mem_ref_resources, has_mem_ref_been_instrumented)
2609 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
2610 (get_mem_ref_of_assignment): New functions.
2611 (get_mem_refs_of_builtin_call): Extract from
2612 instrument_builtin_call and tweak a little bit to make it fit with
2614 (instrument_builtin_call): Use the new
2615 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
2616 of is_gimple_builtin_call.
2617 (instrument_derefs, instrument_mem_region_access): Insert the
2618 instrumented memory reference into the hash table.
2619 (maybe_instrument_assignment): Renamed instrument_assignment into
2620 this, and change it to advance the iterator when instrumentation
2621 actually happened and return true in that case. This makes it
2622 homogeneous with maybe_instrument_assignment, and thus give a
2623 chance to callers to be more 'regular'.
2624 (transform_statements): Clear the memory reference hash table
2625 whenever we enter a new BB, when we cross a function call, or when
2626 we are done transforming statements. Use
2627 maybe_instrument_assignment instead of instrumentation. No more
2628 need to special case maybe_instrument_assignment and advance the
2629 iterator after calling it; it's now handled just like
2630 maybe_instrument_call. Update comment.
2632 2013-02-13 Richard Biener <rguenther@suse.de>
2634 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
2635 Fix loop discovery code.
2637 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
2640 * lra-constraints.c (process_alt_operands): Match early clobber
2641 operand with itself. Check conflicts with earlyclobber only if
2642 the operand is not reloaded. Prefer to reload conflicting operand
2643 if earlyclobber and matching operands are the same.
2645 2013-02-12 Richard Biener <rguenther@suse.de>
2648 * lto-streamer-out.c (write_symbol): Do not output symbols
2649 for hard register variables.
2651 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
2654 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
2655 (umulsidi3_insn, mulsidi3_insn): New insns.
2657 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2659 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
2660 (struct tune_params): Add vec_costs field.
2661 * config/arm/arm.c (arm_builtin_vectorization_cost)
2662 (arm_add_stmt_cost): New functions.
2663 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
2664 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
2665 (arm_default_vec_cost): New struct of type cpu_vec_costs.
2666 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
2667 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
2668 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
2669 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
2671 2013-02-12 Richard Biener <rguenther@suse.de>
2674 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
2675 decls again if possible.
2677 2013-02-12 Richard Biener <rguenther@suse.de>
2680 * tree-ssa.c (verify_ssa_name): Fix check, move
2681 SSA_NAME_IN_FREE_LIST check up.
2683 2013-02-12 Jakub Jelinek <jakub@redhat.com>
2684 Steven Bosscher <steven@gcc.gnu.org>
2686 PR rtl-optimization/56151
2687 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
2688 equal to op0 or op1, and last_insn pattern is CODE operation
2689 with MEM dest and one of the operands matches that MEM.
2691 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
2693 * doc/extend.texi: Document Function Multiversioning and "default"
2694 parameter string to target attribute.
2695 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
2696 target attribute parameter is "default".
2697 (ix86_compare_version_priority): Remove checks for target attribute.
2698 (ix86_mangle_function_version_assembler_name): Change error to sorry.
2699 Remove check for target attribute equal to NULL. Add assert.
2700 (ix86_generate_version_dispatcher_body): Change error to sorry.
2702 2013-02-11 Iain Sandoe <iain@codesourcery.com>
2703 Jack Howarth <howarth@bromo.med.uc.edu>
2704 Patrick Marlier <patrick.marlier@gmail.com>
2707 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
2708 define ENDFILE_SPEC as TM_DESTRUCTOR.
2709 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
2711 2013-02-11 Alexander Potapenko <glider@google.com>
2712 Jack Howarth <howarth@bromo.med.uc.edu>
2713 Jakub Jelinek <jakub@redhat.com>
2716 * config/darwin.c (cdtor_record): Rename ctor_record.
2717 (sort_cdtor_records): Rename sort_ctor_records.
2718 (finalize_dtors): New routine to sort destructors by
2719 priority before use in assemble_integer.
2720 (machopic_asm_out_destructor): Use finalize_dtors if needed.
2722 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
2724 PR rtl-optimization/56275
2725 * simplify-rtx.c (avoid_constant_pool_reference): Check that
2726 offset is non-negative and less than cmode size before
2727 calling simplify_subreg.
2729 2013-02-11 Richard Biener <rguenther@suse.de>
2731 PR tree-optimization/56264
2732 * cfgloop.h (fix_loop_structure): Adjust prototype.
2733 * loop-init.c (fix_loop_structure): Return the number of
2734 newly discovered loops.
2735 * tree-cfgcleanup.c (repair_loop_structures): When new loops
2736 are discovered, do a full loop-closed SSA rewrite.
2738 2013-02-11 Richard Biener <rguenther@suse.de>
2740 PR tree-optimization/56273
2741 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2743 (check_array_ref): Fix missing newline in dumps.
2744 (search_for_addr_array): Likewise.
2746 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
2748 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
2750 2013-02-09 Jakub Jelinek <jakub@redhat.com>
2753 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
2755 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
2757 PR rtl-optimization/56246
2758 * lra-constraints.c (simplify_operand_subreg): Try to reuse
2760 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
2761 constraints are satisfied.
2763 2013-02-08 Jeff Law <law@redhat.com>
2766 * emit-rtl.c (reg_is_parm_p): New function.
2767 * regs.h (reg_is_parm_p): New prototype.
2768 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
2769 callee-clobbered registers.
2771 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
2774 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
2775 If there is no implicit builtin declaration, just return NULL.
2777 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
2779 * config/i386/sse.md (FMAMODEM): New mode iterator.
2780 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
2781 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
2783 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
2785 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
2786 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
2787 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
2789 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2791 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
2792 (microblaze*-*-elf): Likewise.
2793 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
2795 * config/microblaze/microblaze-c.c: Add builtin defines for
2796 _LITTLE_ENDIAN and _BIG_ENDIAN.
2797 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
2798 add to TARGET_DEFAULT flags.
2799 Expand ASM_SPEC and LINK_SPEC.
2800 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
2801 * config/microblaze/microblaze.md: Update extendsidi2 and
2802 movdi_internal instructions to use low-order / high-order reg
2804 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
2805 options and inversemask / mask of LITTLE_ENDIAN.
2806 * config/microblaze/t-microblaze: Expand multilib options to
2807 include mlittle-endian (le) and update exceptions patterns.
2809 2013-02-08 Jakub Jelinek <jakub@redhat.com>
2811 PR rtl-optimization/56195
2812 * lra-constraints.c (get_reload_reg): Don't reuse regs
2813 if they have smaller mode than requested, if they have
2814 wider mode than requested, try to return a SUBREG.
2816 PR tree-optimization/56250
2817 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
2818 if type is unsigned and code isn't MULT_EXPR.
2820 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
2822 PR tree-optimization/56064
2823 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
2824 bits according to mode.
2825 * fixed-value.h (fixed_from_double_int)
2826 (const_fixed_from_double_int): Adjust comments.
2828 2013-02-08 Richard Biener <rguenther@suse.de>
2831 * lto-streamer.h (struct data_in): Remove current_file, current_line
2832 and current_col members.
2833 * lto-streamer-out.c (lto_output_location): Stream changed bits
2834 en-block for efficiency.
2835 * lto-streamer-in.c (clear_line_info): Remove.
2836 (lto_input_location): Cache current file, line and column
2837 globally via local statics. Read changed bits en-block.
2838 (input_function): Do not call clear_line_info.
2839 (lto_read_body): Likewise.
2840 (lto_input_toplevel_asms): Likewise.
2842 2013-02-08 Michael Matz <matz@suse.de>
2844 PR tree-optimization/52448
2845 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
2846 (nt_call_phase): New static.
2847 (add_or_mark_expr): Only mark accesses with newer phase than any
2849 (nonfreeing_call_p): New.
2850 (nt_init_block): Update nt_call_phase, mark blocks as visited.
2851 (nt_fini_block): Keep blocks marked as visited.
2852 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
2854 2013-02-08 Richard Biener <rguenther@suse.de>
2856 * ira.c (ira): Free broken dominator information.
2858 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
2860 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
2862 2013-02-08 Marek Polacek <polacek@redhat.com>
2864 * cfgloop.c (verify_loop_structure): Add more checking of headers.
2866 2013-02-08 Richard Biener <rguenther@suse.de>
2869 * cfgloop.h (flow_loops_find): Adjust.
2870 (bb_loop_header_p): Declare.
2871 * cfgloop.c (bb_loop_header_p): New function split out from ...
2872 (flow_loops_find): ... here. Adjust function signature,
2873 support incremental loop structure update.
2874 (verify_loop_structure): Cleanup. Verify a loop is a loop.
2875 * cfgloopmanip.c (fix_loop_structure): Move ...
2876 * loop-init.c (fix_loop_structure): ... here.
2877 (apply_loop_flags): Split out from ...
2878 (loop_optimizer_init): ... here.
2879 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
2880 in incremental mode, only remove dead loops here.
2882 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
2885 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
2886 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
2887 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
2888 (*round<mode>3.libgcc): New insns for fixed-modes.
2889 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
2890 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
2891 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
2892 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
2893 implementations. Define to __builtin_avr_absFX,
2894 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
2895 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
2896 __builtin_avr_countlsFX, respectively.
2897 * config/avr/avr-c.c (target.h): Include it.
2898 (enum avr_builtin_id): New enum.
2899 (avr_resolve_overloaded_builtin): New static function.
2900 (avr_register_target_pragmas): Use it to set
2901 targetm.resolve_overloaded_builtin.
2902 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
2903 tree nodes used by DEF_BUILTIN.
2904 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
2905 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
2906 <AVR_BUILTIN_xxBITS>: Same.
2908 2013-02-08 Richard Biener <rguenther@suse.de>
2910 * cfgloop.c (verify_loop_structure): Properly handle
2911 a loop exiting to another loop header.
2912 * ira-int.h (ira_loops): Remove.
2913 * ira.c (ira_loops): Remove.
2914 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
2915 (do_reload): Use loop_optimizer_finalize.
2916 * ira-build.c (create_loop_tree_nodes): Use get_loops and
2917 number_of_loops to access the loop tree.
2918 (more_one_region_p): Likewise.
2919 (finish_loop_tree_nodes): Likewise.
2920 (rebuild_regno_allocno_maps): Likewise.
2921 (mark_loops_for_removal): Likewise.
2922 (mark_all_loops_for_removal): Likewise.
2923 (remove_unnecessary_regions): Likewise.
2924 (ira_build): Likewise.
2925 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2927 2013-02-08 Richard Biener <rguenther@suse.de>
2929 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
2930 * ipa-pure-const.c (analyze_function): Avoid calling
2931 mark_irreducible_loops twice.
2932 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
2934 2013-02-07 David S. Miller <davem@davemloft.net>
2936 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
2938 * var-tracking.c (vt_add_function_parameter): Test the presence of
2939 HAVE_window_save properly and do not remap argument registers when
2940 we have a leaf function.
2942 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
2945 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
2947 * config/i386/i386.c (ix86_print_operand): Ditto.
2949 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
2951 * lra-constraints.c (process_alt_operands): Fix recently added comment.
2953 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
2955 PR rtl-optimization/56225
2956 * lra-constraints.c (process_alt_operands): Check that reload hard
2957 reg can hold value for strict_low_part.
2959 2013-02-07 Jakub Jelinek <jakub@redhat.com>
2962 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
2963 dwarf2out_end_function.
2964 (in_first_function_p, maybe_at_text_label_p,
2965 first_loclabel_num_not_at_text_label): New variables.
2966 (dwarf2out_var_location): In the first function find out
2967 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
2968 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
2971 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
2973 PR rtl-optimization/56178
2974 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
2975 SUBREG of a register. Tidy up related block of code.
2976 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
2977 note if the source is a register or a SUBREG of a register.
2979 2013-02-07 Jakub Jelinek <jakub@redhat.com>
2982 * config/rs6000/rs6000.md (ptrm): New mode attr.
2983 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
2984 call_value_indirect_aix<pttrsize>,
2985 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
2988 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2990 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
2991 if -bnortl. Convert to strcmp and strncmp.
2993 2013-02-07 Alan Modra <amodra@gmail.com>
2996 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
2997 addresses won't wrap when offsetting.
2998 (rs6000_secondary_reload): Provide secondary reloads needed for
2999 wrapping LO_SUM addresses.
3001 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
3003 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
3004 MACH, just __MACH__.
3006 2013-02-06 Richard Biener <rguenther@suse.de>
3008 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
3009 instead of calling fix_loop_structure.
3011 2013-02-06 Jakub Jelinek <jakub@redhat.com>
3014 * omp-low.c (use_pointer_for_field): Return false if
3015 lower_send_shared_vars doesn't generate any copy-out code.
3017 2013-02-06 Tom de Vries <tom@codesourcery.com>
3019 PR rtl-optimization/56131
3020 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
3021 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
3022 of the label is NULL. Add comment.
3024 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3026 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
3029 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
3030 (STATIC_LIBTSAN_LIBS): Likewise.
3031 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
3032 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
3033 is defined, don't add anything else beyond that.
3034 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
3035 (LINK_COMMAND_SPEC): Use them.
3037 PR tree-optimization/56205
3038 * tree-stdarg.c (check_all_va_list_escapes): Return true if
3039 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
3040 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
3042 2013-02-05 Richard Biener <rguenther@suse.de>
3044 PR tree-optimization/53342
3045 PR tree-optimization/53185
3046 * tree-vectorizer.h (vect_check_strided_load): Remove.
3047 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
3048 not disallow peeling for vectorized strided loads.
3049 (vect_check_strided_load): Make static and simplify.
3050 (vect_analyze_data_refs): Adjust.
3051 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
3052 correctly when vectorizing strided loads.
3054 2013-02-05 Richard Biener <rguenther@suse.de>
3056 * doc/install.texi: Refer to ISL, not PPL.
3058 2013-02-05 Jan Hubicka <jh@suse.cz>
3060 PR tree-optimization/55789
3061 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
3063 2013-02-05 Jan Hubicka <jh@suse.cz>
3065 PR tree-optimization/55789
3066 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
3067 the dead call anyway.
3069 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
3072 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
3074 2013-02-04 Alexander Potapenko <glider@google.com>
3075 Jack Howarth <howarth@bromo.med.uc.edu>
3076 Jakub Jelinek <jakub@redhat.com>
3079 * config/darwin.c (sort_ctor_records): Stabilized qsort
3080 on constructor priority by using original position.
3081 (finalize_ctors): New routine to sort constructors by
3082 priority before use in assemble_integer.
3083 (machopic_asm_out_constructor): Use finalize_ctors if needed.
3085 2013-02-04 Jakub Jelinek <jakub@redhat.com>
3088 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
3089 about visibility on artificial decls.
3090 * config/sol2.c (solaris_assemble_visibility): Likewise.
3092 2013-02-04 Kai Tietz <ktietz@redhat.com>
3095 * config/i386/i386.c (function_value_ms_64): Add additional valtype
3096 argument and improve checking of return-argument types for 16-byte
3098 (ix86_function_value_1): Add additional valtype argument on call
3099 of function_value_64.
3100 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
3101 handling infunction_value_64 function.
3103 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
3105 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
3107 2013-02-04 Richard Biener <rguenther@suse.de>
3109 PR tree-optimization/56188
3110 * tree-ssa-structalias.c (label_visit): Consider case with
3111 initially non-empty points-to set.
3112 (perform_var_substitution): Dump node mapping and clean up.
3114 2013-02-04 Richard Guenther <rguenther@suse.de>
3117 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
3118 node prevail as last resort.
3119 (lto_symtab_merge_decls): Remove guard on LTRANS here.
3120 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
3122 2013-02-04 Richard Biener <rguenther@suse.de>
3124 PR tree-optimization/56113
3125 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
3127 (equiv_class_lookup_or_add): ... this.
3128 (label_visit): Adjust and fix error in previous patch.
3129 (perform_var_substitution): Adjust.
3131 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
3133 * config/sh/divtab.c: Fix formatting and comments throughout the file.
3134 * config/sh/sh4-300.md: Likewise.
3135 * config/sh/sh4a.md: Likewise.
3136 * config/sh/constraints.md: Likewise.
3137 * config/sh/sh.md: Likewise.
3138 * config/sh/netbsd-elf.h: Likewise.
3139 * config/sh/predicates.md: Likewise.
3140 * config/sh/sh-protos.h: Likewise.
3141 * config/sh/ushmedia.h: Likewise.
3142 * config/sh/linux.h: Likewise.
3143 * config/sh/sh.c: Likewise.
3144 * config/sh/superh.h: Likewise.
3145 * config/sh/elf.h: Likewise.
3146 * config/sh/sh4.md: Likewise.
3147 * config/sh/sh.h: Likewise.
3149 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3151 * config/pa/constraints.md: Adjust unused letters. Change "T"
3152 constraint to match_test floating_point_store_memory_operand().
3153 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
3154 (base14_operand): New.
3155 (floating_point_store_memory_operand): New.
3156 (integer_store_memory_operand): Revise to use base14_operand and
3157 reg_plus_base_memory_operand.
3158 (move_dest_operand): Allow symbolic_memory_operands.
3159 (symbolic_memory_operand): Check for LO_SOM.
3160 (symbolic_operand): Change default case to break.
3161 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
3162 CONST_DOUBLE values to be reloaded by putting them into memory when
3163 the destination is a floating point register.
3164 (movdf): Remove code to handle CONST_DOUBLE.
3166 (reload_indf_r1): New.
3167 (reload_insf_r1): New.
3168 Consistently use "Q" and "T" constraints with integer and floating
3169 point move instructions, respectively.
3170 (movdi): Remove FAIL.
3171 Change predicate for source operand unamed DImode move from
3172 general_operand to move_src_operand.
3173 (umulsidi3): Change predicate for destination operand to
3175 Likewise for similar unamed patterns.
3176 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
3177 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
3178 (hppa_legitimize_address): Simplify mask calculation.
3179 (pa_emit_move_sequence): Revised handling of secondary reloads from
3180 REG+D addresses for floating point loads and stores. Directly handle
3181 loading CONST0_RTX (mode) to a floating point register.
3182 (pa_secondary_reload): Handle reloading DF and SFmode constant values
3183 to floating point registers. Don't restrict secondary reloads to
3184 floating point registers to integer modes. Revise some comments and
3186 (TARGET_LEGITIMATE_ADDRESS_P): Define.
3187 (pa_legitimate_address_p): New.
3188 (pa_legitimize_reload_address): New.
3189 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
3190 (STRICT_REG_OK_FOR_BASE_P): New.
3191 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
3192 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
3194 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
3195 Andrew Dixie <andrewd@gentrack.com>
3197 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
3200 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
3202 * expmed.c (extract_bit_field_1): Pass the full width of the
3203 structure to get_best_reg_extraction_insn.
3205 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
3208 * configure.ac (use_cxa_atexit): Add AIX.
3209 * configure: Regenerate.
3211 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
3213 2013-02-01 Jakub Jelinek <jakub@redhat.com>
3216 * final.c (need_profile_function): New variable.
3217 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
3218 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
3219 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
3220 notes, targetm.asm_out.function_prologue doesn't emit anything,
3221 HAVE_prologue and profiler should be emitted before prologue,
3222 set need_profile_function instead of emitting it.
3223 (final_scan_insn): If need_profile_function, emit
3224 profile_function on the first NOTE_INSN_BASIC_BLOCK or
3225 NOTE_INSN_FUNCTION_BEG note.
3227 2013-02-01 Richard Henderson <rth@redhat.com>
3229 * config/rs6000/rs6000.md (smulditi3): New.
3232 * config/alpha/alpha.md (umulditi3): New.
3234 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
3236 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
3237 (ASM_OUTPUT_ALIGNED_LOCAL): New.
3239 2013-02-01 Richard Biener <rguenther@suse.de>
3241 PR tree-optimization/56113
3242 * tree-ssa-structalias.c (label_visit): Reduce work for
3243 single-predecessor nodes.
3245 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
3247 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
3248 range isn't testing for zero.
3250 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
3253 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
3255 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
3256 Nick Clifton <nickc@redhat.com>
3258 * config/v850/constraints.md (Q): Define as a memory constraint.
3259 * config/v850/predicates.md (label_ref_operand): New predicate.
3260 (e3v5_shift_operand): New predicate.
3261 (ior_operator): New predicate.
3262 * config/v850/t-v850: Add e3v5 multilib.
3263 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
3264 (v850_gen_movdi): Prototype.
3265 * config/v850/v850.c: Add support for e3v5 architecture.
3266 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
3268 (construct_save_jarl): Add e3v5 long JARL support.
3269 (v850_adjust_insn_length): New function. Adjust length of call
3270 insns when using e3v5 instructions.
3271 (v850_gen_movdi): New function: Generate instructions to move a
3273 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
3274 (CPP_SPEC): Define __v850e3v5__ as appropriate.
3275 (TARGET_USE_FPU): Enable for e3v5.
3276 (CONST_OK_FOR_W): New macro.
3277 (ADJUST_INSN_LENGTH): Define.
3278 * config/v850/v850.md (UNSPEC_LOOP): Define.
3279 (attr cpu): Add v850e3v5.
3280 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
3281 (movdi): New pattern.
3282 (movdi_internal): New pattern.
3283 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
3284 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
3285 (cstoresf4): Likewise.
3286 (cstoredf4): Likewise.
3287 (insv): New pattern.
3288 (rotlso3_a): New pattern.
3289 (rotlsi3_b): New pattern
3290 (rotlsi3_v850e3v5): New pattern.
3291 (doloop_begin): New pattern.
3292 (fix_loop_counter): New pattern.
3293 (doloop_end): New pattern.
3294 (branch_normal): Add e3v5 long branch support.
3295 (branch_invert): Likewise.
3296 (branch_z_normal): Likewise.
3297 (branch_z_invert): Likewise.
3298 (branch_nz_normal): Likewise.
3299 (branch_nz_invert): Likewise.
3300 (call_internal_short): Add e3v5 register-indirect JARL support.
3301 (call_internal_long): Likewise.
3302 (call_value_internal_short): Likewise.
3303 (call_value_internal_long): Likewise.
3304 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
3305 (mloop): New option.
3306 * config.gcc: Add support for configuring v840e3v5 target.
3307 * doc/invoke.texi: Document new v850 specific command line options.
3309 2013-01-31 Paul Koning <ni1d@arrl.net>
3313 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
3314 children if parent is a class.
3315 (prune_unused_types_prune): Don't add DW_AT_declaration.
3317 2013-01-31 Richard Biener <rguenther@suse.de>
3319 PR tree-optimization/56157
3320 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
3321 match up operand with SLP child.
3323 2013-01-31 Jason Merrill <jason@redhat.com>
3326 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
3327 parameters the first time.
3328 (gen_scheduled_generic_parms_dies): Check completeness here.
3330 2013-01-31 Richard Biener <rguenther@suse.de>
3333 * common.opt (faggressive-loop-optimizations): New flag,
3335 * doc/invoke.texi (faggressive-loop-optimizations): Document.
3336 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
3337 infer_loop_bounds_from_undefined by it.
3339 2013-01-31 Richard Biener <rguenther@suse.de>
3341 PR tree-optimization/56150
3342 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
3343 visit virtual operands.
3344 (find_uses_to_rename_bb): Likewise.
3346 2013-01-31 Richard Biener <rguenther@suse.de>
3348 PR tree-optimization/56150
3349 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
3350 mixed store non-store stmts.
3352 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3355 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
3356 LIBASAN_EARLY_SPEC is defined.
3357 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
3358 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
3360 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
3363 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
3364 invalid args instead of ICEing on it.
3365 (ix86_valid_target_attribute_tree): Return error_mark_node if
3366 ix86_valid_target_attribute_inner_p failed.
3367 (ix86_valid_target_attribute_p): Return false only if
3368 ix86_valid_target_attribute_tree returned error_mark_node. Allow
3369 target("default") attribute.
3370 (sorted_attr_string): Change argument from const char * to tree,
3371 merge in all target attribute arguments rather than just one.
3372 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
3373 instead of free. Avoid using strcat.
3374 (ix86_mangle_function_version_assembler_name): Mangle
3375 target("default") as if no target attribute is present. Adjust
3376 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
3377 instead of xmalloc and XDELETEVEC instead of free.
3378 (ix86_function_versions): Don't return true if one of the decls
3379 doesn't have target attribute. If they don't and one of the decls
3380 is DECL_FUNCTION_VERSIONED, report an error. Adjust
3381 sorted_attr_string caller. Use XDELETEVEC instead of free.
3382 (ix86_supports_function_versions): Remove.
3383 (make_name): Fix up formatting.
3384 (make_dispatcher_decl): Remove resolver_name and its initialization.
3385 Avoid leaking memory.
3386 (is_function_default_version): Return true if there is
3387 target("default") attribute rather than no target attribute at all.
3388 (make_resolver_func): Avoid leaking memory.
3389 (ix86_generate_version_dispatcher_body): Likewise.
3390 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
3391 * target.def (supports_function_versions): Remove.
3392 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
3393 * doc/tm.texi: Regenerated.
3395 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
3397 PR rtl-optimization/56144
3398 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
3399 for values with side effects.
3401 2013-01-30 Richard Biener <rguenther@suse.de>
3403 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
3404 (sparseset_pop): Likewise.
3405 * cfganal.c (compute_idf): Likewise. Increase work-stack size
3406 to be able to use quick_push in the worker loop.
3408 2013-01-30 Marek Polacek <polacek@redhat.com>
3410 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
3412 2013-01-30 Richard Biener <rguenther@suse.de>
3415 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
3417 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
3419 PR tree-optimization/56064
3420 * fixed-value.c (fixed_from_double_int): New function.
3421 * fixed-value.h (fixed_from_double_int): New prototype.
3422 (const_fixed_from_double_int): New static inline function.
3423 * fold-const.c (native_interpret_fixed): New static function.
3424 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
3425 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
3426 (native_encode_fixed): New static function.
3427 (native_encode_expr) <FIXED_CST>: Use it.
3428 (native_interpret_int): Move double_int worker code to...
3429 * double-int.c (double_int::from_buffer): ...this new static method.
3430 * double-int.h (double_int::from_buffer): Prototype it.
3432 2013-01-30 Richard Biener <rguenther@suse.de>
3434 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
3435 New pointer-map and obstack.
3436 (init_alias_vars): Allocate pointer-map and obstack.
3437 (delete_points_to_sets): Free them.
3438 (find_what_var_points_to): Cache result.
3439 (find_what_p_points_to): Adjust for changed interface of
3440 find_what_var_points_to.
3441 (compute_points_to_sets): Likewise.
3442 (ipa_pta_execute): Likewise.
3444 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3446 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
3447 * configure: Regenerate.
3448 * config.in: Regenerate.
3449 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
3450 #nobits/#progbits if supported.
3452 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
3455 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
3456 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
3457 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
3459 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3461 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
3462 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
3464 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3466 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
3467 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
3469 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3471 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
3473 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
3474 * config/arm/cortex-a7.md: New bypasses using
3475 arm_mac_accumulator_is_result.
3477 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3479 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
3480 (cortex_a7_neon_mla): Likewise.
3481 (cortex_a7_fpfmad): New reservation.
3482 (cortex_a7_fpmacs): Use ffmas and update required units.
3483 (cortex_a7_fpmuld): Update required units and latency.
3484 (cortex_a7_fpmacd): Likewise.
3485 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
3486 (cortex_a7_neon). Likewise.
3487 (bypass) Update participating units.
3489 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3491 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
3492 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
3494 * config/arm/vfp11.md (vfp_farith): Use ffmas.
3495 (vfp_fmul): Use ffmad.
3496 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
3497 (cortex_r4_fmacd): Use ffmad.
3498 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
3499 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
3500 (cortex_a9_fmacd): Use ffmad.
3501 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
3502 (cortex_a8_vfp_macd): Use ffmad.
3503 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
3504 (cortex_a5_fpmacd): Use ffmad.
3505 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
3506 (cortex_a15_vfp_macd): Use ffmad.
3507 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
3509 2013-01-29 Jason Merrill <jason@redhat.com>
3512 * varasm.c (default_assemble_visibility): Don't warn about
3513 visibility on artificial decls.
3515 2013-01-29 Richard Biener <rguenther@suse.de>
3517 PR tree-optimization/56113
3518 * tree-ssa-structalias.c (equiv_class_lookup): Also return
3520 (label_visit): Free duplicate bitmaps and record the leader instead.
3521 (perform_var_substitution): Adjust.
3523 2013-01-29 Richard Biener <rguenther@suse.de>
3525 PR tree-optimization/55270
3526 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
3527 the CFG, schedule loops for fixup.
3529 2013-01-29 Nick Clifton <nickc@redhat.com>
3531 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
3534 2013-01-28 Leif Ekblad <leif@rdos.net>
3536 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
3537 * config/i386/i386.h (TARGET_RDOS): New macro.
3538 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
3539 * config/i386/i386.c (ix86_option_override_internal): For 64bit
3540 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
3541 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
3542 DEFAULT_LARGE_SECTION_THRESHOLD.
3543 * config/i386/i386.md (R14_REG, R15_REG): New constants.
3544 * config/i386/rdos.h: New file.
3545 * config/i386/rdos64.h: New file.
3547 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
3550 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
3553 2013-01-28 Jakub Jelinek <jakub@redhat.com>
3555 PR rtl-optimization/56117
3556 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
3557 call cselib_lookup_from_insn on the MEM before calling
3558 add_insn_mem_dependence.
3560 2013-01-28 Richard Biener <rguenther@suse.de>
3562 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
3563 to a stmt that didn't have one.
3564 (copy_phis_for_bb): Likewise for PHI arguments.
3565 (copy_debug_stmt): Likewise for debug stmts.
3567 2013-01-28 Richard Biener <rguenther@suse.de>
3569 PR tree-optimization/56034
3570 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
3571 (partition_builtin_p): Adjust.
3572 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
3573 it is the last partition.
3574 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
3575 up the vertex for the definition.
3576 (classify_partition): Classify whether a partition is a
3577 PKIND_REDUCTION, thus has uses outside of the loop.
3578 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
3579 Merge all PKIND_REDUCTION partitions into the last partition.
3580 (tree_loop_distribution): Seed partitions from reductions as well.
3582 2013-01-28 Jakub Jelinek <jakub@redhat.com>
3584 PR tree-optimization/56125
3585 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
3586 pow(x,c) into sqrt(x) * powi(x, n/2) or
3587 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
3588 optimizing for size.
3589 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
3590 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
3593 PR tree-optimization/56094
3594 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
3595 to UNKNOWN_LOCATION while gimplifying expr.
3597 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
3600 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
3601 operand 0 in movabs insn template for -masm=intel asm alternative.
3602 (*movabs<mode>_2): Ditto for operand 1.
3604 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
3607 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
3610 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3612 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
3615 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3617 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
3618 Undef to avoid warning.
3620 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3622 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
3623 * configure: Regenerate.
3625 2013-01-25 Jakub Jelinek <jakub@redhat.com>
3627 PR tree-optimization/56098
3628 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
3629 for stmts with volatile ops.
3630 (cond_store_replacement): Don't optimize if assign has volatile ops.
3631 (cond_if_else_store_replacement_1): Don't optimize if either
3632 then_assign or else_assign have volatile ops.
3633 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
3636 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
3638 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
3640 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
3642 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
3643 missing ':' in asm example.
3645 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
3647 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
3648 entries into lane and laneq entries.
3649 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
3650 Remove AdvSIMD scalar modes.
3651 (aarch64_sq<r>dmulh_laneq<mode>): New.
3652 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
3654 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
3655 builtin implementations to relfect changes in RTL in aarch64-simd.md.
3656 * config/aarch64/iterators.md (VCOND): New.
3659 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
3662 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
3663 Add NULL LIBNAME argument to existing definitions.
3664 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
3665 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
3666 * config/avr/avr.c (DEF_BUILTIN): Same.
3667 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
3668 (avr_expand_builtin): Expand to a vanilla call if a libgcc
3669 implementation is available (DECL_ASSEMBLER_NAME is set).
3670 (avr_fold_absfx): New static function.
3671 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
3672 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
3673 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
3675 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
3676 (abshk, absk, abslk, absllk): Provide as static inline functions.
3678 2013-01-25 Marek Polacek <polacek@redhat.com>
3680 PR tree-optimization/56035
3681 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
3683 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
3685 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
3686 (*movtf_internal_rex64): Add (!o,C) alternative
3687 (*movxf_internal_rex64): Ditto.
3688 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
3690 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
3692 * doc/invoke.texi: fix typo.
3693 * doc/objc.texi: fix typo.
3695 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
3697 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
3698 for the first two alternatives.
3700 2013-01-24 Diego Novillo <dnovillo@google.com>
3702 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
3703 (ggc-zone.o): Remove.
3704 * configure.ac: Remove option --with-gc.
3705 * configure: Re-generate.
3706 * doc/install.texi: Remove documentation for --with-gc.
3707 * gengtype.c (write_enum_defn): Remove. Update all users.
3708 (write_Types_process_field): Remove generation of gt_e_* argument.
3709 (output_type_enum): Remove. Update all users.
3710 (write_enum_defn): Remove. Update all users.
3711 (enum alloc_zone): Remove. Update all users.
3712 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
3713 * ggc-common.c (ggc_splay_alloc): Remove first argument.
3715 (struct ptr_data): Remove field TYPE. Update all users.
3716 (gt_pch_note_object): Remove argument TYPE. Update all users.
3717 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
3719 * ggc-none.c (ggc_alloc_typed_stat): Remove.
3720 (struct alloc_zone): Remove.
3721 (ggc_internal_alloc_zone_stat): Remove.
3722 (ggc_internal_cleared_alloc_zone_stat): Remove.
3723 * ggc-page.c (ggc_alloc_typed_stat): Remove.
3724 (ggc_pch_count_object): Remove last argument. Update all users.
3725 (ggc_pch_alloc_object): Remove last argument. Update all users.
3726 (struct alloc_zone): Remove.
3727 * ggc-zone.c: Remove.
3728 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
3729 (struct alloc_zone): Remove.
3730 (ggc_alloc_typed_stat): Remove.
3731 (ggc_alloc_typed): Remove.
3732 (ggc_splay_alloc): Remove first argument.
3733 (rtl_zone): Remove. Update all users.
3734 (tree_zone): Remove. Update all users.
3735 (tree_id_zone): Remove. Update all users.
3736 (ggc_internal_zone_alloc_stat): Remove. Update all users.
3737 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
3738 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
3739 * tree-ssanames.c: Remove references to zone allocator in comments.
3741 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
3743 * config/avr/avr.c (avr_out_fract): Make register numbers that
3744 might be outside of source operand signed.
3746 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
3748 * config/i386/constraints.md (Yf): New constraint.
3749 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
3750 of f constraint to conditionaly disable x87 register preferences.
3751 (*movdf_internal): Ditto.
3752 (*movsf_internal): Ditto.
3754 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
3757 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
3758 that have operands with impossible constraints.
3759 Add a FIXME for a speed-up opportunity.
3760 * lra-constraints.c (process_alt_operands): Verify that a class
3761 selected from constraints on asms is valid for the operand mode.
3762 (curr_insn_transform): Remove incorrect comment.
3764 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
3766 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
3767 TOC operand is a valid symbol ref in the constant pool.
3769 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3771 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
3773 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
3776 * config/avr/stdfix.h: New file.
3777 * t-avr (stdfix-gcc.h): New rule to build it.
3778 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
3780 2013-01-23 Kostya Serebryany <kcc@google.com>
3782 * config/darwin.h: remove dependency on
3783 CoreFoundation (asan on Mac OS).
3785 2013-01-23 Jakub Jelinek <jakub@redhat.com>
3788 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
3789 instead of cmpdi_operand for first comparison operand.
3790 Don't assert that comparison operands aren't both constants.
3792 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
3794 * doc/install.texi (Downloading the Source): Update references to
3795 downloading separate components.
3797 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
3799 * doc/extend.texi (__int128): Improve grammar.
3801 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
3804 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
3805 alternative to (o,r).
3806 (*movdi_internal_rex64): Remove (!o,n) alternative.
3807 (DImode immediate->memory splitter): Remove.
3808 (DImode immediate->memory peephole2): Remove.
3809 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
3810 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
3811 alternative to (!o,*r).
3812 (*movtf_internal_sse): New pattern.
3813 (*movxf_internal_rex64): New pattern.
3814 (*movxf_internal): Disable for TARGET_64BIT.
3815 (*movdf_internal_rex64): Remove (!o,F) alternative.
3817 2013-01-22 Jakub Jelinek <jakub@redhat.com>
3820 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
3821 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
3822 * tree-vect-loop-manip.c (find_loop_location): Also ignore
3823 stmt locations where LOCATION_LOCUS of the stmt location is
3824 UNKNOWN_LOCATION or BUILTINS_LOCATION.
3827 * config/i386/i386.md (UNSPEC_STOS): New.
3828 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
3829 *strsetqi_1): Add UNSPEC_STOS.
3831 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
3834 * doc/invoke.texi: Remove left over -Wsynth example.
3836 2013-01-21 Jakub Jelinek <jakub@redhat.com>
3838 PR tree-optimization/56051
3839 * fold-const.c (fold_binary_loc): Don't fold
3840 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
3841 a narrowing conversion, or widening conversion from signed
3844 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
3846 PR rtl-optimization/56023
3847 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
3848 dependent on debug instruction.
3850 2013-01-21 Martin Jambor <mjambor@suse.cz>
3853 * function.c (allocate_struct_function): Call
3854 invoke_set_current_function_hook earlier.
3856 2013-01-21 Jakub Jelinek <jakub@redhat.com>
3858 * reload1.c (init_reload): Only initialize reload_obstack
3859 during the first call.
3861 2013-01-21 Marek Polacek <polacek@redhat.com>
3863 * cfgloop.c (verify_loop_structure): Fix up grammar.
3865 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
3867 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
3868 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
3870 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3873 * config/arm/marvell-pj4.md: Update copyright year.
3874 Fix up use of alu to alu_reg and simple_alu_imm.
3876 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
3878 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
3880 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
3883 * lra-constraints.c (curr_insn_transform): Don't reuse original
3884 insn for secondary memory move when memory mode should be different.
3886 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3888 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
3889 atomic_storedi_1): New patterns.
3891 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3893 btver2 pipeline descriptions.
3894 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
3896 * config/i386/i386.md (btver2_decode): New type attributes.
3897 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
3899 * config/i386/btver2.md: New file describing btver2 pipelines.
3901 2013-01-19 Andrew Pinski <apinski@cavium.com>
3903 PR tree-optimization/52631
3904 * tree-ssa-sccvn (visit_use): Before looking up the original
3905 statement, try looking up the simplified expression.
3907 2013-01-19 Anthony Green <green@moxielogic.com>
3909 * config/moxie/moxie.c (moxie_expand_prologue): Set
3910 current_function_static_stack_size.
3912 2013-01-18 Jakub Jelinek <jakub@redhat.com>
3914 PR tree-optimization/56029
3915 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
3916 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
3918 2013-01-18 Sharad Singhai <singhai@google.com>
3920 PR tree-optimization/55995
3921 * dumpfile.c (dump_loc): Print location only if available.
3922 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
3924 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
3927 * lra-constraints.c (curr_insn_transform): Reuse original insn for
3928 secondary memory move.
3929 (inherit_reload_reg): Use rclass instead of cl for
3930 check_secondary_memory_needed_p.
3932 2013-01-18 Jakub Jelinek <jakub@redhat.com>
3935 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
3936 the case where writing real complex part of target modifies op1.
3938 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
3940 * config/aarch64/aarch64-simd.md
3941 (aarch64_vcond_internal<mode>): Handle unordered cases.
3942 * config/aarch64/iterators.md (v_cmp_result): New.
3944 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
3945 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3947 * config/arm/marvell-pj4.md: New file.
3948 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
3949 * config/arm/arm.md (generic_sched): Add marvell_pj4.
3950 (generic_vfp): Likewise.
3951 * config/arm/arm-cores.def: Add marvell-pj4.
3952 * config/arm/arm-tune.md: Regenerate.
3953 * config/arm/arm-tables.opt: Regenerate.
3954 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
3955 * doc/invoke.texi: Document marvell-pj4.
3957 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
3959 * config/aarch64/arm_neon.h: Map scalar types to standard types.
3961 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
3966 * var-tracking.c (negative_power_of_two_p): New.
3967 (global_get_addr_cache, local_get_addr_cache): New.
3968 (get_addr_from_global_cache, get_addr_from_local_cache): New.
3969 (vt_canonicalize_addr): Rewrite using the above. Adjust the
3971 (vt_stack_offset_p): Remove.
3972 (vt_canon_true_dep): Always canonicalize loc's address.
3973 (clobber_overlapping_mems): Make sure we have a MEM.
3974 (local_get_addr_clear_given_value): New.
3975 (val_reset): Clear local cached entries.
3976 (compute_bb_dataflow): Create and release the local cache.
3977 Disable duplicate MEMs clobbering.
3978 (emit_notes_in_bb): Clobber MEMs likewise.
3979 (vt_emit_notes): Create and release the local cache.
3980 (vt_initialize, vt_finalize): Create and release the global
3981 cache, respectively.
3982 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
3984 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
3987 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
3988 not found in the symtab.
3990 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
3993 PR rtl-optimization/55547
3994 PR rtl-optimization/53827
3997 * alias.c (offset_overlap_p): New, factored out of...
3998 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
3999 the conservative special case for symbolic constants. Don't
4000 adjust zero sizes on alignment.
4002 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
4004 PR rtl-optimization/52573
4005 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
4006 REG_UNUSED for the same register.
4008 2013-01-17 Richard Biener <rguenther@suse.de>
4009 Marek Polacek <polacek@redhat.com>
4011 PR rtl-optimization/55833
4012 * loop-unswitch.c (unswitch_loops): Move loop verification...
4013 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
4014 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
4015 Set it to true when we're removing a loop from hierarchy tree in
4016 an irreducible region.
4017 (fix_bb_placements): Adjust caller.
4018 (fix_loop_placements): Likewise.
4020 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
4022 * config/avr/builtins.def (DEF_BUILTIN): Factor out
4023 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
4024 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
4025 Remove ID. Adjust comments.
4026 * config/avr/avr-c.c (avr_builtin_name): Remove.
4027 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
4028 * config/avr/avr.c (avr_tolower): New static function.
4029 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
4030 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
4031 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
4034 2013-01-17 Jan Hubicka <jh@suse.cz>
4036 PR tree-optimization/55273
4037 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
4039 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
4042 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
4043 store through atomic_store<mode>_1.
4044 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
4046 2013-01-17 Martin Jambor <mjambor@suse.cz>
4048 PR tree-optimizations/55264
4049 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
4050 for virtual methods.
4051 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
4052 virtual methods before inlining is over.
4053 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
4055 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
4058 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
4060 PR rtl-optimization/56005
4061 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
4062 pending reads for prefetch.
4064 2013-01-16 Ian Bolton <ian.bolton@arm.com>
4066 * config/aarch64/aarch64.md
4067 (*cstoresi_neg_uxtw): New pattern.
4068 (*cmovsi_insn_uxtw): New pattern.
4069 (*<optab>si3_uxtw): New pattern.
4070 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
4071 (*<optab>si3_insn_uxtw): New pattern.
4072 (*bswapsi2_uxtw): New pattern.
4074 2013-01-16 Richard Biener <rguenther@suse.de>
4076 * tree-inline.c (tree_function_versioning): Remove set but
4077 never used variable.
4079 2013-01-16 Richard Biener <rguenther@suse.de>
4081 PR tree-optimization/55964
4082 * tree-flow.h (rename_variables_in_loop): Remove.
4083 (rename_variables_in_bb): Likewise.
4084 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
4085 (copy_loop_before): Adjust and delete update-ssa status.
4086 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
4087 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
4088 (rename_variables_in_loop): Remove.
4089 (slpeel_update_phis_for_duplicate_loop): Likewise.
4090 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
4091 use available cfg machinery instead of duplicating it.
4092 Update PHI nodes and perform poor-mans SSA update here.
4093 (slpeel_tree_peel_loop_to_edge): Adjust.
4095 2013-01-16 Richard Biener <rguenther@suse.de>
4097 PR tree-optimization/54767
4098 PR tree-optimization/53465
4099 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
4100 (vrp_visit_phi_node): For PHI arguments coming via backedges
4101 drop all symbolical range information.
4102 (execute_vrp): Compute backedges.
4104 2013-01-16 Richard Biener <rguenther@suse.de>
4106 * doc/install.texi: Update CLooG and ISL requirements to
4109 2013-01-16 Christian Bruel <christian.bruel@st.com>
4112 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
4113 (broken_move): Handle UNSPECV_SP_SWITCH_B.
4114 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
4116 2013-01-16 DJ Delorie <dj@redhat.com>
4118 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4119 (UNSPECV_SP_SWITCH_E): New.
4120 (sp_switch_1): Change to an unspec.
4121 (sp_switch_2): Change to an unspec. Don't use post-inc when we
4124 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
4126 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
4127 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
4128 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
4129 (expand_mem_thread_fence): Ditto.
4130 (expand_mem_signal_fence): Ditto.
4131 (expand_atomic_load): Ditto.
4132 (expand_atomic_store): Ditto.
4134 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
4136 PR rtl-optimization/55547
4137 PR rtl-optimization/53827
4140 * alias.c (memrefs_conflict_p): Set sizes to negative after
4143 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4146 * function.c (thread_prologue_and_epilogue_insns): Always
4147 add crtl->drap_reg to set_up_by_prologue.set, even if
4148 stack_realign_drap is false.
4150 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4152 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
4153 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
4154 *call): Fix indention.
4156 2013-01-15 Tom de Vries <tom@codesourcery.com>
4159 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
4162 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
4164 PR rtl-optimization/55153
4165 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
4167 2013-01-15 Martin Jambor <mjambor@suse.cz>
4169 PR tree-optimization/55920
4170 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
4171 accesses as grp_to_be_debug_replaced.
4173 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4175 PR tree-optimization/55920
4176 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
4177 there is non-useless type conversion needed from debug rhs to lhs,
4178 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
4180 2013-01-15 Joseph Myers <joseph@codesourcery.com>
4181 Mikael Pettersson <mikpe@it.uu.se>
4184 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
4186 (ASM_OUTPUT_CASE_LABEL): Remove.
4187 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
4188 * final.c (shorten_branches): Update alignment of labels before
4189 jump tables if CASE_VECTOR_SHORTEN_MODE.
4191 2013-01-15 Richard Biener <rguenther@suse.de>
4194 * system.h: Do not include gmp.h for building host tools.
4196 2013-01-15 Richard Biener <rguenther@suse.de>
4199 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
4200 account for bitpos when computing alignment.
4202 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
4204 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
4205 (ix86_target_macros_internal): Likewise.
4207 * config/i386/i386.c (m_CORE2I7): Removed.
4208 (m_CORE_HASWELL): New macro.
4209 (m_CORE_ALL): Likewise.
4210 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
4211 (initial_ix86_arch_features): Likewise.
4212 (processor_target_table): Initializations for Core avx2.
4213 (cpu_names): New names "core-avx2".
4214 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
4215 PROCESSOR_CORE_HASWELL.
4216 (ix86_issue_rate): New case.
4217 (ia32_multipass_dfa_lookahead): Likewise.
4218 (ix86_sched_init_global): Likewise.
4220 * config/i386/i386.h (TARGET_HASWELL): New macro.
4221 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
4222 (processor_type): New PROCESSOR_HASWELL.
4224 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4226 PR tree-optimization/55955
4227 * tree-vect-loop.c (vectorizable_reduction): Give up early on
4228 *SHIFT_EXPR and *ROTATE_EXPR codes.
4230 PR tree-optimization/48766
4231 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
4232 -ftrapv disable -fwrapv.
4234 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4237 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
4238 etc. to 1 and not to __flash.
4239 Use LL suffix for __INT24_MAX__ with -mint8.
4240 Use ULL suffix for __UINT24_MAX__ with -mint8.
4242 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4244 * config/avr/avr-arch.h
4245 (struct base_arch_s): Use typedef avr_arch_t instead.
4246 (struct arch_info_s): Use typedef avr_arch_info_t instead.
4247 (struct mcu_type_s): Use typedef avr_mcu_t instead.
4248 * config/avr/avr.c: Same.
4249 * config/avr/avr-devices.c: Same.
4250 * config/avr/driver-avr.c: Same.
4251 * config/avr/gen-avr-mmcu-texi.c: Same.
4252 * config/avr/avr-mcus.def: Adjust comment.
4254 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
4256 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
4257 * config/aarch64/iterators.md (VALLDI): New.
4259 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
4260 Andi Kleen <ak@linux.intel.com>
4263 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
4264 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
4267 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4269 * config/avr/avr-stdint.h: Remove trailing blanks.
4270 * config/avr/avr-log.h: Same.
4271 * config/avr/avr-arch.h: Same.
4272 * config/avr/avr-devices.c: Same.
4273 * config/avr/avr-dimode.md: Same.
4274 * config/avr/predicates.md: Same.
4275 * config/avr/avr-c.c: Same. And fix typo.
4277 * config/avr/avr-protos.h: Same. And:
4278 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
4279 (init_cumulative_args): Rename to avr_init_cumulative_args.
4280 (expand_prologue): Rename to avr_expand_prologue.
4281 (expand_epilogue): Rename to avr_expand_epilogue.
4282 (adjust_insn_length): Rename to avr_adjust_insn_length.
4283 (notice_update_cc): Rename to avr_notice_update_cc.
4284 (final_prescan_insn): Rename to avr_final_prescan_insn.
4285 * config/avr/avr.c: Same.
4286 * config/avr/avr.h: Same.
4287 * config/avr/avr.md: Remove trailing blanks.
4288 (prologue): Use avr_expand_prologue.
4289 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
4291 2013-01-14 Richard Biener <rguenther@suse.de>
4293 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
4294 verify_location, collect_subblocks): New functions.
4295 (verify_gimple_in_cfg): Verify that locations only reference
4296 BLOCKs in the functions BLOCK tree.
4298 2013-01-14 Richard Biener <rguenther@suse.de>
4300 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
4302 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
4304 (insert_out_of_ssa_copy_on_edge): Likewise.
4305 (rewrite_close_phi_out_of_ssa): Likewise.
4306 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
4308 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
4309 propagated constants.
4310 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
4313 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4315 * config/avr/avr-modes.def: Add GPL copyright notice.
4317 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
4319 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
4320 MEMMODEL_MASK to determine memory model.
4321 (atomic_store<mode>): Ditto from operands[2].
4322 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
4324 2013-01-13 Jakub Jelinek <jakub@redhat.com>
4327 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
4328 (fold_gimple_assign): Don't call unshare_expr here.
4329 (fold_ctor_reference): Call unshare_expr.
4331 2013-01-13 Terry Guo <terry.guo@arm.com>
4333 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
4334 * doc/fragments.texi: Document MULTILIB_REUSE.
4335 * gcc.c (multilib_reuse): New internal spec.
4336 (set_multilib_dir): Also search multilib from multilib_reuse.
4337 * genmultilib (tmpmultilib3): Refactor code.
4338 (tmpmultilib4): Ditto.
4339 (multilib_reuse): New multilib argument.
4341 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
4343 * Makefile.in: Update copyright.
4345 2013-01-12 Tom de Vries <tom@codesourcery.com>
4348 * calls.c (expand_call): Check if arg_nr is valid.
4350 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4352 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
4353 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
4354 documentation. Add missing '__' in front of
4355 __builtin_ia32_packssdw256.
4357 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4360 * config/s390/s390.c (s390_preferred_reload_class): Do not return
4361 NO_REGS for larl operands.
4362 (s390_reload_larl_operand): Use s390_load_address instead of
4365 2013-01-11 Richard Biener <rguenther@suse.de>
4367 * tree-cfg.c (verify_node_sharing_1): Split out from ...
4368 (verify_node_sharing): ... here.
4369 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
4371 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
4373 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
4374 Substitute TREECHECKING.
4375 * configure: Regenerate.
4376 * Makefile.in (TREECHECKING): New.
4378 2013-01-11 Richard Guenther <rguenther@suse.de>
4380 PR tree-optimization/44061
4381 * tree-vrp.c (extract_range_basic): Compute zero as
4382 value-range for __builtin_constant_p of function parameters.
4384 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
4386 Update copyright years.
4388 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
4390 PR rtl-optimization/55672
4391 * lra-eliminations.c (mark_not_eliminable): Permit addition with
4392 const to be eliminable.
4394 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
4396 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
4397 * configure: Regenerate.
4399 2013-01-10 Richard Biener <rguenther@suse.de>
4401 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
4403 2013-01-10 Richard Biener <rguenther@suse.de>
4406 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
4407 locations for virtual PHI arguments.
4408 (rewrite_update_phi_arguments): Likewise.
4410 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
4412 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
4415 2013-01-10 Jakub Jelinek <jakub@redhat.com>
4417 PR tree-optimization/55921
4418 * tree-complex.c (expand_complex_asm): New function.
4419 (expand_complex_operations_1): Call it for GIMPLE_ASM.
4421 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4424 * config/s390/s390.c (s390_symref_operand_p)
4425 (s390_loadrelative_operand_p): Merge the two functions.
4426 (s390_check_qrst_address, print_operand_address): Add parameters
4427 to s390_loadrelative_operand_p invokation.
4428 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
4429 (s390_reload_larl_operand, s390_secondary_reload): Use
4430 s390_loadrelative_operand_p instead of s390_symref_operand_p.
4431 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
4433 2013-01-09 Mike Stump <mikestump@comcast.net>
4435 * dse.c (record_store): Remove unnecessary assert.
4437 2013-01-09 Jan Hubicka <jh@suse.cz>
4439 PR tree-optimization/55569
4440 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
4441 * cfgloop.h (scale_loop_profile): Likewise.
4443 2013-01-09 Jan Hubicka <jh@suse.cz>
4446 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
4448 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
4450 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
4453 * expr.h (maybe_emit_group_store): Declare.
4454 * expr.c (maybe_emit_group_store): New function.
4455 * builtins.c (expand_builtin_int_roundingfn): Call it.
4456 (expand_builtin_int_roundingfn_2): Likewise.
4458 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
4460 PR rtl-optimization/55829
4461 * lra-constraints.c (match_reload): Add code for absent output.
4462 (curr_insn_transform): Add code for reloads of matched inputs
4465 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
4467 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
4468 attribute of movddup insn to DF.
4469 (*vec_interleave_lowv2df): Ditto.
4470 (vec_dupv2df): Ditto.
4472 2013-01-09 Jan Hubicka <jh@suse.cz>
4474 PR tree-optimiation/55875
4475 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
4476 EVERY_ITERATION parameter.
4477 (number_of_iterations_exit): Check if exit is executed every iteration.
4478 (idx_infer_loop_bounds): Similarly here.
4479 (n_of_executions_at_most): Simplify
4480 to only test for cases where statement is dominated by the
4481 particular bound; handle correctly the "postdominance" test.
4482 (scev_probably_wraps_p): Use max loop iterations info
4483 as a global bound first.
4485 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
4486 Nick Clifton <nickc@redhat.com>
4488 * config/v850/v850.md (cbranchsf4): New pattern.
4489 (cstoresf4): New pattern.
4490 (cbranchdf4): New pattern.
4491 (cstoredf4): New pattern.
4492 (movsicc): Disallow floating point comparisons.
4493 (cmpsf_le_insn): Fix order of operators.
4494 (cmpsf_lt_insn): Likewise.
4495 (cmpsf_eq_insn): Likewise.
4496 (cmpdf_le_insn): Likewise.
4497 (cmpdf_lt_insn): Likewise.
4498 (cmpdf_eq_insn): Likewise.
4499 (cmpsf_ge_insn): Use LE comparison.
4500 (cmpdf_ge_insn): Likewise.
4501 (cmpsf_gt_insn): Use LT comparison.
4502 (cmpdf_gt_insn): Likewise.
4503 (cmpsf_ne_insn): Delete pattern.
4504 (cmpdf_ne_insn): Delete pattern.
4505 * config/v850/v850.c (v850_gen_float_compare): Use
4506 gen_cmpdf_eq_insn for NE comparison.
4507 (v850_float_z_comparison_operator)
4508 (v850_float_nz_comparison_operator): Move from here ...
4509 * config/v850/predicates.md: ... to here. Move GT and GE
4510 comparisons into v850_float_z_comparison_operator.
4511 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
4513 (v850_float_nz_comparison_operator): Likewise.
4515 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4517 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
4518 with calls to gen_insvsi/gen_insvdi.
4520 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4522 * config/i386/i386.c (initial_ix86_tune_features): Set up
4523 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
4525 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
4526 Jakub Jelinek <jakub@redhat.com>
4528 PR tree-optimization/48189
4529 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
4530 If nitercst is 0, don't predict the exit edge.
4532 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4534 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
4535 in asm_fprintf with reg_names.
4536 (aarch64_print_operand_address): Likewise.
4537 (aarch64_return_addr): Likewise.
4538 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
4540 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4542 * config/pa/pa.h (VAL_U6_BITS_P): Define.
4543 (INT_U6_BITS): Likewise.
4544 * config/pa/predicates.md (uint6_operand): New predicate.
4545 (shift5_operand, shift6_operand): Likewise.
4546 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
4548 (lshrdi3): Use shift6_operand.
4549 (shrpsi4, shrpdi4): New insn patterns.
4550 (extzv): Delete expander.
4551 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
4552 predicates in unamed zero extract patterns. Tighten common constraint.
4553 (extv): Delete expander.
4554 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
4555 predicates in unamed sign extract patterns. Tighten common constraint.
4556 (insv): Delete expander.
4557 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
4558 predicates in unamed insert patterns. Tighten common constraint.
4559 Change uint32_operand predicate to uint6_operand predicate in unamed
4560 DImode pattern to insert constant values of type 1...1xxxx.
4562 2013-01-04 Jan Hubicka <jh@suse.cz>
4564 PR tree-optimization/55823
4565 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
4568 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4569 Uros Bizjak <ubizjak@gmail.com>
4571 PR rtl-optimization/55845
4572 * df-problems.c (can_move_insns_across): Stop scanning at
4573 volatile_insn_p source instruction or give up if
4574 across_from .. across_to range contains any volatile_insn_p
4577 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
4579 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
4580 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
4582 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
4583 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4585 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4588 * asan.c (asan_clear_shadow): New function.
4589 (asan_emit_stack_protection): Use it.
4591 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
4593 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
4594 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
4595 with tab instead of space.
4597 2013-01-08 Nick Clifton <nickc@redhat.com>
4599 * config/rl78/rl78.c (rl78_expand_prologue): Always select
4600 register bank 0 at the start of an interrupt handler.
4601 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
4604 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
4606 * config/aarch64/aarch64-simd.md
4607 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
4608 (aarch64_simd_bsl): Likewise.
4609 (aarch64_vcond_internal<mode>): Likewise.
4610 (vcond<mode><mode>): Likewise.
4611 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
4612 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
4614 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
4616 * config/aarch64/aarch64-builtins.c
4617 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
4619 2013-01-08 Martin Jambor <mjambor@suse.cz>
4622 * tree-sra.c (analyze_access_subtree): Return true also after
4623 potentially creating a debug-only replacement.
4625 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4628 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
4630 PR tree-optimization/54120
4631 * tree-vrp.c (range_fits_type_p): Don't allow
4632 src_precision < precision from signed vr to unsigned_p
4633 if vr->min or vr->max is negative.
4634 (simplify_float_conversion_using_ranges): Test can_float_p
4635 against CODE_FOR_nothing.
4637 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4638 Richard Biener <rguenther@suse.de>
4641 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
4642 types instead of just INTEGER_TYPE types.
4644 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
4646 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
4649 2013-01-07 Steve Ellcey <sellcey@mips.com>
4652 * config/mips/mips.opt: Change mad to mmad to match documentation.
4654 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4657 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
4660 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4663 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
4664 (avr_addrspace_t): Add .section_name field.
4665 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
4667 (avr_addrspace): Same. Initialize .section_name. Remove last
4668 NULL entry. Put __memx into .progmemx.data.
4669 (progmem_section_prefix): Remove.
4670 (avr_asm_init_sections): No need to initialize progmem_section.
4671 (avr_asm_named_section): Use avr_addrspace[].section_name to get
4672 section name prefix.
4673 (avr_asm_select_section): Ditto. And use get_unnamed_section to
4674 retrieve the progmem section.
4675 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
4676 boundary to run over avr_addrspace[].
4677 (avr_register_target_pragmas): Ditto.
4679 2013-01-06 Jakub Jelinek <jakub@redhat.com>
4681 * varasm.c (output_constant_def_contents): For asan_protect_global
4682 protected strings, adjust DECL_ALIGN if needed, before testing for
4684 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
4685 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
4687 (output_object_block): For asan protected decls, emit asan padding
4688 after their contents.
4689 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
4690 (asan_finish_file): Test it here instead.
4692 2013-01-07 Nick Clifton <nickc@redhat.com>
4693 Matthias Klose <doko@debian.org>
4694 Doug Kwan <dougkwan@google.com>
4695 H.J. Lu <hongjiu.lu@intel.com>
4698 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
4700 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
4702 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
4704 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
4706 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
4708 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4711 * doc/install.texi (Cross-Compiler-Specific Options): Document
4714 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
4716 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
4717 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
4718 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
4719 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
4720 vqmovun_high_s64): Fix source operand number and update copyright.
4722 2013-01-07 Richard Biener <rguenther@suse.de>
4725 * gimple.h (gimple_call_builtin_p): New overload.
4726 * gimple.c (validate_call): New function.
4727 (gimple_call_builtin_p): Likewise.
4728 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4729 Use gimple_call_builtin_p.
4730 (find_func_clobbers): Likewise.
4731 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
4732 (strlen_optimize_stmt): Likewise.
4734 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
4736 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
4737 (vld1q_dup_*): Likewise.
4739 (vld1q_*): Likewise.
4740 (vld1_lane_*): Likewise.
4741 (vld1q_lane_*): Likewise.
4743 2013-01-07 Richard Biener <rguenther@suse.de>
4745 * lto-streamer.h (LTO_minor_version): Bump to 2.
4747 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
4749 * config/aarch64/aarch64-protos.h
4750 (aarch64_const_double_zero_rtx_p): Rename to...
4751 (aarch64_float_const_zero_rtx_p): ...this.
4752 (aarch64_float_const_representable_p): New.
4753 (aarch64_output_simd_mov_immediate): Likewise.
4754 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
4755 move immediate case.
4756 * config/aarch64/aarch64.c
4757 (aarch64_const_double_zero_rtx_p): Rename to...
4758 (aarch64_float_const_zero_rtx_p): ...this.
4759 (aarch64_print_operand): Allow printing of new constants.
4760 (aarch64_valid_floating_const): New.
4761 (aarch64_legitimate_constant_p): Check for valid floating-point
4763 (aarch64_simd_valid_immediate): Likewise.
4764 (aarch64_vect_float_const_representable_p): New.
4765 (aarch64_float_const_representable_p): Likewise.
4766 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
4767 (aarch64_output_simd_mov_immediate): New.
4768 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
4769 (*movdf_aarch64): Likewise.
4770 * config/aarch64/constraints.md (Ufc): New.
4771 (Y): call aarch64_float_const_zero_rtx.
4772 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
4774 2013-01-07 Richard Biener <rguenther@suse.de>
4776 PR tree-optimization/55888
4777 PR tree-optimization/55862
4778 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
4779 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
4780 not if it is contained therein.
4782 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4784 * config/avr/t-avr: Typo.
4786 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
4789 * config/avr/t-avr: Don't automatically rebuild
4790 $(srcdir)/config/avr/t-multilib
4791 $(srcdir)/config/avr/avr-tables.opt
4792 $(srcdir)/doc/avr-mmcu.texi
4793 (avr-mcus): New phony target to build them on request.
4794 (s-avr-mlib, s-avr-mmcu-texi): Remove.
4795 * avr/avr-mcus.def: Adjust comments.
4797 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
4799 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
4801 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
4803 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
4805 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
4807 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
4809 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
4811 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
4812 to generate profiling.
4813 * config/rs6000/aix64.h (LIB_SPEC): Same.
4815 2013-01-04 Andrew Pinski <apinski@cavium.com>
4817 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
4819 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
4821 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
4823 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
4825 (ix86_expand_move): Ditto.
4826 (ix86_zero_extend_to_Pmode): Ditto.
4827 (ix86_expand_call): Ditto.
4828 (ix86_expand_special_args_builtin): Ditto.
4829 (ix86_expand_builtin): Ditto.
4831 2013-01-04 Richard Biener <rguenther@suse.de>
4833 PR tree-optimization/55862
4834 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
4835 translating them through PHI nodes.
4837 2013-01-04 Martin Jambor <mjambor@suse.cz>
4839 PR tree-optimization/55755
4840 * tree-sra.c (sra_modify_assign): Do not check that an access has no
4841 children when trying to avoid producing a VIEW_CONVERT_EXPR.
4843 2013-01-04 Marek Polacek <polacek@redhat.com>
4846 * opts.c (default_options_optimization): Clarify error message.
4848 2013-01-04 Richard Biener <rguenther@suse.de>
4851 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
4854 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4857 * config/pa/pa.md (movsi): Revert previous change.
4858 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
4861 2013-01-03 Richard Henderson <rth@redhat.com>
4863 * config/i386/i386.c (ix86_expand_move): Always assign to op1
4864 after eliminating TLS symbols.
4866 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
4869 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
4870 * graphite-poly.c (debug_gmp_value): Likewise.
4872 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
4875 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
4876 selected code model, define __code_mode_small__, __code_model_medium__,
4877 __code_model_large__, __code_model_32__ or __code_model_kernel__.
4878 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
4879 xchg temporary register with %k. Declare temporary register as
4881 [__x86_64__]: For medium and large code models, preserve %rbx register.
4883 2013-01-03 Richard Biener <rguenther@suse.de>
4885 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
4886 (dump_subscript): Adjust.
4887 (finalize_ddr_dependent): Do not dump redundant info.
4888 (analyze_siv_subscript): Adjust.
4889 (subscript_dependence_tester): Likewise.
4890 (compute_affine_dependence): Likewise.
4892 2013-01-03 Richard Biener <rguenther@suse.de>
4895 2013-01-03 Richard Biener <rguenther@suse.de>
4897 PR tree-optimization/55857
4898 * tree-vect-stmts.c (vectorizable_load): Do not setup
4899 re-alignment for invariant loads.
4901 2013-01-02 Richard Biener <rguenther@suse.de>
4903 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
4904 invariant load do not generate a vector load from the scalar location.
4906 2013-01-03 Richard Biener <rguenther@suse.de>
4908 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
4909 for not vectorizing.
4910 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
4911 not build INDIRECT_REFs, call get_name once only.
4912 (vect_create_data_ref_ptr): Likewise. Dump base object kind
4913 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
4915 2013-01-03 Richard Biener <rguenther@suse.de>
4917 PR tree-optimization/55857
4918 * tree-vect-stmts.c (vectorizable_load): Do not setup
4919 re-alignment for invariant loads.
4921 2013-01-03 Richard Biener <rguenther@suse.de>
4924 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
4925 prefer a built-in decl.
4927 2013-01-03 Jakub Jelinek <jakub@redhat.com>
4929 * gcc.c (process_command): Update copyright notice dates.
4930 * gcov.c (print_version): Likewise.
4931 * gcov-dump.c (print_version): Likewise.
4933 PR rtl-optimization/55838
4934 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
4935 iv0.step, iv1.step and step.
4937 2013-01-03 Jakub Jelinek <jakub@redhat.com>
4938 Marc Glisse <marc.glisse@inria.fr>
4940 PR tree-optimization/55832
4941 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
4942 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
4943 integer_{one,zero}_node.
4945 2013-01-03 Jakub Jelinek <jakub@redhat.com>
4948 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
4949 * var-tracking.c (reverse_op): Don't add reverse ops to
4950 VALUEs that have already
4951 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
4953 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
4955 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
4957 2013-01-02 Teresa Johnson <tejohnson@google.com>
4959 * dumpfile.c (dump_loc): Print filename with location.
4960 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
4961 new location_t parameter to emit complete unroll message with
4963 (canonicalize_loop_induction_variables): Compute loops location
4964 and pass to try_unroll_loop_completely.
4965 * loop-unroll.c (report_unroll_peel): New function.
4966 (peel_loops_completely): Use new dump format with location
4967 for main dumpfile message, and invoke report_unroll_peel on success.
4968 (decide_unrolling_and_peeling): Ditto.
4969 (decide_peel_once_rolling): Remove old dumpfile message subsumed
4970 by report_unroll_peel.
4971 (decide_peel_completely): Ditto.
4972 (decide_unroll_constant_iterations): Ditto.
4973 (decide_unroll_runtime_iterations): Ditto.
4974 (decide_peel_simple): Ditto.
4975 (decide_unroll_stupid): Ditto.
4976 * cfgloop.c (get_loop_location): New function.
4977 * cfgloop.h (get_loop_location): Declare.
4979 2013-01-02 Sriraman Tallam <tmsriram@google.com>
4981 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
4984 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4987 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
4988 BLKmode objects when EXPAND_MEMORY is specified.
4990 2013-01-02 Sriraman Tallam <tmsriram@google.com>
4992 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
4994 (fold_builtin_cpu): Do not share cpu model decls across statements.
4996 2013-01-02 Jason Merrill <jason@redhat.com>
4999 * tree.c (build_array_type_1): Revert earlier change.
5001 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
5003 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
5005 * config/aarch64/aarch64-tune.md: Re-generate.
5007 2013-01-02 Richard Biener <rguenther@suse.de>
5009 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5010 invariant load do not generate a vector load from the scalar location.
5012 2013-01-02 Richard Biener <rguenther@suse.de>
5015 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
5016 * configure: Regenerate.
5018 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5020 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
5021 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
5022 (expand_builtin_int_roundingfn_2): Keep the original target around
5023 for the fallback case.
5025 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5027 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
5028 to be clear for sign changes.
5030 2013-01-01 Jan Hubicka <jh@suse.cz>
5032 * ipa-inline-analysis.c: Fix formatting.
5034 2013-01-01 Jakub Jelinek <jakub@redhat.com>
5036 PR tree-optimization/55831
5037 * tree-vect-loop.c (get_initial_def_for_induction): Use
5038 gsi_after_labels instead of gsi_start_bb.
5040 Copyright (C) 2013 Free Software Foundation, Inc.
5042 Copying and distribution of this file, with or without modification,
5043 are permitted in any medium without royalty provided the copyright
5044 notice and this notice are preserved.