1 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
3 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
6 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
7 insns so that no other insn is queued for a time before them.
9 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
12 2012-04-11 Richard Guenther <rguenther@suse.de>
15 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
16 consider loop nesting.
17 (evolution_function_is_univariate_p): Properly check the remainder
20 2012-04-11 Richard Guenther <rguenther@suse.de>
23 * except.c (sjlj_emit_dispatch_table): Properly update loop
26 2012-04-11 Nick Clifton <nickc@redhat.com>
28 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
29 information, if requested.
31 * config/rx/rx.c (rx_expand_prologue): Likewise.
33 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
34 Michael Matz <matz@suse.de>
37 * rtlanal.c (unsigned_reg_p): New function.
38 Update copyright notice dates.
39 * rtl.h (unsigned_reg_p): Prototype it.
40 Update copyright notice dates.
41 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
43 * expr.c (expand_expr_real_1): Set register attributes.
44 * stmt.c (expand_case): Likewise.
46 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
49 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
50 consider_sh2a and allow_zero.
51 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
52 (disp_addr_displacement): New function.
53 (sh_address_cost): Use disp_addr_displacement function instead
55 (sh_legitimate_address_p): Adapt to changed
56 sh_legitimate_index_p declaration.
57 (sh_find_mov_disp_adjust): Remove HImode check.
58 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
59 disp_addr_displacement and max_mov_insn_displacement.
60 (max_mov_insn_displacement): Remove HImode check.
61 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
62 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
63 * config/sh/constraints.md (K05, K13): New constraints.
64 (K12): Correct comment.
65 (Sdd): Do not use DISP_ADDR_P macro.
66 (Snd, Sbw): Use satisfies_constraint_Sdd.
67 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
68 (*extendhisi2_compact, movhi_i): Remove.
69 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
70 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
71 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
72 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
73 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
74 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
75 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
77 Add new peepholes for HImode displacement addressing.
79 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
81 * config/sh/sh.h (SIDI_OFF): Remove.
82 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
83 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
86 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
89 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
90 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
91 * doc/md.texi (Standard Names): Add bswap.
92 * builtin-types.def (BT_UINT16): New primitive type.
93 (BT_FN_UINT16_UINT16): New function type.
94 * builtins.def (BUILT_IN_BSWAP16): New.
95 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
96 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
98 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
99 (fold_builtin_1): Likewise.
100 (is_inexpensive_builtin): Likewise.
101 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
102 missing bits for bswap to libcall code.
103 * tree.c (build_common_tree_nodes): Build uint16_type_node.
104 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
105 (uint16_type_node): New define.
106 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
107 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
109 (rs6000_init_builtins): Likewise.
110 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
112 2012-04-11 Tristan Gingold <gingold@adacore.com>
114 * doc/extend.texi (Type Attributes): Move paragraph.
116 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
119 * diagnostic.h (show_caret): Declare.
120 (caret_max_width): Declare.
121 (diagnostic_show_locus): Declare.
122 * diagnostic.c (diagnostic_initialize): Initialize to false.
123 (diagnostic_show_locus): New.
124 (diagnostic_report_diagnostic): Call it.
125 (getenv_columns): New.
127 (diagnostic_set_caret_max_width): New.
128 * input.c (read_line): New.
129 (location_get_source_line): New.
130 * input.h (location_get_source_line): Declare.
131 * toplev.c (general_init): Initialize show_caret from options.
132 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
133 * opts.c (common_handle_option): Likewise.
134 * pretty-print.h (pp_get_prefix): New.
135 (pp_base_get_prefix): New.
136 * common.opt (fdiagnostics-show-caret): New option.
137 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
139 2012-04-11 Richard Guenther <rguenther@suse.de>
141 PR rtl-optimization/52881
142 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
144 2012-04-11 Richard Guenther <rguenther@suse.de>
146 PR tree-optimization/52912
147 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
148 manipulation code we are threading through a loop header
149 to an exit destination.
151 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
153 * tree.h (warn_if_unused_value): Move declaration from here.
154 * stmt.c (warn_if_unused_value): Move definition from here.
156 2010-04-10 Michael Matz <matz@suse.de>
158 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
160 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
161 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
162 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
163 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
164 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
165 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
166 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
167 (vect_record_strided_load_vectors): Rename to
168 vect_record_grouped_load_vectors.
169 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
170 Rename use of above macros.
171 (vect_verify_datarefs_alignment): Ditto.
172 (vector_alignment_reachable_p): Ditto.
173 (vect_peeling_hash_get_lowest_cost): Ditto.
174 (vect_enhance_data_refs_alignment): Ditto.
175 (vect_analyze_group_access): Ditto and rename stride to groupsize.
176 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
177 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
178 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
179 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
180 (vect_record_strided_load_vectors): Rename to
181 vect_record_grouped_load_vectors.
182 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
183 (destroy_loop_vec_info): Ditto.
184 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
185 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
186 (vect_analyze_slp): Ditto.
187 (new_bb_vec_info): Ditto.
188 (destroy_bb_vec_info): Ditto.
189 (vect_schedule_slp_instance): Ditto and rename strided_store to
191 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
192 vect_cost_group_size.
193 (vect_model_store_cost): Rename use of above macros and call
194 to vect_cost_strided_group_size.
195 (vect_model_load_cost): Ditto.
196 (vectorizable_store): Ditto, rename strided_store to grouped_store
197 and calls to renamed tree-vectorizer.h functions.
198 (vectorizable_load): Ditto.
199 (vect_transform_stmt): Rename use of above macros and strided_store
202 2012-04-10 Jan Hubicka <jh@suse.cz>
204 * cgraph.h: Remove misledaing comment on ipa-ref.h.
205 (symtab_type): New enum.
206 (symtab_node): New structure.
207 (cgraph_node, varpool_node): Add symbol base type.
208 (cgraph, varpool): New accestor functions.
209 * cgraph.c (cgraph_create_node_1): Set symbol type.
210 * varpool.c (varpool_node): Set symbol type.
212 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
213 Richard Sandiford <rdsandiford@googlemail.com>
215 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
217 2012-04-10 Richard Guenther <rguenther@suse.de>
220 * gimple-low.c (gimple_check_call_args): Properly account for
221 compatible aggregate types.
223 2012-04-10 Richard Guenther <rguenther@suse.de>
225 * toplev.h (tree_rest_of_compilation): Remove.
226 * tree-optimize.c (tree_rest_of_compilation): Likewise.
227 * cgraph.h (tree_rest_of_compilation): Declare.
228 * tree-optimize.c (tree_rest_of_compilation): Move ...
229 * cgraphunit.c (tree_rest_of_compilation): ... here.
230 * cgraph.c (cgraph_add_new_function): Adjust.
231 * Makefile.in (tree-optimize.o): Adjust.
232 (cgraphunit.o): Likewise.
234 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
236 PR tree-optimization/52870
237 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
238 presumed pattern statement is within the same loop or basic block.
240 2012-04-10 Tristan Gingold <gingold@adacore.com>
242 * gengtype.c (main): Make uintptr_t a known type.
244 2012-04-10 Richard Guenther <rguenther@suse.de>
246 * tree-pass.h (tree_lowering_passes): Remove.
247 * tree-optimize.c (tree_lowering_passes): Remove.
248 * cgraph.c (cgraph_add_new_function): Inline relevant parts
249 of tree_lowering_passes, avoid redundant call of early local
251 * cgraphunit.c (cgraph_lower_function): Fold into ...
252 (cgraph_analyze_function): ... its single caller. Inline
253 relevant parts of tree_lowering_passes.
255 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
258 * config/pa/pa.opt: Remove SIO and GNU_LD.
260 2012-04-09 Jan Hubicka <jh@suse.cz>
265 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the boundary,
267 * lto.c (add_references_to_partition): Add also aliased nodes.
268 (add_cgraph_node_to_partition,
269 add_varpool_node_to_partition): Work on nodes, not functions/variables;
270 when adding alias, add also the aliased object.
272 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
275 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
276 VOIDmode immediate operands.
277 * config/i386/constraints.md (Wz): New constraint.
278 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
280 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
283 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
284 the DECL generated for the special GOT helper.
286 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
288 * config/sh/constraints.md: Update list of constraints in
290 (Sr0): Remove unused memory constraint.
292 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
294 * tree-pretty-print.h: Update comment.
296 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
298 * config/sh/sh.md: Use braced string notation where applicable.
299 (*prefetch_i4, prefetch_m2a): Merge into ...
300 (*prefetch): ... this new insn.
302 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
304 * config/sh/sh.h (high_life_started): Remove
305 * config/sh/predicates.md (general_movdst_operand): Use
306 'reload_in_progress' instead of 'high_life_started'.
307 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
308 divsi_inv_fp): Likewise.
310 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
312 * config/sh/sh-protos.h (prepare_move_operands): Return void
314 * config/sh/sh.c (prepare_move_operands): Likewise.
315 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
317 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
319 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
320 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
321 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
322 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
323 commutative_float_operator, noncommutative_float_operator,
324 sh_handle_pragma): Remove.
326 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
328 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
329 Use @option markup on command-line options. Use @samp markup on
330 literal keywords to options. Use @code markup on code fragments.
331 Use other markup in preference to quotation marks in the text.
332 Add markup to some passages without any.
334 2012-04-06 Mike Stump <mikestump@comcast.net>
336 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
338 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
340 * config/sh/sh.c (hi_const): Remove.
341 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
344 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
346 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
348 * config/sh/sh.c (sh_expand_t_scc): Likewise.
349 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
350 calling sh_expand_t_scc.
352 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
354 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
355 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
356 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
357 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
358 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
359 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
360 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
361 sh2a_is_function_vector_call): Use bool as return type.
362 (sh_pass_in_reg_p): Remove.
363 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
364 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
365 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
366 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
367 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
368 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
369 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
370 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
371 sh_loads_bankedreg_p): Use bool as return type.
372 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
375 2012-04-06 Matt Turner <mattst88@gmail.com>
377 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
379 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
381 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
382 of the destination isn't also a FP_REGS register.
384 2012-04-05 Teresa Johnson <tejohnson@google.com>
385 H.J. Lu <hongjiu.lu@intel.com>
387 * config/i386/i386.h (ix86_tune_indices): Add
389 * config/i386/i386.md (move immediate to memory peephole2):
390 Add cases for HImode move when LCP stall avoidance is needed.
391 * config/i386/i386.c (initial_ix86_tune_features): Initialize
392 X86_TUNE_LCP_STALL entry.
394 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
397 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
398 CONST_INT operands, zero-extended with AND.
400 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
403 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
404 first argument instead of mode size. Move displacement calculations
406 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
407 ... these new functions.
408 (disp_adjust): Remove max_mov_disp field.
409 (sh_legitimate_index_p): Use max_mov_insn_displacement and
410 mov_insn_alignment_mask.
411 (sh_address_cost): Use max_mov_insn_displacement.
413 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
415 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
416 (arch_enabled): Handle new arch types.
417 (one_cmpldi2): Add NEON support.
419 2012-04-05 Richard Guenther <rguenther@suse.de>
421 * gimple.c (walk_gimple_op): Compute val_only for the LHS
422 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
423 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
424 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
425 ... here and make static.
426 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
429 2012-04-05 Richard Guenther <rguenther@suse.de>
431 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
432 basic-block before removing it.
434 2012-04-05 Richard Guenther <rguenther@suse.de>
436 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
437 version namespace as we release the freelist.
439 2012-04-05 Richard Guenther <rguenther@suse.de>
441 * tree-nrv.c (tree_nrv): Release VDEFs.
442 * tree-sra.c (sra_modify_constructor_assign): Likewise.
443 (sra_modify_assign): Likewise.
444 * tree-vect-stmts.c (vect_remove_stores): Likewise.
445 * tree-vect-loop.c (vect_transform_loop): Likewise.
446 * tree-ssa-dom.c (optimize_stmt): Likewise.
447 * tree-vect-slp.c (vect_schedule_slp): Likewise.
448 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
450 2012-04-05 Richard Guenther <rguenther@suse.de>
452 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
454 * gimple.h (gsi_remove): Adjust.
455 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
456 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
457 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
458 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
459 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
460 * tree-ssa-pre.c (eliminate): Likewise.
462 2012-04-04 Mike Stump <mikestump@comcast.net>
464 * doc/rtl.texi (const_double): Document as sign-extending.
465 * expmed.c (expand_mult): Ensure we don't use shift
467 * emit-rtl.c (immed_double_int_const): Refine to state the
469 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
470 CONST_DOUBLE integers.
471 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
472 negative values are converted. Fix conversions bigger than
473 HOST_BITS_PER_WIDE_INT.
474 (simplify_binary_operation_1): Ensure we don't use shift
476 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
477 * explow.c (plus_constant_mode): Add.
478 (plus_constant): Implement with plus_constant_mode.
479 * rtl.h (plus_constant_mode): Add.
481 2012-04-04 Richard Guenther <rguenther@suse.de>
483 PR tree-optimization/52808
484 * tracer.c (tail_duplicate): Do not tail-duplicate loop header
486 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
488 2012-04-04 Tristan Gingold <gingold@adacore.com>
490 * expr.c (expand_expr_real_2): Handle larger sizetype in
493 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
495 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
496 to m2a-single instead of m2e.
498 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
500 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
501 Change type of BITOFFSET to signed. Make sure the lower bound of
502 the computed range is non-negative by adjusting OFFSET and BITPOS.
503 (expand_assignment): Adjust call to get_bit_range.
505 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
507 * h8300/h8300.c (h8300_current_function_monitor_function_p):
508 New function. Added to check monitor functions.
509 (h8300_option_override): Modified to generate error/warning
510 messages for invalid combinations of different command line
512 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
513 save EXR on stack for monitor function in case of H8S target
514 when "-mno-exr" is passed.
515 * h8300/h8300-protos.h
516 (h8300_current_function_monitor_function_p): Add prototype.
517 * doc/invoke.texi: Document H8S options.
519 2012-04-03 Tristan Gingold <gingold@adacore.com>
521 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
522 of gcc_AC_FUNC_MMAP_BLACKLIST.
523 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
524 * Makefile.in (aclocal_deps): Add mmap.m4.
525 * configure: Regenerate.
526 * aclocal.m4: Regenerate.
528 2012-04-03 Richard Guenther <rguenther@suse.de>
530 PR tree-optimization/52808
531 * tracer.c (tail_duplicate): Return whether we have duplicated
533 (tracer): If we have duplicated any block, cleanup the CFG.
534 * cfghooks.c (duplicate_block): If we duplicated a loop
535 header but not its loop, destroy the loop because it now has
537 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
538 the cfg manipulation routines we are not creating a multiple
541 2012-04-03 Tristan Gingold <gingold@adacore.com>
543 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
545 (vms_c_common_override_options): Allow parameterless variadic
548 2012-04-03 Jakub Jelinek <jakub@redhat.com>
550 PR tree-optimization/52835
551 * tree-data-ref.c (build_rdg): Return NULL if
552 compute_data_dependences_for_loop failed.
554 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
556 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
557 for REAL_CST as well.
558 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
559 In the bitfield case, if the value is a REAL_CST, convert it first to
562 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
564 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
565 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
566 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
568 * config/i386/biarchx32.h: New.
570 2012-04-02 Anatoly Sokolov <aesok@post.ru>
572 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
573 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
574 (arm_preferred_reload_class): New function.
576 2012-04-02 Richard Guenther <rguenther@suse.de>
578 PR tree-optimization/52756
579 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
580 (thread_through_loop_header): After threading through the loop latch
581 remove the split part from the loop and clear further threading
582 opportunities that would create a multiple entry loop.
584 2012-04-02 Richard Guenther <rguenther@suse.de>
586 PR rtl-optimization/52800
587 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
590 2012-04-02 Richard Guenther <rguenther@suse.de>
593 * loop-init.c (gate_handle_loop2): Destroy loops here if
594 we don't enter RTL loop optimizers.
596 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
599 2012-03-29 Richard Guenther <rguenther@suse.de>
601 * rtl.h (extended_count): Remove.
602 * combine.c (extended_count): Remove.
604 2012-04-02 Dodji Seketeli <dodji@redhat.com>
607 * pt.c (more_specialized_fn): Don't apply decay conversion to
608 types of function parameters.
610 2012-04-02 Tristan Gingold <gingold@adacore.com>
612 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
613 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
614 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
615 (ggc_pch_this_base): Use uintptr_t instead of size_t.
617 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
620 * config/i386/i386.c (ix86_option_override_internal): Don't
621 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
623 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
625 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
626 (stmt_can_make_abnormal_goto): Use it.
627 (is_ctrl_altering_stmt): Likewise.
629 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
630 Kaz Kojima <kkojima@gcc.gnu.org>
632 * config/sh/sh.c (push_regs): Skip banked registers when
633 resbank attribute is specified.
634 (sh_expand_epilogue): Likewise.
636 2012-03-30 Richard Henderson <rth@redhat.com>
639 * combine-stack-adj.c (prev_active_insn_bb): New.
640 (next_active_insn_bb): New.
641 (force_move_args_size_note): New.
642 (combine_stack_adjustments_for_block): Use it.
644 2012-03-30 Richard Henderson <rth@redhat.com>
646 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
647 (ix86_expand_vector_init_duplicate): Initialize it.
648 (expand_vec_perm_palignr): Likewise.
649 (ix86_expand_vec_perm_const): Likewise.
650 (ix86_vectorize_vec_perm_const_ok): Likewise.
651 (expand_vec_perm_blend): Use it.
652 (expand_vec_perm_vpermil): Likewise.
653 (expand_vec_perm_pshufb): Likewise.
654 (expand_vec_perm_1): Likewise.
655 (expand_vec_perm_pshuflw_pshufhw): Likewise.
656 (expand_vec_perm_interleave2): Likewise.
657 (expand_vec_perm_vpermq_perm_1): Likewise.
658 (expand_vec_perm_vperm2f128): Likewise.
659 (expand_vec_perm_interleave3): Likewise.
660 (expand_vec_perm_vperm2f128_vblend): Likewise.
661 (expand_vec_perm_vpshufb2_vpermq): Likewise.
662 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
663 (expand_vec_perm_broadcast): Likewise.
664 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
666 2012-03-30 Richard Henderson <rth@redhat.com>
668 * dwarf2out.c (gen_variable_die): Initialize off.
670 2012-03-30 Tristan Gingold <gingold@adacore.com>
672 * config/vms/vms-f.c: New file.
673 * config/vms/t-vms (vms-f.o): New rule.
674 * config.gcc (*-*-*vms*): Define fortran_target_objs.
676 2012-03-30 Richard Guenther <rguenther@suse.de>
678 PR tree-optimization/52754
679 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
680 propagate arbitrary addresses into really plain dereferences.
682 2012-03-30 Richard Guenther <rguenther@suse.de>
685 * except.c (emit_to_new_bb_before): Move loop updating ...
686 (dw2_build_landing_pads): ... here. Use a proper block for
687 querying the loop father.
689 2012-03-30 Tristan Gingold <gingold@adacore.com>
691 * config/ia64/ia64.c (ia64_section_type_flags): Remove
692 common_object attribute handling.
693 (SECTION_VMS_OVERLAY): Remove
694 (ia64_vms_common_object_attribute): Replace abort with an assert.
695 Do not set DECL_SECTION_NAME.
696 (ia64_vms_output_aligned_decl_common): Handle common_object
698 (ia64_vms_elf_asm_named_section): Remove.
699 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
701 2012-03-30 Richard Guenther <rguenther@suse.de>
704 * double-int.c (rshift_double): Remove not needed cast.
706 2012-03-30 Richard Guenther <rguenther@suse.de>
708 * tree-affine.h (print_aff): Remove.
709 * tree-affine.c (print_aff): Make static.
710 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
711 (get_references_in_stmt): Likewise.
712 (print_direction_vector): Likewise.
713 (print_dir_vectors): Likewise.
714 (print_dist_vectors): Likewise.
715 (dump_subscript): Likewise.
716 (dump_ddrs): Likewise.
717 (dump_dist_dir_vectors): Likewise.
718 (dump_data_references): Likewise.
719 (dump_data_dependence_relation): Likewise.
720 (dump_data_dependence_direction): Likewise.
721 (dump_rdg_vertex): Likewise.
722 (dump_rdg_component): Likewise.
723 (debug_ddrs): Declare.
724 (struct data_ref_loc_d): Move ...
725 * tree-data-ref.c (struct data_ref_loc_d): ... here.
726 (get_references_in_stmt): Make static.
727 (dump_data_references): Likewise.
728 (dump_subscript): Likewise.
729 (print_direction_vector): Likewise.
730 (print_dir_vectors): Likewise.
731 (print_dist_vectors): Likewise.
732 (dump_data_dependence_relation): Likewise.
733 (dump_dist_dir_vectors): Likewise.
734 (dump_ddrs): Likewise.
735 (dump_rdg_vertex): Likewise.
736 (dump_rdg_component): Likewise.
737 (debug_ddrs): New function.
738 (access_matrix_get_index_for_parameter): Remove.
740 2012-03-30 Tristan Gingold <gingold@adacore.com>
742 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
743 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
744 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
745 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
746 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
747 (vms_patch_builtins): Handle new flags
748 * config/vms/vms-crtlmap.map: Completed using nm on
749 c and math system libraries.
750 * config/vms/make-crtlmap.awk: Handle any number of flags.
752 2012-03-30 Martin Jambor <mjambor@suse.cz>
754 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
755 is a builtin_stack_save in a dominating BB.
757 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
759 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
760 crossing 128bit lane boundary.
762 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
764 * ira-color.c (setup_left_conflict_sizes_p): Process all
767 2012-03-29 Jakub Jelinek <jakub@redhat.com>
769 PR tree-optimization/52760
770 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
771 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
773 2012-03-29 Richard Guenther <rguenther@suse.de>
775 * cgraph.h (cgraph_materialize_all_clones): Remove.
776 (reset_inline_failed): Likewise.
777 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
778 * cgraphbuild.c (reset_inline_failed): Remove.
779 * rtl.h (cse_main): Remove.
780 (extended_count): Likewise.
781 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
782 (cse_main): Make static.
783 * combine.c (extended_count): Remove.
784 (dump_combine_stats): Mark as DEBUG_FUNCTION.
785 * basic-block.h (reorder_basic_blocks): Remove.
786 * bb-reorder.c (reorder_basic_blocks): Make static.
787 * Makefile.in (dse.o): Remove dse.h dependency.
789 * dse.c (gate_dse): Remove.
790 (clear_alias_mode_eq): Likewise.
791 (clear_alias_mode_hash): Likewise.
792 (dse_record_singleton_alias_set): Likewise.
793 (dse_invalidate_singleton_alias_set): Likewise.
795 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
797 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
798 crtbegin_so%O%s for -shared.
799 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
801 2012-03-29 Richard Guenther <rguenther@suse.de>
803 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
804 (add_to_value): Remove.
805 (print_value_expressions): Likewise.
806 * tree-ssa-pre.c (add_to_value): Make static.
807 (print_value_expressions): Likewise.
808 * gimple.h (gimple_adjust_this_by_delta): Remove.
809 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
811 2012-03-29 Richard Guenther <rguenther@suse.de>
814 * double-int.h (rshift_double): Remove.
815 * double-int.c (lshift_double): Use absu_hwi to make count
817 (rshift_double): Make static, take unsigned count argument,
818 remove handling of negative count argument.
819 (double_int_rshift): Dispatch to lshift_double.
821 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
823 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
826 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
827 (SPEC_X32): Likewise.
828 (MULTILIB_DEFAULTS): Likewise.
830 * config/i386/i386.c (isa_opts): Remove -m64.
831 (ix86_target_string): Properly handle -m32/-m64/-mx32.
832 (ix86_option_override_internal): Properly
833 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
834 handle -m32, -m64 and -mx32.
836 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
837 with OPTION_ABI_X32. Moved after TARGET_LP64.
838 (TARGET_LP64): Changed to OPTION_ABI_64.
840 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
841 (mx32): Replace ISA_X32 with ABI_X32.
843 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
845 * tree.c (tree_size) <VECTOR_CST>: New case.
847 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
849 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
850 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
852 2012-03-28 Jakub Jelinek <jakub@redhat.com>
855 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
856 __builtin_va_start to __builtin_next_arg if the latter is
857 builtin_decl_explicit_p rather than when it is not.
860 * tree-vect-generic.c (vector_element): Perform multiplication
861 for pos in bitsizetype type instead of idx type.
863 2012-03-28 Richard Guenther <rguenther@suse.de>
865 * loop-init.c (loop_optimizer_init): If loops are preserved
866 perform incremental initialization of required loop features.
867 (loop_optimizer_finalize): If loops are to be preserved only
868 clean up optional loop features.
869 (rtl_loop_done): Forcefully free loops here.
870 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
871 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
873 (construct_init_block): Likewise.
874 (construct_exit_block): Likewise.
875 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
876 the CFG after expanding.
877 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
878 If we needed to calculate them, free them afterwards.
879 * tree-pass.h (PROP_loops): New define.
880 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
881 * basic-block.h (CLEANUP_CFG_CHANGED): New.
882 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
883 (cleanup_cfg): If we did something and have loops around, fix them up.
884 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
885 with CLEANUP_CFG_CHANGED.
886 * cfghooks.c (merge_blocks): If we merge a loop header into
887 its predecessor, update the loop structure.
888 (duplicate_block): If we copy a loop latch, adjust loop state
889 to note we may have multiple latches.
890 (delete_basic_block): Mark loops for fixup if we remove a loop.
891 * cfganal.c (forwarder_block_p): Protect loop latches, headers
893 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
894 (cfg_layout_can_merge_blocks_p): Likewise.
895 * cprop.c (bypass_block): If we create a loop with multiple
896 entries, mark it for removal.
897 * except.c (emit_to_new_bb_before): Add the new basic-block
899 * tree-eh.c (lower_resx): Likewise.
900 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
901 (expand_omp_taskreg): Likewise.
902 * tree-inline.c (initialize_cfun): Likewise.
903 * tree-mudflap.c (add_bb_to_loop): Prototype.
904 (mf_build_check_statement_for): Properly add new basic-blocks
906 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
908 (thread_through_loop_header): Likewise.
909 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
910 new basic-blocks to existing loops.
911 (expand_transaction): Likewise.
912 * Makefile.in (except.o): Add $(CFGLOOP_H).
914 (cgraph.o): Likewise.
916 (cfgexpand.o): Likewise.
917 (cfganal.o): Likewise.
918 (trans-mem.o): Likewise.
919 (tree-eh.o): Likewise.
921 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
924 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
925 (avr_builtin_decl): New static function.
926 (struct avr_builtin_description, avr_bdesc): Move up.
927 Add GTY marker. Add field fndecl. Remove redundant field id.
928 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
929 (avr_expand_builtin): Code cleanup because .id is removed.
931 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
934 * config.gcc (tm_file): Remove avr/multilib.h.
936 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
938 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
939 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
940 * config/avr/t-avr: Remove generation of multilib.h.
941 * config/avr/t-multilib: Regenerate.
942 * config/avr/multilib.h: Remove.
943 * config/avr/avr.opt (-msp8): New option.
944 (avr_sp8): New variable.
945 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
946 * config/avr/avr.h (AVR_HAVE_SPH): New define.
947 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
948 (avr_device_to_sp8): New prototype.
949 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
950 (DRIVER_SELF_SPECS): New define.
951 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
952 __AVR_SP8__, __AVR_HAVE_SPH__.
953 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
954 AVR_HAVE_8BIT_SP to decide if SP_H is present.
955 (avr_file_start): Ditto.
957 2012-03-28 Jakub Jelinek <jakub@redhat.com>
960 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
961 instead of 8 in adjust_address.
963 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
966 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
969 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
972 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
973 Rearrange conditional logic. Move displacement address calculations
975 (sh_find_mov_disp_adjust): ... this new function.
977 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
979 * config/arm/arm.opt (mapcs): Remove MaskExists.
980 * config/cris/linux.opt (mno-gotplt): Likewise.
981 * config/i386/i386.opt (mhard-float): Likewise.
983 (mno-sse4): Likewise.
984 * config/m68k/m68k.opt (mhard-float): Likewise.
985 * config/mep/mep.op (mcop32): Likewise.
986 * config/pa/pa-hpux.opt (msio): Likewise.
987 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
988 * config/picochip/picochip.opt (mlittle): Likewise.
989 * config/sh/sh.opt (mrenesas): Likewise.
990 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
991 * config/sparc/sparc.opt (mhard-float): Likewise.
992 * config/v850/v850.opt (mv850es): Likewise.
993 * config/vax/vax.opt (mg-float): Likewise.
995 2012-03-27 Martin Jambor <mjambor@suse.cz>
998 * tree-sra.c (sra_modify_assign): Do not call
999 load_assign_lhs_subreplacements when working with an unscalarizable
1002 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
1005 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
1007 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
1008 * config/i386/i386.c: Include reload.h.
1009 (ix86_legitimize_reload_address): New function.
1011 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
1013 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
1014 hasn't been allocated. Define a target macro for Mask and
1015 InverseMask if it hasn't been defined. Remove MaskExists handling.
1017 * doc/options.texi: Remove MaskExists.
1019 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
1022 * config/sh/sh.c (find_barrier): Add equality check of last_got
1023 to avoid going above orig insn. Update comments.
1025 2012-03-27 Richard Guenther <rguenther@suse.de>
1028 * fold-const.c (try_move_mult_to_index): Handle &x.array more
1031 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
1033 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
1034 of a unit before computing the offset in units.
1035 * expr.c (get_bit_range): Return the null range if the enclosing record
1036 is part of a larger bit field.
1038 2012-03-27 Tristan Gingold <gingold@adacore.com>
1040 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
1041 * config/ia64/ia64.md: Remove mode in template.
1042 Sign extend operand in expand_simple_binop.
1043 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
1044 CASE_VECTOR_MODE instead of TARGET_ILP32.
1045 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
1047 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
1049 * varasm.c (assemble_external): #if 0 out the new assert from the
1050 previous commit, it breaks the Java and Go front ends.
1052 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
1054 * toplev.c (check_global_declaration_1): Do not call assemble_external.
1055 * expr.c (emit_block_move_libcall_fn): Likewise.
1056 (clear_storage_libcall_fn): Likewise.
1057 (expand_expr_addr_expr_1): Likewise.
1058 (expand_expr_real_1): Likewise.
1059 * calls.c (rtx_for_function_call): Likewise.
1061 * varasm.c (assemble_external): Assert this function is only called
1062 during or after expanding to RTL.
1064 2012-03-26 Martin Jambor <mjambor@suse.cz>
1066 PR tree-optimization/50052
1067 * tree-sra.c (tree_non_aligned_mem_p): Removed.
1068 (tree_non_aligned_mem_for_access_p): Likewise.
1069 (build_accesses_from_assign): Removed strict alignment requirements
1071 (access_precludes_ipa_sra_p): Likewise.
1073 2012-03-26 Richard Guenther <rguenther@suse.de>
1075 PR tree-optimization/52701
1076 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
1077 compute and set the evolution part of PHI nodes.
1079 2012-03-26 Richard Guenther <rguenther@suse.de>
1081 PR tree-optimization/52721
1082 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
1084 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
1086 PR tree-optimization/52686
1087 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
1090 2012-03-26 Tristan Gingold <gingold@adacore.com>
1092 * config/alpha/vms.h (LINK_SPEC): Simplify.
1093 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
1094 (NAME__MAIN, SYMBOL__MAIN): Remove.
1095 (VMS_DEBUG_MAIN_POINTER): Remove.
1096 * config/ia64/vms.h: Likewise.
1097 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
1098 code to vms.c. Call vms_start_function.
1099 * config/ia64/ia64.c (ia64_start_function): Likewise.
1100 * config/vms/vms-protos.h (vms_start_function): Declare.
1101 * config/vms/vms.c (vms_start_function): New function.
1102 * config/vms/vms.h (MATH_LIBRARY): Define.
1103 (VMS_DEBUG_MAIN_POINTER): Define.
1105 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
1107 PR rtl-optimization/52629
1108 * reload1.c (count_pseudo): Short-circuit common case.
1109 (count_spilled_pseudo): Return early for pseudos without hard regs.
1110 Assert that the pseudo has got a hard reg before manipulating it.
1112 2012-03-24 Jan Hubicka <jh@suse.cz>
1115 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
1116 (decide_is_variable_needed): Do not handle toplevel reorder here.
1117 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
1118 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
1121 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
1123 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
1124 and str_bitsize instead of more convoluted expressions.
1126 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
1129 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
1131 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
1134 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
1136 2012-03-23 Martin Jambor <mjambor@suse.cz>
1138 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
1140 2012-03-23 Richard Guenther <rguenther@suse.de>
1142 PR tree-optimization/52678
1143 * tree-vectorizer.h (struct _stmt_vec_info): Add
1144 loop_phi_evolution_part member.
1145 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
1146 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
1147 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
1148 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1149 Use the cached evolution part and the PHI nodes value from
1150 the loop preheader edge instead of re-analyzing the evolution.
1152 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
1154 * config/mips/mips-tables.opt: Update.
1155 * config/mips/mips.md (processor): Add xlp.
1156 * config/mips/mips-cpus.def: Add xlp.
1157 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
1159 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
1160 * doc/invoke.texi: Mention XLP.
1162 2012-03-22 Jakub Jelinek <jakub@redhat.com>
1165 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
1166 on any new_local_var_chain vars declared during recursing on
1167 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
1169 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
1171 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
1172 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
1173 (ASM_OUTPUT_LOCAL): Ditto.
1174 (ASM_OUTPUT_COMMON): Remove.
1175 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
1176 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
1178 2012-03-22 Jan Hubicka <jh@suse.cz>
1181 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
1183 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
1184 * ipa-inline-transform.c (save_inline_function_body): Remove
1185 copied clone if needed.
1186 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
1188 2012-03-22 Richard Guenther <rguenther@suse.de>
1191 * fold-const.c (fold_ternary_loc): Fix typo.
1193 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
1196 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
1197 (unspecv): Add UNSPECV_MEMORY_BARRIER.
1198 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
1199 (delay_cycles_1, delay_cycles_2): Ditto.
1200 (delay_cycles_3, delay_cycles_4): Ditto.
1201 (nopv, *nopv): Ditto.
1202 (sleep, *sleep): Ditto.
1205 2012-03-22 Richard Guenther <rguenther@suse.de>
1207 PR tree-optimization/52548
1208 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
1209 because of clobbers.
1210 (prune_clobbered_mems): New function.
1211 (compute_antic_aux): Use it to prune ANTIC_OUT.
1212 (compute_partial_antic_aux): Use it to prune PA_IN.
1213 (compute_avail): Only insert expressions into EXP_GEN that are not
1214 invalidated when translated up to the beginning of the block.
1216 2012-03-22 Richard Guenther <rguenther@suse.de>
1218 PR tree-optimization/52638
1219 * tree-vect-stmts.c (vect_init_vector_1): New function, split
1221 (vect_init_vector): ... here. Handle scalar vector inits.
1222 (vect_get_vec_def_for_operand): Adjust.
1223 (vectorizable_load): Likewise.
1225 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
1227 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
1228 (alpha*-*-freebsd*): Ditto.
1229 (alpha*-*-netbsd*): Ditto.
1230 (alpha*-*-openbsd*): Ditto.
1231 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
1232 (DWARF2_DEBUGGING_INFO): Remove.
1233 (PREFERRED_DEBUGGING_TYPE): Remove.
1234 (ASM_FINAL_SPEC): Remove.
1235 (IDENT_ASM_OP): Remove.
1236 (ASM_OUTPUT_IDENT): Remove.
1237 (SKIP_ASM_OP): Remove.
1238 (ASM_OUTPUT_SKIP): Remove.
1239 (ALIGN_ASM_OP): Remove.
1240 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
1241 (ASM_OUTPUT_CASE_LABEL): Remove.
1242 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
1243 (COMMON_ASM_OP): Remove.
1244 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
1245 (ASCII_DATA_ASM_OP): Remove.
1246 (READONLY_DATA_SECTION_ASM_OP): Remove.
1247 (INIT_SECTION_ASM_OP): Remove.
1248 (FINI_SECTION_ASM_OP): Remove.
1249 (ASM_SECTION_START_OP): Remove.
1250 (ASM_OUTPUT_SECTION_START_FILE): Remove.
1251 (TARGET_ASM_NAMED_SECTION): Remove.
1252 (TARGET_ASM_SELECT_SECTION): Remove.
1253 (MAKE_DECL_ONE_ONLY): Remove.
1254 (TYPE_ASM_OP): Remove.
1255 (SIZE_ASM_OP): Remove.
1256 (ASM_WEAKEN_LABEL): Remove.
1257 (TYPE_OPERAND_FMT): Remove.
1258 (ASM_DECLARE_RESULT): Remove.
1259 (ASM_DECLARE_OBJECT_NAME): Remove.
1260 (ASM_FINISH_DECLARE_OBJECT): Remove.
1261 (ELF_ASCII_ESCAPES): Remove.
1262 (ELF_STRING_LIMIT): Remove.
1263 (STRING_ASM_OP): Remove.
1264 (ASM_OUTPUT_EXTERNAL): Remove.
1265 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
1266 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
1268 (ASM_DECLARE_FUNCTION_NAME): Ditto.
1269 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
1270 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
1271 (ASM_OUTPUT_SKIP): Ditto.
1272 (READONLY_DATA_SECTION_ASM_OP): Remove.
1273 (USER_LABEL_PREFIX): Remove.
1274 (ASM_OUTPUT_ASCII): Remove.
1275 (ASM_OUTPUT_CASE_LABEL): Remove.
1276 (NO_DOLLAR_IN_LABEL): Undefine.
1278 2012-03-22 Richard Guenther <rguenther@suse.de>
1280 PR tree-optimization/52459
1281 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
1282 PHI insertion for calls.
1284 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
1286 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
1287 find_sets_in_insn, canonicalize_insn): Split out from ...
1288 (cse_insn): ... here.
1289 (invalidate_from_clobbers): Take an insn instead of the pattern.
1291 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
1294 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
1295 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
1296 * config/sh/sh.md (sindf2, cosdf2): Remove.
1298 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
1301 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
1302 prologue for unwinder and profiler.
1304 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
1306 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
1307 Introduce emul_name to select the right linker emulation for
1308 powerpc64-*-freebsd*.
1309 * configure: Regenerate.
1310 * config.gcc: Add bits to support powerpc64-*-freebsd*.
1311 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
1312 * config/rs6000/freebsd64.h: New file.
1313 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
1315 (rs6000_savres_strategy): Likewise.
1316 (rs6000_savres_routine_name): Likewise.
1317 (rs6000_elf_file_end): Likewise.
1318 * config/rs6000/t-freebsd64: New file.
1319 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
1320 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
1322 * config/rs6000/freebsd64.h: Remove duplicated entries from last
1324 * config/rs6000/t-freebsd64: Likewise.
1326 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
1328 PR rtl-optimization/52543
1330 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
1331 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
1332 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
1333 (avr_load_libgcc_p): Restrict to __flash loads.
1334 (avr_out_lpm): Only handle 1-byte loads from __flash.
1335 (avr_load_lpm): New function.
1336 (avr_find_unused_d_reg): Remove.
1337 (avr_out_lpm_no_lpmx): Remove.
1338 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
1339 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
1340 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
1341 (load_<mode>, load_<mode>_clobber): New insns.
1342 (mov<mode>): For multi-byte move from non-generic
1343 16-bit address spaces: Expand to load_<mode> resp.
1344 load_<mode>_clobber.
1345 (load<mode>_libgcc): Remove expander.
1346 (split-lpmx): Remove split.
1348 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
1350 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
1351 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
1352 All callers changed.
1353 (Fixed_core_reg): New feature.
1354 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
1356 * neon-testgen.ml: Handle Fixed_core_reg.
1358 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
1360 * config/arm/arm.c (thumb2_reorg): Add complete support
1361 for 16-bit instructions.
1362 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
1364 2012-03-21 Richard Guenther <rguenther@suse.de>
1366 PR tree-optimizer/52636
1367 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
1368 to the appropriate type.
1370 2012-03-21 Richard Guenther <rguenther@suse.de>
1372 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
1374 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
1375 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
1376 * passes.c (init_optimization_passes): Remove pass_init_function,
1377 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
1378 * tree-pass.h (pass_init_function): Remove.
1379 (pass_jump): Remove.
1380 (pass_initial_value_sets): Remove.
1381 (pass_unshare_all_rtl): Remove.
1382 * integrate.c (pass_initial_value_sets): Remove.
1383 * emit-rtl.c (pass_unshare_all_rtl): Remove.
1384 * tree.h (init_function_for_compilation): Remove.
1385 * function.c (init_function_for_compilation): Remove.
1386 (pass_init_function): Remove.
1387 * cfgcleanup.c (rest_of_handle_jump): Remove.
1388 (pass_jump): Remove.
1390 2012-03-20 Jason Merrill <jason@redhat.com>
1392 * tree-streamer-in.c (streamer_alloc_tree): Call
1393 ggc_alloc_zone_cleared_tree_node instead of
1394 ggc_alloc_zone_cleared_tree_node_stat.
1396 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
1398 * doc/extend.texi (Template Instantiation): Remove anachronisms.
1400 2012-03-20 Jakub Jelinek <jakub@redhat.com>
1403 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
1404 (ix86_expand_vec_perm_const_1): Call it.
1406 * config/i386/i386.c (vselect_insn): New variable.
1407 (init_vselect_insn): New function.
1408 (expand_vselect, expand_vselect_insn): Add testing_p argument.
1409 Call init_vselect_insn if vselect_insn is NULL. Adjust
1410 PATTERN (vselect_insn), instead of creating a new insn each time,
1411 only emit a copy of it if not testing and recog has been successful.
1412 (expand_vec_perm_pshufb, expand_vec_perm_1,
1413 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
1417 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
1418 ("enabled" attribute): Handle avx2 and noavx2 isas.
1419 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
1421 (vec_dup<mode>): Add avx2 =x,x alternative.
1422 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
1423 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
1424 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
1425 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
1427 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
1428 if possible, handle also V8SFmode.
1430 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
1432 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
1433 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
1434 reg_or_zero_operand predicate.
1435 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
1437 2012-03-20 Jakub Jelinek <jakub@redhat.com>
1439 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
1440 If operand isn't UNSPEC, return 0.
1442 2012-03-20 Richard Guenther <rguenther@suse.de>
1444 * tree-pass.h (pass_rtl_eh): Remove.
1445 * except.c (gate_handle_eh): Likewise.
1446 (rest_of_handle_eh): Likewise.
1447 (pass_rtl_eh): Likewise.
1448 (finish_eh_generation): Export.
1449 * except.h (finish_eh_generation): Declare.
1450 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
1451 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
1452 after expanding stack alignment. Instead of compacting blocks
1455 2012-03-20 Richard Guenther <rguenther@suse.de>
1457 * stor-layout.c (finish_bitfield_representative): Fallback
1458 to conservative maximum size if the padding up to the next
1459 field cannot be computed as a constant.
1460 (finish_bitfield_layout): If we cannot compute the distance
1461 between the start of the bitfield representative and the
1462 bitfield member start a new representative.
1463 * expr.c (get_bit_range): The distance between the start of
1464 the bitfield representative and the bitfield member is zero
1465 if the field offsets are not constants.
1467 2012-03-20 Tristan Gingold <gingold@adacore.com>
1469 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
1470 convert in lowercase.
1471 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
1472 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
1473 * stor-layout.c (sizetype_tab): Adjust.
1474 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
1475 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
1476 instead of type_kind_last.
1477 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
1478 instead of size_int_kind.
1479 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
1480 * doc/tm.texi: Regenerate.
1481 * defaults.h (SIZETYPE): Provide a default value.
1482 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
1485 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
1487 * config/sh/sh.md: Use braced string notation where applicable.
1489 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
1491 * config/i386/i386.md (allocate_stack): Simplify.
1493 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
1495 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
1496 copy_to_mode_reg (Pmode, ...).
1497 (expand_builtin_frame_address): Ditto.
1498 * expr.c (emit_block_move_via_libcall): Ditto.
1499 (set_storage_via_libcall): Ditto.
1501 * config/i386/i386.c (ix86_expand_movmem): Ditto.
1502 (ix86_expand_setmem): Ditto.
1503 (ix86_trampoline_init): DItto.
1504 * config/i386/i386.md (cmpstrnsi): Ditto.
1506 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
1508 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
1509 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
1510 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
1511 (SH Options): Likewise.
1513 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
1515 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
1516 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
1517 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
1518 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
1519 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
1522 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
1524 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
1525 * config/i386/i386.c (ix86_decompose_address): Use
1526 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
1527 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
1528 thread pointer to a register.
1531 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
1533 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
1534 if Pmode != word_mode.
1535 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
1536 Pmode == SImode for TARGET_X32.
1538 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
1539 (tls_initial_exec_x32): Likewise.
1541 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
1544 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
1545 DISP_ADDR_OFFSET): New macros.
1546 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
1547 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
1548 (sh_legitimize_address): Add QImode displacement handling.
1549 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
1551 (sh_secondary_reload): Add QImode displacement handling.
1552 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
1553 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
1554 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
1555 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
1556 to register operands only.
1557 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
1558 (extendqihi2): Change insn to expander.
1559 (*extendqihi2_compact_reg): New insn.
1560 (movqi_i, movqi): Replace with ...
1561 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
1562 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
1563 Add new peepholes for QImode displacement addressing.
1565 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1568 * doc/invoke.texi: Document -Wuseless-cast.
1570 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
1572 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
1573 * tree.h (handled_component_p): Reorder cases.
1574 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
1575 not initialize unsignedp.
1576 (loc_list_from_tree): Likewise.
1577 (fortran_common): Likewise.
1578 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1580 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
1582 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
1583 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
1584 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
1585 (ix86_split_long_move): Ditto.
1586 (legitimize_tls_address): Use ix86_gen_sub3.
1587 (construct_plt_address): Assert that Pmode == DImode.
1589 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
1591 * config/i386/i386.md: Remove empty predicates and/or constraints.
1592 * config/i386/sync.md: Ditto.
1593 * config/i386/sse.md: Ditto.
1594 * config/i386/mmx.md: Ditto.
1595 * config/i386/pentium.md: Ditto.
1596 * config/i386/athlon.md: Ditto.
1598 2012-03-16 Richard Guenther <rguenther@suse.de>
1600 PR tree-optimization/52603
1601 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
1605 2012-03-14 Richard Guenther <rguenther@suse.de>
1607 PR tree-optimization/52571
1608 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1609 flag_section_anchors check ...
1610 (vect_can_force_dr_alignment_p): ... here.
1612 2012-03-16 Martin Jambor <mjambor@suse.cz>
1614 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
1615 memory through MEM_REFs by calling extract_bit_field.
1617 2012-03-16 Richard Guenther <rguenther@suse.de>
1619 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
1620 and REFERENCE_TYPE interpretations.
1621 (can_native_interpret_type_p): New function.
1622 (fold_ternary_loc): Use native encode/interpret to fold
1623 BIT_FIELD_REFs of constants.
1625 2012-03-16 Richard Guenther <rguenther@suse.de>
1628 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
1629 of vector constants and constructors.
1631 2012-03-16 Richard Guenther <rguenther@suse.de>
1633 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
1634 VIEW_CONVERT_EXPR to convert constants.
1635 (vect_is_simple_use): Treat all constants as vec_constant_def.
1637 2012-03-16 Richard Guenther <rguenther@suse.de>
1638 Kai Tietz <ktietz@redhat.com>
1641 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
1642 side-effects completely in the pre-queue and use a temporary
1645 2012-03-16 Richard Guenther <rguenther@suse.de>
1647 * stor-layout.c (finish_bitfield_representative): Fall back
1648 to the conservative maximum size if we cannot compute the
1649 size of the tail padding.
1651 2012-03-16 Tristan Gingold <gingold@adacore.com>
1653 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
1654 __CRTL_VER and __VMS_VER.
1655 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
1656 and vms_c_get_vms_ver.
1657 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
1659 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
1660 (VMS_DEFAULT_VMS_VER): Define.
1661 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
1662 (VMS_DEFAULT_VMS_VER): Define.
1664 2012-03-16 Richard Guenther <rguenther@suse.de>
1666 * tree-vect-loop.c (get_initial_def_for_induction): Use
1667 build_constructor directly.
1668 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
1669 build_vector_from_val.
1670 * tree.c (build_vector_from_val): Avoid creating a constructor
1671 first when we want a constant vector.
1673 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1675 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
1677 2012-03-16 Richard Guenther <rguenther@suse.de>
1679 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
1680 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
1681 (struct tree_vector): Remove elements member, add variable size
1683 (build_vector_stat): Declare.
1684 (build_vector): Define in terms of build_vector_stat.
1685 * tree.c (build_vector): Rename to ...
1686 (build_vector_stat): ... this. Take array of trees as parameter.
1687 (build_vector_from_ctor): Adjust.
1688 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
1689 initializer_zerop): Adjust.
1690 * cfgexpand.c (expand_debug_expr): Likewise.
1691 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
1692 const_vector_from_tree): Likewise.
1693 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
1694 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
1695 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
1696 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
1697 (lto_input_ts_vector_tree_pointers): Adjust.
1698 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
1699 (write_ts_vector_tree_pointers): Adjust.
1700 * varasm.c (const_hash_1, compare_constant, copy_constant,
1701 output_constant): Adjust.
1702 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
1703 * print-tree.c (print_node): Adjust.
1704 * tree-pretty-print.c (dump_generic_node): Adjust.
1705 * tree-vect-generic.c (uniform_vector_p, vector_element,
1706 lower_vec_perm): Adjust.
1707 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
1708 * tree-vect-slp.c (vect_get_constant_vectors,
1709 vect_transform_slp_perm_load): Adjust.
1710 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
1711 * expmed.c (make_tree): Adjust.
1712 * config/i386/i386.c (ix86_expand_builtin): Adjust.
1713 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
1715 (sparc_fold_builtin): Adjust.
1717 2012-03-16 Tristan Gingold <gingold@adacore.com>
1719 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
1720 * config/vms/vms-stdint.h: New file.
1722 2012-03-16 Tristan Gingold <gingold@adacore.com>
1724 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
1725 (ia64-hp-*vms*): Replaced by ...
1726 (*-*-*vms*): ... This new entry.
1728 2012-03-15 Jakub Jelinek <jakub@redhat.com>
1731 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
1732 (ix86_expand_vec_perm_const_1): Use it.
1735 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
1736 (avx2_permv4df): Remove.
1737 (avx2_permv4di): Macroize into...
1738 (avx2_perm<mode>): ... this using VI8F_256 iterator.
1739 (avx2_permv4di_1): Macroize into...
1740 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
1742 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1744 * combine.c (apply_distributive_law): Do not distribute SUBREG.
1746 2012-03-15 Ira Rosen <irar@il.ibm.com>
1747 Ulrich Weigand <ulrich.weigand@linaro.org>
1749 * tree-vect-patterns.c (widened_name_p): Rename to ...
1750 (type_conversion_p): ... this. Add new argument to determine
1751 if it's a promotion or demotion operation. Check for
1752 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
1753 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
1755 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
1756 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
1758 (vect_recog_mixed_size_cond_pattern): Likewise and allow
1759 non-constant then and else clauses.
1761 2012-03-15 Ira Rosen <irar@il.ibm.com>
1762 Ulrich Weigand <ulrich.weigand@linaro.org>
1764 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
1765 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
1767 * tree-vect-patterns.c (widened_name_p): Pass basic block
1768 info to vect_is_simple_use.
1769 (vect_recog_dot_prod_pattern): Fail for basic blocks.
1770 (vect_recog_widen_sum_pattern): Likewise.
1771 (vect_handle_widen_op_by_const): Support basic blocks.
1772 (vect_operation_fits_smaller_type,
1773 vect_recog_over_widening_pattern): Likewise.
1774 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
1775 Update call to vect_is_simple_use.
1776 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
1778 (check_bool_pattern): Add an argument, update call to
1779 vect_is_simple_use and the recursive calls.
1780 (vect_recog_bool_pattern): Update relevant function calls.
1782 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
1783 (vect_pattern_recog_1): Check for reduction only in loops.
1784 (vect_pattern_recog): Add new argument. Support basic blocks.
1785 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
1786 info to vect_is_simple_use_1.
1787 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
1788 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
1790 2012-03-15 Jakub Jelinek <jakub@redhat.com>
1791 Andrew Pinski <apinski@cavium.com>
1794 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
1795 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
1796 calls instead of __builtin_ir{int,ound}*.
1798 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1800 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
1803 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1805 * config.gcc (target_type_format_char): New. Document it. Set it for
1807 * configure.ac (gnu_unique_option): Use target_type_format_char
1808 in test. Comment rationale.
1809 * configure: Regenerate .
1811 2012-03-15 Jakub Jelinek <jakub@redhat.com>
1813 PR tree-optimization/52267
1814 * tree-vrp.c (masked_increment): New function.
1815 (register_edge_assert_for_2): Derive ASSERT_EXPRs
1816 from (X & CST1) cmp CST2 tests.
1818 2012-03-15 Richard Guenther <rguenther@suse.de>
1821 * tree-data-ref.c (subscript_dependence_tester_1): Check
1822 all dimensions for non-conflicting access functions.
1824 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1827 * doc/invoke.texi [C++ Language Options]: Document
1828 -ftemplate-backtrace-limit.
1830 2012-03-15 Tristan Gingold <gingold@adacore.com>
1832 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
1835 2012-03-15 Tristan Gingold <gingold@adacore.com>
1837 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
1838 use DW_OP_call_frame_cfa.
1840 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
1843 * config/i386/i386-opts.h (pmode): New.
1845 * config/i386/i386.c (ix86_option_override_internal): Properly
1846 check and set ix86_pmode.
1848 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
1850 * config/i386/i386.opt (maddress-mode=): New.
1852 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
1854 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1856 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
1857 (dwarf2out_do_cfi_asm): Likewise.
1858 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
1860 (add_data_member_location_attribute): Likewise.
1861 (gen_array_type_die): Likewise.
1862 (gen_subprogram_die): Likewise.
1863 (gen_producer_string): Likewise.
1864 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
1865 Remove MIPS_DEBUGGING_INFO handling.
1866 (sdb_debug_hooks): Likewise.
1867 (sdbout_begin_block): Likewise.
1868 (sdbout_end_block): Likewise.
1869 (sdbout_begin_prologue): Likewise.
1870 (sdbout_start_source_file): Likewise.
1871 (sdbout_end_source_file): Likewise.
1872 (sdbout_init): Likewise.
1873 * system.h (MIPS_DEBUGGING_INFO): Poison.
1875 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1877 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
1878 (alpha_file_start) [MS_STAMP]: Remove.
1880 * config/alpha/elf.h (TARGET_GAS): Remove.
1881 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
1882 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
1883 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
1884 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
1885 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
1886 (alpha*-*-freebsd*): Likewise.
1887 (alpha*-*-netbsd*): Likewise.
1888 (alpha*-*-openbsd*): Likewise.
1889 (alpha*-*-*): Remove target_cpu_default2.
1890 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
1892 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
1893 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
1894 * config/alpha/alpha.c (print_operand): Always assume
1895 TARGET_AS_SLASH_BEFORE_SUFFIX.
1896 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
1897 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
1898 ("*builtin_setjmp_receiver_er_1"): Remove.
1899 * config/alpha/alpha.opt (malpha-as): Remove.
1901 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
1903 Remove DEC Unix reference.
1905 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
1906 (EXTENDED_COFF): Remove.
1907 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
1908 (EXTENDED_COFF): Don't undef.
1909 * config/alpha/alpha.c (alpha_file_start): Always assume
1911 Don't set targetm.asm_file_start_file_directive.
1912 [!OBJECT_FORMAT_ELF]: Remove.
1913 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
1915 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
1916 (DBX_DEBUGGING_INFO): Remove.
1917 (MIPS_DEBUGGING_INFO): Remove.
1918 (PREFERRED_DEBUGGING_TYPE): Remove.
1919 (DBX_OUTPUT_SOURCE_LINE): Remove.
1920 (SDB_OUTPUT_SOURCE_LINE): Remove.
1921 (DBX_CONTIN_LENGTH): Remove.
1922 (NO_DBX_FUNCTION_END): Remove.
1923 (ASM_STABS_OP): Remove.
1924 (ASM_STABN_OP): Remove.
1925 (ASM_STABD_OP): Remove.
1926 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
1927 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
1928 (PUT_SDB_DEF): Remove.
1929 (PUT_SDB_PLAIN_DEF): Remove.
1930 (PUT_SDB_TYPE): Remove.
1931 (sdb_label_count): Remove.
1932 (PUT_SDB_BLOCK_START): Remove.
1933 (PUT_SDB_BLOCK_END): Remove.
1934 (PUT_SDB_FUNCTION_START): Remove.
1935 (PUT_SDB_FUNCTION_END): Remove.
1936 (PUT_SDB_EPILOGUE_END): Remove.
1937 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
1938 (MIPS_DEBUGGING_INFO): Don't undef.
1939 (DBX_DEBUGGING_INFO): Don't undef.
1940 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
1941 (MIPS_DEBUGGING_INFO): Don't undef.
1942 (DBX_DEBUGGING_INFO): Don't undef.
1943 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
1944 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
1946 (alpha_start_function): Likewise.
1947 (sdb_label_count): Remove.
1948 (alpha_output_filename): Remove DBX_DEBUG handling.
1949 (alpha_file_start): Likewise.
1951 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1953 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
1954 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
1955 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
1957 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
1958 (ld_tls_support): Remove Solaris 8 references.
1959 (lwp_dir, lwp_spec): Remove support for alternate thread library.
1960 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
1961 * configure: Regenerate.
1962 * config.in: Regenerate.
1964 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
1965 * config/i386/sol2.h: Remove Solaris 8 references.
1967 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
1968 (i?86-*-solaris2.9): ... this.
1969 Remove Solaris 8 references.
1970 (Specific, *-*-solaris2*): Document Solaris 8 removal.
1971 Remove Solaris 8 references.
1973 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1975 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
1976 (mips-sgi-irix6.5*): Remove.
1977 * config.host (mips-sgi-irix*): Remove.
1978 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
1979 (set_have_as_tls): Remove *-*-irix6*.
1980 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
1981 * configure: Regenerate.
1983 * config/mips/iris6.h: Remove.
1984 * config/mips/iris6.opt: Remove.
1985 * config/mips/t-irix6: Remove.
1987 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
1988 (TARGET_IRIX6): Remove.
1989 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
1990 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
1991 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
1993 (mips_file_start): Likewise.
1994 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
1996 * config/mips/driver-native.c [__sgi__]: Remove.
1997 (host_detect_local_cpu) [__sgi__]: Remove.
1999 * config/mips/gnu-user.h: Remove iris5.h reference.
2001 * config/mips/mips-modes.def: Remove IRIX 6 reference.
2002 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
2003 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
2006 * gcc.c (main): Move asm_debug initialization ...
2007 (asm_debug): ... here.
2009 * ginclude/stddef.h (__STDDEF_H__): Don't define.
2011 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
2012 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
2013 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
2014 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
2015 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
2016 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
2018 * doc/tm.texi: Regenerate.
2020 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
2022 (MIPS Options, -march): Remove IRIX reference.
2023 * doc/install.texi (Binaries, SGI IRIX): Remove.
2024 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
2026 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
2028 2012-03-14 Martin Jambor <mjambor@suse.cz>
2030 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
2031 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
2032 (expand_expr_real_1): Do not handle misalignment if modifier is
2035 2012-03-14 Richard Guenther <rguenther@suse.de>
2038 * tree-vect-generic.c (type_for_widest_vector_mode): Take
2039 element type instead of mode, use build_vector_type_for_mode
2040 instead of the langhook, build a vector of proper signedness.
2041 (expand_vector_operations_1): Adjust.
2043 2012-03-14 Richard Guenther <rguenther@suse.de>
2046 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
2047 a cgraph node for a FUNCTION_DECL that comes from a constructor.
2048 (gimple_get_virt_method_for_binfo): Likewise.
2050 2012-03-14 Richard Guenther <rguenther@suse.de>
2052 PR tree-optimization/52571
2053 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
2054 flag_section_anchors check ...
2055 (vect_can_force_dr_alignment_p): ... here. Do not re-align
2056 DECL_COMMON variables.
2058 2012-03-14 Richard Guenther <rguenther@suse.de>
2060 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
2061 * stor-layout.c (start_bitfield_representative): New function.
2062 (finish_bitfield_representative): Likewise.
2063 (finish_bitfield_layout): Likewise.
2064 (finish_record_layout): Call finish_bitfield_layout.
2065 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
2066 for QUAL_UNION_TYPE fields.
2067 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
2068 Stream DECL_BIT_FIELD_REPRESENTATIVE.
2069 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
2074 * expr.c (get_bit_range): Unconditionally extract bitrange
2075 from DECL_BIT_FIELD_REPRESENTATIVE.
2076 (expand_assignment): Adjust call to get_bit_range.
2078 2012-03-14 Richard Guenther <rguenther@suse.de>
2081 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
2082 the outermost conversion is a sign-change only.
2083 (fold_binary_loc): Disregard widening and sign-changing
2084 conversions when we determine if two variables are equal
2086 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
2087 (T1)x if the outermost conversion is a sign-change only.
2089 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
2092 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
2094 * config/i386/predicates.md (constant_call_address_operand): Declare
2095 as special predicate. Update all uses.
2097 2012-03-13 Jakub Jelinek <jakub@redhat.com>
2100 * c-parser.c (c_parser_postfix_expression)
2101 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
2103 * config/i386/smmintrin.h: Avoid /* within a comment.
2104 * config/i386/nmmintrin.h: Likewise.
2106 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
2108 * config/i386/i386.md (xbegin): Remove constraint from expander.
2110 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
2112 * config/i386/predicates.md (constant_call_address_operand): Declare
2113 as special predicate. Update all uses.
2114 * config/i386/i386.md: Remove mode from constant_call_address_operand
2116 * config/i386/i386.c (ix86_output_call_insn): Call
2117 constant_call_address_operand with VOIDmode.
2119 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
2121 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
2122 AND zero extended address correctly.
2124 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
2126 * config/i386/predicates.md (tls_symbolic_operand): Declare as
2128 (tls_modbase_operand): Ditto.
2129 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
2130 tls_modbase_operand predicates.
2132 2012-03-13 Martin Jambor <mjambor@suse.cz>
2134 * expr.c (expand_assignment): Handle misaligned scalar writes to
2135 memory through top-level MEM_REFs by calling store_bit_field.
2137 2012-03-13 Richard Guenther <rguenther@suse.de>
2140 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
2141 if Y is a constant multiple of 1 << CST.
2143 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
2146 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
2147 offset (size) to a value the insns can deal with.
2148 (expand_epilogue): Ditto.
2150 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2152 * config/arm/neon.ml (ops): Fixup expected instructions for
2153 unsigned vector compares.
2155 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
2157 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
2158 addresses only when %reg is not in word mode.
2160 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2162 * config/microblaze/microblaze.md: Fix typo.
2163 * tree-if-conv.c: Likewise.
2164 * tree-vect-patterns.c: Likewise.
2166 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2168 * config.gcc (extra_passes): Remove.
2169 * configure.ac (extra_passes): Don't substitute.
2170 * configure: Regenerate.
2171 * Makefile.in (EXTRA_PASSES): Remove.
2172 (GCC_PASSES): Remove $(EXTRA_PASSES).
2173 (MOSTLYCLEANFILES): Likewise.
2175 (install-common): Likewise.
2177 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
2179 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
2180 * config/i386/i386.c (ix86_decompose_address): Use
2181 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
2182 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
2183 thread pointer to a register.
2185 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
2187 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
2188 on tls_symbolic_operand.
2189 (tls_global_dynamic_64_<mode>): Likewise.
2191 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
2194 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
2195 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
2197 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
2200 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
2201 type from reg_class_t to enum reg_class.
2202 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
2204 2012-03-12 Andrew Pinski <apinski@cavium.com>
2206 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
2207 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
2208 (value_replacement): Likewise.
2209 (empty_block_p): Check also if the PHIs for the block are empty.
2211 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
2214 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
2215 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
2216 r184615 from 2012-02-28.
2218 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
2220 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
2221 (ix86_gen_tls_local_dynamic_base_64): Likewise.
2222 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
2223 and ix86_gen_tls_local_dynamic_base_64.
2224 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
2225 ix86_gen_tls_local_dynamic_base_64.
2227 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
2228 (*tls_global_dynamic_64_<mode>): This.
2229 (tls_global_dynamic_64): Renamed to ...
2230 (tls_global_dynamic_64_<mode>): This.
2231 (*tls_local_dynamic_base_64): Renamed to ...
2232 (*tls_local_dynamic_base_64_<mode>): This.
2233 (tls_local_dynamic_base_64): Renamed to ...
2234 (tls_local_dynamic_base_64_<mode>): This.
2236 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
2238 * config/i386/i386.c (ix86_option_override_internal): Properly
2239 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
2240 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
2241 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
2242 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
2244 * config/i386/sse.md (sse3_monitor64): Renamed to ...
2245 (sse3_monitor64_<mode>): This.
2247 2012-03-12 Tristan Gingold <gingold@adacore.com>
2249 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
2250 (ia64_function_arg_advance): Ditto.
2252 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2254 * config.gcc (mips*-*-openbsd*): Remove.
2255 * config/mips/openbsd.h: Remove.
2256 * config/mips/sdb.h: Remove.
2258 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
2259 * config/mips/mips.c (sdb_label_count): Remove.
2260 (mips_debugger_offset): Remove #if 0 code.
2261 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
2262 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
2264 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2266 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
2268 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
2269 Update binutils references.
2270 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
2271 Update binutils reference.
2272 Update Sun as/GNU ld caveat.
2273 Document binutils largefile requirement for LTO plugin.
2274 Remove reference to alternate libpthread.
2276 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2278 * config.gcc (alpha*-dec-osf5.1*): Remove.
2279 * config.host (alpha*-dec-osf*): Remove.
2280 * configure.ac (*-*-osf*): Remove.
2281 (alpha*-dec-osf*): Remove.
2282 * configure: Regenerate.
2284 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
2285 config/alpha/va_list.h, config/alpha/x-osf: Remove.
2287 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
2288 * config/alpha/alpha.c (struct machine_function): Update comment.
2289 (alpha_start_function): Remove Tru64 UNIX as handling for
2291 * config/alpha/alpha.md ("exception_receiver"): Remove
2292 TARGET_LD_BUGGY_LDGP.
2293 ("*exception_receiver_2"): Likewise.
2294 * except.c (finish_eh_generation): Remove Tru64 reference.
2295 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
2296 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
2297 * target.def (handle_pragma_extern_prefix): Remove.
2299 * Makefile.in (mips-tfile.o-warn): Remove.
2300 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
2301 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
2302 * mips-tdump.c, mips-tfile.c: Remove.
2304 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
2306 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
2307 (Specific, alpha*-dec-osf5.1): Note removal.
2308 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
2310 * doc/tm.texi: Regenerate.
2311 * doc/trouble.texi (Cross-Compiler Problems): Remove.
2313 2012-03-12 Richard Guenther <rguenther@suse.de>
2315 * config/arm/arm.c (neon_dereference_pointer): Do not call
2316 covert during RTL expansion.
2318 2012-03-12 Tristan Gingold <gingold@adacore.com>
2320 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
2321 Options. Mention -mpointer-size.
2323 2012-03-12 Richard Guenther <rguenther@suse.de>
2325 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
2326 build_nonstandard_integer_type.
2328 2012-03-12 Richard Guenther <rguenther@suse.de>
2330 * tree.c (signed_or_unsigned_type_for): Use
2331 build_nonstandard_integer_type.
2332 (signed_type_for): Adjust documentation.
2333 (unsigned_type_for): Likewise.
2334 * tree-pretty-print.c (dump_generic_node): Use standard names
2335 for non-standard integer types if available.
2337 2012-03-12 Tristan Gingold <gingold@adacore.com>
2339 * config/vms/vms.opt: Add vms-opts.h header.
2340 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
2342 (-mvms-return-codes): Document.
2343 (-mpointer-size): New option.
2344 (vms_pointer_size): Add enumeration.
2345 * config/vms/vms-opts.h: New file.
2346 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
2347 __INITIAL_POINTER_SIZE.
2348 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
2349 (C_COMMON_OVERRIDE_OPTIONS): Define.
2350 (DWARF2_ADDR_SIZE): Define.
2351 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
2352 * config/vms/vms-protos.h (vms_c_common_override_options):
2354 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
2355 if -mno-pointer-size.
2356 (vms_c_common_override_options): New function.
2357 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
2358 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
2359 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
2360 and flag_vms_pointer_size.
2361 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
2362 * config.gcc (*-*-*vms*): Define xm_file.
2363 (alpha*-dec-*vms*): Do not define xm_file.
2364 (alpha64-dec-*vms*): Remove.
2365 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
2368 2012-03-12 Jakub Jelinek <jakub@redhat.com>
2370 PR tree-optimization/51721
2371 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
2372 if (int) unsvar cmp CST.
2374 2012-03-12 Richard Guenther <rguenther@suse.de>
2376 * tree-sra.c (create_access_replacement): Only rename the replacement
2377 if we can rewrite it into SSA form. Properly mark register typed
2378 replacements that we cannot rewrite with TREE_ADDRESSABLE.
2379 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
2380 for aggregate or BLKmode results.
2382 2012-03-12 Jakub Jelinek <jakub@redhat.com>
2384 PR tree-optimization/52533
2385 * tree-vrp.c (register_edge_assert_for_2): Use double_int
2386 type for mask, only handle shifts by non-zero in-range
2387 shift count, for LE_EXPR and GT_EXPR if new_val is
2388 maximum, don't add the assertion.
2390 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
2392 * doc/invoke.texi: Document -mrtm option.
2393 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
2394 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
2395 (ix86_handle_option): Handle OPT_mrtm.
2396 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
2398 (x86_64-*-*): Ditto.
2399 * i386-builtin-types.def (INT_FTYPE_VOID): New.
2400 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2402 (ix86_target_string): Define -mrtm option.
2404 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
2406 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
2407 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
2409 (bdesc_special_args): Ditto.
2410 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
2411 (ix86_expand_special_args_builtin): Handle new built-in type.
2412 (ix86_expand_builtin): Handle XABORT instruction.
2413 * config/i386/i386.h (TARGET_RTM): New.
2414 * config/i386/i386.md (UNSPECV_XBEGIN): New.
2415 (UNSPECV_XEND): Ditto.
2416 (UNSPECV_XABORT): Ditto.
2417 (UNSPECV_XTEST): Ditto.
2424 * config/i386/i386.opt (mrtm): New.
2425 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
2426 * config/i386/rtmintrin.h: New header.
2427 * config/i386/xtestintrin.h: Ditto.
2429 2012-03-12 Tristan Gingold <gingold@adacore.com>
2431 * ginclude/stddef.h: Adjust previous patch.
2432 Use __VMS__ instead of VMS.
2434 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
2436 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
2437 Also convert sequences with CC setting arithmetic instruction.
2439 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
2441 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
2442 from C Language Options to Preprocessor Options.
2443 (C Dialect Options): Move -no-integrated-cpp documentation
2445 (Preprocessor Options): ...to here. Rewrite the description
2446 so it makes more sense, and remove discussion of merging front ends.
2448 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2450 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
2452 (ix86_expand_setmem): Likewise.
2454 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
2456 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
2459 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2461 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
2462 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
2464 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2466 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
2468 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2470 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
2473 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
2474 Uros Bizjak <ubizjak@gmail.com>
2476 * config/i386/predicates.md (call_insn_operand): Allow
2477 constant_call_address_operand in Pmode only.
2478 (sibcall_insn_operand): Ditto.
2479 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
2480 (*call_vzeroupper): Ditto.
2482 (*sibcall_vzeroupper): Ditto.
2483 (*call_value): Ditto.
2484 (*call_value_vzeroupper): Ditto.
2485 (*sibcall_value): Ditto.
2486 (*sibcall_value_vzeroupper): Ditto.
2487 (*indirect_jump): Ditto.
2488 (*tablejump_1): Ditto.
2489 (indirect_jump): Convert memory address to word mode for TARGET_X32.
2491 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
2494 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
2497 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
2498 Use movrt_negc instead of negc pattern for non-SH2A.
2500 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
2502 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
2504 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
2505 if Pmode != word_mode.
2506 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
2507 Pmode == SImode for TARGET_X32.
2509 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
2510 (tls_initial_exec_x32): Likewise.
2512 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
2514 PR rtl-optimization/52528
2515 * combine.c (can_combine_p): Add setting of subst_low_luid
2516 before call to expand_field_assignment().
2518 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
2520 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
2521 and related program names.
2523 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
2525 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
2527 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
2530 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
2531 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
2533 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
2534 (*movdi_internal_rex64): Use %E operand modifier for lea.
2535 (*movsi_internal): Ditto.
2537 (*lea<mode>_2): Ditto.
2538 (*lea_{3,4,5,6}_zext): Ditto.
2539 (*tls_global_dynamic_32_gnu): Ditto.
2540 (*tls_global_dynamic_64): Ditto.
2541 (*tls_dynamic_gnu2_lea_32): Ditto.
2542 (*tls_dynamic_gnu2_lea_64): Ditto.
2543 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
2545 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2547 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
2548 redefine to be NULL if the current bit-size is different from the
2549 configured bit-size.
2551 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
2552 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
2553 set the default tuning. Add asserts to make sure the cpu and tune
2554 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
2555 test whether the index is set, instead of > 0.
2556 (rs6000_file_start): Do not reset the default cpu if the current
2557 bit-size is different from the configured bit-size.
2559 2012-03-09 Tristan Gingold <gingold@adacore.com>
2561 * config/vms/vms-crtlmap.map: Add comments.
2562 Add entries needed to build Ada RTS.
2564 2012-03-09 Tristan Gingold <gingold@adacore.com>
2566 * ginclude/stddef.h: Do not define __size_t on VMS.
2568 2012-03-09 Tristan Gingold <gingold@adacore.com>
2570 * c-tree.h (c_default_pointer_mode): New variable.
2571 * c-decl.c (c_default_pointer_mode): New variable.
2572 (c_build_pointer_type): New function.
2573 (grokdeclarator): Call c_build_pointer_type instead
2574 of build_pointer_type.
2576 * config/vms/vms-c.c: Include c-tree.h
2577 (saved_pointer_mode): New variable.
2578 (handle_pragma_pointer_size): New function.
2579 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
2580 (vms_c_register_pragma): Register __pointer_size and
2581 __required_pointer_size pragmas.
2583 2012-03-09 Tristan Gingold <gingold@adacore.com>
2585 * config/vms/vms-c.c (vms_construct_include_filename): New function.
2586 (vms_c_register_includes): Reference it.
2588 2012-03-09 Andrew Pinski <apinski@cavium.com>
2591 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
2593 (tree_ssa_phiopt_worker): Go through all the PHIs for
2594 value_replacement instead of just the singleton one.
2595 (value_replacement): Change return type to int. Return 0 instead of
2597 Allow the middle basic block to contain more than just the defining
2599 Handle non empty middle basic blocks.
2600 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
2602 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
2604 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
2605 array reference and component reference.
2606 (analyze_scalar_evolution_for_address_of): New.
2608 2012-03-08 Jie Zhang <jzhang918@gmail.com>
2611 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
2612 (hwloop_pattern_reg): Fix set but not used warning.
2613 (bfin_reorg_loops): Remove unused parameter.
2614 (bfin_reorg): Update use of bfin_reorg_loops.
2616 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
2618 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
2619 with integer parameters in registers.
2620 (gen_push): Push register in word_mode instead of Pmode.
2621 (ix86_emit_save_regs): Likewise.
2622 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
2623 (gen_pop): Pop register in word_mode instead of Pmode.
2624 (ix86_emit_restore_regs_using_pop): Likewise.
2625 (ix86_expand_prologue): Replace Pmode with word_mode for push
2626 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
2627 restore RAX and R10 in word_mode.
2628 (ix86_emit_restore_regs_using_mov): Restore integer registers
2630 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
2632 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
2633 (ix86_split_long_move): Likewise.
2635 * config/i386/i386.md (W): New.
2636 (*push<mode>2_prologue): Replace :P with :W.
2637 (*pop<mode>1): Likewise.
2638 (*pop<mode>1_epilogue): Likewise.
2639 (push/pop peephole2): Use word_mode scratch registers.
2641 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
2643 * config/i386/predicates.md (indirect_branch_operand): Simplify.
2645 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
2647 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
2648 for constants in [-63,63].
2650 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
2654 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
2656 * config/i386/i386.c (ix86_print_operand_address): Only handle
2657 zero-extended DImode addresses.
2659 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2661 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
2662 * configure: Regenerate.
2664 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
2667 * config/avr/avr.c (avr_mem_clobber): New static function.
2668 (avr_expand_delay_cycles): Add memory clobber operand to
2669 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
2670 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
2671 (enable_interrupt, disable_interrupt): New expander.
2672 (nopv, sleep, wdr): New expanders.
2673 (delay_cycles_1): Add memory clobber.
2674 (delay_cycles_2): Add memory clobber.
2675 (delay_cycles_3): Add memory clobber.
2676 (delay_cycles_4): Add memory clobber.
2677 (cli_sei): New insn from former "enable_interrupt",
2678 "disable_interrupt" with memory clobber.
2679 (*wdt): New insn from former "wdt" with memory clobber.
2680 (*nopv): Similar, but for "nopv".
2681 (*sleep): Similar, but for "sleep".
2683 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
2684 Kaz Kojima <kkojima@gcc.gnu.org>
2687 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
2688 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
2689 (SUBTARGET_OVERRIDE_OPTIONS): Define.
2691 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
2693 * config/i386/predicates.md (x86_64_zext_general_operand): New.
2694 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
2695 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
2697 2012-03-07 Walter Lee <walt@tilera.com>
2699 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
2700 REG_CFA_* notes for the stack pointer.
2701 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
2702 EH_RETURN_STACKADJ_RTX.
2703 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
2704 generate REG_CFA_* notes for the stack pointer.
2705 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
2706 by EH_RETURN_STACKADJ_RTX.
2708 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2710 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
2711 when __AVR_3_BYTE_PC__ is defined.
2713 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
2715 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
2716 (ix86_print_operand): Handle '^'.
2717 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
2718 using P mode iterator. Add %^ to asm template to conditionally emit
2720 (*rep_movdi_rex64): Ditto.
2721 (*strsetdi_rex_1): Ditto.
2722 (*rep_stosdi_rex64): Ditto.
2723 (*strmov{si,hi,qi}_1): Add %^ to asm template to
2724 conditionally emit addr32 prefix.
2725 (*rep_mov{si,qi}): Ditto.
2726 (*strset{si,hi,qi}): Ditto.
2727 (*rep_stos{si,qi}): Ditto.
2728 (*cmpstrnqi_nz_1): Ditto.
2729 (*cmpstrnqi_1): Ditto.
2730 (*strlenqi_1): Ditto.
2732 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
2734 * config/i386/i386.c (function_value_64): Return pointers in
2735 word_mode instead of Pmode.
2736 (ix86_promote_function_mode): Likewise.
2738 2012-03-07 Richard Guenther <rguenther@suse.de>
2740 * coverage.c (get_gcov_type): Use type_for_mode.
2741 (get_gcov_unsigned_t): Likewise.
2742 * expr.c (store_constructor): Use type_for_mode.
2743 (try_casesi): Likewise.
2744 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
2745 (add_standard_iv_candidates): Use standard type trees.
2746 * dojump.c (do_jump): Remove dead code.
2748 2012-03-07 Richard Guenther <rguenther@suse.de>
2750 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
2752 2012-03-07 Richard Guenther <rguenther@suse.de>
2754 * convert.c (strip_float_extensions): Move ...
2755 * tree.c (strip_float_extensions): ... here.
2757 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2760 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
2762 2012-03-07 Richard Guenther <rguenther@suse.de>
2764 * omp-low.c (extract_omp_for_data): Use signed_type_for.
2765 (expand_omp_for_generic): Likewise.
2766 (expand_omp_for_static_nochunk): Likewise.
2767 (expand_omp_for_static_chunk): Likewise.
2768 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
2769 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
2770 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2771 Use unsigned_type_for.
2772 (vect_create_cond_for_align_checks): Use signed_type_for.
2774 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
2776 PR rtl-optimization/52203
2777 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
2778 all callers to pass NULL except ...
2779 (reset_sched_cycles_in_current_ebb): ... here, save the value
2780 in new variable 'empty'. Increase issue_rate only for
2783 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
2786 * Makefile.in: Let install-gcc-ar depend on installdirs,
2787 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
2788 Don't double canonicalize if cross-compiling.
2790 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2793 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
2794 to: RAMPZ, RAMPY, RAMPX, RAMPD.
2795 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
2797 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2800 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
2802 * config/avr/avr.md (xload_8): Adjust insn length.
2804 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
2807 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
2808 if RAMPZ affects reading from RAM.
2810 2012-03-07 Richard Guenther <rguenther@suse.de>
2814 * doc/invoke.texi (Precompiled Headers): Remove sentence that
2815 suggests you can include PCHs from inside another header.
2817 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
2820 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
2822 2012-03-07 Kai Tietz <ktietz@redhat.com>
2824 * doc/invoke.texi (fwritable-relocated-rdata): Document
2825 new Cygwin/MinGW target option.
2826 * config/i386/winnt.c (i386_pe_unique_section): Ignore
2827 reloc if flag -fwritable-relocated-rdata is not set.
2828 (i386_pe_section_type_flags): Likewise.
2829 * config/i386/cygming.opt (fwritable-relocated-rdata):
2830 Add new flag variable flag_writable_rel_rdata.
2832 2012-03-07 Richard Guenther <rguenther@suse.de>
2834 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
2835 precision against gimple constraints.
2837 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
2840 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
2842 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
2843 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
2845 (init_emit_regs): Move associated initialization to...
2846 (init_emit_once): ...here.
2848 2012-03-06 Richard Henderson <rth@redhat.com>
2850 * config/m68k/m68k.h (ISA_HAS_TAS): New.
2851 * config/m68k/sync.md (atomic_test_and_set): Use it.
2852 (atomic_test_and_set_1): Likewise.
2854 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2857 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
2858 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
2859 (vector_ltgt<mode>): Likewise.
2860 (vector_ordered<mode>): Likewise.
2861 (vector_unordered<mode>): Likewise.
2862 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
2864 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
2866 * trans-mem.c: New typedef for tm_region_p.
2867 Define vector types for tm_region_p.
2868 (tm_region_init): Replace region_worklist to a vector called
2871 2012-03-06 Richard Guenther <rguenther@suse.de>
2873 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
2874 MEM_REF with constant pointer operand.
2876 2012-03-06 Richard Guenther <rguenther@suse.de>
2879 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
2881 2012-03-06 Tristan Gingold <gingold@adacore.com>
2883 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
2884 (external_model_kind): Improve documentation.
2885 (vms_pragma_extern_model): Handle relaxed_redef.
2886 (vms_c_register_pragma): Allow expansion for nomember_alignment.
2888 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
2890 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
2891 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
2892 Some more notes on EIND usage and reorder EIND subsection.
2894 2012-03-06 Tristan Gingold <gingold@adacore.com>
2896 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
2897 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
2899 2012-03-06 Tristan Gingold <gingold@adacore.com>
2901 * config/vms/t-vmsnative (version): Define.
2902 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
2904 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
2906 PR rtl-optimization/52250
2907 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
2908 to put note list into. Unconditionally call move_bb_info.
2909 (move_bb_info): Do not assert the blocks being in the same region,
2910 just drop the note list if they are not.
2912 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
2915 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
2916 and use unified expansion logic.
2917 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
2918 closer to the existing movt insn.
2919 (negc): Rename insn to *negc. Add new expander.
2920 (movnegt): Use xor pattern for T bit negation. Reserve helper
2921 constant for negc pattern.
2922 (*movnegt): New insn and splitter.
2924 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
2926 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
2929 2012-03-05 Richard Henderson <rth@redhat.com>
2931 * genemit.c (main): Include "target.h" in insn-emit.c.
2932 * Makefile.in (insn-emit.o): Depend on TARGET_H.
2933 * config/sh/sync.md (atomic_test_and_set): Reference
2934 targetm.atomic_test_and_set_trueval instead of
2935 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
2937 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
2939 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
2942 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
2944 * langhooks.c (add_builtin_type): New function.
2945 * langhooks.h (add_builtin_type): Export it.
2946 * config/mep/mep.c (mep_init_builtins): Use it.
2947 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
2949 2012-03-05 Jakub Jelinek <jakub@redhat.com>
2952 * tree.h (BLOCK_SAME_RANGE): Define.
2953 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
2954 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
2955 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
2956 isn't equal to supercontext fragment's fragment chain.
2957 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
2959 (blocks_nreverse_all): Likewise.
2960 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
2961 BLOCK_SUPERCONTEXT to supercontext fragment instead of
2962 supercontext fragment's fragment origin.
2963 * dwarf2out.c (add_high_low_attributes): If stmt has the same
2964 range as its parent (or parents thereof etc.), use the parent's
2965 DW_AT_ranges value instead of creating a new .debug_ranges range.
2967 2012-03-05 Richard Henderson <rth@redhat.com>
2970 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
2971 * omp-low.c (expand_omp_atomic): Assume anything aligned to
2972 BIGGEST_ALIGNMENT is aligned.
2974 2012-03-05 Richard Henderson <rth@redhat.com>
2976 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
2977 * config/sh/sh.c: ... here.
2979 2012-03-05 Richard Henderson <rth@redhat.com>
2982 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
2983 instead of calling negqi2 directly.
2985 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
2988 * trans-mem.c (tm_region_init): Use last_basic_block.
2990 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
2992 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
2993 * config/sh/sync.md (atomic_test_and_set): New expander.
2994 (tasb, atomic_test_and_set_soft): New insns.
2995 * config/sh/sh.opt (menable-tas): New option.
2996 * doc/invoke.texi (SH Options): Document it.
2998 2012-03-05 Richard Guenther <rguenther@suse.de>
3000 * cfgloop.c (verify_loop_structure): Verify dominators before
3002 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
3003 dominators from here.
3004 * graphite-scop-detection.c (create_sese_edges): Likewise.
3005 * loop-doloop.c (doloop_optimize_loops): Likewise.
3006 * loop-init.c (loop_optimizer_init): Likewise.
3007 * loop-unroll.c (unroll_and_peel_loops): Likewise.
3008 * loop-unswitch.c (unswitch_loops): Likewise.
3009 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
3010 * tree-parloops.c (parallelize_loops): Likewise. Verify
3011 only when checking is enabled.
3012 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
3014 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
3016 * genautomata.c (parse_automata_opt): New static function.
3017 (initiate_automaton_gen): Remove all option handling code. Remove
3018 argc argument. All callers changed.
3019 (main): Call init_rtx_reader_args_cb with the new function as argument.
3021 2012-03-05 Richard Guenther <rguenther@suse.de>
3023 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
3024 * tree-if-conv.c (combine_blocks): Free post-dominator info
3026 * tree-parloops.c (create_parallel_loop): Free and re-compute
3027 dominator info after breaking it.
3029 2012-03-05 Richard Guenther <rguenther@suse.de>
3032 * optabs.h (trapv_unoptab_p): New function.
3033 (trapv_binoptab_p): Likewise.
3034 * optabs.c (expand_binop): Use emit_libcall_block_1 with
3035 a proper equiv_may_trap argument.
3036 (expand_unop): Likewise.
3037 (emit_libcall_block_1): Take extra argument whether the
3038 instruction may trap. Renamed from ...
3039 (emit_libcall_block): ... this. New wrapper.
3041 2012-03-05 Jakub Jelinek <jakub@redhat.com>
3043 PR tree-optimization/51721
3044 * tree-vrp.c (register_edge_assert_for_2): If comparing
3045 lhs of right shift by constant with an integer constant,
3046 add ASSERT_EXPRs for the rhs1 of the right shift.
3048 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
3050 2012-03-05 Richard Guenther <rguenther@suse.de>
3052 * tree.c (integer_zerop): Handle VECTOR_CSTs.
3053 (integer_onep): Likewise.
3054 (integer_all_onesp): Likewise.
3056 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
3058 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
3060 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
3062 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
3063 instead of TARGET_64BIT.
3065 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
3067 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
3070 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
3072 * config/i386/i386.c (ix86_print_operand_address): Only handle
3073 zero-extended DImode addresses.
3075 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
3077 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
3078 taken and cputaken as bool.
3080 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
3082 * config/i386/constraints.md (Ya): New internal constraint.
3083 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
3084 (*zero_extendsidi2_rex64): Add x,x alternative.
3085 (*zero_extendsidi2): Ditto. Add o,0 alternative.
3086 Remove flags reg clobber. Adjust corresponding splits.
3087 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
3088 zero_extendqisi2 expanders using SWI12 mode iterator.
3089 (zero_extend<mode>si2_and): Macroize insn from
3090 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
3092 (*zero_extend<mode>si2): Macroize insn from
3093 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
3094 (*zero_extend*2_movzbl_and): Remove insn patterns.
3095 (zero_extendqihi2_and): Merge corresponding splitter.
3096 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
3097 (*zero_extend*2_movzbl_and): Remove insn patterns.
3098 (*anddi_1): Split TYPE_IMOVX instructions.
3099 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
3101 (and->zext splitter): Add splitter pattern.
3102 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
3104 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
3106 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
3108 (Debugging Options): Likewise.
3109 (Optimize Options): Likewise.
3110 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
3111 with other architectures. Use official processor names with correct
3112 spelling/capitalization. Fix formatting and grammar issues.
3113 (i386 and x86-64 Windows Options): Similar cleanup here.
3115 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
3117 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
3119 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
3121 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
3122 DBX_REGISTER_NUMBER.
3124 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
3126 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
3127 operand is CONST_INT. Take COSTS_N_INSNS into account.
3128 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
3131 2012-03-02 Richard Henderson <rth@redhat.com>
3133 * optabs.c (expand_atomic_test_and_set): Honor
3134 atomic_test_and_set_trueval even when atomic_test_and_set
3135 optab is not in use.
3137 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
3141 * config/sh/sh.c (sh_register_move_cost): Increase cost between
3142 GENERAL_REGS and FP_REGS for SImode.
3144 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
3147 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
3148 (absdi2): New expander.
3149 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
3151 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
3153 * config/sh/sync.md (atomic_exchange<mode>): New expander.
3154 (atomic_exchange<mode>_soft): New insn.
3156 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
3158 * config/sh/sync.md: Update copyright notice dates.
3159 (atomic_compare_and_swap<mode>): Use SImode for return value instead
3161 (atomic_compare_and_swap<mode>_soft): Likewise.
3163 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
3166 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
3167 * config/sh/sh.c: Update copyright notice dates.
3168 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
3169 alignment for TARGET_HARD_SH4.
3170 (sh_option_override): Reduce default function alignment. Set
3171 loop alignment to 4 bytes when not optimizing for size.
3173 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
3176 * doc/invoke.texi (floop-flatten): Remove.
3177 * toplev.c (process_options): Remove references to flag_loop_flatten.
3178 * tree-ssa-loop.c (gate_graphite_transform): Same.
3179 * common.opt (floop-flatten): Obsolete.
3180 * graphite-poly.c (apply_poly_transforms): Remove reference to
3182 * Makefile.in (graphite-flattening.o): Remove.
3183 * graphite-flattening.c: Remove.
3185 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
3187 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
3188 having mode compatible with the mode of previous compare. Substitute
3189 compare mode of previous compare with the mode, compatible
3190 with eliminated and previous compare.
3192 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
3194 * config/rs6000/dfp.md (floatdidd2): New define_insn.
3196 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
3198 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
3199 compatible with CCGOCmode and CCGCmode.
3201 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
3203 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
3205 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3207 * config/arm/arm.c (arm_sat_operator_match): New function.
3208 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
3209 * config/arm/arm.md ("insn" attribute): Add "sat" value.
3210 ("SAT", "SATrev"): New code iterators.
3211 ("SATlo", "SAThi"): New code iterator attributes.
3212 ("*satsi_<SAT:code>"): New pattern.
3213 ("*satsi_<SAT:code>_shift"): Likewise.
3214 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
3215 and "shift" attributes.
3216 ("arm_usatsihi"): Add "insn" attribute.
3217 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
3218 by powers of two. Do not allow shift by 32.
3220 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
3223 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
3224 to pass the argument in the register of "natural" mode.
3226 2012-03-02 Richard Guenther <rguenther@suse.de>
3228 PR tree-optimization/52406
3229 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
3230 (struct indices): Add unconstrained_base member.
3231 (struct dr_alias): Remove unused vops member.
3232 (DR_UNCONSTRAINED_BASE): New define.
3233 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
3234 add indices to allow their disambiguation. Make DR_BASE_OBJECT
3235 be an artificial access that covers the whole indexed object,
3236 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
3237 plain decl base-objects to their MEM_REF variant.
3238 (dr_may_alias_p): When the base-object of either data reference
3239 has unknown size use only points-to information.
3240 (compute_affine_dependence): Make dumps easier to read and
3242 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
3243 DR_REF when looking for packed references.
3244 (vect_supportable_dr_alignment): Likewise.
3246 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
3248 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
3249 Improve conditions for peepholes of loads followed by commutative
3251 * config/arm/ldmstm.md: Regenerated.
3253 2012-03-02 Richard Guenther <rguenther@suse.de>
3255 * BASE-VER: Set to 4.8.0.
3257 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
3259 * config.gcc (obsolete): Add all ARM targets using the FPA.
3260 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
3261 * doc/install.texi: Avoid references to obsolete ARM ports.
3263 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
3265 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
3267 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
3268 Joern Rennecke <joern.rennecke@embecosm.com>
3270 * doc/extend.texi: Expand and update information on interrupt
3271 attribute for Epiphany.
3273 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
3275 * config/sh/sh-protos.h: Update copyright notice dates.
3276 * config/sh/sh.h: Likewise.
3277 * config/sh/sh.md: Likewise.
3278 * config/sh/constraints.md: Likewise.
3279 * config/sh/predicates.md: Likewise.
3281 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
3283 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
3284 * config/sh/sh.c (tertiary_reload_operand): Likewise.
3286 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
3288 * config/sh/constraints.md: Fix comment typo.
3290 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3293 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
3294 unsigned HOST_WIDE_INT.
3295 (zvdep_imm64): Likewise.
3296 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
3297 (vdepi_and): Likewise.
3298 Likewise for unamed 64-bit patterns.
3299 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
3301 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
3304 PR rtl-optimization/52417
3305 * cselib.c (cselib_any_perm_equivs): New variable.
3306 (cselib_reset_table): Check that it's not set when not
3307 preserving constants.
3308 (cselib_add_permanent_equiv): Set it.
3309 (cselib_have_permanent_equivalences): New.
3310 (cselib_init, cselib_finish): Reset it.
3311 * cselib.h (cselib_have_permanent_equivalences): Declare.
3312 * alias.c (get_addr): Restore earlier behavior when there
3313 aren't permanent equivalences.
3315 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
3317 * config/mn10300/mn10300-modes.def: Fix copyright notice.
3318 * config/v850/v850-modes.def: Fix copyright notice.
3320 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
3322 * doc/extend.texi (AVR Built-in Functions): Document
3323 __builtin_avr_flash_segment.
3325 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
3326 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
3327 (*split.flash_segment): New insn-and-split.
3328 * config/avr/avr.c (avr_init_builtins): Add local variables:
3329 const_memx_void_node, const_memx_ptr_type_node,
3330 char_ftype_const_memx_ptr.
3332 2012-03-01 Jakub Jelinek <jakub@redhat.com>
3334 PR tree-optimization/52445
3335 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
3336 add ssa_name_ver, offset and size fields and change store field
3338 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
3339 (add_or_mark_expr): Likewise. Only consider previous stores
3340 with the same size and offset.
3341 (nt_init_block): Only look at gimple_assign_single_p stmts,
3342 doesn't look at rhs2.
3344 2012-03-01 Richard Guenther <rguenther@suse.de>
3347 * tree-cfg.c (verify_gimple_assign_unary): Allow any
3348 conversions from integral types to pointer types.
3350 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
3352 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
3353 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
3354 unintentionally removed in r184616.
3356 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3358 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
3361 2012-02-29 Jakub Jelinek <jakub@redhat.com>
3362 Uros Bizjak <ubizjak@gmail.com>
3365 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
3366 alternatives, add "e" constraint to the new last alternative
3367 and ! to last 3 alternatives.
3369 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
3371 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
3372 DW_AT_artificial attributes at the end of the processing.
3373 (gen_array_type_die): Likewise.
3374 (gen_enumeration_type_die): Likewise.
3375 (gen_struct_or_union_type_die): Likewise.
3376 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
3379 2012-02-29 Jakub Jelinek <jakub@redhat.com>
3382 * expr.c (expand_assignment): If doing misaligned store that doesn't
3383 cover all mode bits, perform a RMW cycle.
3385 PR tree-optimization/52429
3386 * tree-parloops.c (separate_decls_in_region_debug): Return early
3387 if var is LABEL_DECL.
3389 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3391 PR tree-optimization/52424
3392 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
3393 calling dom_thread_across_edge.
3395 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3397 * config/avr/avr.c: Move definition of TARGET macros to end of file.
3399 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3401 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
3402 * config/avr/avr.c (avr_output_bld): Remove unused function.
3403 (avr_out_sbxx_branch): Use "%T" to print bit position.
3405 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3407 * config/avr/avr.md: Untabify.
3409 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3411 * config/avr/avr.md (eqne): New code iterator.
3412 (*dec-and-branchsi): Use it in text peephole's condition.
3413 (*dec-and-branchhi): Ditto.
3414 (*dec-and-branchqi): Ditto.
3416 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
3419 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
3420 the device does not have the skip-bug.
3422 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
3424 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
3425 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
3426 -mpretend-cmove): New.
3428 2012-02-29 Jakub Jelinek <jakub@redhat.com>
3431 * df.h (struct df_d): Adjust comment that hard_regs_live_count
3432 doesn't count DEBUG_INSN refs.
3433 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
3434 for DEBUG_INSN refs.
3436 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3440 2012-02-20 Richard Guenther <rguenther@suse.de>
3441 PR tree-optimization/52298
3442 * tree-vect-stmts.c (vectorizable_load): Properly use
3443 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
3446 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
3449 * gimple.h (gimple_in_transaction): New.
3450 (gimple_set_in_transaction): New.
3451 (struct gimple_statement_base): Add in_transaction field.
3452 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
3454 (tree_ssa_lim_initialize): Compute transaction bits.
3455 * tree.h (compute_transaction_bits): Protoize.
3456 * trans-mem.c (tm_region_init): Use the heap to store BB
3458 (compute_transaction_bits): New.
3460 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3462 * gcc.c (display_help): Document --help=common and sort entries
3465 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3467 * doc/install.texi: Document check-$LANG specific shortcuts
3469 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3472 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
3474 * config/arm/arm_neon.h: Regenerate.
3475 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
3476 (neon_vcgeu): New insn.
3477 (neon_vcgtu): Likewise.
3478 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
3479 (ops): Unsigned comparison intrinsics call a different builtin.
3481 2012-02-28 Richard Guenther <rguenther@suse.de>
3484 * config/i386/i386.c (ix86_expand_vector_set): Fix element
3485 ordering for the VEC_CONCAT for two element vectors for
3486 V2SFmode, V2SImode and V2DImode.
3488 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
3491 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
3492 detecting big-endian triplets.
3494 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
3496 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
3497 mode if there is no type information available.
3499 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
3501 PR tree-optimization/53207
3502 * doc/invoke.texi: Document as experimental and relying on graphite.
3504 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
3506 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
3507 of initializer to changes from r184614.
3509 2012-02-28 Richard Guenther <rguenther@suse.de>
3511 PR tree-optimization/52395
3512 * tree-sra.c (build_ref_for_offset): Also look at the base
3513 TYPE_ALIGN when figuring out the alignment of the replacement.
3515 2012-02-28 Richard Guenther <rguenther@suse.de>
3517 PR tree-optimization/52402
3518 * ipa-prop.c (ipa_modify_call_arguments): Properly use
3519 mis-aligned types when creating the accesses at the call site.
3521 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
3523 * config/avr/builtins.def: New file.
3524 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
3525 * config/avr/avr.c (enum avr_builtin_id): Use it.
3526 (avr_init_builtins): Use it. And use avr_bdesc.
3527 (bdesc_1arg): Remove.
3528 (bdesc_2arg): Remove.
3529 (bdesc_3arg): Remove.
3530 (struct avr_builtin_description): Add field n_args.
3531 (avr_bdesc): New static variable using builtins.def.
3532 (avr_expand_builtin): Use it.
3533 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
3534 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
3535 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
3537 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
3540 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
3541 match only one single hard register with respective hard reg rtx.
3542 (movmemx_<mode>): Ditto.
3543 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
3544 insn anatomy of movmem[x]_<mode>.
3545 (avr_out_movmem): Same for printing assembler and operand usage.
3547 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
3551 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
3552 address spaces located outside of device flash.
3554 * config/avr/avr.h (base_arch_s): Remove field n_segments.
3555 (mcu_type_s): Add field n_flash.
3556 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
3557 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
3558 (AVR_MCU): Add N_FLASH argument.
3559 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
3560 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
3561 macro __FLASH<n> if that address space makes sense for the device.
3562 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
3563 outside of target flash.
3564 (avr_asm_named_section): Ditto.
3565 (avr_asm_select_section): Ditto.
3566 (avr_addr_space_convert): Ditto.
3567 (avr_emit_movmemhi): Ditto.
3568 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
3569 address space is outside of device flash.
3570 (avr_insert_attributes): Ditto.
3571 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
3572 avr_current_arch->n_segments.
3574 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
3577 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
3578 (*movabs<mode>_2): Likewise.
3580 2012-02-27 Jakub Jelinek <jakub@redhat.com>
3583 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
3584 s_register_operand in the test instead of REG_P. Don't call
3585 gen_reg_rtx if it won't be used.
3587 PR tree-optimization/52376
3588 * ipa-split.c (split_function): Ignore CLOBBER stmts.
3590 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
3592 * ifcvt.c (noce_get_condition): Check condition variable is not
3593 small_register_classes_for_mode_p before accepting.
3595 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
3597 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
3599 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3602 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3603 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
3605 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
3607 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
3609 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
3611 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
3613 * config/sh/predicates.md: Remove blank lines.
3614 * config/sh/sh.c: Fix typos in comments.
3615 * config/sh/constraints.md: Likewise.
3616 * config/sh/sh.md: Remove blank lines.
3617 Fix typos in comments. Use ;; as comment characters.
3619 2012-02-26 Walter Lee <walt@tilera.com>
3621 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
3622 (replace_mov_pcrel_step2): Ditto.
3624 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
3627 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
3628 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
3629 and locs that reference values newer than the non-canonical value
3630 at hand. Return the canonical value as a worst case.
3631 (memrefs_conflict_p): Walk canonical value's locs.
3634 * cselib.c (preserve_only_constants): Rename to...
3635 (preserve_constants_and_equivs): ... this. Split out...
3636 (invariant_or_equiv_p): ... this. Preserve plus expressions
3637 of other preserved expressions too.
3638 (cselib_reset_table): Adjust.
3639 * var-tracking.c (reverse_op): Use canonical value to build
3642 2012-02-23 Kai Tietz <ktietz@redhat.com>
3644 * config/i386/i386.c (ix86_delegitimize_address): Handle
3645 UNSPEC_PCREL plus displacement.
3647 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
3650 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
3651 to test for unusedness in st X addressing.
3653 2012-02-24 Richard Guenther <rguenther@suse.de>
3656 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
3657 (is_gimple_reg_type): Move inline ...
3658 * gimple.h (is_gimple_reg_type): ... here.
3660 2012-02-24 Richard Guenther <rguenther@suse.de>
3663 * passes.c (execute_function_todo): When verifying SSA form
3664 verify gimple form first.
3665 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
3667 2012-02-24 Richard Guenther <rguenther@suse.de>
3670 * fold-const.c (fold_addr_of_array_ref_difference): New function.
3671 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
3673 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3675 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
3677 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3679 * tree-phinodes.c (make_phi_node): Mark static.
3680 * tree-flow.h (make_phi_node): Remove extern decl.
3681 * doc/gimple.texi (make_phi_node): Remove documentation.
3683 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3685 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
3686 * tree-ssa-sccvn.c (print_scc): Ditto.
3688 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3690 * doc/passes.texi (Full redundancy elimination): Fix typo.
3692 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3694 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
3696 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
3699 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
3701 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
3704 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
3706 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
3708 * config/avr/avr.md (code_stdname): Add ior, xor.
3709 (xior): New code iterator.
3710 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
3711 (*<code_stdname><mode>qi.byte1-3): Ditto.
3713 2012-02-23 Jakub Jelinek <jakub@redhat.com>
3715 PR tree-optimization/52019
3716 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
3719 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3721 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
3722 HAVE_INITFINI_ARRAY to work around namespace pollution in
3723 certain versions of newlib system headers.
3724 * config.in: Regenerate.
3725 * configure: Regenerate.
3726 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
3727 instead of HAVE_INITFINI_ARRAY.
3729 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
3732 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
3733 is not offsettable memory reference.
3735 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
3738 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
3739 setting avr_need_clear_bss_p for __gnu_lto* symbols.
3741 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
3743 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
3744 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
3746 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3748 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
3749 library on Solaris 8 even without TLS support.
3750 * configure: Regenerate.
3752 2012-02-22 Richard Guenther <rguenther@suse.de>
3755 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
3756 for GIMPLE_DEBUG stmts.
3758 2012-02-22 Martin Jambor <mjambor@suse.cz>
3761 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
3762 according to the base object.
3764 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
3766 PR rtl-optimization/50063
3767 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
3768 and 2 (8-bit SP) in operand 2.
3769 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
3770 setup to use movhi_sp_r instead of vanilla move to write SP.
3771 Adjust REG_CFA notes to superseed unspec.
3772 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
3774 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
3775 known to be off) only with TARGET_NO_INTERRUPTS. Never use
3776 irq_state 1 (IRQ known to be on) here.
3778 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
3780 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
3782 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
3783 assign_hard_reg): Likewise.
3785 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
3787 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
3789 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
3792 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
3793 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
3795 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
3797 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
3798 prototype from here to...
3799 * config/avr/avr.h: ...here.
3801 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
3804 * thumb2.md (thumb2_shiftsi3_short): Split register and
3805 immediate shifts. For register shifts tie operands 0 and 1.
3806 (peephole2 for above): Check that register-controlled shifts
3807 have suitably tied operands.
3809 2012-02-21 Quentin Neill <quentin.neill@amd.com>
3812 * config/i386/bdver1.md (bdver1_call, bdver1_push,
3813 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
3814 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
3815 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
3816 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
3817 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
3818 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
3819 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
3820 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
3821 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
3822 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
3823 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
3824 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
3825 bdver1_ssevector_avx256_unaligned_load,
3826 bdver1_ssevector_sse128_unaligned_load,
3827 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
3828 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
3829 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
3830 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
3831 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
3832 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
3833 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
3834 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
3835 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
3836 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
3837 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
3838 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
3839 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
3840 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
3841 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
3842 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
3843 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
3844 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
3845 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
3846 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
3847 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
3848 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
3849 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
3850 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
3851 bdver1_ssediv_double_load, bdver1_ssediv_double,
3852 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
3853 Add "bdver2" attribute.
3855 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3857 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
3858 default if possible and not specified otherwise.
3860 2012-02-21 Richard Guenther <rguenther@suse.de>
3863 * gimplify.c (create_tmp_from_val): Use the main variant type
3864 for the type of the temporary we create.
3866 2012-02-21 Richard Guenther <rguenther@suse.de>
3868 PR tree-optimization/52324
3869 * gimplify.c (gimplify_expr): When re-gimplifying expressions
3870 do not gimplify a MEM_REF address operand if it is already
3873 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3875 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
3876 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
3878 2012-02-21 Richard Guenther <rguenther@suse.de>
3880 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
3881 nested_in_vect_loop.
3883 2012-02-21 Jakub Jelinek <jakub@redhat.com>
3885 PR tree-optimization/52318
3886 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
3887 vdef also to non-pure/const call stmts in the sequence.
3889 2012-02-21 Tristan Gingold <gingold@adacore.com>
3891 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
3893 2012-02-20 David S. Miller <davem@davemloft.net>
3895 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
3896 don't use the "rd %pc" instruction on v9 for PIC register loads.
3898 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
3901 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
3902 in a transaction safe function.
3904 2012-02-20 Kai Tietz <ktietz@redhat.com>
3907 * stor-layout.c (place_field): Handle desired_align for
3910 2012-02-20 Richard Guenther <rguenther@suse.de>
3912 PR tree-optimization/52298
3913 * tree-vect-stmts.c (vectorizable_store): Properly use
3914 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
3916 (vectorizable_load): Likewise.
3917 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
3918 Access DR_STEP after ensuring it is not NULL.
3920 2012-02-20 Jakub Jelinek <jakub@redhat.com>
3922 PR tree-optimization/52286
3923 * fold-const.c (fold_binary_loc): For (X & C1) | C2
3924 optimization use double_int_to_tree instead of build_int_cst_wide,
3925 rewrite to use double_int vars.
3927 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3930 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
3932 Remove -e 0 from $gcc_cv_ld invocation.
3933 Only use __GLIBC_PREREQ if defined.
3934 Enable on Solaris since Solaris 8 patch.
3935 (gcc_SUN_LD_VERSION): New macro.
3936 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
3937 gcc_SUN_LD_VERSION for version number format.
3938 * configure: Regenerate.
3939 * varasm.c (get_elf_initfini_array_priority_section): Set
3940 SECTION_NOTYPE for non-default priority.
3941 Use get_section instead of get_unnamed_section to emit
3942 .init_array/.fini_array with default priority.
3944 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
3946 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
3947 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
3948 (mips_start_unique_function, mips_output_mips16_rdhwr)
3949 (mips_code_end): New functions.
3950 (TARGET_ASM_CODE_END): Define.
3952 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
3954 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
3955 to stubs with non-sibling calls.
3957 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
3959 * doc/invoke.texi (-fira-* options): Copy-edit.
3960 (ira-* parameters): Copy-edit.
3962 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
3964 * doc/invoke.texi: Minor copy-edits to bring into conformance with
3965 GCC coding conventions.
3967 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
3969 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
3970 when used as adjectives.
3972 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
3974 * doc/invoke.texi: Clean up "that"/"which" confusion.
3976 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
3978 * system.h: Poison SMALL_REGISTER_CLASSES
3979 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
3980 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
3982 2012-02-16 Jakub Jelinek <jakub@redhat.com>
3984 PR tree-optimization/52285
3985 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
3986 when deciding if a call is a tail call or tail recursion.
3988 2012-02-16 Kai Tietz <ktietz@redhat.com>
3990 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
3991 interger-constant displacement for UNSPEC_PCREL.
3993 2012-02-16 Jakub Jelinek <jakub@redhat.com>
3995 PR rtl-optimization/52208
3996 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
3997 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
3999 PR tree-optimization/52255
4000 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
4001 loop->header has virtual PHI, but exit_e->dest doesn't, add
4002 virtual PHI to exit_e->dest and adjust all uses after the loop.
4005 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
4006 children with clone_tree_hash, not after it.
4008 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
4010 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
4011 extended identifiers.
4013 2012-02-16 Jakub Jelinek <jakub@redhat.com>
4016 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
4017 a same_body_alias, also test whether e->callee isn't a former
4018 or current clone of the decl this is a same body alias of.
4020 PR translation/52264
4021 * cgraphunit.c (verify_cgraph_node): Fix a typo.
4023 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
4025 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
4027 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
4030 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
4031 force_reg instead of copy_to_reg for better optimization. Force
4032 non-register or memory operands into a register.
4034 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
4036 * extend.texi: Reserve upper bits of memory model for future use.
4038 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
4039 Anatoly Sokolov <aesok@post.ru>
4040 Eric Weddington <eric.weddington@atmel.com>
4043 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
4044 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
4045 Rewrite initializers for .macro.
4046 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
4047 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
4048 atxmega32d4, atxmega32x1.
4049 avrxmega4: atxmega64a3, atxmega64d3.
4050 avrxmega5: atxmega64a1, atxmega64a1u.
4051 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
4052 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
4053 avrxmega7: atxmega128a1, atxmega128a1u.
4054 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
4055 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
4056 (struct base_arch_s): Rename reserved to xmega_p.
4057 Rename reserved2 to have_rampd.
4058 (AVR_XMEGA): New define.
4059 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
4060 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
4061 * config/avr/predicates.md (io_address_operand): Take into
4063 (low_io_address_operand): Ditto.
4064 (high_io_address_operand): Ditto.
4065 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
4066 (enabled, movhi_sp_r): Use them.
4067 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
4068 cpp_define_formatted to built-in define __AVR_ARCH__.
4069 (__AVR_XMEGA__): New built-in define.
4070 (__AVR_HAVE_RAMPD__): New built-in define.
4071 (__AVR_HAVE_RAMPX__): New built-in define.
4072 (__AVR_HAVE_RAMPY__): New built-in define.
4073 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
4075 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
4076 (avr_option_override): Initialize them.
4077 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
4078 (avr_init_expanders): Initialize them. No more block several calls.
4079 (emit_push_sfr): New static function.
4080 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
4082 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
4083 (avr_print_operand): Print addreeses as symbols for
4084 RAMPX, RAMPY, RAMPD, CCP.
4085 (output_movhi): Handle AVR_XMEGA when writing to SP.
4086 (avr_out_movhi_mr_r_xmega): New static function.
4087 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
4088 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
4089 __RAMPD__, __CCP__ as needed.
4091 * config/avr/multilib.h: Regenerate.
4092 * config/avr/t-multilib: Regenerate.
4093 * config/avr/avr-tables.opt: Regenerate.
4095 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
4097 PR tree-optimization/50561
4098 * graphite-flattening.c (lst_project_loop): Do not
4099 remove old scattering dimensions after flattening.
4100 (lst_do_flatten): Likewise.
4102 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
4104 * doc/extend.texi (AVR Built-in Functions): Remove doc for
4105 __builtin_avr_map8, __builtin_avr_map16.
4106 Document __builtin_avr_insert_bits.
4108 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
4109 (insert_bits): New insn.
4110 (adjust_len.map_bits): Rename to insert_bits.
4111 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
4112 * avr-protos.h (avr_out_map_bits): Remove.
4113 (avr_out_insert_bits, avr_has_nibble_0xf): New.
4114 * config/avr/constraints.md (Cxf,C0f): New.
4115 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
4116 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
4117 New built-in define __BUILTIN_AVR_INSERT_BITS.
4118 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
4119 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
4120 (avr_move_bits): Rewrite.
4121 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
4123 (avr_map_op_t): New typedef.
4124 (avr_map_op): New static variable.
4125 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
4126 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
4127 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
4128 (bdesc_3arg, avr_expand_triop_builtin): New.
4129 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
4130 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
4131 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
4132 (avr_map_equal_p, avr_map_sig_p): Remove.
4133 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
4134 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
4135 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
4136 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
4137 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
4138 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
4140 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
4142 * config/c6x/c6x.md (reserve_cycles): New attribute.
4143 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
4144 don't reserve functional units after the branch occurs.
4146 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
4149 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
4150 functions into non-tm_pure functions.
4152 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
4155 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
4156 (iterative_hash_canonical_type): Likewise.
4157 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
4160 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
4162 * haifa-sched.c (prune_ready_list): Ensure that if there is a
4163 sched-group insn, it either remains alone or the entire list is pruned.
4165 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
4167 * doc/install.texi (Prerequisites): Fix grammar.
4168 (Configuration): Likewise.
4170 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
4172 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
4173 MPC as part of GCC before describing configuring with --with-gmp etc.
4174 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
4175 sources are present.
4177 2012-02-14 Jakub Jelinek <jakub@redhat.com>
4180 * dwarf2out.c (clone_tree_hash): New function.
4181 (copy_decls_walk): Use it instead of clone_tree.
4183 2012-02-14 Richard Guenther <rguenther@suse.de>
4185 PR tree-optimization/52244
4186 PR tree-optimization/51528
4187 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
4188 replacements for integral types.
4190 2012-02-14 Walter Lee <walt@tilera.com>
4192 * config.gcc: Handle tilegx and tilepro.
4193 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
4195 Add HAVE_AS_TLS check for tilegx and tilepro.
4196 * configure: Regenerate.
4197 * doc/contrib.texi: Add Mat Hostetter and self.
4198 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
4199 Document instruction intrinsics and network accessing intrinsics.
4200 (TILEPro Built-in Functions): New node. Document instruction
4201 intrinsics and network accessing intrinsics.
4202 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
4203 (Specific, tilepro-*-linux*): Likewise.
4204 * doc/invoke.texi (TILE-Gx Options): New section.
4205 (TILEPro Options): New section.
4206 * doc/md.texi (TILE-Gx): New section.
4207 (TILEPro): New section.
4208 * common/config/tilegx/tilegx-common.c: New file.
4209 * common/config/tilepro/tilepro-common.c: New file.
4210 * config/tilegx/constraints.md: New file.
4211 * config/tilegx/linux.h: New file.
4212 * config/tilegx/mul-tables.c: New file.
4213 * config/tilegx/predicates.md: New file.
4214 * config/tilegx/sync.md: New file.
4215 * config/tilegx/t-tilegx: New file.
4216 * config/tilegx/tilegx-builtins.h: New file.
4217 * config/tilegx/tilegx-c.c: New file.
4218 * config/tilegx/tilegx-generic.md: New file.
4219 * config/tilegx/tilegx-modes.def: New file.
4220 * config/tilegx/tilegx-multiply.h: New file.
4221 * config/tilegx/tilegx-protos.h: New file.
4222 * config/tilegx/tilegx.c: New file.
4223 * config/tilegx/tilegx.h: New file.
4224 * config/tilegx/tilegx.md: New file.
4225 * config/tilegx/tilegx.opt: New file.
4226 * config/tilepro/constraints.md: New file.
4227 * config/tilepro/gen-mul-tables.cc: New file.
4228 * config/tilepro/linux.h: New file.
4229 * config/tilepro/mul-tables.c: New file.
4230 * config/tilepro/predicates.md: New file.
4231 * config/tilepro/t-tilepro: New file.
4232 * config/tilepro/tilepro-builtins.h: New file.
4233 * config/tilepro/tilepro-c.c: New file.
4234 * config/tilepro/tilepro-generic.md: New file.
4235 * config/tilepro/tilepro-modes.def: New file.
4236 * config/tilepro/tilepro-multiply.h: New file.
4237 * config/tilepro/tilepro-protos.h: New file.
4238 * config/tilepro/tilepro.c: New file.
4239 * config/tilepro/tilepro.h: New file.
4240 * config/tilepro/tilepro.md: New file.
4241 * config/tilepro/tilepro.opt: New file.
4243 2012-02-14 Jakub Jelinek <jakub@redhat.com>
4245 PR tree-optimization/52210
4246 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
4247 vect_model_simple_cost with two entry vect_def_type array instead
4248 of an address of dt.
4250 2012-02-14 Richard Guenther <rguenther@suse.de>
4253 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
4254 Do not stream DECL_QUALIFIER.
4255 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
4256 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
4257 (find_decls_types_r): Do not walk DECL_QUALIFIER.
4259 2012-02-14 Jakub Jelinek <jakub@redhat.com>
4262 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
4265 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4268 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
4269 * cselib.c (cselib_subst_to_values_from_insn): New function.
4270 * sched-deps.c (add_insn_mem_dependence,
4271 sched_analyze_1, sched_analyze_2): Use it.
4273 2012-02-13 Jan Hubicka <jh@suse.cz>
4276 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
4278 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
4280 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
4281 (GTM_SELF_SPECS): Define if not already defined.
4282 (driver_self_specs): Add GTM_SELF_SPECS.
4283 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
4284 (GTM_SELF_SPECS): Define.
4285 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
4286 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
4288 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4290 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
4293 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
4296 * omp-low.c (expand_omp_for): If a static schedule without chunk size
4297 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
4299 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
4302 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
4304 2012-02-13 Richard Guenther <rguenther@suse.de>
4306 PR translation/52211
4307 * passes.c (enable_disable_pass): Fix typo.
4309 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4312 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
4313 XOR for reduce_bit_field if type is unsigned.
4315 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
4317 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
4318 disallow changes from SFmode to mode with different size in FP regs.
4320 2012-02-12 Robert Millan <rmh@gnu.org>
4321 Gerald Pfeifer <gerald@pfeifer.com>
4323 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
4326 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
4328 PR rtl-optimization/52175
4329 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
4330 to frame-related instructions.
4332 2012-02-10 Jason Merrill <jason@redhat.com>
4335 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
4336 (demangle_new_symbols): Fill it.
4337 (scan_linker_output): Walk it.
4338 (start_tweaking): Split out from scan_linker_output.
4339 (maybe_tweak): Update sym->chosen.
4340 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
4342 2012-02-11 Jakub Jelinek <jakub@redhat.com>
4345 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
4347 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
4349 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
4350 having the same mode as previous compare.
4352 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
4354 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
4355 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
4356 (nonlocal_goto_internal): Likewise.
4357 (nonlocal_goto): Emit a use and an indirect jump directly.
4359 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
4362 * doc/extend.texi : Update comments for __atomic_compare_exchange and
4363 __atomic_{is,always}_lock_free.
4365 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
4368 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
4369 negative constant address for TARGET_X32.
4371 2012-02-10 Richard Henderson <rth@redhat.com>
4373 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
4374 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
4375 for GIMPLE_TRANSACTION. Tidy if's into a switch.
4377 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4378 Ira Rosen <irar@il.ibm.com>
4380 PR tree-optimization/50031
4381 * targhooks.c (default_builtin_vectorization_cost): Handle
4383 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
4384 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
4385 all types of reduction and pattern statements.
4386 (vect_estimate_min_profitable_iters): Likewise.
4387 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
4388 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
4389 for explicit realigns.
4390 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
4391 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
4393 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
4394 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
4395 vec_perm for VSX and handle vec_promote_demote.
4397 2012-02-10 Jakub Jelinek <jakub@redhat.com>
4400 * builtins.c (fold_builtin_atomic_always_lock_free,
4401 expand_builtin_atomic_always_lock_free,
4402 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
4403 Return and/or test boolean_true_node/boolean_false_node instead of
4404 integer_one_node/integer_zero_node.
4406 2012-02-10 Jan Hubicka <jh@suse.cz>
4409 * predict.c (predict_paths_for_bb): Prevent looping.
4410 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
4412 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
4414 * config/arm/arm.c (output_move_double): In one case properly
4415 count number of instructions that will be emitted.
4417 2012-02-10 Richard Guenther <rguenther@suse.de>
4419 PR translation/52193
4420 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
4422 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
4425 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
4427 2012-02-09 Jakub Jelinek <jakub@redhat.com>
4430 * var-tracking.c (emit_note_insn_var_location): If
4431 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
4432 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
4433 non-NOTE_DURING_CALL_P insn.
4435 2012-02-09 Bin Cheng <bin.cheng@arm.com>
4438 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
4440 2012-02-08 Magnus Granberg <zorry@gentoo.org>
4443 * gcc.c (switch_matches) Support switches with separated form,
4446 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
4448 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
4450 (RAMPZ_ADDR): Ditto.
4451 * config/avr/avr.c (avr_addr_t): New typedef.
4452 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
4453 (avr_init_expanders): Initialize it.
4454 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
4456 (expand_epilogue): Ditto.
4457 (avr_print_operand): Ditto.
4458 (avr_file_start): Ditto.
4459 (avr_emit_movmemhi): Ditto.
4461 2012-02-08 Richard Guenther <rguenther@suse.de>
4463 PR tree-optimization/46886
4464 * tree-flow.h (do_while_loop_p): Declare.
4465 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
4466 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
4468 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
4470 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
4471 always succeed for integers larger than a native word.
4473 2012-02-08 Richard Guenther <rguenther@suse.de>
4475 PR rtl-optimization/52170
4476 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
4477 properly handle integer vector modes.
4479 2012-02-08 Jakub Jelinek <jakub@redhat.com>
4481 PR gcov-profile/52150
4482 * coverage.c: Include target.h.
4483 (build_var): Call targetm.strip_name_encoding on the assembler name.
4484 Change one _ into . or $ if the target allows it.
4485 * Makefile.in (coverage.o): Depend on $(TARGET_H).
4487 PR rtl-optimization/52139
4488 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
4489 is a BARRIER after emit_insn_after_noloc, move BB_END
4490 to the last non-BARRIER insn before it.
4492 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
4495 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
4496 (mips_gimplify_va_arg_expr): Call it instead of
4497 std_gimplify_va_arg_expr.
4499 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
4501 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
4502 message for -mno-pointers-to-nested-function.
4504 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
4507 * expr.c (get_inner_reference): If there is an offset, add a negative
4508 bit position to it (if any).
4510 2012-02-07 Jakub Jelinek <jakub@redhat.com>
4512 PR rtl-optimization/52060
4513 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
4514 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
4515 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
4516 and/or i0src_copy2 when needed.
4518 2012-02-07 Jakub Jelinek <jakub@redhat.com>
4520 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
4521 or LTOPLUGINSONAME if have_c.
4523 * config/freebsd-spec.h: Add comment about what macros can be defined
4525 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
4526 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
4529 2012-02-07 Richard Guenther <rguenther@suse.de>
4531 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
4532 newline in -alias dumps.
4534 2012-02-07 Kai Tietz <ktietz@redhat.com>
4535 Dave Korn <dave.korn.cygwin@gmail.com>
4538 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
4539 Take care that typinfo gets dllexport-attribute.
4541 2012-02-07 Jakub Jelinek <jakub@redhat.com>
4544 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
4545 if modifier < EXPAND_SUM call force_operand on the result.
4547 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
4549 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
4550 adding __forwarder_dst__ prefix if a forwarder_section attribute is
4552 (epiphany_function_type): Replace types for specific interrupts with
4553 EPIPHANY_FUNCTION_INTERRUPT.
4554 (EPIPHANY_INTERRUPT_P): Update.
4555 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
4556 New static function.
4557 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
4558 <disinterrupt>: Affects type identity.
4559 (epiphany_handle_interrupt_attribute): Handle variable number of
4561 (epiphany_compute_function_type): Update for new
4562 epiphany_function_type definition.
4563 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
4564 handlers with a longcall forwarder.
4565 (epiphany_start_function): Handle multiple interrupt arguments and/or
4566 forwarder_section attribute.
4568 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
4571 2012-02-07 Alan Modra <amodra@gmail.com>
4574 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
4577 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4579 PR tree-optimization/50969
4580 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
4581 use vec_perm rather than vector_stmt.
4582 (vect_model_load_cost): Likewise.
4583 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
4584 vec_perm to be the same as other vector statements.
4585 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
4586 cost of vec_perm for TARGET_VSX.
4588 2012-02-06 Richard Guenther <rguenther@suse.de>
4590 PR tree-optimization/52115
4591 * tree-sra.c (access_has_replacements_p): New function.
4592 (sra_modify_assign): Use it to decide whether a use is uninitialized.
4594 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
4597 * trans-mem.c (expand_call_tm): Add an assertion.
4598 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
4601 2012-02-06 Richard Guenther <rguenther@suse.de>
4603 PR tree-optimization/50955
4604 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
4605 raise cost of expressions that replace an address with an
4606 expression based on a different pointer.
4608 2012-02-06 Jakub Jelinek <jakub@redhat.com>
4611 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
4612 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
4614 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
4617 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
4618 -Weffc++ and specify guidelines come from second edition.
4620 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
4622 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
4623 (sibcall_value_multiple_internal, call_split, call_internal_direct)
4624 (call_direct_split, call_value_split, call_value_internal_direct)
4625 (call_value_direct_split, call_value_multiple_split): Use jal and
4626 jal_macro attributes.
4628 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
4630 * reload1.c (reload_regs_reach_end_p): Replace with...
4631 (reload_reg_rtx_reaches_end_p): ...this function.
4632 (new_spill_reg_store): Update commentary.
4633 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
4634 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
4635 before setting new_spill_reg_store.
4636 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
4637 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
4638 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
4639 for non-spill reload registers.
4641 2012-02-05 Ira Rosen <irar@il.ibm.com>
4643 PR tree-optimization/52091
4644 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
4645 (vect_is_simple_use_1): Likewise.
4646 * tree-vect-loop.c (vectorizable_reduction): Update calls
4647 to vect_is_simple_use_1 and vect_is_simple_use.
4648 (vectorizable_live_operation): Likewise.
4649 * tree-vect-patterns.c (widened_name_p,
4650 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
4651 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
4652 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
4653 vectorizable_shift,vectorizable_operation, vectorizable_store,
4654 vectorizable_load): Likewise.
4655 (vect_is_simple_cond): Add an argument, pass it to
4656 vect_is_simple_use_1.
4657 (vectorizable_condition): Update calls to vect_is_simple_cond,
4659 (vect_is_simple_use): Add an argument, the statement in which
4660 OPERAND is used. Check that if OPERAND's def stmt is a double
4661 reduction phi node, the use is a phi node too.
4662 (vect_is_simple_use_1): Add an argument, pass it to
4664 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
4665 to vect_is_simple_use.
4667 2012-02-04 Jakub Jelinek <jakub@redhat.com>
4669 PR rtl-optimization/52095
4670 * modulo-sched.c (dump_insn_locator): New function.
4671 (loop_canon_p, sms_schedule): Use it.
4673 PR rtl-optimization/52113
4674 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
4675 even for decomposable shift/zext insns.
4677 2012-02-03 Jakub Jelinek <jakub@redhat.com>
4678 Zdenek Dvorak <ook@ucw.cz>
4680 PR rtl-optimization/52092
4681 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
4682 on get_iv_value result.
4684 2012-02-02 Andrew Pinski <apinski@cavium.com>
4688 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
4690 2012-02-02 Jakub Jelinek <jakub@redhat.com>
4693 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
4695 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
4697 PR rtl-optimization/49800
4698 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
4699 (sched_finish): Call regstat_free_n_sets_and_refs.
4701 2012-02-02 Jia Liu <proljc@gmail.com>
4703 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
4706 2012-02-02 Jan Hubicka <jh@suse.cz>
4707 Tom de Vries <tom@codesourcery.com>
4710 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
4711 * varpool.c (varpool_analyze_pending_decls): Likewise.
4713 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
4714 Jayant R Sonar <jayant.sonar@kpitcummins.com>
4716 * config.gcc: Add cr16-* support.
4718 * doc/extend.texi: Document cr16 extensions.
4719 * doc/install.texi: Document cr16 install.
4720 * doc/invoke.texi: Document cr16 options.
4721 * doc/md.texi: Document cr16 constraints.
4723 * common/config/cr16/cr16-common.c: New file.
4724 * config/cr16/cr16.c: New file.
4725 * config/cr16/cr16.h: New file.
4726 * config/cr16/cr16.md: New file.
4727 * config/cr16/cr16.opt: New file.
4728 * config/cr16/cr16-protos.h: New file.
4729 * config/cr16/predicates.md: New file.
4730 * config/cr16/constraints.md: New file.
4731 * config/cr16/t-cr16: New file.
4733 2012-02-02 Jakub Jelinek <jakub@redhat.com>
4736 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
4737 that operands[2] is either immediate, or q_regs_operand.
4739 PR tree-optimization/52073
4740 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
4741 a pattern stmt for pattern uses, ignore uses outside of the loop.
4743 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
4745 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
4746 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
4747 (OUT_AS1, OUT_AS2): Remove.
4749 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
4751 PR rtl-optimization/51374
4752 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
4753 to cross other volatile_refs_p insns.
4755 2012-02-01 Richard Guenther <rguenther@suse.de>
4757 * doc/invoke.texi (fno-inline): Clarify documentation.
4758 (finline-small-functions): Likewise.
4759 (finline-functions): Likewise.
4760 * common.opt (finline): Adjust comment and documentation.
4761 (finline-small-functions): Clarify documentation.
4762 (finline-functions): Likewise.
4763 (finline-functions-called-once): Likewise.
4765 2012-02-01 Tristan Gingold <gingold@adacore.com>
4767 * c-typeck.c (composite_type): Keep mode for pointers.
4769 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
4771 * function.h (regno_reg_rtx): Adjust comment.
4772 * reginfo.c (init_reg_modes_target): Only use the previous mode
4773 if it fits within one register. Remove MIPS comment.
4775 2012-01-31 Jakub Jelinek <jakub@redhat.com>
4778 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
4780 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4782 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
4783 to srak instruction.
4785 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4787 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
4789 2012-01-31 Jakub Jelinek <jakub@redhat.com>
4794 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
4796 2012-01-31 Richard Guenther <rguenther@suse.de>
4798 PR tree-optimization/51528
4799 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
4802 2012-01-31 Jakub Jelinek <jakub@redhat.com>
4807 * ree.c (add_removable_extension): Change def_map argument
4808 to unsigned *, store in def_map 1 + offset into *insn_list vector
4809 instead of pointers into the vector.
4810 (find_removable_extensions): Adjust caller.
4812 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
4814 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
4815 Transform all "* quoted-c-code" to { c-code }.
4816 Remove redundant test for "optimize" in combine patterns.
4817 Move (include "avr-dimode.md") to end of file.
4819 2012-01-30 Bin Cheng <bin.cheng@arm.com>
4822 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
4823 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
4825 2012-01-30 Richard Guenther <rguenther@suse.de>
4827 PR tree-optimization/52028
4828 * tree-loop-distribution.c (ldist_gen): Properly update
4831 2012-01-30 Jakub Jelinek <jakub@redhat.com>
4834 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
4835 set_cur_line_info_table if not emitting debug info.
4837 PR tree-optimization/52046
4838 * tree-vect-patterns.c (check_bool_pattern): Give up if
4839 a comparison could throw.
4842 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
4844 2012-01-30 Richard Guenther <rguenther@suse.de>
4846 PR tree-optimization/52045
4847 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
4848 SSA form if cfgcleanup did anything.
4850 2012-01-30 Richard Guenther <rguenther@suse.de>
4852 PR tree-optimization/52045
4853 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
4854 before computing final todo.
4856 2012-01-30 Richard Guenther <rguenther@suse.de>
4858 PR tree-optimization/51528
4859 * tree-sra.c (sra_modify_assign): Re-factor in preparation
4862 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
4864 * df-problems.c (df_kill_notes): Check that the use refers
4865 to the note under examination.
4867 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
4870 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
4871 parameter and use short-lived pseudos.
4872 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
4873 (sparc_expand_vector_init): Const-ify local variables and adjust
4874 calls to above functions.
4876 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
4878 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
4880 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
4882 * doc/invoke.texi: Make usage of "compile time" and
4883 "run time"/"runtime" consistent throughout the file.
4885 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
4887 * config/alpha/alpha.c (alpha_option_override): Default to
4888 full IEEE compliance mode for Go language.
4890 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
4892 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
4893 (LINK_SSP_SPEC): Define.
4895 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4898 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
4901 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
4903 * doc/invoke.texi: Correct hyphenation of "floating point",
4904 "double precision", and related terminology throughout the file.
4906 2012-01-28 Jakub Jelinek <jakub@redhat.com>
4909 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
4910 arm_general_register_operand predicate for operand 2 instead of
4913 2012-01-27 Ian Lance Taylor <iant@google.com>
4916 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
4917 * builtins.c (expand_builtin_init_trampoline): Add onstack
4918 parameter. Change caller.
4919 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
4920 * tree.c (build_common_builtin_nodes): Declare
4921 __builtin_init_heap_trampoline.
4923 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
4925 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
4926 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
4927 * config/avr/avr.c: Ditto.
4928 (avr_regnames): Remove because unused.
4929 * config/avr/avr.md (*cpse.ne): New peephole.
4930 (*cpse.eq): New peephole from former cpse peepholes.
4932 2012-01-27 Michael Eager <eager@eagercon.com>
4934 * config/microblaze.c (microblaze_emit_compare): Correct
4935 test after pcmp instruction.
4937 2012-01-27 Richard Guenther <rguenther@suse.de>
4939 PR tree-optimization/52020
4940 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
4942 2012-01-27 Richard Guenther <rguenther@suse.de>
4944 * ipa-pure-const.c (check_stmt): Clobbers do not make a
4945 function non-const/pure.
4947 2012-01-27 Richard Guenther <rguenther@suse.de>
4949 PR tree-optimization/50444
4950 * tree-sra.c (build_ref_for_offset): Properly adjust the
4951 MEM_REF type for unaligned accesses.
4953 2012-01-27 Richard Guenther <rguenther@suse.de>
4955 PR tree-optimization/50444
4956 * expr.c (mem_ref_refers_to_non_mem_p): New function.
4957 (expand_assignment): Use it. Properly handle misaligned
4958 bases when expanding stores to component references.
4959 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
4962 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
4965 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
4966 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
4967 * tree-data-ref.c (find_data_references_in_loop): Make static.
4968 (compute_all_dependences): Change return type to bool. Bail out
4969 for too many datarefs in a loop. Move the hunk resetting the data
4970 dependences vector from ...
4971 (compute_data_dependences_for_loop): ... here. Account for
4972 compute_all_dependences returning false.
4973 (compute_data_dependences_for_bb): Likewise.
4974 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
4975 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
4977 2012-01-27 Richard Guenther <rguenther@suse.de>
4980 * expr.c (store_field): Use the alias-set of the scratch memory
4983 2012-01-27 Tom de Vries <tom@codesourcery.com>
4985 PR tree-optimization/51990
4986 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4988 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
4990 2012-01-27 Jakub Jelinek <jakub@redhat.com>
4993 * var-tracking.c (reverse_op): Don't add any reverse operation
4994 if V already has any constant locations.
4996 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
4998 * doc/invoke.texi: Correct usage of "command line" (noun)
4999 vs "command-line" (adjective) throughout.
5001 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
5003 * doc/invoke.texi (Language Independent Options): Move
5004 -Wcoverage-mismatch blurb from here....
5005 (Warning Options): ...to here.
5007 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
5009 * config/rs6000/rs6000.c (rs6000_option_override_internal):
5010 Set rs6000_always_hint to false for 476.
5012 2012-01-27 Matthias Klose <doko@ubuntu.com>
5014 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
5016 * incpath.c (add_standard_paths): Likewise.
5018 2012-01-27 Richard Henderson <rth@redhat.com>
5020 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
5021 * config/m68k/sync.md (atomic_test_and_set): Rename from
5022 sync_test_and_setqi and adjust the operands.
5023 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
5024 and unconditionally enable.
5026 2012-01-27 Richard Henderson <rth@redhat.com>
5028 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
5029 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
5030 (ldstub): Rename from ldstubqi.
5031 (ldstub<I24MODE>): Remove.
5033 2012-01-27 Richard Henderson <rth@redhat.com>
5035 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
5036 * c-cppbuiltin.c (cpp_atomic_builtins): Define
5037 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
5038 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
5039 * doc/tm.texi: Rebuild.
5041 2012-01-27 Richard Henderson <rth@redhat.com>
5043 * optabs.c (gen_atomic_test_and_set): Remove default.
5044 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
5046 2012-01-26 Jakub Jelinek <jakub@redhat.com>
5048 PR rtl-optimization/51978
5049 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
5050 (combine_reaching_defs): Likewise.
5051 (struct re_info): Remove.
5052 (add_removable_extension): Remove x and data arguments,
5053 add insn, insn_list and def_map. Use the arguments directly
5054 instead of using struct re_info.
5055 (find_removable_extensions): Don't call add_removable_extension
5056 through note_stores, instead just call it with single_set
5058 (find_and_remove_re): Pass curr_cand->expr instead of
5059 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
5061 2012-01-26 Michael Matz <matz@suse.de>
5063 PR tree-optimization/46590
5064 * cfgexpand.c: Revert last change (r183305).
5065 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
5067 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
5068 checking for emptiness.
5070 2012-01-26 Jakub Jelinek <jakub@redhat.com>
5073 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
5074 non-addressable non-BLKmode base correctly.
5076 2012-01-26 Michael Matz <matz@suse.de>
5078 PR tree-optimization/48794
5079 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
5080 regions referenced from RESX/EH_DISPATCH.
5082 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5084 * config/s390/s390.h: Make BRANCH_COST an option.
5085 * config/s390/s390.opt: New option -mbranch-cost.
5087 2012-01-26 Richard Henderson <rth@redhat.com>
5089 Revert 2012-01-24 change:
5090 * trans-mem.c (requires_barrier): Do not instrument thread local
5091 variables and emit save/restore for them.
5093 2012-01-25 Jakub Jelinek <jakub@redhat.com>
5096 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
5099 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
5101 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
5104 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
5107 Rename __pgm to __flash.
5108 Rename __pgm1 to __flash1.
5109 Rename __pgm2 to __flash2.
5110 Rename __pgm3 to __flash3.
5111 Rename __pgm4 to __flash4.
5112 Rename __pgm5 to __flash5.
5113 Rename __pgmx to __memx.
5114 * doc/extend.texi (AVR Named Address Spaces)
5115 Rename address space names as indicated above.
5116 * config/avr/avr.c (avr_addrspace): Ditto.
5118 * config/avr/avr-protos.h
5119 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
5120 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
5121 * config/avr/predicates.md: Ditto.
5122 * config/avr/avr.c Ditto, and
5123 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
5124 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
5126 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
5127 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
5128 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
5129 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
5130 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
5131 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
5132 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
5133 * config/avr/avr.c: Ditto.
5134 * config/avr/avr.md: Ditto.
5136 2012-01-25 Jason Merrill <jason@redhat.com>
5139 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
5141 2012-01-25 Jakub Jelinek <jakub@redhat.com>
5143 PR tree-optimization/51987
5144 * tree-data-ref.c (get_references_in_stmt): Handle references in
5145 non-volatile GIMPLE_ASM.
5147 2012-01-25 Richard Guenther <rguenther@suse.de>
5149 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
5150 bases are dereferenced.
5152 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
5154 PR rtl-optimization/48374
5155 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
5157 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
5159 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
5160 compute_data_dependences_for_loop returns false.
5161 * tree-parloops.c (loop_parallel_p): Likewise.
5163 2012-01-25 Richard Guenther <rguenther@suse.de>
5165 * tree.h (get_pointer_alignment_1): Declare.
5166 * builtins.c (get_pointer_alignment_1): New function.
5167 (get_pointer_alignment): Use it.
5169 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5171 PR rtl-optimization/48308
5172 * combine.c (enum undo_kind): Add UNDO_LINKS.
5173 (struct undo): Add member l to other_contents and where.
5174 (do_SUBST_LINK): New.
5176 (try_combine): Handle LOG_LINKS for the dummy i1 case.
5177 (undo_all): Handle UNDO_LINKS.
5179 2012-01-25 Richard Henderson <rth@redhat.com>
5181 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
5184 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
5186 * optabs.c (gen_atomic_test_and_set): Use each argument.
5188 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
5190 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
5191 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
5192 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
5193 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
5194 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
5195 TARGET_PAIRED_SINGLE_FLOAT.
5197 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
5199 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
5200 (in_struct, return_val): Remove MEM documentation.
5201 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
5202 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
5203 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
5205 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5206 * cfgexpand.c (add_alias_set_conflicts): Likewise.
5207 * expr.c (store_field): Likewise.
5208 * function.c (assign_stack_temp_for_type): Likewise.
5209 * ifcvt.c (noce_try_cmove_arith): Likewise.
5210 * reload1.c (reload): Likewise.
5211 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
5212 (alpha_set_memflags): Likewise.
5213 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
5215 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
5217 * rtl.h (true_dependence, canon_true_dependence): Remove varies
5219 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
5220 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
5221 (true_dependence_1, true_dependence, canon_true_dependence): Remove
5223 * cselib.c (cselib_rtx_varies_p): Delete.
5224 (cselib_invalidate_mem): Update call to canon_true_dependence.
5225 * dse.c (record_store, check_mem_read_rtx): Likewise.
5226 (scan_reads_nospill): Likewise.
5227 * cse.c (check_dependence): Likewise.
5228 (cse_rtx_varies_p): Delete.
5229 * expr.c (safe_from_p): Update call to true_dependence.
5230 * ira.c (validate_equiv_mem_from_store): Likewise.
5231 (memref_referenced_p): Likewise.
5232 * postreload-gcse.c (find_mem_conflicts): Likewise.
5233 * sched-deps.c (sched_analyze_2): Likewise.
5234 * store-motion.c (load_kills_store): Likewise.
5235 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
5236 * gcse.c (mems_conflict_for_gcse_p): Likewise.
5237 (compute_transp): Update call to canon_true_dependence.
5239 2012-01-25 Richard Henderson <rth@redhat.com>
5241 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
5242 (maybe_emit_atomic_test_and_set): New.
5243 (expand_sync_lock_test_and_set): Use it.
5244 (expand_atomic_test_and_set): Likewise.
5245 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
5246 the implementation; clarify implementation defined details.
5247 * doc/md.texi (atomic_test_and_set): Document.
5249 2012-01-25 Richard Henderson <rth@redhat.com>
5251 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
5253 2012-01-25 Richard Henderson <rth@redhat.com>
5256 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
5257 to effect no-op split.
5259 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
5262 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
5263 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
5264 (BT_FN_VOID_PTR_INT_SIZE): New.
5265 (BT_FN_UINT_UINT_VAR): Remove.
5266 (BT_FN_UINT32_UINT32_VAR): New.
5267 (BT_FN_DOUBLE_VPTR): Remove.
5268 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
5270 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
5271 (_ITM_changeTransactionMode): Same.
5272 (_ITM_memmoveRtWt): Change return type to void.
5273 (_ITM_memcpyRtWt): Same.
5274 (_ITM_memsetW): Same.
5275 (_ITM_RaRD): Change types to double.
5280 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
5282 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
5283 Patrick Marlier <patrick.marlier@gmail.com>
5285 * trans-mem.c (requires_barrier): Do not instrument thread local
5286 variables and emit save/restore for them.
5288 2012-01-24 Jason Merrill <jason@redhat.com>
5291 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
5292 output static aliases.
5294 2012-01-24 Jakub Jelinek <jakub@redhat.com>
5297 * common.opt (-pie, -shared, pie, shared): Change from Common to
5299 * gcc.c (display_help): Display help for -pie and -shared.
5301 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
5304 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
5305 Remove note on size/offset limitation.
5306 (AVR Variable Attributes): Add example how to read data located
5307 with progmem. Refer to named address spaces.
5308 * doc/invoke.texi (AVR Options): Fix typo.
5310 2012-01-24 Richard Guenther <rguenther@suse.de>
5312 Forward-port to trunk
5313 2010-09-21 Jakub Jelinek <jakub@redhat.com>
5316 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
5317 op0 isn't sufficiently aligned and there is movmisalignM
5318 insn for mode, use it to load op0 into a temporary register.
5320 2012-01-24 Jakub Jelinek <jakub@redhat.com>
5323 * target.def (const_not_ok_for_debug_p): New hook.
5324 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
5326 * doc/tm.texi: Regenerated.
5327 * dwarf2out.c (const_ok_for_output_1): If
5328 targetm.const_not_ok_for_debug_p returns true, fail.
5329 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
5331 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
5333 2012-01-23 Kai Tietz <ktietz@redhat.com>
5336 * config/i386/predicates.md (symbolic_operand): Allow
5337 UNSPEC_PCREL as PIC expression for lea.
5338 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
5339 * config/i386/i386.c (ix86_delegitimize_address): Handle
5340 UNSPEC_PCREL for none-MEM, too.
5342 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
5344 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
5345 (ipa_tm_create_version_alias): Same.
5347 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
5350 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
5351 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
5353 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
5354 Patrick Marlier <patrick.marlier@gmail.com>
5355 Iain Sandoe <developer@sandoe-acoustics.co.uk>
5358 * lto-wrapper.c (run_gcc): Pass the LTO section name to
5359 simple_object_start_read.
5361 2012-01-23 Richard Guenther <rguenther@suse.de>
5364 PR tree-optimization/51895
5365 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
5366 parameter decomposition into BLKmode components.
5368 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
5370 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
5371 fake variables for restrict-qualified pointers whose pointed-to type
5372 contains a placeholder.
5374 2012-01-23 Richard Guenther <rguenther@suse.de>
5376 PR tree-optimization/51949
5377 * ipa-split.c (execute_split_functions): Do not split malloc functions.
5379 2012-01-23 Jakub Jelinek <jakub@redhat.com>
5381 PR rtl-optimization/51933
5382 * ree.c (transform_ifelse): Return true right away if dstreg is
5383 already wider or equal to cand->mode.
5384 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
5385 (make_defs_and_copies_lists): Remove defs_list and copies_list
5386 arguments, add state argument, just truncate state->work_list
5387 instead of always allocating and freeing the vector. Assert that
5388 get_defs succeeds instead of returning 2. Changed return type to bool.
5389 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
5390 have ext_src_mode, see if it has been modified already with the
5391 right kind of extension and has been extended before from the
5392 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
5393 just return true. Remember the original mode in state->modified array.
5394 (combine_reaching_defs): Add state argument. Don't allocate and
5395 free here def_list, copied_list and vec vectors, instead just
5396 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
5397 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
5398 Add state variable, clear vectors in it, initialize state.modified
5399 if needed. Free all the vectors at the end and state.modified too.
5400 Don't skip a candidate if the extension expression has been modified.
5402 2012-01-22 Douglas B Rupp <rupp@gnat.com>
5405 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
5406 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
5407 (extra_options) interix.opt -> i386/interix.opt"
5408 (extra_objs):Add winnt-stubs.o
5409 * configure.ac: Add interix to target_os .comm on PE check.
5410 * configure: Regenerate.
5411 * config/interix3.h: Delete and move bits to..
5412 * config/interix.h: Delete and move bits to..
5413 * config/i386/i386-interix3.h: Delete and move bits to..
5414 * config/i386/i386-interix.h: ..here.
5415 (TARGET_CPU_DEFAULT): Remove redefinition.
5416 (TARGET_ASM_CONSTRUCTOR): Undefine.
5417 (SUBTARGET_SWITCHES): Define for ms-bitfields.
5418 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
5419 (PTRDIFF_TYPE): Define.
5420 (LONG_DOUBLE_TYPE_SIZE): Define.
5421 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
5422 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5423 (TARGET_SECTION_TYPE_FLAGS): Define.
5424 (ASM_DECLARE_FUNCTION_NAME): Define.
5425 (ASM_OUTPUT_EXTERNAL): Define.
5426 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
5427 (ASM_OUTPUT_ALIGNED_BSS): Define.
5428 (PCC_BITFIELD_TYPE_MATTERS): Define.
5429 (USE_CONST_SECTION): Define.
5430 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
5431 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
5432 (SUPPORTS_ONE_ONLY): Remove.
5433 (I386_PE_STRIP_ENCODING): Define.
5434 * config/interix.opt: Delete and move bits to..
5435 * config/i386/interix.opt: ..here. New.
5436 (mpe-aligned-commons): Add.
5437 * config/i386/t-interix: Add copyright header.
5438 (winnt-stubs.o): Add rule.
5440 2012-01-22 Jason Merrill <jason@redhat.com>
5443 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
5444 for extra name aliases.
5446 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
5448 PR rtl-optimization/51924
5449 * ree.c (combine_set_extension): Improve debugging message.
5450 (combine_reaching_defs): Likewise.
5451 (get_defs): Rename confusingly named variable.
5452 (find_and_remove_re): Skip a candidate if the extension expression has
5455 2012-01-21 Robert Millan <rmh@gnu.org>
5456 Gerald Pfeifer <gerald@pfeifer.com>
5458 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
5459 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
5461 2012-01-20 Jakub Jelinek <jakub@redhat.com>
5463 PR tree-optimization/51914
5464 * tree-vect-stmts.c (vectorizable_conversion): For
5465 cvt_type && modifier == WIDEN, put temporary with cvt_type
5466 at the beginning of vec_dsts and set vec_dest to temporary
5469 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
5471 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
5473 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
5475 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
5476 * config/rs6000/rs6000.c: Likewise.
5478 2012-01-20 Jakub Jelinek <jakub@redhat.com>
5481 * config/arm/arm.c (arm_count_output_move_double_insns): Call
5482 output_move_double on a copy of operands array.
5484 2012-01-20 Cary Coutant <ccoutant@google.com>
5485 Dodji Seketeli <dodji@redhat.com>
5488 * dwarf2out.c (copy_declaration_context): Return ref to parent
5489 of declaration DIE, if necessary.
5490 (remove_child_or_replace_with_skeleton): Add new parameter; update
5491 caller. Place skeleton DIE under parent DIE of original declaration.
5492 Move call to copy_declaration_context to here ...
5493 (break_out_comdat_types): ... from here.
5495 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5497 PR rtl-optimization/51856
5498 * reload.c (find_reloads_subreg_address): Set the address_reloaded
5501 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5504 * config/arm/arm.c (arm_print_operand): Correct output of alignment
5505 hints for neon loads and stores.
5507 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
5511 * doc/extend.texi (Named Address Spaces): Split into subsections.
5512 (AVR Named Address Spaces): New subsection.
5513 (M32C Named Address Spaces): New subsection.
5514 (RL78 Named Address Spaces): New subsection.
5515 (SPU Named Address Spaces): New subsection.
5516 (Variable Attributes): New anchor "AVR Variable Attributes".
5517 (AVR Variable Attributes): Rewrite and avoid wording
5518 "address space" in this context.
5519 * doc/invoke.texi (AVR Options): Rewrite and add documentation
5520 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
5521 (AVR Built-in Macros): New subsubsection therein.
5522 * doc/md.texi (AVR constraints): Remove "C04", "R".
5524 2012-01-20 Richard Guenther <rguenther@suse.de>
5526 PR tree-optimization/51903
5527 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
5528 when removing stmts.
5530 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5533 * config/arm/arm.c (arm_load_pic_register): Use
5534 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
5535 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
5536 (arm_pic_static_addr): Likewise.
5537 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
5538 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
5539 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
5540 (pic_load_addr_unified): New.
5542 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
5545 * function.c (instantiate_virtual_regs_in_insn): Use
5546 delete_insn_and_edges when removing a wrong asm insn.
5548 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
5550 PR rtl-optimization/40761
5551 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
5552 Add new member loop_num.
5553 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
5554 (ira_build): Remove the parameter.
5556 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
5557 (ira.c): Do not build CFG loops for one region allocation. Remove
5558 argument from ira_build call.
5560 * ira-build.c (init_loop_tree_node): New function.
5561 (create_loop_tree_nodes): Use it. Separate the case when CFG
5562 loops are not built.
5563 (more_one_region_p): Check current_loops.
5564 (finish_loop_tree_nodes): Separate the case when CFG loops are not
5566 (add_loop_to_tree): Process loop equal to NULL too.
5567 (form_loop_tree): Separate the case when CFG loops are not built.
5568 Use explicitly number for the root.
5569 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
5571 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
5572 instead of loop->num.
5573 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
5574 (mark_all_loops_for_removal): Ditto.
5575 (remove_unnecessary_regions): Separate the case when CFG loops
5577 (ira_build): Remove the parameter. Use explicit number of regions
5578 when CFG loops are not built.
5580 * ira-color.c (print_loop_title): Separate the case for the root node.
5581 Use loop_num instead of loop->num.
5582 (move_spill_restore): Use loop_num instead of loop->num.
5584 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
5585 (change_loop): Ditto.
5586 (change_loop): Use loop_num instead of loop->num.
5588 * ira-lives.c (process_bb_node_lives): Ditto.
5590 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
5592 * ira-conflicts.c (print_allocno_conflicts): Ditto.
5594 2012-01-19 Jakub Jelinek <jakub@redhat.com>
5597 * tree-mudflap.c (mf_artificial): New function.
5598 (execute_mudflap_function_ops, execute_mudflap_function_decls,
5599 mx_register_decls, mudflap_enqueue_decl): Use it.
5602 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
5603 numbers in the insn pattern.
5605 2012-01-19 Michael Matz <matz@suse.de>
5607 PR tree-optimization/46590
5608 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
5609 use it in remembering which conflicts we already created.
5610 (add_scope_conflicts): Adjust call to above, (de)allocate helper
5613 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
5616 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
5617 (merge_and_complain): Same.
5619 2012-01-19 Jakub Jelinek <jakub@redhat.com>
5622 * config/initfini-array.h: Guard content of the header
5623 with #ifdef HAVE_INITFINI_ARRAY.
5624 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
5625 Add initfini-array.h to tm_file here.
5626 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
5627 * config.gcc: Don't add initfini-array.h to tm_file here.
5628 * configure: Regenerated.
5630 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
5632 PR rtl-optimization/51505
5633 * df-problems.c (df_kill_notes): New parameter live. Update comment.
5634 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
5635 (df_note_bb_compute): Update the call to df_kill_notes.
5637 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
5639 * trans-mem.c (requires_barrier): Remove call to is_global_var.
5641 2012-01-18 Richard Guenther <rguenther@suse.de>
5643 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
5644 of conversions to void *.
5646 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5647 Richard Sandiford <rdsandiford@googlemail.com>
5651 * optabs.h (simplify_expand_binop): Declare.
5652 * optabs.c (simplify_expand_binop): Make global.
5653 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
5654 endian targets if the source cannot be exactly covered by word
5657 2012-01-17 Jakub Jelinek <jakub@redhat.com>
5660 * hard-reg-set.h (struct hard_reg_set_container): New type.
5661 * target.h (struct hard_reg_set_container): Forward declare.
5662 * target.def (set_up_by_prologue): New target hook.
5663 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
5664 * doc/tm.texi: Regenerated.
5665 * function.c (thread_prologue_and_epilogue_insns): Change
5666 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
5667 Call targetm.set_up_by_prologue on it.
5668 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
5669 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
5671 2012-01-17 Nick Clifton <nickc@redhat.com>
5673 * config/rx/rx.c (rx_can_use_simple_return): New function.
5674 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
5675 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
5677 2012-01-17 Richard Guenther <rguenther@suse.de>
5680 * expr.c (expand_assignment): Take address-space information
5681 from the address operand of MEM_REF and TARGET_MEM_REF.
5682 (expand_expr_real_1): Likewise.
5684 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5686 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
5687 reload dump is requested.
5689 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
5692 * trans-mem.c (requires_barrier): Call may_be_aliased.
5694 2012-01-17 Jakub Jelinek <jakub@redhat.com>
5696 PR tree-optimization/51877
5697 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
5698 call arguments and fndecls compare equal, instead return false if they
5699 don't. Return true only if lhs1 and lhs2 are either both NULL, or
5700 both SSA_NAMEs that are valueized the same, or they satisfy
5703 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5705 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
5707 * configure: Regenerate.
5709 2012-01-16 Jan Hubicka <jh@suse.cz>
5713 * convert.c (convert_to_integer): Use fold_convert for
5714 converting an INTEGER_CST to integer type.
5716 2012-01-16 Jason Merrill <jason@redhat.com>
5719 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
5721 2012-01-16 Jakub Jelinek <jakub@redhat.com>
5724 * config/s390/s390.c (s390_chunkify_start): Don't skip
5725 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
5726 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
5727 If insn is followed by NOTE_INSN_VAR_LOCATION or
5728 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
5729 Don't use location of note insns.
5731 PR tree-optimization/51865
5732 * tree-inline.c (tree_function_versioning): Call remap_decl
5733 on DECL_RESULT whenever it has VOID_TYPE_P type.
5735 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
5737 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
5738 for calls to locally-binding MIPS16 functions if only the return
5739 type uses float regs.
5741 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
5742 Richard Sandiford <rdsandiford@googlemail.com>
5744 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
5745 (SYMBOL_32_HIGH): Likewise.
5746 (mips_output_tls_reloc_directive): Declare.
5747 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
5748 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
5749 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
5750 (mips_lo_relocs, mips_hi_relocs): Make extern.
5751 (mips16_stub_function): Move up file.
5752 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
5753 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
5754 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
5755 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
5756 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
5757 (mips_get_tp): Add MIPS16 support.
5758 (mips_legitimize_tls_address): Remove MIPS16 sorry().
5759 Generalize DTPREL and TPREL handling.
5760 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
5761 Add MIPS16 TLS support.
5762 (mips_output_tls_reloc_directive): New function.
5763 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
5764 * config/mips/predicates.md (symbolic_operand_with_high)
5765 (tls_reloc_operand): New predicates.
5766 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
5767 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
5768 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
5769 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
5770 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
5771 (*tls_get_tp_mips16_call_<mode>): Likewise.
5773 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
5775 PR rtl-optimization/51821
5776 * recog.c (peep2_find_free_register): Determine clobbered registers
5779 2012-01-14 Denis Chertykov <chertykov@gmail.com>
5782 * config/avr/avr-protos.h: Revert change of 2012-01-09.
5783 * config/avr/avr.c: Likewise.
5784 * config/avr/avr.h: Likewise.
5786 2012-01-13 Ian Lance Taylor <iant@google.com>
5789 * tree.h (TYPE_QUALS): Add cast to int.
5790 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
5792 2012-01-13 Ian Lance Taylor <iant@google.com>
5794 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
5795 comparing param_index to VEC_length result.
5797 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
5799 * c-decl.c: Do not include tree-mudflap.h
5800 * tree-optimize.c: Likewise.
5801 * Makefile.in: Update dependencies.
5803 2012-01-13 Richard Guenther <rguenther@suse.de>
5806 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
5807 variable-sized result always use RSO.
5809 2012-01-12 DJ Delorie <dj@redhat.com>
5811 * cfgexpand.c (convert_debug_memory_address): Allow any valid
5812 pointer type, not just the default pointer type.
5814 2012-01-09 Richard Henderson <rth@redhat.com>
5815 Denis Chertykov <chertykov@gmail.com>
5818 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
5819 * config/avr/avr.c (avr_can_eliminate): Simplify.
5820 (avr_initial_elimination_offset): Likewise.
5821 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
5822 (expand_epilogue): Likewise.
5823 (avr_legitimize_address): Gut.
5824 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
5825 (avr_hard_regno_nregs): New.
5826 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
5827 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
5828 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
5829 add soft frame pointer.
5830 (CALL_USED_REGISTERS): Likewise.
5831 (REG_CLASS_CONTENTS): Likewise.
5832 (REGISTER_NAMES): Likewise.
5833 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
5834 (HARD_FRAME_POINTER_REGNUM): New.
5835 (FRAME_POINTER_REGNUM): Use soft frame pointer.
5836 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
5837 remove the HARD_FRAME_POINTER self-elimination.
5839 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
5842 * config/avr/avr.c (avr_encode_section_info): Test for absence of
5843 DECL_EXTERNAL when checking for initializers of progmem variables.
5845 2012-01-12 Ira Rosen <irar@il.ibm.com>
5847 PR tree-optimization/51799
5848 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
5849 that the last operation is a type demotion.
5851 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
5853 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
5854 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
5856 2012-01-11 Jakub Jelinek <jakub@redhat.com>
5859 * combine.c (distribute_notes): If i3 is a noreturn call,
5860 allow old_size to be equal to args_size and make sure the
5861 noreturn call gets REG_ARGS_SIZE note.
5862 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
5863 on noreturn calls even when the delta is 0.
5865 2012-01-11 Nathan Sidwell <nathan@acm.org>
5867 * gcov.c (STRING_SIZE): Remove.
5868 (generate_results): Erase annotations for source files with no
5869 coverage information.
5871 (output_lines): Use it.
5873 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
5875 * gimple.h (gimplify_body): Remove first argument.
5876 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
5877 pointer set here, instead just pass DATA to walk_tree.
5878 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
5879 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
5880 (unvisit_body): Likewise, but with unmark_visited.
5881 (gimplify_body): Remove BODY_P argument and adjust.
5882 (gimplify_function_tree): Adjust call to gimplify_body.
5883 * omp-low.c (finalize_task_copyfn): Likewise.
5885 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
5887 * tree.h (build_function_decl_skip_args): Add boolean parameter.
5888 (build_function_type_skip_args): Delete.
5889 * tree.c (build_function_type_skip_args): Make static and add
5890 SKIP_RETURN parameter. Fix thinko in the handling of variants.
5891 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
5892 pass it to build_function_type_skip_args.
5893 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
5894 (tree_function_versioning): Likewise.
5895 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
5896 build_function_decl_skip_args.
5897 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
5898 and pass it to build_function_decl_skip_args/tree_function_versioning.
5899 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
5900 * ipa-inline-transform.c (save_inline_function_body): Likewise.
5901 * trans-mem.c (ipa_tm_create_version): Likewise.
5902 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
5903 * tree-inline.c (declare_return_variable): Remove always-true test.
5904 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
5905 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
5906 * ipa-split.c (split_function): Skip the return value for the split
5907 part if it doesn't return.
5909 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5911 PR tree-optimization/49642
5912 * ipa-split.c (forbidden_dominators): New variable.
5913 (check_forbidden_calls): New function.
5914 (dominated_by_forbidden): Likewise.
5915 (consider_split): Check for forbidden dominators.
5916 (execute_split_functions): Initialize and free forbidden
5917 dominators info; call check_forbidden_calls.
5919 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5921 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
5923 2012-01-11 Nick Clifton <nickc@redhat.com>
5925 * config/rx/rx.md (return): Define pattern.
5927 2012-01-11 Richard Guenther <rguenther@suse.de>
5929 * doc/extend.texi (malloc attribute): Adjust according to
5932 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
5933 Patrick Marlier <patrick.marlier@gmail.com>
5936 * trans-mem.c (get_cg_data): Traverse aliases if requested.
5937 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
5938 (ipa_tm_note_irrevocable): Same.
5939 (ipa_tm_scan_irr_block): Same.
5940 (ipa_tm_decrement_clone_counts): Same.
5941 (ipa_tm_scan_irr_function): Same.
5942 (ipa_tm_create_version_alias): Same.
5943 (ipa_tm_create_version): Same.
5944 (ipa_tm_transform_calls_redirect): Same.
5945 (ipa_tm_transform_calls): Same.
5946 (ipa_tm_transform_transaction): Same.
5947 (ipa_tm_execute): Same.
5949 2012-01-10 Richard Guenther <rguenther@suse.de>
5952 * opts.c (common_handle_option): Handle -Werror.
5954 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
5956 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
5959 2012-01-10 Jason Merrill <jason@redhat.com>
5961 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
5964 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5966 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
5967 supports R_386_TLS_GD_PLT reloc.
5968 (gcc_cv_as_ix86_tlsldmplt): Check if linker
5969 supports R_386_TLS_LDM_PLT reloc.
5970 * configure: Regenerate.
5971 * config.in: Regenerate.
5973 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
5976 Extend __pgmx semantics to linearize memory.
5977 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
5978 determine if code comes inline or from libgcc.
5979 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
5980 (movmem_qi, movmem_qi): Set constraint #2 to "n".
5981 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
5982 (movmemx_qi, movmemx_hi): New insns.
5983 (xload_<mode>_libgcc): Rewrite to new insn condition.
5984 (xload_<mode>): Remove insns.
5985 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
5986 cases that don't satisfy avr_xload_libgcc_p().
5987 (avr_addr_space_convert): Allow converting in any direction.
5988 (avr_addr_space_subset_p): Return always true.
5989 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
5990 (avr_emit_movmemhi): Ditto.
5991 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
5992 (avr_out_movmem): Ditto.
5993 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
5994 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
5995 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
5996 (avr_encode_section_info): Encode 'progmem' in symbol flags.
5997 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
5999 2012-01-10 Richard Guenther <rguenther@suse.de>
6001 PR tree-optimization/50913
6002 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
6003 Require data-refs to be representable by Graphite with respect
6006 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
6008 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
6009 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
6011 2012-01-10 Tom de Vries <tom@codesourcery.com>
6013 PR rtl-optimization/51271
6014 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
6015 handling annulled branch.
6017 2012-01-10 Richard Henderson <rth@redhat.com>
6019 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
6020 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
6021 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
6022 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
6023 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
6024 arm_expand_vec_perm_const): New.
6025 * config/arm/arm-protos.h: Update.
6026 * config/arm/neon.md (UNSPEC_VCONCAT): New.
6027 (*neon_vswp<VDQX>): New.
6028 (neon_vcombine<VDX>): Use neon_split_vcombine.
6029 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
6030 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
6031 (vec_perm<VE>): New.
6033 2012-01-10 Richard Henderson <rth@redhat.com>
6035 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
6036 use it if reload_completed.
6037 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
6038 arm_output_asm_insn, arm_process_output_memory_barrier,
6039 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
6040 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
6041 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
6042 arm_process_output_sync_insn, arm_output_sync_insn,
6043 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
6044 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
6045 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
6046 (emit_unlikely_jump): New.
6047 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
6048 (arm_split_atomic_op): New.
6049 * config/arm/arm-protos.h: Update.
6050 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
6051 (struct arm_sync_generator): Remove.
6052 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
6053 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
6054 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
6055 (VUNSPEC_LL, VUNSPEC_SC): New.
6056 (sync_result, sync_memory, sync_required_value, sync_new_value,
6057 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
6058 (attr length): Don't use arm_sync_loop_insns.
6059 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
6060 (movsfcc, movdfcc): Likewise.
6061 * config/arm/constraints.md (Ua): New.
6062 * config/arm/prediates.md (mem_noofs_operand): New.
6063 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
6064 (sync_clobber, sync_t2_reqd): Remove.
6065 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
6066 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
6067 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
6068 (arm_sync_compare_and_swap<SIDI>): Remove.
6069 (arm_sync_compare_and_swap<NARROW>): Remove.
6070 (arm_sync_lock_test_and_set<SIDI>): Remove.
6071 (arm_sync_lock_test_and_set<NARROW>): Remove.
6072 (arm_sync_new_<syncop><SIDI>): Remove.
6073 (arm_sync_new_<syncop><NARROW>): Remove.
6074 (arm_sync_new_nand<SIDI>): Remove.
6075 (arm_sync_new_nand<NARROW>): Remove.
6076 (arm_sync_old_<syncop><SIDI>): Remove.
6077 (arm_sync_old_<syncop><NARROW>): Remove.
6078 (arm_sync_old_nand<SIDI>): Remove.
6079 (arm_sync_old_nand<NARROW>): Remove.
6080 (*memory_barrier): Merge arm_output_memory_barrier.
6081 (atomic_compare_and_swap<QHSD>): New.
6082 (atomic_compare_and_swap<NARROW>_1): New.
6083 (atomic_compare_and_swap<SIDI>_1): New.
6084 (atomic_exchange<QHSD>): New.
6085 (cas_cmp_operand, cas_cmp_str): New.
6086 (atomic_op_operand, atomic_op_str): New.
6087 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
6088 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
6089 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
6090 (arm_load_exclusive<NARROW>): New.
6091 (arm_load_exclusivesi, arm_load_exclusivedi): New.
6092 (arm_store_exclusive<QHSD>): New.
6094 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6096 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
6097 reload patterns if -mvsx-scalar-memory.
6099 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
6100 generated, even -mno-vsx-scalar-double was used.
6101 (vsx_xscvdpsp_scalar): Likewise.
6102 (vsx_xscvspdp_scalar2): Likewise.
6104 2012-01-09 Tom de Vries <tom@codesourcery.com>
6105 Andrew Pinski <apinski@cavium.com>
6108 * reorg.c (fill_slots_from_thread): Don't speculate
6109 frame-related insns.
6111 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
6113 * sched-int.h (bb_note): Move to...
6114 * basic-block.h: ...here.
6115 * haifa-sched.c (bb_note): Move to...
6116 * cfgrtl.c: ...here.
6117 * function.c (next_block_for_reg): New function.
6118 (move_insn_for_shrink_wrap): Likewise.
6119 (prepare_shrink_wrap): Rewrite to use the above.
6121 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
6123 * gimple.c (is_gimple_non_addressable): Remove.
6124 * gimple.h: Remove is_gimple_non_addressable.
6125 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
6126 is_gimple_non_addressable.
6127 * trans-mem.c (expand_assign_tm): Same.
6129 2012-01-09 Richard Guenther <rguenther@suse.de>
6131 PR tree-optimization/51775
6132 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
6133 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
6135 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6137 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
6139 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
6141 2012-01-09 Richard Guenther <rguenther@suse.de>
6143 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
6145 2012-01-08 Jan Hubicka <jh@suse.cz>
6147 PR tree-optimize/51680
6148 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
6149 on when known_vals needs to be computed; cleanup.
6151 2012-01-08 Jan Hubicka <jh@suse.cz>
6153 PR tree-optimize/51694
6154 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
6156 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
6158 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
6159 for -std=c++98 and -std=c++11 too.
6161 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
6163 * cfgloop.c (cancel_loop): Add free() of bbs array.
6165 2012-01-07 Jan Hubicka <jh@suse.cz>
6167 PR tree-optimization/51600
6168 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
6169 that benefits small functions.
6171 2012-01-07 Jan Hubicka <jh@suse.cz>
6173 * ipa-inline.c (want_inline_small_function_p): Fix formating.
6175 2012-01-07 Jan Hubicka <jh@suse.cz>
6177 PR tree-optimization/51680
6178 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
6179 whose inlining reduce unit size.
6181 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
6184 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
6185 Add canonical node to containing_mem chain after the non-canonical
6186 one, even if there weren't any locs to propagate.
6187 (remove_useless_values): Keep only canonical values.
6188 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
6189 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
6190 canonicalize mem_chain elements that are not discarded.
6192 2012-01-06 Jakub Jelinek <jakub@redhat.com>
6195 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
6196 before emitting functions.
6198 PR gcov-profile/50127
6199 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
6200 clear_aux_for_blocks.
6202 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
6205 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
6207 2012-01-06 Arnaud Charlet <charlet@adacore.com>
6209 * c-decl.c (ext_block): Moved up.
6210 (collect_all_refs, for_each_global_decl): Take ext_block into account.
6212 2012-01-06 Han Shen <shenhan@google.com>
6214 Translate built-in include paths for sysroot.
6215 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
6216 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
6218 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
6219 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
6221 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
6222 control whether sysroot should be prepended to gxx include dir.
6224 * configure: Regenerate.
6226 2012-01-06 Torvald Riegel <triegel@redhat.com>
6228 PR rtl-optimization/51771
6229 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
6230 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
6232 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
6234 PR tree-optimization/51315
6235 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
6236 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
6238 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
6241 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
6242 for shrp pattern. Correctly handle and fixup shift variable.
6243 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
6245 2012-01-05 Jakub Jelinek <jakub@redhat.com>
6248 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
6249 note when !ACCUMULATE_OUTGOING_ARGS.
6251 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
6253 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
6255 (extract_range_from_unary_expr_1): Avoid useless computations.
6257 2012-01-05 Jakub Jelinek <jakub@redhat.com>
6259 PR rtl-optimization/51767
6260 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
6261 of jump_block and add an extra edge for degenerated asm gotos.
6264 * stmt.c (check_unique_operand_names): Don't ICE during error
6265 reporting if i is from labels chain.
6268 * profile.c (branch_prob): Split bbs that have exit edge
6269 and need a fake entry edge too.
6271 2012-01-05 Jan Hubicka <jh@suse.cz>
6274 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
6277 2012-01-05 Richard Guenther <rguenther@suse.de>
6280 * tree-streamer-out.c (write_ts_optimization): New function.
6281 (streamer_write_tree_body): Call it.
6282 * tree-streamer-in.c (lto_input_ts_optimization): New function.
6283 (streamer_read_tree_body): Call it.
6284 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
6286 2012-01-05 Jakub Jelinek <jakub@redhat.com>
6289 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
6290 * gimplify.c (gimplify_cleanup_point_expr): Save and set
6291 in_cleanup_point_expr before gimplify_stmt call and restore it
6293 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
6294 in_cleanup_point_expr is false.
6296 2012-01-05 Richard Guenther <rguenther@suse.de>
6299 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
6301 * toplev.c (process_options): Reject combining mudflap and LTO.
6302 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
6304 2012-01-05 Richard Guenther <rguenther@suse.de>
6306 PR tree-optimization/51760
6307 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
6309 (bit_value_unop): Handle UNDEFINED operands.
6310 (bit_value_binop): Likewise.
6312 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
6314 * config/avr/avr.c (avr_replace_prefix): Remove.
6315 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
6316 (avr_asm_function_rodata_section): Ditto.
6317 (avr_asm_select_section): Ditto.
6319 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
6321 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
6324 2012-01-05 Jakub Jelinek <jakub@redhat.com>
6327 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
6328 calls that have any non-fake successor edges.
6331 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
6333 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
6335 PR tree-optimization/51624
6336 * tree-sra.c (build_ref_for_model): When replicating a chain of
6337 COMPONENT_REFs, stop as soon as the offset would become negative.
6339 2012-01-04 Jakub Jelinek <jakub@redhat.com>
6342 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
6343 in .debug_loc on the floor.
6345 2012-01-04 Andrew Pinski <apinski@cavium.com>
6347 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
6349 2012-01-04 Andrew Pinski <apinski@cavium.com>
6350 Adam Nemet <anemet@caviumnetworks.com>
6352 * config/mips/mips.md (size): Add SI and DI.
6353 (SIZE): New mode attribute.
6354 (U): New code attribute.
6355 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
6356 (mips_lbux_<mode>): Delete.
6357 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
6358 (mips_lhx): Use gen_mips_lhx_extsi.
6359 (mips_lhx_<mode>): Delete.
6361 (mips_l<size>x): New expand.
6362 (mips_lwx_<mode>): Delete.
6363 (mips_l<GPR:size>x_<P:mode>): New pattern.
6364 (*mips_lw<u>x_<P:mode>_ext): Likewise.
6365 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
6366 * config/mips/mips.c (mips_lx_address_p): New function.
6367 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
6368 (dsp64): New availability predicate.
6369 (mips_builtins): Add an entry for __builtin_mips_ldx.
6370 * config/mips/mips.h (ISA_HAS_LBX): New define.
6371 (ISA_HAS_LBUX): Likewise.
6372 (ISA_HAS_LHX): Likewise.
6373 (ISA_HAS_LHUX): Likewise.
6374 (ISA_HAS_LWX): Likewise.
6375 (ISA_HAS_LWUX): Likewise.
6376 (ISA_HAS_LDX): Likewise.
6377 * doc/extend.texi (__builtin_mips_ldx): Document.
6379 2012-01-04 Tristan Gingold <gingold@adacore.com>
6381 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
6382 when long pointers are used.
6383 * config.build (*-*-*vms*): Handle all OpenVMS targets.
6384 (alpha64-dec-*vms*, alpha*-dec-*vms*)
6385 (ia64-hp-*vms*): Remove.
6386 * config/vms/xm-vms64.h: Delete.
6388 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
6391 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
6393 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
6395 * opts.c (finish_options): Remove duplicate sorry.
6397 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
6400 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
6403 2012-01-04 Richard Guenther <rguenther@suse.de>
6406 * tree.c (size_low_cst): New function.
6407 * tree.h (size_low_cst): Declare.
6408 * fold-const.c (fold_comparison): Use it to extract the low
6409 part of the POINTER_PLUS_EXPR offset.
6411 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
6413 Fix clearing ZERO_REG
6414 * config/avr/avr.md (cc): Add alternative "ldi".
6415 (movqi_insn): Use it in cc attribute.
6416 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
6417 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
6418 (output_reload_insisf): Use ZERO_REG to pre-clear register.
6420 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6422 * configure: Regenerate.
6424 2012-01-04 Richard Guenther <rguenther@suse.de>
6426 PR tree-optimization/49651
6427 * tree-ssa-structalias.c (type_can_have_subvars): New function.
6428 (var_can_have_subvars): Use it.
6429 (get_constraint_for_1): Only consider subfields if there can be any.
6431 2012-01-03 Jakub Jelinek <jakub@redhat.com>
6434 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
6435 to its new canonical_cselib_val and the cselib_val was in
6436 first_containing_mem chain, but the canonical_cselib_val was not,
6437 add the latter into the chain.
6438 (cselib_invalidate_mem): Compare canonical_cselib_val of
6439 addr_list chain elt with v.
6442 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
6443 dwarf2out_undef): Allocate e.info using ggc_strdup instead
6445 (output_macinfo_op): Don't ggc_strdup fd->filename.
6446 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
6447 then ggc_strdup it. Don't free inc->info or cur->info.
6448 (output_macinfo): Don't free ref->info or file->info.
6450 2012-01-03 Ira Rosen <irar@il.ibm.com>
6452 PR tree-optimization/51269
6453 * tree-vect-loop-manip.c (set_prologue_iterations): Make
6454 first_niters a pointer.
6455 (slpeel_tree_peel_loop_to_edge): Likewise.
6456 (vect_do_peeling_for_loop_bound): Update call to
6457 slpeel_tree_peel_loop_to_edge.
6458 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
6459 here. Remove it from the parameters list.
6460 (vect_do_peeling_for_alignment): Update calls and compute
6463 2012-01-03 Richard Guenther <rguenther@suse.de>
6465 PR tree-optimization/51070
6466 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
6467 Properly handle calls.
6469 2012-01-03 Richard Guenther <rguenther@suse.de>
6471 PR tree-optimization/51692
6472 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
6473 the LHS of allocation stmts.
6475 2012-01-03 Olivier Hainque <hainque@adacore.com>
6477 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
6479 2012-01-03 Olivier Hainque <hainque@adacore.com>
6481 * collect2.c (main): In AIX specific computations for vector
6482 insertions, use CONST_CAST2 to cast from char ** to const char **.
6484 2012-01-03 Richard Guenther <rguenther@suse.de>
6487 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
6488 the context of a limbo DIE when it does not already exist.
6490 2012-01-03 Jakub Jelinek <jakub@redhat.com>
6492 PR tree-optimization/51719
6493 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
6494 but direct call is, clear direct call's lhs and don't add fallthrough
6495 edge from dcall_bb to join_bb and PHIs.
6497 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6499 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
6500 the instructions emitted by the pattern.
6501 ("*TDC_insn_<mode>"): Add comment.
6503 2012-01-03 Richard Guenther <rguenther@suse.de>
6506 * fold-const.c (fold_comparison): Properly canonicalize
6507 tree offset and HOST_WIDE_INT bit position.
6509 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
6511 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
6512 operands for extzv pattern.
6514 2012-01-02 Jakub Jelinek <jakub@redhat.com>
6517 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
6520 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
6522 * doc/invoke.texi (-flto and related options): Copy-edit.
6524 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6526 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
6528 2012-01-02 Jakub Jelinek <jakub@redhat.com>
6530 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
6533 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6535 * expr.h (move_by_pieces_ninsns): Declare.
6536 * expr.c (move_by_pieces_ninsns): Make external.
6537 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
6538 (mips_store_by_pieces_p): Likewise.
6539 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
6540 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
6541 * config/mips/mips.c (mips_move_by_pieces_p): New function.
6542 (mips_store_by_pieces_p): Likewise.
6544 2012-01-02 Jakub Jelinek <jakub@redhat.com>
6546 * passes.c (register_one_dump_file): Free full_name.
6548 * reload1.c (reload): Don't allocate reg_max_ref_width here.
6549 (calculate_elim_costs_all_insns): Free offsets_at and
6550 offsets_known_at at the end and clear the pointers.
6552 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
6554 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
6555 this option introduced in r180739.
6557 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
6560 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
6561 (tmake_file target=avr): Add avr/t-multilib.
6563 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
6564 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
6565 * config/avr/genmultilib.awk: New file.
6566 * config/avr/t-multilib: New auto-generated file.
6567 * config/avr/multilib.h: New auto-generated file.
6568 * config/avr/t-avr (AVR_MCUS): New variable.
6569 (genopt.sh): Use it.
6570 (s-mlib): Depend on t-multilib.
6571 (t-multilib, multilib.h): New dependencies.
6572 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
6573 (MULTILIB_OPTIONS): Remove.
6574 (MULTILIB_MATCHES): Remove.
6575 (MULTILIB_DIRNAMES): Remove.
6576 (MULTILIB_EXCEPTIONS): Remove:
6577 * config/avr/genopt.sh: Don't use hard coded file name;
6578 pass AVR_MCUS from t-avr instead.
6580 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
6582 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
6584 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
6586 Implement light-weight DImode support.
6587 * config/avr/avr-dimode.md: New file.
6588 * config/avr/avr.md: Include it.
6589 (adjust_len): Add plus64, compare64.
6590 (HIDI): Remove code iterator.
6591 (code_stdname): New code attribute.
6592 (rotx, rotsmode): Remove DI.
6593 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
6595 * config/avr/avr-protos.h (avr_have_dimode): New.
6596 (avr_out_plus64, avr_out_compare64): New.
6597 * config/avr/avr.c (avr_out_compare): Handle DImode.
6598 (avr_have_dimode): New variable definition and initialization.
6599 (avr_out_compare64, avr_out_plus64): New functions.
6600 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
6601 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
6602 (avr_compare_pattern): Skip DImode comparisons.
6604 2012-01-02 Revital Eres <revital.eres@linaro.org>
6606 * ddg.c (def_has_ccmode_p): New function.
6607 (add_cross_iteration_register_deps,
6608 create_ddg_dep_from_intra_loop_link): Call it.
6610 2012-01-02 Richard Guenther <rguenther@suse.de>
6613 * invoke.texi (fassociative-math): Remove spurious paranthesis.
6615 2012-01-01 Jakub Jelinek <jakub@redhat.com>
6617 * gcc.c (process_command): Update copyright notice dates.
6618 * gcov.c (print_version): Likewise.
6619 * gcov-dump.c (print_version): Likewise.
6620 * mips-tfile.c (main): Likewise.
6621 * mips-tdump.c (main): Likewise.
6623 2012-01-01 Ira Rosen <irar@il.ibm.com>
6625 PR tree-optimization/51704
6626 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
6627 a use is inside the basic block or loop before accessing its vect info.
6629 2012-01-01 Jan Hubicka <jhjh@suse.cz>
6631 PR rtl-optimization/51069
6632 * cfgloopmanip.c (remove_path): Removing path making irreducible
6633 region unconditional makes BB part of the region.
6635 2012-01-01 Jakub Jelinek <jakub@redhat.com>
6637 PR tree-optimization/51683
6638 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
6639 calls with side-effects.
6640 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6642 Copyright (C) 2012 Free Software Foundation, Inc.
6644 Copying and distribution of this file, with or without modification,
6645 are permitted in any medium without royalty provided the copyright
6646 notice and this notice are preserved.