1 2012-04-06 Mike Stump <mikestump@comcast.net>
3 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
5 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
7 * config/sh/sh.c (hi_const): Remove.
8 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
11 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
13 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
15 * config/sh/sh.c (sh_expand_t_scc): Likewise.
16 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
17 calling sh_expand_t_scc.
19 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
21 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
22 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
23 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
24 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
25 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
26 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
27 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
28 sh2a_is_function_vector_call): Use bool as return type.
29 (sh_pass_in_reg_p): Remove.
30 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
31 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
32 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
33 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
34 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
35 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
36 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
37 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
38 sh_loads_bankedreg_p): Use bool as return type.
39 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
42 2012-04-06 Matt Turner <mattst88@gmail.com>
44 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
46 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
48 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
49 of the destination isn't also a FP_REGS register.
51 2012-04-05 Teresa Johnson <tejohnson@google.com>
52 H.J. Lu <hongjiu.lu@intel.com>
54 * config/i386/i386.h (ix86_tune_indices): Add
56 * config/i386/i386.md (move immediate to memory peephole2):
57 Add cases for HImode move when LCP stall avoidance is needed.
58 * config/i386/i386.c (initial_ix86_tune_features): Initialize
59 X86_TUNE_LCP_STALL entry.
61 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
64 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
65 CONST_INT operands, zero-extended with AND.
67 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
70 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
71 first argument instead of mode size. Move displacement calculations
73 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
74 ... these new functions.
75 (disp_adjust): Remove max_mov_disp field.
76 (sh_legitimate_index_p): Use max_mov_insn_displacement and
77 mov_insn_alignment_mask.
78 (sh_address_cost): Use max_mov_insn_displacement.
80 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
82 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
83 (arch_enabled): Handle new arch types.
84 (one_cmpldi2): Add NEON support.
86 2012-04-05 Richard Guenther <rguenther@suse.de>
88 * gimple.c (walk_gimple_op): Compute val_only for the LHS
89 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
90 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
91 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
92 ... here and make static.
93 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
96 2012-04-05 Richard Guenther <rguenther@suse.de>
98 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
99 basic-block before removing it.
101 2012-04-05 Richard Guenther <rguenther@suse.de>
103 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
104 version namespace as we release the freelist.
106 2012-04-05 Richard Guenther <rguenther@suse.de>
108 * tree-nrv.c (tree_nrv): Release VDEFs.
109 * tree-sra.c (sra_modify_constructor_assign): Likewise.
110 (sra_modify_assign): Likewise.
111 * tree-vect-stmts.c (vect_remove_stores): Likewise.
112 * tree-vect-loop.c (vect_transform_loop): Likewise.
113 * tree-ssa-dom.c (optimize_stmt): Likewise.
114 * tree-vect-slp.c (vect_schedule_slp): Likewise.
115 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
117 2012-04-05 Richard Guenther <rguenther@suse.de>
119 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
121 * gimple.h (gsi_remove): Adjust.
122 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
123 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
124 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
125 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
126 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
127 * tree-ssa-pre.c (eliminate): Likewise.
129 2012-04-04 Mike Stump <mikestump@comcast.net>
131 * doc/rtl.texi (const_double): Document as sign-extending.
132 * expmed.c (expand_mult): Ensure we don't use shift
134 * emit-rtl.c (immed_double_int_const): Refine to state the
136 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
137 CONST_DOUBLE integers.
138 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
139 negative values are converted. Fix conversions bigger than
140 HOST_BITS_PER_WIDE_INT.
141 (simplify_binary_operation_1): Ensure we don't use shift
143 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
144 * explow.c (plus_constant_mode): Add.
145 (plus_constant): Implement with plus_constant_mode.
146 * rtl.h (plus_constant_mode): Add.
148 2012-04-04 Richard Guenther <rguenther@suse.de>
150 PR tree-optimization/52808
151 * tracer.c (tail_duplicate): Do not tail-duplicate loop header
153 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
155 2012-04-04 Tristan Gingold <gingold@adacore.com>
157 * expr.c (expand_expr_real_2): Handle larger sizetype in
160 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
162 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
163 to m2a-single instead of m2e.
165 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
167 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
168 Change type of BITOFFSET to signed. Make sure the lower bound of
169 the computed range is non-negative by adjusting OFFSET and BITPOS.
170 (expand_assignment): Adjust call to get_bit_range.
172 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
174 * h8300/h8300.c (h8300_current_function_monitor_function_p):
175 New function. Added to check monitor functions.
176 (h8300_option_override): Modified to generate error/warning
177 messages for invalid combinations of different command line
179 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
180 save EXR on stack for monitor function in case of H8S target
181 when "-mno-exr" is passed.
182 * h8300/h8300-protos.h
183 (h8300_current_function_monitor_function_p): Add prototype.
184 * doc/invoke.texi: Document H8S options.
186 2012-04-03 Tristan Gingold <gingold@adacore.com>
188 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
189 of gcc_AC_FUNC_MMAP_BLACKLIST.
190 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
191 * Makefile.in (aclocal_deps): Add mmap.m4.
192 * configure: Regenerate.
193 * aclocal.m4: Regenerate.
195 2012-04-03 Richard Guenther <rguenther@suse.de>
197 PR tree-optimization/52808
198 * tracer.c (tail_duplicate): Return whether we have duplicated
200 (tracer): If we have duplicated any block, cleanup the CFG.
201 * cfghooks.c (duplicate_block): If we duplicated a loop
202 header but not its loop, destroy the loop because it now has
204 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
205 the cfg manipulation routines we are not creating a multiple
208 2012-04-03 Tristan Gingold <gingold@adacore.com>
210 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
212 (vms_c_common_override_options): Allow parameterless variadic
215 2012-04-03 Jakub Jelinek <jakub@redhat.com>
217 PR tree-optimization/52835
218 * tree-data-ref.c (build_rdg): Return NULL if
219 compute_data_dependences_for_loop failed.
221 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
223 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
224 for REAL_CST as well.
225 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
226 In the bitfield case, if the value is a REAL_CST, convert it first to
229 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
231 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
232 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
233 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
235 * config/i386/biarchx32.h: New.
237 2012-04-02 Anatoly Sokolov <aesok@post.ru>
239 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
240 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
241 (arm_preferred_reload_class): New function.
243 2012-04-02 Richard Guenther <rguenther@suse.de>
245 PR tree-optimization/52756
246 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
247 (thread_through_loop_header): After threading through the loop latch
248 remove the split part from the loop and clear further threading
249 opportunities that would create a multiple entry loop.
251 2012-04-02 Richard Guenther <rguenther@suse.de>
253 PR rtl-optimization/52800
254 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
257 2012-04-02 Richard Guenther <rguenther@suse.de>
260 * loop-init.c (gate_handle_loop2): Destroy loops here if
261 we don't enter RTL loop optimizers.
263 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
266 2012-03-29 Richard Guenther <rguenther@suse.de>
268 * rtl.h (extended_count): Remove.
269 * combine.c (extended_count): Remove.
271 2012-04-02 Dodji Seketeli <dodji@redhat.com>
274 * pt.c (more_specialized_fn): Don't apply decay conversion to
275 types of function parameters.
277 2012-04-02 Tristan Gingold <gingold@adacore.com>
279 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
280 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
281 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
282 (ggc_pch_this_base): Use uintptr_t instead of size_t.
284 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
287 * config/i386/i386.c (ix86_option_override_internal): Don't
288 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
290 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
292 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
293 (stmt_can_make_abnormal_goto): Use it.
294 (is_ctrl_altering_stmt): Likewise.
296 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
297 Kaz Kojima <kkojima@gcc.gnu.org>
299 * config/sh/sh.c (push_regs): Skip banked registers when
300 resbank attribute is specified.
301 (sh_expand_epilogue): Likewise.
303 2012-03-30 Richard Henderson <rth@redhat.com>
306 * combine-stack-adj.c (prev_active_insn_bb): New.
307 (next_active_insn_bb): New.
308 (force_move_args_size_note): New.
309 (combine_stack_adjustments_for_block): Use it.
311 2012-03-30 Richard Henderson <rth@redhat.com>
313 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
314 (ix86_expand_vector_init_duplicate): Initialize it.
315 (expand_vec_perm_palignr): Likewise.
316 (ix86_expand_vec_perm_const): Likewise.
317 (ix86_vectorize_vec_perm_const_ok): Likewise.
318 (expand_vec_perm_blend): Use it.
319 (expand_vec_perm_vpermil): Likewise.
320 (expand_vec_perm_pshufb): Likewise.
321 (expand_vec_perm_1): Likewise.
322 (expand_vec_perm_pshuflw_pshufhw): Likewise.
323 (expand_vec_perm_interleave2): Likewise.
324 (expand_vec_perm_vpermq_perm_1): Likewise.
325 (expand_vec_perm_vperm2f128): Likewise.
326 (expand_vec_perm_interleave3): Likewise.
327 (expand_vec_perm_vperm2f128_vblend): Likewise.
328 (expand_vec_perm_vpshufb2_vpermq): Likewise.
329 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
330 (expand_vec_perm_broadcast): Likewise.
331 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
333 2012-03-30 Richard Henderson <rth@redhat.com>
335 * dwarf2out.c (gen_variable_die): Initialize off.
337 2012-03-30 Tristan Gingold <gingold@adacore.com>
339 * config/vms/vms-f.c: New file.
340 * config/vms/t-vms (vms-f.o): New rule.
341 * config.gcc (*-*-*vms*): Define fortran_target_objs.
343 2012-03-30 Richard Guenther <rguenther@suse.de>
345 PR tree-optimization/52754
346 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
347 propagate arbitrary addresses into really plain dereferences.
349 2012-03-30 Richard Guenther <rguenther@suse.de>
352 * except.c (emit_to_new_bb_before): Move loop updating ...
353 (dw2_build_landing_pads): ... here. Use a proper block for
354 querying the loop father.
356 2012-03-30 Tristan Gingold <gingold@adacore.com>
358 * config/ia64/ia64.c (ia64_section_type_flags): Remove
359 common_object attribute handling.
360 (SECTION_VMS_OVERLAY): Remove
361 (ia64_vms_common_object_attribute): Replace abort with an assert.
362 Do not set DECL_SECTION_NAME.
363 (ia64_vms_output_aligned_decl_common): Handle common_object
365 (ia64_vms_elf_asm_named_section): Remove.
366 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
368 2012-03-30 Richard Guenther <rguenther@suse.de>
371 * double-int.c (rshift_double): Remove not needed cast.
373 2012-03-30 Richard Guenther <rguenther@suse.de>
375 * tree-affine.h (print_aff): Remove.
376 * tree-affine.c (print_aff): Make static.
377 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
378 (get_references_in_stmt): Likewise.
379 (print_direction_vector): Likewise.
380 (print_dir_vectors): Likewise.
381 (print_dist_vectors): Likewise.
382 (dump_subscript): Likewise.
383 (dump_ddrs): Likewise.
384 (dump_dist_dir_vectors): Likewise.
385 (dump_data_references): Likewise.
386 (dump_data_dependence_relation): Likewise.
387 (dump_data_dependence_direction): Likewise.
388 (dump_rdg_vertex): Likewise.
389 (dump_rdg_component): Likewise.
390 (debug_ddrs): Declare.
391 (struct data_ref_loc_d): Move ...
392 * tree-data-ref.c (struct data_ref_loc_d): ... here.
393 (get_references_in_stmt): Make static.
394 (dump_data_references): Likewise.
395 (dump_subscript): Likewise.
396 (print_direction_vector): Likewise.
397 (print_dir_vectors): Likewise.
398 (print_dist_vectors): Likewise.
399 (dump_data_dependence_relation): Likewise.
400 (dump_dist_dir_vectors): Likewise.
401 (dump_ddrs): Likewise.
402 (dump_rdg_vertex): Likewise.
403 (dump_rdg_component): Likewise.
404 (debug_ddrs): New function.
405 (access_matrix_get_index_for_parameter): Remove.
407 2012-03-30 Tristan Gingold <gingold@adacore.com>
409 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
410 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
411 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
412 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
413 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
414 (vms_patch_builtins): Handle new flags
415 * config/vms/vms-crtlmap.map: Completed using nm on
416 c and math system libraries.
417 * config/vms/make-crtlmap.awk: Handle any number of flags.
419 2012-03-30 Martin Jambor <mjambor@suse.cz>
421 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
422 is a builtin_stack_save in a dominating BB.
424 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
426 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
427 crossing 128bit lane boundary.
429 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
431 * ira-color.c (setup_left_conflict_sizes_p): Process all
434 2012-03-29 Jakub Jelinek <jakub@redhat.com>
436 PR tree-optimization/52760
437 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
438 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
440 2012-03-29 Richard Guenther <rguenther@suse.de>
442 * cgraph.h (cgraph_materialize_all_clones): Remove.
443 (reset_inline_failed): Likewise.
444 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
445 * cgraphbuild.c (reset_inline_failed): Remove.
446 * rtl.h (cse_main): Remove.
447 (extended_count): Likewise.
448 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
449 (cse_main): Make static.
450 * combine.c (extended_count): Remove.
451 (dump_combine_stats): Mark as DEBUG_FUNCTION.
452 * basic-block.h (reorder_basic_blocks): Remove.
453 * bb-reorder.c (reorder_basic_blocks): Make static.
454 * Makefile.in (dse.o): Remove dse.h dependency.
456 * dse.c (gate_dse): Remove.
457 (clear_alias_mode_eq): Likewise.
458 (clear_alias_mode_hash): Likewise.
459 (dse_record_singleton_alias_set): Likewise.
460 (dse_invalidate_singleton_alias_set): Likewise.
462 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
464 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
465 crtbegin_so%O%s for -shared.
466 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
468 2012-03-29 Richard Guenther <rguenther@suse.de>
470 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
471 (add_to_value): Remove.
472 (print_value_expressions): Likewise.
473 * tree-ssa-pre.c (add_to_value): Make static.
474 (print_value_expressions): Likewise.
475 * gimple.h (gimple_adjust_this_by_delta): Remove.
476 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
478 2012-03-29 Richard Guenther <rguenther@suse.de>
481 * double-int.h (rshift_double): Remove.
482 * double-int.c (lshift_double): Use absu_hwi to make count
484 (rshift_double): Make static, take unsigned count argument,
485 remove handling of negative count argument.
486 (double_int_rshift): Dispatch to lshift_double.
488 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
490 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
493 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
494 (SPEC_X32): Likewise.
495 (MULTILIB_DEFAULTS): Likewise.
497 * config/i386/i386.c (isa_opts): Remove -m64.
498 (ix86_target_string): Properly handle -m32/-m64/-mx32.
499 (ix86_option_override_internal): Properly
500 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
501 handle -m32, -m64 and -mx32.
503 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
504 with OPTION_ABI_X32. Moved after TARGET_LP64.
505 (TARGET_LP64): Changed to OPTION_ABI_64.
507 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
508 (mx32): Replace ISA_X32 with ABI_X32.
510 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
512 * tree.c (tree_size) <VECTOR_CST>: New case.
514 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
516 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
517 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
519 2012-03-28 Jakub Jelinek <jakub@redhat.com>
522 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
523 __builtin_va_start to __builtin_next_arg if the latter is
524 builtin_decl_explicit_p rather than when it is not.
527 * tree-vect-generic.c (vector_element): Perform multiplication
528 for pos in bitsizetype type instead of idx type.
530 2012-03-28 Richard Guenther <rguenther@suse.de>
532 * loop-init.c (loop_optimizer_init): If loops are preserved
533 perform incremental initialization of required loop features.
534 (loop_optimizer_finalize): If loops are to be preserved only
535 clean up optional loop features.
536 (rtl_loop_done): Forcefully free loops here.
537 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
538 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
540 (construct_init_block): Likewise.
541 (construct_exit_block): Likewise.
542 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
543 the CFG after expanding.
544 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
545 If we needed to calculate them, free them afterwards.
546 * tree-pass.h (PROP_loops): New define.
547 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
548 * basic-block.h (CLEANUP_CFG_CHANGED): New.
549 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
550 (cleanup_cfg): If we did something and have loops around, fix them up.
551 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
552 with CLEANUP_CFG_CHANGED.
553 * cfghooks.c (merge_blocks): If we merge a loop header into
554 its predecessor, update the loop structure.
555 (duplicate_block): If we copy a loop latch, adjust loop state
556 to note we may have multiple latches.
557 (delete_basic_block): Mark loops for fixup if we remove a loop.
558 * cfganal.c (forwarder_block_p): Protect loop latches, headers
560 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
561 (cfg_layout_can_merge_blocks_p): Likewise.
562 * cprop.c (bypass_block): If we create a loop with multiple
563 entries, mark it for removal.
564 * except.c (emit_to_new_bb_before): Add the new basic-block
566 * tree-eh.c (lower_resx): Likewise.
567 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
568 (expand_omp_taskreg): Likewise.
569 * tree-inline.c (initialize_cfun): Likewise.
570 * tree-mudflap.c (add_bb_to_loop): Prototype.
571 (mf_build_check_statement_for): Properly add new basic-blocks
573 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
575 (thread_through_loop_header): Likewise.
576 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
577 new basic-blocks to existing loops.
578 (expand_transaction): Likewise.
579 * Makefile.in (except.o): Add $(CFGLOOP_H).
581 (cgraph.o): Likewise.
583 (cfgexpand.o): Likewise.
584 (cfganal.o): Likewise.
585 (trans-mem.o): Likewise.
586 (tree-eh.o): Likewise.
588 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
591 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
592 (avr_builtin_decl): New static function.
593 (struct avr_builtin_description, avr_bdesc): Move up.
594 Add GTY marker. Add field fndecl. Remove redundant field id.
595 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
596 (avr_expand_builtin): Code cleanup because .id is removed.
598 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
601 * config.gcc (tm_file): Remove avr/multilib.h.
603 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
605 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
606 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
607 * config/avr/t-avr: Remove generation of multilib.h.
608 * config/avr/t-multilib: Regenerate.
609 * config/avr/multilib.h: Remove.
610 * config/avr/avr.opt (-msp8): New option.
611 (avr_sp8): New variable.
612 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
613 * config/avr/avr.h (AVR_HAVE_SPH): New define.
614 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
615 (avr_device_to_sp8): New prototype.
616 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
617 (DRIVER_SELF_SPECS): New define.
618 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
619 __AVR_SP8__, __AVR_HAVE_SPH__.
620 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
621 AVR_HAVE_8BIT_SP to decide if SP_H is present.
622 (avr_file_start): Ditto.
624 2012-03-28 Jakub Jelinek <jakub@redhat.com>
627 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
628 instead of 8 in adjust_address.
630 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
633 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
636 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
639 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
640 Rearrange conditional logic. Move displacement address calculations
642 (sh_find_mov_disp_adjust): ... this new function.
644 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
646 * config/arm/arm.opt (mapcs): Remove MaskExists.
647 * config/cris/linux.opt (mno-gotplt): Likewise.
648 * config/i386/i386.opt (mhard-float): Likewise.
650 (mno-sse4): Likewise.
651 * config/m68k/m68k.opt (mhard-float): Likewise.
652 * config/mep/mep.op (mcop32): Likewise.
653 * config/pa/pa-hpux.opt (msio): Likewise.
654 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
655 * config/picochip/picochip.opt (mlittle): Likewise.
656 * config/sh/sh.opt (mrenesas): Likewise.
657 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
658 * config/sparc/sparc.opt (mhard-float): Likewise.
659 * config/v850/v850.opt (mv850es): Likewise.
660 * config/vax/vax.opt (mg-float): Likewise.
662 2012-03-27 Martin Jambor <mjambor@suse.cz>
665 * tree-sra.c (sra_modify_assign): Do not call
666 load_assign_lhs_subreplacements when working with an unscalarizable
669 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
672 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
674 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
675 * config/i386/i386.c: Include reload.h.
676 (ix86_legitimize_reload_address): New function.
678 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
680 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
681 hasn't been allocated. Define a target macro for Mask and
682 InverseMask if it hasn't been defined. Remove MaskExists handling.
684 * doc/options.texi: Remove MaskExists.
686 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
689 * config/sh/sh.c (find_barrier): Add equality check of last_got
690 to avoid going above orig insn. Update comments.
692 2012-03-27 Richard Guenther <rguenther@suse.de>
695 * fold-const.c (try_move_mult_to_index): Handle &x.array more
698 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
700 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
701 of a unit before computing the offset in units.
702 * expr.c (get_bit_range): Return the null range if the enclosing record
703 is part of a larger bit field.
705 2012-03-27 Tristan Gingold <gingold@adacore.com>
707 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
708 * config/ia64/ia64.md: Remove mode in template.
709 Sign extend operand in expand_simple_binop.
710 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
711 CASE_VECTOR_MODE instead of TARGET_ILP32.
712 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
714 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
716 * varasm.c (assemble_external): #if 0 out the new assert from the
717 previous commit, it breaks the Java and Go front ends.
719 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
721 * toplev.c (check_global_declaration_1): Do not call assemble_external.
722 * expr.c (emit_block_move_libcall_fn): Likewise.
723 (clear_storage_libcall_fn): Likewise.
724 (expand_expr_addr_expr_1): Likewise.
725 (expand_expr_real_1): Likewise.
726 * calls.c (rtx_for_function_call): Likewise.
728 * varasm.c (assemble_external): Assert this function is only called
729 during or after expanding to RTL.
731 2012-03-26 Martin Jambor <mjambor@suse.cz>
733 PR tree-optimization/50052
734 * tree-sra.c (tree_non_aligned_mem_p): Removed.
735 (tree_non_aligned_mem_for_access_p): Likewise.
736 (build_accesses_from_assign): Removed strict alignment requirements
738 (access_precludes_ipa_sra_p): Likewise.
740 2012-03-26 Richard Guenther <rguenther@suse.de>
742 PR tree-optimization/52701
743 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
744 compute and set the evolution part of PHI nodes.
746 2012-03-26 Richard Guenther <rguenther@suse.de>
748 PR tree-optimization/52721
749 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
751 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
753 PR tree-optimization/52686
754 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
757 2012-03-26 Tristan Gingold <gingold@adacore.com>
759 * config/alpha/vms.h (LINK_SPEC): Simplify.
760 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
761 (NAME__MAIN, SYMBOL__MAIN): Remove.
762 (VMS_DEBUG_MAIN_POINTER): Remove.
763 * config/ia64/vms.h: Likewise.
764 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
765 code to vms.c. Call vms_start_function.
766 * config/ia64/ia64.c (ia64_start_function): Likewise.
767 * config/vms/vms-protos.h (vms_start_function): Declare.
768 * config/vms/vms.c (vms_start_function): New function.
769 * config/vms/vms.h (MATH_LIBRARY): Define.
770 (VMS_DEBUG_MAIN_POINTER): Define.
772 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
774 PR rtl-optimization/52629
775 * reload1.c (count_pseudo): Short-circuit common case.
776 (count_spilled_pseudo): Return early for pseudos without hard regs.
777 Assert that the pseudo has got a hard reg before manipulating it.
779 2012-03-24 Jan Hubicka <jh@suse.cz>
782 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
783 (decide_is_variable_needed): Do not handle toplevel reorder here.
784 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
785 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
788 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
790 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
791 and str_bitsize instead of more convoluted expressions.
793 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
796 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
798 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
801 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
803 2012-03-23 Martin Jambor <mjambor@suse.cz>
805 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
807 2012-03-23 Richard Guenther <rguenther@suse.de>
809 PR tree-optimization/52678
810 * tree-vectorizer.h (struct _stmt_vec_info): Add
811 loop_phi_evolution_part member.
812 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
813 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
814 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
815 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
816 Use the cached evolution part and the PHI nodes value from
817 the loop preheader edge instead of re-analyzing the evolution.
819 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
821 * config/mips/mips-tables.opt: Update.
822 * config/mips/mips.md (processor): Add xlp.
823 * config/mips/mips-cpus.def: Add xlp.
824 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
826 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
827 * doc/invoke.texi: Mention XLP.
829 2012-03-22 Jakub Jelinek <jakub@redhat.com>
832 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
833 on any new_local_var_chain vars declared during recursing on
834 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
836 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
838 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
839 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
840 (ASM_OUTPUT_LOCAL): Ditto.
841 (ASM_OUTPUT_COMMON): Remove.
842 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
843 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
845 2012-03-22 Jan Hubicka <jh@suse.cz>
848 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
850 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
851 * ipa-inline-transform.c (save_inline_function_body): Remove
852 copied clone if needed.
853 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
855 2012-03-22 Richard Guenther <rguenther@suse.de>
858 * fold-const.c (fold_ternary_loc): Fix typo.
860 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
863 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
864 (unspecv): Add UNSPECV_MEMORY_BARRIER.
865 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
866 (delay_cycles_1, delay_cycles_2): Ditto.
867 (delay_cycles_3, delay_cycles_4): Ditto.
868 (nopv, *nopv): Ditto.
869 (sleep, *sleep): Ditto.
872 2012-03-22 Richard Guenther <rguenther@suse.de>
874 PR tree-optimization/52548
875 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
877 (prune_clobbered_mems): New function.
878 (compute_antic_aux): Use it to prune ANTIC_OUT.
879 (compute_partial_antic_aux): Use it to prune PA_IN.
880 (compute_avail): Only insert expressions into EXP_GEN that are not
881 invalidated when translated up to the beginning of the block.
883 2012-03-22 Richard Guenther <rguenther@suse.de>
885 PR tree-optimization/52638
886 * tree-vect-stmts.c (vect_init_vector_1): New function, split
888 (vect_init_vector): ... here. Handle scalar vector inits.
889 (vect_get_vec_def_for_operand): Adjust.
890 (vectorizable_load): Likewise.
892 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
894 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
895 (alpha*-*-freebsd*): Ditto.
896 (alpha*-*-netbsd*): Ditto.
897 (alpha*-*-openbsd*): Ditto.
898 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
899 (DWARF2_DEBUGGING_INFO): Remove.
900 (PREFERRED_DEBUGGING_TYPE): Remove.
901 (ASM_FINAL_SPEC): Remove.
902 (IDENT_ASM_OP): Remove.
903 (ASM_OUTPUT_IDENT): Remove.
904 (SKIP_ASM_OP): Remove.
905 (ASM_OUTPUT_SKIP): Remove.
906 (ALIGN_ASM_OP): Remove.
907 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
908 (ASM_OUTPUT_CASE_LABEL): Remove.
909 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
910 (COMMON_ASM_OP): Remove.
911 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
912 (ASCII_DATA_ASM_OP): Remove.
913 (READONLY_DATA_SECTION_ASM_OP): Remove.
914 (INIT_SECTION_ASM_OP): Remove.
915 (FINI_SECTION_ASM_OP): Remove.
916 (ASM_SECTION_START_OP): Remove.
917 (ASM_OUTPUT_SECTION_START_FILE): Remove.
918 (TARGET_ASM_NAMED_SECTION): Remove.
919 (TARGET_ASM_SELECT_SECTION): Remove.
920 (MAKE_DECL_ONE_ONLY): Remove.
921 (TYPE_ASM_OP): Remove.
922 (SIZE_ASM_OP): Remove.
923 (ASM_WEAKEN_LABEL): Remove.
924 (TYPE_OPERAND_FMT): Remove.
925 (ASM_DECLARE_RESULT): Remove.
926 (ASM_DECLARE_OBJECT_NAME): Remove.
927 (ASM_FINISH_DECLARE_OBJECT): Remove.
928 (ELF_ASCII_ESCAPES): Remove.
929 (ELF_STRING_LIMIT): Remove.
930 (STRING_ASM_OP): Remove.
931 (ASM_OUTPUT_EXTERNAL): Remove.
932 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
933 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
935 (ASM_DECLARE_FUNCTION_NAME): Ditto.
936 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
937 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
938 (ASM_OUTPUT_SKIP): Ditto.
939 (READONLY_DATA_SECTION_ASM_OP): Remove.
940 (USER_LABEL_PREFIX): Remove.
941 (ASM_OUTPUT_ASCII): Remove.
942 (ASM_OUTPUT_CASE_LABEL): Remove.
943 (NO_DOLLAR_IN_LABEL): Undefine.
945 2012-03-22 Richard Guenther <rguenther@suse.de>
947 PR tree-optimization/52459
948 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
949 PHI insertion for calls.
951 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
953 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
954 find_sets_in_insn, canonicalize_insn): Split out from ...
955 (cse_insn): ... here.
956 (invalidate_from_clobbers): Take an insn instead of the pattern.
958 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
961 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
962 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
963 * config/sh/sh.md (sindf2, cosdf2): Remove.
965 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
968 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
969 prologue for unwinder and profiler.
971 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
973 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
974 Introduce emul_name to select the right linker emulation for
975 powerpc64-*-freebsd*.
976 * configure: Regenerate.
977 * config.gcc: Add bits to support powerpc64-*-freebsd*.
978 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
979 * config/rs6000/freebsd64.h: New file.
980 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
982 (rs6000_savres_strategy): Likewise.
983 (rs6000_savres_routine_name): Likewise.
984 (rs6000_elf_file_end): Likewise.
985 * config/rs6000/t-freebsd64: New file.
986 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
987 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
989 * config/rs6000/freebsd64.h: Remove duplicated entries from last
991 * config/rs6000/t-freebsd64: Likewise.
993 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
995 PR rtl-optimization/52543
997 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
998 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
999 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
1000 (avr_load_libgcc_p): Restrict to __flash loads.
1001 (avr_out_lpm): Only handle 1-byte loads from __flash.
1002 (avr_load_lpm): New function.
1003 (avr_find_unused_d_reg): Remove.
1004 (avr_out_lpm_no_lpmx): Remove.
1005 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
1006 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
1007 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
1008 (load_<mode>, load_<mode>_clobber): New insns.
1009 (mov<mode>): For multi-byte move from non-generic
1010 16-bit address spaces: Expand to load_<mode> resp.
1011 load_<mode>_clobber.
1012 (load<mode>_libgcc): Remove expander.
1013 (split-lpmx): Remove split.
1015 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
1017 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
1018 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
1019 All callers changed.
1020 (Fixed_core_reg): New feature.
1021 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
1023 * neon-testgen.ml: Handle Fixed_core_reg.
1025 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
1027 * config/arm/arm.c (thumb2_reorg): Add complete support
1028 for 16-bit instructions.
1029 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
1031 2012-03-21 Richard Guenther <rguenther@suse.de>
1033 PR tree-optimizer/52636
1034 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
1035 to the appropriate type.
1037 2012-03-21 Richard Guenther <rguenther@suse.de>
1039 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
1041 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
1042 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
1043 * passes.c (init_optimization_passes): Remove pass_init_function,
1044 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
1045 * tree-pass.h (pass_init_function): Remove.
1046 (pass_jump): Remove.
1047 (pass_initial_value_sets): Remove.
1048 (pass_unshare_all_rtl): Remove.
1049 * integrate.c (pass_initial_value_sets): Remove.
1050 * emit-rtl.c (pass_unshare_all_rtl): Remove.
1051 * tree.h (init_function_for_compilation): Remove.
1052 * function.c (init_function_for_compilation): Remove.
1053 (pass_init_function): Remove.
1054 * cfgcleanup.c (rest_of_handle_jump): Remove.
1055 (pass_jump): Remove.
1057 2012-03-20 Jason Merrill <jason@redhat.com>
1059 * tree-streamer-in.c (streamer_alloc_tree): Call
1060 ggc_alloc_zone_cleared_tree_node instead of
1061 ggc_alloc_zone_cleared_tree_node_stat.
1063 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
1065 * doc/extend.texi (Template Instantiation): Remove anachronisms.
1067 2012-03-20 Jakub Jelinek <jakub@redhat.com>
1070 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
1071 (ix86_expand_vec_perm_const_1): Call it.
1073 * config/i386/i386.c (vselect_insn): New variable.
1074 (init_vselect_insn): New function.
1075 (expand_vselect, expand_vselect_insn): Add testing_p argument.
1076 Call init_vselect_insn if vselect_insn is NULL. Adjust
1077 PATTERN (vselect_insn), instead of creating a new insn each time,
1078 only emit a copy of it if not testing and recog has been successful.
1079 (expand_vec_perm_pshufb, expand_vec_perm_1,
1080 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
1084 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
1085 ("enabled" attribute): Handle avx2 and noavx2 isas.
1086 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
1088 (vec_dup<mode>): Add avx2 =x,x alternative.
1089 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
1090 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
1091 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
1092 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
1094 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
1095 if possible, handle also V8SFmode.
1097 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
1099 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
1100 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
1101 reg_or_zero_operand predicate.
1102 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
1104 2012-03-20 Jakub Jelinek <jakub@redhat.com>
1106 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
1107 If operand isn't UNSPEC, return 0.
1109 2012-03-20 Richard Guenther <rguenther@suse.de>
1111 * tree-pass.h (pass_rtl_eh): Remove.
1112 * except.c (gate_handle_eh): Likewise.
1113 (rest_of_handle_eh): Likewise.
1114 (pass_rtl_eh): Likewise.
1115 (finish_eh_generation): Export.
1116 * except.h (finish_eh_generation): Declare.
1117 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
1118 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
1119 after expanding stack alignment. Instead of compacting blocks
1122 2012-03-20 Richard Guenther <rguenther@suse.de>
1124 * stor-layout.c (finish_bitfield_representative): Fallback
1125 to conservative maximum size if the padding up to the next
1126 field cannot be computed as a constant.
1127 (finish_bitfield_layout): If we cannot compute the distance
1128 between the start of the bitfield representative and the
1129 bitfield member start a new representative.
1130 * expr.c (get_bit_range): The distance between the start of
1131 the bitfield representative and the bitfield member is zero
1132 if the field offsets are not constants.
1134 2012-03-20 Tristan Gingold <gingold@adacore.com>
1136 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
1137 convert in lowercase.
1138 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
1139 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
1140 * stor-layout.c (sizetype_tab): Adjust.
1141 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
1142 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
1143 instead of type_kind_last.
1144 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
1145 instead of size_int_kind.
1146 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
1147 * doc/tm.texi: Regenerate.
1148 * defaults.h (SIZETYPE): Provide a default value.
1149 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
1152 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
1154 * config/sh/sh.md: Use braced string notation where applicable.
1156 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
1158 * config/i386/i386.md (allocate_stack): Simplify.
1160 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
1162 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
1163 copy_to_mode_reg (Pmode, ...).
1164 (expand_builtin_frame_address): Ditto.
1165 * expr.c (emit_block_move_via_libcall): Ditto.
1166 (set_storage_via_libcall): Ditto.
1168 * config/i386/i386.c (ix86_expand_movmem): Ditto.
1169 (ix86_expand_setmem): Ditto.
1170 (ix86_trampoline_init): DItto.
1171 * config/i386/i386.md (cmpstrnsi): Ditto.
1173 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
1175 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
1176 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
1177 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
1178 (SH Options): Likewise.
1180 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
1182 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
1183 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
1184 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
1185 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
1186 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
1189 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1191 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
1192 * config/i386/i386.c (ix86_decompose_address): Use
1193 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
1194 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
1195 thread pointer to a register.
1198 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
1200 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
1201 if Pmode != word_mode.
1202 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
1203 Pmode == SImode for TARGET_X32.
1205 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
1206 (tls_initial_exec_x32): Likewise.
1208 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
1211 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
1212 DISP_ADDR_OFFSET): New macros.
1213 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
1214 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
1215 (sh_legitimize_address): Add QImode displacement handling.
1216 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
1218 (sh_secondary_reload): Add QImode displacement handling.
1219 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
1220 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
1221 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
1222 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
1223 to register operands only.
1224 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
1225 (extendqihi2): Change insn to expander.
1226 (*extendqihi2_compact_reg): New insn.
1227 (movqi_i, movqi): Replace with ...
1228 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
1229 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
1230 Add new peepholes for QImode displacement addressing.
1232 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1235 * doc/invoke.texi: Document -Wuseless-cast.
1237 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
1239 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
1240 * tree.h (handled_component_p): Reorder cases.
1241 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
1242 not initialize unsignedp.
1243 (loc_list_from_tree): Likewise.
1244 (fortran_common): Likewise.
1245 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1247 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
1249 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
1250 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
1251 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
1252 (ix86_split_long_move): Ditto.
1253 (legitimize_tls_address): Use ix86_gen_sub3.
1254 (construct_plt_address): Assert that Pmode == DImode.
1256 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
1258 * config/i386/i386.md: Remove empty predicates and/or constraints.
1259 * config/i386/sync.md: Ditto.
1260 * config/i386/sse.md: Ditto.
1261 * config/i386/mmx.md: Ditto.
1262 * config/i386/pentium.md: Ditto.
1263 * config/i386/athlon.md: Ditto.
1265 2012-03-16 Richard Guenther <rguenther@suse.de>
1267 PR tree-optimization/52603
1268 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
1272 2012-03-14 Richard Guenther <rguenther@suse.de>
1274 PR tree-optimization/52571
1275 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1276 flag_section_anchors check ...
1277 (vect_can_force_dr_alignment_p): ... here.
1279 2012-03-16 Martin Jambor <mjambor@suse.cz>
1281 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
1282 memory through MEM_REFs by calling extract_bit_field.
1284 2012-03-16 Richard Guenther <rguenther@suse.de>
1286 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
1287 and REFERENCE_TYPE interpretations.
1288 (can_native_interpret_type_p): New function.
1289 (fold_ternary_loc): Use native encode/interpret to fold
1290 BIT_FIELD_REFs of constants.
1292 2012-03-16 Richard Guenther <rguenther@suse.de>
1295 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
1296 of vector constants and constructors.
1298 2012-03-16 Richard Guenther <rguenther@suse.de>
1300 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
1301 VIEW_CONVERT_EXPR to convert constants.
1302 (vect_is_simple_use): Treat all constants as vec_constant_def.
1304 2012-03-16 Richard Guenther <rguenther@suse.de>
1305 Kai Tietz <ktietz@redhat.com>
1308 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
1309 side-effects completely in the pre-queue and use a temporary
1312 2012-03-16 Richard Guenther <rguenther@suse.de>
1314 * stor-layout.c (finish_bitfield_representative): Fall back
1315 to the conservative maximum size if we cannot compute the
1316 size of the tail padding.
1318 2012-03-16 Tristan Gingold <gingold@adacore.com>
1320 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
1321 __CRTL_VER and __VMS_VER.
1322 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
1323 and vms_c_get_vms_ver.
1324 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
1326 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
1327 (VMS_DEFAULT_VMS_VER): Define.
1328 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
1329 (VMS_DEFAULT_VMS_VER): Define.
1331 2012-03-16 Richard Guenther <rguenther@suse.de>
1333 * tree-vect-loop.c (get_initial_def_for_induction): Use
1334 build_constructor directly.
1335 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
1336 build_vector_from_val.
1337 * tree.c (build_vector_from_val): Avoid creating a constructor
1338 first when we want a constant vector.
1340 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1342 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
1344 2012-03-16 Richard Guenther <rguenther@suse.de>
1346 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
1347 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
1348 (struct tree_vector): Remove elements member, add variable size
1350 (build_vector_stat): Declare.
1351 (build_vector): Define in terms of build_vector_stat.
1352 * tree.c (build_vector): Rename to ...
1353 (build_vector_stat): ... this. Take array of trees as parameter.
1354 (build_vector_from_ctor): Adjust.
1355 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
1356 initializer_zerop): Adjust.
1357 * cfgexpand.c (expand_debug_expr): Likewise.
1358 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
1359 const_vector_from_tree): Likewise.
1360 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
1361 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
1362 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
1363 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
1364 (lto_input_ts_vector_tree_pointers): Adjust.
1365 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
1366 (write_ts_vector_tree_pointers): Adjust.
1367 * varasm.c (const_hash_1, compare_constant, copy_constant,
1368 output_constant): Adjust.
1369 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
1370 * print-tree.c (print_node): Adjust.
1371 * tree-pretty-print.c (dump_generic_node): Adjust.
1372 * tree-vect-generic.c (uniform_vector_p, vector_element,
1373 lower_vec_perm): Adjust.
1374 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
1375 * tree-vect-slp.c (vect_get_constant_vectors,
1376 vect_transform_slp_perm_load): Adjust.
1377 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
1378 * expmed.c (make_tree): Adjust.
1379 * config/i386/i386.c (ix86_expand_builtin): Adjust.
1380 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
1382 (sparc_fold_builtin): Adjust.
1384 2012-03-16 Tristan Gingold <gingold@adacore.com>
1386 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
1387 * config/vms/vms-stdint.h: New file.
1389 2012-03-16 Tristan Gingold <gingold@adacore.com>
1391 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
1392 (ia64-hp-*vms*): Replaced by ...
1393 (*-*-*vms*): ... This new entry.
1395 2012-03-15 Jakub Jelinek <jakub@redhat.com>
1398 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
1399 (ix86_expand_vec_perm_const_1): Use it.
1402 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
1403 (avx2_permv4df): Remove.
1404 (avx2_permv4di): Macroize into...
1405 (avx2_perm<mode>): ... this using VI8F_256 iterator.
1406 (avx2_permv4di_1): Macroize into...
1407 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
1409 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1411 * combine.c (apply_distributive_law): Do not distribute SUBREG.
1413 2012-03-15 Ira Rosen <irar@il.ibm.com>
1414 Ulrich Weigand <ulrich.weigand@linaro.org>
1416 * tree-vect-patterns.c (widened_name_p): Rename to ...
1417 (type_conversion_p): ... this. Add new argument to determine
1418 if it's a promotion or demotion operation. Check for
1419 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
1420 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
1422 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
1423 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
1425 (vect_recog_mixed_size_cond_pattern): Likewise and allow
1426 non-constant then and else clauses.
1428 2012-03-15 Ira Rosen <irar@il.ibm.com>
1429 Ulrich Weigand <ulrich.weigand@linaro.org>
1431 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
1432 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
1434 * tree-vect-patterns.c (widened_name_p): Pass basic block
1435 info to vect_is_simple_use.
1436 (vect_recog_dot_prod_pattern): Fail for basic blocks.
1437 (vect_recog_widen_sum_pattern): Likewise.
1438 (vect_handle_widen_op_by_const): Support basic blocks.
1439 (vect_operation_fits_smaller_type,
1440 vect_recog_over_widening_pattern): Likewise.
1441 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
1442 Update call to vect_is_simple_use.
1443 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
1445 (check_bool_pattern): Add an argument, update call to
1446 vect_is_simple_use and the recursive calls.
1447 (vect_recog_bool_pattern): Update relevant function calls.
1449 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
1450 (vect_pattern_recog_1): Check for reduction only in loops.
1451 (vect_pattern_recog): Add new argument. Support basic blocks.
1452 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
1453 info to vect_is_simple_use_1.
1454 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
1455 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
1457 2012-03-15 Jakub Jelinek <jakub@redhat.com>
1458 Andrew Pinski <apinski@cavium.com>
1461 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
1462 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
1463 calls instead of __builtin_ir{int,ound}*.
1465 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1467 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
1470 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1472 * config.gcc (target_type_format_char): New. Document it. Set it for
1474 * configure.ac (gnu_unique_option): Use target_type_format_char
1475 in test. Comment rationale.
1476 * configure: Regenerate .
1478 2012-03-15 Jakub Jelinek <jakub@redhat.com>
1480 PR tree-optimization/52267
1481 * tree-vrp.c (masked_increment): New function.
1482 (register_edge_assert_for_2): Derive ASSERT_EXPRs
1483 from (X & CST1) cmp CST2 tests.
1485 2012-03-15 Richard Guenther <rguenther@suse.de>
1488 * tree-data-ref.c (subscript_dependence_tester_1): Check
1489 all dimensions for non-conflicting access functions.
1491 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1494 * doc/invoke.texi [C++ Language Options]: Document
1495 -ftemplate-backtrace-limit.
1497 2012-03-15 Tristan Gingold <gingold@adacore.com>
1499 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
1502 2012-03-15 Tristan Gingold <gingold@adacore.com>
1504 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
1505 use DW_OP_call_frame_cfa.
1507 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
1510 * config/i386/i386-opts.h (pmode): New.
1512 * config/i386/i386.c (ix86_option_override_internal): Properly
1513 check and set ix86_pmode.
1515 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
1517 * config/i386/i386.opt (maddress-mode=): New.
1519 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
1521 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1523 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
1524 (dwarf2out_do_cfi_asm): Likewise.
1525 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
1527 (add_data_member_location_attribute): Likewise.
1528 (gen_array_type_die): Likewise.
1529 (gen_subprogram_die): Likewise.
1530 (gen_producer_string): Likewise.
1531 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
1532 Remove MIPS_DEBUGGING_INFO handling.
1533 (sdb_debug_hooks): Likewise.
1534 (sdbout_begin_block): Likewise.
1535 (sdbout_end_block): Likewise.
1536 (sdbout_begin_prologue): Likewise.
1537 (sdbout_start_source_file): Likewise.
1538 (sdbout_end_source_file): Likewise.
1539 (sdbout_init): Likewise.
1540 * system.h (MIPS_DEBUGGING_INFO): Poison.
1542 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1544 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
1545 (alpha_file_start) [MS_STAMP]: Remove.
1547 * config/alpha/elf.h (TARGET_GAS): Remove.
1548 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
1549 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
1550 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
1551 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
1552 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
1553 (alpha*-*-freebsd*): Likewise.
1554 (alpha*-*-netbsd*): Likewise.
1555 (alpha*-*-openbsd*): Likewise.
1556 (alpha*-*-*): Remove target_cpu_default2.
1557 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
1559 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
1560 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
1561 * config/alpha/alpha.c (print_operand): Always assume
1562 TARGET_AS_SLASH_BEFORE_SUFFIX.
1563 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
1564 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
1565 ("*builtin_setjmp_receiver_er_1"): Remove.
1566 * config/alpha/alpha.opt (malpha-as): Remove.
1568 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
1570 Remove DEC Unix reference.
1572 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
1573 (EXTENDED_COFF): Remove.
1574 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
1575 (EXTENDED_COFF): Don't undef.
1576 * config/alpha/alpha.c (alpha_file_start): Always assume
1578 Don't set targetm.asm_file_start_file_directive.
1579 [!OBJECT_FORMAT_ELF]: Remove.
1580 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
1582 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
1583 (DBX_DEBUGGING_INFO): Remove.
1584 (MIPS_DEBUGGING_INFO): Remove.
1585 (PREFERRED_DEBUGGING_TYPE): Remove.
1586 (DBX_OUTPUT_SOURCE_LINE): Remove.
1587 (SDB_OUTPUT_SOURCE_LINE): Remove.
1588 (DBX_CONTIN_LENGTH): Remove.
1589 (NO_DBX_FUNCTION_END): Remove.
1590 (ASM_STABS_OP): Remove.
1591 (ASM_STABN_OP): Remove.
1592 (ASM_STABD_OP): Remove.
1593 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
1594 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
1595 (PUT_SDB_DEF): Remove.
1596 (PUT_SDB_PLAIN_DEF): Remove.
1597 (PUT_SDB_TYPE): Remove.
1598 (sdb_label_count): Remove.
1599 (PUT_SDB_BLOCK_START): Remove.
1600 (PUT_SDB_BLOCK_END): Remove.
1601 (PUT_SDB_FUNCTION_START): Remove.
1602 (PUT_SDB_FUNCTION_END): Remove.
1603 (PUT_SDB_EPILOGUE_END): Remove.
1604 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
1605 (MIPS_DEBUGGING_INFO): Don't undef.
1606 (DBX_DEBUGGING_INFO): Don't undef.
1607 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
1608 (MIPS_DEBUGGING_INFO): Don't undef.
1609 (DBX_DEBUGGING_INFO): Don't undef.
1610 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
1611 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
1613 (alpha_start_function): Likewise.
1614 (sdb_label_count): Remove.
1615 (alpha_output_filename): Remove DBX_DEBUG handling.
1616 (alpha_file_start): Likewise.
1618 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1620 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
1621 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
1622 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
1624 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
1625 (ld_tls_support): Remove Solaris 8 references.
1626 (lwp_dir, lwp_spec): Remove support for alternate thread library.
1627 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
1628 * configure: Regenerate.
1629 * config.in: Regenerate.
1631 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
1632 * config/i386/sol2.h: Remove Solaris 8 references.
1634 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
1635 (i?86-*-solaris2.9): ... this.
1636 Remove Solaris 8 references.
1637 (Specific, *-*-solaris2*): Document Solaris 8 removal.
1638 Remove Solaris 8 references.
1640 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1642 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
1643 (mips-sgi-irix6.5*): Remove.
1644 * config.host (mips-sgi-irix*): Remove.
1645 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
1646 (set_have_as_tls): Remove *-*-irix6*.
1647 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
1648 * configure: Regenerate.
1650 * config/mips/iris6.h: Remove.
1651 * config/mips/iris6.opt: Remove.
1652 * config/mips/t-irix6: Remove.
1654 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
1655 (TARGET_IRIX6): Remove.
1656 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
1657 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
1658 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
1660 (mips_file_start): Likewise.
1661 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
1663 * config/mips/driver-native.c [__sgi__]: Remove.
1664 (host_detect_local_cpu) [__sgi__]: Remove.
1666 * config/mips/gnu-user.h: Remove iris5.h reference.
1668 * config/mips/mips-modes.def: Remove IRIX 6 reference.
1669 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
1670 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
1673 * gcc.c (main): Move asm_debug initialization ...
1674 (asm_debug): ... here.
1676 * ginclude/stddef.h (__STDDEF_H__): Don't define.
1678 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
1679 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
1680 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
1681 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
1682 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
1683 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
1685 * doc/tm.texi: Regenerate.
1687 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
1689 (MIPS Options, -march): Remove IRIX reference.
1690 * doc/install.texi (Binaries, SGI IRIX): Remove.
1691 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
1693 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
1695 2012-03-14 Martin Jambor <mjambor@suse.cz>
1697 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
1698 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
1699 (expand_expr_real_1): Do not handle misalignment if modifier is
1702 2012-03-14 Richard Guenther <rguenther@suse.de>
1705 * tree-vect-generic.c (type_for_widest_vector_mode): Take
1706 element type instead of mode, use build_vector_type_for_mode
1707 instead of the langhook, build a vector of proper signedness.
1708 (expand_vector_operations_1): Adjust.
1710 2012-03-14 Richard Guenther <rguenther@suse.de>
1713 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
1714 a cgraph node for a FUNCTION_DECL that comes from a constructor.
1715 (gimple_get_virt_method_for_binfo): Likewise.
1717 2012-03-14 Richard Guenther <rguenther@suse.de>
1719 PR tree-optimization/52571
1720 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1721 flag_section_anchors check ...
1722 (vect_can_force_dr_alignment_p): ... here. Do not re-align
1723 DECL_COMMON variables.
1725 2012-03-14 Richard Guenther <rguenther@suse.de>
1727 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
1728 * stor-layout.c (start_bitfield_representative): New function.
1729 (finish_bitfield_representative): Likewise.
1730 (finish_bitfield_layout): Likewise.
1731 (finish_record_layout): Call finish_bitfield_layout.
1732 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
1733 for QUAL_UNION_TYPE fields.
1734 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
1735 Stream DECL_BIT_FIELD_REPRESENTATIVE.
1736 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
1741 * expr.c (get_bit_range): Unconditionally extract bitrange
1742 from DECL_BIT_FIELD_REPRESENTATIVE.
1743 (expand_assignment): Adjust call to get_bit_range.
1745 2012-03-14 Richard Guenther <rguenther@suse.de>
1748 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
1749 the outermost conversion is a sign-change only.
1750 (fold_binary_loc): Disregard widening and sign-changing
1751 conversions when we determine if two variables are equal
1753 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
1754 (T1)x if the outermost conversion is a sign-change only.
1756 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
1759 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
1761 * config/i386/predicates.md (constant_call_address_operand): Declare
1762 as special predicate. Update all uses.
1764 2012-03-13 Jakub Jelinek <jakub@redhat.com>
1767 * c-parser.c (c_parser_postfix_expression)
1768 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
1770 * config/i386/smmintrin.h: Avoid /* within a comment.
1771 * config/i386/nmmintrin.h: Likewise.
1773 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1775 * config/i386/i386.md (xbegin): Remove constraint from expander.
1777 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1779 * config/i386/predicates.md (constant_call_address_operand): Declare
1780 as special predicate. Update all uses.
1781 * config/i386/i386.md: Remove mode from constant_call_address_operand
1783 * config/i386/i386.c (ix86_output_call_insn): Call
1784 constant_call_address_operand with VOIDmode.
1786 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1788 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
1789 AND zero extended address correctly.
1791 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1793 * config/i386/predicates.md (tls_symbolic_operand): Declare as
1795 (tls_modbase_operand): Ditto.
1796 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
1797 tls_modbase_operand predicates.
1799 2012-03-13 Martin Jambor <mjambor@suse.cz>
1801 * expr.c (expand_assignment): Handle misaligned scalar writes to
1802 memory through top-level MEM_REFs by calling store_bit_field.
1804 2012-03-13 Richard Guenther <rguenther@suse.de>
1807 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
1808 if Y is a constant multiple of 1 << CST.
1810 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
1813 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
1814 offset (size) to a value the insns can deal with.
1815 (expand_epilogue): Ditto.
1817 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1819 * config/arm/neon.ml (ops): Fixup expected instructions for
1820 unsigned vector compares.
1822 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1824 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
1825 addresses only when %reg is not in word mode.
1827 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1829 * config/microblaze/microblaze.md: Fix typo.
1830 * tree-if-conv.c: Likewise.
1831 * tree-vect-patterns.c: Likewise.
1833 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1835 * config.gcc (extra_passes): Remove.
1836 * configure.ac (extra_passes): Don't substitute.
1837 * configure: Regenerate.
1838 * Makefile.in (EXTRA_PASSES): Remove.
1839 (GCC_PASSES): Remove $(EXTRA_PASSES).
1840 (MOSTLYCLEANFILES): Likewise.
1842 (install-common): Likewise.
1844 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1846 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
1847 * config/i386/i386.c (ix86_decompose_address): Use
1848 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
1849 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
1850 thread pointer to a register.
1852 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
1854 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
1855 on tls_symbolic_operand.
1856 (tls_global_dynamic_64_<mode>): Likewise.
1858 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
1861 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
1862 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
1864 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
1867 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
1868 type from reg_class_t to enum reg_class.
1869 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
1871 2012-03-12 Andrew Pinski <apinski@cavium.com>
1873 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
1874 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
1875 (value_replacement): Likewise.
1876 (empty_block_p): Check also if the PHIs for the block are empty.
1878 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
1881 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
1882 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
1883 r184615 from 2012-02-28.
1885 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
1887 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
1888 (ix86_gen_tls_local_dynamic_base_64): Likewise.
1889 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
1890 and ix86_gen_tls_local_dynamic_base_64.
1891 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
1892 ix86_gen_tls_local_dynamic_base_64.
1894 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
1895 (*tls_global_dynamic_64_<mode>): This.
1896 (tls_global_dynamic_64): Renamed to ...
1897 (tls_global_dynamic_64_<mode>): This.
1898 (*tls_local_dynamic_base_64): Renamed to ...
1899 (*tls_local_dynamic_base_64_<mode>): This.
1900 (tls_local_dynamic_base_64): Renamed to ...
1901 (tls_local_dynamic_base_64_<mode>): This.
1903 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
1905 * config/i386/i386.c (ix86_option_override_internal): Properly
1906 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
1907 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
1908 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
1909 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
1911 * config/i386/sse.md (sse3_monitor64): Renamed to ...
1912 (sse3_monitor64_<mode>): This.
1914 2012-03-12 Tristan Gingold <gingold@adacore.com>
1916 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
1917 (ia64_function_arg_advance): Ditto.
1919 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1921 * config.gcc (mips*-*-openbsd*): Remove.
1922 * config/mips/openbsd.h: Remove.
1923 * config/mips/sdb.h: Remove.
1925 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
1926 * config/mips/mips.c (sdb_label_count): Remove.
1927 (mips_debugger_offset): Remove #if 0 code.
1928 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
1929 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
1931 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1933 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
1935 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
1936 Update binutils references.
1937 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
1938 Update binutils reference.
1939 Update Sun as/GNU ld caveat.
1940 Document binutils largefile requirement for LTO plugin.
1941 Remove reference to alternate libpthread.
1943 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1945 * config.gcc (alpha*-dec-osf5.1*): Remove.
1946 * config.host (alpha*-dec-osf*): Remove.
1947 * configure.ac (*-*-osf*): Remove.
1948 (alpha*-dec-osf*): Remove.
1949 * configure: Regenerate.
1951 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
1952 config/alpha/va_list.h, config/alpha/x-osf: Remove.
1954 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
1955 * config/alpha/alpha.c (struct machine_function): Update comment.
1956 (alpha_start_function): Remove Tru64 UNIX as handling for
1958 * config/alpha/alpha.md ("exception_receiver"): Remove
1959 TARGET_LD_BUGGY_LDGP.
1960 ("*exception_receiver_2"): Likewise.
1961 * except.c (finish_eh_generation): Remove Tru64 reference.
1962 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
1963 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
1964 * target.def (handle_pragma_extern_prefix): Remove.
1966 * Makefile.in (mips-tfile.o-warn): Remove.
1967 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
1968 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
1969 * mips-tdump.c, mips-tfile.c: Remove.
1971 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
1973 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
1974 (Specific, alpha*-dec-osf5.1): Note removal.
1975 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
1977 * doc/tm.texi: Regenerate.
1978 * doc/trouble.texi (Cross-Compiler Problems): Remove.
1980 2012-03-12 Richard Guenther <rguenther@suse.de>
1982 * config/arm/arm.c (neon_dereference_pointer): Do not call
1983 covert during RTL expansion.
1985 2012-03-12 Tristan Gingold <gingold@adacore.com>
1987 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
1988 Options. Mention -mpointer-size.
1990 2012-03-12 Richard Guenther <rguenther@suse.de>
1992 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
1993 build_nonstandard_integer_type.
1995 2012-03-12 Richard Guenther <rguenther@suse.de>
1997 * tree.c (signed_or_unsigned_type_for): Use
1998 build_nonstandard_integer_type.
1999 (signed_type_for): Adjust documentation.
2000 (unsigned_type_for): Likewise.
2001 * tree-pretty-print.c (dump_generic_node): Use standard names
2002 for non-standard integer types if available.
2004 2012-03-12 Tristan Gingold <gingold@adacore.com>
2006 * config/vms/vms.opt: Add vms-opts.h header.
2007 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
2009 (-mvms-return-codes): Document.
2010 (-mpointer-size): New option.
2011 (vms_pointer_size): Add enumeration.
2012 * config/vms/vms-opts.h: New file.
2013 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
2014 __INITIAL_POINTER_SIZE.
2015 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
2016 (C_COMMON_OVERRIDE_OPTIONS): Define.
2017 (DWARF2_ADDR_SIZE): Define.
2018 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
2019 * config/vms/vms-protos.h (vms_c_common_override_options):
2021 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
2022 if -mno-pointer-size.
2023 (vms_c_common_override_options): New function.
2024 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
2025 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
2026 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
2027 and flag_vms_pointer_size.
2028 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
2029 * config.gcc (*-*-*vms*): Define xm_file.
2030 (alpha*-dec-*vms*): Do not define xm_file.
2031 (alpha64-dec-*vms*): Remove.
2032 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
2035 2012-03-12 Jakub Jelinek <jakub@redhat.com>
2037 PR tree-optimization/51721
2038 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
2039 if (int) unsvar cmp CST.
2041 2012-03-12 Richard Guenther <rguenther@suse.de>
2043 * tree-sra.c (create_access_replacement): Only rename the replacement
2044 if we can rewrite it into SSA form. Properly mark register typed
2045 replacements that we cannot rewrite with TREE_ADDRESSABLE.
2046 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
2047 for aggregate or BLKmode results.
2049 2012-03-12 Jakub Jelinek <jakub@redhat.com>
2051 PR tree-optimization/52533
2052 * tree-vrp.c (register_edge_assert_for_2): Use double_int
2053 type for mask, only handle shifts by non-zero in-range
2054 shift count, for LE_EXPR and GT_EXPR if new_val is
2055 maximum, don't add the assertion.
2057 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
2059 * doc/invoke.texi: Document -mrtm option.
2060 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
2061 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
2062 (ix86_handle_option): Handle OPT_mrtm.
2063 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
2065 (x86_64-*-*): Ditto.
2066 * i386-builtin-types.def (INT_FTYPE_VOID): New.
2067 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2069 (ix86_target_string): Define -mrtm option.
2071 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
2073 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
2074 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
2076 (bdesc_special_args): Ditto.
2077 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
2078 (ix86_expand_special_args_builtin): Handle new built-in type.
2079 (ix86_expand_builtin): Handle XABORT instruction.
2080 * config/i386/i386.h (TARGET_RTM): New.
2081 * config/i386/i386.md (UNSPECV_XBEGIN): New.
2082 (UNSPECV_XEND): Ditto.
2083 (UNSPECV_XABORT): Ditto.
2084 (UNSPECV_XTEST): Ditto.
2091 * config/i386/i386.opt (mrtm): New.
2092 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
2093 * config/i386/rtmintrin.h: New header.
2094 * config/i386/xtestintrin.h: Ditto.
2096 2012-03-12 Tristan Gingold <gingold@adacore.com>
2098 * ginclude/stddef.h: Adjust previous patch.
2099 Use __VMS__ instead of VMS.
2101 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
2103 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
2104 Also convert sequences with CC setting arithmetic instruction.
2106 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
2108 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
2109 from C Language Options to Preprocessor Options.
2110 (C Dialect Options): Move -no-integrated-cpp documentation
2112 (Preprocessor Options): ...to here. Rewrite the description
2113 so it makes more sense, and remove discussion of merging front ends.
2115 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2117 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
2119 (ix86_expand_setmem): Likewise.
2121 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
2123 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
2126 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2128 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
2129 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
2131 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2133 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
2135 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2137 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
2140 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2141 Uros Bizjak <ubizjak@gmail.com>
2143 * config/i386/predicates.md (call_insn_operand): Allow
2144 constant_call_address_operand in Pmode only.
2145 (sibcall_insn_operand): Ditto.
2146 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
2147 (*call_vzeroupper): Ditto.
2149 (*sibcall_vzeroupper): Ditto.
2150 (*call_value): Ditto.
2151 (*call_value_vzeroupper): Ditto.
2152 (*sibcall_value): Ditto.
2153 (*sibcall_value_vzeroupper): Ditto.
2154 (*indirect_jump): Ditto.
2155 (*tablejump_1): Ditto.
2156 (indirect_jump): Convert memory address to word mode for TARGET_X32.
2158 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
2161 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
2164 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
2165 Use movrt_negc instead of negc pattern for non-SH2A.
2167 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
2169 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
2171 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
2172 if Pmode != word_mode.
2173 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
2174 Pmode == SImode for TARGET_X32.
2176 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
2177 (tls_initial_exec_x32): Likewise.
2179 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
2181 PR rtl-optimization/52528
2182 * combine.c (can_combine_p): Add setting of subst_low_luid
2183 before call to expand_field_assignment().
2185 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
2187 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
2188 and related program names.
2190 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
2192 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
2194 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
2197 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
2198 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
2200 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
2201 (*movdi_internal_rex64): Use %E operand modifier for lea.
2202 (*movsi_internal): Ditto.
2204 (*lea<mode>_2): Ditto.
2205 (*lea_{3,4,5,6}_zext): Ditto.
2206 (*tls_global_dynamic_32_gnu): Ditto.
2207 (*tls_global_dynamic_64): Ditto.
2208 (*tls_dynamic_gnu2_lea_32): Ditto.
2209 (*tls_dynamic_gnu2_lea_64): Ditto.
2210 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
2212 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2214 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
2215 redefine to be NULL if the current bit-size is different from the
2216 configured bit-size.
2218 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
2219 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
2220 set the default tuning. Add asserts to make sure the cpu and tune
2221 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
2222 test whether the index is set, instead of > 0.
2223 (rs6000_file_start): Do not reset the default cpu if the current
2224 bit-size is different from the configured bit-size.
2226 2012-03-09 Tristan Gingold <gingold@adacore.com>
2228 * config/vms/vms-crtlmap.map: Add comments.
2229 Add entries needed to build Ada RTS.
2231 2012-03-09 Tristan Gingold <gingold@adacore.com>
2233 * ginclude/stddef.h: Do not define __size_t on VMS.
2235 2012-03-09 Tristan Gingold <gingold@adacore.com>
2237 * c-tree.h (c_default_pointer_mode): New variable.
2238 * c-decl.c (c_default_pointer_mode): New variable.
2239 (c_build_pointer_type): New function.
2240 (grokdeclarator): Call c_build_pointer_type instead
2241 of build_pointer_type.
2243 * config/vms/vms-c.c: Include c-tree.h
2244 (saved_pointer_mode): New variable.
2245 (handle_pragma_pointer_size): New function.
2246 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
2247 (vms_c_register_pragma): Register __pointer_size and
2248 __required_pointer_size pragmas.
2250 2012-03-09 Tristan Gingold <gingold@adacore.com>
2252 * config/vms/vms-c.c (vms_construct_include_filename): New function.
2253 (vms_c_register_includes): Reference it.
2255 2012-03-09 Andrew Pinski <apinski@cavium.com>
2258 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
2260 (tree_ssa_phiopt_worker): Go through all the PHIs for
2261 value_replacement instead of just the singleton one.
2262 (value_replacement): Change return type to int. Return 0 instead of
2264 Allow the middle basic block to contain more than just the defining
2266 Handle non empty middle basic blocks.
2267 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
2269 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
2271 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
2272 array reference and component reference.
2273 (analyze_scalar_evolution_for_address_of): New.
2275 2012-03-08 Jie Zhang <jzhang918@gmail.com>
2278 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
2279 (hwloop_pattern_reg): Fix set but not used warning.
2280 (bfin_reorg_loops): Remove unused parameter.
2281 (bfin_reorg): Update use of bfin_reorg_loops.
2283 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
2285 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
2286 with integer parameters in registers.
2287 (gen_push): Push register in word_mode instead of Pmode.
2288 (ix86_emit_save_regs): Likewise.
2289 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
2290 (gen_pop): Pop register in word_mode instead of Pmode.
2291 (ix86_emit_restore_regs_using_pop): Likewise.
2292 (ix86_expand_prologue): Replace Pmode with word_mode for push
2293 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
2294 restore RAX and R10 in word_mode.
2295 (ix86_emit_restore_regs_using_mov): Restore integer registers
2297 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
2299 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
2300 (ix86_split_long_move): Likewise.
2302 * config/i386/i386.md (W): New.
2303 (*push<mode>2_prologue): Replace :P with :W.
2304 (*pop<mode>1): Likewise.
2305 (*pop<mode>1_epilogue): Likewise.
2306 (push/pop peephole2): Use word_mode scratch registers.
2308 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
2310 * config/i386/predicates.md (indirect_branch_operand): Simplify.
2312 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
2314 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
2315 for constants in [-63,63].
2317 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
2321 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
2323 * config/i386/i386.c (ix86_print_operand_address): Only handle
2324 zero-extended DImode addresses.
2326 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2328 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
2329 * configure: Regenerate.
2331 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
2334 * config/avr/avr.c (avr_mem_clobber): New static function.
2335 (avr_expand_delay_cycles): Add memory clobber operand to
2336 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
2337 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
2338 (enable_interrupt, disable_interrupt): New expander.
2339 (nopv, sleep, wdr): New expanders.
2340 (delay_cycles_1): Add memory clobber.
2341 (delay_cycles_2): Add memory clobber.
2342 (delay_cycles_3): Add memory clobber.
2343 (delay_cycles_4): Add memory clobber.
2344 (cli_sei): New insn from former "enable_interrupt",
2345 "disable_interrupt" with memory clobber.
2346 (*wdt): New insn from former "wdt" with memory clobber.
2347 (*nopv): Similar, but for "nopv".
2348 (*sleep): Similar, but for "sleep".
2350 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
2351 Kaz Kojima <kkojima@gcc.gnu.org>
2354 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
2355 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
2356 (SUBTARGET_OVERRIDE_OPTIONS): Define.
2358 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
2360 * config/i386/predicates.md (x86_64_zext_general_operand): New.
2361 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
2362 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
2364 2012-03-07 Walter Lee <walt@tilera.com>
2366 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
2367 REG_CFA_* notes for the stack pointer.
2368 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
2369 EH_RETURN_STACKADJ_RTX.
2370 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
2371 generate REG_CFA_* notes for the stack pointer.
2372 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
2373 by EH_RETURN_STACKADJ_RTX.
2375 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2377 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
2378 when __AVR_3_BYTE_PC__ is defined.
2380 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
2382 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
2383 (ix86_print_operand): Handle '^'.
2384 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
2385 using P mode iterator. Add %^ to asm template to conditionally emit
2387 (*rep_movdi_rex64): Ditto.
2388 (*strsetdi_rex_1): Ditto.
2389 (*rep_stosdi_rex64): Ditto.
2390 (*strmov{si,hi,qi}_1): Add %^ to asm template to
2391 conditionally emit addr32 prefix.
2392 (*rep_mov{si,qi}): Ditto.
2393 (*strset{si,hi,qi}): Ditto.
2394 (*rep_stos{si,qi}): Ditto.
2395 (*cmpstrnqi_nz_1): Ditto.
2396 (*cmpstrnqi_1): Ditto.
2397 (*strlenqi_1): Ditto.
2399 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
2401 * config/i386/i386.c (function_value_64): Return pointers in
2402 word_mode instead of Pmode.
2403 (ix86_promote_function_mode): Likewise.
2405 2012-03-07 Richard Guenther <rguenther@suse.de>
2407 * coverage.c (get_gcov_type): Use type_for_mode.
2408 (get_gcov_unsigned_t): Likewise.
2409 * expr.c (store_constructor): Use type_for_mode.
2410 (try_casesi): Likewise.
2411 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
2412 (add_standard_iv_candidates): Use standard type trees.
2413 * dojump.c (do_jump): Remove dead code.
2415 2012-03-07 Richard Guenther <rguenther@suse.de>
2417 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
2419 2012-03-07 Richard Guenther <rguenther@suse.de>
2421 * convert.c (strip_float_extensions): Move ...
2422 * tree.c (strip_float_extensions): ... here.
2424 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2427 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
2429 2012-03-07 Richard Guenther <rguenther@suse.de>
2431 * omp-low.c (extract_omp_for_data): Use signed_type_for.
2432 (expand_omp_for_generic): Likewise.
2433 (expand_omp_for_static_nochunk): Likewise.
2434 (expand_omp_for_static_chunk): Likewise.
2435 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
2436 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
2437 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2438 Use unsigned_type_for.
2439 (vect_create_cond_for_align_checks): Use signed_type_for.
2441 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
2443 PR rtl-optimization/52203
2444 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
2445 all callers to pass NULL except ...
2446 (reset_sched_cycles_in_current_ebb): ... here, save the value
2447 in new variable 'empty'. Increase issue_rate only for
2450 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
2453 * Makefile.in: Let install-gcc-ar depend on installdirs,
2454 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
2455 Don't double canonicalize if cross-compiling.
2457 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2460 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
2461 to: RAMPZ, RAMPY, RAMPX, RAMPD.
2462 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
2464 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2467 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
2469 * config/avr/avr.md (xload_8): Adjust insn length.
2471 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2474 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
2475 if RAMPZ affects reading from RAM.
2477 2012-03-07 Richard Guenther <rguenther@suse.de>
2481 * doc/invoke.texi (Precompiled Headers): Remove sentence that
2482 suggests you can include PCHs from inside another header.
2484 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
2487 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
2489 2012-03-07 Kai Tietz <ktietz@redhat.com>
2491 * doc/invoke.texi (fwritable-relocated-rdata): Document
2492 new Cygwin/MinGW target option.
2493 * config/i386/winnt.c (i386_pe_unique_section): Ignore
2494 reloc if flag -fwritable-relocated-rdata is not set.
2495 (i386_pe_section_type_flags): Likewise.
2496 * config/i386/cygming.opt (fwritable-relocated-rdata):
2497 Add new flag variable flag_writable_rel_rdata.
2499 2012-03-07 Richard Guenther <rguenther@suse.de>
2501 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
2502 precision against gimple constraints.
2504 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
2507 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
2509 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
2510 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
2512 (init_emit_regs): Move associated initialization to...
2513 (init_emit_once): ...here.
2515 2012-03-06 Richard Henderson <rth@redhat.com>
2517 * config/m68k/m68k.h (ISA_HAS_TAS): New.
2518 * config/m68k/sync.md (atomic_test_and_set): Use it.
2519 (atomic_test_and_set_1): Likewise.
2521 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2524 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
2525 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
2526 (vector_ltgt<mode>): Likewise.
2527 (vector_ordered<mode>): Likewise.
2528 (vector_unordered<mode>): Likewise.
2529 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
2531 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
2533 * trans-mem.c: New typedef for tm_region_p.
2534 Define vector types for tm_region_p.
2535 (tm_region_init): Replace region_worklist to a vector called
2538 2012-03-06 Richard Guenther <rguenther@suse.de>
2540 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
2541 MEM_REF with constant pointer operand.
2543 2012-03-06 Richard Guenther <rguenther@suse.de>
2546 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
2548 2012-03-06 Tristan Gingold <gingold@adacore.com>
2550 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
2551 (external_model_kind): Improve documentation.
2552 (vms_pragma_extern_model): Handle relaxed_redef.
2553 (vms_c_register_pragma): Allow expansion for nomember_alignment.
2555 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
2557 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
2558 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
2559 Some more notes on EIND usage and reorder EIND subsection.
2561 2012-03-06 Tristan Gingold <gingold@adacore.com>
2563 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
2564 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
2566 2012-03-06 Tristan Gingold <gingold@adacore.com>
2568 * config/vms/t-vmsnative (version): Define.
2569 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
2571 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
2573 PR rtl-optimization/52250
2574 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
2575 to put note list into. Unconditionally call move_bb_info.
2576 (move_bb_info): Do not assert the blocks being in the same region,
2577 just drop the note list if they are not.
2579 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
2582 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
2583 and use unified expansion logic.
2584 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
2585 closer to the existing movt insn.
2586 (negc): Rename insn to *negc. Add new expander.
2587 (movnegt): Use xor pattern for T bit negation. Reserve helper
2588 constant for negc pattern.
2589 (*movnegt): New insn and splitter.
2591 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
2593 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
2596 2012-03-05 Richard Henderson <rth@redhat.com>
2598 * genemit.c (main): Include "target.h" in insn-emit.c.
2599 * Makefile.in (insn-emit.o): Depend on TARGET_H.
2600 * config/sh/sync.md (atomic_test_and_set): Reference
2601 targetm.atomic_test_and_set_trueval instead of
2602 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
2604 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
2606 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
2609 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
2611 * langhooks.c (add_builtin_type): New function.
2612 * langhooks.h (add_builtin_type): Export it.
2613 * config/mep/mep.c (mep_init_builtins): Use it.
2614 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
2616 2012-03-05 Jakub Jelinek <jakub@redhat.com>
2619 * tree.h (BLOCK_SAME_RANGE): Define.
2620 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
2621 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
2622 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
2623 isn't equal to supercontext fragment's fragment chain.
2624 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
2626 (blocks_nreverse_all): Likewise.
2627 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
2628 BLOCK_SUPERCONTEXT to supercontext fragment instead of
2629 supercontext fragment's fragment origin.
2630 * dwarf2out.c (add_high_low_attributes): If stmt has the same
2631 range as its parent (or parents thereof etc.), use the parent's
2632 DW_AT_ranges value instead of creating a new .debug_ranges range.
2634 2012-03-05 Richard Henderson <rth@redhat.com>
2637 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
2638 * omp-low.c (expand_omp_atomic): Assume anything aligned to
2639 BIGGEST_ALIGNMENT is aligned.
2641 2012-03-05 Richard Henderson <rth@redhat.com>
2643 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
2644 * config/sh/sh.c: ... here.
2646 2012-03-05 Richard Henderson <rth@redhat.com>
2649 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
2650 instead of calling negqi2 directly.
2652 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
2655 * trans-mem.c (tm_region_init): Use last_basic_block.
2657 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
2659 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
2660 * config/sh/sync.md (atomic_test_and_set): New expander.
2661 (tasb, atomic_test_and_set_soft): New insns.
2662 * config/sh/sh.opt (menable-tas): New option.
2663 * doc/invoke.texi (SH Options): Document it.
2665 2012-03-05 Richard Guenther <rguenther@suse.de>
2667 * cfgloop.c (verify_loop_structure): Verify dominators before
2669 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
2670 dominators from here.
2671 * graphite-scop-detection.c (create_sese_edges): Likewise.
2672 * loop-doloop.c (doloop_optimize_loops): Likewise.
2673 * loop-init.c (loop_optimizer_init): Likewise.
2674 * loop-unroll.c (unroll_and_peel_loops): Likewise.
2675 * loop-unswitch.c (unswitch_loops): Likewise.
2676 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
2677 * tree-parloops.c (parallelize_loops): Likewise. Verify
2678 only when checking is enabled.
2679 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
2681 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
2683 * genautomata.c (parse_automata_opt): New static function.
2684 (initiate_automaton_gen): Remove all option handling code. Remove
2685 argc argument. All callers changed.
2686 (main): Call init_rtx_reader_args_cb with the new function as argument.
2688 2012-03-05 Richard Guenther <rguenther@suse.de>
2690 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
2691 * tree-if-conv.c (combine_blocks): Free post-dominator info
2693 * tree-parloops.c (create_parallel_loop): Free and re-compute
2694 dominator info after breaking it.
2696 2012-03-05 Richard Guenther <rguenther@suse.de>
2699 * optabs.h (trapv_unoptab_p): New function.
2700 (trapv_binoptab_p): Likewise.
2701 * optabs.c (expand_binop): Use emit_libcall_block_1 with
2702 a proper equiv_may_trap argument.
2703 (expand_unop): Likewise.
2704 (emit_libcall_block_1): Take extra argument whether the
2705 instruction may trap. Renamed from ...
2706 (emit_libcall_block): ... this. New wrapper.
2708 2012-03-05 Jakub Jelinek <jakub@redhat.com>
2710 PR tree-optimization/51721
2711 * tree-vrp.c (register_edge_assert_for_2): If comparing
2712 lhs of right shift by constant with an integer constant,
2713 add ASSERT_EXPRs for the rhs1 of the right shift.
2715 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
2717 2012-03-05 Richard Guenther <rguenther@suse.de>
2719 * tree.c (integer_zerop): Handle VECTOR_CSTs.
2720 (integer_onep): Likewise.
2721 (integer_all_onesp): Likewise.
2723 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
2725 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
2727 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
2729 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
2730 instead of TARGET_64BIT.
2732 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
2734 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
2737 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
2739 * config/i386/i386.c (ix86_print_operand_address): Only handle
2740 zero-extended DImode addresses.
2742 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
2744 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
2745 taken and cputaken as bool.
2747 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
2749 * config/i386/constraints.md (Ya): New internal constraint.
2750 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
2751 (*zero_extendsidi2_rex64): Add x,x alternative.
2752 (*zero_extendsidi2): Ditto. Add o,0 alternative.
2753 Remove flags reg clobber. Adjust corresponding splits.
2754 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
2755 zero_extendqisi2 expanders using SWI12 mode iterator.
2756 (zero_extend<mode>si2_and): Macroize insn from
2757 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
2759 (*zero_extend<mode>si2): Macroize insn from
2760 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
2761 (*zero_extend*2_movzbl_and): Remove insn patterns.
2762 (zero_extendqihi2_and): Merge corresponding splitter.
2763 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
2764 (*zero_extend*2_movzbl_and): Remove insn patterns.
2765 (*anddi_1): Split TYPE_IMOVX instructions.
2766 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
2768 (and->zext splitter): Add splitter pattern.
2769 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
2771 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
2773 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
2775 (Debugging Options): Likewise.
2776 (Optimize Options): Likewise.
2777 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
2778 with other architectures. Use official processor names with correct
2779 spelling/capitalization. Fix formatting and grammar issues.
2780 (i386 and x86-64 Windows Options): Similar cleanup here.
2782 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
2784 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
2786 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
2788 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
2789 DBX_REGISTER_NUMBER.
2791 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
2793 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
2794 operand is CONST_INT. Take COSTS_N_INSNS into account.
2795 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
2798 2012-03-02 Richard Henderson <rth@redhat.com>
2800 * optabs.c (expand_atomic_test_and_set): Honor
2801 atomic_test_and_set_trueval even when atomic_test_and_set
2802 optab is not in use.
2804 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
2808 * config/sh/sh.c (sh_register_move_cost): Increase cost between
2809 GENERAL_REGS and FP_REGS for SImode.
2811 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
2814 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
2815 (absdi2): New expander.
2816 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
2818 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
2820 * config/sh/sync.md (atomic_exchange<mode>): New expander.
2821 (atomic_exchange<mode>_soft): New insn.
2823 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
2825 * config/sh/sync.md: Update copyright notice dates.
2826 (atomic_compare_and_swap<mode>): Use SImode for return value instead
2828 (atomic_compare_and_swap<mode>_soft): Likewise.
2830 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
2833 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
2834 * config/sh/sh.c: Update copyright notice dates.
2835 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
2836 alignment for TARGET_HARD_SH4.
2837 (sh_option_override): Reduce default function alignment. Set
2838 loop alignment to 4 bytes when not optimizing for size.
2840 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
2843 * doc/invoke.texi (floop-flatten): Remove.
2844 * toplev.c (process_options): Remove references to flag_loop_flatten.
2845 * tree-ssa-loop.c (gate_graphite_transform): Same.
2846 * common.opt (floop-flatten): Obsolete.
2847 * graphite-poly.c (apply_poly_transforms): Remove reference to
2849 * Makefile.in (graphite-flattening.o): Remove.
2850 * graphite-flattening.c: Remove.
2852 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
2854 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
2855 having mode compatible with the mode of previous compare. Substitute
2856 compare mode of previous compare with the mode, compatible
2857 with eliminated and previous compare.
2859 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
2861 * config/rs6000/dfp.md (floatdidd2): New define_insn.
2863 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
2865 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
2866 compatible with CCGOCmode and CCGCmode.
2868 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
2870 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
2872 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2874 * config/arm/arm.c (arm_sat_operator_match): New function.
2875 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
2876 * config/arm/arm.md ("insn" attribute): Add "sat" value.
2877 ("SAT", "SATrev"): New code iterators.
2878 ("SATlo", "SAThi"): New code iterator attributes.
2879 ("*satsi_<SAT:code>"): New pattern.
2880 ("*satsi_<SAT:code>_shift"): Likewise.
2881 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
2882 and "shift" attributes.
2883 ("arm_usatsihi"): Add "insn" attribute.
2884 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
2885 by powers of two. Do not allow shift by 32.
2887 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
2890 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
2891 to pass the argument in the register of "natural" mode.
2893 2012-03-02 Richard Guenther <rguenther@suse.de>
2895 PR tree-optimization/52406
2896 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
2897 (struct indices): Add unconstrained_base member.
2898 (struct dr_alias): Remove unused vops member.
2899 (DR_UNCONSTRAINED_BASE): New define.
2900 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
2901 add indices to allow their disambiguation. Make DR_BASE_OBJECT
2902 be an artificial access that covers the whole indexed object,
2903 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
2904 plain decl base-objects to their MEM_REF variant.
2905 (dr_may_alias_p): When the base-object of either data reference
2906 has unknown size use only points-to information.
2907 (compute_affine_dependence): Make dumps easier to read and
2909 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
2910 DR_REF when looking for packed references.
2911 (vect_supportable_dr_alignment): Likewise.
2913 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
2915 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
2916 Improve conditions for peepholes of loads followed by commutative
2918 * config/arm/ldmstm.md: Regenerated.
2920 2012-03-02 Richard Guenther <rguenther@suse.de>
2922 * BASE-VER: Set to 4.8.0.
2924 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
2926 * config.gcc (obsolete): Add all ARM targets using the FPA.
2927 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
2928 * doc/install.texi: Avoid references to obsolete ARM ports.
2930 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
2932 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
2934 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
2935 Joern Rennecke <joern.rennecke@embecosm.com>
2937 * doc/extend.texi: Expand and update information on interrupt
2938 attribute for Epiphany.
2940 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
2942 * config/sh/sh-protos.h: Update copyright notice dates.
2943 * config/sh/sh.h: Likewise.
2944 * config/sh/sh.md: Likewise.
2945 * config/sh/constraints.md: Likewise.
2946 * config/sh/predicates.md: Likewise.
2948 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
2950 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
2951 * config/sh/sh.c (tertiary_reload_operand): Likewise.
2953 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
2955 * config/sh/constraints.md: Fix comment typo.
2957 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2960 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
2961 unsigned HOST_WIDE_INT.
2962 (zvdep_imm64): Likewise.
2963 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
2964 (vdepi_and): Likewise.
2965 Likewise for unamed 64-bit patterns.
2966 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
2968 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
2971 PR rtl-optimization/52417
2972 * cselib.c (cselib_any_perm_equivs): New variable.
2973 (cselib_reset_table): Check that it's not set when not
2974 preserving constants.
2975 (cselib_add_permanent_equiv): Set it.
2976 (cselib_have_permanent_equivalences): New.
2977 (cselib_init, cselib_finish): Reset it.
2978 * cselib.h (cselib_have_permanent_equivalences): Declare.
2979 * alias.c (get_addr): Restore earlier behavior when there
2980 aren't permanent equivalences.
2982 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
2984 * config/mn10300/mn10300-modes.def: Fix copyright notice.
2985 * config/v850/v850-modes.def: Fix copyright notice.
2987 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
2989 * doc/extend.texi (AVR Built-in Functions): Document
2990 __builtin_avr_flash_segment.
2992 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
2993 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
2994 (*split.flash_segment): New insn-and-split.
2995 * config/avr/avr.c (avr_init_builtins): Add local variables:
2996 const_memx_void_node, const_memx_ptr_type_node,
2997 char_ftype_const_memx_ptr.
2999 2012-03-01 Jakub Jelinek <jakub@redhat.com>
3001 PR tree-optimization/52445
3002 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
3003 add ssa_name_ver, offset and size fields and change store field
3005 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
3006 (add_or_mark_expr): Likewise. Only consider previous stores
3007 with the same size and offset.
3008 (nt_init_block): Only look at gimple_assign_single_p stmts,
3009 doesn't look at rhs2.
3011 2012-03-01 Richard Guenther <rguenther@suse.de>
3014 * tree-cfg.c (verify_gimple_assign_unary): Allow any
3015 conversions from integral types to pointer types.
3017 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
3019 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
3020 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
3021 unintentionally removed in r184616.
3023 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3025 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
3028 2012-02-29 Jakub Jelinek <jakub@redhat.com>
3029 Uros Bizjak <ubizjak@gmail.com>
3032 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
3033 alternatives, add "e" constraint to the new last alternative
3034 and ! to last 3 alternatives.
3036 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
3038 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
3039 DW_AT_artificial attributes at the end of the processing.
3040 (gen_array_type_die): Likewise.
3041 (gen_enumeration_type_die): Likewise.
3042 (gen_struct_or_union_type_die): Likewise.
3043 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
3046 2012-02-29 Jakub Jelinek <jakub@redhat.com>
3049 * expr.c (expand_assignment): If doing misaligned store that doesn't
3050 cover all mode bits, perform a RMW cycle.
3052 PR tree-optimization/52429
3053 * tree-parloops.c (separate_decls_in_region_debug): Return early
3054 if var is LABEL_DECL.
3056 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3058 PR tree-optimization/52424
3059 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
3060 calling dom_thread_across_edge.
3062 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3064 * config/avr/avr.c: Move definition of TARGET macros to end of file.
3066 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3068 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
3069 * config/avr/avr.c (avr_output_bld): Remove unused function.
3070 (avr_out_sbxx_branch): Use "%T" to print bit position.
3072 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3074 * config/avr/avr.md: Untabify.
3076 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3078 * config/avr/avr.md (eqne): New code iterator.
3079 (*dec-and-branchsi): Use it in text peephole's condition.
3080 (*dec-and-branchhi): Ditto.
3081 (*dec-and-branchqi): Ditto.
3083 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3086 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
3087 the device does not have the skip-bug.
3089 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
3091 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
3092 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
3093 -mpretend-cmove): New.
3095 2012-02-29 Jakub Jelinek <jakub@redhat.com>
3098 * df.h (struct df_d): Adjust comment that hard_regs_live_count
3099 doesn't count DEBUG_INSN refs.
3100 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
3101 for DEBUG_INSN refs.
3103 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3107 2012-02-20 Richard Guenther <rguenther@suse.de>
3108 PR tree-optimization/52298
3109 * tree-vect-stmts.c (vectorizable_load): Properly use
3110 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
3113 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
3116 * gimple.h (gimple_in_transaction): New.
3117 (gimple_set_in_transaction): New.
3118 (struct gimple_statement_base): Add in_transaction field.
3119 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
3121 (tree_ssa_lim_initialize): Compute transaction bits.
3122 * tree.h (compute_transaction_bits): Protoize.
3123 * trans-mem.c (tm_region_init): Use the heap to store BB
3125 (compute_transaction_bits): New.
3127 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3129 * gcc.c (display_help): Document --help=common and sort entries
3132 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3134 * doc/install.texi: Document check-$LANG specific shortcuts
3136 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3139 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
3141 * config/arm/arm_neon.h: Regenerate.
3142 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
3143 (neon_vcgeu): New insn.
3144 (neon_vcgtu): Likewise.
3145 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
3146 (ops): Unsigned comparison intrinsics call a different builtin.
3148 2012-02-28 Richard Guenther <rguenther@suse.de>
3151 * config/i386/i386.c (ix86_expand_vector_set): Fix element
3152 ordering for the VEC_CONCAT for two element vectors for
3153 V2SFmode, V2SImode and V2DImode.
3155 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
3158 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
3159 detecting big-endian triplets.
3161 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
3163 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
3164 mode if there is no type information available.
3166 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
3168 PR tree-optimization/53207
3169 * doc/invoke.texi: Document as experimental and relying on graphite.
3171 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
3173 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
3174 of initializer to changes from r184614.
3176 2012-02-28 Richard Guenther <rguenther@suse.de>
3178 PR tree-optimization/52395
3179 * tree-sra.c (build_ref_for_offset): Also look at the base
3180 TYPE_ALIGN when figuring out the alignment of the replacement.
3182 2012-02-28 Richard Guenther <rguenther@suse.de>
3184 PR tree-optimization/52402
3185 * ipa-prop.c (ipa_modify_call_arguments): Properly use
3186 mis-aligned types when creating the accesses at the call site.
3188 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
3190 * config/avr/builtins.def: New file.
3191 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
3192 * config/avr/avr.c (enum avr_builtin_id): Use it.
3193 (avr_init_builtins): Use it. And use avr_bdesc.
3194 (bdesc_1arg): Remove.
3195 (bdesc_2arg): Remove.
3196 (bdesc_3arg): Remove.
3197 (struct avr_builtin_description): Add field n_args.
3198 (avr_bdesc): New static variable using builtins.def.
3199 (avr_expand_builtin): Use it.
3200 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
3201 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
3202 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
3204 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
3207 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
3208 match only one single hard register with respective hard reg rtx.
3209 (movmemx_<mode>): Ditto.
3210 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
3211 insn anatomy of movmem[x]_<mode>.
3212 (avr_out_movmem): Same for printing assembler and operand usage.
3214 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
3218 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
3219 address spaces located outside of device flash.
3221 * config/avr/avr.h (base_arch_s): Remove field n_segments.
3222 (mcu_type_s): Add field n_flash.
3223 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
3224 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
3225 (AVR_MCU): Add N_FLASH argument.
3226 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
3227 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
3228 macro __FLASH<n> if that address space makes sense for the device.
3229 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
3230 outside of target flash.
3231 (avr_asm_named_section): Ditto.
3232 (avr_asm_select_section): Ditto.
3233 (avr_addr_space_convert): Ditto.
3234 (avr_emit_movmemhi): Ditto.
3235 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
3236 address space is outside of device flash.
3237 (avr_insert_attributes): Ditto.
3238 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
3239 avr_current_arch->n_segments.
3241 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
3244 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
3245 (*movabs<mode>_2): Likewise.
3247 2012-02-27 Jakub Jelinek <jakub@redhat.com>
3250 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
3251 s_register_operand in the test instead of REG_P. Don't call
3252 gen_reg_rtx if it won't be used.
3254 PR tree-optimization/52376
3255 * ipa-split.c (split_function): Ignore CLOBBER stmts.
3257 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
3259 * ifcvt.c (noce_get_condition): Check condition variable is not
3260 small_register_classes_for_mode_p before accepting.
3262 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
3264 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
3266 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3269 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3270 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
3272 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
3274 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
3276 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
3278 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
3280 * config/sh/predicates.md: Remove blank lines.
3281 * config/sh/sh.c: Fix typos in comments.
3282 * config/sh/constraints.md: Likewise.
3283 * config/sh/sh.md: Remove blank lines.
3284 Fix typos in comments. Use ;; as comment characters.
3286 2012-02-26 Walter Lee <walt@tilera.com>
3288 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
3289 (replace_mov_pcrel_step2): Ditto.
3291 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
3294 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
3295 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
3296 and locs that reference values newer than the non-canonical value
3297 at hand. Return the canonical value as a worst case.
3298 (memrefs_conflict_p): Walk canonical value's locs.
3301 * cselib.c (preserve_only_constants): Rename to...
3302 (preserve_constants_and_equivs): ... this. Split out...
3303 (invariant_or_equiv_p): ... this. Preserve plus expressions
3304 of other preserved expressions too.
3305 (cselib_reset_table): Adjust.
3306 * var-tracking.c (reverse_op): Use canonical value to build
3309 2012-02-23 Kai Tietz <ktietz@redhat.com>
3311 * config/i386/i386.c (ix86_delegitimize_address): Handle
3312 UNSPEC_PCREL plus displacement.
3314 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
3317 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
3318 to test for unusedness in st X addressing.
3320 2012-02-24 Richard Guenther <rguenther@suse.de>
3323 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
3324 (is_gimple_reg_type): Move inline ...
3325 * gimple.h (is_gimple_reg_type): ... here.
3327 2012-02-24 Richard Guenther <rguenther@suse.de>
3330 * passes.c (execute_function_todo): When verifying SSA form
3331 verify gimple form first.
3332 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
3334 2012-02-24 Richard Guenther <rguenther@suse.de>
3337 * fold-const.c (fold_addr_of_array_ref_difference): New function.
3338 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
3340 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3342 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
3344 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3346 * tree-phinodes.c (make_phi_node): Mark static.
3347 * tree-flow.h (make_phi_node): Remove extern decl.
3348 * doc/gimple.texi (make_phi_node): Remove documentation.
3350 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3352 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
3353 * tree-ssa-sccvn.c (print_scc): Ditto.
3355 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3357 * doc/passes.texi (Full redundancy elimination): Fix typo.
3359 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3361 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
3363 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
3366 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
3368 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
3371 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
3373 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
3375 * config/avr/avr.md (code_stdname): Add ior, xor.
3376 (xior): New code iterator.
3377 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
3378 (*<code_stdname><mode>qi.byte1-3): Ditto.
3380 2012-02-23 Jakub Jelinek <jakub@redhat.com>
3382 PR tree-optimization/52019
3383 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
3386 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3388 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
3389 HAVE_INITFINI_ARRAY to work around namespace pollution in
3390 certain versions of newlib system headers.
3391 * config.in: Regenerate.
3392 * configure: Regenerate.
3393 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
3394 instead of HAVE_INITFINI_ARRAY.
3396 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
3399 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
3400 is not offsettable memory reference.
3402 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
3405 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
3406 setting avr_need_clear_bss_p for __gnu_lto* symbols.
3408 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
3410 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
3411 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
3413 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3415 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
3416 library on Solaris 8 even without TLS support.
3417 * configure: Regenerate.
3419 2012-02-22 Richard Guenther <rguenther@suse.de>
3422 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
3423 for GIMPLE_DEBUG stmts.
3425 2012-02-22 Martin Jambor <mjambor@suse.cz>
3428 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
3429 according to the base object.
3431 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
3433 PR rtl-optimization/50063
3434 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
3435 and 2 (8-bit SP) in operand 2.
3436 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
3437 setup to use movhi_sp_r instead of vanilla move to write SP.
3438 Adjust REG_CFA notes to superseed unspec.
3439 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
3441 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
3442 known to be off) only with TARGET_NO_INTERRUPTS. Never use
3443 irq_state 1 (IRQ known to be on) here.
3445 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
3447 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
3449 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
3450 assign_hard_reg): Likewise.
3452 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
3454 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
3456 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
3459 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
3460 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
3462 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
3464 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
3465 prototype from here to...
3466 * config/avr/avr.h: ...here.
3468 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
3471 * thumb2.md (thumb2_shiftsi3_short): Split register and
3472 immediate shifts. For register shifts tie operands 0 and 1.
3473 (peephole2 for above): Check that register-controlled shifts
3474 have suitably tied operands.
3476 2012-02-21 Quentin Neill <quentin.neill@amd.com>
3479 * config/i386/bdver1.md (bdver1_call, bdver1_push,
3480 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
3481 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
3482 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
3483 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
3484 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
3485 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
3486 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
3487 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
3488 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
3489 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
3490 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
3491 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
3492 bdver1_ssevector_avx256_unaligned_load,
3493 bdver1_ssevector_sse128_unaligned_load,
3494 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
3495 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
3496 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
3497 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
3498 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
3499 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
3500 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
3501 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
3502 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
3503 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
3504 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
3505 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
3506 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
3507 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
3508 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
3509 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
3510 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
3511 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
3512 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
3513 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
3514 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
3515 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
3516 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
3517 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
3518 bdver1_ssediv_double_load, bdver1_ssediv_double,
3519 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
3520 Add "bdver2" attribute.
3522 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3524 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
3525 default if possible and not specified otherwise.
3527 2012-02-21 Richard Guenther <rguenther@suse.de>
3530 * gimplify.c (create_tmp_from_val): Use the main variant type
3531 for the type of the temporary we create.
3533 2012-02-21 Richard Guenther <rguenther@suse.de>
3535 PR tree-optimization/52324
3536 * gimplify.c (gimplify_expr): When re-gimplifying expressions
3537 do not gimplify a MEM_REF address operand if it is already
3540 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3542 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
3543 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
3545 2012-02-21 Richard Guenther <rguenther@suse.de>
3547 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
3548 nested_in_vect_loop.
3550 2012-02-21 Jakub Jelinek <jakub@redhat.com>
3552 PR tree-optimization/52318
3553 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
3554 vdef also to non-pure/const call stmts in the sequence.
3556 2012-02-21 Tristan Gingold <gingold@adacore.com>
3558 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
3560 2012-02-20 David S. Miller <davem@davemloft.net>
3562 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
3563 don't use the "rd %pc" instruction on v9 for PIC register loads.
3565 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
3568 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
3569 in a transaction safe function.
3571 2012-02-20 Kai Tietz <ktietz@redhat.com>
3574 * stor-layout.c (place_field): Handle desired_align for
3577 2012-02-20 Richard Guenther <rguenther@suse.de>
3579 PR tree-optimization/52298
3580 * tree-vect-stmts.c (vectorizable_store): Properly use
3581 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
3583 (vectorizable_load): Likewise.
3584 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
3585 Access DR_STEP after ensuring it is not NULL.
3587 2012-02-20 Jakub Jelinek <jakub@redhat.com>
3589 PR tree-optimization/52286
3590 * fold-const.c (fold_binary_loc): For (X & C1) | C2
3591 optimization use double_int_to_tree instead of build_int_cst_wide,
3592 rewrite to use double_int vars.
3594 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3597 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
3599 Remove -e 0 from $gcc_cv_ld invocation.
3600 Only use __GLIBC_PREREQ if defined.
3601 Enable on Solaris since Solaris 8 patch.
3602 (gcc_SUN_LD_VERSION): New macro.
3603 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
3604 gcc_SUN_LD_VERSION for version number format.
3605 * configure: Regenerate.
3606 * varasm.c (get_elf_initfini_array_priority_section): Set
3607 SECTION_NOTYPE for non-default priority.
3608 Use get_section instead of get_unnamed_section to emit
3609 .init_array/.fini_array with default priority.
3611 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
3613 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
3614 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
3615 (mips_start_unique_function, mips_output_mips16_rdhwr)
3616 (mips_code_end): New functions.
3617 (TARGET_ASM_CODE_END): Define.
3619 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
3621 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
3622 to stubs with non-sibling calls.
3624 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
3626 * doc/invoke.texi (-fira-* options): Copy-edit.
3627 (ira-* parameters): Copy-edit.
3629 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
3631 * doc/invoke.texi: Minor copy-edits to bring into conformance with
3632 GCC coding conventions.
3634 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
3636 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
3637 when used as adjectives.
3639 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
3641 * doc/invoke.texi: Clean up "that"/"which" confusion.
3643 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
3645 * system.h: Poison SMALL_REGISTER_CLASSES
3646 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
3647 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
3649 2012-02-16 Jakub Jelinek <jakub@redhat.com>
3651 PR tree-optimization/52285
3652 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
3653 when deciding if a call is a tail call or tail recursion.
3655 2012-02-16 Kai Tietz <ktietz@redhat.com>
3657 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
3658 interger-constant displacement for UNSPEC_PCREL.
3660 2012-02-16 Jakub Jelinek <jakub@redhat.com>
3662 PR rtl-optimization/52208
3663 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
3664 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
3666 PR tree-optimization/52255
3667 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
3668 loop->header has virtual PHI, but exit_e->dest doesn't, add
3669 virtual PHI to exit_e->dest and adjust all uses after the loop.
3672 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
3673 children with clone_tree_hash, not after it.
3675 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
3677 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
3678 extended identifiers.
3680 2012-02-16 Jakub Jelinek <jakub@redhat.com>
3683 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
3684 a same_body_alias, also test whether e->callee isn't a former
3685 or current clone of the decl this is a same body alias of.
3687 PR translation/52264
3688 * cgraphunit.c (verify_cgraph_node): Fix a typo.
3690 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
3692 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
3694 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
3697 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
3698 force_reg instead of copy_to_reg for better optimization. Force
3699 non-register or memory operands into a register.
3701 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
3703 * extend.texi: Reserve upper bits of memory model for future use.
3705 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
3706 Anatoly Sokolov <aesok@post.ru>
3707 Eric Weddington <eric.weddington@atmel.com>
3710 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
3711 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
3712 Rewrite initializers for .macro.
3713 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
3714 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
3715 atxmega32d4, atxmega32x1.
3716 avrxmega4: atxmega64a3, atxmega64d3.
3717 avrxmega5: atxmega64a1, atxmega64a1u.
3718 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
3719 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
3720 avrxmega7: atxmega128a1, atxmega128a1u.
3721 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
3722 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
3723 (struct base_arch_s): Rename reserved to xmega_p.
3724 Rename reserved2 to have_rampd.
3725 (AVR_XMEGA): New define.
3726 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
3727 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
3728 * config/avr/predicates.md (io_address_operand): Take into
3730 (low_io_address_operand): Ditto.
3731 (high_io_address_operand): Ditto.
3732 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
3733 (enabled, movhi_sp_r): Use them.
3734 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
3735 cpp_define_formatted to built-in define __AVR_ARCH__.
3736 (__AVR_XMEGA__): New built-in define.
3737 (__AVR_HAVE_RAMPD__): New built-in define.
3738 (__AVR_HAVE_RAMPX__): New built-in define.
3739 (__AVR_HAVE_RAMPY__): New built-in define.
3740 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
3742 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
3743 (avr_option_override): Initialize them.
3744 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
3745 (avr_init_expanders): Initialize them. No more block several calls.
3746 (emit_push_sfr): New static function.
3747 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
3749 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
3750 (avr_print_operand): Print addreeses as symbols for
3751 RAMPX, RAMPY, RAMPD, CCP.
3752 (output_movhi): Handle AVR_XMEGA when writing to SP.
3753 (avr_out_movhi_mr_r_xmega): New static function.
3754 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
3755 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
3756 __RAMPD__, __CCP__ as needed.
3758 * config/avr/multilib.h: Regenerate.
3759 * config/avr/t-multilib: Regenerate.
3760 * config/avr/avr-tables.opt: Regenerate.
3762 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
3764 PR tree-optimization/50561
3765 * graphite-flattening.c (lst_project_loop): Do not
3766 remove old scattering dimensions after flattening.
3767 (lst_do_flatten): Likewise.
3769 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
3771 * doc/extend.texi (AVR Built-in Functions): Remove doc for
3772 __builtin_avr_map8, __builtin_avr_map16.
3773 Document __builtin_avr_insert_bits.
3775 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
3776 (insert_bits): New insn.
3777 (adjust_len.map_bits): Rename to insert_bits.
3778 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
3779 * avr-protos.h (avr_out_map_bits): Remove.
3780 (avr_out_insert_bits, avr_has_nibble_0xf): New.
3781 * config/avr/constraints.md (Cxf,C0f): New.
3782 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
3783 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
3784 New built-in define __BUILTIN_AVR_INSERT_BITS.
3785 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
3786 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
3787 (avr_move_bits): Rewrite.
3788 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
3790 (avr_map_op_t): New typedef.
3791 (avr_map_op): New static variable.
3792 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
3793 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
3794 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
3795 (bdesc_3arg, avr_expand_triop_builtin): New.
3796 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
3797 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
3798 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
3799 (avr_map_equal_p, avr_map_sig_p): Remove.
3800 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
3801 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
3802 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
3803 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
3804 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
3805 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
3807 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
3809 * config/c6x/c6x.md (reserve_cycles): New attribute.
3810 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
3811 don't reserve functional units after the branch occurs.
3813 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
3816 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
3817 functions into non-tm_pure functions.
3819 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
3822 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
3823 (iterative_hash_canonical_type): Likewise.
3824 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
3827 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
3829 * haifa-sched.c (prune_ready_list): Ensure that if there is a
3830 sched-group insn, it either remains alone or the entire list is pruned.
3832 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
3834 * doc/install.texi (Prerequisites): Fix grammar.
3835 (Configuration): Likewise.
3837 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
3839 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
3840 MPC as part of GCC before describing configuring with --with-gmp etc.
3841 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
3842 sources are present.
3844 2012-02-14 Jakub Jelinek <jakub@redhat.com>
3847 * dwarf2out.c (clone_tree_hash): New function.
3848 (copy_decls_walk): Use it instead of clone_tree.
3850 2012-02-14 Richard Guenther <rguenther@suse.de>
3852 PR tree-optimization/52244
3853 PR tree-optimization/51528
3854 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
3855 replacements for integral types.
3857 2012-02-14 Walter Lee <walt@tilera.com>
3859 * config.gcc: Handle tilegx and tilepro.
3860 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
3862 Add HAVE_AS_TLS check for tilegx and tilepro.
3863 * configure: Regenerate.
3864 * doc/contrib.texi: Add Mat Hostetter and self.
3865 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
3866 Document instruction intrinsics and network accessing intrinsics.
3867 (TILEPro Built-in Functions): New node. Document instruction
3868 intrinsics and network accessing intrinsics.
3869 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
3870 (Specific, tilepro-*-linux*): Likewise.
3871 * doc/invoke.texi (TILE-Gx Options): New section.
3872 (TILEPro Options): New section.
3873 * doc/md.texi (TILE-Gx): New section.
3874 (TILEPro): New section.
3875 * common/config/tilegx/tilegx-common.c: New file.
3876 * common/config/tilepro/tilepro-common.c: New file.
3877 * config/tilegx/constraints.md: New file.
3878 * config/tilegx/linux.h: New file.
3879 * config/tilegx/mul-tables.c: New file.
3880 * config/tilegx/predicates.md: New file.
3881 * config/tilegx/sync.md: New file.
3882 * config/tilegx/t-tilegx: New file.
3883 * config/tilegx/tilegx-builtins.h: New file.
3884 * config/tilegx/tilegx-c.c: New file.
3885 * config/tilegx/tilegx-generic.md: New file.
3886 * config/tilegx/tilegx-modes.def: New file.
3887 * config/tilegx/tilegx-multiply.h: New file.
3888 * config/tilegx/tilegx-protos.h: New file.
3889 * config/tilegx/tilegx.c: New file.
3890 * config/tilegx/tilegx.h: New file.
3891 * config/tilegx/tilegx.md: New file.
3892 * config/tilegx/tilegx.opt: New file.
3893 * config/tilepro/constraints.md: New file.
3894 * config/tilepro/gen-mul-tables.cc: New file.
3895 * config/tilepro/linux.h: New file.
3896 * config/tilepro/mul-tables.c: New file.
3897 * config/tilepro/predicates.md: New file.
3898 * config/tilepro/t-tilepro: New file.
3899 * config/tilepro/tilepro-builtins.h: New file.
3900 * config/tilepro/tilepro-c.c: New file.
3901 * config/tilepro/tilepro-generic.md: New file.
3902 * config/tilepro/tilepro-modes.def: New file.
3903 * config/tilepro/tilepro-multiply.h: New file.
3904 * config/tilepro/tilepro-protos.h: New file.
3905 * config/tilepro/tilepro.c: New file.
3906 * config/tilepro/tilepro.h: New file.
3907 * config/tilepro/tilepro.md: New file.
3908 * config/tilepro/tilepro.opt: New file.
3910 2012-02-14 Jakub Jelinek <jakub@redhat.com>
3912 PR tree-optimization/52210
3913 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
3914 vect_model_simple_cost with two entry vect_def_type array instead
3915 of an address of dt.
3917 2012-02-14 Richard Guenther <rguenther@suse.de>
3920 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
3921 Do not stream DECL_QUALIFIER.
3922 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
3923 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
3924 (find_decls_types_r): Do not walk DECL_QUALIFIER.
3926 2012-02-14 Jakub Jelinek <jakub@redhat.com>
3929 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
3932 2012-02-13 Jakub Jelinek <jakub@redhat.com>
3935 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
3936 * cselib.c (cselib_subst_to_values_from_insn): New function.
3937 * sched-deps.c (add_insn_mem_dependence,
3938 sched_analyze_1, sched_analyze_2): Use it.
3940 2012-02-13 Jan Hubicka <jh@suse.cz>
3943 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
3945 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
3947 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
3948 (GTM_SELF_SPECS): Define if not already defined.
3949 (driver_self_specs): Add GTM_SELF_SPECS.
3950 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
3951 (GTM_SELF_SPECS): Define.
3952 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
3953 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
3955 2012-02-13 Jakub Jelinek <jakub@redhat.com>
3957 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
3960 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
3963 * omp-low.c (expand_omp_for): If a static schedule without chunk size
3964 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
3966 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
3969 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
3971 2012-02-13 Richard Guenther <rguenther@suse.de>
3973 PR translation/52211
3974 * passes.c (enable_disable_pass): Fix typo.
3976 2012-02-13 Jakub Jelinek <jakub@redhat.com>
3979 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
3980 XOR for reduce_bit_field if type is unsigned.
3982 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
3984 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
3985 disallow changes from SFmode to mode with different size in FP regs.
3987 2012-02-12 Robert Millan <rmh@gnu.org>
3988 Gerald Pfeifer <gerald@pfeifer.com>
3990 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
3993 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
3995 PR rtl-optimization/52175
3996 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
3997 to frame-related instructions.
3999 2012-02-10 Jason Merrill <jason@redhat.com>
4002 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
4003 (demangle_new_symbols): Fill it.
4004 (scan_linker_output): Walk it.
4005 (start_tweaking): Split out from scan_linker_output.
4006 (maybe_tweak): Update sym->chosen.
4007 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
4009 2012-02-11 Jakub Jelinek <jakub@redhat.com>
4012 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
4014 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
4016 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
4017 having the same mode as previous compare.
4019 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
4021 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
4022 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
4023 (nonlocal_goto_internal): Likewise.
4024 (nonlocal_goto): Emit a use and an indirect jump directly.
4026 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
4029 * doc/extend.texi : Update comments for __atomic_compare_exchange and
4030 __atomic_{is,always}_lock_free.
4032 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
4035 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
4036 negative constant address for TARGET_X32.
4038 2012-02-10 Richard Henderson <rth@redhat.com>
4040 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
4041 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
4042 for GIMPLE_TRANSACTION. Tidy if's into a switch.
4044 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4045 Ira Rosen <irar@il.ibm.com>
4047 PR tree-optimization/50031
4048 * targhooks.c (default_builtin_vectorization_cost): Handle
4050 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
4051 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
4052 all types of reduction and pattern statements.
4053 (vect_estimate_min_profitable_iters): Likewise.
4054 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
4055 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
4056 for explicit realigns.
4057 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
4058 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
4060 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
4061 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
4062 vec_perm for VSX and handle vec_promote_demote.
4064 2012-02-10 Jakub Jelinek <jakub@redhat.com>
4067 * builtins.c (fold_builtin_atomic_always_lock_free,
4068 expand_builtin_atomic_always_lock_free,
4069 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
4070 Return and/or test boolean_true_node/boolean_false_node instead of
4071 integer_one_node/integer_zero_node.
4073 2012-02-10 Jan Hubicka <jh@suse.cz>
4076 * predict.c (predict_paths_for_bb): Prevent looping.
4077 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
4079 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
4081 * config/arm/arm.c (output_move_double): In one case properly
4082 count number of instructions that will be emitted.
4084 2012-02-10 Richard Guenther <rguenther@suse.de>
4086 PR translation/52193
4087 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
4089 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
4092 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
4094 2012-02-09 Jakub Jelinek <jakub@redhat.com>
4097 * var-tracking.c (emit_note_insn_var_location): If
4098 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
4099 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
4100 non-NOTE_DURING_CALL_P insn.
4102 2012-02-09 Bin Cheng <bin.cheng@arm.com>
4105 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
4107 2012-02-08 Magnus Granberg <zorry@gentoo.org>
4110 * gcc.c (switch_matches) Support switches with separated form,
4113 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
4115 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
4117 (RAMPZ_ADDR): Ditto.
4118 * config/avr/avr.c (avr_addr_t): New typedef.
4119 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
4120 (avr_init_expanders): Initialize it.
4121 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
4123 (expand_epilogue): Ditto.
4124 (avr_print_operand): Ditto.
4125 (avr_file_start): Ditto.
4126 (avr_emit_movmemhi): Ditto.
4128 2012-02-08 Richard Guenther <rguenther@suse.de>
4130 PR tree-optimization/46886
4131 * tree-flow.h (do_while_loop_p): Declare.
4132 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
4133 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
4135 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
4137 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
4138 always succeed for integers larger than a native word.
4140 2012-02-08 Richard Guenther <rguenther@suse.de>
4142 PR rtl-optimization/52170
4143 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
4144 properly handle integer vector modes.
4146 2012-02-08 Jakub Jelinek <jakub@redhat.com>
4148 PR gcov-profile/52150
4149 * coverage.c: Include target.h.
4150 (build_var): Call targetm.strip_name_encoding on the assembler name.
4151 Change one _ into . or $ if the target allows it.
4152 * Makefile.in (coverage.o): Depend on $(TARGET_H).
4154 PR rtl-optimization/52139
4155 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
4156 is a BARRIER after emit_insn_after_noloc, move BB_END
4157 to the last non-BARRIER insn before it.
4159 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
4162 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
4163 (mips_gimplify_va_arg_expr): Call it instead of
4164 std_gimplify_va_arg_expr.
4166 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
4168 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
4169 message for -mno-pointers-to-nested-function.
4171 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
4174 * expr.c (get_inner_reference): If there is an offset, add a negative
4175 bit position to it (if any).
4177 2012-02-07 Jakub Jelinek <jakub@redhat.com>
4179 PR rtl-optimization/52060
4180 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
4181 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
4182 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
4183 and/or i0src_copy2 when needed.
4185 2012-02-07 Jakub Jelinek <jakub@redhat.com>
4187 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
4188 or LTOPLUGINSONAME if have_c.
4190 * config/freebsd-spec.h: Add comment about what macros can be defined
4192 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
4193 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
4196 2012-02-07 Richard Guenther <rguenther@suse.de>
4198 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
4199 newline in -alias dumps.
4201 2012-02-07 Kai Tietz <ktietz@redhat.com>
4202 Dave Korn <dave.korn.cygwin@gmail.com>
4205 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
4206 Take care that typinfo gets dllexport-attribute.
4208 2012-02-07 Jakub Jelinek <jakub@redhat.com>
4211 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
4212 if modifier < EXPAND_SUM call force_operand on the result.
4214 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
4216 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
4217 adding __forwarder_dst__ prefix if a forwarder_section attribute is
4219 (epiphany_function_type): Replace types for specific interrupts with
4220 EPIPHANY_FUNCTION_INTERRUPT.
4221 (EPIPHANY_INTERRUPT_P): Update.
4222 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
4223 New static function.
4224 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
4225 <disinterrupt>: Affects type identity.
4226 (epiphany_handle_interrupt_attribute): Handle variable number of
4228 (epiphany_compute_function_type): Update for new
4229 epiphany_function_type definition.
4230 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
4231 handlers with a longcall forwarder.
4232 (epiphany_start_function): Handle multiple interrupt arguments and/or
4233 forwarder_section attribute.
4235 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
4238 2012-02-07 Alan Modra <amodra@gmail.com>
4241 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
4244 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4246 PR tree-optimization/50969
4247 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
4248 use vec_perm rather than vector_stmt.
4249 (vect_model_load_cost): Likewise.
4250 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
4251 vec_perm to be the same as other vector statements.
4252 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
4253 cost of vec_perm for TARGET_VSX.
4255 2012-02-06 Richard Guenther <rguenther@suse.de>
4257 PR tree-optimization/52115
4258 * tree-sra.c (access_has_replacements_p): New function.
4259 (sra_modify_assign): Use it to decide whether a use is uninitialized.
4261 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
4264 * trans-mem.c (expand_call_tm): Add an assertion.
4265 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
4268 2012-02-06 Richard Guenther <rguenther@suse.de>
4270 PR tree-optimization/50955
4271 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
4272 raise cost of expressions that replace an address with an
4273 expression based on a different pointer.
4275 2012-02-06 Jakub Jelinek <jakub@redhat.com>
4278 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
4279 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
4281 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4284 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
4285 -Weffc++ and specify guidelines come from second edition.
4287 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
4289 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
4290 (sibcall_value_multiple_internal, call_split, call_internal_direct)
4291 (call_direct_split, call_value_split, call_value_internal_direct)
4292 (call_value_direct_split, call_value_multiple_split): Use jal and
4293 jal_macro attributes.
4295 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
4297 * reload1.c (reload_regs_reach_end_p): Replace with...
4298 (reload_reg_rtx_reaches_end_p): ...this function.
4299 (new_spill_reg_store): Update commentary.
4300 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
4301 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
4302 before setting new_spill_reg_store.
4303 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
4304 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
4305 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
4306 for non-spill reload registers.
4308 2012-02-05 Ira Rosen <irar@il.ibm.com>
4310 PR tree-optimization/52091
4311 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
4312 (vect_is_simple_use_1): Likewise.
4313 * tree-vect-loop.c (vectorizable_reduction): Update calls
4314 to vect_is_simple_use_1 and vect_is_simple_use.
4315 (vectorizable_live_operation): Likewise.
4316 * tree-vect-patterns.c (widened_name_p,
4317 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
4318 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
4319 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
4320 vectorizable_shift,vectorizable_operation, vectorizable_store,
4321 vectorizable_load): Likewise.
4322 (vect_is_simple_cond): Add an argument, pass it to
4323 vect_is_simple_use_1.
4324 (vectorizable_condition): Update calls to vect_is_simple_cond,
4326 (vect_is_simple_use): Add an argument, the statement in which
4327 OPERAND is used. Check that if OPERAND's def stmt is a double
4328 reduction phi node, the use is a phi node too.
4329 (vect_is_simple_use_1): Add an argument, pass it to
4331 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
4332 to vect_is_simple_use.
4334 2012-02-04 Jakub Jelinek <jakub@redhat.com>
4336 PR rtl-optimization/52095
4337 * modulo-sched.c (dump_insn_locator): New function.
4338 (loop_canon_p, sms_schedule): Use it.
4340 PR rtl-optimization/52113
4341 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
4342 even for decomposable shift/zext insns.
4344 2012-02-03 Jakub Jelinek <jakub@redhat.com>
4345 Zdenek Dvorak <ook@ucw.cz>
4347 PR rtl-optimization/52092
4348 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
4349 on get_iv_value result.
4351 2012-02-02 Andrew Pinski <apinski@cavium.com>
4355 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
4357 2012-02-02 Jakub Jelinek <jakub@redhat.com>
4360 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
4362 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
4364 PR rtl-optimization/49800
4365 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
4366 (sched_finish): Call regstat_free_n_sets_and_refs.
4368 2012-02-02 Jia Liu <proljc@gmail.com>
4370 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
4373 2012-02-02 Jan Hubicka <jh@suse.cz>
4374 Tom de Vries <tom@codesourcery.com>
4377 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
4378 * varpool.c (varpool_analyze_pending_decls): Likewise.
4380 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
4381 Jayant R Sonar <jayant.sonar@kpitcummins.com>
4383 * config.gcc: Add cr16-* support.
4385 * doc/extend.texi: Document cr16 extensions.
4386 * doc/install.texi: Document cr16 install.
4387 * doc/invoke.texi: Document cr16 options.
4388 * doc/md.texi: Document cr16 constraints.
4390 * common/config/cr16/cr16-common.c: New file.
4391 * config/cr16/cr16.c: New file.
4392 * config/cr16/cr16.h: New file.
4393 * config/cr16/cr16.md: New file.
4394 * config/cr16/cr16.opt: New file.
4395 * config/cr16/cr16-protos.h: New file.
4396 * config/cr16/predicates.md: New file.
4397 * config/cr16/constraints.md: New file.
4398 * config/cr16/t-cr16: New file.
4400 2012-02-02 Jakub Jelinek <jakub@redhat.com>
4403 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
4404 that operands[2] is either immediate, or q_regs_operand.
4406 PR tree-optimization/52073
4407 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
4408 a pattern stmt for pattern uses, ignore uses outside of the loop.
4410 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
4412 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
4413 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
4414 (OUT_AS1, OUT_AS2): Remove.
4416 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
4418 PR rtl-optimization/51374
4419 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
4420 to cross other volatile_refs_p insns.
4422 2012-02-01 Richard Guenther <rguenther@suse.de>
4424 * doc/invoke.texi (fno-inline): Clarify documentation.
4425 (finline-small-functions): Likewise.
4426 (finline-functions): Likewise.
4427 * common.opt (finline): Adjust comment and documentation.
4428 (finline-small-functions): Clarify documentation.
4429 (finline-functions): Likewise.
4430 (finline-functions-called-once): Likewise.
4432 2012-02-01 Tristan Gingold <gingold@adacore.com>
4434 * c-typeck.c (composite_type): Keep mode for pointers.
4436 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
4438 * function.h (regno_reg_rtx): Adjust comment.
4439 * reginfo.c (init_reg_modes_target): Only use the previous mode
4440 if it fits within one register. Remove MIPS comment.
4442 2012-01-31 Jakub Jelinek <jakub@redhat.com>
4445 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
4447 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4449 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
4450 to srak instruction.
4452 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4454 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
4456 2012-01-31 Jakub Jelinek <jakub@redhat.com>
4461 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
4463 2012-01-31 Richard Guenther <rguenther@suse.de>
4465 PR tree-optimization/51528
4466 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
4469 2012-01-31 Jakub Jelinek <jakub@redhat.com>
4474 * ree.c (add_removable_extension): Change def_map argument
4475 to unsigned *, store in def_map 1 + offset into *insn_list vector
4476 instead of pointers into the vector.
4477 (find_removable_extensions): Adjust caller.
4479 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
4481 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
4482 Transform all "* quoted-c-code" to { c-code }.
4483 Remove redundant test for "optimize" in combine patterns.
4484 Move (include "avr-dimode.md") to end of file.
4486 2012-01-30 Bin Cheng <bin.cheng@arm.com>
4489 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
4490 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
4492 2012-01-30 Richard Guenther <rguenther@suse.de>
4494 PR tree-optimization/52028
4495 * tree-loop-distribution.c (ldist_gen): Properly update
4498 2012-01-30 Jakub Jelinek <jakub@redhat.com>
4501 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
4502 set_cur_line_info_table if not emitting debug info.
4504 PR tree-optimization/52046
4505 * tree-vect-patterns.c (check_bool_pattern): Give up if
4506 a comparison could throw.
4509 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
4511 2012-01-30 Richard Guenther <rguenther@suse.de>
4513 PR tree-optimization/52045
4514 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
4515 SSA form if cfgcleanup did anything.
4517 2012-01-30 Richard Guenther <rguenther@suse.de>
4519 PR tree-optimization/52045
4520 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
4521 before computing final todo.
4523 2012-01-30 Richard Guenther <rguenther@suse.de>
4525 PR tree-optimization/51528
4526 * tree-sra.c (sra_modify_assign): Re-factor in preparation
4529 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
4531 * df-problems.c (df_kill_notes): Check that the use refers
4532 to the note under examination.
4534 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
4537 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
4538 parameter and use short-lived pseudos.
4539 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
4540 (sparc_expand_vector_init): Const-ify local variables and adjust
4541 calls to above functions.
4543 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
4545 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
4547 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
4549 * doc/invoke.texi: Make usage of "compile time" and
4550 "run time"/"runtime" consistent throughout the file.
4552 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
4554 * config/alpha/alpha.c (alpha_option_override): Default to
4555 full IEEE compliance mode for Go language.
4557 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
4559 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
4560 (LINK_SSP_SPEC): Define.
4562 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4565 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
4568 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
4570 * doc/invoke.texi: Correct hyphenation of "floating point",
4571 "double precision", and related terminology throughout the file.
4573 2012-01-28 Jakub Jelinek <jakub@redhat.com>
4576 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
4577 arm_general_register_operand predicate for operand 2 instead of
4580 2012-01-27 Ian Lance Taylor <iant@google.com>
4583 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
4584 * builtins.c (expand_builtin_init_trampoline): Add onstack
4585 parameter. Change caller.
4586 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
4587 * tree.c (build_common_builtin_nodes): Declare
4588 __builtin_init_heap_trampoline.
4590 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
4592 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
4593 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
4594 * config/avr/avr.c: Ditto.
4595 (avr_regnames): Remove because unused.
4596 * config/avr/avr.md (*cpse.ne): New peephole.
4597 (*cpse.eq): New peephole from former cpse peepholes.
4599 2012-01-27 Michael Eager <eager@eagercon.com>
4601 * config/microblaze.c (microblaze_emit_compare): Correct
4602 test after pcmp instruction.
4604 2012-01-27 Richard Guenther <rguenther@suse.de>
4606 PR tree-optimization/52020
4607 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
4609 2012-01-27 Richard Guenther <rguenther@suse.de>
4611 * ipa-pure-const.c (check_stmt): Clobbers do not make a
4612 function non-const/pure.
4614 2012-01-27 Richard Guenther <rguenther@suse.de>
4616 PR tree-optimization/50444
4617 * tree-sra.c (build_ref_for_offset): Properly adjust the
4618 MEM_REF type for unaligned accesses.
4620 2012-01-27 Richard Guenther <rguenther@suse.de>
4622 PR tree-optimization/50444
4623 * expr.c (mem_ref_refers_to_non_mem_p): New function.
4624 (expand_assignment): Use it. Properly handle misaligned
4625 bases when expanding stores to component references.
4626 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
4629 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
4632 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
4633 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
4634 * tree-data-ref.c (find_data_references_in_loop): Make static.
4635 (compute_all_dependences): Change return type to bool. Bail out
4636 for too many datarefs in a loop. Move the hunk resetting the data
4637 dependences vector from ...
4638 (compute_data_dependences_for_loop): ... here. Account for
4639 compute_all_dependences returning false.
4640 (compute_data_dependences_for_bb): Likewise.
4641 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
4642 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
4644 2012-01-27 Richard Guenther <rguenther@suse.de>
4647 * expr.c (store_field): Use the alias-set of the scratch memory
4650 2012-01-27 Tom de Vries <tom@codesourcery.com>
4652 PR tree-optimization/51990
4653 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4655 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
4657 2012-01-27 Jakub Jelinek <jakub@redhat.com>
4660 * var-tracking.c (reverse_op): Don't add any reverse operation
4661 if V already has any constant locations.
4663 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
4665 * doc/invoke.texi: Correct usage of "command line" (noun)
4666 vs "command-line" (adjective) throughout.
4668 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
4670 * doc/invoke.texi (Language Independent Options): Move
4671 -Wcoverage-mismatch blurb from here....
4672 (Warning Options): ...to here.
4674 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
4676 * config/rs6000/rs6000.c (rs6000_option_override_internal):
4677 Set rs6000_always_hint to false for 476.
4679 2012-01-27 Matthias Klose <doko@ubuntu.com>
4681 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
4683 * incpath.c (add_standard_paths): Likewise.
4685 2012-01-27 Richard Henderson <rth@redhat.com>
4687 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
4688 * config/m68k/sync.md (atomic_test_and_set): Rename from
4689 sync_test_and_setqi and adjust the operands.
4690 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
4691 and unconditionally enable.
4693 2012-01-27 Richard Henderson <rth@redhat.com>
4695 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
4696 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
4697 (ldstub): Rename from ldstubqi.
4698 (ldstub<I24MODE>): Remove.
4700 2012-01-27 Richard Henderson <rth@redhat.com>
4702 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
4703 * c-cppbuiltin.c (cpp_atomic_builtins): Define
4704 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
4705 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
4706 * doc/tm.texi: Rebuild.
4708 2012-01-27 Richard Henderson <rth@redhat.com>
4710 * optabs.c (gen_atomic_test_and_set): Remove default.
4711 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
4713 2012-01-26 Jakub Jelinek <jakub@redhat.com>
4715 PR rtl-optimization/51978
4716 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
4717 (combine_reaching_defs): Likewise.
4718 (struct re_info): Remove.
4719 (add_removable_extension): Remove x and data arguments,
4720 add insn, insn_list and def_map. Use the arguments directly
4721 instead of using struct re_info.
4722 (find_removable_extensions): Don't call add_removable_extension
4723 through note_stores, instead just call it with single_set
4725 (find_and_remove_re): Pass curr_cand->expr instead of
4726 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
4728 2012-01-26 Michael Matz <matz@suse.de>
4730 PR tree-optimization/46590
4731 * cfgexpand.c: Revert last change (r183305).
4732 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
4734 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
4735 checking for emptiness.
4737 2012-01-26 Jakub Jelinek <jakub@redhat.com>
4740 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
4741 non-addressable non-BLKmode base correctly.
4743 2012-01-26 Michael Matz <matz@suse.de>
4745 PR tree-optimization/48794
4746 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
4747 regions referenced from RESX/EH_DISPATCH.
4749 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4751 * config/s390/s390.h: Make BRANCH_COST an option.
4752 * config/s390/s390.opt: New option -mbranch-cost.
4754 2012-01-26 Richard Henderson <rth@redhat.com>
4756 Revert 2012-01-24 change:
4757 * trans-mem.c (requires_barrier): Do not instrument thread local
4758 variables and emit save/restore for them.
4760 2012-01-25 Jakub Jelinek <jakub@redhat.com>
4763 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
4766 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
4768 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
4771 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
4774 Rename __pgm to __flash.
4775 Rename __pgm1 to __flash1.
4776 Rename __pgm2 to __flash2.
4777 Rename __pgm3 to __flash3.
4778 Rename __pgm4 to __flash4.
4779 Rename __pgm5 to __flash5.
4780 Rename __pgmx to __memx.
4781 * doc/extend.texi (AVR Named Address Spaces)
4782 Rename address space names as indicated above.
4783 * config/avr/avr.c (avr_addrspace): Ditto.
4785 * config/avr/avr-protos.h
4786 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
4787 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
4788 * config/avr/predicates.md: Ditto.
4789 * config/avr/avr.c Ditto, and
4790 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
4791 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
4793 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
4794 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
4795 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
4796 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
4797 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
4798 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
4799 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
4800 * config/avr/avr.c: Ditto.
4801 * config/avr/avr.md: Ditto.
4803 2012-01-25 Jason Merrill <jason@redhat.com>
4806 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
4808 2012-01-25 Jakub Jelinek <jakub@redhat.com>
4810 PR tree-optimization/51987
4811 * tree-data-ref.c (get_references_in_stmt): Handle references in
4812 non-volatile GIMPLE_ASM.
4814 2012-01-25 Richard Guenther <rguenther@suse.de>
4816 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
4817 bases are dereferenced.
4819 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
4821 PR rtl-optimization/48374
4822 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
4824 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
4826 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
4827 compute_data_dependences_for_loop returns false.
4828 * tree-parloops.c (loop_parallel_p): Likewise.
4830 2012-01-25 Richard Guenther <rguenther@suse.de>
4832 * tree.h (get_pointer_alignment_1): Declare.
4833 * builtins.c (get_pointer_alignment_1): New function.
4834 (get_pointer_alignment): Use it.
4836 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4838 PR rtl-optimization/48308
4839 * combine.c (enum undo_kind): Add UNDO_LINKS.
4840 (struct undo): Add member l to other_contents and where.
4841 (do_SUBST_LINK): New.
4843 (try_combine): Handle LOG_LINKS for the dummy i1 case.
4844 (undo_all): Handle UNDO_LINKS.
4846 2012-01-25 Richard Henderson <rth@redhat.com>
4848 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
4851 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4853 * optabs.c (gen_atomic_test_and_set): Use each argument.
4855 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4857 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
4858 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
4859 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
4860 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
4861 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
4862 TARGET_PAIRED_SINGLE_FLOAT.
4864 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4866 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
4867 (in_struct, return_val): Remove MEM documentation.
4868 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
4869 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
4870 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
4872 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4873 * cfgexpand.c (add_alias_set_conflicts): Likewise.
4874 * expr.c (store_field): Likewise.
4875 * function.c (assign_stack_temp_for_type): Likewise.
4876 * ifcvt.c (noce_try_cmove_arith): Likewise.
4877 * reload1.c (reload): Likewise.
4878 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
4879 (alpha_set_memflags): Likewise.
4880 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
4882 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4884 * rtl.h (true_dependence, canon_true_dependence): Remove varies
4886 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
4887 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
4888 (true_dependence_1, true_dependence, canon_true_dependence): Remove
4890 * cselib.c (cselib_rtx_varies_p): Delete.
4891 (cselib_invalidate_mem): Update call to canon_true_dependence.
4892 * dse.c (record_store, check_mem_read_rtx): Likewise.
4893 (scan_reads_nospill): Likewise.
4894 * cse.c (check_dependence): Likewise.
4895 (cse_rtx_varies_p): Delete.
4896 * expr.c (safe_from_p): Update call to true_dependence.
4897 * ira.c (validate_equiv_mem_from_store): Likewise.
4898 (memref_referenced_p): Likewise.
4899 * postreload-gcse.c (find_mem_conflicts): Likewise.
4900 * sched-deps.c (sched_analyze_2): Likewise.
4901 * store-motion.c (load_kills_store): Likewise.
4902 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
4903 * gcse.c (mems_conflict_for_gcse_p): Likewise.
4904 (compute_transp): Update call to canon_true_dependence.
4906 2012-01-25 Richard Henderson <rth@redhat.com>
4908 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
4909 (maybe_emit_atomic_test_and_set): New.
4910 (expand_sync_lock_test_and_set): Use it.
4911 (expand_atomic_test_and_set): Likewise.
4912 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
4913 the implementation; clarify implementation defined details.
4914 * doc/md.texi (atomic_test_and_set): Document.
4916 2012-01-25 Richard Henderson <rth@redhat.com>
4918 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
4920 2012-01-25 Richard Henderson <rth@redhat.com>
4923 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
4924 to effect no-op split.
4926 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
4929 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
4930 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
4931 (BT_FN_VOID_PTR_INT_SIZE): New.
4932 (BT_FN_UINT_UINT_VAR): Remove.
4933 (BT_FN_UINT32_UINT32_VAR): New.
4934 (BT_FN_DOUBLE_VPTR): Remove.
4935 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
4937 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
4938 (_ITM_changeTransactionMode): Same.
4939 (_ITM_memmoveRtWt): Change return type to void.
4940 (_ITM_memcpyRtWt): Same.
4941 (_ITM_memsetW): Same.
4942 (_ITM_RaRD): Change types to double.
4947 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
4949 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
4950 Patrick Marlier <patrick.marlier@gmail.com>
4952 * trans-mem.c (requires_barrier): Do not instrument thread local
4953 variables and emit save/restore for them.
4955 2012-01-24 Jason Merrill <jason@redhat.com>
4958 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
4959 output static aliases.
4961 2012-01-24 Jakub Jelinek <jakub@redhat.com>
4964 * common.opt (-pie, -shared, pie, shared): Change from Common to
4966 * gcc.c (display_help): Display help for -pie and -shared.
4968 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
4971 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
4972 Remove note on size/offset limitation.
4973 (AVR Variable Attributes): Add example how to read data located
4974 with progmem. Refer to named address spaces.
4975 * doc/invoke.texi (AVR Options): Fix typo.
4977 2012-01-24 Richard Guenther <rguenther@suse.de>
4979 Forward-port to trunk
4980 2010-09-21 Jakub Jelinek <jakub@redhat.com>
4983 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
4984 op0 isn't sufficiently aligned and there is movmisalignM
4985 insn for mode, use it to load op0 into a temporary register.
4987 2012-01-24 Jakub Jelinek <jakub@redhat.com>
4990 * target.def (const_not_ok_for_debug_p): New hook.
4991 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
4993 * doc/tm.texi: Regenerated.
4994 * dwarf2out.c (const_ok_for_output_1): If
4995 targetm.const_not_ok_for_debug_p returns true, fail.
4996 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
4998 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
5000 2012-01-23 Kai Tietz <ktietz@redhat.com>
5003 * config/i386/predicates.md (symbolic_operand): Allow
5004 UNSPEC_PCREL as PIC expression for lea.
5005 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
5006 * config/i386/i386.c (ix86_delegitimize_address): Handle
5007 UNSPEC_PCREL for none-MEM, too.
5009 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
5011 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
5012 (ipa_tm_create_version_alias): Same.
5014 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
5017 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
5018 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
5020 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
5021 Patrick Marlier <patrick.marlier@gmail.com>
5022 Iain Sandoe <developer@sandoe-acoustics.co.uk>
5025 * lto-wrapper.c (run_gcc): Pass the LTO section name to
5026 simple_object_start_read.
5028 2012-01-23 Richard Guenther <rguenther@suse.de>
5031 PR tree-optimization/51895
5032 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
5033 parameter decomposition into BLKmode components.
5035 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
5037 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
5038 fake variables for restrict-qualified pointers whose pointed-to type
5039 contains a placeholder.
5041 2012-01-23 Richard Guenther <rguenther@suse.de>
5043 PR tree-optimization/51949
5044 * ipa-split.c (execute_split_functions): Do not split malloc functions.
5046 2012-01-23 Jakub Jelinek <jakub@redhat.com>
5048 PR rtl-optimization/51933
5049 * ree.c (transform_ifelse): Return true right away if dstreg is
5050 already wider or equal to cand->mode.
5051 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
5052 (make_defs_and_copies_lists): Remove defs_list and copies_list
5053 arguments, add state argument, just truncate state->work_list
5054 instead of always allocating and freeing the vector. Assert that
5055 get_defs succeeds instead of returning 2. Changed return type to bool.
5056 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
5057 have ext_src_mode, see if it has been modified already with the
5058 right kind of extension and has been extended before from the
5059 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
5060 just return true. Remember the original mode in state->modified array.
5061 (combine_reaching_defs): Add state argument. Don't allocate and
5062 free here def_list, copied_list and vec vectors, instead just
5063 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
5064 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
5065 Add state variable, clear vectors in it, initialize state.modified
5066 if needed. Free all the vectors at the end and state.modified too.
5067 Don't skip a candidate if the extension expression has been modified.
5069 2012-01-22 Douglas B Rupp <rupp@gnat.com>
5072 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
5073 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
5074 (extra_options) interix.opt -> i386/interix.opt"
5075 (extra_objs):Add winnt-stubs.o
5076 * configure.ac: Add interix to target_os .comm on PE check.
5077 * configure: Regenerate.
5078 * config/interix3.h: Delete and move bits to..
5079 * config/interix.h: Delete and move bits to..
5080 * config/i386/i386-interix3.h: Delete and move bits to..
5081 * config/i386/i386-interix.h: ..here.
5082 (TARGET_CPU_DEFAULT): Remove redefinition.
5083 (TARGET_ASM_CONSTRUCTOR): Undefine.
5084 (SUBTARGET_SWITCHES): Define for ms-bitfields.
5085 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
5086 (PTRDIFF_TYPE): Define.
5087 (LONG_DOUBLE_TYPE_SIZE): Define.
5088 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
5089 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5090 (TARGET_SECTION_TYPE_FLAGS): Define.
5091 (ASM_DECLARE_FUNCTION_NAME): Define.
5092 (ASM_OUTPUT_EXTERNAL): Define.
5093 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
5094 (ASM_OUTPUT_ALIGNED_BSS): Define.
5095 (PCC_BITFIELD_TYPE_MATTERS): Define.
5096 (USE_CONST_SECTION): Define.
5097 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
5098 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
5099 (SUPPORTS_ONE_ONLY): Remove.
5100 (I386_PE_STRIP_ENCODING): Define.
5101 * config/interix.opt: Delete and move bits to..
5102 * config/i386/interix.opt: ..here. New.
5103 (mpe-aligned-commons): Add.
5104 * config/i386/t-interix: Add copyright header.
5105 (winnt-stubs.o): Add rule.
5107 2012-01-22 Jason Merrill <jason@redhat.com>
5110 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
5111 for extra name aliases.
5113 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
5115 PR rtl-optimization/51924
5116 * ree.c (combine_set_extension): Improve debugging message.
5117 (combine_reaching_defs): Likewise.
5118 (get_defs): Rename confusingly named variable.
5119 (find_and_remove_re): Skip a candidate if the extension expression has
5122 2012-01-21 Robert Millan <rmh@gnu.org>
5123 Gerald Pfeifer <gerald@pfeifer.com>
5125 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
5126 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
5128 2012-01-20 Jakub Jelinek <jakub@redhat.com>
5130 PR tree-optimization/51914
5131 * tree-vect-stmts.c (vectorizable_conversion): For
5132 cvt_type && modifier == WIDEN, put temporary with cvt_type
5133 at the beginning of vec_dsts and set vec_dest to temporary
5136 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
5138 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
5140 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
5142 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
5143 * config/rs6000/rs6000.c: Likewise.
5145 2012-01-20 Jakub Jelinek <jakub@redhat.com>
5148 * config/arm/arm.c (arm_count_output_move_double_insns): Call
5149 output_move_double on a copy of operands array.
5151 2012-01-20 Cary Coutant <ccoutant@google.com>
5152 Dodji Seketeli <dodji@redhat.com>
5155 * dwarf2out.c (copy_declaration_context): Return ref to parent
5156 of declaration DIE, if necessary.
5157 (remove_child_or_replace_with_skeleton): Add new parameter; update
5158 caller. Place skeleton DIE under parent DIE of original declaration.
5159 Move call to copy_declaration_context to here ...
5160 (break_out_comdat_types): ... from here.
5162 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5164 PR rtl-optimization/51856
5165 * reload.c (find_reloads_subreg_address): Set the address_reloaded
5168 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5171 * config/arm/arm.c (arm_print_operand): Correct output of alignment
5172 hints for neon loads and stores.
5174 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
5178 * doc/extend.texi (Named Address Spaces): Split into subsections.
5179 (AVR Named Address Spaces): New subsection.
5180 (M32C Named Address Spaces): New subsection.
5181 (RL78 Named Address Spaces): New subsection.
5182 (SPU Named Address Spaces): New subsection.
5183 (Variable Attributes): New anchor "AVR Variable Attributes".
5184 (AVR Variable Attributes): Rewrite and avoid wording
5185 "address space" in this context.
5186 * doc/invoke.texi (AVR Options): Rewrite and add documentation
5187 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
5188 (AVR Built-in Macros): New subsubsection therein.
5189 * doc/md.texi (AVR constraints): Remove "C04", "R".
5191 2012-01-20 Richard Guenther <rguenther@suse.de>
5193 PR tree-optimization/51903
5194 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
5195 when removing stmts.
5197 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5200 * config/arm/arm.c (arm_load_pic_register): Use
5201 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
5202 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
5203 (arm_pic_static_addr): Likewise.
5204 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
5205 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
5206 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
5207 (pic_load_addr_unified): New.
5209 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
5212 * function.c (instantiate_virtual_regs_in_insn): Use
5213 delete_insn_and_edges when removing a wrong asm insn.
5215 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
5217 PR rtl-optimization/40761
5218 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
5219 Add new member loop_num.
5220 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
5221 (ira_build): Remove the parameter.
5223 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
5224 (ira.c): Do not build CFG loops for one region allocation. Remove
5225 argument from ira_build call.
5227 * ira-build.c (init_loop_tree_node): New function.
5228 (create_loop_tree_nodes): Use it. Separate the case when CFG
5229 loops are not built.
5230 (more_one_region_p): Check current_loops.
5231 (finish_loop_tree_nodes): Separate the case when CFG loops are not
5233 (add_loop_to_tree): Process loop equal to NULL too.
5234 (form_loop_tree): Separate the case when CFG loops are not built.
5235 Use explicitly number for the root.
5236 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
5238 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
5239 instead of loop->num.
5240 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
5241 (mark_all_loops_for_removal): Ditto.
5242 (remove_unnecessary_regions): Separate the case when CFG loops
5244 (ira_build): Remove the parameter. Use explicit number of regions
5245 when CFG loops are not built.
5247 * ira-color.c (print_loop_title): Separate the case for the root node.
5248 Use loop_num instead of loop->num.
5249 (move_spill_restore): Use loop_num instead of loop->num.
5251 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
5252 (change_loop): Ditto.
5253 (change_loop): Use loop_num instead of loop->num.
5255 * ira-lives.c (process_bb_node_lives): Ditto.
5257 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
5259 * ira-conflicts.c (print_allocno_conflicts): Ditto.
5261 2012-01-19 Jakub Jelinek <jakub@redhat.com>
5264 * tree-mudflap.c (mf_artificial): New function.
5265 (execute_mudflap_function_ops, execute_mudflap_function_decls,
5266 mx_register_decls, mudflap_enqueue_decl): Use it.
5269 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
5270 numbers in the insn pattern.
5272 2012-01-19 Michael Matz <matz@suse.de>
5274 PR tree-optimization/46590
5275 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
5276 use it in remembering which conflicts we already created.
5277 (add_scope_conflicts): Adjust call to above, (de)allocate helper
5280 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
5283 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
5284 (merge_and_complain): Same.
5286 2012-01-19 Jakub Jelinek <jakub@redhat.com>
5289 * config/initfini-array.h: Guard content of the header
5290 with #ifdef HAVE_INITFINI_ARRAY.
5291 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
5292 Add initfini-array.h to tm_file here.
5293 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
5294 * config.gcc: Don't add initfini-array.h to tm_file here.
5295 * configure: Regenerated.
5297 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
5299 PR rtl-optimization/51505
5300 * df-problems.c (df_kill_notes): New parameter live. Update comment.
5301 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
5302 (df_note_bb_compute): Update the call to df_kill_notes.
5304 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
5306 * trans-mem.c (requires_barrier): Remove call to is_global_var.
5308 2012-01-18 Richard Guenther <rguenther@suse.de>
5310 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
5311 of conversions to void *.
5313 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5314 Richard Sandiford <rdsandiford@googlemail.com>
5318 * optabs.h (simplify_expand_binop): Declare.
5319 * optabs.c (simplify_expand_binop): Make global.
5320 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
5321 endian targets if the source cannot be exactly covered by word
5324 2012-01-17 Jakub Jelinek <jakub@redhat.com>
5327 * hard-reg-set.h (struct hard_reg_set_container): New type.
5328 * target.h (struct hard_reg_set_container): Forward declare.
5329 * target.def (set_up_by_prologue): New target hook.
5330 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
5331 * doc/tm.texi: Regenerated.
5332 * function.c (thread_prologue_and_epilogue_insns): Change
5333 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
5334 Call targetm.set_up_by_prologue on it.
5335 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
5336 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
5338 2012-01-17 Nick Clifton <nickc@redhat.com>
5340 * config/rx/rx.c (rx_can_use_simple_return): New function.
5341 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
5342 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
5344 2012-01-17 Richard Guenther <rguenther@suse.de>
5347 * expr.c (expand_assignment): Take address-space information
5348 from the address operand of MEM_REF and TARGET_MEM_REF.
5349 (expand_expr_real_1): Likewise.
5351 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5353 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
5354 reload dump is requested.
5356 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
5359 * trans-mem.c (requires_barrier): Call may_be_aliased.
5361 2012-01-17 Jakub Jelinek <jakub@redhat.com>
5363 PR tree-optimization/51877
5364 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
5365 call arguments and fndecls compare equal, instead return false if they
5366 don't. Return true only if lhs1 and lhs2 are either both NULL, or
5367 both SSA_NAMEs that are valueized the same, or they satisfy
5370 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5372 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
5374 * configure: Regenerate.
5376 2012-01-16 Jan Hubicka <jh@suse.cz>
5380 * convert.c (convert_to_integer): Use fold_convert for
5381 converting an INTEGER_CST to integer type.
5383 2012-01-16 Jason Merrill <jason@redhat.com>
5386 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
5388 2012-01-16 Jakub Jelinek <jakub@redhat.com>
5391 * config/s390/s390.c (s390_chunkify_start): Don't skip
5392 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
5393 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
5394 If insn is followed by NOTE_INSN_VAR_LOCATION or
5395 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
5396 Don't use location of note insns.
5398 PR tree-optimization/51865
5399 * tree-inline.c (tree_function_versioning): Call remap_decl
5400 on DECL_RESULT whenever it has VOID_TYPE_P type.
5402 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
5404 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
5405 for calls to locally-binding MIPS16 functions if only the return
5406 type uses float regs.
5408 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
5409 Richard Sandiford <rdsandiford@googlemail.com>
5411 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
5412 (SYMBOL_32_HIGH): Likewise.
5413 (mips_output_tls_reloc_directive): Declare.
5414 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
5415 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
5416 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
5417 (mips_lo_relocs, mips_hi_relocs): Make extern.
5418 (mips16_stub_function): Move up file.
5419 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
5420 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
5421 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
5422 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
5423 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
5424 (mips_get_tp): Add MIPS16 support.
5425 (mips_legitimize_tls_address): Remove MIPS16 sorry().
5426 Generalize DTPREL and TPREL handling.
5427 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
5428 Add MIPS16 TLS support.
5429 (mips_output_tls_reloc_directive): New function.
5430 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
5431 * config/mips/predicates.md (symbolic_operand_with_high)
5432 (tls_reloc_operand): New predicates.
5433 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
5434 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
5435 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
5436 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
5437 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
5438 (*tls_get_tp_mips16_call_<mode>): Likewise.
5440 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
5442 PR rtl-optimization/51821
5443 * recog.c (peep2_find_free_register): Determine clobbered registers
5446 2012-01-14 Denis Chertykov <chertykov@gmail.com>
5449 * config/avr/avr-protos.h: Revert change of 2012-01-09.
5450 * config/avr/avr.c: Likewise.
5451 * config/avr/avr.h: Likewise.
5453 2012-01-13 Ian Lance Taylor <iant@google.com>
5456 * tree.h (TYPE_QUALS): Add cast to int.
5457 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
5459 2012-01-13 Ian Lance Taylor <iant@google.com>
5461 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
5462 comparing param_index to VEC_length result.
5464 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
5466 * c-decl.c: Do not include tree-mudflap.h
5467 * tree-optimize.c: Likewise.
5468 * Makefile.in: Update dependencies.
5470 2012-01-13 Richard Guenther <rguenther@suse.de>
5473 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
5474 variable-sized result always use RSO.
5476 2012-01-12 DJ Delorie <dj@redhat.com>
5478 * cfgexpand.c (convert_debug_memory_address): Allow any valid
5479 pointer type, not just the default pointer type.
5481 2012-01-09 Richard Henderson <rth@redhat.com>
5482 Denis Chertykov <chertykov@gmail.com>
5485 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
5486 * config/avr/avr.c (avr_can_eliminate): Simplify.
5487 (avr_initial_elimination_offset): Likewise.
5488 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
5489 (expand_epilogue): Likewise.
5490 (avr_legitimize_address): Gut.
5491 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
5492 (avr_hard_regno_nregs): New.
5493 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
5494 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
5495 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
5496 add soft frame pointer.
5497 (CALL_USED_REGISTERS): Likewise.
5498 (REG_CLASS_CONTENTS): Likewise.
5499 (REGISTER_NAMES): Likewise.
5500 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
5501 (HARD_FRAME_POINTER_REGNUM): New.
5502 (FRAME_POINTER_REGNUM): Use soft frame pointer.
5503 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
5504 remove the HARD_FRAME_POINTER self-elimination.
5506 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
5509 * config/avr/avr.c (avr_encode_section_info): Test for absence of
5510 DECL_EXTERNAL when checking for initializers of progmem variables.
5512 2012-01-12 Ira Rosen <irar@il.ibm.com>
5514 PR tree-optimization/51799
5515 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
5516 that the last operation is a type demotion.
5518 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
5520 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
5521 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
5523 2012-01-11 Jakub Jelinek <jakub@redhat.com>
5526 * combine.c (distribute_notes): If i3 is a noreturn call,
5527 allow old_size to be equal to args_size and make sure the
5528 noreturn call gets REG_ARGS_SIZE note.
5529 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
5530 on noreturn calls even when the delta is 0.
5532 2012-01-11 Nathan Sidwell <nathan@acm.org>
5534 * gcov.c (STRING_SIZE): Remove.
5535 (generate_results): Erase annotations for source files with no
5536 coverage information.
5538 (output_lines): Use it.
5540 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
5542 * gimple.h (gimplify_body): Remove first argument.
5543 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
5544 pointer set here, instead just pass DATA to walk_tree.
5545 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
5546 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
5547 (unvisit_body): Likewise, but with unmark_visited.
5548 (gimplify_body): Remove BODY_P argument and adjust.
5549 (gimplify_function_tree): Adjust call to gimplify_body.
5550 * omp-low.c (finalize_task_copyfn): Likewise.
5552 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
5554 * tree.h (build_function_decl_skip_args): Add boolean parameter.
5555 (build_function_type_skip_args): Delete.
5556 * tree.c (build_function_type_skip_args): Make static and add
5557 SKIP_RETURN parameter. Fix thinko in the handling of variants.
5558 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
5559 pass it to build_function_type_skip_args.
5560 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
5561 (tree_function_versioning): Likewise.
5562 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
5563 build_function_decl_skip_args.
5564 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
5565 and pass it to build_function_decl_skip_args/tree_function_versioning.
5566 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
5567 * ipa-inline-transform.c (save_inline_function_body): Likewise.
5568 * trans-mem.c (ipa_tm_create_version): Likewise.
5569 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
5570 * tree-inline.c (declare_return_variable): Remove always-true test.
5571 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
5572 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
5573 * ipa-split.c (split_function): Skip the return value for the split
5574 part if it doesn't return.
5576 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5578 PR tree-optimization/49642
5579 * ipa-split.c (forbidden_dominators): New variable.
5580 (check_forbidden_calls): New function.
5581 (dominated_by_forbidden): Likewise.
5582 (consider_split): Check for forbidden dominators.
5583 (execute_split_functions): Initialize and free forbidden
5584 dominators info; call check_forbidden_calls.
5586 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5588 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
5590 2012-01-11 Nick Clifton <nickc@redhat.com>
5592 * config/rx/rx.md (return): Define pattern.
5594 2012-01-11 Richard Guenther <rguenther@suse.de>
5596 * doc/extend.texi (malloc attribute): Adjust according to
5599 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
5600 Patrick Marlier <patrick.marlier@gmail.com>
5603 * trans-mem.c (get_cg_data): Traverse aliases if requested.
5604 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
5605 (ipa_tm_note_irrevocable): Same.
5606 (ipa_tm_scan_irr_block): Same.
5607 (ipa_tm_decrement_clone_counts): Same.
5608 (ipa_tm_scan_irr_function): Same.
5609 (ipa_tm_create_version_alias): Same.
5610 (ipa_tm_create_version): Same.
5611 (ipa_tm_transform_calls_redirect): Same.
5612 (ipa_tm_transform_calls): Same.
5613 (ipa_tm_transform_transaction): Same.
5614 (ipa_tm_execute): Same.
5616 2012-01-10 Richard Guenther <rguenther@suse.de>
5619 * opts.c (common_handle_option): Handle -Werror.
5621 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
5623 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
5626 2012-01-10 Jason Merrill <jason@redhat.com>
5628 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
5631 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5633 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
5634 supports R_386_TLS_GD_PLT reloc.
5635 (gcc_cv_as_ix86_tlsldmplt): Check if linker
5636 supports R_386_TLS_LDM_PLT reloc.
5637 * configure: Regenerate.
5638 * config.in: Regenerate.
5640 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
5643 Extend __pgmx semantics to linearize memory.
5644 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
5645 determine if code comes inline or from libgcc.
5646 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
5647 (movmem_qi, movmem_qi): Set constraint #2 to "n".
5648 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
5649 (movmemx_qi, movmemx_hi): New insns.
5650 (xload_<mode>_libgcc): Rewrite to new insn condition.
5651 (xload_<mode>): Remove insns.
5652 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
5653 cases that don't satisfy avr_xload_libgcc_p().
5654 (avr_addr_space_convert): Allow converting in any direction.
5655 (avr_addr_space_subset_p): Return always true.
5656 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
5657 (avr_emit_movmemhi): Ditto.
5658 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
5659 (avr_out_movmem): Ditto.
5660 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
5661 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
5662 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
5663 (avr_encode_section_info): Encode 'progmem' in symbol flags.
5664 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
5666 2012-01-10 Richard Guenther <rguenther@suse.de>
5668 PR tree-optimization/50913
5669 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
5670 Require data-refs to be representable by Graphite with respect
5673 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
5675 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
5676 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
5678 2012-01-10 Tom de Vries <tom@codesourcery.com>
5680 PR rtl-optimization/51271
5681 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
5682 handling annulled branch.
5684 2012-01-10 Richard Henderson <rth@redhat.com>
5686 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
5687 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
5688 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
5689 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
5690 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
5691 arm_expand_vec_perm_const): New.
5692 * config/arm/arm-protos.h: Update.
5693 * config/arm/neon.md (UNSPEC_VCONCAT): New.
5694 (*neon_vswp<VDQX>): New.
5695 (neon_vcombine<VDX>): Use neon_split_vcombine.
5696 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
5697 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
5698 (vec_perm<VE>): New.
5700 2012-01-10 Richard Henderson <rth@redhat.com>
5702 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
5703 use it if reload_completed.
5704 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
5705 arm_output_asm_insn, arm_process_output_memory_barrier,
5706 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
5707 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
5708 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
5709 arm_process_output_sync_insn, arm_output_sync_insn,
5710 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
5711 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
5712 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
5713 (emit_unlikely_jump): New.
5714 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
5715 (arm_split_atomic_op): New.
5716 * config/arm/arm-protos.h: Update.
5717 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
5718 (struct arm_sync_generator): Remove.
5719 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
5720 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
5721 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
5722 (VUNSPEC_LL, VUNSPEC_SC): New.
5723 (sync_result, sync_memory, sync_required_value, sync_new_value,
5724 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
5725 (attr length): Don't use arm_sync_loop_insns.
5726 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
5727 (movsfcc, movdfcc): Likewise.
5728 * config/arm/constraints.md (Ua): New.
5729 * config/arm/prediates.md (mem_noofs_operand): New.
5730 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
5731 (sync_clobber, sync_t2_reqd): Remove.
5732 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
5733 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
5734 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
5735 (arm_sync_compare_and_swap<SIDI>): Remove.
5736 (arm_sync_compare_and_swap<NARROW>): Remove.
5737 (arm_sync_lock_test_and_set<SIDI>): Remove.
5738 (arm_sync_lock_test_and_set<NARROW>): Remove.
5739 (arm_sync_new_<syncop><SIDI>): Remove.
5740 (arm_sync_new_<syncop><NARROW>): Remove.
5741 (arm_sync_new_nand<SIDI>): Remove.
5742 (arm_sync_new_nand<NARROW>): Remove.
5743 (arm_sync_old_<syncop><SIDI>): Remove.
5744 (arm_sync_old_<syncop><NARROW>): Remove.
5745 (arm_sync_old_nand<SIDI>): Remove.
5746 (arm_sync_old_nand<NARROW>): Remove.
5747 (*memory_barrier): Merge arm_output_memory_barrier.
5748 (atomic_compare_and_swap<QHSD>): New.
5749 (atomic_compare_and_swap<NARROW>_1): New.
5750 (atomic_compare_and_swap<SIDI>_1): New.
5751 (atomic_exchange<QHSD>): New.
5752 (cas_cmp_operand, cas_cmp_str): New.
5753 (atomic_op_operand, atomic_op_str): New.
5754 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
5755 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
5756 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
5757 (arm_load_exclusive<NARROW>): New.
5758 (arm_load_exclusivesi, arm_load_exclusivedi): New.
5759 (arm_store_exclusive<QHSD>): New.
5761 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5763 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
5764 reload patterns if -mvsx-scalar-memory.
5766 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
5767 generated, even -mno-vsx-scalar-double was used.
5768 (vsx_xscvdpsp_scalar): Likewise.
5769 (vsx_xscvspdp_scalar2): Likewise.
5771 2012-01-09 Tom de Vries <tom@codesourcery.com>
5772 Andrew Pinski <apinski@cavium.com>
5775 * reorg.c (fill_slots_from_thread): Don't speculate
5776 frame-related insns.
5778 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
5780 * sched-int.h (bb_note): Move to...
5781 * basic-block.h: ...here.
5782 * haifa-sched.c (bb_note): Move to...
5783 * cfgrtl.c: ...here.
5784 * function.c (next_block_for_reg): New function.
5785 (move_insn_for_shrink_wrap): Likewise.
5786 (prepare_shrink_wrap): Rewrite to use the above.
5788 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
5790 * gimple.c (is_gimple_non_addressable): Remove.
5791 * gimple.h: Remove is_gimple_non_addressable.
5792 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
5793 is_gimple_non_addressable.
5794 * trans-mem.c (expand_assign_tm): Same.
5796 2012-01-09 Richard Guenther <rguenther@suse.de>
5798 PR tree-optimization/51775
5799 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
5800 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
5802 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5804 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
5806 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
5808 2012-01-09 Richard Guenther <rguenther@suse.de>
5810 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
5812 2012-01-08 Jan Hubicka <jh@suse.cz>
5814 PR tree-optimize/51680
5815 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
5816 on when known_vals needs to be computed; cleanup.
5818 2012-01-08 Jan Hubicka <jh@suse.cz>
5820 PR tree-optimize/51694
5821 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
5823 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5825 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
5826 for -std=c++98 and -std=c++11 too.
5828 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
5830 * cfgloop.c (cancel_loop): Add free() of bbs array.
5832 2012-01-07 Jan Hubicka <jh@suse.cz>
5834 PR tree-optimization/51600
5835 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
5836 that benefits small functions.
5838 2012-01-07 Jan Hubicka <jh@suse.cz>
5840 * ipa-inline.c (want_inline_small_function_p): Fix formating.
5842 2012-01-07 Jan Hubicka <jh@suse.cz>
5844 PR tree-optimization/51680
5845 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
5846 whose inlining reduce unit size.
5848 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
5851 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
5852 Add canonical node to containing_mem chain after the non-canonical
5853 one, even if there weren't any locs to propagate.
5854 (remove_useless_values): Keep only canonical values.
5855 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
5856 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
5857 canonicalize mem_chain elements that are not discarded.
5859 2012-01-06 Jakub Jelinek <jakub@redhat.com>
5862 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
5863 before emitting functions.
5865 PR gcov-profile/50127
5866 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
5867 clear_aux_for_blocks.
5869 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
5872 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
5874 2012-01-06 Arnaud Charlet <charlet@adacore.com>
5876 * c-decl.c (ext_block): Moved up.
5877 (collect_all_refs, for_each_global_decl): Take ext_block into account.
5879 2012-01-06 Han Shen <shenhan@google.com>
5881 Translate built-in include paths for sysroot.
5882 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
5883 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
5885 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
5886 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
5888 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
5889 control whether sysroot should be prepended to gxx include dir.
5891 * configure: Regenerate.
5893 2012-01-06 Torvald Riegel <triegel@redhat.com>
5895 PR rtl-optimization/51771
5896 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
5897 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
5899 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
5901 PR tree-optimization/51315
5902 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
5903 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
5905 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
5908 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
5909 for shrp pattern. Correctly handle and fixup shift variable.
5910 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
5912 2012-01-05 Jakub Jelinek <jakub@redhat.com>
5915 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
5916 note when !ACCUMULATE_OUTGOING_ARGS.
5918 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
5920 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
5922 (extract_range_from_unary_expr_1): Avoid useless computations.
5924 2012-01-05 Jakub Jelinek <jakub@redhat.com>
5926 PR rtl-optimization/51767
5927 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
5928 of jump_block and add an extra edge for degenerated asm gotos.
5931 * stmt.c (check_unique_operand_names): Don't ICE during error
5932 reporting if i is from labels chain.
5935 * profile.c (branch_prob): Split bbs that have exit edge
5936 and need a fake entry edge too.
5938 2012-01-05 Jan Hubicka <jh@suse.cz>
5941 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
5944 2012-01-05 Richard Guenther <rguenther@suse.de>
5947 * tree-streamer-out.c (write_ts_optimization): New function.
5948 (streamer_write_tree_body): Call it.
5949 * tree-streamer-in.c (lto_input_ts_optimization): New function.
5950 (streamer_read_tree_body): Call it.
5951 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
5953 2012-01-05 Jakub Jelinek <jakub@redhat.com>
5956 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
5957 * gimplify.c (gimplify_cleanup_point_expr): Save and set
5958 in_cleanup_point_expr before gimplify_stmt call and restore it
5960 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
5961 in_cleanup_point_expr is false.
5963 2012-01-05 Richard Guenther <rguenther@suse.de>
5966 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
5968 * toplev.c (process_options): Reject combining mudflap and LTO.
5969 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
5971 2012-01-05 Richard Guenther <rguenther@suse.de>
5973 PR tree-optimization/51760
5974 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
5976 (bit_value_unop): Handle UNDEFINED operands.
5977 (bit_value_binop): Likewise.
5979 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
5981 * config/avr/avr.c (avr_replace_prefix): Remove.
5982 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
5983 (avr_asm_function_rodata_section): Ditto.
5984 (avr_asm_select_section): Ditto.
5986 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
5988 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
5991 2012-01-05 Jakub Jelinek <jakub@redhat.com>
5994 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
5995 calls that have any non-fake successor edges.
5998 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
6000 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
6002 PR tree-optimization/51624
6003 * tree-sra.c (build_ref_for_model): When replicating a chain of
6004 COMPONENT_REFs, stop as soon as the offset would become negative.
6006 2012-01-04 Jakub Jelinek <jakub@redhat.com>
6009 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
6010 in .debug_loc on the floor.
6012 2012-01-04 Andrew Pinski <apinski@cavium.com>
6014 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
6016 2012-01-04 Andrew Pinski <apinski@cavium.com>
6017 Adam Nemet <anemet@caviumnetworks.com>
6019 * config/mips/mips.md (size): Add SI and DI.
6020 (SIZE): New mode attribute.
6021 (U): New code attribute.
6022 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
6023 (mips_lbux_<mode>): Delete.
6024 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
6025 (mips_lhx): Use gen_mips_lhx_extsi.
6026 (mips_lhx_<mode>): Delete.
6028 (mips_l<size>x): New expand.
6029 (mips_lwx_<mode>): Delete.
6030 (mips_l<GPR:size>x_<P:mode>): New pattern.
6031 (*mips_lw<u>x_<P:mode>_ext): Likewise.
6032 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
6033 * config/mips/mips.c (mips_lx_address_p): New function.
6034 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
6035 (dsp64): New availability predicate.
6036 (mips_builtins): Add an entry for __builtin_mips_ldx.
6037 * config/mips/mips.h (ISA_HAS_LBX): New define.
6038 (ISA_HAS_LBUX): Likewise.
6039 (ISA_HAS_LHX): Likewise.
6040 (ISA_HAS_LHUX): Likewise.
6041 (ISA_HAS_LWX): Likewise.
6042 (ISA_HAS_LWUX): Likewise.
6043 (ISA_HAS_LDX): Likewise.
6044 * doc/extend.texi (__builtin_mips_ldx): Document.
6046 2012-01-04 Tristan Gingold <gingold@adacore.com>
6048 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
6049 when long pointers are used.
6050 * config.build (*-*-*vms*): Handle all OpenVMS targets.
6051 (alpha64-dec-*vms*, alpha*-dec-*vms*)
6052 (ia64-hp-*vms*): Remove.
6053 * config/vms/xm-vms64.h: Delete.
6055 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
6058 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
6060 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
6062 * opts.c (finish_options): Remove duplicate sorry.
6064 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
6067 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
6070 2012-01-04 Richard Guenther <rguenther@suse.de>
6073 * tree.c (size_low_cst): New function.
6074 * tree.h (size_low_cst): Declare.
6075 * fold-const.c (fold_comparison): Use it to extract the low
6076 part of the POINTER_PLUS_EXPR offset.
6078 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
6080 Fix clearing ZERO_REG
6081 * config/avr/avr.md (cc): Add alternative "ldi".
6082 (movqi_insn): Use it in cc attribute.
6083 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
6084 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
6085 (output_reload_insisf): Use ZERO_REG to pre-clear register.
6087 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6089 * configure: Regenerate.
6091 2012-01-04 Richard Guenther <rguenther@suse.de>
6093 PR tree-optimization/49651
6094 * tree-ssa-structalias.c (type_can_have_subvars): New function.
6095 (var_can_have_subvars): Use it.
6096 (get_constraint_for_1): Only consider subfields if there can be any.
6098 2012-01-03 Jakub Jelinek <jakub@redhat.com>
6101 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
6102 to its new canonical_cselib_val and the cselib_val was in
6103 first_containing_mem chain, but the canonical_cselib_val was not,
6104 add the latter into the chain.
6105 (cselib_invalidate_mem): Compare canonical_cselib_val of
6106 addr_list chain elt with v.
6109 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
6110 dwarf2out_undef): Allocate e.info using ggc_strdup instead
6112 (output_macinfo_op): Don't ggc_strdup fd->filename.
6113 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
6114 then ggc_strdup it. Don't free inc->info or cur->info.
6115 (output_macinfo): Don't free ref->info or file->info.
6117 2012-01-03 Ira Rosen <irar@il.ibm.com>
6119 PR tree-optimization/51269
6120 * tree-vect-loop-manip.c (set_prologue_iterations): Make
6121 first_niters a pointer.
6122 (slpeel_tree_peel_loop_to_edge): Likewise.
6123 (vect_do_peeling_for_loop_bound): Update call to
6124 slpeel_tree_peel_loop_to_edge.
6125 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
6126 here. Remove it from the parameters list.
6127 (vect_do_peeling_for_alignment): Update calls and compute
6130 2012-01-03 Richard Guenther <rguenther@suse.de>
6132 PR tree-optimization/51070
6133 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
6134 Properly handle calls.
6136 2012-01-03 Richard Guenther <rguenther@suse.de>
6138 PR tree-optimization/51692
6139 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
6140 the LHS of allocation stmts.
6142 2012-01-03 Olivier Hainque <hainque@adacore.com>
6144 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
6146 2012-01-03 Olivier Hainque <hainque@adacore.com>
6148 * collect2.c (main): In AIX specific computations for vector
6149 insertions, use CONST_CAST2 to cast from char ** to const char **.
6151 2012-01-03 Richard Guenther <rguenther@suse.de>
6154 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
6155 the context of a limbo DIE when it does not already exist.
6157 2012-01-03 Jakub Jelinek <jakub@redhat.com>
6159 PR tree-optimization/51719
6160 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
6161 but direct call is, clear direct call's lhs and don't add fallthrough
6162 edge from dcall_bb to join_bb and PHIs.
6164 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6166 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
6167 the instructions emitted by the pattern.
6168 ("*TDC_insn_<mode>"): Add comment.
6170 2012-01-03 Richard Guenther <rguenther@suse.de>
6173 * fold-const.c (fold_comparison): Properly canonicalize
6174 tree offset and HOST_WIDE_INT bit position.
6176 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
6178 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
6179 operands for extzv pattern.
6181 2012-01-02 Jakub Jelinek <jakub@redhat.com>
6184 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
6187 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
6189 * doc/invoke.texi (-flto and related options): Copy-edit.
6191 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6193 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
6195 2012-01-02 Jakub Jelinek <jakub@redhat.com>
6197 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
6200 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6202 * expr.h (move_by_pieces_ninsns): Declare.
6203 * expr.c (move_by_pieces_ninsns): Make external.
6204 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
6205 (mips_store_by_pieces_p): Likewise.
6206 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
6207 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
6208 * config/mips/mips.c (mips_move_by_pieces_p): New function.
6209 (mips_store_by_pieces_p): Likewise.
6211 2012-01-02 Jakub Jelinek <jakub@redhat.com>
6213 * passes.c (register_one_dump_file): Free full_name.
6215 * reload1.c (reload): Don't allocate reg_max_ref_width here.
6216 (calculate_elim_costs_all_insns): Free offsets_at and
6217 offsets_known_at at the end and clear the pointers.
6219 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
6221 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
6222 this option introduced in r180739.
6224 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
6227 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
6228 (tmake_file target=avr): Add avr/t-multilib.
6230 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
6231 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
6232 * config/avr/genmultilib.awk: New file.
6233 * config/avr/t-multilib: New auto-generated file.
6234 * config/avr/multilib.h: New auto-generated file.
6235 * config/avr/t-avr (AVR_MCUS): New variable.
6236 (genopt.sh): Use it.
6237 (s-mlib): Depend on t-multilib.
6238 (t-multilib, multilib.h): New dependencies.
6239 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
6240 (MULTILIB_OPTIONS): Remove.
6241 (MULTILIB_MATCHES): Remove.
6242 (MULTILIB_DIRNAMES): Remove.
6243 (MULTILIB_EXCEPTIONS): Remove:
6244 * config/avr/genopt.sh: Don't use hard coded file name;
6245 pass AVR_MCUS from t-avr instead.
6247 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
6249 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
6251 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
6253 Implement light-weight DImode support.
6254 * config/avr/avr-dimode.md: New file.
6255 * config/avr/avr.md: Include it.
6256 (adjust_len): Add plus64, compare64.
6257 (HIDI): Remove code iterator.
6258 (code_stdname): New code attribute.
6259 (rotx, rotsmode): Remove DI.
6260 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
6262 * config/avr/avr-protos.h (avr_have_dimode): New.
6263 (avr_out_plus64, avr_out_compare64): New.
6264 * config/avr/avr.c (avr_out_compare): Handle DImode.
6265 (avr_have_dimode): New variable definition and initialization.
6266 (avr_out_compare64, avr_out_plus64): New functions.
6267 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
6268 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
6269 (avr_compare_pattern): Skip DImode comparisons.
6271 2012-01-02 Revital Eres <revital.eres@linaro.org>
6273 * ddg.c (def_has_ccmode_p): New function.
6274 (add_cross_iteration_register_deps,
6275 create_ddg_dep_from_intra_loop_link): Call it.
6277 2012-01-02 Richard Guenther <rguenther@suse.de>
6280 * invoke.texi (fassociative-math): Remove spurious paranthesis.
6282 2012-01-01 Jakub Jelinek <jakub@redhat.com>
6284 * gcc.c (process_command): Update copyright notice dates.
6285 * gcov.c (print_version): Likewise.
6286 * gcov-dump.c (print_version): Likewise.
6287 * mips-tfile.c (main): Likewise.
6288 * mips-tdump.c (main): Likewise.
6290 2012-01-01 Ira Rosen <irar@il.ibm.com>
6292 PR tree-optimization/51704
6293 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
6294 a use is inside the basic block or loop before accessing its vect info.
6296 2012-01-01 Jan Hubicka <jhjh@suse.cz>
6298 PR rtl-optimization/51069
6299 * cfgloopmanip.c (remove_path): Removing path making irreducible
6300 region unconditional makes BB part of the region.
6302 2012-01-01 Jakub Jelinek <jakub@redhat.com>
6304 PR tree-optimization/51683
6305 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
6306 calls with side-effects.
6307 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6309 Copyright (C) 2012 Free Software Foundation, Inc.
6311 Copying and distribution of this file, with or without modification,
6312 are permitted in any medium without royalty provided the copyright
6313 notice and this notice are preserved.