1 2013-03-20 Richard Biener <rguenther@suse.de>
3 * tree-ssa-structalias.c (struct variable_info): Add pointer
4 to the first field of an aggregate with sub-vars. Make
5 this and the pointer to the next subfield its ID.
6 (vi_next): New function.
7 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
8 storedanything_id, integer_id): Increment by one.
9 (new_var_info, get_call_vi, lookup_call_clobber_vi,
10 get_call_clobber_vi): Adjust.
11 (solution_set_expand): Simplify and speedup.
12 (solution_set_add): Inline into ...
13 (set_union_with_increment): ... this. Adjust accordingly.
14 (do_sd_constraint): Likewise.
15 (do_ds_constraint): Likewise.
16 (do_complex_constraint): Simplify.
17 (build_pred_graph): Adjust.
18 (solve_graph): Likewise. Simplify and speedup.
19 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
20 get_constraint_for_component_ref, get_constraint_for_1,
21 first_vi_for_offset, first_or_preceding_vi_for_offset,
22 create_function_info_for, create_variable_info_for_1,
23 create_variable_info_for, intra_create_variable_infos): Adjust.
24 (init_base_vars): Push NULL for ID zero.
25 (compute_points_to_sets): Adjust.
27 2013-03-20 Richard Biener <rguenther@suse.de>
29 * cfgloop.c (verify_loop_structure): Streamline and avoid
30 ICEing on corrupt loop tree.
31 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
34 2013-03-20 Richard Biener <rguenther@suse.de>
36 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
37 check whether an SSA update is needed.
39 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
41 * config/mips/constraints.md (T): Rename to...
45 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
46 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
48 2013-03-19 Ian Bolton <ian.bolton@arm.com>
50 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
51 (*subsi3_carryin_uxtw): Likewise.
53 2013-03-19 Ian Bolton <ian.bolton@arm.com>
55 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
56 (*rorsi3_insn_uxtw): Likewise.
58 2013-03-19 Ian Bolton <ian.bolton@arm.com>
60 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
61 (*extrsi5_insn_uxtw): Likewise.
63 2013-03-19 Richard Biener <rguenther@suse.de>
65 PR tree-optimization/56273
66 * passes.c (init_optimization_passes): Move second VRP after DOM.
68 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
70 * config/i386/i386.md (*movti_internal): Merge from
71 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
72 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
75 2013-03-18 Richard Biener <rguenther@suse.de>
77 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
79 (merge_node_constraints): Likewise.
80 (build_succ_graph): Likewise.
81 (valid_graph_edge): Inline into single caller.
82 (unify_nodes): Likewise. Use bitmap_set_bit return value
84 (scc_visit): Fix formatting and variable use.
85 (do_sd_constraint): Use gcc_checking_assert.
86 (do_ds_constraint): Likewise.
87 (do_complex_constraint): Likewise.
88 (condense_visit): Likewise. Cleanup.
89 (dump_pred_graph): New function.
90 (perform_var_substitution): Dump the pred-graph before
91 variable substitution.
92 (find_equivalent_node): Use gcc_checking_assert.
93 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
95 2013-03-18 Richard Biener <rguenther@suse.de>
97 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
98 Remove cond_expr_stmt_list argument and do not gimplify the
100 (vect_loop_versioning): Adjust.
101 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
102 Cleanup to use less temporaries.
103 (vect_create_data_ref_ptr): Cleanup.
105 2013-03-18 Jakub Jelinek <jakub@redhat.com>
107 PR tree-optimization/56635
108 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
109 require types_compatible_p types.
111 2013-03-18 Nick Clifton <nickc@redhat.com>
113 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
116 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
117 Add missing line to comment describing function.
119 2013-03-18 Richard Biener <rguenther@suse.de>
121 PR tree-optimization/56210
122 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
123 Handle string / character search functions.
124 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
126 2013-03-18 Richard Biener <rguenther@suse.de>
129 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
130 and implement properly.
131 * gimple.h (gimple_cond_single_var_p): Remove.
133 2013-03-18 Richard Biener <rguenther@suse.de>
135 * tree-data-ref.h (find_data_references_in_loop): Declare.
136 * tree-data-ref.c (get_references_in_stmt): Use a stack
137 vector pre-allocated in the callers.
138 (find_data_references_in_stmt): Adjust.
139 (graphite_find_data_references_in_stmt): Likewise.
140 (create_rdg_vertices): Likewise.
141 (find_data_references_in_loop): Export.
142 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
143 Compute dependences here...
144 (vect_analyze_data_refs): ...not here. When we encounter
145 a non-vectorizable data reference in basic-block vectorization
146 truncate the data reference vector. Do not bother to
147 fixup data-dependence information for gather loads.
148 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
149 of data references, as reported.
151 2013-03-18 Richard Biener <rguenther@suse.de>
153 PR tree-optimization/3713
154 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
155 has_constants and expr.
156 (stmt_has_constants): Properly valueize SSA names when deciding
157 whether the stmt has constants.
159 2013-03-18 Richard Biener <rguenther@suse.de>
161 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
162 whole function when there is nothing to do.
163 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
164 * tree-vectorizer.c (vectorize_loops): Update virtual and
165 loop-closed SSA once.
166 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
168 2013-03-18 Richard Biener <rguenther@suse.de>
171 * domwalk.c (bb_postorder): New global static.
172 (cmp_bb_postorder): New function.
173 (walk_dominator_tree): Replace scheme imposing an order for
174 visiting dominator sons by one sorting them at the time they
175 are pushed on the stack.
177 2013-03-18 Richard Biener <rguenther@suse.de>
179 PR tree-optimization/39326
180 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
181 (struct mem_ref): Replace mem member with ao_ref typed member.
182 (MEM_ANALYZABLE): Adjust.
183 (memref_eq): Likewise.
184 (mem_ref_alloc): Likewise.
185 (gather_mem_refs_stmt): Likewise.
186 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
187 (execute_sm_if_changed_flag_set): Adjust.
188 (execute_sm): Likewise.
189 (ref_always_accessed_p): Likewise.
190 (refs_independent_p): Likewise.
191 (can_sm_ref_p): Likewise.
193 2013-03-18 Jakub Jelinek <jakub@redhat.com>
196 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
197 return 1 even for !unsignedp.
199 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
201 * config/i386/i386.md (isa): Add x64 and nox64.
202 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
203 (*pushtf): Enable *roF alternative for x64 isa only.
204 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
205 mode attribute of integer alternatives to DImode for TARGET_64BIT.
206 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
207 (*movtf_internal): Merge from *movtf_internal_rex64 and
208 *movtf_internal_sse. Use x64 and nox64 isa attributes.
209 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
210 nox64 isa attributes.
211 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
212 nox64 isa attributes.
213 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
215 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
217 * config/alpha/alpha.c (TARGET_LRA_P): New define.
219 2013-03-17 Jakub Jelinek <jakub@redhat.com>
222 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
223 class names. Remove trailing comma after "ALL_REGS".
225 2013-03-16 Jan Hubicka <jh@suse.cz>
227 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
228 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
229 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
230 of cgraph_get_create_node.
231 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
233 2013-03-16 Jason Merrill <jason@redhat.com>
236 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
237 with DW_AT_default_value.
239 2013-03-16 Jakub Jelinek <jakub@redhat.com>
241 * BASE-VER: Set to 4.9.0.
243 2013-03-14 Andi Kleen <ak@linux.intel.com>
246 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
247 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
248 Document _x* TSX intrinsics.
250 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
251 David Holsgrove <david.holsgrove@xilinx.com>
253 * configure.ac: Add MicroBlaze TLS support detection.
254 * configure: Regenerate.
255 * config/microblaze/microblaze-protos.h
256 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
257 symbol_mentioned_p, label_mentioned_p): Add prototypes.
258 * config/microblaze/microblaze.c (microblaze_address_type): Add
259 ADDRESS_TLS and tls_reloc address types.
260 (microblaze_address_info): Add tls_reloc.
261 (TARGET_HAVE_TLS): Define.
262 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
263 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
264 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
265 load_tls_operand, microblaze_call_tls_get_addr,
266 microblaze_legitimize_tls_address): New functions.
267 (microblaze_classify_unspec): Handle UNSPEC_TLS.
268 (get_base_reg): Use microblaze_tls_symbol_p.
269 (microblaze_classify_address): Handle TLS.
270 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
271 label_mentioned_p and microblaze_tls_referenced_p.
272 (microblaze_legitimize_address): Handle TLS.
273 (microblaze_address_insns): Handle ADDRESS_TLS.
274 (pic_address_needs_scratch): Handle TLS.
275 (print_operand_address): Handle TLS.
276 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
277 (microblaze_expand_move): Handle TLS.
278 (microblaze_legitimate_constant_p): Check
279 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
280 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
281 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
282 (PIC_OFFSET_TABLE_REGNUM): Set.
283 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
284 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
285 (addsi3, movsi_internal2, movdf_internal): Update constraints
286 * config/microblaze/predicates.md (arith_plus_operand): Define
287 (move_operand): Redefine as move_src_operand,
288 check microblaze_tls_referenced_p.
290 2013-03-14 Ian Bolton <ian.bolton@arm.com>
292 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
293 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
295 2013-03-14 Ian Bolton <ian.bolton@arm.com>
297 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
300 2013-03-14 Jakub Jelinek <jakub@redhat.com>
302 PR tree-optimization/53265
303 * common.opt (Waggressive-loop-optimizations): New option.
304 * tree-ssa-loop-niter.c: Include tree-pass.h.
305 (do_warn_aggressive_loop_optimizations): New function.
306 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
307 if number_of_latch_executions returned constant.
308 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
309 early. If number_of_latch_executions returned constant, set
310 nb_iterations_upper_bound back to it.
311 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
313 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
314 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
316 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
317 (MULTILIB_OSDIRNAMES): Set.
318 * genmultilib: If defaultosdirname doesn't start with :: , set
319 defaultosdirname2 instead, clear it and emit two . multilib_raw
320 entries instead of just one.
322 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
324 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
325 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
326 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
327 (SUBTARGET_OVERRIDE_OPTIONS): New.
329 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
332 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
333 (musermode): Convert to Var(TARGET_USERMODE).
334 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
335 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
336 * config/sh/sh.c (sh_option_override): Use
337 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
338 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
340 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
342 (udivsi3_i4_single, divsi3_i4_single): Use
343 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
345 2013-03-13 Dave Korn <dave.korn.cygwin@....>
347 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
350 2013-03-13 Richard Biener <rguenther@suse.de>
352 PR tree-optimization/56608
353 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
354 calls when vectorizing basic-blocks.
356 2013-03-13 Jakub Jelinek <jakub@redhat.com>
359 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
362 2013-03-12 Jakub Jelinek <jakub@redhat.com>
364 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
366 2013-03-11 Jan Hubicka <jh@suse.cz>
369 * lto-streamer-out.c (output_symbol_p): Skip references from
370 constructors of external variables.
372 2013-03-11 Jan Hubicka <jh@suse.cz>
375 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
377 * emit-rtl.c (verify_rtx_sharing): Likewise.
378 (copy_insn_1): Likewise.
379 * rtl.c (copy_rtx): Likewise.
381 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
384 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
385 output_operand_lossage message.
387 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
390 * arm.c (shift_op): Validate RTL pattern on the fly.
391 (arm_print_operand, case 'S'): Don't use shift_operator to validate
394 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
397 * config/pa/pa.md (call_value): Check for calls to powf and direct to
398 new call patterns that clobber %fr12.
399 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
400 split and postreload patterns.
401 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
402 registers %fr12 and %fr12R as call used.
404 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
406 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
407 (canon_address, record_store, replace_read, check_mem_read_rtx,
408 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
409 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
410 rest_of_handle_dse): Likewise.
412 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
415 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
417 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
418 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
419 (save_optabs_if_changed): Replace with...
420 (init_tree_optimization_optabs): ...this.
421 * optabs.c (save_optabs_if_changed): Rename to...
422 (init_tree_optimization_optabs): ...this. Take the optimization node
423 as argument. Do nothing if the base optabs are already correct.
424 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
426 * function.h (function): Remove optabs field.
427 * function.c (invoke_set_current_function_hook): Call
428 init_tree_optimization_optabs. Use the result to initialize
431 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
433 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
434 if GTMA_HAS_NO_INSTRUMENTATION.
435 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
436 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
437 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
438 * gimple-pretty-print.c (dump_gimple_transaction): Handle
439 GTMA_HAS_NO_INSTRUMENTATION.
441 2013-03-08 Jakub Jelinek <jakub@redhat.com>
443 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
446 2013-03-08 Marek Polacek <polacek@redhat.com>
447 Jakub Jelinek <jakub@redhat.com>
449 PR tree-optimization/56478
450 * predict.c (is_comparison_with_loop_invariant_p): Change the
451 type of loop_step to tree.
452 (predict_loops): Adjust.
453 (predict_iv_comparison): Perform the computations on double_ints.
455 2013-03-08 Richard Biener <rguenther@suse.de>
457 PR tree-optimization/56570
458 * tree-cfg.c (verify_expr_location_1): Verify locations for
460 * tree-sra.c (create_access_replacement): Strip locations
461 from DECL_DEBUG_EXPRs.
463 2013-03-08 Richard Biener <rguenther@suse.de>
465 * tree-inline.c (expand_call_inline): Do not associate
466 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
467 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
469 2013-03-08 Richard Biener <rguenther@suse.de>
471 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
472 or block changes with -Og. Fix for location / block encoding
473 changes and PHI arguments with locations.
475 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
477 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
479 (struct output_info): Likewise.
480 (register_overhead): Remove bad gcc_assert.
481 (bitmap_find_bit): If there is only a single bitmap element, do not
482 count a miss as a search.
483 (print_statistics): Update for counter type changes.
484 (dump_bitmap_statistics): Likewise. Print headers such that they
485 are properly lined up with the printed counters.
487 2013-03-07 Jakub Jelinek <jakub@redhat.com>
489 PR tree-optimization/56559
490 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
491 check that it has only a single use.
493 2013-03-07 Richard Biener <rguenther@suse.de>
495 * doc/invoke.texi (fwhole-program): Discourage use in combination
498 2013-03-06 Jakub Jelinek <jakub@redhat.com>
500 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
502 PR tree-optimization/56539
503 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
504 instead of GSI_CONTINUE_LINKING as last argument to
505 force_gimple_operand_gsi. Adjust function comment.
507 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
511 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
512 promoted mode, convert the result back to the original mode.
514 2013-03-06 Richard Biener <rguenther@suse.de>
517 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
518 (insert_updated_phi_nodes_compare_uids): New function.
519 (update_ssa): Sort symbols_to_rename after UID before
520 traversing it to insert PHI nodes.
522 2013-03-06 Richard Biener <rguenther@suse.de>
525 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
526 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
529 2013-02-13 Richard Biener <rguenther@suse.de>
532 * varasm.c (output_constant_def_1): Get the decl representing
533 the constant as argument.
534 (output_constant_def): Wrap output_constant_def_1.
535 (make_decl_rtl): Use output_constant_def_1 with the decl
536 representing the constant.
537 (build_constant_desc): Optionally re-use a decl already
538 representing the constant.
539 (tree_output_constant_def): Adjust.
541 2013-03-06 Joey Ye <joey.ye@arm.com>
544 * gcc.c (convert_white_space): New function.
545 (main): Handles white space in function name.
547 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
550 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
551 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
552 to SH_DIV_CALL_TABLE for TARGET_SH2.
553 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
555 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
558 2013-03-05 Sterling Augustine <saugustine@google.com>
559 Cary Coutant <ccoutant@google.com>
562 * dwarf2out.c (resolve_addr): Don't call
563 remove_loc_list_addr_table_entries a second time for the same
566 2013-03-05 Jakub Jelinek <jakub@redhat.com>
569 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
570 (avoid_complex_debug_insns): New function.
571 (expand_debug_locations): Call it.
573 PR rtl-optimization/56484
574 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
575 lifetimes of hard registers on small register class machines.
577 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
579 * config/microblaze/microblaze-protos.h: Rename
580 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
581 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
583 (microblaze_fast_interrupt_function_p): New function.
584 (microblaze_is_interrupt_handler): Rename to
585 microblaze_is_interrupt_variant and add fast_interrupt check.
586 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
587 (save_restore_insns): Likewise.
588 (compute_frame_size): Likewise.
589 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
590 (microblaze_globalize_label): Likewise.
591 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
592 * config/microblaze/microblaze.md: Use wrapper
593 microblaze_is_interrupt_variant.
595 2013-03-05 Kai Tietz <ktietz@redhat.com>
597 * sdbout.c (sdbout_one_type): Switch to current function's section
600 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
602 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
605 2013-03-05 Jakub Jelinek <jakub@redhat.com>
608 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
609 if VALGRIND_GET_VBITS is defined, temporarily make object
610 memory all defined, and restore previous valgrind addressability
611 and definability afterwards. Free this_object at the end.
614 * lra.c (lra): Call lra_clear_live_ranges if live_p,
615 right before calling lra_create_live_ranges, also call it
616 when clearing live_p. Only call lra_clear_live_ranges
617 at the end if live_p.
620 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
622 2013-03-05 Richard Biener <rguenther@suse.de>
624 PR tree-optimization/56521
625 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
628 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
631 * except.h (remove_unreachable_eh_regions): New prototype.
632 * except.c (remove_eh_handler_splicer): New function, split out
633 of remove_eh_handler.
634 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
635 warning about running it on many EH regions one at a time.
636 (remove_unreachable_eh_regions_worker): New function, walk the
637 EH tree in depth-first order and remove non-marked regions.
638 (remove_unreachable_eh_regions): New function.
639 * tree-eh.c (mark_reachable_handlers): New function, split out
640 from remove_unreachable_handlers.
641 (remove_unreachable_handlers): Use mark_reachable_handlers and
642 remove_unreachable_eh_regions.
643 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
644 and remove_unreachable_eh_regions.
646 2013-03-05 Richard Biener <rguenther@suse.de>
649 * loop-init.c (fix_loop_structure): Remove loops in two stages,
650 not freeing them until the end.
652 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
654 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
656 2013-03-05 Richard Biener <rguenther@suse.de>
658 PR tree-optimization/56270
659 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
660 of loads after scheduling an SLP instance.
662 2013-03-05 Jakub Jelinek <jakub@redhat.com>
664 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
666 (check_gcc_parallelize): Run guality.exp as a separate job from
667 vect.exp with unsorted.exp and $(dg_target_exps) separately from
668 struct-layout-1.exp with stackalign.exp.
670 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
673 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
674 load_index sbitmap even if some bit in it isn't set.
677 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
678 (discover_iteration_bound_by_body_walk): Change queues to
679 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
680 spelling in comment. Call safe_push on queues[bound_index] directly.
681 Release queues[queue_index] in every iteration unconditionally.
682 Release bounds vector.
685 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
686 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
687 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
690 2013-03-05 Richard Biener <rguenther@suse.de>
693 * tree-inline.c (remap_blocks_to_null): New function.
694 (expand_call_inline): When expanding a call stmt without
695 an associated block inline remap all callee blocks to NULL.
697 2013-03-05 Jakub Jelinek <jakub@redhat.com>
699 PR rtl-optimization/56494
700 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
701 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
702 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
705 * sel-sched-ir.c (free_sched_pools): Release
706 succs_info_pool.stack[succs_info_pool.max_top] vectors too
707 if succs_info_pool.max_top isn't -1.
710 * opts.c (opts_obstack, opts_concat): Moved to...
711 * opts-common.c (opts_obstack, opts_concat): ... here.
713 2013-03-04 Jakub Jelinek <jakub@redhat.com>
716 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
718 2013-03-04 Martin Jambor <mjambor@suse.cz>
720 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
721 all appropriate places.
723 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
725 PR tree-optimization/56424
726 * ipa-split.c (split_function): Do not set the RSO flag if result is
727 not by reference and its type is a register type.
729 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
731 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
732 (microblaze_legitimate_pic_operand): Likewise
733 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
734 new function microblaze_legitimate_pic_operand
735 * config/microblaze/microblaze-protos.h
736 (microblaze_legitimate_pic_operand): Declare.
738 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
740 * config/microblaze/predicates.md (call_insn_simple_operand):
741 New predicate for supported rtx code types.
742 * config/microblaze/microblaze.md (call_internal1): Use
743 call_insn_simple_operand predicate.
745 2013-03-04 Jakub Jelinek <jakub@redhat.com>
748 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
749 partitions.ordered_remove.
752 * tree-vect-stmts.c (vectorizable_conversion): Don't call
753 vec_oprnds0.create (1) for modifier == NONE.
756 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
757 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
758 vec_oprnds1 right before pushing anything to it for
762 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
763 set nbbs to 0 instead of having separate code path.
764 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
765 instead of false as last argument if returning NULL.
767 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
769 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
770 the attribute is now called "target" instead of "option".
771 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
772 * doc/tm.texi.in (Target Attributes): Likewise document the correct
773 attribute/pragma name for TARGET_OPTION_VALID_P and
774 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
775 * doc/tm.texi: Regenerated.
777 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
779 * config/microblaze/microblaze.c:
780 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
781 * config/microblaze/microblaze.h: Add -mxl-reorder to
783 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
784 instructions emitted if TARGET_REORDER.
785 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
786 or 0 for -m/-mno case, but initialises as 2 to detect default use case
789 2013-03-01 Xinliang David Li <davidxl@google.com>
791 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
794 2013-03-01 Jakub Jelinek <jakub@redhat.com>
797 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
798 vector even when returning true. Fix up function comment formatting.
801 * ira-build.c (ira_loop_nodes_count): New variable.
802 (create_loop_tree_nodes): Initialize it.
803 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
806 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
807 method on dr_chain and result_chain.
808 * tree-vect-stmts.c (vectorizable_store): Only call
809 result_chain.create if j == 0.
812 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
813 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
814 before overwriting it.
816 2013-03-01 Tobias Burnus <burnus@net-b.de>
818 * doc/extended.texi (C Extensions): Change order in @menu
820 (Other MIPS Built-in Functions): Move last MIPS entry before
821 "picoChip Built-in Functions".
822 (SH Built-in Functions): Move after RX Built-in Functions.
823 * doc/gcc.texi (Introduction): Change order in @menu
825 * doc/md.texi (Constraints): Ditto.
826 * gty.texi (Type Information): Ditto.
827 (User-provided marking routines for template types): Make
829 * doc/invoke.texi (AArch64 Options): Move before
830 "Adapteva Epiphany Options".
832 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
833 Jakub Jelinek <jakub@redhat.com>
836 * asan.c (gate_asan): Lookup no_sanitize_address instead of
837 no_address_safety_analysis attribute.
838 * doc/extend.texi (no_address_safety_attribute): Rename to
839 no_sanitize_address attribute, mention no_address_safety_analysis
840 attribute as deprecated alias.
842 2013-02-28 Jakub Jelinek <jakub@redhat.com>
845 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
846 type to vec<vec<tree> > *.
847 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
848 to be vec<tree> instead of vec<tree> *, set vec_defs
849 to vNULL and call vec_defs.create (number_of_vects), adjust other
851 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
852 vectorizable_condition): Adjust vect_get_slp_defs callers.
854 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
856 * config/aarch64/aarch64.c
857 (aarch64_float_const_representable): Remove unused variable.
859 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
861 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
863 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
865 * config/aarch64/aarch64-builtins.c
866 (aarch64_init_simd_builtins): Make static.
868 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
870 * config/aarch64/aarch64.c
871 (aarch64_simd_make_constant): Make static.
873 2013-02-28 Martin Jambor <mjambor@suse.cz>
875 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
876 with no initialization to the RHS of debug statements.
878 2013-02-28 Martin Jambor <mjambor@suse.cz>
880 PR tree-optimization/56294
881 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
883 (get_access_replacement): Do not call create_access_replacement.
884 Assert a replacement exists.
885 (get_repl_default_def_ssa_name): Create the replacement declaration
888 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
890 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
893 2013-02-28 Marek Polacek <polacek@redhat.com>
895 PR rtl-optimization/56466
896 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
897 if we're changing a loop.
898 (peel_loops_completely): Likewise.
900 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
903 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
905 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
908 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
909 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
910 INTX_FTYPE_FX, FX_FTYPE_INTX.
911 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
913 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
915 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
916 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
917 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
918 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
919 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
920 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
921 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
922 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
923 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
924 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
925 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
926 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
927 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
928 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
929 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
930 (avrxmega6): Increase max flash segments from 5 to 6.
931 * config/avr/t-multilib: Regenerate.
932 * config/avr/avr-tables.opt: Regenerate.
933 * doc/avr-mmcu.texi: Regenerate.
935 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
937 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
938 (avr_device_to_arch): Rename to avr_device_to_ld.
939 (avr_device_to_as): New prototype.
940 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
941 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
942 * config/avr/driver-avr.c (avr_device_to_as): New.
943 (avr_device_to_arch): Rename to avr_device_to_ld.
945 2013-02-27 Jakub Jelinek <jakub@redhat.com>
948 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
949 method on dr_chain and result_chain.
952 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
953 pointer_set_destroy on not_executed_last_iteration.
956 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
959 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
960 FOR_EACH_DEFINED_FUNCTION when freeing state.
963 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
965 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
969 * ipa-cp.c (decide_whether_version_node): Call vec_free on
970 known_aggs[i].items and release known_aggs vector.
973 * ipa-reference.c (propagate): Free node_info even for alias nodes.
975 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
977 * config/microblaze/microblaze.c (microblaze_emit_compare):
978 Use xor for EQ/NE comparisions.
979 * config/microblaze/microblaze.md (cstoresf4): Add constraints
980 (cbranchsf4): Adjust operator to comparison_operator.
982 2013-02-27 Jakub Jelinek <jakub@redhat.com>
985 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
987 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
988 vec_safe_push, always update *slot.
989 (redirect_edge_var_map_clear): Use vec_free.
990 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
991 (free_var_map_entry): Use vec_free.
992 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
993 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
995 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
998 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
999 when the may_trap_p bit of the exprs being merged differs.
1000 Reorder tests for speculativeness in the logical and operator.
1002 2013-02-27 Jakub Jelinek <jakub@redhat.com>
1004 * incpath.c (add_standard_paths): Use reconcat instead of concat
1005 where appropriate and avoid leaking memory.
1007 * opts.h: Include obstack.h.
1008 (opts_concat): New prototype.
1009 (opts_obstack): New declaration.
1010 * opts.c (opts_concat): New function.
1011 (opts_obstack): New variable.
1012 (init_options_struct): Call gcc_init_obstack on opts_obstack.
1013 (finish_options): Use opts_concat instead of concat
1014 and XOBNEWVEC instead of XNEWVEC.
1015 * opts-common.c (generate_canonical_option, decode_cmdline_option,
1016 generate_option): Likewise.
1017 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
1018 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
1021 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
1022 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
1024 2013-02-26 Jakub Jelinek <jakub@redhat.com>
1027 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
1029 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
1031 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
1032 (arm_block_move_unaligned_straight): Likewise.
1033 (arm_adjust_block_mem): Likewise.
1035 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
1038 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
1039 temp, cond and label.
1040 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
1043 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
1044 * config/c6x/c6x.h (dbx_register_map): Update declaration.
1047 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
1048 of prologue/epilogue functions.
1051 * config/tilegx/tilegx.c (tilegx_expand_prologue):
1052 Remove unused variable cfa_offset.
1053 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
1056 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
1057 type promotion to unsigned.
1060 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
1061 for HOST_WIDE_INT of 32 bit / same size as int.
1062 (arm_block_move_unaligned_straight): Likewise.
1063 (arm_adjust_block_mem): Likewise.
1066 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
1069 2013-02-26 Marek Polacek <polacek@redhat.com>
1071 PR tree-optimization/56426
1072 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
1074 2013-02-26 Richard Biener <rguenther@suse.de>
1077 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
1078 unused variable loops.
1080 2013-02-26 Jakub Jelinek <jakub@redhat.com>
1082 PR tree-optimization/56448
1083 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
1084 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
1085 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
1086 later operands of the references, or even first operand for
1087 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
1089 PR tree-optimization/56443
1090 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
1091 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
1092 to type_for_mode langhook.
1094 2013-02-25 Matt Turner <mattst88@gmail.com>
1096 * doc/invoke.texi: Document r4700.
1098 2013-02-25 Richard Biener <rguenther@suse.de>
1100 PR tree-optimization/56175
1101 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
1103 (simplify_bitwise_binary): ... here. Also guard the conversion
1104 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
1106 2013-02-25 Catherine Moore <clm@codesourcery.com>
1109 2013-02-24 Catherine Moore <clm@codesourcery.com>
1110 Maciej W. Rozycki <macro@codesourcery.com>
1111 Tom de Vries <tom@codesourcery.com>
1112 Nathan Sidwell <nathan@codesourcery.com>
1113 Iain Sandoe <iain@codesourcery.com>
1114 Nathan Froyd <froydnj@codesourcery.com>
1115 Chao-ying Fu <fu@mips.com>
1117 * doc/extend.texi: (micromips, nomicromips, nocompression):
1118 Document new function attributes.
1119 * doc/invoke.texi (minterlink-compressed, mmicromips,
1120 m14k, m14ke, m14kec): Document new options.
1121 (minterlink-mips16): Update documentation.
1122 * doc/md.texi (ZC, ZD): Document new constraints.
1123 * configure.ac (gcc_cv_as_micromips): Check if linker
1124 supports the .set micromips directive.
1125 * configure: Regenerate.
1126 * config.in: Regenerate.
1127 * config/mips/mips-tables.opt: Regenerate.
1128 * config/mips/micromips.md: New file.
1129 * constraints.md (ZC, AD): New constraints.
1130 * config/mips/predicates.md (movep_src_register): New predicate.
1131 (movep_src_operand): New predicate.
1132 (non_volatile_mem_operand): New predicate.
1133 * config/mips/mips.md (multimem): New type.
1134 (length): Differentiate between 17-bit and 18-bit branch offsets.
1135 (MOVEP1, MOVEP2): New mode iterator.
1136 (mov_<load>l): Use ZC constraint.
1137 (mov_<load>r): Likewise.
1138 (mov_<store>l): Likewise.
1139 (mov_<store>r): Likewise.
1140 (*branch_equality<mode>_inverted): Add microMIPS support.
1141 (*branch_equality<mode>): Likewise.
1142 (*jump_absolute): Likewise.
1143 (indirect_jump_<mode>): Likewise.
1144 (tablejump_<mode>): Likewise.
1145 (<optab>_internal): Likewise.
1146 (sibcall_internal): Likewise.
1147 (sibcall_value_internal): Likewise.
1148 (prefetch): Use constraint ZD.
1149 * config/mips/mips.opt (minterlink-compressed): New option.
1150 (minterlink-mips16): Now an alias for minterlink-compressed.
1151 (mmicromips): New option.
1152 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1153 (compare_and_swap_12): Likewise.
1154 (sync_add<mode>): Likewise.
1155 (sync_<optab>_12): Likewise.
1156 (sync_old_<optab>_12): Likewise.
1157 (sync_new_<optab>_12): Likewise.
1158 (sync_nand_12): Likewise.
1159 (sync_old_nand_12): Likewise.
1160 (sync_new_nand_12): Likewise.
1161 (sync_sub<mode>): Likewise.
1162 (sync_old_add<mode>): Likewise.
1163 (sync_old_sub<mode>): Likewise.
1164 (sync_new_add<mode>): Likewise.
1165 (sync_new_sub<mode>): Likewise.
1166 (sync_<optab><mode>): Likewise.
1167 (sync_old_<optab><mode>): Likewise.
1168 (sync_new_<optab><mode>): Likewise.
1169 (sync_nand<mode>): Likewise.
1170 (sync_old_nand<mode>): Likewise.
1171 (sync_new_nand<mode>): Likewise.
1172 (sync_lock_test_and_set<mode>): Likewise.
1173 (test_and_set_12): Likewise.
1174 (atomic_compare_and_swap<mode>): Likewise.
1175 (atomic_exchange<mode>_llsc): Likewise.
1176 (atomic_fetch_add<mode>_llsc): Likewise.
1177 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1178 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1179 (umips_save_restore_pattern_p): Likewise.
1180 (umips_load_store_pair_p): Likewise.
1181 (umips_output_load_store_pair): Likewise.
1182 (umips_movep_target_p): Likewise.
1183 (umips_12bit_offset_address_p): Likewise.
1184 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1185 (mips_base_mips16): Rename this...
1186 (mips_base_compression_flags): ...to this. Update all uses.
1187 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1188 (mips_mips16_decl_p): Delete.
1189 (mips_nomips16_decl_p): Delete.
1190 (mips_get_compress_on_flags): New function.
1191 (mips_get_compress_off_flags): New function.
1192 (mips_get_compress_mode): New function.
1193 (mips_get_compress_on_name): New function.
1194 (mips_get_compress_off_name): New function.
1195 (mips_insert_attributes): Support multiple compression types.
1196 (mips_merge_decl_attributes): Likewise.
1197 (umips_12bit_offset_address_p): New function.
1198 (mips_start_function_definition): Emit .set micromips directive.
1199 (mips_call_may_need_jalx_p): New function.
1200 (mips_function_ok_for_sibcall): Add microMIPS support.
1201 (mips_print_operand_punctuation): Support short delay slots and
1203 (umips_swm_mask, umips_swm_encoding): New.
1204 (umips_build_save_restore): New function.
1205 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1206 (was_mips16_p): Remove.
1207 (old_compression_mode): New.
1208 (mips_set_compression_mode): New function.
1209 (mips_set_current_function): Add microMIPS support.
1210 (mips_option_override): Likewise.
1211 (umips_save_restore_pattern_p): New function.
1212 (umips_output_save_restore): New function.
1213 (umips_load_store_pair_p_1): New function.
1214 (umips_load_store_pair_p): New function.
1215 (umips_output_load_store_pair_1): New function.
1216 (umips_output_load_store_pair): New function.
1217 (umips_movep_target_p) New function.
1218 (mips_prepare_pch_save): Add microMIPS support.
1219 * config/mips/mips.h (TARGET_COMPRESSION): New.
1220 (TARGET_CPU_CPP_BUILTINS): Update macro
1221 to use new compression flags and to support microMIPS.
1222 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1223 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1224 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1225 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1226 (ASM_SPEC): Support mmicromips and mno-micromips.
1227 (M16STORE_REG_P): New macro.
1228 (MIPS_CALL): Support TARGET_MICROMIPS.
1229 (MICROMIPS_J): New macro.
1230 (mips_base_mips16): Rename this...
1231 (mips_base_compression_flags): ...to this.
1232 (UMIPS_12BIT_OFFSET_P): New macro.
1233 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1234 (MULTILIB_DIRNAMES): Likewise.
1236 2013-02-25 Tom de Vries <tom@codesourcery.com>
1238 PR rtl-optimization/56131
1239 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
1240 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
1241 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
1243 2013-02-25 Tobias Burnus <burnus@net-b.de>
1245 * doc/invoke.texi (-fsanitize=): Move from optimization
1246 to debugging options.
1248 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
1250 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
1252 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
1253 Alexander Monakov <amonakov@ispras.ru>
1256 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
1257 flush pending lists also on non-jumps. Adjust comment.
1259 2013-02-24 Catherine Moore <clm@codesourcery.com>
1260 Maciej W. Rozycki <macro@codesourcery.com>
1261 Tom de Vries <tom@codesourcery.com>
1262 Nathan Sidwell <nathan@codesourcery.com>
1263 Iain Sandoe <iain@codesourcery.com>
1264 Nathan Froyd <froydnj@codesourcery.com>
1265 Chao-ying Fu <fu@mips.com>
1267 * doc/extend.texi: (micromips, nomicromips, nocompression):
1268 Document new function attributes.
1269 * doc/invoke.texi (minterlink-compressed, mmicromips,
1270 m14k, m14ke, m14kec): Document new options.
1271 (minterlink-mips16): Update documentation.
1272 * doc/md.texi (ZC, ZD): Document new constraints.
1273 * configure.ac (gcc_cv_as_micromips): Check if linker
1274 supports the .set micromips directive.
1275 * configure: Regenerate.
1276 * config.in: Regenerate.
1277 * config/mips/mips-tables.opt: Regenerate.
1278 * config/mips/micromips.md: New file.
1279 * constraints.md (ZC, AD): New constraints.
1280 * config/mips/predicates.md (movep_src_register): New predicate.
1281 (movep_src_operand): New predicate.
1282 (non_volatile_mem_operand): New predicate.
1283 * config/mips/mips.md (multimem): New type.
1284 (length): Differentiate between 17-bit and 18-bit branch offsets.
1285 (MOVEP1, MOVEP2): New mode iterator.
1286 (mov_<load>l): Use ZC constraint.
1287 (mov_<load>r): Likewise.
1288 (mov_<store>l): Likewise.
1289 (mov_<store>r): Likewise.
1290 (*branch_equality<mode>_inverted): Add microMIPS support.
1291 (*branch_equality<mode>): Likewise.
1292 (*jump_absolute): Likewise.
1293 (indirect_jump_<mode>): Likewise.
1294 (tablejump_<mode>): Likewise.
1295 (<optab>_internal): Likewise.
1296 (sibcall_internal): Likewise.
1297 (sibcall_value_internal): Likewise.
1298 (prefetch): Use constraint ZD.
1299 * config/mips/mips.opt (minterlink-compressed): New option.
1300 (minterlink-mips16): Now an alias for minterlink-compressed.
1301 (mmicromips): New option.
1302 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1303 (compare_and_swap_12): Likewise.
1304 (sync_add<mode>): Likewise.
1305 (sync_<optab>_12): Likewise.
1306 (sync_old_<optab>_12): Likewise.
1307 (sync_new_<optab>_12): Likewise.
1308 (sync_nand_12): Likewise.
1309 (sync_old_nand_12): Likewise.
1310 (sync_new_nand_12): Likewise.
1311 (sync_sub<mode>): Likewise.
1312 (sync_old_add<mode>): Likewise.
1313 (sync_old_sub<mode>): Likewise.
1314 (sync_new_add<mode>): Likewise.
1315 (sync_new_sub<mode>): Likewise.
1316 (sync_<optab><mode>): Likewise.
1317 (sync_old_<optab><mode>): Likewise.
1318 (sync_new_<optab><mode>): Likewise.
1319 (sync_nand<mode>): Likewise.
1320 (sync_old_nand<mode>): Likewise.
1321 (sync_new_nand<mode>): Likewise.
1322 (sync_lock_test_and_set<mode>): Likewise.
1323 (test_and_set_12): Likewise.
1324 (atomic_compare_and_swap<mode>): Likewise.
1325 (atomic_exchange<mode>_llsc): Likewise.
1326 (atomic_fetch_add<mode>_llsc): Likewise.
1327 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1328 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1329 (umips_save_restore_pattern_p): Likewise.
1330 (umips_load_store_pair_p): Likewise.
1331 (umips_output_load_store_pair): Likewise.
1332 (umips_movep_target_p): Likewise.
1333 (umips_12bit_offset_address_p): Likewise.
1334 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1335 (mips_base_mips16): Rename this...
1336 (mips_base_compression_flags): ...to this. Update all uses.
1337 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1338 (mips_mips16_decl_p): Delete.
1339 (mips_nomips16_decl_p): Delete.
1340 (mips_get_compress_on_flags): New function.
1341 (mips_get_compress_off_flags): New function.
1342 (mips_get_compress_mode): New function.
1343 (mips_get_compress_on_name): New function.
1344 (mips_get_compress_off_name): New function.
1345 (mips_insert_attributes): Support multiple compression types.
1346 (mips_merge_decl_attributes): Likewise.
1347 (umips_12bit_offset_address_p): New function.
1348 (mips_start_function_definition): Emit .set micromips directive.
1349 (mips_call_may_need_jalx_p): New function.
1350 (mips_function_ok_for_sibcall): Add microMIPS support.
1351 (mips_print_operand_punctuation): Support short delay slots and
1353 (umips_swm_mask, umips_swm_encoding): New.
1354 (umips_build_save_restore): New function.
1355 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1356 (was_mips16_p): Remove.
1357 (old_compression_mode): New.
1358 (mips_set_compression_mode): New function.
1359 (mips_set_current_function): Add microMIPS support.
1360 (mips_option_override): Likewise.
1361 (umips_save_restore_pattern_p): New function.
1362 (umips_output_save_restore): New function.
1363 (umips_load_store_pair_p_1): New function.
1364 (umips_load_store_pair_p): New function.
1365 (umips_output_load_store_pair_1): New function.
1366 (umips_output_load_store_pair): New function.
1367 (umips_movep_target_p) New function.
1368 (mips_prepare_pch_save): Add microMIPS support.
1369 * config/mips/mips.h (TARGET_COMPRESSION): New.
1370 (TARGET_CPU_CPP_BUILTINS): Update macro
1371 to use new compression flags and to support microMIPS.
1372 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1373 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1374 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1375 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1376 (ASM_SPEC): Support mmicromips and mno-micromips.
1377 (M16STORE_REG_P): New macro.
1378 (MIPS_CALL): Support TARGET_MICROMIPS.
1379 (MICROMIPS_J): New macro.
1380 (mips_base_mips16): Rename this...
1381 (mips_base_compression_flags): ...to this.
1382 (UMIPS_12BIT_OFFSET_P): New macro.
1383 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1384 (MULTILIB_DIRNAMES): Likewise.
1386 2013-02-24 Jakub Jelinek <jakub@redhat.com>
1389 * target-globals.c (save_target_globals): For init_reg_sets and
1390 target_reinit remporarily set this_fn_optabs to this_target_optabs.
1392 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
1394 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
1395 * config/aarch64/t-aarch64
1396 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
1398 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
1401 * lra-constraints.c (process_alt_operands): Reload operand
1402 conflicting with earlier clobber only if no more other conflicting
1405 2013-02-22 Jakub Jelinek <jakub@redhat.com>
1408 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
1409 if not linking a shared library.
1411 2013-02-22 Seth LaForge <sethml@google.com>
1413 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
1415 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
1417 * config/arm/arm.md (split for extendsidi): Update condition.
1418 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
1419 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
1420 (qhs_zextenddi_cstr): Likewise.
1422 2013-02-21 Jakub Jelinek <jakub@redhat.com>
1425 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
1426 avoid signed wrapping.
1427 (expand_mult): Handle properly multiplication by
1428 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
1429 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
1430 in the compiler if coeff is HOST_WIDE_INT_MIN.
1431 (expand_divmod): Don't make ext_op1 static, change it's type to
1432 uhwi. Avoid undefined behavior in -INTVAL (op1).
1434 PR rtl-optimization/50339
1435 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
1437 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
1438 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
1439 into splitting_ashiftrt field.
1440 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
1442 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
1445 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
1448 * trans-mem.c (execute_tm_mark): Do not expand transactions that
1449 are sure to go irrevocable.
1451 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
1453 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
1454 scalars are valid operands.
1456 2013-02-21 Martin Jambor <mjambor@suse.cz>
1458 PR tree-optimization/56310
1459 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
1460 only matching indices and non-negative final offsets.
1461 (intersect_aggregates_with_edge): Pass src_idx to
1462 agg_replacements_to_vector. Pass src_idx insstead of index to
1463 intersect_with_agg_replacements.
1465 2013-02-21 Martin Jambor <mjambor@suse.cz>
1467 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
1468 instead of hard-wired defaults.
1470 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
1472 * doc/invoke.texi (MIPS Options): Update documentation of the
1473 floating-point multiply-accumulate instruction restrictions.
1475 2013-02-21 Kostya Serebryany <kcc@google.com>
1477 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
1478 asan_shadow_offset on x86_64 linux.
1480 2013-02-21 Richard Biener <rguenther@suse.de>
1482 PR tree-optimization/56415
1484 2013-02-11 Richard Biener <rguenther@suse.de>
1486 PR tree-optimization/56273
1487 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
1490 2013-02-21 Jakub Jelinek <jakub@redhat.com>
1493 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
1497 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
1498 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
1500 2013-02-20 Jan Hubicka <jh@suse.cz>
1502 PR tree-optimization/56265
1503 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
1504 when target is referenced for first time.
1506 2013-02-20 Richard Biener <rguenther@suse.de>
1508 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
1509 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1510 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
1511 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
1512 not return anything.
1513 (rename_ssa_copies): Do not remove unused locals.
1514 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
1515 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
1516 * passes.c (execute_function_todo): Do not schedule unused locals
1517 removal if cleanup_tree_cfg did something.
1518 * tree-ssa-live.c (remove_unused_locals): Dump statistics
1519 about the number of removed locals.
1521 2013-02-20 Richard Biener <rguenther@suse.de>
1523 PR tree-optimization/56398
1524 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
1526 2013-02-20 Martin Jambor <mjambor@suse.cz>
1528 PR tree-optimization/55334
1529 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
1530 restricted pointers to arrays.
1532 2013-02-20 Richard Biener <rguenther@suse.de>
1533 Jakub Jelinek <jakub@redhat.com>
1535 PR tree-optimization/56396
1536 * tree-ssa-ccp.c (n_const_val): New static variable.
1537 (get_value): Return NULL for SSA names we don't have a lattice
1539 (ccp_initialize): Initialize n_const_val.
1540 * tree-ssa-copy.c (n_copy_of): New static variable.
1541 (init_copy_prop): Initialize n_copy_of.
1542 (get_value): Return NULL_TREE for SSA names we don't have a
1545 2013-02-20 Martin Jambor <mjambor@suse.cz>
1547 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
1549 2013-02-20 Richard Biener <rguenther@suse.de>
1551 * genpreds.c (write_lookup_constraint): Do not compare first
1552 letter of the constraint again.
1554 2013-02-20 Richard Biener <rguenther@suse.de>
1556 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
1558 (get_use_iv_cost): Terminate hashtable walk when coming across
1561 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
1563 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
1564 reassociation for avx2 targets.
1566 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1568 * config/microblaze/microblaze.c: microblaze_has_clz = 0
1569 Add version check for v8.10.a to enable microblaze_has_clz
1570 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
1571 version and TARGET_PATTERN_COMPARE check
1572 * config/microblaze/microblaze.md: New clzsi2 instruction
1574 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1576 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
1577 function before branching.
1579 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
1581 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
1583 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
1585 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
1588 * sel-sched.c: Include ira.h.
1589 (implicit_clobber_conflict_p): New function.
1590 (moveup_expr): Use it.
1591 * Makefile.in (sel-sched.o): Depend on ira.h.
1593 2013-02-19 Richard Biener <rguenther@suse.de>
1595 PR tree-optimization/56384
1596 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
1597 (vn_hash_type): Split out from ...
1598 (vn_hash_constant_with_type): ... here.
1599 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
1600 (vn_phi_eq): Compare types from vn_phi_s structure.
1601 (vn_phi_lookup): Populate vn_phi_s type.
1602 (vn_phi_insert): Likewise.
1604 2013-02-19 Jakub Jelinek <jakub@redhat.com>
1606 PR tree-optimization/56350
1607 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
1608 if haven't found reduction or nested cycle operand, rather than
1609 asserting we must find it.
1611 PR tree-optimization/56381
1612 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
1615 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
1616 Jakub Jelinek <jakub@redhat.com>
1619 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
1620 (swap_optab_enable): Same.
1621 (init_all_optabs): Use argument instead of global.
1622 * tree.h (struct tree_optimization_option): New field target_optabs.
1623 * expr.h (init_all_optabs): Add argument to prototype.
1624 (TREE_OPTIMIZATION_OPTABS): New.
1625 (save_optabs_if_changed): Protoize.
1626 * optabs.h: Declare this_fn_optabs.
1627 * optabs.c (save_optabs_if_changed): New.
1628 Declare this_fn_optabs.
1629 (init_optabs): Add argument to init_all_optabs() call.
1630 * function.c (invoke_set_current_function_hook): Handle per
1632 * function.h (struct function): New field optabs.
1633 * config/mips/mips.c (mips_set_mips16_mode): Handle when
1634 optimization_current_node has changed.
1635 * target-globals.h (save_target_globals_default_opts): Protoize.
1636 * target-globals.c (save_target_globals_default_opts): New.
1638 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1641 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
1642 registers %fr12 and %fr12R as call used.
1645 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
1646 and HImode, require all displacements to be an integer multiple of
1648 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
1649 only allow QImode and HImode when reload is in progress and strict is
1650 true. Likewise for symbolic addresses. Use base14_operand to check
1651 displacements in REG+BASE addresses.
1653 2013-02-18 Richard Biener <rguenther@suse.de>
1655 PR tree-optimization/56366
1656 * tree-vect-loop.c (get_initial_def_for_induction): Properly
1657 handle sign-conversion of outer-loop initial induction value.
1659 2013-02-18 Richard Biener <rguenther@suse.de>
1662 * cfghooks.c (merge_blocks): If we merge a latch into another
1663 block adjust references to it.
1664 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
1665 (verify_loop_structure): Verify that a recorded latch is in fact
1668 2013-02-18 Richard Biener <rguenther@suse.de>
1670 PR tree-optimization/56321
1671 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
1672 order SSA name release and virtual operand unlinking.
1674 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1676 * config/microblaze/microblaze.md (save_stack_block): Define.
1677 (restore_stack_block): Likewise.
1679 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1681 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
1682 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
1683 * config/microblaze/microblaze.c (microblaze_option_override):
1684 Bail out early for PIC modes when target does not support PIC.
1686 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1688 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
1689 Replace with a microblaze version.
1690 (microblaze_trampoline_init): Adapt for microblaze.
1691 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
1694 2013-02-16 Jakub Jelinek <jakub@redhat.com>
1695 Dodji Seketeli <dodji@redhat.com>
1698 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
1699 (instrument_mem_region_access): Do not forget to always put
1700 instrumentation of the of 'base' and 'base + len' in a "if (len !=
1701 0) statement, even for cases where either 'base' or 'base + len'
1702 are not instrumented -- because they have been previously
1703 instrumented. Simplify the logic by putting all the statements
1704 instrument 'base + len' inside a sequence, and then insert that
1705 sequence right before the current insertion point. Then, to
1706 instrument 'base + len', just get an iterator on that statement.
1707 And do not forget to update the pointer to iterator the function
1708 received as argument.
1710 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
1712 PR rtl-optimization/56348
1713 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
1715 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
1717 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
1718 (clean_graph_dump_file): Pass base to start_graph_dump.
1720 2013-02-14 Richard Henderson <rth@redhat.com>
1723 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
1725 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
1727 * collect2-aix.h: Define F_LOADONLY.
1729 2013-02-14 Richard Biener <rguenther@suse.de>
1732 * varasm.c (output_constant_def_1): Get the decl representing
1733 the constant as argument.
1734 (output_constant_def): Wrap output_constant_def_1.
1735 (make_decl_rtl): Use output_constant_def_1 with the decl
1736 representing the constant.
1737 (build_constant_desc): Optionally re-use a decl already
1738 representing the constant.
1739 (tree_output_constant_def): Adjust.
1741 2013-02-14 Dodji Seketeli <dodji@redhat.com>
1744 * asan.c (instrument_builtin_call): Really put the length of the
1745 second source argument into src1_len.
1747 2013-02-13 Jakub Jelinek <jakub@redhat.com>
1749 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
1750 argument. If it is false, don't create edge from then_bb to
1752 (insert_if_then_before_iter): Pass true to it.
1753 (build_check_stmt): Pass false to it.
1754 (transform_statements): Flush hash table only on extended basic
1755 block boundaries, rather than at the beginning of every bb.
1756 Don't flush hash table on nonfreeing_call_p calls.
1757 * tree-flow.h (nonfreeing_call_p): New prototype.
1758 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
1760 2013-02-13 David S. Miller <davem@davemloft.net>
1762 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
1764 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
1767 * ira.c (max_regno_before_ira): Move from ...
1769 (fix_reg_equiv_init): Use max_regno_before_ira instead of
1772 2013-02-13 Jakub Jelinek <jakub@redhat.com>
1774 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
1776 2013-02-13 Richard Biener <rguenther@suse.de>
1779 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
1780 globals in MEM_REFs.
1782 2013-02-13 Richard Biener <rguenther@suse.de>
1784 * loop-init.c (loop_optimizer_init): Clear loop state when
1785 re-initializing preserved loops.
1786 * loop-unswitch.c (unswitch_single_loop): Return whether
1787 we unswitched the loop. Do not verify loop state here.
1788 (unswitch_loops): When we unswitched a loop discover new loops.
1790 2013-02-13 Kostya Serebryany <kcc@google.com>
1792 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
1794 * sanitizer.def: Rename __asan_init to __asan_init_v1.
1796 2013-02-12 Dodji Seketeli <dodji@redhat.com>
1798 Avoid instrumenting duplicated memory access in the same basic block
1799 * Makefile.in (asan.o): Add new dependency on hash-table.h
1800 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
1801 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
1802 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
1803 (free_mem_ref_resources, has_mem_ref_been_instrumented)
1804 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
1805 (get_mem_ref_of_assignment): New functions.
1806 (get_mem_refs_of_builtin_call): Extract from
1807 instrument_builtin_call and tweak a little bit to make it fit with
1809 (instrument_builtin_call): Use the new
1810 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
1811 of is_gimple_builtin_call.
1812 (instrument_derefs, instrument_mem_region_access): Insert the
1813 instrumented memory reference into the hash table.
1814 (maybe_instrument_assignment): Renamed instrument_assignment into
1815 this, and change it to advance the iterator when instrumentation
1816 actually happened and return true in that case. This makes it
1817 homogeneous with maybe_instrument_assignment, and thus give a
1818 chance to callers to be more 'regular'.
1819 (transform_statements): Clear the memory reference hash table
1820 whenever we enter a new BB, when we cross a function call, or when
1821 we are done transforming statements. Use
1822 maybe_instrument_assignment instead of instrumentation. No more
1823 need to special case maybe_instrument_assignment and advance the
1824 iterator after calling it; it's now handled just like
1825 maybe_instrument_call. Update comment.
1827 2013-02-13 Richard Biener <rguenther@suse.de>
1829 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1830 Fix loop discovery code.
1832 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
1835 * lra-constraints.c (process_alt_operands): Match early clobber
1836 operand with itself. Check conflicts with earlyclobber only if
1837 the operand is not reloaded. Prefer to reload conflicting operand
1838 if earlyclobber and matching operands are the same.
1840 2013-02-12 Richard Biener <rguenther@suse.de>
1843 * lto-streamer-out.c (write_symbol): Do not output symbols
1844 for hard register variables.
1846 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
1849 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
1850 (umulsidi3_insn, mulsidi3_insn): New insns.
1852 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
1854 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
1855 (struct tune_params): Add vec_costs field.
1856 * config/arm/arm.c (arm_builtin_vectorization_cost)
1857 (arm_add_stmt_cost): New functions.
1858 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
1859 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
1860 (arm_default_vec_cost): New struct of type cpu_vec_costs.
1861 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
1862 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
1863 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
1864 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
1866 2013-02-12 Richard Biener <rguenther@suse.de>
1869 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
1870 decls again if possible.
1872 2013-02-12 Richard Biener <rguenther@suse.de>
1875 * tree-ssa.c (verify_ssa_name): Fix check, move
1876 SSA_NAME_IN_FREE_LIST check up.
1878 2013-02-12 Jakub Jelinek <jakub@redhat.com>
1879 Steven Bosscher <steven@gcc.gnu.org>
1881 PR rtl-optimization/56151
1882 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
1883 equal to op0 or op1, and last_insn pattern is CODE operation
1884 with MEM dest and one of the operands matches that MEM.
1886 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
1888 * doc/extend.texi: Document Function Multiversioning and "default"
1889 parameter string to target attribute.
1890 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
1891 target attribute parameter is "default".
1892 (ix86_compare_version_priority): Remove checks for target attribute.
1893 (ix86_mangle_function_version_assembler_name): Change error to sorry.
1894 Remove check for target attribute equal to NULL. Add assert.
1895 (ix86_generate_version_dispatcher_body): Change error to sorry.
1897 2013-02-11 Iain Sandoe <iain@codesourcery.com>
1898 Jack Howarth <howarth@bromo.med.uc.edu>
1899 Patrick Marlier <patrick.marlier@gmail.com>
1902 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
1903 define ENDFILE_SPEC as TM_DESTRUCTOR.
1904 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
1906 2013-02-11 Alexander Potapenko <glider@google.com>
1907 Jack Howarth <howarth@bromo.med.uc.edu>
1908 Jakub Jelinek <jakub@redhat.com>
1911 * config/darwin.c (cdtor_record): Rename ctor_record.
1912 (sort_cdtor_records): Rename sort_ctor_records.
1913 (finalize_dtors): New routine to sort destructors by
1914 priority before use in assemble_integer.
1915 (machopic_asm_out_destructor): Use finalize_dtors if needed.
1917 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
1919 PR rtl-optimization/56275
1920 * simplify-rtx.c (avoid_constant_pool_reference): Check that
1921 offset is non-negative and less than cmode size before
1922 calling simplify_subreg.
1924 2013-02-11 Richard Biener <rguenther@suse.de>
1926 PR tree-optimization/56264
1927 * cfgloop.h (fix_loop_structure): Adjust prototype.
1928 * loop-init.c (fix_loop_structure): Return the number of
1929 newly discovered loops.
1930 * tree-cfgcleanup.c (repair_loop_structures): When new loops
1931 are discovered, do a full loop-closed SSA rewrite.
1933 2013-02-11 Richard Biener <rguenther@suse.de>
1935 PR tree-optimization/56273
1936 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
1938 (check_array_ref): Fix missing newline in dumps.
1939 (search_for_addr_array): Likewise.
1941 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
1943 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
1945 2013-02-09 Jakub Jelinek <jakub@redhat.com>
1948 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
1950 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
1952 PR rtl-optimization/56246
1953 * lra-constraints.c (simplify_operand_subreg): Try to reuse
1955 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
1956 constraints are satisfied.
1958 2013-02-08 Jeff Law <law@redhat.com>
1961 * emit-rtl.c (reg_is_parm_p): New function.
1962 * regs.h (reg_is_parm_p): New prototype.
1963 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
1964 callee-clobbered registers.
1966 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1969 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
1970 If there is no implicit builtin declaration, just return NULL.
1972 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
1974 * config/i386/sse.md (FMAMODEM): New mode iterator.
1975 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
1976 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
1978 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
1980 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
1981 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
1982 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
1984 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1986 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
1987 (microblaze*-*-elf): Likewise.
1988 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
1990 * config/microblaze/microblaze-c.c: Add builtin defines for
1991 _LITTLE_ENDIAN and _BIG_ENDIAN.
1992 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
1993 add to TARGET_DEFAULT flags.
1994 Expand ASM_SPEC and LINK_SPEC.
1995 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
1996 * config/microblaze/microblaze.md: Update extendsidi2 and
1997 movdi_internal instructions to use low-order / high-order reg
1999 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
2000 options and inversemask / mask of LITTLE_ENDIAN.
2001 * config/microblaze/t-microblaze: Expand multilib options to
2002 include mlittle-endian (le) and update exceptions patterns.
2004 2013-02-08 Jakub Jelinek <jakub@redhat.com>
2006 PR rtl-optimization/56195
2007 * lra-constraints.c (get_reload_reg): Don't reuse regs
2008 if they have smaller mode than requested, if they have
2009 wider mode than requested, try to return a SUBREG.
2011 PR tree-optimization/56250
2012 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
2013 if type is unsigned and code isn't MULT_EXPR.
2015 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
2017 PR tree-optimization/56064
2018 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
2019 bits according to mode.
2020 * fixed-value.h (fixed_from_double_int)
2021 (const_fixed_from_double_int): Adjust comments.
2023 2013-02-08 Richard Biener <rguenther@suse.de>
2026 * lto-streamer.h (struct data_in): Remove current_file, current_line
2027 and current_col members.
2028 * lto-streamer-out.c (lto_output_location): Stream changed bits
2029 en-block for efficiency.
2030 * lto-streamer-in.c (clear_line_info): Remove.
2031 (lto_input_location): Cache current file, line and column
2032 globally via local statics. Read changed bits en-block.
2033 (input_function): Do not call clear_line_info.
2034 (lto_read_body): Likewise.
2035 (lto_input_toplevel_asms): Likewise.
2037 2013-02-08 Michael Matz <matz@suse.de>
2039 PR tree-optimization/52448
2040 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
2041 (nt_call_phase): New static.
2042 (add_or_mark_expr): Only mark accesses with newer phase than any
2044 (nonfreeing_call_p): New.
2045 (nt_init_block): Update nt_call_phase, mark blocks as visited.
2046 (nt_fini_block): Keep blocks marked as visited.
2047 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
2049 2013-02-08 Richard Biener <rguenther@suse.de>
2051 * ira.c (ira): Free broken dominator information.
2053 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
2055 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
2057 2013-02-08 Marek Polacek <polacek@redhat.com>
2059 * cfgloop.c (verify_loop_structure): Add more checking of headers.
2061 2013-02-08 Richard Biener <rguenther@suse.de>
2064 * cfgloop.h (flow_loops_find): Adjust.
2065 (bb_loop_header_p): Declare.
2066 * cfgloop.c (bb_loop_header_p): New function split out from ...
2067 (flow_loops_find): ... here. Adjust function signature,
2068 support incremental loop structure update.
2069 (verify_loop_structure): Cleanup. Verify a loop is a loop.
2070 * cfgloopmanip.c (fix_loop_structure): Move ...
2071 * loop-init.c (fix_loop_structure): ... here.
2072 (apply_loop_flags): Split out from ...
2073 (loop_optimizer_init): ... here.
2074 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
2075 in incremental mode, only remove dead loops here.
2077 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
2080 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
2081 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
2082 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
2083 (*round<mode>3.libgcc): New insns for fixed-modes.
2084 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
2085 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
2086 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
2087 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
2088 implementations. Define to __builtin_avr_absFX,
2089 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
2090 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
2091 __builtin_avr_countlsFX, respectively.
2092 * config/avr/avr-c.c (target.h): Include it.
2093 (enum avr_builtin_id): New enum.
2094 (avr_resolve_overloaded_builtin): New static function.
2095 (avr_register_target_pragmas): Use it to set
2096 targetm.resolve_overloaded_builtin.
2097 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
2098 tree nodes used by DEF_BUILTIN.
2099 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
2100 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
2101 <AVR_BUILTIN_xxBITS>: Same.
2103 2013-02-08 Richard Biener <rguenther@suse.de>
2105 * cfgloop.c (verify_loop_structure): Properly handle
2106 a loop exiting to another loop header.
2107 * ira-int.h (ira_loops): Remove.
2108 * ira.c (ira_loops): Remove.
2109 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
2110 (do_reload): Use loop_optimizer_finalize.
2111 * ira-build.c (create_loop_tree_nodes): Use get_loops and
2112 number_of_loops to access the loop tree.
2113 (more_one_region_p): Likewise.
2114 (finish_loop_tree_nodes): Likewise.
2115 (rebuild_regno_allocno_maps): Likewise.
2116 (mark_loops_for_removal): Likewise.
2117 (mark_all_loops_for_removal): Likewise.
2118 (remove_unnecessary_regions): Likewise.
2119 (ira_build): Likewise.
2120 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2122 2013-02-08 Richard Biener <rguenther@suse.de>
2124 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
2125 * ipa-pure-const.c (analyze_function): Avoid calling
2126 mark_irreducible_loops twice.
2127 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
2129 2013-02-07 David S. Miller <davem@davemloft.net>
2131 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
2133 * var-tracking.c (vt_add_function_parameter): Test the presence of
2134 HAVE_window_save properly and do not remap argument registers when
2135 we have a leaf function.
2137 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
2140 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
2142 * config/i386/i386.c (ix86_print_operand): Ditto.
2144 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
2146 * lra-constraints.c (process_alt_operands): Fix recently added comment.
2148 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
2150 PR rtl-optimization/56225
2151 * lra-constraints.c (process_alt_operands): Check that reload hard
2152 reg can hold value for strict_low_part.
2154 2013-02-07 Jakub Jelinek <jakub@redhat.com>
2157 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
2158 dwarf2out_end_function.
2159 (in_first_function_p, maybe_at_text_label_p,
2160 first_loclabel_num_not_at_text_label): New variables.
2161 (dwarf2out_var_location): In the first function find out
2162 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
2163 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
2166 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
2168 PR rtl-optimization/56178
2169 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
2170 SUBREG of a register. Tidy up related block of code.
2171 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
2172 note if the source is a register or a SUBREG of a register.
2174 2013-02-07 Jakub Jelinek <jakub@redhat.com>
2177 * config/rs6000/rs6000.md (ptrm): New mode attr.
2178 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
2179 call_value_indirect_aix<pttrsize>,
2180 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
2183 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2185 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
2186 if -bnortl. Convert to strcmp and strncmp.
2188 2013-02-07 Alan Modra <amodra@gmail.com>
2191 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
2192 addresses won't wrap when offsetting.
2193 (rs6000_secondary_reload): Provide secondary reloads needed for
2194 wrapping LO_SUM addresses.
2196 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
2198 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
2199 MACH, just __MACH__.
2201 2013-02-06 Richard Biener <rguenther@suse.de>
2203 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
2204 instead of calling fix_loop_structure.
2206 2013-02-06 Jakub Jelinek <jakub@redhat.com>
2209 * omp-low.c (use_pointer_for_field): Return false if
2210 lower_send_shared_vars doesn't generate any copy-out code.
2212 2013-02-06 Tom de Vries <tom@codesourcery.com>
2214 PR rtl-optimization/56131
2215 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
2216 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
2217 of the label is NULL. Add comment.
2219 2013-02-05 Jakub Jelinek <jakub@redhat.com>
2221 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
2224 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
2225 (STATIC_LIBTSAN_LIBS): Likewise.
2226 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
2227 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
2228 is defined, don't add anything else beyond that.
2229 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
2230 (LINK_COMMAND_SPEC): Use them.
2232 PR tree-optimization/56205
2233 * tree-stdarg.c (check_all_va_list_escapes): Return true if
2234 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
2235 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
2237 2013-02-05 Richard Biener <rguenther@suse.de>
2239 PR tree-optimization/53342
2240 PR tree-optimization/53185
2241 * tree-vectorizer.h (vect_check_strided_load): Remove.
2242 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
2243 not disallow peeling for vectorized strided loads.
2244 (vect_check_strided_load): Make static and simplify.
2245 (vect_analyze_data_refs): Adjust.
2246 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
2247 correctly when vectorizing strided loads.
2249 2013-02-05 Richard Biener <rguenther@suse.de>
2251 * doc/install.texi: Refer to ISL, not PPL.
2253 2013-02-05 Jan Hubicka <jh@suse.cz>
2255 PR tree-optimization/55789
2256 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
2258 2013-02-05 Jan Hubicka <jh@suse.cz>
2260 PR tree-optimization/55789
2261 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
2262 the dead call anyway.
2264 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
2267 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
2269 2013-02-04 Alexander Potapenko <glider@google.com>
2270 Jack Howarth <howarth@bromo.med.uc.edu>
2271 Jakub Jelinek <jakub@redhat.com>
2274 * config/darwin.c (sort_ctor_records): Stabilized qsort
2275 on constructor priority by using original position.
2276 (finalize_ctors): New routine to sort constructors by
2277 priority before use in assemble_integer.
2278 (machopic_asm_out_constructor): Use finalize_ctors if needed.
2280 2013-02-04 Jakub Jelinek <jakub@redhat.com>
2283 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
2284 about visibility on artificial decls.
2285 * config/sol2.c (solaris_assemble_visibility): Likewise.
2287 2013-02-04 Kai Tietz <ktietz@redhat.com>
2290 * config/i386/i386.c (function_value_ms_64): Add additional valtype
2291 argument and improve checking of return-argument types for 16-byte
2293 (ix86_function_value_1): Add additional valtype argument on call
2294 of function_value_64.
2295 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
2296 handling infunction_value_64 function.
2298 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
2300 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2302 2013-02-04 Richard Biener <rguenther@suse.de>
2304 PR tree-optimization/56188
2305 * tree-ssa-structalias.c (label_visit): Consider case with
2306 initially non-empty points-to set.
2307 (perform_var_substitution): Dump node mapping and clean up.
2309 2013-02-04 Richard Guenther <rguenther@suse.de>
2312 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
2313 node prevail as last resort.
2314 (lto_symtab_merge_decls): Remove guard on LTRANS here.
2315 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
2317 2013-02-04 Richard Biener <rguenther@suse.de>
2319 PR tree-optimization/56113
2320 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
2322 (equiv_class_lookup_or_add): ... this.
2323 (label_visit): Adjust and fix error in previous patch.
2324 (perform_var_substitution): Adjust.
2326 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
2328 * config/sh/divtab.c: Fix formatting and comments throughout the file.
2329 * config/sh/sh4-300.md: Likewise.
2330 * config/sh/sh4a.md: Likewise.
2331 * config/sh/constraints.md: Likewise.
2332 * config/sh/sh.md: Likewise.
2333 * config/sh/netbsd-elf.h: Likewise.
2334 * config/sh/predicates.md: Likewise.
2335 * config/sh/sh-protos.h: Likewise.
2336 * config/sh/ushmedia.h: Likewise.
2337 * config/sh/linux.h: Likewise.
2338 * config/sh/sh.c: Likewise.
2339 * config/sh/superh.h: Likewise.
2340 * config/sh/elf.h: Likewise.
2341 * config/sh/sh4.md: Likewise.
2342 * config/sh/sh.h: Likewise.
2344 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2346 * config/pa/constraints.md: Adjust unused letters. Change "T"
2347 constraint to match_test floating_point_store_memory_operand().
2348 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
2349 (base14_operand): New.
2350 (floating_point_store_memory_operand): New.
2351 (integer_store_memory_operand): Revise to use base14_operand and
2352 reg_plus_base_memory_operand.
2353 (move_dest_operand): Allow symbolic_memory_operands.
2354 (symbolic_memory_operand): Check for LO_SOM.
2355 (symbolic_operand): Change default case to break.
2356 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
2357 CONST_DOUBLE values to be reloaded by putting them into memory when
2358 the destination is a floating point register.
2359 (movdf): Remove code to handle CONST_DOUBLE.
2361 (reload_indf_r1): New.
2362 (reload_insf_r1): New.
2363 Consistently use "Q" and "T" constraints with integer and floating
2364 point move instructions, respectively.
2365 (movdi): Remove FAIL.
2366 Change predicate for source operand unamed DImode move from
2367 general_operand to move_src_operand.
2368 (umulsidi3): Change predicate for destination operand to
2370 Likewise for similar unamed patterns.
2371 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
2372 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
2373 (hppa_legitimize_address): Simplify mask calculation.
2374 (pa_emit_move_sequence): Revised handling of secondary reloads from
2375 REG+D addresses for floating point loads and stores. Directly handle
2376 loading CONST0_RTX (mode) to a floating point register.
2377 (pa_secondary_reload): Handle reloading DF and SFmode constant values
2378 to floating point registers. Don't restrict secondary reloads to
2379 floating point registers to integer modes. Revise some comments and
2381 (TARGET_LEGITIMATE_ADDRESS_P): Define.
2382 (pa_legitimate_address_p): New.
2383 (pa_legitimize_reload_address): New.
2384 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
2385 (STRICT_REG_OK_FOR_BASE_P): New.
2386 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
2387 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
2389 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
2390 Andrew Dixie <andrewd@gentrack.com>
2392 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
2395 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
2397 * expmed.c (extract_bit_field_1): Pass the full width of the
2398 structure to get_best_reg_extraction_insn.
2400 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
2403 * configure.ac (use_cxa_atexit): Add AIX.
2404 * configure: Regenerate.
2406 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
2408 2013-02-01 Jakub Jelinek <jakub@redhat.com>
2411 * final.c (need_profile_function): New variable.
2412 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
2413 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
2414 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
2415 notes, targetm.asm_out.function_prologue doesn't emit anything,
2416 HAVE_prologue and profiler should be emitted before prologue,
2417 set need_profile_function instead of emitting it.
2418 (final_scan_insn): If need_profile_function, emit
2419 profile_function on the first NOTE_INSN_BASIC_BLOCK or
2420 NOTE_INSN_FUNCTION_BEG note.
2422 2013-02-01 Richard Henderson <rth@redhat.com>
2424 * config/rs6000/rs6000.md (smulditi3): New.
2427 * config/alpha/alpha.md (umulditi3): New.
2429 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
2431 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
2432 (ASM_OUTPUT_ALIGNED_LOCAL): New.
2434 2013-02-01 Richard Biener <rguenther@suse.de>
2436 PR tree-optimization/56113
2437 * tree-ssa-structalias.c (label_visit): Reduce work for
2438 single-predecessor nodes.
2440 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
2442 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
2443 range isn't testing for zero.
2445 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
2448 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
2450 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
2451 Nick Clifton <nickc@redhat.com>
2453 * config/v850/constraints.md (Q): Define as a memory constraint.
2454 * config/v850/predicates.md (label_ref_operand): New predicate.
2455 (e3v5_shift_operand): New predicate.
2456 (ior_operator): New predicate.
2457 * config/v850/t-v850: Add e3v5 multilib.
2458 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
2459 (v850_gen_movdi): Prototype.
2460 * config/v850/v850.c: Add support for e3v5 architecture.
2461 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
2463 (construct_save_jarl): Add e3v5 long JARL support.
2464 (v850_adjust_insn_length): New function. Adjust length of call
2465 insns when using e3v5 instructions.
2466 (v850_gen_movdi): New function: Generate instructions to move a
2468 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
2469 (CPP_SPEC): Define __v850e3v5__ as appropriate.
2470 (TARGET_USE_FPU): Enable for e3v5.
2471 (CONST_OK_FOR_W): New macro.
2472 (ADJUST_INSN_LENGTH): Define.
2473 * config/v850/v850.md (UNSPEC_LOOP): Define.
2474 (attr cpu): Add v850e3v5.
2475 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
2476 (movdi): New pattern.
2477 (movdi_internal): New pattern.
2478 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
2479 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
2480 (cstoresf4): Likewise.
2481 (cstoredf4): Likewise.
2482 (insv): New pattern.
2483 (rotlso3_a): New pattern.
2484 (rotlsi3_b): New pattern
2485 (rotlsi3_v850e3v5): New pattern.
2486 (doloop_begin): New pattern.
2487 (fix_loop_counter): New pattern.
2488 (doloop_end): New pattern.
2489 (branch_normal): Add e3v5 long branch support.
2490 (branch_invert): Likewise.
2491 (branch_z_normal): Likewise.
2492 (branch_z_invert): Likewise.
2493 (branch_nz_normal): Likewise.
2494 (branch_nz_invert): Likewise.
2495 (call_internal_short): Add e3v5 register-indirect JARL support.
2496 (call_internal_long): Likewise.
2497 (call_value_internal_short): Likewise.
2498 (call_value_internal_long): Likewise.
2499 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
2500 (mloop): New option.
2501 * config.gcc: Add support for configuring v840e3v5 target.
2502 * doc/invoke.texi: Document new v850 specific command line options.
2504 2013-01-31 Paul Koning <ni1d@arrl.net>
2508 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
2509 children if parent is a class.
2510 (prune_unused_types_prune): Don't add DW_AT_declaration.
2512 2013-01-31 Richard Biener <rguenther@suse.de>
2514 PR tree-optimization/56157
2515 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
2516 match up operand with SLP child.
2518 2013-01-31 Jason Merrill <jason@redhat.com>
2521 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
2522 parameters the first time.
2523 (gen_scheduled_generic_parms_dies): Check completeness here.
2525 2013-01-31 Richard Biener <rguenther@suse.de>
2528 * common.opt (faggressive-loop-optimizations): New flag,
2530 * doc/invoke.texi (faggressive-loop-optimizations): Document.
2531 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
2532 infer_loop_bounds_from_undefined by it.
2534 2013-01-31 Richard Biener <rguenther@suse.de>
2536 PR tree-optimization/56150
2537 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
2538 visit virtual operands.
2539 (find_uses_to_rename_bb): Likewise.
2541 2013-01-31 Richard Biener <rguenther@suse.de>
2543 PR tree-optimization/56150
2544 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
2545 mixed store non-store stmts.
2547 2013-01-30 Jakub Jelinek <jakub@redhat.com>
2550 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
2551 LIBASAN_EARLY_SPEC is defined.
2552 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
2553 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
2555 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
2558 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
2559 invalid args instead of ICEing on it.
2560 (ix86_valid_target_attribute_tree): Return error_mark_node if
2561 ix86_valid_target_attribute_inner_p failed.
2562 (ix86_valid_target_attribute_p): Return false only if
2563 ix86_valid_target_attribute_tree returned error_mark_node. Allow
2564 target("default") attribute.
2565 (sorted_attr_string): Change argument from const char * to tree,
2566 merge in all target attribute arguments rather than just one.
2567 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
2568 instead of free. Avoid using strcat.
2569 (ix86_mangle_function_version_assembler_name): Mangle
2570 target("default") as if no target attribute is present. Adjust
2571 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
2572 instead of xmalloc and XDELETEVEC instead of free.
2573 (ix86_function_versions): Don't return true if one of the decls
2574 doesn't have target attribute. If they don't and one of the decls
2575 is DECL_FUNCTION_VERSIONED, report an error. Adjust
2576 sorted_attr_string caller. Use XDELETEVEC instead of free.
2577 (ix86_supports_function_versions): Remove.
2578 (make_name): Fix up formatting.
2579 (make_dispatcher_decl): Remove resolver_name and its initialization.
2580 Avoid leaking memory.
2581 (is_function_default_version): Return true if there is
2582 target("default") attribute rather than no target attribute at all.
2583 (make_resolver_func): Avoid leaking memory.
2584 (ix86_generate_version_dispatcher_body): Likewise.
2585 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
2586 * target.def (supports_function_versions): Remove.
2587 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
2588 * doc/tm.texi: Regenerated.
2590 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
2592 PR rtl-optimization/56144
2593 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
2594 for values with side effects.
2596 2013-01-30 Richard Biener <rguenther@suse.de>
2598 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
2599 (sparseset_pop): Likewise.
2600 * cfganal.c (compute_idf): Likewise. Increase work-stack size
2601 to be able to use quick_push in the worker loop.
2603 2013-01-30 Marek Polacek <polacek@redhat.com>
2605 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
2607 2013-01-30 Richard Biener <rguenther@suse.de>
2610 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
2612 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
2614 PR tree-optimization/56064
2615 * fixed-value.c (fixed_from_double_int): New function.
2616 * fixed-value.h (fixed_from_double_int): New prototype.
2617 (const_fixed_from_double_int): New static inline function.
2618 * fold-const.c (native_interpret_fixed): New static function.
2619 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
2620 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
2621 (native_encode_fixed): New static function.
2622 (native_encode_expr) <FIXED_CST>: Use it.
2623 (native_interpret_int): Move double_int worker code to...
2624 * double-int.c (double_int::from_buffer): ...this new static method.
2625 * double-int.h (double_int::from_buffer): Prototype it.
2627 2013-01-30 Richard Biener <rguenther@suse.de>
2629 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
2630 New pointer-map and obstack.
2631 (init_alias_vars): Allocate pointer-map and obstack.
2632 (delete_points_to_sets): Free them.
2633 (find_what_var_points_to): Cache result.
2634 (find_what_p_points_to): Adjust for changed interface of
2635 find_what_var_points_to.
2636 (compute_points_to_sets): Likewise.
2637 (ipa_pta_execute): Likewise.
2639 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2641 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
2642 * configure: Regenerate.
2643 * config.in: Regenerate.
2644 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
2645 #nobits/#progbits if supported.
2647 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
2650 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
2651 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
2652 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
2654 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2656 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
2657 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
2659 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2661 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
2662 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
2664 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2666 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
2668 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
2669 * config/arm/cortex-a7.md: New bypasses using
2670 arm_mac_accumulator_is_result.
2672 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2674 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
2675 (cortex_a7_neon_mla): Likewise.
2676 (cortex_a7_fpfmad): New reservation.
2677 (cortex_a7_fpmacs): Use ffmas and update required units.
2678 (cortex_a7_fpmuld): Update required units and latency.
2679 (cortex_a7_fpmacd): Likewise.
2680 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
2681 (cortex_a7_neon). Likewise.
2682 (bypass) Update participating units.
2684 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2686 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
2687 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
2689 * config/arm/vfp11.md (vfp_farith): Use ffmas.
2690 (vfp_fmul): Use ffmad.
2691 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
2692 (cortex_r4_fmacd): Use ffmad.
2693 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
2694 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
2695 (cortex_a9_fmacd): Use ffmad.
2696 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
2697 (cortex_a8_vfp_macd): Use ffmad.
2698 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
2699 (cortex_a5_fpmacd): Use ffmad.
2700 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
2701 (cortex_a15_vfp_macd): Use ffmad.
2702 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
2704 2013-01-29 Jason Merrill <jason@redhat.com>
2707 * varasm.c (default_assemble_visibility): Don't warn about
2708 visibility on artificial decls.
2710 2013-01-29 Richard Biener <rguenther@suse.de>
2712 PR tree-optimization/56113
2713 * tree-ssa-structalias.c (equiv_class_lookup): Also return
2715 (label_visit): Free duplicate bitmaps and record the leader instead.
2716 (perform_var_substitution): Adjust.
2718 2013-01-29 Richard Biener <rguenther@suse.de>
2720 PR tree-optimization/55270
2721 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
2722 the CFG, schedule loops for fixup.
2724 2013-01-29 Nick Clifton <nickc@redhat.com>
2726 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
2729 2013-01-28 Leif Ekblad <leif@rdos.net>
2731 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
2732 * config/i386/i386.h (TARGET_RDOS): New macro.
2733 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
2734 * config/i386/i386.c (ix86_option_override_internal): For 64bit
2735 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
2736 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
2737 DEFAULT_LARGE_SECTION_THRESHOLD.
2738 * config/i386/i386.md (R14_REG, R15_REG): New constants.
2739 * config/i386/rdos.h: New file.
2740 * config/i386/rdos64.h: New file.
2742 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
2745 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
2748 2013-01-28 Jakub Jelinek <jakub@redhat.com>
2750 PR rtl-optimization/56117
2751 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
2752 call cselib_lookup_from_insn on the MEM before calling
2753 add_insn_mem_dependence.
2755 2013-01-28 Richard Biener <rguenther@suse.de>
2757 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
2758 to a stmt that didn't have one.
2759 (copy_phis_for_bb): Likewise for PHI arguments.
2760 (copy_debug_stmt): Likewise for debug stmts.
2762 2013-01-28 Richard Biener <rguenther@suse.de>
2764 PR tree-optimization/56034
2765 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
2766 (partition_builtin_p): Adjust.
2767 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
2768 it is the last partition.
2769 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
2770 up the vertex for the definition.
2771 (classify_partition): Classify whether a partition is a
2772 PKIND_REDUCTION, thus has uses outside of the loop.
2773 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
2774 Merge all PKIND_REDUCTION partitions into the last partition.
2775 (tree_loop_distribution): Seed partitions from reductions as well.
2777 2013-01-28 Jakub Jelinek <jakub@redhat.com>
2779 PR tree-optimization/56125
2780 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
2781 pow(x,c) into sqrt(x) * powi(x, n/2) or
2782 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
2783 optimizing for size.
2784 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
2785 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
2788 PR tree-optimization/56094
2789 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
2790 to UNKNOWN_LOCATION while gimplifying expr.
2792 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
2795 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
2796 operand 0 in movabs insn template for -masm=intel asm alternative.
2797 (*movabs<mode>_2): Ditto for operand 1.
2799 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
2802 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
2805 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2807 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
2810 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2812 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
2813 Undef to avoid warning.
2815 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2817 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
2818 * configure: Regenerate.
2820 2013-01-25 Jakub Jelinek <jakub@redhat.com>
2822 PR tree-optimization/56098
2823 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
2824 for stmts with volatile ops.
2825 (cond_store_replacement): Don't optimize if assign has volatile ops.
2826 (cond_if_else_store_replacement_1): Don't optimize if either
2827 then_assign or else_assign have volatile ops.
2828 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
2831 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
2833 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
2835 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
2837 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
2838 missing ':' in asm example.
2840 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
2842 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
2843 entries into lane and laneq entries.
2844 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
2845 Remove AdvSIMD scalar modes.
2846 (aarch64_sq<r>dmulh_laneq<mode>): New.
2847 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
2849 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
2850 builtin implementations to relfect changes in RTL in aarch64-simd.md.
2851 * config/aarch64/iterators.md (VCOND): New.
2854 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
2857 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
2858 Add NULL LIBNAME argument to existing definitions.
2859 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
2860 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
2861 * config/avr/avr.c (DEF_BUILTIN): Same.
2862 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
2863 (avr_expand_builtin): Expand to a vanilla call if a libgcc
2864 implementation is available (DECL_ASSEMBLER_NAME is set).
2865 (avr_fold_absfx): New static function.
2866 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
2867 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
2868 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
2870 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
2871 (abshk, absk, abslk, absllk): Provide as static inline functions.
2873 2013-01-25 Marek Polacek <polacek@redhat.com>
2875 PR tree-optimization/56035
2876 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
2878 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
2880 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
2881 (*movtf_internal_rex64): Add (!o,C) alternative
2882 (*movxf_internal_rex64): Ditto.
2883 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
2885 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
2887 * doc/invoke.texi: fix typo.
2888 * doc/objc.texi: fix typo.
2890 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
2892 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
2893 for the first two alternatives.
2895 2013-01-24 Diego Novillo <dnovillo@google.com>
2897 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
2898 (ggc-zone.o): Remove.
2899 * configure.ac: Remove option --with-gc.
2900 * configure: Re-generate.
2901 * doc/install.texi: Remove documentation for --with-gc.
2902 * gengtype.c (write_enum_defn): Remove. Update all users.
2903 (write_Types_process_field): Remove generation of gt_e_* argument.
2904 (output_type_enum): Remove. Update all users.
2905 (write_enum_defn): Remove. Update all users.
2906 (enum alloc_zone): Remove. Update all users.
2907 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
2908 * ggc-common.c (ggc_splay_alloc): Remove first argument.
2910 (struct ptr_data): Remove field TYPE. Update all users.
2911 (gt_pch_note_object): Remove argument TYPE. Update all users.
2912 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
2914 * ggc-none.c (ggc_alloc_typed_stat): Remove.
2915 (struct alloc_zone): Remove.
2916 (ggc_internal_alloc_zone_stat): Remove.
2917 (ggc_internal_cleared_alloc_zone_stat): Remove.
2918 * ggc-page.c (ggc_alloc_typed_stat): Remove.
2919 (ggc_pch_count_object): Remove last argument. Update all users.
2920 (ggc_pch_alloc_object): Remove last argument. Update all users.
2921 (struct alloc_zone): Remove.
2922 * ggc-zone.c: Remove.
2923 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
2924 (struct alloc_zone): Remove.
2925 (ggc_alloc_typed_stat): Remove.
2926 (ggc_alloc_typed): Remove.
2927 (ggc_splay_alloc): Remove first argument.
2928 (rtl_zone): Remove. Update all users.
2929 (tree_zone): Remove. Update all users.
2930 (tree_id_zone): Remove. Update all users.
2931 (ggc_internal_zone_alloc_stat): Remove. Update all users.
2932 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
2933 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
2934 * tree-ssanames.c: Remove references to zone allocator in comments.
2936 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
2938 * config/avr/avr.c (avr_out_fract): Make register numbers that
2939 might be outside of source operand signed.
2941 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
2943 * config/i386/constraints.md (Yf): New constraint.
2944 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
2945 of f constraint to conditionaly disable x87 register preferences.
2946 (*movdf_internal): Ditto.
2947 (*movsf_internal): Ditto.
2949 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
2952 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
2953 that have operands with impossible constraints.
2954 Add a FIXME for a speed-up opportunity.
2955 * lra-constraints.c (process_alt_operands): Verify that a class
2956 selected from constraints on asms is valid for the operand mode.
2957 (curr_insn_transform): Remove incorrect comment.
2959 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
2961 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
2962 TOC operand is a valid symbol ref in the constant pool.
2964 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2966 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
2968 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
2971 * config/avr/stdfix.h: New file.
2972 * t-avr (stdfix-gcc.h): New rule to build it.
2973 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
2975 2013-01-23 Kostya Serebryany <kcc@google.com>
2977 * config/darwin.h: remove dependency on
2978 CoreFoundation (asan on Mac OS).
2980 2013-01-23 Jakub Jelinek <jakub@redhat.com>
2983 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
2984 instead of cmpdi_operand for first comparison operand.
2985 Don't assert that comparison operands aren't both constants.
2987 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
2989 * doc/install.texi (Downloading the Source): Update references to
2990 downloading separate components.
2992 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
2994 * doc/extend.texi (__int128): Improve grammar.
2996 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
2999 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
3000 alternative to (o,r).
3001 (*movdi_internal_rex64): Remove (!o,n) alternative.
3002 (DImode immediate->memory splitter): Remove.
3003 (DImode immediate->memory peephole2): Remove.
3004 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
3005 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
3006 alternative to (!o,*r).
3007 (*movtf_internal_sse): New pattern.
3008 (*movxf_internal_rex64): New pattern.
3009 (*movxf_internal): Disable for TARGET_64BIT.
3010 (*movdf_internal_rex64): Remove (!o,F) alternative.
3012 2013-01-22 Jakub Jelinek <jakub@redhat.com>
3015 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
3016 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
3017 * tree-vect-loop-manip.c (find_loop_location): Also ignore
3018 stmt locations where LOCATION_LOCUS of the stmt location is
3019 UNKNOWN_LOCATION or BUILTINS_LOCATION.
3022 * config/i386/i386.md (UNSPEC_STOS): New.
3023 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
3024 *strsetqi_1): Add UNSPEC_STOS.
3026 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
3029 * doc/invoke.texi: Remove left over -Wsynth example.
3031 2013-01-21 Jakub Jelinek <jakub@redhat.com>
3033 PR tree-optimization/56051
3034 * fold-const.c (fold_binary_loc): Don't fold
3035 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
3036 a narrowing conversion, or widening conversion from signed
3039 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
3041 PR rtl-optimization/56023
3042 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
3043 dependent on debug instruction.
3045 2013-01-21 Martin Jambor <mjambor@suse.cz>
3048 * function.c (allocate_struct_function): Call
3049 invoke_set_current_function_hook earlier.
3051 2013-01-21 Jakub Jelinek <jakub@redhat.com>
3053 * reload1.c (init_reload): Only initialize reload_obstack
3054 during the first call.
3056 2013-01-21 Marek Polacek <polacek@redhat.com>
3058 * cfgloop.c (verify_loop_structure): Fix up grammar.
3060 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
3062 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
3063 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
3065 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3068 * config/arm/marvell-pj4.md: Update copyright year.
3069 Fix up use of alu to alu_reg and simple_alu_imm.
3071 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
3073 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
3075 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
3078 * lra-constraints.c (curr_insn_transform): Don't reuse original
3079 insn for secondary memory move when memory mode should be different.
3081 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3083 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
3084 atomic_storedi_1): New patterns.
3086 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3088 btver2 pipeline descriptions.
3089 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
3091 * config/i386/i386.md (btver2_decode): New type attributes.
3092 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
3094 * config/i386/btver2.md: New file describing btver2 pipelines.
3096 2013-01-19 Andrew Pinski <apinski@cavium.com>
3098 PR tree-optimization/52631
3099 * tree-ssa-sccvn (visit_use): Before looking up the original
3100 statement, try looking up the simplified expression.
3102 2013-01-19 Anthony Green <green@moxielogic.com>
3104 * config/moxie/moxie.c (moxie_expand_prologue): Set
3105 current_function_static_stack_size.
3107 2013-01-18 Jakub Jelinek <jakub@redhat.com>
3109 PR tree-optimization/56029
3110 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
3111 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
3113 2013-01-18 Sharad Singhai <singhai@google.com>
3115 PR tree-optimization/55995
3116 * dumpfile.c (dump_loc): Print location only if available.
3117 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
3119 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
3122 * lra-constraints.c (curr_insn_transform): Reuse original insn for
3123 secondary memory move.
3124 (inherit_reload_reg): Use rclass instead of cl for
3125 check_secondary_memory_needed_p.
3127 2013-01-18 Jakub Jelinek <jakub@redhat.com>
3130 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
3131 the case where writing real complex part of target modifies op1.
3133 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
3135 * config/aarch64/aarch64-simd.md
3136 (aarch64_vcond_internal<mode>): Handle unordered cases.
3137 * config/aarch64/iterators.md (v_cmp_result): New.
3139 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
3140 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3142 * config/arm/marvell-pj4.md: New file.
3143 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
3144 * config/arm/arm.md (generic_sched): Add marvell_pj4.
3145 (generic_vfp): Likewise.
3146 * config/arm/arm-cores.def: Add marvell-pj4.
3147 * config/arm/arm-tune.md: Regenerate.
3148 * config/arm/arm-tables.opt: Regenerate.
3149 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
3150 * doc/invoke.texi: Document marvell-pj4.
3152 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
3154 * config/aarch64/arm_neon.h: Map scalar types to standard types.
3156 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
3161 * var-tracking.c (negative_power_of_two_p): New.
3162 (global_get_addr_cache, local_get_addr_cache): New.
3163 (get_addr_from_global_cache, get_addr_from_local_cache): New.
3164 (vt_canonicalize_addr): Rewrite using the above. Adjust the
3166 (vt_stack_offset_p): Remove.
3167 (vt_canon_true_dep): Always canonicalize loc's address.
3168 (clobber_overlapping_mems): Make sure we have a MEM.
3169 (local_get_addr_clear_given_value): New.
3170 (val_reset): Clear local cached entries.
3171 (compute_bb_dataflow): Create and release the local cache.
3172 Disable duplicate MEMs clobbering.
3173 (emit_notes_in_bb): Clobber MEMs likewise.
3174 (vt_emit_notes): Create and release the local cache.
3175 (vt_initialize, vt_finalize): Create and release the global
3176 cache, respectively.
3177 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
3179 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
3182 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
3183 not found in the symtab.
3185 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
3188 PR rtl-optimization/55547
3189 PR rtl-optimization/53827
3192 * alias.c (offset_overlap_p): New, factored out of...
3193 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
3194 the conservative special case for symbolic constants. Don't
3195 adjust zero sizes on alignment.
3197 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
3199 PR rtl-optimization/52573
3200 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
3201 REG_UNUSED for the same register.
3203 2013-01-17 Richard Biener <rguenther@suse.de>
3204 Marek Polacek <polacek@redhat.com>
3206 PR rtl-optimization/55833
3207 * loop-unswitch.c (unswitch_loops): Move loop verification...
3208 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
3209 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
3210 Set it to true when we're removing a loop from hierarchy tree in
3211 an irreducible region.
3212 (fix_bb_placements): Adjust caller.
3213 (fix_loop_placements): Likewise.
3215 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
3217 * config/avr/builtins.def (DEF_BUILTIN): Factor out
3218 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
3219 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
3220 Remove ID. Adjust comments.
3221 * config/avr/avr-c.c (avr_builtin_name): Remove.
3222 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
3223 * config/avr/avr.c (avr_tolower): New static function.
3224 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
3225 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
3226 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
3229 2013-01-17 Jan Hubicka <jh@suse.cz>
3231 PR tree-optimization/55273
3232 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
3234 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
3237 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
3238 store through atomic_store<mode>_1.
3239 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
3241 2013-01-17 Martin Jambor <mjambor@suse.cz>
3243 PR tree-optimizations/55264
3244 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
3245 for virtual methods.
3246 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
3247 virtual methods before inlining is over.
3248 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
3250 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
3253 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
3255 PR rtl-optimization/56005
3256 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
3257 pending reads for prefetch.
3259 2013-01-16 Ian Bolton <ian.bolton@arm.com>
3261 * config/aarch64/aarch64.md
3262 (*cstoresi_neg_uxtw): New pattern.
3263 (*cmovsi_insn_uxtw): New pattern.
3264 (*<optab>si3_uxtw): New pattern.
3265 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
3266 (*<optab>si3_insn_uxtw): New pattern.
3267 (*bswapsi2_uxtw): New pattern.
3269 2013-01-16 Richard Biener <rguenther@suse.de>
3271 * tree-inline.c (tree_function_versioning): Remove set but
3272 never used variable.
3274 2013-01-16 Richard Biener <rguenther@suse.de>
3276 PR tree-optimization/55964
3277 * tree-flow.h (rename_variables_in_loop): Remove.
3278 (rename_variables_in_bb): Likewise.
3279 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
3280 (copy_loop_before): Adjust and delete update-ssa status.
3281 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
3282 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
3283 (rename_variables_in_loop): Remove.
3284 (slpeel_update_phis_for_duplicate_loop): Likewise.
3285 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
3286 use available cfg machinery instead of duplicating it.
3287 Update PHI nodes and perform poor-mans SSA update here.
3288 (slpeel_tree_peel_loop_to_edge): Adjust.
3290 2013-01-16 Richard Biener <rguenther@suse.de>
3292 PR tree-optimization/54767
3293 PR tree-optimization/53465
3294 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
3295 (vrp_visit_phi_node): For PHI arguments coming via backedges
3296 drop all symbolical range information.
3297 (execute_vrp): Compute backedges.
3299 2013-01-16 Richard Biener <rguenther@suse.de>
3301 * doc/install.texi: Update CLooG and ISL requirements to
3304 2013-01-16 Christian Bruel <christian.bruel@st.com>
3307 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
3308 (broken_move): Handle UNSPECV_SP_SWITCH_B.
3309 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
3311 2013-01-16 DJ Delorie <dj@redhat.com>
3313 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
3314 (UNSPECV_SP_SWITCH_E): New.
3315 (sp_switch_1): Change to an unspec.
3316 (sp_switch_2): Change to an unspec. Don't use post-inc when we
3319 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
3321 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
3322 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
3323 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
3324 (expand_mem_thread_fence): Ditto.
3325 (expand_mem_signal_fence): Ditto.
3326 (expand_atomic_load): Ditto.
3327 (expand_atomic_store): Ditto.
3329 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
3331 PR rtl-optimization/55547
3332 PR rtl-optimization/53827
3335 * alias.c (memrefs_conflict_p): Set sizes to negative after
3338 2013-01-15 Jakub Jelinek <jakub@redhat.com>
3341 * function.c (thread_prologue_and_epilogue_insns): Always
3342 add crtl->drap_reg to set_up_by_prologue.set, even if
3343 stack_realign_drap is false.
3345 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3347 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
3348 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
3349 *call): Fix indention.
3351 2013-01-15 Tom de Vries <tom@codesourcery.com>
3354 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
3357 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
3359 PR rtl-optimization/55153
3360 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
3362 2013-01-15 Martin Jambor <mjambor@suse.cz>
3364 PR tree-optimization/55920
3365 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
3366 accesses as grp_to_be_debug_replaced.
3368 2013-01-15 Jakub Jelinek <jakub@redhat.com>
3370 PR tree-optimization/55920
3371 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
3372 there is non-useless type conversion needed from debug rhs to lhs,
3373 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
3375 2013-01-15 Joseph Myers <joseph@codesourcery.com>
3376 Mikael Pettersson <mikpe@it.uu.se>
3379 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
3381 (ASM_OUTPUT_CASE_LABEL): Remove.
3382 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
3383 * final.c (shorten_branches): Update alignment of labels before
3384 jump tables if CASE_VECTOR_SHORTEN_MODE.
3386 2013-01-15 Richard Biener <rguenther@suse.de>
3389 * system.h: Do not include gmp.h for building host tools.
3391 2013-01-15 Richard Biener <rguenther@suse.de>
3394 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
3395 account for bitpos when computing alignment.
3397 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
3399 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
3400 (ix86_target_macros_internal): Likewise.
3402 * config/i386/i386.c (m_CORE2I7): Removed.
3403 (m_CORE_HASWELL): New macro.
3404 (m_CORE_ALL): Likewise.
3405 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
3406 (initial_ix86_arch_features): Likewise.
3407 (processor_target_table): Initializations for Core avx2.
3408 (cpu_names): New names "core-avx2".
3409 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
3410 PROCESSOR_CORE_HASWELL.
3411 (ix86_issue_rate): New case.
3412 (ia32_multipass_dfa_lookahead): Likewise.
3413 (ix86_sched_init_global): Likewise.
3415 * config/i386/i386.h (TARGET_HASWELL): New macro.
3416 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
3417 (processor_type): New PROCESSOR_HASWELL.
3419 2013-01-15 Jakub Jelinek <jakub@redhat.com>
3421 PR tree-optimization/55955
3422 * tree-vect-loop.c (vectorizable_reduction): Give up early on
3423 *SHIFT_EXPR and *ROTATE_EXPR codes.
3425 PR tree-optimization/48766
3426 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
3427 -ftrapv disable -fwrapv.
3429 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
3432 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
3433 etc. to 1 and not to __flash.
3434 Use LL suffix for __INT24_MAX__ with -mint8.
3435 Use ULL suffix for __UINT24_MAX__ with -mint8.
3437 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
3439 * config/avr/avr-arch.h
3440 (struct base_arch_s): Use typedef avr_arch_t instead.
3441 (struct arch_info_s): Use typedef avr_arch_info_t instead.
3442 (struct mcu_type_s): Use typedef avr_mcu_t instead.
3443 * config/avr/avr.c: Same.
3444 * config/avr/avr-devices.c: Same.
3445 * config/avr/driver-avr.c: Same.
3446 * config/avr/gen-avr-mmcu-texi.c: Same.
3447 * config/avr/avr-mcus.def: Adjust comment.
3449 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
3451 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
3452 * config/aarch64/iterators.md (VALLDI): New.
3454 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
3455 Andi Kleen <ak@linux.intel.com>
3458 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
3459 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
3462 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
3464 * config/avr/avr-stdint.h: Remove trailing blanks.
3465 * config/avr/avr-log.h: Same.
3466 * config/avr/avr-arch.h: Same.
3467 * config/avr/avr-devices.c: Same.
3468 * config/avr/avr-dimode.md: Same.
3469 * config/avr/predicates.md: Same.
3470 * config/avr/avr-c.c: Same. And fix typo.
3472 * config/avr/avr-protos.h: Same. And:
3473 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
3474 (init_cumulative_args): Rename to avr_init_cumulative_args.
3475 (expand_prologue): Rename to avr_expand_prologue.
3476 (expand_epilogue): Rename to avr_expand_epilogue.
3477 (adjust_insn_length): Rename to avr_adjust_insn_length.
3478 (notice_update_cc): Rename to avr_notice_update_cc.
3479 (final_prescan_insn): Rename to avr_final_prescan_insn.
3480 * config/avr/avr.c: Same.
3481 * config/avr/avr.h: Same.
3482 * config/avr/avr.md: Remove trailing blanks.
3483 (prologue): Use avr_expand_prologue.
3484 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
3486 2013-01-14 Richard Biener <rguenther@suse.de>
3488 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
3489 verify_location, collect_subblocks): New functions.
3490 (verify_gimple_in_cfg): Verify that locations only reference
3491 BLOCKs in the functions BLOCK tree.
3493 2013-01-14 Richard Biener <rguenther@suse.de>
3495 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
3497 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
3499 (insert_out_of_ssa_copy_on_edge): Likewise.
3500 (rewrite_close_phi_out_of_ssa): Likewise.
3501 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
3503 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
3504 propagated constants.
3505 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
3508 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
3510 * config/avr/avr-modes.def: Add GPL copyright notice.
3512 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
3514 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
3515 MEMMODEL_MASK to determine memory model.
3516 (atomic_store<mode>): Ditto from operands[2].
3517 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
3519 2013-01-13 Jakub Jelinek <jakub@redhat.com>
3522 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
3523 (fold_gimple_assign): Don't call unshare_expr here.
3524 (fold_ctor_reference): Call unshare_expr.
3526 2013-01-13 Terry Guo <terry.guo@arm.com>
3528 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
3529 * doc/fragments.texi: Document MULTILIB_REUSE.
3530 * gcc.c (multilib_reuse): New internal spec.
3531 (set_multilib_dir): Also search multilib from multilib_reuse.
3532 * genmultilib (tmpmultilib3): Refactor code.
3533 (tmpmultilib4): Ditto.
3534 (multilib_reuse): New multilib argument.
3536 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
3538 * Makefile.in: Update copyright.
3540 2013-01-12 Tom de Vries <tom@codesourcery.com>
3543 * calls.c (expand_call): Check if arg_nr is valid.
3545 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3547 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
3548 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
3549 documentation. Add missing '__' in front of
3550 __builtin_ia32_packssdw256.
3552 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3555 * config/s390/s390.c (s390_preferred_reload_class): Do not return
3556 NO_REGS for larl operands.
3557 (s390_reload_larl_operand): Use s390_load_address instead of
3560 2013-01-11 Richard Biener <rguenther@suse.de>
3562 * tree-cfg.c (verify_node_sharing_1): Split out from ...
3563 (verify_node_sharing): ... here.
3564 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
3566 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
3568 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
3569 Substitute TREECHECKING.
3570 * configure: Regenerate.
3571 * Makefile.in (TREECHECKING): New.
3573 2013-01-11 Richard Guenther <rguenther@suse.de>
3575 PR tree-optimization/44061
3576 * tree-vrp.c (extract_range_basic): Compute zero as
3577 value-range for __builtin_constant_p of function parameters.
3579 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
3581 Update copyright years.
3583 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
3585 PR rtl-optimization/55672
3586 * lra-eliminations.c (mark_not_eliminable): Permit addition with
3587 const to be eliminable.
3589 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
3591 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
3592 * configure: Regenerate.
3594 2013-01-10 Richard Biener <rguenther@suse.de>
3596 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
3598 2013-01-10 Richard Biener <rguenther@suse.de>
3601 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
3602 locations for virtual PHI arguments.
3603 (rewrite_update_phi_arguments): Likewise.
3605 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
3607 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
3610 2013-01-10 Jakub Jelinek <jakub@redhat.com>
3612 PR tree-optimization/55921
3613 * tree-complex.c (expand_complex_asm): New function.
3614 (expand_complex_operations_1): Call it for GIMPLE_ASM.
3616 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3619 * config/s390/s390.c (s390_symref_operand_p)
3620 (s390_loadrelative_operand_p): Merge the two functions.
3621 (s390_check_qrst_address, print_operand_address): Add parameters
3622 to s390_loadrelative_operand_p invokation.
3623 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
3624 (s390_reload_larl_operand, s390_secondary_reload): Use
3625 s390_loadrelative_operand_p instead of s390_symref_operand_p.
3626 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
3628 2013-01-09 Mike Stump <mikestump@comcast.net>
3630 * dse.c (record_store): Remove unnecessary assert.
3632 2013-01-09 Jan Hubicka <jh@suse.cz>
3634 PR tree-optimization/55569
3635 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
3636 * cfgloop.h (scale_loop_profile): Likewise.
3638 2013-01-09 Jan Hubicka <jh@suse.cz>
3641 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
3643 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
3645 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
3648 * expr.h (maybe_emit_group_store): Declare.
3649 * expr.c (maybe_emit_group_store): New function.
3650 * builtins.c (expand_builtin_int_roundingfn): Call it.
3651 (expand_builtin_int_roundingfn_2): Likewise.
3653 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
3655 PR rtl-optimization/55829
3656 * lra-constraints.c (match_reload): Add code for absent output.
3657 (curr_insn_transform): Add code for reloads of matched inputs
3660 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
3662 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
3663 attribute of movddup insn to DF.
3664 (*vec_interleave_lowv2df): Ditto.
3665 (vec_dupv2df): Ditto.
3667 2013-01-09 Jan Hubicka <jh@suse.cz>
3669 PR tree-optimiation/55875
3670 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
3671 EVERY_ITERATION parameter.
3672 (number_of_iterations_exit): Check if exit is executed every iteration.
3673 (idx_infer_loop_bounds): Similarly here.
3674 (n_of_executions_at_most): Simplify
3675 to only test for cases where statement is dominated by the
3676 particular bound; handle correctly the "postdominance" test.
3677 (scev_probably_wraps_p): Use max loop iterations info
3678 as a global bound first.
3680 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3681 Nick Clifton <nickc@redhat.com>
3683 * config/v850/v850.md (cbranchsf4): New pattern.
3684 (cstoresf4): New pattern.
3685 (cbranchdf4): New pattern.
3686 (cstoredf4): New pattern.
3687 (movsicc): Disallow floating point comparisons.
3688 (cmpsf_le_insn): Fix order of operators.
3689 (cmpsf_lt_insn): Likewise.
3690 (cmpsf_eq_insn): Likewise.
3691 (cmpdf_le_insn): Likewise.
3692 (cmpdf_lt_insn): Likewise.
3693 (cmpdf_eq_insn): Likewise.
3694 (cmpsf_ge_insn): Use LE comparison.
3695 (cmpdf_ge_insn): Likewise.
3696 (cmpsf_gt_insn): Use LT comparison.
3697 (cmpdf_gt_insn): Likewise.
3698 (cmpsf_ne_insn): Delete pattern.
3699 (cmpdf_ne_insn): Delete pattern.
3700 * config/v850/v850.c (v850_gen_float_compare): Use
3701 gen_cmpdf_eq_insn for NE comparison.
3702 (v850_float_z_comparison_operator)
3703 (v850_float_nz_comparison_operator): Move from here ...
3704 * config/v850/predicates.md: ... to here. Move GT and GE
3705 comparisons into v850_float_z_comparison_operator.
3706 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
3708 (v850_float_nz_comparison_operator): Likewise.
3710 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3712 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
3713 with calls to gen_insvsi/gen_insvdi.
3715 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3717 * config/i386/i386.c (initial_ix86_tune_features): Set up
3718 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
3720 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
3721 Jakub Jelinek <jakub@redhat.com>
3723 PR tree-optimization/48189
3724 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
3725 If nitercst is 0, don't predict the exit edge.
3727 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3729 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
3730 in asm_fprintf with reg_names.
3731 (aarch64_print_operand_address): Likewise.
3732 (aarch64_return_addr): Likewise.
3733 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
3735 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3737 * config/pa/pa.h (VAL_U6_BITS_P): Define.
3738 (INT_U6_BITS): Likewise.
3739 * config/pa/predicates.md (uint6_operand): New predicate.
3740 (shift5_operand, shift6_operand): Likewise.
3741 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
3743 (lshrdi3): Use shift6_operand.
3744 (shrpsi4, shrpdi4): New insn patterns.
3745 (extzv): Delete expander.
3746 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
3747 predicates in unamed zero extract patterns. Tighten common constraint.
3748 (extv): Delete expander.
3749 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
3750 predicates in unamed sign extract patterns. Tighten common constraint.
3751 (insv): Delete expander.
3752 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
3753 predicates in unamed insert patterns. Tighten common constraint.
3754 Change uint32_operand predicate to uint6_operand predicate in unamed
3755 DImode pattern to insert constant values of type 1...1xxxx.
3757 2013-01-04 Jan Hubicka <jh@suse.cz>
3759 PR tree-optimization/55823
3760 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
3763 2013-01-08 Jakub Jelinek <jakub@redhat.com>
3764 Uros Bizjak <ubizjak@gmail.com>
3766 PR rtl-optimization/55845
3767 * df-problems.c (can_move_insns_across): Stop scanning at
3768 volatile_insn_p source instruction or give up if
3769 across_from .. across_to range contains any volatile_insn_p
3772 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
3774 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
3775 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
3777 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
3778 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
3780 2013-01-08 Jakub Jelinek <jakub@redhat.com>
3783 * asan.c (asan_clear_shadow): New function.
3784 (asan_emit_stack_protection): Use it.
3786 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
3788 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
3789 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
3790 with tab instead of space.
3792 2013-01-08 Nick Clifton <nickc@redhat.com>
3794 * config/rl78/rl78.c (rl78_expand_prologue): Always select
3795 register bank 0 at the start of an interrupt handler.
3796 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
3799 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
3801 * config/aarch64/aarch64-simd.md
3802 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
3803 (aarch64_simd_bsl): Likewise.
3804 (aarch64_vcond_internal<mode>): Likewise.
3805 (vcond<mode><mode>): Likewise.
3806 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
3807 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
3809 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
3811 * config/aarch64/aarch64-builtins.c
3812 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
3814 2013-01-08 Martin Jambor <mjambor@suse.cz>
3817 * tree-sra.c (analyze_access_subtree): Return true also after
3818 potentially creating a debug-only replacement.
3820 2013-01-08 Jakub Jelinek <jakub@redhat.com>
3823 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
3825 PR tree-optimization/54120
3826 * tree-vrp.c (range_fits_type_p): Don't allow
3827 src_precision < precision from signed vr to unsigned_p
3828 if vr->min or vr->max is negative.
3829 (simplify_float_conversion_using_ranges): Test can_float_p
3830 against CODE_FOR_nothing.
3832 2013-01-08 Jakub Jelinek <jakub@redhat.com>
3833 Richard Biener <rguenther@suse.de>
3836 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
3837 types instead of just INTEGER_TYPE types.
3839 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
3841 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
3844 2013-01-07 Steve Ellcey <sellcey@mips.com>
3847 * config/mips/mips.opt: Change mad to mmad to match documentation.
3849 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3852 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
3855 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3858 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
3859 (avr_addrspace_t): Add .section_name field.
3860 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
3862 (avr_addrspace): Same. Initialize .section_name. Remove last
3863 NULL entry. Put __memx into .progmemx.data.
3864 (progmem_section_prefix): Remove.
3865 (avr_asm_init_sections): No need to initialize progmem_section.
3866 (avr_asm_named_section): Use avr_addrspace[].section_name to get
3867 section name prefix.
3868 (avr_asm_select_section): Ditto. And use get_unnamed_section to
3869 retrieve the progmem section.
3870 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
3871 boundary to run over avr_addrspace[].
3872 (avr_register_target_pragmas): Ditto.
3874 2013-01-06 Jakub Jelinek <jakub@redhat.com>
3876 * varasm.c (output_constant_def_contents): For asan_protect_global
3877 protected strings, adjust DECL_ALIGN if needed, before testing for
3879 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
3880 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
3882 (output_object_block): For asan protected decls, emit asan padding
3883 after their contents.
3884 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
3885 (asan_finish_file): Test it here instead.
3887 2013-01-07 Nick Clifton <nickc@redhat.com>
3888 Matthias Klose <doko@debian.org>
3889 Doug Kwan <dougkwan@google.com>
3890 H.J. Lu <hongjiu.lu@intel.com>
3893 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
3895 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
3897 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
3899 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
3901 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
3903 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3906 * doc/install.texi (Cross-Compiler-Specific Options): Document
3909 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
3911 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
3912 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
3913 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
3914 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
3915 vqmovun_high_s64): Fix source operand number and update copyright.
3917 2013-01-07 Richard Biener <rguenther@suse.de>
3920 * gimple.h (gimple_call_builtin_p): New overload.
3921 * gimple.c (validate_call): New function.
3922 (gimple_call_builtin_p): Likewise.
3923 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3924 Use gimple_call_builtin_p.
3925 (find_func_clobbers): Likewise.
3926 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
3927 (strlen_optimize_stmt): Likewise.
3929 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
3931 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
3932 (vld1q_dup_*): Likewise.
3934 (vld1q_*): Likewise.
3935 (vld1_lane_*): Likewise.
3936 (vld1q_lane_*): Likewise.
3938 2013-01-07 Richard Biener <rguenther@suse.de>
3940 * lto-streamer.h (LTO_minor_version): Bump to 2.
3942 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
3944 * config/aarch64/aarch64-protos.h
3945 (aarch64_const_double_zero_rtx_p): Rename to...
3946 (aarch64_float_const_zero_rtx_p): ...this.
3947 (aarch64_float_const_representable_p): New.
3948 (aarch64_output_simd_mov_immediate): Likewise.
3949 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
3950 move immediate case.
3951 * config/aarch64/aarch64.c
3952 (aarch64_const_double_zero_rtx_p): Rename to...
3953 (aarch64_float_const_zero_rtx_p): ...this.
3954 (aarch64_print_operand): Allow printing of new constants.
3955 (aarch64_valid_floating_const): New.
3956 (aarch64_legitimate_constant_p): Check for valid floating-point
3958 (aarch64_simd_valid_immediate): Likewise.
3959 (aarch64_vect_float_const_representable_p): New.
3960 (aarch64_float_const_representable_p): Likewise.
3961 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
3962 (aarch64_output_simd_mov_immediate): New.
3963 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
3964 (*movdf_aarch64): Likewise.
3965 * config/aarch64/constraints.md (Ufc): New.
3966 (Y): call aarch64_float_const_zero_rtx.
3967 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
3969 2013-01-07 Richard Biener <rguenther@suse.de>
3971 PR tree-optimization/55888
3972 PR tree-optimization/55862
3973 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
3974 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
3975 not if it is contained therein.
3977 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3979 * config/avr/t-avr: Typo.
3981 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
3984 * config/avr/t-avr: Don't automatically rebuild
3985 $(srcdir)/config/avr/t-multilib
3986 $(srcdir)/config/avr/avr-tables.opt
3987 $(srcdir)/doc/avr-mmcu.texi
3988 (avr-mcus): New phony target to build them on request.
3989 (s-avr-mlib, s-avr-mmcu-texi): Remove.
3990 * avr/avr-mcus.def: Adjust comments.
3992 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
3994 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
3996 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
3998 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
4000 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
4002 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
4004 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
4006 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
4007 to generate profiling.
4008 * config/rs6000/aix64.h (LIB_SPEC): Same.
4010 2013-01-04 Andrew Pinski <apinski@cavium.com>
4012 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
4014 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
4016 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
4018 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
4020 (ix86_expand_move): Ditto.
4021 (ix86_zero_extend_to_Pmode): Ditto.
4022 (ix86_expand_call): Ditto.
4023 (ix86_expand_special_args_builtin): Ditto.
4024 (ix86_expand_builtin): Ditto.
4026 2013-01-04 Richard Biener <rguenther@suse.de>
4028 PR tree-optimization/55862
4029 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
4030 translating them through PHI nodes.
4032 2013-01-04 Martin Jambor <mjambor@suse.cz>
4034 PR tree-optimization/55755
4035 * tree-sra.c (sra_modify_assign): Do not check that an access has no
4036 children when trying to avoid producing a VIEW_CONVERT_EXPR.
4038 2013-01-04 Marek Polacek <polacek@redhat.com>
4041 * opts.c (default_options_optimization): Clarify error message.
4043 2013-01-04 Richard Biener <rguenther@suse.de>
4046 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
4049 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4052 * config/pa/pa.md (movsi): Revert previous change.
4053 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
4056 2013-01-03 Richard Henderson <rth@redhat.com>
4058 * config/i386/i386.c (ix86_expand_move): Always assign to op1
4059 after eliminating TLS symbols.
4061 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
4064 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
4065 * graphite-poly.c (debug_gmp_value): Likewise.
4067 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
4070 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
4071 selected code model, define __code_mode_small__, __code_model_medium__,
4072 __code_model_large__, __code_model_32__ or __code_model_kernel__.
4073 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
4074 xchg temporary register with %k. Declare temporary register as
4076 [__x86_64__]: For medium and large code models, preserve %rbx register.
4078 2013-01-03 Richard Biener <rguenther@suse.de>
4080 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
4081 (dump_subscript): Adjust.
4082 (finalize_ddr_dependent): Do not dump redundant info.
4083 (analyze_siv_subscript): Adjust.
4084 (subscript_dependence_tester): Likewise.
4085 (compute_affine_dependence): Likewise.
4087 2013-01-03 Richard Biener <rguenther@suse.de>
4090 2013-01-03 Richard Biener <rguenther@suse.de>
4092 PR tree-optimization/55857
4093 * tree-vect-stmts.c (vectorizable_load): Do not setup
4094 re-alignment for invariant loads.
4096 2013-01-02 Richard Biener <rguenther@suse.de>
4098 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
4099 invariant load do not generate a vector load from the scalar location.
4101 2013-01-03 Richard Biener <rguenther@suse.de>
4103 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
4104 for not vectorizing.
4105 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
4106 not build INDIRECT_REFs, call get_name once only.
4107 (vect_create_data_ref_ptr): Likewise. Dump base object kind
4108 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
4110 2013-01-03 Richard Biener <rguenther@suse.de>
4112 PR tree-optimization/55857
4113 * tree-vect-stmts.c (vectorizable_load): Do not setup
4114 re-alignment for invariant loads.
4116 2013-01-03 Richard Biener <rguenther@suse.de>
4119 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
4120 prefer a built-in decl.
4122 2013-01-03 Jakub Jelinek <jakub@redhat.com>
4124 * gcc.c (process_command): Update copyright notice dates.
4125 * gcov.c (print_version): Likewise.
4126 * gcov-dump.c (print_version): Likewise.
4128 PR rtl-optimization/55838
4129 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
4130 iv0.step, iv1.step and step.
4132 2013-01-03 Jakub Jelinek <jakub@redhat.com>
4133 Marc Glisse <marc.glisse@inria.fr>
4135 PR tree-optimization/55832
4136 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
4137 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
4138 integer_{one,zero}_node.
4140 2013-01-03 Jakub Jelinek <jakub@redhat.com>
4143 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
4144 * var-tracking.c (reverse_op): Don't add reverse ops to
4145 VALUEs that have already
4146 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
4148 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
4150 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
4152 2013-01-02 Teresa Johnson <tejohnson@google.com>
4154 * dumpfile.c (dump_loc): Print filename with location.
4155 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
4156 new location_t parameter to emit complete unroll message with
4158 (canonicalize_loop_induction_variables): Compute loops location
4159 and pass to try_unroll_loop_completely.
4160 * loop-unroll.c (report_unroll_peel): New function.
4161 (peel_loops_completely): Use new dump format with location
4162 for main dumpfile message, and invoke report_unroll_peel on success.
4163 (decide_unrolling_and_peeling): Ditto.
4164 (decide_peel_once_rolling): Remove old dumpfile message subsumed
4165 by report_unroll_peel.
4166 (decide_peel_completely): Ditto.
4167 (decide_unroll_constant_iterations): Ditto.
4168 (decide_unroll_runtime_iterations): Ditto.
4169 (decide_peel_simple): Ditto.
4170 (decide_unroll_stupid): Ditto.
4171 * cfgloop.c (get_loop_location): New function.
4172 * cfgloop.h (get_loop_location): Declare.
4174 2013-01-02 Sriraman Tallam <tmsriram@google.com>
4176 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
4179 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4182 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
4183 BLKmode objects when EXPAND_MEMORY is specified.
4185 2013-01-02 Sriraman Tallam <tmsriram@google.com>
4187 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
4189 (fold_builtin_cpu): Do not share cpu model decls across statements.
4191 2013-01-02 Jason Merrill <jason@redhat.com>
4194 * tree.c (build_array_type_1): Revert earlier change.
4196 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
4198 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
4200 * config/aarch64/aarch64-tune.md: Re-generate.
4202 2013-01-02 Richard Biener <rguenther@suse.de>
4204 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
4205 invariant load do not generate a vector load from the scalar location.
4207 2013-01-02 Richard Biener <rguenther@suse.de>
4210 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
4211 * configure: Regenerate.
4213 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4215 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
4216 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
4217 (expand_builtin_int_roundingfn_2): Keep the original target around
4218 for the fallback case.
4220 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4222 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
4223 to be clear for sign changes.
4225 2013-01-01 Jan Hubicka <jh@suse.cz>
4227 * ipa-inline-analysis.c: Fix formatting.
4229 2013-01-01 Jakub Jelinek <jakub@redhat.com>
4231 PR tree-optimization/55831
4232 * tree-vect-loop.c (get_initial_def_for_induction): Use
4233 gsi_after_labels instead of gsi_start_bb.
4235 Copyright (C) 2013 Free Software Foundation, Inc.
4237 Copying and distribution of this file, with or without modification,
4238 are permitted in any medium without royalty provided the copyright
4239 notice and this notice are preserved.