* config/rs6000/aix61.h (TARGET_DEFAULT): Add MASK_PPC_GPOPT,
[official-gcc.git] / gcc / ChangeLog
blobe7f798049af33361b4bbab4a6458a869a032dcf6
1 2012-09-19  David Edelsohn  <dje.gcc@gmail.com>
3         * config/rs6000/aix61.h (TARGET_DEFAULT): Add MASK_PPC_GPOPT,
4         MASK_PPC_GFXOPT, and MASK_MFCRF.
6 2012-09-19  Richard Guenther  <rguenther@suse.de>
8         * passes.c (init_optimization_passes): For -Og move
9         pass_object_sizes inbetween CCP and copyprop.
11 2012-09-19  Richard Guenther  <rguenther@suse.de>
13         * tree-ssa-forwprop.c (get_prop_source_stmt): Simplify. 
15 2012-09-19  Jan Hubicka  <jh@suse.cz>
17         * symtab.c (insert_to_assembler_name_hash): Do not insert
18         register vars.
19         (unlink_from_assembler_name_hash): NULL out pointers of unlinked
20         var.
21         (symtab_prevail_in_asm_name_hash): New.
22         (symtab_initialize_asm_name_hash): Break out from ...
23         (symtab_node_for_asm): ... here.
24         (dump_symtab_base): Dump LTO file data.
25         (verify_symtab_base): Register vars are not in symtab.
26         * cgraph.h (symtab_initialize_asm_name_hash,
27         symtab_prevail_in_asm_name_hash): New functions.
28         (symtab_real_symbol_p): New inline.
29         * lto-symtab.c: Do not include gt-lto-symtab.h.
30         (lto_symtab_entry_def): Remove.
31         (lto_symtab_entry_t): Remove.
32         (lto_symtab_identifiers): Remove.
33         (lto_symtab_free): Remove.
34         (lto_symtab_entry_hash): Remove.
35         (lto_symtab_entry_eq): Remove.
36         (lto_symtab_entry_marked_p): Remove.
37         (lto_symtab_maybe_init_hash_table): Remove.
38         (resolution_guessed_p, set_resolution_guessed): New functions.
39         (lto_symtab_register_decl): Only set resolution info.
40         (lto_symtab_get, lto_symtab_get_resolution): Remove.
41         (lto_symtab_merge): Reorg to work across symtab; do nothing if decls
42         are same.
43         (lto_symtab_resolve_replaceable_p): Reorg to work on symtab.
44         (lto_symtab_resolve_can_prevail_p): Likewise; only real symbols can
45         prevail.
46         (lto_symtab_resolve_symbols): Reorg to work on symtab.
47         (lto_symtab_merge_decls_2): Likewise.
48         (lto_symtab_merge_decls_1): Likewise; add debug dumps.
49         (lto_symtab_merge_decls): Likewise; do not merge at ltrans stage.
50         (lto_symtab_merge_cgraph_nodes_1): Reorg to work on symtab.
51         (lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans stage.
52         (lto_symtab_prevailing_decl): Rewrite to lookup into symtab.
53         * lto-streaer.h (lto_symtab_free): Remove.
54         * lto-cgraph.c (add_references): Cleanup.
55         * varpool.c (varpool_assemble_decl): Skip hard regs.
57 2012-09-19  Richard Guenther  <rguenther@suse.de>
59         PR other/53316
60         * common/common-target.h (OPT_LEVELS_1_PLUS_NOT_DEBUG): Add.
62 2012-09-19  Richard Guenther  <rguenther@suse.de>
64         PR other/53316
65         * common.opt (optimize_debug): New variable.
66         (Og): New optimization level.
67         * doc/invoke.texi (Og): Document.
68         * opts.c (maybe_default_option): Add debug parameter.
69         (maybe_default_options): Likewise.
70         (default_options_optimization): Handle -Og.
71         (common_handle_option): Likewise.
72         * passes.c (gate_all_optimizations): Do not run with -Og.
73         (gate_all_optimizations_g): New gate, run with -Og.
74         (pass_all_optimizations_g): New container pass, run with -Og.
75         (init_optimization_passes): Schedule pass_all_optimizations_g
76         alongside pass_all_optimizations.
78 2012-09-19  Richard Guenther  <rguenther@suse.de>
80         PR tree-optimization/54132
81         * tree-loop-distribution.c (classify_partition): Properly
82         check dependences for memmove.
83         * tree-data-ref.h (compute_affine_dependence): Declare.
84         * tree-data-ref.c (compute_affine_dependence): Export.
86 2012-09-19  Zhenqiang Chen <zhenqiang.chen@arm.com>
88         PR middle-end/54364
89         * bb-reorder.c (connect_better_edge_p): New added.
90         (find_traces_1_round): When optimizing for size, ignore edge frequency
91         and probability, and handle all in one round.
92         (bb_to_key): Use bb->index as key when optimizing for size.
93         (better_edge_p): The bb with smaller index is better when optimizing
94         for size.
95         (connect_traces): When optimizing for size, connect block n with
96         block n + 1; connect trace m with trace m + 1 if falling through.
97         (gate_handle_reorder_blocks): Enable bbro when optimizing for -Os.
99 2012-09-19  Bin Cheng  <bin.cheng@arm.com>
101         * fold-const.c (fold_truth_andor): Remove duplicated check on
102         BRANCH_COST.
104 2012-09-18  Eric Botcazou  <ebotcazou@adacore.com>
106         PR middle-end/54617
107         * expr.c (store_field): Handle a PARALLEL in more cases.
109 2012-09-18  Segher Boessenkool  <segher@kernel.crashing.org>
111         * config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3):
112         Delete.
113         (abssi2, abs<mode>2_isel, nabs<mode>2_isel, abssi2_nopower,
114         nabs_nopower): Delete.
115         (absdi2, absdi2_internal, nabsdi2): Delete.
116         (smindi3, smaxdi3, umindi3, umaxdi3): Delete.
118 2012-09-18  Georg-Johann Lay  <avr@gjlay.de>
120         * config/avr/avr.md: Tidy up empty "".  Fix C code indentation.
121         * config/avr/avr-fixed.md: Ditto.
123 2012-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
125         * config/rs6000/rs6000.c (print_operand) <'c'>: Remove.
126         * config/rs6000/spe.md: Remove a leftover comment.
128 2012-09-18  Jakub Jelinek  <jakub@redhat.com>
130         PR target/54592
131         * config/i386/i386.c (ix86_rtx_costs): Limit > UNITS_PER_WORD
132         AND/IOR/XOR cost calculation to MODE_INT class modes.
134 2012-09-18 Thomas Quinot  <quinot@adacore.com>       
136         * doc/invoke.texi: Document -fada-spec-parent.
138 2012-09-18  Jakub Jelinek  <jakub@redhat.com>
140         PR tree-optimization/54610
141         * tree-ssa-forwprop.c: Include optabs.h.  Don't include
142         tree-vectorizer.h.
143         (simplify_vector_constructor): Don't use vect_gen_perm_mask,
144         instead create the mask constant here.
145         * Makefile.in (tree-ssa-forwprop.o): Depend on $(OPTABS_H).
146         Don't depend on $(TREE_VECTORIZER_H).
148 2012-09-18  Florian Weimer  <fweimer@redhat.com>
150         * Makefile.in (BASIC_BLOCK_H): Add cfg-flags.def.
152 2012-09-18  Richard Guenther  <rguenther@suse.de>
154         * statistics.h (CXX_MEM_STAT_INFO): New define.
155         * gimple.h (gimple_build_assign_with_ops_stat,
156         gimple_build_assign_with_ops, gimple_build_assign_with_ops3):
157         Turn into an overload of the function gimple_build_assign_with_ops.
158         * gimple.c (gimple_build_assign_with_ops_stat): Rename to ...
159         (gimple_build_assign_with_ops): ... this.
160         * tree-ssa-loop-im.c (move_computations_stmt): Adjust.
161         * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
162         * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
163         (vect_permute_load_chain): Likewise.
164         * tree-vect-generic.c (expand_vector_divmod): Likewise.
165         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
166         (vect_recog_divmod_pattern): Likewise.
167         (vect_recog_mixed_size_cond_pattern): Likewise.
168         (adjust_bool_pattern): Likewise.
169         * tree-vect-slp.c (vect_create_mask_and_perm): Likewise.
170         * tree-vect-stmts.c (vectorizable_operation): Likewise.
171         (permute_vec_elements): Likewise.
172         (vectorizable_load): Likewise.
174 2012-09-17  Paul Koning  <ni1d@arrl.net>
176         * doc/invoke.text (-feliminate-unused-debug-types): Update to
177         reflect that this is enabled by default.
179 2012-09-17  Ben Cheng  <bccheng@google.com
181         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the
182         dynamic linker commands for statically linked programs.
184 2012-09-17  Ulrich Weigand  <ulrich.weigand@linaro.org>
186         * config/arm/arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set
187         patterns.
188         * config/arm/arm.md ("vec_set<mode>_internal"): Support memory source
189         operands, implemented via vld1 instruction.
190         ("vec_extract<mode>"): Support memory destination operands, implemented
191         via vst1 instruction.
192         ("neon_vst1_lane<mode>"): Use UNSPEC_VST1_LANE instead of vec_select.
193         * config/arm/predicates.md ("neon_lane_number"): Remove.
195 2012-09-17  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
196             Ulrich Weigand  <ulrich.weigand@linaro.org>
198         * config/arm/arm.c (output_move_neon): Update comment.
199         Use vld1.64/vst1.64 instead of vldm/vstm where possible.
200         (neon_vector_mem_operand): Support double-word modes.
201         * config/arm/neon.md (*neon_mov VD): Call output_move_neon
202         instead of output_move_vfp.  Change constraint from Uv to Un.
204 2012-09-17  Richard Guenther  <rguenther@suse.de>
206         PR lto/54598
207         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed
208         FIXED_VALUE_TYPE instead of struct fixed_value.
210 2012-09-17  Georg-Johann Lay  <avr@gjlay.de>
212         * config/avr/avr.c (CONST_FIXED_P): Remove define.
213         * config/avr/avr.md (add<mode>3): Use CONST_FIXED_P.
215 2012-09-17  Georg-Johann Lay  <avr@gjlay.de>
217         PR target/54607
218         * config.gcc (tm_file,avr): Add avr/avr-arch.h.
219         * config/avr/t-avr (gen-avr-mmcu-texi): Use CC_FOR_BUILD to
220         compile.  Don't depend on TM_H.  Use CFLAGS_FOR_BUILD.
221         * config/avr/avr.h (avr_arch, base_arch_s, mcu_type_s): Source out
222         to...
223         * config/avr/avr-arch.h: ...this new file.
224         * config/avr/gen-avr-mmcu-texi.c: Include avr-arch.h, stdio.h,
225         stdlib.h.
226         * comparator: Make letters smaller than digits.
227         * config/avr/avr-devices.c: Don't include headers if used in
228         gen-avr-mmcu-texi.c.
229         * doc/avr-mmcu.texi: Regenerate.
231 2012-09-17  Georg-Johann Lay  <avr@gjlay.de>
233         * rtl.h (CONST_FIXED_P): New predicate macro.
235 2012-09-17  Eric Botcazou  <ebotcazou@adacore.com>
237         * tree-cfgcleanup. (cleanup_control_expr_graph) <GIMPLE_COND>: Remove
238         code doing propagation from degenerate PHI nodes.
239         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): New function.
240         (propagate_constants_for_unrolling): Likewise.
241         (tree_unroll_loops_completely): If the current loop has been unrolled
242         and its father isn't the entire function, propagate constants within
243         the new basic blocks by means of propagate_constants_for_unrolling.
245 2012-09-17  Jakub Jelinek  <jakub@redhat.com>
247         PR tree-optimization/54563
248         * tree-ssa-math-opts.c (execute_cse_sincos): Call
249         gimple_purge_dead_eh_edges if last call has been changed.
251 2012-09-17  Georg-Johann Lay  <avr@gjlay.de>
253         PR target/54222
254         * config/avr/avr.c (avr_out_plus_symbol): Fix typo if PLUS and PSImode.
255         (avr_out_plus_1): Remove log comments from assembler output.
257 2012-09-17  Ruben Buchatskiy  <ruben@ispras.ru>
259         * config/arm/vfp.md (*thumb2_movdf_vfp): Require one of the operands
260         to be a register.
262 2012-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
264         * calls.c (expand_call): Use emit_group_move for PARALLEL->PARALLEL
265         moves.
267 2012-09-15  Tom de Vries  <tom@codesourcery.com>
269         * tree-vrp.c (extract_range_from_binary_expr_1): Fix bug in handling of
270         LSHIFT_EXPR with shift range.  Handle more LSHIFT_EXPR cases with shift
271         range.
273 2012-09-15  Georg-Johann Lay  <avr@gjlay.de>
275         PR target/54222
276         * config/avr/avr-fixed.md (ALL2S, ALL4S, ALL24S, ALL124S,
277         ALL124U): New mode iterators.
278         (<code_stdname><mode>3): New insns for SS_PLUS, SS_MINUS.
279         (<code_stdname><mode>3): New insns for US_PLUS, US_MINUS.
280         (usneg<mode>2): New insns.
281         (<code_stdname><mode>2): New expanders for SS_NEG, SS_ABS.
282         (*<code_stdname><mode>2): New insns for SS_NEG, SS_ABS.
283         * config/avr/avr-dimode.md (ALL8U, ALL8S): New mode iterators.
284         (avr_out_plus64, avr_out_minus64): Use avr_out_plus instead.
285         (<code_stdname><mode>3): New expanders for SS_PLUS, SS_MINUS.
286         (<code_stdname><mode>3): New expanders for US_PLUS, US_MINUS.
287         (<code_stdname><mode>3_insn): New insns.
288         (<code_stdname><mode>3_const_insn): New insns.
289         * config/avr/avr.md (cc): Add: plus. Remove: out_plus,
290         out_plus_noclobber, minus.
291         (length): Add: plus.  Remove: out_plus, out_plus_noclobber,
292         plus64, minus, minus64.
293         (abelian): New code_attr.
294         (code_stdname): Handle: ss_plus, ss_minus, ss_neg, ss_abs,
295         us_plus, us_minus, us_neg.
296         (*add<mode>3, add<mode>3_clobber, add<mode>3, addpsi3, sub<mode>3):
297         Use avr_out_plus to output.
298         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
299         (avr_out_plus_noclobber, avr_out_minus): Remove.
300         (avr_out_plus64, avr_out_minus64): Remove.
301         * config/avr/avr.c (avr_out_plus_1): Add new default arguments
302         code_sat, sign.  Saturate after operation if code_sat != UNKNOWN.
303         (avr_out_plus_symbol): New static function.
304         (avr_out_plus): Rewrite.
305         (adjust_insn_length): Handle: ADJUST_LEN_PLUS.  Remove handling
306         of: ADJUST_LEN_OUT_PLUS, ADJUST_LEN_PLUS64, ADJUST_LEN_MINUS, 
307         ADJUST_LEN_MINUS64, ADJUST_LEN_OUT_PLUS_NOCLOBBER.
308         (notice_update_cc): Handle: CC_PLUS.  Remove handling of: CC_MINUS,
309         CC_OUT_PLUS, CC_OUT_PLUS_NOCLOBBER
310         (avr_out_plus_noclobber, avr_out_minus): Remove.
311         (avr_out_plus64, avr_out_minus64): Remove.
312         (avr_print_operand): Print raw REGNO if 'r' is used with REG.
314 2012-09-15  Oleg Endo  <olegendo@gcc.gnu.org>
316         * config/sh/sh.c (sh_rtx_costs): Add handling of MEM, SIGN_EXTEND,
317         ZERO_EXTEND and PARALLEL cases.
318         (sh_address_cost): Correct rtx parsing and tweak cost estimations.
320 2012-09-14  Sandra Loosemore  <sandra@codesourcery.com>
322         * doc/tm.texi.in (Stack Arguments): Update obsolete references
323         to current_function_outgoing_args_size.
324         (Function Entry): Likewise for current_function_pops_args,
325         current_function_pretend_args_size,
326         current_function_outgoing_args_size, and
327         current_function_epilogue_delay_list.
328         (Misc): Fix garbled sentence referencing nonexistent
329         current_function_leaf_function.
330         * doc/tm.texi: Regenerated.
332 2012-09-14  Dehao Chen  <dehao@google.com>
334          * tree-eh.c (goto_queue_node): New field.
335         (record_in_goto_queue): New parameter.
336         (record_in_goto_queue_label): New parameter.
337         (lower_try_finally_dup_block): New parameter.
338         (maybe_record_in_goto_queue): Update source location.
339         (lower_try_finally_copy): Likewise.
340         (honor_protect_cleanup_actions): Likewise.
341         * gimplify.c (gimplify_expr): Reset the location to unknown.
343 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
345         * configure: Regenerated.
347 2012-09-14  Walter Lee  <walt@tilera.com>
349         * doc/invoke.texi (Option Summary): fix typesetting for -mcpu
350         option for TILEPro and TILE-Gx.
351         (TILE-Gx Options): Fix grammar and spellings in documentation for
352         -mcmodel.
354 2012-09-14  Marc Glisse  <marc.glisse@inria.fr>
356         PR c++/54427
357         * fold-const.c (fold_unary_loc): Disable for VECTOR_TYPE.
358         (fold_binary_loc): Likewise.
359         * gimple-fold.c (and_comparisons_1): Handle VECTOR_TYPE.
360         (or_comparisons_1): Likewise.
362 2012-09-14  Richard Earnshaw  <rearnsha@arm.com>
364         PR target/54516
365         PR rtl-optimization/54540
366         * reload.c (find_dummy_reload): Don't use OUT as a reload reg
367         for IN if it overlaps a fixed register.
369 2012-09-14  Eric Botcazou  <ebotcazou@adacore.com>
371         PR rtl-optimization/44194
372         * calls.c (expand_call): In the PARALLEL case, copy the return value
373         into pseudos instead of spilling it onto the stack.
374         * emit-rtl.c (adjust_address_1): Rename ADJUST into ADJUST_ADDRESS and
375         add new ADJUST_OBJECT parameter.
376         If ADJUST_OBJECT is set, drop the underlying object if it cannot be
377         proved that the adjusted memory access is still within its bounds.
378         (adjust_automodify_address_1): Adjust call to adjust_address_1.
379         (widen_memory_access): Likewise.
380         * expmed.c (store_bit_field_1): Call adjust_bitfield_address instead
381         of adjust_address.  Do not drop the underlying object of a MEM.
382         (store_fixed_bit_field): Likewise.
383         (extract_bit_field_1): Likewise.  Fix oversight in recursion.
384         (extract_fixed_bit_field): Likewise.
385         * expr.h (adjust_address_1): Adjust prototype.
386         (adjust_address): Adjust call to adjust_address_1.
387         (adjust_address_nv): Likewise.
388         (adjust_bitfield_address): New macro.
389         (adjust_bitfield_address_nv): Likewise.
390         * expr.c (expand_assignment): Handle a PARALLEL in more cases.
391         (store_expr): Likewise.
392         (store_field): Likewise.
394         * dse.c: Fix typos in the head comment.
396 2012-09-14  Christian Bruel  <christian.bruel@st.com>
398         PR target/54546
399         * config/sh/sh-protos.h (sh_need_epilogue): Delete.
400         (sh_can_use_simple_return_p): Declare.
401         * config/sh/sh.c (sh_can_use_simple_return_p): Define.
402         (sh_need_epilogue, sh_need_epilogue_known): Delete.
403         (sh_output_function_epilogue): Remove sh_need_epilogue_known.
404         * config/sh/sh.md (simple_return, return): Define.
405         (epilogue): Use inline return rtl.
406         (sh_expand_epilogue): Cleanup parameters boolean type.
407         * config/sh/iterators.md (any_return): New iterator.
409 2012-09-14  Christian Bruel  <christian.bruel@st.com>
411         * config/sh/predicates.md (t_reg_operand): Check REG_P for SUBREG.
412         * config/sh/sh.c (sequence_insn_p: Check INSNP_P for SEQUENCE.
414 2012-09-14  Jakub Jelinek  <jakub@redhat.com>
416         PR target/54564
417         * config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1)
418         instead of (match_dup 0) as second argument to vec_merge.
419         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
420         Remove third alternative.
421         (*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise.  Negate
422         operand 2 instead of operand 1, but put it as first argument
423         of fma.
424         * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
425         _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
426         of the first.
428 2012-09-14  Richard Guenther  <rguenther@suse.de>
430         PR tree-optimization/54565
431         * passes.c (init_optimization_passes): Adjust comments.
432         (execute_function_todo): Do not execute execute_update_addresses_taken
433         before processing TODO_rebuild_alias.
434         * tree-ssa-ccp.c (do_ssa_ccp): Schedule TODO_update_address_taken.
436 2012-09-14  Richard Guenther  <rguenther@suse.de>
438         * tree-vrp.c (register_new_assert_for): Simplify for backward
439         walk.
440         (find_assert_locations_1): Walk the basic-block backwards,
441         properly add/prune from live.  Use live for asserts derived
442         from stmts.
444 2012-09-14  Marc Glisse  <marc.glisse@inria.fr>
446         * tree-ssa-forwprop.c (simplify_bitfield_ref): Call
447         get_prop_source_stmt.
448         (simplify_permutation): Likewise.
449         (simplify_vector_constructor): Likewise.
451 2012-09-14  Richard Guenther  <rguenther@suse.de>
453         * builtin-types.def (BT_FN_CONST_STRING): Add.
454         * builtins.def (BUILT_IN_FILE, BUILT_IN_FUNCTION,
455         BUILT_IN_LINE): New builtins.
456         * gimplify.c (gimplify_call_expr): Expand them.
457         * doc/extend.texi (__builtin_LINE, __builtin_FUNCTION,
458         __builtin_FILE): Document.
460 2012-09-13  Anthony Green  <green@moxielogic.com>
462         * config/moxie/moxie.h (LINK_SPEC): Add bi-endian support.
463         (MULTILIB_DEFAULTS): Define.
464         (ASM_SPEC): Define.
465         (BYTES_BIG_ENDIAN, WORDS_BIG_ENDIAN): Add bi-endian support.
466         (TARGET_CPU_CPP_BUILTINS): Add __MOXIE_LITTLE_ENDIAN__ and
467         __MOXIE_BIG_ENDIAN__.
468         * config/moxie/t-moxie (MULTILIB_DIRNAMES, MULTILIB_OPTIONS):
469         Define.
470         * config/moxie/moxie.opt: New file.
471         * doc/invoke.texi (Moxie Options): Add section documenting -mel
472         and -meb.
474 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
475             Manuel López-Ibáñez  <manu@gcc.gnu.org>
477         PR c++/53210
478         * doc/invoke.texi ([Winit-self]): Document as enabled by -Wall
479         in C++.
481 2012-09-13  Eric Botcazou  <ebotcazou@adacore.com>
483         * config/sparc/predicates.md (input_operand): Do not consider TImode
484         constants as 1-instruction integer constants.
485         Use register_or_zero_operand instead of register_operand and tidy up.
486         * config/sparc/sparc.md (movti): New expander.
487         (movti_insn_sp64): New instruction.
488         (movti_insn_sp64_hq): Likewise.
489         (TImode splitters): New splitters.
490         * config/sparc/sparc.c (sparc_expand_move) <TImode>: New case.
491         (sparc_legitimate_address_p): Return 0 for REG+REG in TImode.
493         * config/sparc/sparc-protos.h (arith_double_4096_operand): Delete.
494         (arith_4096_operand): Likewise.
495         (zero_operand): Likewise.
496         (fp_zero_operand): Likewise.
497         (reg_or_0_operand): Likewise.
499 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
501         * configure.ac (CXXFLAGS): Remove -O2 when not bootstrapping.
502         * configure: Regenerated.
504 2012-08-13  Uros Bizjak  <ubizjak@gmail.com>
506         * config/i386/i386.md (prefetch): Do not assert mode of operand 0.
507         (*prefetch_sse_<mode>): Do not set mode of address_operand predicate.
508         Rename to ...
509         (*prefetch_sse): ... this.
510         (*prefetch_3dnow_<mode>): Do not set mode of address_operand predicate.
511         Rename to ...
512         (*prefetch_3dnow): ... this.
514 2012-09-13  Steven Bosscher  <steven@gcc.gnu.org>
516         * ipa-pure-const.c (state_from_flags, local_pure_const): Use
517         current_function_name instead of lang_hooks.decl_printable_name.
519         * function.h (fndecl_name): New prototype.
520         * function.c (fndecl_name): New function.
521         * vecir.h (cgraph_node_p): New standard IR VEC type.
522         * trans-mem.c (cgraph_node_p): No need anymore to define it here.
523         * ipa-utils.h (ipa_get_nodes_in_cycle): New prototype.
524         * ipa-utils.c (ipa_get_nodes_in_cycle): New function.
525         * ipa-reference.c: Don't include langhooks.h, and certainly not twice.
526         Fix many formatting issues (long lines, short lines, spacing, etc.).
527         (get_static_name): Use fndecl_name.
528         (dump_static_vars_set_to_file): New function split out from propagate.
529         (union_static_var_sets): New function, union two sets and collapse
530         to all_module_statics as quickly as possible.
531         (intersect_static_var_sets): New function, similar to above.
532         (copy_static_var_set): Renamed from copy_global_bitmap and rewritten
533         to allocate a copy on the same bitmap_obstack as the source set.
534         (propagate_bits): Simplify, and clarify by using union_static_var_sets.
535         (generate_summary): Remove bm_temp.  Print UID of promotable globals.
536         (read_write_all_from_decl): Use pass-by-reference, bless C++.
537         (get_read_write_all_from_node): New function, split out from propagate.
538         (propagate): Simplify and clarify with helper functions.  Use
539         ipa_get_nodes_in_cycle to walk all nodes in a reduced node.
540         (ipa_reference_read_optimization_summary): Use fndecl_name instead of
541         lang_hooks.decl_printable_name.
543         * rtl.h (print_rtl_single_with_indent): New prototype.
544         * print-rtl.c (print_rtl_single_with_indent): New function.
545         * cfghooks.h (empty_block_p, split_block_before_cond_jump): New hooks.
546         * cfghooks.c (empty_block_p, split_block_before_cond_jump): Implement.
547         * cfgrtl.c (rtl_block_empty_p, rtl_split_block_before_cond_jump):
548         Implement RTL specific hooks.
549         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Register the new hooks.
550         * tree-cfg.c (gimple_empty_block_p,
551         gimple_split_block_before_cond_jump): Implement GIMPLE specific hooks.
552         (gimple_cfg_hooks): Register the new hooks.
553         * tree-ssa-phiopt.c (empty_block_p): Remove in favor of new hook.
555 2012-09-13  Richard Guenther  <rguenther@suse.de>
557         * tree-ssa-sccvn.h (enum vn_kind): New.
558         (vn_get_stmt_kind): Likewise.
559         * tree-ssa-sccvn.c (vn_get_stmt_kind): New function, adjust
560         ADDR_EXPR handling.
561         (visit_use): Use it.
562         * tree-ssa-pre.c (compute_avail): Likewise, simplify further.
564 2012-09-13  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
566         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
567         for targets bdver1, bdver2, btver1 and btver2.
569 2012-09-13  Christophe Lyon  <christophe.lyon@linaro.org>
570             Richard Earnshaw  <rearnsha@arm.com>
572         * config/arm/arm.md (arm_rev): Factorize thumb1, thumb2 and arm
573         variants for rev instruction..
574         (thumb1_rev): Delete pattern.
575         (arm_revsh): New pattern to support builtin_bswap16.
576         (arm_rev16, bswaphi2): Likewise.
578 2012-09-12  Teresa Johnson  <tejohnson@google.com>
580         PR gcov-profile/54487
581         * configure.ac (HOST_HAS_F_SETLKW): Set based on compile
582         test using F_SETLKW with fcntl.
583         * configure, config.in: Regenerate.
585 2012-09-12  Jan Hubicka  <jh@suse.cz>
587         PR fortran/48636
588         * ipa-inline-analysis.c (dump_inline_hints): Dump loop stride.
589         (set_hint_predicate): New function.
590         (reset_inline_summary): Reset loop stride.
591         (remap_predicate_after_duplication): New function.
592         (remap_hint_predicate_after_duplication): New function.
593         (inline_node_duplication_hook): Update.
594         (dump_inline_summary): Dump stride summaries.
595         (estimate_function_body_sizes): Compute strides.
596         (remap_hint_predicate): New function.
597         (inline_merge_summary): Use it.
598         (inline_read_section): Read stride.
599         (inline_write_summary): Write stride.
600         * ipa-inline.c (want_inline_small_function_p): Handle strides.
601         (edge_badness): Likewise.
602         * ipa-inline.h (inline_hints_vals): Add stride hint.
603         (inline_summary): Update stride.
605 2012-09-12  Uros Bizjak  <ubizjak@gmail.com>
607         * config/i386/i386.c (x86_prefetch_sse): Change to unsigned char.
608         * config/i386/i386.h (x86_prefetch_sse): Ditto.
610 2012-09-12  H.J. Lu  <hongjiu.lu@intel.com>
612         PR target/54445
613         * config/i386/predicates.md (x86_64_immediate_operand): Allow
614         negative offset for UNSPEC_DTPOFF/UNSPEC_NTPOFF.
616 2012-09-12  Jan Hubicka  <jh@suse.cz>
618         * common.opt (flto-partition): Add "max".
619         * invoke.texi (flto-partition): Document "max"
621 2012-09-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
623         * config/i386/i386.md : Comments on fma4 instruction selection
624         reflect requirement on register pressure based cost model.
626         * config/i386/driver-i386.c (host_detect_local_cpu): fma4
627         flag is set-reset as informed by the cpuid flag.
629         * config/i386/i386.c (processor_alias_table): fma4
630         flag is enabled for bdver2.
632 2012-09-12  Richard Guenther  <rguenther@suse.de>
634         PR tree-optimization/54489
635         * tree-ssa-pre.c: Include domwalk.h.
636         (in_fre): Remove.
637         (sccvn_valnum_from_value_id): New function.
638         (debug_bitmap_sets_for): Simplify.
639         (get_representative_for): Properly initialize the SCCVN valnum.
640         (create_expression_by_pieces): Likewise.
641         (insert_into_preds_of_block): Likewise.
642         (can_PRE_operation): Remove.
643         (make_values_for_phi): Simplify.
644         (compute_avail): Likewise.
645         (do_SCCVN_insertion): Remove.
646         (eliminate_avail, eliminate_push_avail, eliminate_insert):
647         New functions.
648         (eliminate): Split and perform a domwalk.
649         (eliminate_bb): Former eliminate part that is now dom-enter.
650         (eliminate_leave_block): New function.
651         (fini_eliminate): Likewise.
652         (init_pre): Simplify.
653         (fini_pre): Likewise.
654         (execute_pre): Fold into do_pre and do_fre.
655         (do_pre): Consume execute_pre.
656         (do_fre): Likewise.
657         * Makefile.in (tree-ssa-pre.o): Add domwalk.h dependency.
659 2012-09-12  Diego Novillo  <dnovillo@google.com>
661         * vec.h: Remove compatibility notes for previous distinction
662         between vectors of objects and vectors of pointers.
664 2012-09-12  Christian Bruel  <christian.bruel@st.com>
666         * config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.
668 2012-09-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
670         * rtl.h (FFS, FLOAT, ABS, PC): Don't undef.
671         * system.h (FFS, FLOAT, ABS, PC): Undef.
673 2012-09-12  Richard Guenther  <rguenther@suse.de>
675         PR middle-end/54553
676         * common.opt (finline): Mark with Optimization.
678 2012-09-12  Jakub Jelinek  <jakub@redhat.com>
680         * config.gcc: Obsolete picochip-*.
682 2012-09-12  Nathan Froyd  <froydnj@gcc.gnu.org>
683             Hans-Peter Nilsson  <hp@bitrange.com>
685         * config/mmix/mmix.h (MMIX_REG_OK_STRICT): Delete.
686         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P): Delete.
687         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
688         * config/mmix/mmix-protos.h (mmix_intval): Declare.
689         (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
690         (mmix_const_double_ok_for_letter_p): Delete.
691         * config/mmix/constraints.md: New file.
692         * config/mmix/mmix.md: Include it.
693         (iordi3): Fix typo; use "I" instead of undefined "H" constraint.
694         ("*call_real"): Update comment about not using the "p" constraint.
695         * config/mmix/predicates.md (mmix_reg_or_8bit_operand): Use
696         satisfies_constraint_I.
697         (mmix_address_operand): New predicate.
698         (mmix_symbolic_or_address_operand): Use it instead of address_operand.
699         * config/mmix/mmix.c: #include tm-constrs.h.
700         (mmix_intval): Delete declaration.  Make non-static.
701         (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
702         (mmix_const_double_ok_for_letter_p): Delete.
703         (mmix_legitimate_address_p): Use satisfies_constraint_I.
704         (mmix_print_operand_address): Likewise.
705         (mmix_emit_sp_add): Adjust to use insn_const_int_ok_for_constraint
706         when matching "L" constraint.
708 2012-09-11  Steven Bosscher  <steven@gcc.gnu.org>
710         * tree.h (expand_case): Move prototype ...
711         * expr.h (expand_case): ...here.
712         (expand_sjlj_dispatch_table): New prototype.
713         * stmt.c: Include pointer-set.h instead of bitmap.h.
714         (expand_case): Use a pointer set instead of a bitmap for
715         already-seen labels.  Fold label values here.
716         (add_case_node): Don't fold label values here.
717         (expand_sjlj_dispatch_table): New function.
718         * except.c (sjlj_emit_dispatch_table): Use it.
720 2012-09-11  Marc Glisse  <marc.glisse@inria.fr>
722         * tree-ssa-forwprop.c (simplify_vector_constructor): New function.
723         (ssa_forward_propagate_and_combine): Call it.
725 2012-09-11  Diego Novillo  <dnovillo@google.com>
727         * var-tracking.c (vt_add_function_parameter): Adjust for VEC changes.
729 2012-09-11  Dominique Dhumieres  <dominiq@lps.ens.fr>
731         * config/darwin.c (darwin_asm_named_section): Adjust for VEC changes.
732         (darwin_asm_dwarf_section): Likewise.
734 2012-09-11  Martin Jambor  <mjambor@suse.cz>
736         * dwarf2out.c (dwarf2out_abstract_function): Do not change cfun.
737         (premark_used_types): New parameter fun, use it instead of cfun.
738         (gen_subprogram_die): Use DECL_STRUCT_FUNCTION (decl) instead of cfun,
739         also pass it to premark_used_types.
741 2012-09-11  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
743         * doc/sourcebuild.texi (arm_neon_v2_ok): Adjust command line.
745 2012-09-11  Tobias Burnus  <burnus@net-b.de>
747         * doc/sourcebuild.texi (arm_neon_v2_ok): Fix @anchor.
749 2012-09-11  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
750             Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
752         * config/arm/neon.md (fma<VCVTF:mode>4): New pattern.
753         (*fmsub<VCVTF:mode>4): Likewise.
754         * doc/sourcebuild.texi (arm_neon_v2_ok, arm_neon_v2_hw):  Document it.
756 2012-09-11  Aldy Hernandez  <aldyh@redhat.com>
758         PR middle-end/54149
759         * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set): Only set
760         flag for writes.
762 2012-09-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
764         PR tree-optimization/55492
765         * doc/invoke.texi (max-slsr-cand-scan): New description.
766         * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Limit
767         the time spent searching for a basis.
768         * params.def (PARAM_MAX_SLSR_CANDIDATE_SCAN): New param.
770 2012-09-11  Richard Guenther  <rguenther@suse.de>
772         * gimple.h (gimple_register_type): Remove.
773         (print_gimple_types_stats): Adjust prototype.
774         * lto-streamer.h (print_lto_report): Likewise.
775         * lto-streamer.c (print_lto_report): Adjust.
776         * gimple.c (gimple_types, type_hash_cache, enum gtc_mode,
777         struct type_pair_d, lookup_type_pair, struct sccs,
778         next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
779         gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
780         gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
781         visit, iterative_hash_name, struct type_hash_pair,
782         type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
783         gimple_type_eq, gimple_register_type_1, gimple_register_type):
784         Move to lto/lto.c.
785         (print_gimple_types_stats): Adjust.
786         (free_gimple_type_tables): Likewise.
788 2012-09-11  Richard Guenther  <rguenther@suse.de>
790         * graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes.
791         (scopdet_basic_block_info): Likewise.
792         (build_scops_1): Likewise.
793         (limit_scops): Likewise.
795 2012-09-11  Richard Guenther  <rguenther@suse.de>
797         PR middle-end/54515
798         * gimple.c (get_base_address): Do not return NULL_TREE apart
799         from for WITH_SIZE_EXPR.
800         * gimple-fold.c (canonicalize_constructor_val): Do not call
801         get_base_address when not necessary.
803 2012-09-10  Andrew Pinski  <apinski@cavium.com>
805         PR tree-opt/54362
806         * trans-mem.c (thread_private_new_memory): Handle COND_EXPR also.
808 2012-09-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
810         * config/m68k/m68k.c (m68k_sched_dfa_post_advance_cycle): Support
811         starting scheduling from a pre-existing state.
813 2012-09-10  Diego Novillo  <dnovillo@google.com>
815         * vec.h (vec_t::quick_push): Remove overload that accepts 'T *'.
816         Update all users.
817         (vec_t::safe_push): Likewise.
818         (vec_t::quick_insert): Likewise.
819         (vec_t::lower_bound): Likewise.
820         (vec_t::safe_insert): Likewise.
821         (vec_t::replace): Change second argument to 'T &'.
823 2012-09-10  Maciej W. Rozycki  <macro@codesourcery.com>
825         * config/rs6000/rs6000.md: Move a splitter next to its insn.
827 2012-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
829         PR target/54089
830         * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Set always to 1 if
831         dynamic shifts are available.
832         (SHIFT_COUNT_TRUNCATED): Always define to 0.  Correct comment.
833         * config/sh/sh.c (ashl_lshr_seq, ext_ashl_lshr_seq): Add comments.
834         * config/sh/predicates.md (shift_count_operand): Allow
835         arith_reg_operand even if TARGET_DYNSHIFT is false.
836         * config/sh/sh.md (ashlsi3, lshrsi3): Expand library call patterns
837         if needed.
838         (ashlsi3_d_call, lshrsi3_d_call): New insns.
840 2012-09-10  Richard Sandiford  <rdsandiford@googlemail.com>
842         * ira.c (setup_pressure_classes): Handle synonymous classes.
844 2012-09-10  Marc Glisse  <marc.glisse@inria.fr>
846         * tree-ssa-forwprop.c (simplify_bitfield_ref): New function.
847         (ssa_forward_propagate_and_combine): Call it.
849 2012-09-10  Steve Ellcey  <sellcey@mips.com>
851         * config.gcc: Add mips*-mti-linux* target
852         Handle with_synci like other options.
853         * config/mips/gnu-user64.h (LINUX64_DRIVER_SELF_SPECS): New.
854         (DRIVER_SELF_SPECS): Define in terms of LINUX64_DRIVER_SELF_SPECS.
855         * config/mips/mips.h (MIPS_ISA_SYNCI_SPEC): New.
856         * config/mips/mti-linux.h: New file.
857         * config/mips/t-mti-linux: New file.
859 2012-09-10  Marc Glisse  <marc.glisse@inria.fr>
861         * tree-ssa-forwprop.c (simplify_permutation): Handle CONSTRUCTOR.
863 2012-09-10  Martin Jambor  <mjambor@suse.cz>
865         * params.def (PARAM_IPA_MAX_AGG_ITEMS): New parameter.
866         * ipa-prop.c: Include params.h.
867         (IPA_MAX_AFF_JF_ITEMS): Removed.
868         (determine_known_aggregate_parts): Use param value of
869         PARAM_IPA_MAX_AGG_ITEMS instead of IPA_MAX_AFF_JF_ITEMS.
870         * Makefile.in (ipa-prop.o): Add PARAMS_H dependency.
872 2012-09-10  Richard Guenther  <rguenther@suse.de>
874         PR tree-optimization/54520
875         * tree-ssa-threadupdate.c (def_split_header_continue_p):
876         Properly consider sub-loops.
878 2012-09-10  Richard Henderson  <rth@redhat.com>
880         * config/alpha/predicates.md (small_symbolic_operand): Disallow
881         large offsets.
883 2012-09-10  Georg-Johann Lay  <avr@gjlay.de>
885         PR target/54536
886         * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287".
888 2012-09-10  Jan Hubicka  <jh@suse.cz>
890         * lto-cgraph.c (compute_ltrans_boundary): Do not care about aliases.
891         * symtab.c (symtab_make_decl_local): Remove user defined visibility
892         when making symbol local.
894 2012-09-09  Mark Kettenis  <kettenis@gnu.org>
896         * config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): Define.
898 2012-09-09  Jan Hubicka  <jh@suse.cz>
900         * passes.c (ipa_write_summaries_1): Set state;
901         do not call compute_ltrans_boundary.
902         (ipa_write_optimization_summaries): Likewise.
903         (ipa_write_summaries): compute_ltrans_boundary here.
904         * lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap.
905         (compute_ltrans_boundary): Update prototype.
907 2012-09-09  Ulrich Drepper  <drepper@gmail.com>
909         * config/i386/cpuid.h: Define signature_*_e[bcd]x macros for
910         matching results of level 0 calls to __cpuid to processor
911         manufacturers.
912         * config/i386/driver-i386.c (vendor_signatures): Removed.
913         (processor_signatures): Removed.
914         (host_detect_local_cpu): Replace uses of now-removed SIG_*
915         constants with the new signature_*_ebx constants.
917 2012-09-08  Jan Hubicka  <jh@suse.cz>
919         Replace cgraph_node_set and varpool_node_set by symtab_node_encoder
920         in partitioning.
921         * tree-pass.h (cgraph_node_set_def, varpool_node_set_def): Remove
922         forward declaration.
923         (lto_symtab_encoder_d): Forward declare.
924         (ipa_write_optimization_summaries): Update.
925         * lto-cgraph.c (lto_symtab_encoder_new): Do not initialize
926         body, initializer and in_partition.
927         (lto_symtab_encoder_delete): Update.
928         (lto_symtab_encoder_encode): Update.
929         (lto_symtab_encoder_lookup): Move inline.
930         (lto_symtab_encoder_delete_node): New function.
931         (lto_symtab_encoder_encode_body_p, lto_set_symtab_encoder_encode_body,
932         lto_symtab_encoder_encode_initializer_p,
933         lto_set_symtab_encoder_encode_initializer,
934         lto_symtab_encoder_in_partition_p,
935         lto_symtab_encoder_in_partition_p): Update.
936         (compute_ltrans_boundary): Take encoder as an input.
937         * passes.c (ipa_write_summaries_1): Update.
938         (ipa_write_summaries_1): Update.
939         (ipa_write_summaries): Update.
940         (ipa_write_optimization_summaries): Update.
941         * lto-streamer.c (print_lto_report): Report number of cgraph nodes.
942         * lto-streamer.h (lto_stats_d): Replace num_output_cgraph_nodes by
943         num_output_symtab_nodes.
944         (lto_encoder_entry): New structure.
945         (struct lto_symtab_encoder_d): Reorg.
946         (lto_symtab_encoder_delete_node): Declare.
947         (lto_symtab_encoder_lookup): Bring inline.
948         (compute_ltrans_boundary): Update.
949         (lto_symtab_encoder_size): Update.
950         (lsei_node, lsei_cgraph_node, lsei_varpool_node): Update.
951         (lto_symtab_encoder_deref): Update.
953 2012-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
955         * config/pa/pa.c (hppa_rtx_costs): Update costs for large
956         integer modes.
958 2012-09-08  Andi Kleen  <ak@linux.intel.com>
960         * gcc/lto/lto.c (do_whole_program_analysis): Fix last broken patch.
962 2012-09-08  Andi Kleen  <ak@linux.intel.com>
964         * gcc/common.opt (-fmem-report-wpa): Add
965         * gcc/doc/invoke.texi (-fmem-report-wpa): Document.
966         * gcc/lto/lto.c (do_whole_program_analysis): Run mem_report
967         when mem_report_wpa is set.
969 2012-09-07  Anthony Green  <green@moxielogic.com>
971         * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue
972         for functions with large static stack requirements.
973         (moxie_expand_epilogue): Use $r12 instead of $r5 for pulling saved
974         values off of the stack.
976 2012-09-07  Nick Clifton  <nickc@redhat.com>
978         * config/v850/v850.h (DBX_DEBUGGING_INFO): Define.
979         (ASM_GENERATE_INTERNAL_LABEL): Define if not already provided.
980         * config/v850/v850.c (compute_register_save_size): Always include
981         the link pointer.
982         (increment_stack): New function - emits insns to increment or
983         decrement the stack pointer.
984         (expand_prologue, expand_epilogue): Use it.
985         (expand_prologue): Set the function stack size, if requested.
986         (v850_debug_unwind_info): New function.
987         (TARGET_DEBUG_UNWIND_INFO): Define.
989 2012-09-07  Richard Earnshaw  <rearnsha@arm.com>
991         PR tree-ssa/54295
992         * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
993         Sign-extension of a zero-extended value can be simplified to
994         just zero-extension.
996 2012-09-07  Richard Guenther  <rguenther@suse.de>
998         PR middle-end/53667
999         * tree-ssa-structalias.c (handle_rhs_call): Properly clobber
1000         EAF_NOESCAPED arguments.  Transitively close non-EAF_DIRECT
1001         arguments separately.
1003 2012-09-07  Steven Bosscher  <steven@gcc.gnu.org>
1005         * bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit.
1007         * graphite.c (print_global_statistics): Use EDGE_COUNT instead
1008         of VEC_length.
1009         (print_graphite_scop_statistics): Likewise.
1010         * graphite-scop-detection.c (get_bb_type): Use single_succ_p.
1011         (print_graphite_scop_statistics): Use EDGE_COUNT, not VEC_length.
1012         (canonicalize_loop_closed_ssa): Use single_pred_p.
1014         * alias.c (reg_seen): Make this an sbitmap.
1015         (record_set, init_alias_analysis): Update.
1017         * tree-ssa-coalesce.c (ssa_conflicts_dump): Fix dumping.
1019 2012-09-07  Tom de Vries  <tom@codesourcery.com>
1021         PR tree-optimization/53986
1022         * tree-vrp.c (extract_range_from_multiplicative_op_1): Allow
1023         LSHIFT_EXPR.
1024         (extract_range_from_binary_expr_1): Handle LSHIFT with constant
1025         range as shift amount.
1027 2012-09-07  Segher Boessenkool  <segher@kernel.crashing.org>
1029         * config/rs6000/aix43.h (RS6000_CALL_GLUE): Delete.
1030         * config/rs6000/aix51.h (RS6000_CALL_GLUE): Delete.
1031         * config/rs6000/aix52.h (RS6000_CALL_GLUE): Delete.
1032         * config/rs6000/aix53.h (RS6000_CALL_GLUE): Delete.
1033         * config/rs6000/aix61.h (RS6000_CALL_GLUE): Delete.
1034         * config/rs6000/freebsd64.h (RS6000_CALL_GLUE): Delete.
1035         * config/rs6000/linux64.h (RS6000_CALL_GLUE): Delete.
1036         * config/rs6000/rs6000.c (print_operand) ['.']: Delete.
1037         * config/rs6000/rs6000.h (RS6000_CALL_GLUE): Delete.
1038         * config/rs6000/rs6000.md (tls_gd_aix<TLSmode:tls_abi_suffix>):
1039         Replace %. with nop.
1040         (tls_gd_call_aix<TLSmode:tls_abi_suffix>): Ditto.
1041         (tls_ld_aix<TLSmode:tls_abi_suffix>): Ditto.
1042         (tls_ld_call_aix<TLSmode:tls_abi_suffix>): Ditto.
1043         (call_nonlocal_aix32): Ditto.
1044         (call_nonlocal_aix64): Ditto.
1045         (call_value_nonlocal_aix32): Ditto.
1046         (call_value_nonlocal_aix64): Ditto.
1048 2012-09-06  Andi Kleen  <ak@linux.intel.com>
1050         * doc/invoke.texi (-ffat-lto-objects): Clarify that gcc-ar
1051         et.al. should be used.
1053 2012-09-06  Andi Kleen  <ak@linux.intel.com>
1055         * gcc/lto-streamer.h (res_pair): Add.
1056         (lto_file_decl_data): Replace resolutions with respairs.
1057         Add max_index.
1058         * gcc/lto/lto.c (lto_resolution_read): Remove max_index.  Add rp.
1059         Initialize respairs.
1060         (lto_file_finalize): Set up resolutions vector lazily from respairs.
1062 2012-09-06  Lawrence Crowl  <crowl@google.com>
1064         * double-int.h (double_int::operator &=): New.
1065         (double_int::operator ^=): New.
1066         (double_int::operator |=): New.
1067         (double_int::mul_with_sign): Modify overflow parameter to bool*.
1068         (double_int::add_with_sign): New.
1069         (double_int::ule): New.
1070         (double_int::sle): New.
1071         (binary double_int::operator *): Remove parameter name.
1072         (binary double_int::operator +): Likewise.
1073         (binary double_int::operator -): Likewise.
1074         (binary double_int::operator &): Likewise.
1075         (double_int::operator |): Likewise.
1076         (double_int::operator ^): Likewise.
1077         (double_int::and_not): Likewise.
1078         (double_int::from_shwi): Tidy formatting.
1079         (double_int::from_uhwi): Likewise.
1080         (double_int::from_uhwi): Likewise.
1081         * double-int.c (double_int::mul_with_sign): Modify overflow parameter
1082         to bool*.
1083         (double_int::add_with_sign): New.
1084         (double_int::ule): New.
1085         (double_int::sle): New.
1086         * builtins.c: Modify to use the new double_int interface.
1087         * cgraph.c: Likewise.
1088         * combine.c: Likewise.
1089         * dwarf2out.c: Likewise.
1090         * emit-rtl.c: Likewise.
1091         * expmed.c: Likewise.
1092         * expr.c: Likewise.
1093         * fixed-value.c: Likewise.
1094         * fold-const.c: Likewise.
1095         * gimple-fold.c: Likewise.
1096         * gimple-ssa-strength-reduction.c: Likewise.
1097         * gimplify-rtx.c: Likewise.
1098         * ipa-prop.c: Likewise.
1099         * loop-iv.c: Likewise.
1100         * optabs.c: Likewise.
1101         * stor-layout.c: Likewise.
1102         * tree-affine.c: Likewise.
1103         * tree-cfg.c: Likewise.
1104         * tree-dfa.c: Likewise.
1105         * tree-flow-inline.h: Likewise.
1106         * tree-object-size.c: Likewise.
1107         * tree-predcom.c: Likewise.
1108         * tree-pretty-print.c: Likewise.
1109         * tree-sra.c: Likewise.
1110         * tree-ssa-address.c: Likewise.
1111         * tree-ssa-alias.c: Likewise.
1112         * tree-ssa-ccp.c: Likewise.
1113         * tree-ssa-forwprop.c: Likewise.
1114         * tree-ssa-loop-ivopts.c: Likewise.
1115         * tree-ssa-loop-niter.c: Likewise.
1116         * tree-ssa-phiopt.c: Likewise.
1117         * tree-ssa-pre.c: Likewise.
1118         * tree-ssa-sccvn: Likewise.
1119         * tree-ssa-structalias.c: Likewise.
1120         * tree-ssa.c: Likewise.
1121         * tree-switch-conversion.c: Likewise.
1122         * tree-vect-loop-manip.c: Likewise.
1123         * tree-vrp.c: Likewise.
1124         * tree.h: Likewise.
1125         * tree.c: Likewise.
1126         * varasm.c: Likewise.
1128 2012-09-06  Uros Bizjak  <ubizjak@gmail.com>
1130         * configure.ac (hle prefixes): Remove .code64 directive.
1131         * configure: Regenerated.
1133 2012-09-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1135         * config/arm/arm.c: Use CONST_INT_P, CONST_DOUBLE_P, REG_P, MEM_P,
1136         LABEL_P, JUMP_P, CALL_P, NOTE_P, BARRIER_P consistently.
1137         * config/arm/arm.h: Use REG_P, MEM_P consistently.
1138         * config/arm/arm.md: Use CONST_INT_P, REG_P, MEM_P, CONST_DOUBLE_P
1139         consistently.
1140         * config/arm/neon.md: Use REG_P consistently.
1141         * config/arm/predicates.md: Use CONST_INT_P, REG_P, MEM_P consistently.
1142         * config/arm/thumb2.md: Use CONST_INT_P, REG_P consistently.
1143         * config/arm/vec-common.md: Use REG_P consistently.
1145 2012-09-06  Richard Guenther  <rguenther@suse.de>
1147         PR tree-optimization/54498
1148         * tree-ssa-alias.h (get_continuation_for_phi): Add flag to
1149         abort when reaching an already visited region.
1150         * tree-ssa-alias.c (maybe_skip_until): Likewise.  And do it.
1151         (get_continuation_for_phi_1): Likewise.
1152         (walk_non_aliased_vuses): When we translated the reference,
1153         abort when we re-visit a region.
1154         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
1156 2012-09-06  David Edelsohn  <dje.gcc@gmail.com>
1158         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS
1159         section.
1160         * config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new
1161         arguments to TARGET_ADDRESS_COST call.
1163 2012-09-06  Richard Guenther  <rguenther@suse.de>
1165         * tree.h (MOVE_NONTEMPORAL): Remove.
1166         * tree-pretty-print.c (dump_generic_node): Remove
1167         MOVE_NONTEMPORAL handling.
1168         * expr.c (expand_expr_real_1): Likewise.
1170 2012-09-06  Richard Guenther  <rguenther@suse.de>
1172         * passes.c (execute_function_todo): Call compute_may_aliases
1173         only if flag_tree_pta is set.
1175 2012-09-06  Andrew Pinski  <apinski@cavium.com>
1177         PR tree-opt/54494
1178         * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
1180 2012-09-06  Jakub Jelinek  <jakub@redhat.com>
1182         PR rtl-optimization/54455
1183         * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru
1184         bb ends up with asm goto referencing bb's label.
1186 2012-09-06  Chen Liqin  <liqin.gcc@gmail.com>
1188         * config/score/score.c: Remove TARGET_LEGITIMIZE_ADDRESS define and
1189         score_legitimize_address function, use compiler default code instead.
1191 2012-09-05  Jan Hubicka  <jh@suse.cz>
1193         * ipa-inline.c (want_inline_small_function_p): Use
1194         INLINE_HINT_loop_iterations hint.
1196 2012-09-05  Andrew Pinski  <apinski@cavium.com>
1198         * optabs.c (emit_conditional_add): Correct comment about the arguments.
1199         Remove code which might swap op2 and op3 since they cannot be swapped.
1200         * doc/md.texi (add@var{mode}cc): Fix document about how the arguments
1201         are used.
1203 2012-09-05  Oleg Endo  <olegendo@gcc.gnu.org>
1205         * hooks.c (hook_int_rtx_mode_as_bool_0): New function.
1206         * hooks.h (hook_int_rtx_mode_as_bool_0): Declare it.
1207         * output.h (default_address_cost): Add machine_mode and address space
1208         arguments.
1209         * target.def (address_cost): Likewise.
1210         * rtlanal.c (address_cost): Pass mode and address space to target hook.
1211         (default_address_cost): Add unnamed machine_mode and address space
1212         arguments.
1213         * doc/tm.texi: Regenerate.
1214         * config/alpha/alpha.c (TARGET_ADDRESS_COST): Use
1215         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
1216         * config/arm/arm.c (arm_address_cost): Add machine_mode and address
1217         space arguments.
1218         * config/avr/avr.c (avr_address_cost): Likewise.
1219         * config/bfin/bfin.c (bfin_address_cost): Likewise.
1220         * config/cr16/cr16.c (cr16_address_cost): Likewise.
1221         * config/cris/cris.c (cris_address_cost): Likewise.
1222         * config/epiphany/epiphany.c (epiphany_address_cost): Likewise.
1223         * config/i386/i386.c (ix86_address_cost): Likewise.
1224         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Use
1225         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
1226         * config/iq2000/iq2000.c (iq2000_address_cost): Add machine_mode and
1227         address space arguments.  Pass them on in recursive invocation.
1228         * config/lm32/lm32.c (TARGET_ADDRESS_COST): Use
1229         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
1230         * config/m32c/m32c.c (m32c_address_cost): Add machine_mode and address
1231         space arguments.
1232         * config/m32r/m32r.c (TARGET_ADDRESS_COST): Use
1233         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
1234         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Likewise.
1235         * config/mep/mep.c (mep_address_cost): Add machine_mode and address
1236         space arguments.
1237         * config/microblaze/microblaze.c (microblaze_address_cost): Likewise.
1238         * config/mips/mips.c (mips_address_cost): Likewise.
1239         * config/mmix/mmix.c (TARGET_ADDRESS_COST): Use
1240         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
1241         * config/mn10300/mn10300.c (mn10300_address_cost): Add machine_mode and
1242         address space arguments.
1243         (mn10300_rtx_costs): Pass GET_MODE (x) and MEM_ADDR_SPACE (x) to
1244         mn10300_address_cost.
1245         * config/pa/pa.c (hppa_address_cost): Add machine_mode and address
1246         space arguments.
1247         * config/rs6000/rs6000.c (rs6000_debug_address_cost): Likewise.
1248         (TARGET_ADDRESS_COST): Use hook_int_rtx_mode_as_bool_0 instead of
1249         hook_int_rtx_bool_0.
1250         * config/rx/rx.c (rx_address_cost): Add machine_mode and address
1251         space arguments.
1252         * config/s390/s390.c (s390_address_cost): Likewise.
1253         * config/score/score-protos.h (score_address_cost): Likewise.
1254         * config/score/score.c (score_address_cost): Likewise.
1255         * config/sh/sh.c (sh_address_cost): Likewise.
1256         * config/sparc/sparc.c (TARGET_ADDRESS_COST): Use
1257         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
1258         * config/spu/spu.c (TARGET_ADDRESS_COST): Likewise.
1259         * config/stormy16/stormy16.c (xstormy16_address_cost): Add machine_mode
1260         and address space arguments.
1261         * config/v850/v850.c (TARGET_ADDRESS_COST): Use
1262         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
1263         * config/vax/vax.c (vax_address_cost): Add machine_mode and address
1264         space arguments.
1265         * config/xtensa/xtensa (TARGET_ADDRESS_COST): Use
1266         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
1268 2012-09-05   Diego Novillo  <dnovillo@google.com>
1270         PR bootstrap/54484
1271         * vec.h (vec_t::lower_bound): Fix spelling of LESSTHAN argument.
1273 2012-09-05  Jakub Jelinek  <jakub@redhat.com>
1275         PR middle-end/54486
1276         * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
1277         build_int_cst with size_type_node instead of size_int.
1279 2012-09-05  Uros Bizjak  <ubizjak@gmail.com>
1281         * config/i386/sse.md (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>):
1282         Use register_operand instead of reg_not_xmm0_operand{,_maybe_avx}.
1283         Use nonimmediate_operand instead of
1284         nonimm_not_xmm0_operand{,_maybe_avx}.
1285         (<sse4_1_avx2>_pblendvb): Ditto.
1286         (sse4_2_pcmpestr): Ditto.
1287         (*sse4_2_pcmpestr_unaligned): Ditto.
1288         (sse4_2_pcmpistr): Ditto.
1289         (*sse4_2_pcmpistr_unaligned): Ditto.
1290         * config/i386/predicates.md (reg_not_xmm0_operand): Remove predicate.
1291         (nonimm_not_xmm0_operand): Ditto.
1292         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1293         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1294         * config/i386/i386.md (rdpmc): Do not force operand 1 into ecx.
1296 2012-09-05  Eric Botcazou  <ebotcazou@adacore.com>
1298         * bb-reorder.c: Clarify a few points in the head comment and fix
1299         long lines in other comments.
1300         (find_traces): Fix long line.
1301         (find_traces_1_round): Likewise.
1302         (better_edge_p): Likewise.
1303         (connect_traces): Likewise.
1304         (duplicate_computed_gotos): Likewise.
1305         (find_rarely_executed_basic_blocks_and_cr): Remove trailing spaces.
1306         (fix_up_fall_thru_edges): Fix formatting.
1308 2012-09-05  Richard Guenther  <rguenther@suse.de>
1310         PR tree-optimization/46590
1311         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Do not
1312         update SSA form here.
1313         (canonicalize_induction_variables): Assert we do not need to
1314         update SSA form.
1315         (tree_unroll_loops_completely): Update SSA form here.
1316         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
1317         Do not verify loop-closed SSA form if SSA form is not up-to-date.
1319 2012-09-05  Georg-Johann Lay  <avr@gjlay.de>
1321         PR target/54461
1322         * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
1323         not configured --with-avrlibc=no.
1324         (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if not configured
1325         --with-avrlibc=no.
1326         * config/avr/avrlibc.h: New file.
1327         * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
1328         not configured --with-avrlibc=no.
1329         * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__
1331 2012-09-04  Teresa Johnson  <tejohnson@google.com>
1333         * gcov-io.c (gcov_write_summary): Write out non-zero histogram
1334         entries to function summary along with an occupancy bit vector.
1335         (gcov_read_summary): Read in the histogram entries.
1336         (gcov_histo_index): New function.
1337         (void gcov_histogram_merge): Ditto.
1338         * gcov-io.h (gcov_type_unsigned): New type.
1339         (struct gcov_bucket_type): Ditto.
1340         (struct gcov_ctr_summary): Include histogram.
1341         (GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries.
1342         (GCOV_HISTOGRAM_SIZE): New macro.
1343         (GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto.
1344         * profile.c (NUM_GCOV_WORKING_SETS): Ditto.
1345         (gcov_working_sets): New global variable.
1346         (compute_working_sets): New function.
1347         (find_working_set): Ditto.
1348         (get_exec_counts): Invoke compute_working_sets.
1349         * coverage.c (read_counts_file): Merge histograms, and
1350         fix bug with accessing summary info for non-summable counters.
1351         * basic-block.h (gcov_type_unsigned): New type.
1352         (struct gcov_working_set_info): Ditto.
1353         (find_working_set): Declare.
1354         * gcov-dump.c (tag_summary): Dump out histogram.
1356 2012-09-04  Diego Novillo  <dnovillo@google.com>
1358         PR bootstrap/54484
1359         * vec.h (vec_t::embedded_init): Move default argument value
1360         to function declaration.
1362 2012-09-04  Eric Botcazou  <ebotcazou@adacore.com>
1364         * bb-reorder.c (gate_handle_reorder_blocks): Move around.
1365         (rest_of_handle_reorder_blocks): Likewise.
1366         (pass_reorder_blocks): Likewise.
1367         (gate_handle_partition_blocks): Likewise.
1369 2012-09-04  Eric Botcazou  <ebotcazou@adacore.com>
1371         PR rtl-optimization/54456
1372         * sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0.
1374 2012-09-04  Diego Novillo  <dnovillo@google.com>
1376         PR bootstrap/54478
1377         * vec.h (vec_t::alloc): Remove explicit type specification
1378         in call to reserve.
1379         (vec_t::copy): Likewise.
1380         (vec_t::reserve): Likewise.
1381         (vec_t::reserve_exact): Likewise.
1382         (vec_t::safe_splice): Likewise.
1383         (vec_t::safe_push): Likewise.
1384         (vec_t::safe_grow): Likewise.
1385         (vec_t::safe_grow_cleared): Likewise.
1386         (vec_t::safe_insert): Likewise.
1388 2012-09-04  Richard Henderson  <rth@redhat.com>
1390         * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
1392 2012-09-04  Richard Guenther  <rguenther@suse.de>
1394         * tree-ssa-pre.c (value_expressions): Make it a vector of
1395         bitmaps containing expression IDs.
1396         (add_to_value): Adjust.
1397         (sorted_array_from_bitmap_set): Likewise.
1398         (bitmap_set_replace_value): Likewise.
1399         (print_value_expressions): Likewise.
1400         (get_constant_for_value_id): Likewise.
1401         (get_representative_for): Likewise.
1402         (phi_translate_1): Likewise.
1403         (bitmap_find_leader): Likewise.
1404         (find_or_generate_expression): Likewise.
1405         (do_regular_insertion): Likewise.
1406         (init_pre): Likewise.
1407         (fini_pre): Likewise.
1409 2012-09-04   Diego Novillo  <dnovillo@google.com>
1411         PR bootstrap/54479
1412         * vec.h (vec_t::copy): Add cast in call to reserve_exact.
1414 2012-09-04  Richard Guenther  <rguenther@suse.de>
1416         * tree-ssa-pre.c (add_to_exp_gen): Adjust.
1417         (make_values_for_phi): Do not add to PHI_GEN for FRE.
1418         (compute_avail): Stop processing after adding all defs to
1419         AVAIL_OUT for FRE.
1420         (init_pre): Do not allocate not needed bitmap sets for FRE.
1422 2012-09-04   Diego Novillo  <dnovillo@google.com>
1424         Rewrite VEC_* functions as member functions of vec_t.
1426         * vec.h: Update documentation.
1427         (ALONE_VEC_CHECK_INFO): Define.
1428         (ALONE_VEC_CHECK_DECL): Define.
1429         (ALONE_VEC_CHECK_PASS): Define.
1430         (struct vec_prefix): Rename field NUM to NUM_.
1431         Rename field ALLOC to ALLOC_.
1432         Update all users.
1433         (struct vec_t): Rename field PREFIX to PREFIX_.
1434         Rename field VEC to VEC_.
1435         Update all users.
1436         (vec_t::length): Rename from VEC_length_1.  Update all users.
1437         (vec_t::empty): Rename from VEC_empty_1.  Update all users.
1438         (vec_t::address): Rename from VEC_address_1.  Update all users.
1439         (vec_address): New.
1440         (vec_t::last): Rename from VEC_last_1.  Update all users.
1441         (vec_t::operator[]): Rename from VEC_index_1.  Update all users.
1442         (vec_t::iterate): Rename from VEC_iterate_1.  Update all users.
1443         (vec_t::embedded_size): Rename from VEC_embedded_size_1.
1444         Update all users.
1445         (vec_t::embedded_init): Rename from VEC_embedded_init_1.
1446         Update all users.
1447         (vec_t::alloc): Rename from VEC_alloc_1.  Update all users.
1448         (vec_t::free): Rename from VEC_free_1.  Update all users.
1449         (vec_t::copy): Rename from VEC_copy_1.  Update all users.
1450         (vec_t::space): Rename from VEC_space_1.  Update all users.
1451         (vec_t::reserve): Rename from VEC_reserve_1.  Update all users.
1452         (vec_t::reserve_exact): Rename from VEC_reserve_exact_1.
1453         Update all users.
1454         (vec_t::splice): Rename from VEC_splice_1.  Update all users.
1455         (vec_t::safe_splice): Rename from VEC_safe_splice_1.  Update all users.
1456         (vec_t::quick_push): Rename from VEC_quick_push_1.  Update all users.
1457         (vec_t::safe_push): Rename from VEC_safe_push_1.  Update all users.
1458         (vec_t::pop): Rename from VEC_pop_1.  Update all users.
1459         (vec_t::truncate): Rename from VEC_truncate_1.  Update all users.
1460         (vec_t::safe_grow): Rename from VEC_safe_grow_1.  Update all users.
1461         (vec_t::safe_grow_cleared): Rename from VEC_safe_grow_cleared_1.
1462         Update all users.
1463         (vec_t::replace): Rename from VEC_replace_1.  Update all users.
1464         (vec_t::quick_insert): Rename from VEC_quick_insert_1.
1465         Update all users.
1466         (vec_t::safe_insert): Rename from VEC_safe_insert_1.  Update all users.
1467         (vec_t::ordered_remove): Rename from VEC_ordered_remove_1.
1468         Update all users.
1469         (vec_t::unordered_remove): Rename from VEC_unordered_remove_1.
1470         Update all users.
1471         (vec_t::block_remove): Rename from VEC_block_remove_1. Update all users.
1472         (vec_t::lower_bound): Rename from VEC_lower_bound_1. Update all users.
1474 2012-09-04  Steven Bosscher  <steven@gcc.gnu.org>
1476         * gimple.h (gimple_build_switch): Remove.
1477         (gimple_build_switch_vec): Promote to the new gimple_build_switch.
1478         (gimple_switch_default_label): Assert the default case label is
1479         really a default case label.
1480         (gimple_switch_set_default_label): Likewise.
1481         * gimple.c (gimple_build_switch_nlabels): Make sure a default label
1482         is passed in, and simplify accordingly.
1483         (gimple_build_switch): Removed.
1484         (gimple_build_switch_vec): Rename to gimple_build_switch.
1485         * gimplify.c (gimplify_switch_expr): Update gimple_build_switch use.
1486         * gimple-pretty-print.c (dump_gimple_switch): Do not accept a NULL
1487         case label.
1488         * stmt.c (expand_case): Simplify using the fact that every GIMPLE
1489         switch must have a default case.
1490         * tree-cfg.c (group_case_labels_stmt): Likewise.
1491         (verify_gimple_switch): Use gimple_switch_label in verifier to get
1492         the label at index 0, and verify that it is a valid default case.
1493         * except.c (sjlj_emit_dispatch_table): Rewrite construction of the
1494         switch for dispatching.
1495         * tree-eh.c (lower_try_finally_switch): Update gimple_build_switch use.
1496         (lower_eh_dispatch): Likewise.
1497         * tree-vrp.c (execute_vrp): Use gimple_switch_label to get the case
1498         label at index 0 before turning it into a default case label.
1499         * omp-low.c (expand_omp_sections): Update gimple_build_switch use.
1500         * tree-switch-conversion.c (emit_case_bit_tests): Get the default case
1501         label using gimple_switch_default_label.
1502         (collect_switch_conv_info): Likewise.
1503         (process_switch): Likewise.
1504         * doc/gimple.texi: Update documentation of gimple_build_switch.
1506 2012-09-04  Georg-Johann Lay  <avr@gjlay.de>
1508         PR target/54476
1509         * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
1510         SImode.
1512 2012-09-04  Bin Cheng  <bin.cheng@arm.com>
1514         PR target/45070
1515         * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value
1516         of size less than 4 bytes by using macro ARM_NUM_INTS.
1517         (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS.
1519 2012-09-04  Richard Guenther  <rguenther@suse.de>
1521         PR tree-optimization/54458
1522         * tree-ssa-threadupdate.c (thread_through_loop_header): If we
1523         turn the loop into one with multiple latches mark it so.
1525 2012-09-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1527         PR target/54220
1528         * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New
1529         define to...
1530         (avr_allocate_stack_slots_for_args): ...this new static function.
1532 2012-09-04  Christophe Lyon  <christophe.lyon@linaro.org>
1534         * config/arm/arm.c (arm_expand_builtin): Replace gen_rtx_CONST_INT
1535         by GEN_INT.
1536         (arm_emit_coreregs_64bit_shift): Likewise.
1538 2012-09-04  Christophe Lyon  <christophe.lyon@linaro.org>
1540         * config/arm/arm.c (arm_evpc_neon_vext): New function.
1541         (arm_expand_vec_perm_const_1): Add call to arm_evpc_neon_vext.
1543 2012-09-04  Oleg Endo  <olegendo@gcc.gnu.org>
1545         PR target/51244
1546         * config/sh/sh.c (prepare_cbranch_operands): Pull out comparison
1547         canonicalization code into...
1548         * (sh_canonicalize_comparison): This new function.
1549         * config/sh/sh-protos.h: Declare it.
1550         * config/sh/sh.h: Use it in new macro CANONICALIZE_COMPARISON.
1551         * config/sh/sh.md (cbranchsi4): Remove TARGET_CBRANCHDI4 check and
1552         always invoke expand_cbranchsi4.
1554 2012-09-03  Andi Kleen  <ak@linux.intel.com>
1556         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize
1557         addr_offset always.
1559 2012-09-03  Andrew Pinski  <apinski@cavium.com>
1561         PR tree-opt/53395
1562         * tree-if-conv.c (constant_or_ssa_name): New function.
1563         (fold_build_cond_expr): New function.
1564         (predicate_scalar_phi): Use fold_build_cond_expr instead of build3.
1565         (predicate_mem_writes): Likewise.
1567 2012-09-03  Marc Glisse  <marc.glisse@inria.fr>
1569         * fold-const.c (fold_ternary_loc): Constant-propagate after
1570         removing dead operands.
1572 2012-09-03  Michael Matz  <matz@suse.de>
1574         PR tree-optimization/46590
1575         * tree-cfg.c (gimple_duplicate_sese_region): Don't update
1576         SSA web here ...
1577         * tree-ssa-loop-ch.c (copy_loop_headers): ... but here.
1579 2012-09-03  Sandra Loosemore  <sandra@codesourcery.com>
1581         * doc/invoke.texi: Fix numerous typos and punctuation/grammatical
1582         errors throughout the file.  Re-word some awkward sentences and
1583         paragraphs.
1585 2012-09-03  Richard Guenther  <rguenther@suse.de>
1587         PR tree-optimization/54362
1588         * tree-ssa-structalias.c (find_func_aliases): Handle COND_EXPR.
1590 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1592         * config/s390/s390.c (s390_loadrelative_operand_p): New function.
1593         (s390_check_qrst_address, print_operand_address): Use
1594         s390_loadrelative_operand_p instead of s390_symref_operand_p.
1595         (s390_check_symref_alignment): Accept pointer size alignment for
1596         GOT slots.
1597         (legitimize_pic_address): Use load relative on z10 or later.
1599 2012-09-03  Jakub Jelinek  <jakub@redhat.com>
1601         PR debug/53923
1602         * valtrack.c (dead_debug_insert_temp): Drop non-reg uses
1603         from the chain.
1605 2012-09-03  Joseph Myers  <joseph@codesourcery.com>
1607         * common.opt (--no-sysroot-suffix): New driver option.
1608         * doc/invoke.texi (--no-sysroot-suffix): Document.
1609         * gcc.c (driver_handle_option): Handle --no-sysroot-suffix as not
1610         needing spec processing.
1611         (main): Do not process sysroot suffixes if no_sysroot_suffix.
1613 2012-09-02  Oleg Endo  <olegendo@gcc.gnu.org>
1615         PR target/33135
1616         * common/config/sh/sh-common.c: Update copyright years.
1617         (sh_option_init_struct): Delete.
1618         (TARGET_OPTION_INIT_STRUCT): Likewise.
1620 2012-09-02  Oleg Endo  <olegendo@gcc.gnu.org>
1622         PR target/54418
1623         * config/sh/sh.md (cmpgeusi_t): Remove N alternative.
1624         Check operands[1] in split condition instead of operands[0].
1625         Add comments.
1627 2012-09-02  Mark Kettenis  <kettenis@openbsd.org>
1629         * config.gcc (x86_64-*-openbsd*): New target.
1630         * config.host (*-*-openbsd*): New target.
1631         * config/openbsd.h (TARGET_C99_FUNCTIONS): Define.
1632         * config/i386/openbsdelf.h: Remove some superfluous defines and
1633         group things together in a more logical fashion.
1634         (DBX_REGISTER_NUMBER): Provide a
1635         definition that works on both 32-bit and 64-bit targets.
1636         (WCHAR_TYPE_SIZE): Hardcode as 32.
1637         (NO_DOLLAR_IN_LABEL): Remove undef.
1638         (TARGET_DEFAULT): Remove.
1639         (SET_ASM_OP): Remove.
1640         (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning.
1641         (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h
1642         (DWARF2_UNWIND_INFO): Remove define.
1643         (HAVE_ENABLE_EXECUTE_STACK): Define.
1644         * config/host-openbsd.c: New file.
1645         * config/t-openbsd (USER_H): Add EXTRA_HEADERS.
1646         * config/x-openbsd: New file.
1648 2012-09-02  Oleg Endo  <olegendo@gcc.gnu.org>
1650         * config/sh/sh.md (*extend<mode>si2_compact_mem_disp): Pass iterated
1651         mode to sh_legitimate_index_p instead of QImode.
1653 2012-09-02  Eric Botcazou  <ebotcazou@adacore.com>
1655         PR rtl-optimization/54369
1656         * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
1657         calling dbr_schedule.
1658         * config/sparc/sparc.c (sparc_reorg): Likewise.
1660 2012-09-01  Jakub Jelinek  <jakub@redhat.com>
1662         PR target/54436
1663         * config/i386/i386.md (*mov<mode>_insv_1_rex64, *movsi_insv_1): If
1664         operands[1] is CONST_INT_P, convert it to QImode before printing.
1666 2012-09-01  Andrew Pinski  <apinski@cavium.com>
1668         * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
1669         A truncate of a memory is just loading the low part of the memory.
1671 2012-09-01  Uros Bizjak  <ubizjak@gmail.com>
1673         PR target/46829
1674         PR target/46843
1675         * config/i386/i386.c (ix86_legitimate_combined_insn): New function.
1676         (TARGET_LEGITIMATE_COMBINED_INSN): New macro.
1678 2012-09-01  Uros Bizjak  <ubizjak@gmail.com>
1680         * target.def (legitimate_combined_insn): New target hook.
1681         * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook.
1682         * doc/tm.texi: Regenerated.
1683         * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn
1684         to allow targets to reject combined insn.
1685         * hooks.h (hook_bool_rtx_true): New.
1686         * hooks.c (hook_bool_rtx_true): Ditto.
1688 2012-08-31  Martin Jambor  <mjambor@suse.cz>
1690         * ipa-inline-analysis.c (estimate_function_body_sizes): Allocate
1691         nonconstant_names after calculate_dominance_info and
1692         loop_optimizer_init.
1694 2012-08-31  Greta Yorsh  <Greta.Yorsh@arm.com>
1696         * config/arm/arm.c (arm_expand_epilogue): Remove unused variable
1697         floats_from_frame.
1699 2012-08-31  Martin Jambor  <mjambor@suse.cz>
1701         PR middle-end/54409
1702         * ipa-inline-analysis.c (remap_predicate): Fix the offset_map
1703         checking condition.
1705 2012-08-31  Martin Jambor  <mjambor@suse.cz>
1707         * ipa-inline-analysis.c (phi_result_unknown_predicate): New function.
1708         (predicate_for_phi_result): Likewise.
1709         (estimate_function_body_sizes): Use the above two functions.
1711 2012-08-31  Martin Jambor  <mjambor@suse.cz>
1713         PR middle-end/54394
1714         * ipa-inline-analysis.c (estimate_function_body_sizes): Compute
1715         dominance info and loops whenever optimizing.
1717 2012-08-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1718             Richard Earnshaw  <richard.earnshaw@arm.com>
1720         PR target/54252
1721         * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by
1722         element size. Use elem_type from the formal parameter. New parameter
1723         fcode.
1724         (neon_expand_args): Adjust call to neon_dereference_pointer.
1726 2012-08-29  Steven Bosscher  <steven@gcc.gnu.org>
1728         * cfg.c (dump_bb_info): Print a newline if there were no edges to dump.
1730 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
1732         Revert:
1733         * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
1734         mapping style, add ../lib/mips16.
1735         (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
1736         (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
1738 2012-08-29  Richard Sandiford  <rdsandiford@googlemail.com>
1740         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci
1741         if TARGET_SYNCI.
1743 2012-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
1745         * config/sh/sh.opt (menable-tas): Rename to mtas.
1746         * doc/invoke.texi (SH options): Likewise.
1747         * config/sh/sync.md: Update comments.
1749 2012-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
1751         * config/sh/iterators.md: New file.
1752         * config/sh/sync.md (I124, I12, i124suffix): Delete.  Replace usage
1753         with new iterators QIHISI, QIHI, bw, bwl respectively throughout
1754         the file.
1755         * config/sh/sh.md: Include new file iterators.md.
1756         (zero_extendhisi2, zero_extendqisi2): Fold into zero_extend<mode>si2.
1757         (*zero_extendhisi2_compact, *zero_extendqisi2_compact): Fold into
1758         *zero_extend<mode>si2_compact.
1759         (*zero_extendqisi2_disp_mem, zero_extendhisi2_disp_mem): Fold into
1760         *zero_extend<mode>si2_disp_mem.
1761         (extendhisi2, extendqisi2): Fold into extend<mode>si2.
1762         (*extendqisi2_compact_reg, *extendhisi2_compact_reg): Fold into
1763         *extend<mode>si2_compact_reg.
1764         (*extendqisi2_compact_mem_disp, *extendhisi2_compact_mem_disp): Fold
1765         into *extend<mode>si2_compact_mem_disp.
1766         (*extendqisi2_compact_snd, *extendhisi2_compact_snd): Fold into
1767         *extend<mode>si2_compact_snd.
1768         (*movsi_index_disp, *movhi_index_disp): Fold with iterators and rename
1769         to *movsi_index_disp_load, *movhi_index_disp_load,
1770         *mov<mode>_index_disp_store.
1771         (*movqi_reg_reg, *movhi_reg_reg): Fold into *mov<mode>_reg_reg.
1772         (*movqi_store_mem_disp04, *movhi_store_mem_disp05): Fold into
1773         *mov<mode>_store_mem_disp04.
1774         (*movqi_store_mem_disp12, *movhi_store_mem_disp13): Fold into
1775         *mov<mode>_store_mem_disp12.
1776         (*movqi_load_mem_disp, *movhi_load_mem_disp): Fold into
1777         *mov<mode>_load_mem_disp04 and *mov<mode>_load_mem_disp12.
1779 2012-08-29  Martin Jambor  <mjambor@suse.cz>
1781         * ipa-inline.h (estimate_edge_hints): Call do_estimate_edge_hints, not
1782         do_estimate_edge_time.
1784 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
1786         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Add nomips16 asm
1787         directives, remove #ifndef __mips16 guards.
1788         * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
1789         mapping style, add ../lib/mips16.
1790         (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
1791         (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
1793 2012-08-28  Walter Lee  <walt@tilera.com>
1794         * confg/tilegx/tilegx.md: Fix code style.
1795         (*zero_extendsidi_truncdisi): Fix typo.
1796         * config/tilegx/tilegx.c: Fix code style.
1797         (tilegx_function_profiler): Fix typo.
1799 2012-08-28  Walter Lee  <walt@tilera.com>
1801         * doc/invoke.texi: Document -mcmodel=small, -mcmodel=large.
1802         * config/tilegx/tilegx.h: Include config/tilegx/tilegx-opts.h.
1803         (CRT_CALL_STATIC_FUNCTION): Define.
1804         * config/tilegx/predicates.md (const_last_symbolic_operand):
1805         Handle UNSPEC_HW2_LAST_PCREL, UNSPEC_HW1_LAST_PLT_PCREL, and
1806         UNSPEC_HW2_LAST_PLT_PCREL.
1807         (const_symbolic_operand): Handle UNSPEC_HW1_PCREL,
1808         UNSPEC_HW0_PLT_PCREL, and UNSPEC_HW1_PLT_PCREL.
1809         * config/tilegx/tilegx.md (UNSPEC_MOV_LARGE_PCREL_STEP4): Define,
1810         and renumber the constants that follow.
1811         (UNSPEC_HW1_PCREL): Ditto.
1812         (UNSPEC_HW2_LAST_PCREL): Ditto.
1813         (UNSPEC_HW0_PLT_PCREL): Define.
1814         (UNSPEC_HW1_PLT_PCREL): Define.
1815         (UNSPEC_HW1_LAST_PLT_PCREL): Define.
1816         (UNSPEC_HW2_LAST_PLT_PCREL): Define.
1817         (mov_large_pcrel_step1): Define.
1818         (mov_large_pcrel_step2): Define.
1819         (mov_large_pcrel_step3): Define.
1820         (mov_large_pcrel_step4): Define.
1821         (mov_plt_pcrel_step1): Define.
1822         (mov_plt_pcrel_step2): Define.
1823         (mov_plt_pcrel_step3): Define.
1824         (mov_plt_pcrel_step1_32bit): Define.
1825         (mov_plt_pcrel_step2_32bit): Define.
1826         (call): Handle tilegx_cmodel == CM_LARGE, CM_LARGE_PIC.
1827         (call_value): Ditto.
1828         * config/tilegx/tilegx.opt: Include config/tilegx/tilegx-opts.h.
1829         (mcmodel): New option.
1830         (enum cmodel): Define.
1831         (CM_SMALL): Define.
1832         (CM_LARGE): Define.
1833         * config/tilegx/tilegx-opts.h: New file.
1834         * config/tilegx/tilegx-protos.h (tilegx_compute_pcrel_address):
1835         Declare.
1836         (tilegx_compute_pcrel_plt_address): Declare.
1837         * config/tilegx/tilegx.c (tilegx_option_override): Handle
1838         tilegx_cmodel.
1839         (tilegx_function_ok_for_sibcall): Ditto.
1840         (compute_pcrel_address): Rename to tilegx_compute_pcrel_address,
1841         and don't declare static.  Handle tilegx_cmodel.
1842         (tilegx_compute_pcrel_plt_address): Define.
1843         (tilegx_legitimize_pic_address): Rename calls to
1844         compute_pcrel_address.
1845         (tilegx_delegitimize_address): Handle UNSPEC_HW1_PCREL,
1846         UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
1847         UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
1848         (load_pic_register): Rename call to compute_pcrel_address.
1849         (tilegx_print_operand): Handle UNSPEC_HW1_PCREL,
1850         UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
1851         UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
1853 2012-08-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1855         * sched-deps.c (add_dependence_list_and_free): Simplify.
1856         (flush_pending_list_and_free): Fix a hack that was fixing a hack.  Free
1857         lists when add_dependence_list_and_free doesn't free them.
1859 2012-08-27  Uros Bizjak  <ubizjak@gmail.com>
1861         PR target/46254
1862         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
1863         true for TARGET_64BIT or !flag_pic.
1864         * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
1865         (atomic_compare_and_swap_double<mode>): Change operand 2 predicate
1866         to cmpxchg8b_pic_memory_operand.  Use DWIH mode iterator.
1867         Add insn constraint.  Conditionally emit xchg asm insns.
1868         (atomic_compare_and_swap<mode>): Update calls.  Check only
1869         cmpxchg8b_pic_memory_operand in memory address fixup.
1870         (DCASMODE): Remove.
1871         (CASHMODE): Rename from DCASHMODE.
1872         (doublemodesuffix): Update modes.
1873         (regprefix): New mode attribute.
1875         (unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
1876         <UNSPECV_CMPXCHG>: New constant.
1877         (atomic_compare_and_swap<mode>_1): Rename from
1878         atomic_compare_and_swap_single<mode>.  Update calls and
1879         unspec_volatile constants.
1880         (atomic_compare_and_swap<mode>_doubleword): Rename from
1881         atomic_compare_and_swap_double<mode>.  Update calls and
1882         unspec_volatile constants.
1884 2012-08-27  Walter Lee  <walt@tilera.com>
1886         * doc/md.texi (TILE-Gx): Fix typo.
1888 2012-08-27  Walter Lee  <walt@tilera.com>
1890         * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
1891         * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.
1893 2012-08-27  Walter Lee  <walt@tilera.com>
1895         * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
1896         (insn_bfins): Delete.
1898 2012-08-27  Walter Lee  <walt@tilera.com>
1900         * config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
1901         atomic_exchange_bare<mode>,
1902         atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
1903         * config/tilegx/tilegx-generic.md (X1_remote): New
1904         insn_reservation.
1905         * config/tilegx/tilegx.md (type): Add X1_remove.
1906         (insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
1907         insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
1908         insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
1909         X1_remote.
1911 2012-08-27  Andreas Schwab  <schwab@linux-m68k.org>
1913         * gdbinit.in: Fix syntax of skip command.
1915 2012-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
1917         * config/mips/mips.c (mips_pic_call_symbol_from_set): Check for
1918         SYMBOL_REF SET_SRCs.
1920 2012-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
1922         * config/mips/mips.c (vr4130_align_insns): Don't simulate
1923         ghost instructions.  Assert that the required instructions exist.
1925 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
1927         * config/mips/mips.h (AVOID_CCMODE_COPIES): Update rationale for
1928         definition.
1929         * config/mips/mips.c (machine_function): Add next_fcc.
1930         (mips_output_move): Remove handling of fcc moves.
1931         (mips_allocate_fcc): New function.
1932         (mips_emit_compare, mips_expand_vcondv2sf): Use it.
1933         (mips_hard_regno_mode_ok_p): Restrict CCmode to ST registers.
1934         Remove special case for CCmode reloads.
1935         (mips_expand_builtin_compare_1): Use mips_allocate_fcc and treat
1936         the result a fixed operand.
1937         * config/mips/mips.md (move_type): Remove lui_movf.
1938         (type, length): Remove references to it.
1939         (movcc, reload_incc, reload_outcc): Delete.
1941 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
1943         * config/mips/mips.c (mips_has_long_branch_p): New function,
1944         split out from...
1945         (mips_expand_ghost_gp_insns): ...here.  Look inside sequences.
1947 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
1949         * config/mips/mips.c (r10k_safe_mem_expr_p): Use get_inner_reference.
1951 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
1953         * config/mips/mips.c (mips_rtx_costs): Add costs for CINS.
1955 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
1957         * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS
1958         to the size cost of multiplication.
1960 2012-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
1962         * doc/install.texi (Specific): Clarify what needs to be added to
1963         this section.
1965 2012-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
1967         * doc/tm.texi.in (Misc): Move descriptions of NO_DOLLAR_IN_LABEL
1968         and NO_DOT_IN_LABEL from here...
1969         (Label Output): ...to here.
1970         * doc/tm.texi: Regenerate.
1972 2012-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
1974         * doc/invoke.texi (C++ Dialect Options): Add missing space.
1976 2012-08-25  Eric Botcazou  <ebotcazou@adacore.com>
1978         PR rtl-optimization/54088
1979         * jump.c (delete_related_insns): Robustify latest change.
1981 2012-08-25  Ricardo Catalinas Jiménez  <jimenezrick@gmail.com>
1983         * doc/extend.texi (__atomic Builtins): Remove space before comma.
1985 2012-08-25  Richard Sandiford  <rdsandiford@googlemail.com>
1986             Andrew Pinski  <apinski@cavium.com>
1988         * config/mips/mips.h (CASE_VECTOR_MODE): For not
1989         TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
1990         (CASE_VECTOR_SHORTEN_MODE): Likewise.
1992 2012-08-25  Uros Bizjak  <ubizjak@gmail.com>
1994         * config/i386/i386.h (FP_REG_P): Remove macro.
1995         (FP_REGNO_P): Ditto.
1996         (HARD_REGNO_NREGS): Use STACK_REGNO_P instead of FP_REGNO_P.
1997         (HARD_REGNO_NREGS_HAS_PADDING): Ditto.
1998         (ANY_FP_REGNO_P): Ditto.
1999         (HARD_REGNO_RENAME_OK): Use STACK_REGNO_P.
2000         * config/i386/i386.c (output_387_ffreep): Use STACK_REGNO_P
2001         instead of FP_REGNO_P.
2002         (ix86_hard_regno_mode_ok): Ditto.
2003         * config/i386/predicates.md (fp_register_operand): Ditto.
2004         (register_and_not_fp_reg_operand): Ditto.
2005         * config/i386/sync.md (atomic_loaddi_fpu): Use STACK_REG_P instead
2006         of FP_REG_P.
2008         * reg-stack.c (get_true_reg): Use STACK_REG_P instead of FP_REG_P.
2010 2012-08-24  Jason Merrill  <jason@redhat.com>
2012         * print-tree.c (print_node): Don't check TREE_LANG_FLAG_*
2013         on TREE_VEC or SSA_NAME.
2015 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
2017         PR c/54363
2018         * gimplify.c (optimize_compound_literals_in_ctor): Only recurse
2019         if init is a CONSTRUCTOR.
2021 2012-08-24  Steven Bosscher  <steven@gcc.gnu.org>
2023         * tree-ssa-live.c (dump_var_map): Do not dump the partition
2024         map of virtual operands.
2026 2012-08-24  Yuri Rumyantsev  <ysrumyan@gmail.com>
2028         * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
2029         case for Atom processor.
2031 2012-08-24  Simon Baldwin  <simonb@google.com>
2033         * dwarf2out.c (gen_producer_string): Omit command line switch if
2034         CL_NO_DWARF_RECORD flag set.
2035         * opts.h (CL_NO_DWARF_RECORD): New.
2036         * opt-functions.awk (switch_flags): Add NoDWARFRecord.
2037         * doc/options.texi: Document NoDWARFRecord option flag.
2039 2012-08-24  H.J. Lu  <hongjiu.lu@intel.com>
2041         PR debug/52857
2042         * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and
2043         frame_pointer_rtx for based_loc_descr.
2045 2012-08-24  Martin Jambor  <mjambor@suse.cz>
2047         * predict.c (maybe_hot_frequency_p): New parameter fun.  Use its decl
2048         instead of current_function_decl, use profile_status_for_function and
2049         ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants.
2050         (maybe_hot_count_p): New parameter fun, use
2051         profile_status_for_function instead of its cfun_variant.
2052         (maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to
2053         all callees.
2054         (maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and
2055         maybe_hot_frequency_p.
2056         (probably_never_executed_bb_p): New parameter fun, use its decl
2057         instead of current_function_decl.
2058         (optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p.
2059         (rtl_profile_for_bb): Likewise.
2060         (compute_function_frequency): Pass cfun to maybe_hot_bb_p and
2061         probably_never_executed_bb_p.
2062         * tree-ssa-operands.c (ssa_operands_active): New operator fun.  Use it
2063         instead of cfun.
2064         (update_stmt_operands): Pass cfun as an argument of
2065         ssa_operands_active.
2066         (swap_tree_operands): Likewise.
2067         * gimple-iterator.c (update_modified_stmt): Likewise.
2068         (update_modified_stmts): Likewise.
2069         * tree-flow-inline.h (delink_stmt_imm_use): Likewise.
2070         * tree-ssa.c (delete_tree_ssa): Likewise.
2071         * bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p.
2072         (push_to_next_round_p): Likewise.
2073         (find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise.
2074         * cfg.c: Inlude tree.h.
2075         (check_bb_profile): Use profile_status_for_function,
2076         EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with
2077         DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun
2078         variants.
2079         (dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to
2080         maybe_hot_bb_p and probably_never_executed_bb_p.
2081         * gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that
2082         DECL_STRUCT_FUNCTION (current_function_decl) is not NULL.  Pass it to
2083         dump_histograms_for_stmt.
2084         (dump_gimple_mem_ops): Pass
2085         DECL_STRUCT_FUNCTION (current_function_decl)
2086         as an argument to dump_gimple_mem_ops.
2087         * tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl.
2088         Do not change cfun.  Change and restore current_function_decl.
2089         * Makefile.in (cfg.o): Include TREE_H in dependencies.
2091 2012-08-24  Georg-Johann Lay  <avr@gjlay.de>
2093         PR target/54222
2094         * avr-modes.def (HA, SA, DA, TA, UTA): Adjust modes.
2095         * avr/avr-fixed.md: New file.
2096         * avr/avr.md: Include it.
2097         (cc): Add: minus.
2098         (adjust_len): Add: minus, minus64, ufract, sfract.
2099         (ALL1, ALL2, ALL4, ORDERED234): New mode iterators.
2100         (MOVMODE): Add: QQ, UQQ, HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
2101         (MPUSH): Add: HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
2102         (pushqi1, xload8_A, xload_8, movqi_insn, *reload_inqi, addqi3,
2103         subqi3, ashlqi3, *ashlqi3, ashrqi3, lshrqi3, *lshrqi3, *cmpqi,
2104         cbranchqi4, *cpse.eq): Generalize to handle all 8-bit modes in ALL1.
2105         (*movhi, reload_inhi, addhi3, *addhi3, addhi3_clobber, subhi3,
2106         ashlhi3, *ashlhi3_const, ashrhi3, *ashirhi3_const, lshrhi3,
2107         *lshrhi3_const, *cmphi, cbranchhi4): Generalize to handle all
2108         16-bit modes in ALL2.
2109         (subhi3, casesi, strlenhi): Add clobber when expanding minus:HI.
2110         (*movsi, *reload_insi, addsi3, subsi3, ashlsi3, *ashlsi3_const,
2111         ashrsi3, *ashrhi3_const, *ashrsi3_const, lshrsi3, *lshrsi3_const,
2112         *reversed_tstsi, *cmpsi, cbranchsi4): Generalize to handle all
2113         32-bit modes in ALL4.
2114         * avr-dimode.md (ALL8): New mode iterator.
2115         (adddi3, adddi3_insn, adddi3_const_insn, subdi3, subdi3_insn,
2116         subdi3_const_insn, cbranchdi4, compare_di2,
2117         compare_const_di2, ashrdi3, lshrdi3, rotldi3, ashldi3_insn,
2118         ashrdi3_insn, lshrdi3_insn, rotldi3_insn): Generalize to handle
2119         all 64-bit modes in ALL8.
2120         * config/avr/avr-protos.h (avr_to_int_mode): New prototype.
2121         (avr_out_fract, avr_out_minus, avr_out_minus64): New prototypes.
2122         * config/avr/avr.c (TARGET_FIXED_POINT_SUPPORTED_P): Define to...
2123         (avr_fixed_point_supported_p): ...this new static function.
2124         (TARGET_BUILD_BUILTIN_VA_LIST): Define to...
2125         (avr_build_builtin_va_list): ...this new static function.
2126         (avr_adjust_type_node): New static function.
2127         (avr_scalar_mode_supported_p): Allow if ALL_FIXED_POINT_MODE_P.
2128         (avr_builtin_setjmp_frame_value): Use gen_subhi3 and return new
2129         pseudo instead of gen_rtx_MINUS.
2130         (avr_print_operand, avr_operand_rtx_cost): Handle: CONST_FIXED.
2131         (notice_update_cc): Handle: CC_MINUS.
2132         (output_movqi): Generalize to handle respective fixed-point modes.
2133         (output_movhi, output_movsisf, avr_2word_insn_p): Ditto.
2134         (avr_out_compare, avr_out_plus_1): Also handle fixed-point modes.
2135         (avr_assemble_integer): Ditto.
2136         (output_reload_in_const, output_reload_insisf): Ditto.
2137         (avr_compare_pattern): Skip all modes > 4 bytes.
2138         (avr_2word_insn_p): Skip movuqq_insn, movqq_insn.
2139         (avr_out_fract, avr_out_minus, avr_out_minus64): New functions.
2140         (avr_to_int_mode): New function.
2141         (adjust_insn_length): Handle: ADJUST_LEN_SFRACT,
2142         ADJUST_LEN_UFRACT, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64.
2143         * config/avr/predicates.md (const0_operand): Allow const_fixed.
2144         (const_operand, const_or_immediate_operand): New.
2145         (nonmemory_or_const_operand): New.
2146         * config/avr/constraints.md (Ynn, Y00, Y01, Y02, Ym1, Ym2, YIJ):
2147         New constraints.
2148         * config/avr/avr.h (LONG_LONG_ACCUM_TYPE_SIZE): Define.
2150 2012-08-23  Kenneth Zadeck <zadeck@naturalbridge.com>
2152         * alias.c (rtx_equal_for_memref_p): Convert constant cases.
2153         * combine.c (find_single_use_1, mark_used_regs_combine): Convert
2154         to CASE_CONST_ANY.
2155         * cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1,
2156         count_reg_usage): Convert constant cases.
2157         * cselib.c (cselib_expand_value_rtx_1): Convert to CASE_CONST_ANY.
2158         (cselib_subst_to_values): Convert constant cases.
2159         * df-scan.c (df_uses_record): Ditto.
2160         * dse.c (const_or_frame_p): Convert case statements to explicit
2161         if-then-else using mode classes.
2162         * emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases.
2163         * explow.c (convert_memory_address_addr_space): Ditto.
2164         * gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto.
2165         * genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto.
2166         * ira.c (equiv_init_varies_p, contains_replace_regs,
2167         memref_referenced_p, rtx_moveable_p): Ditto.
2168         * jump.c (mark_jump_label_1): Remove constant cases.
2169         (rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE.
2170         * loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1,
2171         invariant_expr_equal_p): Convert to CASE_CONST_ANY.
2172         * postreload-gcse.c (oprs_unchanged_p): Convert constant cases.
2173         * reginfo.c (reg_scan_mark_refs): Ditto.
2174         * regrename.c (scan_rtx): Ditto.
2175         * reload1.c (eliminate_regs_1, elimination_effects,
2176         scan_paradoxical_subregs): Ditto.
2177         * reload.c (operands_match_p, subst_reg_equivs):  Ditto.
2178         * resource.c (mark_referenced_resources, mark_set_resources): Ditto.
2179         * rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences)
2180         (reg_mentioned_p, modified_between_p, modified_in_p)
2181         (volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1,
2182         inequality_comparisons_p, computed_jump_p_1): Ditto.
2183         * rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto.
2184         * sched-deps.c (sched_analyze_2): Ditto.
2185         * valtrack.c (cleanup_auto_inc_dec): Ditto.
2186         * rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE,
2187         CASE_CONST_ANY): New macros.
2189 2012-08-23  Julian Brown  <julian@codesourcery.com>
2190             Sandra Loosemore  <sandra@codesourcery.com>
2192         * config/mips/mips.md
2193         (UNSPEC_CASESI_DISPATCH): New.
2194         (MIPS16_T_REGNUM): New constant.
2195         (tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES.
2196         (casesi): New.
2197         (casesi_internal_mips16_<mode>): New.
2198         * config/mips/mips.c (mips16_split_long_branches): Adjust test
2199         to ignore casesi jump tables.
2200         * config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update
2201         comment.
2202         (CASE_VECTOR_MODE): Use SImode unconditionally.
2203         (CASE_VECTOR_SHORTEN_MODE): Define.
2204         (ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts
2205         when necessary for MIPS16_SHORT_JUMP_TABLES.
2207 2012-08-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2209         * config/rs6000/rs6000.c (rs6000_density_test): Free loop body.
2211 2012-08-23  H.J. Lu  <hongjiu.lu@intel.com>
2213         PR driver/54335
2214         * doc/invoke.texi: Add -da and remove -dm.
2216 2012-08-23  Richard Guenther  <rguenther@suse.de>
2218         * tree-vect-stmts.c (vect_finish_stmt_generation): Update
2219         virtual SSA form.
2221 2012-08-23  Jakub Jelinek  <jakub@redhat.com>
2223         * tree.c (copy_node_stat): Clear DECL_STRUCT_FUNCTION.
2225 2012-08-23  Mingjie Xing  <mingjie.xing@gmail.com>
2227         * doc/gty.texi: Fix typo.
2229 2012-08-23  Richard Guenther  <rguenther@suse.de>
2231         * tree-ssa-loop-manip.c (add_exit_phis_var): Allow virtual operands.
2232         (find_uses_to_rename_use): Likewise.
2233         (find_uses_to_rename_bb): Likewise.
2234         (find_uses_to_rename_stmt): Walk over all operands.
2236 2012-08-22  Oleg Endo  <olegendo@gcc.gnu.org>
2238         PR target/54089
2239         * config/sh/predicates (p27_rshift_count_operand,
2240         not_p27_rshift_count_operand): New predicates.
2241         * config/sh/sh.c (sh_ashlsi_clobbers_t_reg_p,
2242         sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle special
2243         case when shift amount is 31.
2244         (gen_ashift): Emit gen_shlr instead of gen_lshrsi3_m.
2245         * config/sh/sh.md (ashlsi3_d): Set type to 'dyn_shift' instead
2246         of 'arith'.
2247         (ashlsi_c): Rename to shll.  Adapt calls to gen_ashlsi_c throughout
2248         the file.
2249         (lshrsi3): Remove clobber from expander.  Use shift_count_operand
2250         instead of nonmemory_operand predicate for second operand.  Add
2251         handling of case lshrsi3_n_clobbers_t.
2252         (lshrsi3_k): Use p27_rshift_count_operand for second operand.
2253         (lshrsi3_d): Make insn_and_split.  Split dynamic shift to constant
2254         shift sequences if beneficial.
2255         (lshrsi3_n): Make insn_and_split.  Split constant shift sequence to
2256         dynamic shift if beneficial.
2257         (lshrsi3_n_clobbers_t): New insn_and_split.
2258         (lshrsi3_m): Delete.
2260 2012-08-22  Steven Bosscher  <steven@gcc.gnu.org>
2262         * tracer.c (mark_bb_seen): Use SBITMAP_SIZE.
2264         * alias.c (MAX_ALIAS_LOOP_PASSES): Update comment with rationale,
2265         or rather a lack thereof.
2266         (init_alias_analysis): Propagate the latest information across
2267         the CFG in topological order to propagate as far as possible in
2268         each iteration.  Ignore debug insns.
2270 2012-08-22  H.J. Lu  <hongjiu.lu@intel.com>
2272         * doc/invoke.texi: Document -mlong-double-64/-mlong-double-80.
2274         * config/i386/i386.c (flag_opts): Add -mlong-double-64.
2275         (TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic.
2277         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if
2278         TARGET_LONG_DOUBLE_64 is true.
2279         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro.
2280         (WIDEST_HARDWARE_FP_SIZE): Defined to 80.
2282         * config/i386/i386.opt (mlong-double-80): New option.
2283         (mlong-double-64): Likewise.
2285         * config/i386/i386-c.c (ix86_target_macros): Define
2286         __LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64.
2288 2012-08-22  H.J. Lu  <hongjiu.lu@intel.com>
2290         PR target/54347
2291         * config/i386/i386.c (ix86_split_to_parts): Replace
2292         REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target.
2294 2012-08-22  Richard Guenther  <rguenther@suse.de>
2296         * tree-vectorizer.c (vectorize_loops): Do not call
2297         mark_virtual_operands_for_renaming.
2298         * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
2299         Do not update SSA form here.
2301 2012-08-22  Dodji Seketeli  <dodji@redhat.com>
2303         * tree.h (TREE_NOTHROW): Use the base.nothrow_flag.
2305 2012-08-22  Richard Guenther  <rguenther@suse.de>
2307         PR tree-optimization/46590
2308         * tree-ssa-alias.h (get_continuation_for_phi): Add alias query
2309         counter output argument.
2310         (walk_non_aliased_vuses): Add alias query counter argument
2311         to the walker callback.
2312         * tree-ssa-alias.c (maybe_skip_until): Add alias query counter
2313         output argument and count alias queries.
2314         (get_continuation_for_phi_1): Likewise.
2315         (get_continuation_for_phi): Likewise.
2316         (walk_non_aliased_vuses): Add alias query counter argument
2317         to the walker callback and allow it to abort the walk by
2318         returning -1.
2319         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
2320         * tree-ssa-sccvn.c (vn_reference_lookup_2): Add alias query
2321         counter parmeter, abort walk if that is bigger than
2322         --param sccvn-max-alias-queries-per-access.
2323         * params.def (sccvn-max-alias-queries-per-access): New param.
2324         * doc/invoke.texi (sccvn-max-alias-queries-per-access): Document.
2326 2012-08-22  Richard Guenther  <rguenther@suse.de>
2328         * tree-ssa-loop-ch.c (copy_loop_headers): Remove redundant checking.
2329         * tree-into-ssa.c (initialize_flags_in_bb): Use gcc_checking_assert
2330         instead of gcc_assert.
2331         (mark_block_for_update): Likewise.
2332         (add_new_name_mapping): Likewise.
2333         (mark_def_sites): Likewise.
2334         (insert_phi_nodes_for): Likewise.
2335         (rewrite_debug_stmt_uses): Likewise.
2336         (rewrite_stmt): Likewise.
2337         (maybe_register_def): Likewise.
2338         (rewrite_update_phi_arguments): Likewise.
2339         (rewrite_update_enter_block): Likewise.
2340         (mark_def_interesting): Likewise.
2341         (prepare_def_site_for): Likewise.
2342         (insert_updated_phi_nodes_for): Likewise.
2344 2012-08-22  Jakub Jelinek  <jakub@redhat.com>
2346         * tree-vect-loop.c (vect_transform_loop): Initialize
2347         check_profitability to false.
2349         * tree-predcom.c (try_combine_chains): Free the worklist vector
2350         at the end.
2352 2012-08-22  Marc Glisse  <marc.glisse@inria.fr>
2354         PR tree-optimization/54317
2355         * tree-vrp.c (extract_range_from_binary_expr_1): Test for
2356         double_int overflow.
2357         Remove dead tests.
2359 2012-08-22  Jakub Jelinek  <jakub@redhat.com>
2361         * tree-vrp.c (find_assert_locations): Skip also edges
2362         from the entry block.
2364         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Call
2365         free_stmt_vec_info on orig_cond after gsi_removing it.
2366         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Always
2367         free body_cost_vec vector.
2368         (vect_analyze_data_refs): If gather is unsuccessful,
2369         free_data_ref (dr).
2370         * tree-inline.c (tree_function_versioning): Free
2371         old_transforms_to_apply vector.
2373 2012-08-22  Steven Bosscher  <steven@gcc.gnu.org>
2375         * tree-ssa-coalesce.c (struct ssa_conflicts_d): Make contents
2376         of this a VEC and add a bitmap obstack.
2377         (ssa_conflicts_new): Allocate the obstack and grow the VEC cleared
2378         to the right size.
2379         (ssa_conflicts_delete): Free the VEC and release the obstack.
2380         (ssa_conflicts_test_p, ssa_conflicts_test_p, ssa_conflicts_add_one,
2381         ssa_conflicts_merge, ssa_conflicts_dump): Update for above changes.
2382         (truct live_track_d): Add another bitmap obstack here.
2383         (new_live_track): Initialize it and use it for all bitmaps.
2384         (delete_live_track): Don't free the bitmaps one at a time, just
2385         release the obstack.
2386         (create_outofssa_var_map): Fix to conform to GCC code style rules.
2388 2012-08-21  Nathan Froyd  <froydnj@gcc.gnu.org>
2390         * config/m32c/constraints.md: New file.
2391         * config/m32c/t-m32c (MD_FILES): Add constraints.
2392         * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete.
2393         (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
2394         (m32c_reg_class_from_constraint): Delete.
2395         (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete.
2396         (m32c_matches_constraint_p): Declare.
2397         * config/m32c/m32c.h (CONSTRAINT_LEN): Delete.
2398         (REG_CLASS_FROM_CONSTRAINT): Delete.
2399         (CONST_OK_FOR_CONSTRAINT_P): Delete.
2400         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete.
2401         (EXTRA_CONSTRAINT_STR): Delete.
2402         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete.
2403         * config/m32c/m32c.c: Include tm-constrs.h
2404         (m32c_reg_class_from_constraint): Delete.
2405         (m32c_const_ok_for_constraint_p): Delete.
2406         (m32c_extra_constraint_p2): Rename to...
2407         (m32c_matches_constraint_p): ...this.  Make it return bool.  Tweak
2408         formatting.
2409         (m32c_extra_constraint_p): Delete.
2410         (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
2411         (m32c_split_move): Use satisfies_constraint_Ss.
2412         * config/m32c/predicates.md (memsym_operand): Use
2413         satisfies_constraint_Si.
2414         (memimmed_operand): Use satisfies_constraint_Sp.
2415         (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb.
2416         (m32c_1bit16_operand): Use satisfies_constraint_Ilw.
2417         (m32c_1mask8_operand): Use satisfies_constraint_ImB.
2418         (m32c_1mask16_operand): Use satisfies_constraint_Imw.
2420 2012-08-21  Nathan Froyd  <froydnj@gcc.gnu.org>
2422         * config/mep/mep.h (REG_CLASS_FROM_CONSTRAINT): Delete.
2423         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2424         (CONSTRAINT_LEN, EXTRA_CONSTRAINT): Delete.
2425         * config/mep/mep.c (mep_reg_class_from_constraint): Delete.
2426         (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
2427         * config/mep/mep-protos.h (mep_reg_class_from_constraint): Delete.
2428         (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
2430 2012-08-21  Oleg Endo  <olegendo@gcc.gnu.org>
2432         * config/sh/sh.md (cmpeqdi_t, cmpgtdi_t, cmpgedi_t, cmpgeudi_t,
2433         cmpgtudi_t, *movsicc_t_false, *movsicc_t_true, divsi_inv20, negsi_cond,
2434         truncdihi2, ic_invalidate_line_i, ic_invalidate_line_sh4a,
2435         ic_invalidate_line_media, movdf_i4, calli_pcrel, call_valuei,
2436         call_valuei_pcrel, sibcalli_pcrel, sibcall_compact,
2437         sibcall_valuei_pcrel, sibcall_value_compact, casesi_worker_1,
2438         casesi_worker_2, bandreg_m2a, borreg_m2a, bxorreg_m2a, sp_switch_1,
2439         sp_switch_2, stack_protect_set_si, stack_protect_set_si_media,
2440         stack_protect_set_di_media, stack_protect_test_si,
2441         stack_protect_test_si_media, stack_protect_test_di_media): Convert to
2442         multi-line asm output strings.
2443         (divsi_inv_qitable, divsi_inv_hitable): Use single-alternative asm
2444         output.
2445         (*andsi3_bclr, rotldi3_mextr, rotrdi3_mextr, calli,
2446         call_valuei_tbr_rel, movml_push_banked, movml_pop_banked, bclr_m2a,
2447         bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a, bldsign_m2a,
2448         bld_reg, *bld_regqi, band_m2a, bor_m2a, bxor_m2a, mextr_rl, *mextr_lr):
2449         Use tab char instead of '\\t'.
2450         (iordi3): Use braced string.
2451         (*movsi_pop): Use tab chars instead of spaces.
2453 2012-08-21  Oleg Endo  <olegendo@gcc.gnu.org>
2455         PR target/39423
2456         * config/sh/sh.md (*movhi_index_disp): Add support for SH2A
2457         movu.w insn.
2459 2012-08-21  H.J. Lu  <hongjiu.lu@intel.com>
2461         PR middle-end/54332
2462         * df-scan.c (df_bb_verify): Restore df_free_collection_rec call
2463         inside the insn traversal loop.
2465         * vec.h (vec_reserve): Remove the stack allocation check.
2467 2012-08-21  Marc Glisse  <marc.glisse@inria.fr>
2469         * fold-const.c (fold_ternary_loc): Detect identity permutations.
2470         Canonicalize permutations more.
2471         * tree-ssa-forwprop.c (is_combined_permutation_identity): New function.
2472         (simplify_permutation): Likewise.
2473         (ssa_forward_propagate_and_combine): Call it.
2475 2012-08-21  Richard Guenther  <rguenther@suse.de>
2477         * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
2478         the affine expansion cache.
2479         * tree-ssa-dom.c (free_expr_hash_elt_contents): New function,
2480         split out from ...
2481         (free_expr_hash_elt): ... this one.
2482         (record_cond): Properly free a not needed hashtable element.
2483         (lookup_avail_expr): Likewise.
2484         * tree-into-ssa.c (init_ssa_renamer): Specify a free function
2485         for the var_infos hashtable.
2486         (update_ssa): Likewise.
2488 2012-08-21  Richard Guenther  <rguenther@suse.de>
2490         * alloc-pool.c (pool_alloc): Fix valgrind annotation.
2491         * tree.h: Fix typo and complete flags documentation.
2493 2012-08-21  Richard Guenther  <rguenther@suse.de>
2495         * tree.h (struct tree_base): Add union to make it possible to
2496         re-use the upper 4 bytes for tree codes that do not need as
2497         many flags as others.  Move visited and default_def_flag to
2498         common bits section in exchange for saturating_flag and
2499         unsigned_flag.  Add SSA name version and tree vec length
2500         fields here.
2501         (struct tree_vec): Remove length field here.
2502         (struct tree_ssa_name): Remove version field here.
2504 2012-08-20  Jan Hubicka  <jh@suse.cz>
2506         PR fortran/48636
2507         * ipa-inline.c (want_inline_small_function_p): Take loop_iterations
2508         hint.
2509         (edge_badness): Likewise.
2510         * ipa-inline.h (inline_hints_vals): Add INLINE_HINT_loop_iterations.
2511         (inline_summary): Add loop_iterations.
2512         * ipa-inline-analysis.c: Include tree-scalar-evolution.h.
2513         (dump_inline_hints): Dump loop_iterations.
2514         (reset_inline_summary): Free loop_iterations.
2515         (inline_node_duplication_hook): Update loop_iterations.
2516         (dump_inline_summary): Dump loop_iterations.
2517         (will_be_nonconstant_expr_predicate): New function.
2518         (estimate_function_body_sizes): Analyze loops.
2519         (estimate_node_size_and_time): Set hint loop_iterations.
2520         (inline_merge_summary): Merge loop iterations.
2521         (inline_read_section): Stream in loop_iterations.
2522         (inline_write_summary): Stream out loop_iterations.
2524 2012-08-20  Florian Weimer  <fweimer@redhat.com>
2526         PR c++/19351
2527         * call.c (build_operator_new_call): Add size_check argument and
2528         evaluate it.
2529         * cp-tree.h (build_operator_new_call): Adjust declaration.
2530         * init.c (build_new_1): Compute array size check and apply it.
2532 2012-08-20  Oleg Endo  <olegendo@gcc.gnu.org>
2534         PR target/54089
2535         * config/sh/sh.md (rotcr, *rotcr, shar, shlr): New insns and splits.
2536         (ashrdi3_k, lshrdi3_k): Rewrite as insn_and_split.
2537         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p): New function.
2538         * config/sh/sh-protos.h (sh_lshrsi_clobbers_t_reg_p): Declare it.
2540 2012-08-20  Oleg Endo  <olegendo@gcc.gnu.org>
2542         PR target/51244
2543         * config/sh/sh.md (*cset_zero): New insns.
2545 2012-08-20  Mark Wielaard  <mjw@redhat.com>
2547         * dwarf2out.h (enum dw_val_class): Add dw_val_class_high_pc.
2548         * dwarf2out.c (dw_val_equal_p): Handle dw_val_class_high_pc.
2549         (add_AT_low_high_pc): New function.
2550         (AT_lbl): Handle dw_val_class_high_pc.
2551         (print_die): Likewise.
2552         (attr_checksum): Likewise.
2553         (attr_checksum_ordered): Likewise.
2554         (same_dw_val_p): Likewise.
2555         (size_of_die): Likewise.
2556         (value_format): Likewise.
2557         (output_die): Likewise.
2558         (gen_subprogram_die): Use add_AT_low_high_pc.
2559         (add_high_low_attributes): Likewise.
2560         (dwarf2out_finish): Likewise.
2562 2012-08-20  Jakub Jelinek  <jakub@redhat.com>
2564         PR rtl-optimization/54294
2565         * fwprop.c (all_uses_available_at): Ignore debug insns in between
2566         def_insn and target_insn when checking whether the shortcut is
2567         possible.
2569 2012-08-20  Eric Botcazou  <ebotcazou@adacore.com>
2571         * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define.
2573 2012-08-20  Patrick Marlier  <patrick.marlier@gmail.com>
2575         PR middle-end/53992
2576         * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.
2578 2012-08-20  Richard Earnshaw  <rearnsha@arm.com>
2580         PR tree-ssa/54295
2581         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
2582         declaration and setter.
2584 2012-08-20  Richard Earnshaw  <rearnsha@arm.com>
2586         PR tree-ssa/54295
2587         * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
2588         New function.
2589         (is_widening_mult_rhs_p): Use it.
2591 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2593         * configure.ac (ffs): Check for declaration.
2594         * configure, config.in: Regenerate.
2596 2012-08-20  Richard Guenther  <rguenther@suse.de>
2598         * tree-flow.h (register_new_name_mapping): Remove.
2599         * tree-into-ssa.c (register_new_name_mapping): Likewise.
2600         (add_new_name_mapping): Do not push/pop timevar here.
2601         (create_new_def_for): Instead do it here.  Initialize
2602         update-ssa here, handle a NULL def.
2603         * tree-vrp.c (build_assert_expr_for): Use create_new_def_for.
2605 2012-08-20  Richard Guenther  <rguenther@suse.de>
2607         PR tree-optimization/54327
2608         * gimple-fold.c (get_maxval_strlen): Do not walk use-def chains
2609         if the use is registered for SSA update.
2611 2012-08-20  Jakub Jelinek  <jakub@redhat.com>
2613         PR tree-optimization/54321
2614         * tree-ssa-forwprop.c (simplify_builtin_call): Pass 0 instead of 1
2615         as second argument to tree_low_cst call on val2.
2617 2012-08-20  Richard Guenther  <rguenther@suse.de>
2619         * gimple.h (gimple_statement_base): Annotate with GTY chain_next.
2621 2012-08-20  Richard Guenther  <rguenther@suse.de>
2623         PR bootstrap/54326
2624         * genoutput.c (note_constraint): Properly use CONST_CAST.
2626 2012-08-19  Nick Clifton  <nickc@redhat.com>
2628         PR target/54306
2629         * config/arm/mmintrin.h: Remove spurious #endif.
2631 2012-08-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2633         * config/avr/avr-log.c (avr_log_vadump): Properly use
2634         int-promoted enum values.
2635         * config/avr/avr.h (struct mcu_type_s): Change `arch' from
2636         int to enum avr_arch.
2637         * config/avr/gen-avr-mmcu-texi.c (main): Use correct initializer.
2639 2012-08-18  Jan Hubicka  <jh@suse.cz>
2641         PR lto/45375
2642         * ipa-inline.c (want_inline_small_function_p): Bypass
2643         inline limits for hinted functions.
2644         (edge_badness): Dump hints; decrease badness for hinted funcitons.
2645         * ipa-inline.h (enum inline_hints_vals): New enum.
2646         (inline_hints): New type.
2647         (edge_growth_cache_entry): Add hints.
2648         (dump_inline_summary): Update.
2649         (dump_inline_hints): Declare.
2650         (do_estimate_edge_hints): Declare.
2651         (estimate_edge_hints): New inline function.
2652         (reset_edge_growth_cache): Update.
2653         * predict.c (cgraph_maybe_hot_edge_p): Do not ice on indirect edges.
2654         * ipa-inline-analysis.c (dump_inline_hints): New function.
2655         (estimate_edge_devirt_benefit): Return true when function should be
2656         hinted.
2657         (estimate_calls_size_and_time): New hints argument; set it when
2658         devritualization happens.
2659         (estimate_node_size_and_time): New hints argument.
2660         (do_estimate_edge_time): Cache hints.
2661         (do_estimate_edge_growth): Update.
2662         (do_estimate_edge_hints): New function
2664 2012-08-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2666         PR middle-end/53823
2667         * expmed.c (expand_mult): Skip synth_mult for negative coefficients
2668         if the mode is larger than a wide int and it is too costly to multiply
2669         by a positive multiplier and negate the result.
2671 2012-08-18  Steven Bosscher  <steven@gcc.gnu.org>
2673         * sparseset.c (sparseset_alloc): Use non-clearing allocation.  Tell
2674         valgrind not to worry about reading from unitialized memory.
2676 2012-08-18  Steven Bosscher  <steven@gcc.gnu.org>
2678         PR middle-end/54313
2679         * dse.c (dse_step7): Don't free kill_on_calls bitmap, it is
2680         freed when its obstack is release.
2682 2012-08-18  Andrew Pinski  <pinskia@gmail.com>
2684         * alloc-pool.c (pool_alloc): Add valgrind markers.
2685         (pool_free): Likewise.
2687 2012-08-17  Walter Lee  <walt@tilera.com>
2689         * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
2690         (FEEDBACK_ENTER): Define.
2691         (FEEDBACK_REENTER): Define.
2692         (FEEDBACK_ENTRY): Define.
2693         * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
2694         (FEEDBACK_ENTER): Define.
2695         (FEEDBACK_REENTER): Define.
2696         (FEEDBACK_ENTRY): Define.
2698 2012-08-17  H.J. Lu  <hongjiu.lu@intel.com>
2699             Gary Funck <gary@intrepid.com>
2701         PR target/20020
2702         * config/i386/i386.c (ix86_member_type_forces_blk): New function.
2703         (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
2705         * config/i386/i386.h (MAX_FIXED_MODE_SIZE): New macro.
2707 2012-08-17  Marc Glisse  <marc.glisse@inria.fr>
2709         * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
2710         a concatenation.
2712 2012-08-17  H.J. Lu  <hongjiu.lu@intel.com>
2714         * stor-layout.c (compute_record_mode): Replace
2715         MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk.
2716         (layout_type): Likewise.
2718         * system.h: Poison MEMBER_TYPE_FORCES_BLK.
2720         * target.def (member_type_forces_blk): New target hook.
2722         * targhooks.c (default_member_type_forces_blk): New.
2723         * targhooks.h (default_member_type_forces_blk): Likewise.
2725         * doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed.
2726         (TARGET_MEMBER_TYPE_FORCES_BLK): New hook.
2727         * doc/tm.texi: Regenerated.
2729         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed.
2731         * config/ia64/ia64.c (ia64_member_type_forces_blk): New function.
2732         (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
2734         * config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
2735         (rs6000_member_type_forces_blk): New function.
2737         * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed.
2739         * config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New function.
2740         (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
2742         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed.
2744 2012-08-17  Diego Novillo  <dnovillo@google.com>
2746         PR bootstrap/54281
2747         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2748         * config.in: Regenerate.
2749         * configure: Regenerate.
2750         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
2752 2012-08-17  Richard Guenther  <rguenther@suse.de>
2754         * bitmap.h (struct bitmap_element_def): GTY annotate next/prev.
2755         (struct bitmap_head_def): GTY skip current field.
2757 2012-08-17  Steven Bosscher  <steven@gcc.gnu.org>
2759         PR middle-end/54146
2760         * tree-ssa-loop-im.c (lim_bitmap_obstack): New bitmap_obstack.
2761         (memref_free): Don't free the bitmaps individually here.
2762         (mem_ref_alloc): Allocate the bitmaps on the new bitmap obstack.
2763         (analyze_memory_references): Likewise.
2764         (tree_ssa_lim_initialize): Initialize the new bitmap obstack.
2765         (tree_ssa_lim_finalize): Release it.
2766         * dse.c (dse_bitmap_obstack): New bitmap obstack.
2767         (dse_obstack): New obstack.
2768         (get_group_info): Allocate the bitmaps on the new bitmap obstack.
2769         (dse_step0): Allocate the scratch bitmap on reg_obstack.  Initialize
2770         the new bitmap obstack and normal obstack.  Use XNEWVEC for bb_table.
2771         (record_store): Allocate regs_set on reg_obstack.
2772         (dse_step1): Allocate regs_live on reg_obstack.
2773         (dse_step2_init): Allocate offset_map_n and offset_map_p on the new
2774         obstack.
2775         (dse_step3_scan): Allocate bitmaps on the new bitmap obstack.
2776         (dse_step3): Likewise.
2777         (dse_confluence_0): Likewise.
2778         (dse_confluence_n): Likewise.
2779         (dse_transfer_function): Likewise.
2780         (dse_step7): Destroy the new obstacks, and everything allocated on
2781         them, in one big sweep.
2782         (rest_of_handle_dse): Update.
2783         * cfgexpand.c (stack_var_bitmap_obstack): New bitmap obstack.
2784         (add_stack_var_conflict): Allocate bitmaps on it.
2785         (add_scope_conflicts_1): Likewise.
2786         (add_scope_conflicts): Likewise.
2787         (update_alias_info_with_stack_vars): Likewise.
2788         (init_vars_expansion): Move TREE_USED fiddling expand_used_vars.
2789         Initialize the new bitmap obstack.
2790         (fini_vars_expansion): Release it.
2791         (estimated_stack_frame_size): Use init_vars_expansion to set things up
2792         and always clean up at the end.
2793         (expand_used_vars): Do the TREE_USED trickery here.  Always call
2794         fini_vars_expansion.
2795         * tree-ssa-live.h (struct tree_live_info_d): Make livein and liveout
2796         arrays of bitmap_head to avoid one indirection per bitmap access.
2797         (live_on_entry, live_on_exit, live_var_map, live_merge_and_clear,
2798         make_live_on_entry): Update.
2799         * tree-ssa-live.c (partition_view_bitmap): Don't double-free 'used'.
2800         (liveness_bitmap_obstack): New bitmap obstack.
2801         (remove_unused_locals): Use it to allocate all bitmaps on.  Update
2802         for livein/liveout changes in tree-ssa-live.h.
2803         (delete_tree_live_info): Release the bitmap obstack.
2804         (loe_visit_block, live_worklist, set_var_live_on_entry,
2805         calculate_live_on_exit, dump_live_info): Update.
2806         (calculate_live_ranges): Initialize the bitmap.
2807         * tree-ssa-ter.c (ter_bitmap_obstack): New bitmap obstack.
2808         (new_temp_expr_table): Allocate bitmap on it.
2809         (make_dependent_on_partition, add_to_partition_kill_list,
2810         add_dependence, process_replaceable): Likewise.
2811         (find_replaceable_exprs): Initialize and release the new obstack here.
2812         * df-problems.c (df_lr_add_problem): Allocate persistent bitmap
2813         for out_of_date_transfer_functions on df_bitmap_obstack.
2814         (df_live_add_problem): Likewise.
2815         (df_chain_add_problem): Likewise.
2816         (df_word_lr_add_problem): Likewise.
2818 2012-08-17  Nick Clifton  <nickc@redhat.com>
2820         * config/fr30/fr30.md  (cbranchsi4): Remove mode from comparison.
2821         (branch_true): Likewise.
2822         (branch_false): Likewise.
2824         * config/mcore/mcore.md (cbranchsi4): Remove mode from comparison.
2826         * config/iq2000/iq2000.md (cbranchsi4): Remove mode from
2827         comparison and label.
2828         (branch_zero): Likewise.
2829         (branch_zero_inverted): Likewise.
2830         (branch_equality): Likewise.
2831         (branch_equality_inverted): Likewise.
2832         (extend-and-compare): Disable until reload issues can be resolved.
2833         * config/iq2000/iq2000.c (gen_conditional_branch): Use VOIDmode
2834         for comparison.
2835         (iq2000_function_arg_advance): Remove CONST_CAST2.
2837         * config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile
2838         mep-pragma.c.
2840 2012-08-17  Georg-Johann Lay  <avr@gjlay.de>
2842         * config/avr/t-avr (gen-avr-mmcu-texi): Use $(CC) to compile
2843         gen-avr-mmcu-texi.c.
2845 2012-08-17  Richard Earnshaw  <rearnsha@arm.com>
2847         * arm.md (arm_addsi3): New variant for Thumb2 16-bit ADD instruction.
2848         * arm.c (thumb2_reorg): Don't convert an ADD instruction that's
2849         already 16 bits.
2851 2012-08-17  Richard Guenther  <rguenther@suse.de>
2853         * hash-table.h (class hash_table): Use a descriptor template
2854         argument instead of decomposed element type and support functions.
2855         (struct pointer_hash): New generic typed pointer-hash.
2856         (struct typed_free_remove, struct typed_noop_remove): Generic
2857         hash_table support pieces.
2858         * coverage.c (struct counts_entry): Add hash_table support members.
2859         * tree-ssa-ccp.c (gimple_htab): Use pointer_hash.
2860         * tree-ssa-coalesce.c (struct ssa_name_var_hash): New generic
2861         SSA name by SSA_NAME_VAR hash.
2862         (coalesce_ssa_name): Use it.
2863         * tree-ssa-pre.c (struct pre_expr_d): Add hash_table support.
2864         (expression_to_id): Adjust.
2865         (struct expr_pred_trans_d): Add hash_table support.
2866         (phi_translate_table): Adjust.
2867         (phi_trans_lookup): Likewise.
2868         (phi_trans_add): Likewise.
2869         (do_regular_insertion): Likewise.
2870         * tree-ssa-tail-merge.c (struct same_succ_def): Add hash_table support.
2871         (same_succ_htab): Adjust.
2872         (find_same_succ_bb): Likewise.
2873         (find_same_succ): Likewise.
2874         (update_worklist): Likewise.
2875         * tree-ssa-threadupdate.c (struct redirection_data): Add hash_table
2876         support.
2877         (redirection_data): Adjust.
2879 2012-08-17  Richard Guenther  <rguenther@suse.de>
2881         * params.def (integer-share-limit): Decrease from 256 to 251,
2882         add rationale.
2884 2012-08-17  Richard Guenther  <rguenther@suse.de>
2886         * tree-sra.c (modify_function): Free redirect_callers vector.
2887         * ipa-split.c (split_function): Free args_to_pass vector.
2888         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Free
2889         body_cost_vec properly.
2890         (vect_enhance_data_refs_alignment): Likewise.
2891         * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
2892         vec_oprnds.
2893         (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
2894         * tree-vect-slp.c (vect_free_slp_instance): Free the instance.
2895         (vect_analyze_slp_instance): Free everything.
2896         (destroy_bb_vec_info): Free the SLP instances.
2898 2012-08-17  Iain Sandoe  <iain@codesourcery.com>
2900         * config/rs6000/rs6000.c (macho_branch_islands): Adjust for changes
2901         to vec.h.
2903 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2905         * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document.
2907 2012-08-16  Sandra Loosemore  <sandra@codesourcery.com>
2909         * config/mips/mips-dsp.md (mips_dpau_h_qbl, mips_dpau_h_qbr)
2910         (mips_dpsu_h_qbl, mips_dpsu_h_qbr, mips_dpaq_s_w_ph)
2911         (mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph, mips_dpaq_sa_l_w)
2912         (mips_dpsq_sa_l_w, mips_maq_s_w_phl, mips_maq_s_w_phr)
2913         (mips_maq_sa_w_phl, mips_maq_sa_w_phr): Add accum_in attribute.
2915 2012-08-16  Oleg Endo  <olegendo@gcc.gnu.org>
2917         PR target/54236
2918         * config/sh/sh.md (addc): Add commutative modifier.
2919         (*addc, *minus_plus_one, *subc, *negc): New insns and splits.
2921 2012-08-16  Oleg Endo  <olegendo@gcc.gnu.org>
2923         PR target/39423
2924         * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): Handle
2925         potential T_REG clobber.  Convert zero extending split to
2926         insn_and_split.
2928 2012-08-16  Oleg Endo  <olegendo@gcc.gnu.org>
2930         PR target/54089
2931         * config/sh/sh.md (ashlsi3_d): Do not split if it would result
2932         in a T_REG clobber.  Correct comment.
2933         (ashlsi3_n): Correct comment.
2935 2012-08-16  Hans-Peter Nilsson  <hp@axis.com>
2937         PR middle-end/54261
2938         * optabs.c (expand_atomic_fetch_op): Save and restore code when
2939         retrying after failed attempt.
2941 2012-08-16  Yuri Rumyantsev  <ysrumyan@gmail.com>
2943         * config/i386/i386-protos.h (ix86_split_lea_for_addr) : Add
2944         additional argument.
2945         * config/i386/i386.md (ix86_split_lea_for_addr) : Add
2946         additional argument curr_insn.
2947         * config/i386/i386.c (ix86_split_lea_for_addr): Load base or index
2948         register first, depending on their defintion distances.
2949         (ix86_lea_outperforms): Prefer LEA only if split cost exceeds
2950         AGU stall.
2951         (find_nearest_reg-def): New function. Find register with
2952         nearest definition.
2954 2012-08-16  Walter Lee  <walt@tilera.com>
2956         * config.gcc (tilegx-*-linux*): Add feedback.h.
2957         (tilepro-*-linux*): Likewise.
2958         * config/tilegx/feedback.h: New file.
2959         * config/tilepro/feedback.h: New file.
2961 2012-08-16  Diego Novillo  <dnovillo@google.com>
2963         Revert
2965         PR bootstrap/54281
2966         * double-int.h: Move including of gmp.h ...
2967         * system.h: ... here.
2968         * realmpfr.h: Do not include gmp.h.
2969         * tree-ssa-loop-niter.c: Do not include gmp.h.
2971 2012-08-16  Segher Boessenkool  <segher@kernel.crashing.org>
2973         * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment.
2975 2012-08-16  Richard Guenther  <rguenther@suse.de>
2977         PR middle-end/54146
2978         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
2979         exit vector.
2980         * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
2981         * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
2982         * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
2983         * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed.
2984         * tree-ssa-loop-im.c (analyze_memory_references): Adjust.
2985         (tree_ssa_lim_finalize): Free all mem_refs.
2986         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
2987         scc when bailing out.
2988         * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
2989         * ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
2990         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
2991         FOR_EACH_LOOP_BREAK.
2993 2012-08-16  Diego Novillo  <dnovillo@google.com>
2995         PR bootstrap/54281
2996         * double-int.h: Move including of gmp.h ...
2997         * system.h: ... here.
2998         * realmpfr.h: Do not include gmp.h.
2999         * tree-ssa-loop-niter.c: Do not include gmp.h.
3001 2012-08-16  Steven Bosscher  <steven@gcc.gnu.org>
3003         PR middle-end/54146
3004         * tree-flow.h (compute_global_livein): Remove prototype.
3005         * tree-into-ssa.c (compute_global_livein): Remove function.
3006         * tree-ssa-loop-manip.c: Include gimple-pretty-print.h.
3007         (find_sibling_superloop): New function.
3008         (compute_live_loop_exits): New function.
3009         (add_exit_phis_edge): Rename to add_exit_phi.  Do not allow
3010         inserting a PHI in a block that is not a loop exit for VAR.
3011         Add dumping if TDF_DETAILS.
3012         (add_exit_phis_var): Rewrite.
3013         (add_exit_phis): Update.
3014         (get_loops_exits): Rewrite to return an array of per-loop exits
3015         rather than one bitmap with all loop exits.
3016         (find_uses_to_rename_bb): Ignore virtual PHI nodes.
3017         (rewrite_into_loop_closed_ssa): Update.
3019 2012-08-16  Nick Clifton  <nickc@redhat.com>
3021         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes
3022         before passing it to ASM_OUTPUT_LIMITED_STRING.
3024         * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
3026         * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER).
3027         * config/avr/avr.c (avr_legitimize_reload_address): Add casts
3028         for reload_type enums.
3029         (DEF_BUILTIN): Cast the icode to enum insn_code.
3031 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
3033         * config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default)
3034         instead of -mppc.
3035         * config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto.
3037 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
3039         * config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
3040         (RS6000_CALL_GLUE): Adjust for single assembler syntax.
3041         * config/rs6000/aix51.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
3042         * config/rs6000/aix52.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
3043         * config/rs6000/aix53.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
3044         * config/rs6000/aix61.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
3045         * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
3046         * config/rs6000/darwin.md (whole file): Adjust to single
3047         assembler syntax.
3048         * config/rs6000/darwin64.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
3049         * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
3050         * config/rs6000/dfp.md: (whole file): Adjust to single
3051         assembler syntax.
3052         * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
3053         * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
3054         * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
3055         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
3056         * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
3057         * config/rs6000/rs6000-cpus.def (whole file): Delete POWERPC_BASE_MASK.
3058         * config/rs6000/rs6000-tables.opt: Regenerate.
3059         * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete.
3060         (num_insns_constant_wide): Adjust comments.
3061         (whole file): Adjust to single assembler syntax.
3062         (output_cbranch): Adjust comment.
3063         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Delete.
3064         * config/rs6000/rs6000.md: (whole file): Adjust to single
3065         assembler syntax.
3066         * config/rs6000/rs6000.opt (mnew-mnemonics): Delete.
3067         (mold-mnemonics): Delete.
3068         * config/rs6000/spe.md: (whole file): Adjust to single
3069         assembler syntax.
3070         * config/rs6000/sync.md: (whole file): Adjust to single
3071         assembler syntax.
3072         * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
3073         (ASM_OUTPUT_REG_PUSH): Adjust.
3074         (ASM_OUTPUT_REG_POP): Adjust.
3075         * config/rs6000/sysv4le.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
3076         * config/rs6000/vsx.md: (whole file): Adjust to single
3077         assembler syntax.
3078         * config/rs6000/vxworks.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
3079         * doc/invoke.texi: Adjust documentation to reflect the
3080         removal of -mnew-mnemonics and -mold-mnemonics.
3082 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
3084         * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
3085         Delete handling for -mno-powerpc and -mpowerpc.
3086         * config/rs6000/aix43.h (ASM_CPU_SPEC): Similar.
3087         (ASM_DEFAULT_SPEC): Use -mppc instead of -mcom.
3088         * config/rs6000/aix51.h (ASM_CPU_SPEC, ASM_DEFAULT_SPEC): Ditto.
3089         * config/rs6000/aix52.h (TARGET_DEFAULT): Delete MASK_POWERPC.
3090         * config/rs6000/aix53.h (TARGET_DEFAULT): Ditto.
3091         * config/rs6000/aix61.h (TARGET_DEFAULT): Ditto.
3092         * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
3093         * config/rs6000/darwin64.h (TARGET_DEFAULT): Ditto.
3094         * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
3095         * config/rs6000/driver-rs6000.c (asm_names): Delete handling
3096         for -mcpu=common and -mpowerpc.
3097         * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_POWERPC.
3098         * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
3099         * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
3100         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
3101         * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
3102         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING):
3103         Use RS6000_BTM_ALWAYS instead of RS6000_BTM_POWERPC.
3104         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
3105         (rs6000_cpu_cpp_builtins): Adjust.
3106         * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete MASK_POWERPC.
3107         (rs6000_builtin_mask_calculate): Adjust.
3108         (rs6000_emit_move): Delete code for ! TARGET_POWERPC.
3109         (rs6000_init_libfuncs): Ditto.
3110         (rs6000_output_function_prologue): Ditto.
3111         (rs6000_opt_masks): Delete MASK_POWERPC.
3112         (rs6000_builtin_mask_names): Delete RS6000_BTM_POWERPC.
3113         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete handling for -mpowerpc.
3114         (RS6000_BTM_POWERPC): Delete.
3115         (RS6000_BTM_COMMON): Delete RS6000_BTM_POWERPC.
3116         * config/rs6000/rs6000.md (extendqisi2 patterns): Adjust for
3117         TARGET_POWERPC always on.
3118         (extendqihi2 patterns): Similar.
3119         (various unnamed subtract patterns): Similar.
3120         (bswaphi2 patterns): Similar.
3121         (divmodsi4): Similar.
3122         (udiv<GPR:mode>3): Similar.
3123         (div<GPR:mode>3 patterns): Similar.
3124         (udivmodsi4): Similar.
3125         (mulhcall): Delete.
3126         (mullcall): Delete.
3127         (divss_call): Delete.
3128         (divus_call): Delete.
3129         (quoss_call): Delete.
3130         (quous_call): Delete.
3131         (insvsi patterns): Adjust.
3132         (addsf3 patterns): Adjust.
3133         (subsf3 patterns): Adjust.
3134         (mulsf3 patterns): Adjust.
3135         (divsf3 patterns): Adjust.
3136         (*fmasf4_fpr): Adjust.
3137         (*fmssf4_fpr): Adjust.
3138         (*nfmasf4_fpr): Adjust.
3139         (*nfmssf4_fpr): Adjust.
3140         (*floatunssidf2_internal): Adjust.
3141         (fix_trunc<SFDF:mode>si2_internal): Adjust.
3142         (fctiwz_<SFDF:mode>): Adjust.
3143         (mulsidi3 patterns): Adjust.
3144         (smulsi3_highpart patterns): Adjust.
3145         (umulsi3_highpart patterns): Adjust.
3146         (fix_trunctfsi2 patterns): Adjust.
3147         (prefetch): Adjust.
3148         * config/rs6000/rs6000.opt (mpowerpc): Replace by stub option.
3149         (mno-powerpc): Delete.
3150         * config/rs6000/sync.md (load_locked<ATOMIC:mode>): Adjust.
3151         (store_conditional<ATOMIC:mode>): Adjust.
3152         (atomic_compare_and_swap<ATOMIC:mode>): Adjust.
3153         (atomic_exchange<ATOMIC:mode>): Adjust.
3154         (atomic_<fetchop_name><ATOMIC:mode>): Adjust.
3155         (atomic_nand<ATOMIC:mode>): Adjust.
3156         (atomic_fetch_<fetchop_name><ATOMIC:mode>): Adjust.
3157         (atomic_fetch_nand<ATOMIC:mode>): Adjust.
3158         (atomic_<fetchop_name>_fetch<ATOMIC:mode>): Adjust.
3159         (atomic_nand_fetch<ATOMIC:mode>): Adjust.
3160         * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_POWERPC.
3161         * config/rs6000/sysv4le.h (TARGET_DEFAULT): Ditto.
3162         * config/rs6000/vxworks.h (TARGET_DEFAULT): Ditto.
3163         * doc/invoke.texi: Adjust documentation.
3165 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
3167         * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New.
3169 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
3171         * config/rs6000/aix52.h (ASM_CPU_SPEC): Fix typo.
3172         * config/rs6000/aix53.h (ASM_CPU_SPEC): Ditto.
3173         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
3174         * config/rs6000/driver-rs6000.c (asm_names): Ditto.
3176 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
3178         PR target/54142
3179         * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default)
3180         instead of -mcom.
3181         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto.
3183 2012-08-15  Sandra Loosemore  <sandra@codesourcery.com>
3184             Maxim Kuvyrkov  <maxim@codesourcery.com>
3185             Julian Brown  <julian@codesourcery.com>
3186             MIPS Technologies, Inc.
3188         * config/mips/mips.md (dspmac, dspmacsat, accext, accmod, dspalu)
3189         (dspalusat): Add insn types.
3190         * config/mips/mips-dsp.md (add<DSPV:mode>3)
3191         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>)
3192         (sub<DSPV:mode>3, mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc)
3193         (mips_addwc, mips_modsub, mips_raddu_w_qb, mips_absq_s_<DSPQ:dspfmt2>)
3194         (mips_precrq_qb_ph, mips_precrq_ph_w, mips_precrq_rs_ph_w)
3195         (mips_precrqu_s_qb_ph, mips_preceq_w_phl, mips_preceq_w_phr)
3196         (mips_precequ_ph_qbl, mips_precequ_ph_qbr, mips_precequ_ph_qbla)
3197         (mips_precequ_ph_qbra, mips_preceu_ph_qbl, mips_preceu_ph_qbr)
3198         (mips_preceu_ph_qbla, mips_preceu_ph_qbra, mips_shll_<DSPV:dspfmt2>)
3199         (mips_shll_s_<DSPQ:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>, mips_shrl_qb)
3200         (mips_shra_ph, mips_shra_r_<DSPQ:dspfmt2>, mips_bitrev, mips_insv)
3201         (mips_repl_qb, mips_repl_ph)
3202         (mips_cmp<DSPV:dspfmt1_1>_eq_<DSPV:dspfmt2>)
3203         (mips_cmp<DSPV:dspfmt1_1>_lt_<DSPV:dspfmt2>)
3204         (mips_cmp<DSPV:dspfmt1_1>_le_<DSPV:dspfmt2>, mips_cmpgu_eq_qb)
3205         (mips_cmpgu_lt_qb, mips_cmpgu_le_qb, mips_pick_<DSPV:dspfmt2>)
3206         (mips_packrl_ph, mips_wrdsp, mips_rddsp): Change type to dspalu.
3207         (mips_dpau_h_qbl, mips_dpau_h_qbr, mips_dpsu_h_qbl, mips_dpsu_h_qbr)
3208         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph)
3209         (mips_maq_s_w_phl, mips_maq_s_w_phr, mips_maq_sa_w_phr): Set type to
3210         dspmac.
3211         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_sa_w_phl): Set type to
3212         dspmacsat.
3213         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w, mips_extp, mips_extpdp):
3214         Set type to accext.
3215         (mips_shilo, mips_mthlip): Set type to accmod.
3216         * config/mips/mips-dspr2.md (mips_absq_s_qb, mips_addu_s_ph)
3217         (mips_adduh_r_qb): Set type to dspalusat.
3218         (mips_addu_ph, mips_adduh_qb, mips_append, mips_balign)
3219         (mips_cmpgdu_eq_qb, mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb)
3220         (mips_precr_qb_ph, mips_precr_sra_ph_w, mips_precr_sra_r_ph_w)
3221         (mips_prepend, mips_shra_qb, mips_shra_r_qb, mips_shrl_ph)
3222         (mips_subu_ph, mips_subuh_qb, mips_subuh_r_qb, mips_addqh_ph)
3223         (mips_addqh_r_ph, mips_addqh_w, mips_addqh_r_w, mips_subqh_ph)
3224         (mips_subqh_r_ph, mips_subqh_w, mips_subqh_r_w): Set type to dspalu.
3225         (mips_dpa_w_ph, mips_dps_w_ph, mips_mulsa_w_ph, mips_dpax_w_ph)
3226         (mips_dpsx_w_ph, mips_dpaqx_s_w_ph, mips_dpsqx_s_w_ph): Set type to
3227         dspmac.  Set accum_in attribute.
3228         (mips_subu_s_ph): Set type to dspalusat.
3229         (mips_dpaqx_sa_w_ph, mips_dpsqx_sa_w_ph): Set type to dspmacsat.
3230         Set accum_in attribute.
3231         * config/mips/mips-protos.h (mips_dspalu_bypass_p): Add prototype.
3232         * config/mips/mips.c (dspalu_bypass_table): New.
3233         (mips_dspalu_bypass_p): New.
3234         * config/mips/24k.md (r24k_dsp_alu, r24k_dsp_mac, r24k_dsp_mac_sat)
3235         (r24k_dsp_acc_ext, r24k_dsp_acc_mod): New insn reservations.
3236         (r24k_int_mult, r24k_int_mthilo, r24k_dsp_mac, r24k_dsp_mac_sat)
3237         (r24k_dsp_acc_ext, r24k_dsp_acc_mod, r24k_dsp_alu): New bypasses.
3238         * config/mips/74k.md (r74k_dsp_alu, r74k_dsp_alu_sat, r74k_dsp_mac)
3239         (r74k_dsp_mac_sat, r74k_dsp_acc_ext, r74k_dsp_acc_mod): New insn
3240         reservations.
3241         (r74k_dsp_mac, r74k_dsp_mac_sat, r74k_int_mult, r74k_int_mul3)
3242         (r74k_dsp_mac, r74k_dsp_mac_sat): New bypasses.
3244 2012-08-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3246         * config/spu/spu.c: Include "cfgloop.h".
3247         (spu_machine_dependent_reorg): Call loop_optimizer_init and
3248         loop_optimizer_finalize.  Use bb_loop_depth instead of loop_depth.
3249         Directly compare loop_father values where appropriate.
3250         * config/spu/t-spu-elf (spu.o): Update dependencies.
3252 2012-08-15  H.J. Lu  <hongjiu.lu@intel.com>
3254         * Makefile.in (tree-cfg.o): Also depend on $(TARGET_H).
3256 2012-08-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3258         PR tree-optimization/54245
3259         * gimple-ssa-strength-reduction.c (legal_cast_p_1): New function.
3260         (legal_cast_p): Split out logic to legal_cast_p_1.
3261         (analyze_increments): Avoid introducing multiplies in smaller types.
3263 2012-08-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3265         PR tree-optimization/54240
3266         * tree-ssa-phiopt.c (hoist_adjacent_loads): Correct test for
3267         existence of conditional move with given mode.
3269 2012-08-15  Richard Guenther  <rguenther@suse.de>
3271         * double-int.h (double_int::from_unsigned): Rename to ...
3272         (double_int::from_uhwi): ... this.
3273         (double_int::from_signed): Rename to ...
3274         (double_int::from_shwi): ... this.
3275         (double_int::to_signed): Rename to ...
3276         (double_int::to_shwi): ... this.
3277         (double_int::to_unsigned): Rename to ...
3278         (double_int::to_uhwi): ... this.
3279         (double_int::fits_unsigned): Rename to ...
3280         (double_int::fits_uhwi): ... this.
3281         (double_int::fits_signed): Rename to ...
3282         (double_int::fits_shwi): ... this.
3283         (double_int::fits): Rename to ...
3284         (double_int::fits_hwi): ... this.
3285         * double-int.c: Likewise.
3287 2012-08-15  Steven Bosscher  <steven@gcc.gnu.org>
3289         * timevar.def (TV_VARPOOL, TV_WHOPR_WPA_LTRANS_EXEC, TV_LIFE,
3290         TV_LIFE_UPDATE, TV_DF_UREC, TV_INLINE_HEURISTICS,
3291         TV_TREE_LINEAR_TRANSFORM, TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI,
3292         TV_VPT, TV_LOCAL_ALLOC, TV_GLOBAL_ALLOC, TV_SEQABSTR): Remove.
3293         (TV_IPA_INLINING, TV_FLATTEN_INLINING, TV_EARLY_INLINING,
3294         TV_INLINE_PARAMETERS, TV_LOOP_INIT, TV_LOOP_FINI): New.
3295         * timevar.c (timevar_print): Make printing width of timevar names
3296         more flexible, but enforce maximum length.
3297         * ipa-inline.c (pass_early_inline): Use TV_EARLY_INLINING.
3298         (pass_ipa_inline): Use TV_IPA_INLINING.
3299         * ipa-inline-analysis.c (pass_inline_parameters): Use
3300         TV_INLINE_HEURISTICS.
3301         * tree-ssa-loop.c (pass_tree_loop_init): No timevar for wrapper pass.
3302         (pass_tree_loop_done): Likewise.
3303         * final.c (pass_shorten_branches): Use TV_SHORTEN_BRANCH.
3304         * loop-init.c (loop_optimizer_init): Push/pop TV_LOOP_INIT.
3305         (loop_optimizer_finalize): Push/pop TV_LOOP_FINI.
3307 2012-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3309         * config/arm/neon.md (neon_vaba<mode> VDQIW): Canonicalize operands.
3310         (neon_vabal<mode> VDQIW): Likewise.
3312 2012-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3314         PR target/54212
3315         * config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
3316         mark as predicable. Adjust asm template.
3317         (vec_setv2di_internal): Likewise.
3318         (vec_extract<mode> VD, VQ): Likewise.
3319         (vec_extractv2di): Likewise.
3320         (neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
3321         (neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
3322         (neon_vdup_n<mode> VX, V32): Likewise.
3323         (neon_vdup_nv2di): Likewise.
3325 2012-08-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
3327         * config/mips/mips.md (define_attr accum_in): New instruction
3328         attribute.  Set it for imadd and fmadd patterns.
3329         * config/mips/mips.c (mips_linked_madd_p): Use accum_in to extract
3330         accumulator register.
3332 2012-08-14  Diego Novillo  <dnovillo@google.com>
3334         Merge from cxx-conversion branch.  Configury.
3336         * configure.ac (CXX_FOR_BUILD): Define and substitute.
3337         (BUILD_CXXFLAGS): Define.
3338         Remove all handlers of ENABLE_BUILD_WITH_CXX.
3339         Force all build to be with C++.
3340         * Makefile.in (BUILD_CXXFLAGS): Use it.
3341         Remove all handlers of ENABLE_BUILD_WITH_CXX.
3342         * configure: Regenerate.
3343         * config.in: Regenerate.
3344         * doc/install.texi: Remove documentation for --enable-build-with-cxx
3345         and --enable-build-poststage1-with-cxx.
3347 2012-08-14  Diego Novillo  <dnovillo@google.com>
3349         Merge from cxx-conversion branch.  Re-implement VEC in C++.
3351         * vec.c (vec_heap_free): Convert into a template function.
3352         (vec_gc_o_reserve_1): Make extern.
3353         (vec_gc_p_reserve): Remove.
3354         (vec_gc_p_reserve_exact): Remove.
3355         (vec_gc_o_reserve): Remove.
3356         (vec_gc_o_reserve_exact): Remove.
3357         (vec_heap_o_reserve_1): Make extern.
3358         (vec_heap_p_reserve): Remove.
3359         (vec_heap_p_reserve_exact): Remove.
3360         (vec_heap_o_reserve): Remove.
3361         (vec_heap_o_reserve_exact): Remove.
3362         (vec_stack_p_reserve): Remove.
3363         (vec_stack_p_reserve_exact): Remove.
3364         * vec.h (VEC_CHECK_INFO, VEC_CHECK_DECL, VEC_CHECK_PASS, VEC_ASSERT,
3365         VEC_ASSERT_FAIL, vec_assert_fail): Move earlier in the file.
3366         (VEC): Define to vec_t<T>.
3367         (vec_allocation_t): Define.
3368         (struct vec_prefix): Move earlier in the file.
3369         (vec_t<T>): New template.
3370         (DEF_VEC_I, DEF_VECL_ALLOC_I, DEF_VEC_P, DEF_VEC_ALLOC_P,
3371         DEF_VEC_O, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O,
3372         DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_O_STACK,
3373         DEF_VEC_ALLOC_I_STACK): Expand to 'struct vec_swallow_trailing_semi'.
3374         (DEF_VEC_A): Provide template instantiations for
3375         GC/PCH markers that do not traverse the vector.
3376         (vec_stack_p_reserve): Remove.
3377         (vec_stack_p_reserve_exact): Remove.
3378         (vec_stack_p_reserve_exact_1): Remove.
3379         (vec_stack_o_reserve): Remove.
3380         (vec_stack_o_reserve_exact): Remove.
3381         (vec_stack_free): Re-write as a template function.
3382         (vec_reserve): New template function.
3383         (vec_reserve_exact): New template function.
3384         (vec_heap_free): New template function if GATHER_STATISTICS is
3385         defined.  Otherwise, macro that expands to free().
3386         (VEC_length_1): New template function.
3387         (VEC_length): Call it.
3388         (VEC_empty_1): New template function.
3389         (VEC_empty): Call it.
3390         (VEC_address_1): New template function.
3391         (VEC_address): Call it.
3392         (VEC_last_1): New template function.
3393         (VEC_last): Call it.  Change return type to T&.
3394         Change all users that used VEC_Os.
3395         (VEC_index_1): New template function.
3396         (VEC_index): Call it.  Return a T& instead of a T*.
3397         Update all callers that were using VEC_O before.
3398         (VEC_iterate_1): New template function.
3399         (VEC_iterate): Call it.
3400         (VEC_embedded_size_1): New template function.
3401         (VEC_embedded_size): Call it.
3402         (VEC_embedded_init_1): New template function.
3403         (VEC_embedded_init): Call it.
3404         (VEC_alloc_1): New template function.
3405         (VEC_alloc): Call it.  If A is 'stack', call XALLOCAVAR to
3406         do the allocation.
3407         (VEC_free_1): New template function.
3408         (VEC_free): Call it.
3409         (VEC_copy_1): New template function.
3410         (VEC_copy): Call it.
3411         (VEC_space_1): New template function
3412         (VEC_space): Call it.
3413         (VEC_reserve_1): New template function.
3414         (VEC_reserve): Call it.
3415         (VEC_reserve_exact_1): New template function.
3416         (VEC_reserve_exact): Call it.
3417         (VEC_splice_1): New template function.
3418         (VEC_splice): Call it.
3419         (VEC_safe_splice_1): New template function.
3420         (VEC_safe_splice): Call it.
3421         (VEC_quick_push_1): New template function.  Create two overloads, one
3422         accepting T, the other accepting T *.  Update all callers
3423         where T and T * are ambiguous.
3424         (VEC_quick_push): Call it.
3425         (VEC_safe_push_1): New template function. Create two overloads, one
3426         accepting T, the other accepting T *.  Update all callers
3427         where T and T * are ambiguous.
3428         (VEC_safe_push): Call it.
3429         (VEC_pop_1): New template function.
3430         (VEC_pop): Call it.
3431         (VEC_truncate_1): New template function.
3432         (VEC_truncate): Call it.
3433         (VEC_safe_grow_1): New template function.
3434         (VEC_safe_grow): Call it.
3435         (VEC_safe_grow_cleared_1): New template function.
3436         (VEC_safe_grow_cleared): Call it.
3437         (VEC_replace_1): New template function.
3438         (VEC_replace): Call it.  Always accept T instead of T*.
3439         Update all callers that used VEC_Os.
3440         (VEC_quick_insert_1): New template function.
3441         (VEC_quick_insert): Call it.
3442         (VEC_safe_insert_1): New template function.
3443         (VEC_safe_insert): Call it.
3444         (VEC_ordered_remove_1): New template function.
3445         (VEC_ordered_remove): Call it.
3446         (VEC_unordered_remove_1): New template function.
3447         (VEC_unordered_remove): Call it.
3448         (VEC_block_remove_1): New template function.
3449         (VEC_block_remove): Call it.
3450         (VEC_lower_bound_1): New template function.
3451         (VEC_lower_bound): Call it.
3452         (VEC_OP): Remove.
3453         (DEF_VEC_FUNC_P): Remove.
3454         (DEF_VEC_ALLOC_FUNC_P): Remove.
3455         (DEF_VEC_NONALLOC_FUNCS_P): Remove.
3456         (DEF_VEC_FUNC_O): Remove.
3457         (DEF_VEC_ALLOC_FUNC_O): Remove.
3458         (DEF_VEC_NONALLOC_FUNCS_O): Remove.
3459         (DEF_VEC_ALLOC_FUNC_I): Remove.
3460         (DEF_VEC_NONALLOC_FUNCS_I): Remove.
3461         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove.
3462         (DEF_VEC_ALLOC_FUNC_O_STACK): Remove.
3463         (DEF_VEC_ALLOC_FUNC_I_STACK): Remove.
3464         (vec_reserve_exact): New template function.
3466         * gengtype-lex.l (DEF_VEC_ALLOC_[IOP]/{EOID}): Remove.
3467         * gengtype-parse.c (token_names): Remove DEF_VEC_ALLOC_[IOP].
3468         (typedef_name): Emit vec_t<C1> instead of VEC_C1_C2.
3469         (def_vec_alloc): Remove.  Update all callers.
3470         * gengtype.c (filter_type_name): New.
3471         (output_mangled_typename): Call it.
3472         (write_func_for_structure): Likewise.
3473         (write_types): Likewise.
3474         (write_root): Likewise.
3475         (write_typed_alloc_def): Likewise.
3476         (note_def_vec): Emit vec_t<TYPE_NAME> instead of VEC_TYPE_NAME_base.
3477         (note_def_vec_alloc): Remove.
3478         * gengtype.h (note_def_vec_alloc): Remove.
3479         (DEFVEC_ALLOC): Remove token code.
3481         * df-scan.c (df_bb_verify): Remove call to df_free_collection_rec
3482         inside the insn traversal loop.
3483         * gimplify.c (gimplify_compound_lval): Rename STACK to EXPR_STACK.
3484         * ipa-inline.c (inline_small_functions): Rename HEAP to EDGE_HEAP.
3485         * reg-stack.c (stack): Rename to STACK_PTR.  Update all users.
3486         * tree-vrp.c (stack): Rename to EQUIV_STACK.  Update all users.
3488         * config/bfin/bfin.c (hwloop_optimize): Update some calls to
3489         VEC_* for vectors of non-pointers.
3490         * config/c6x/c6x.c (try_rename_operands): Likewise.
3491         (reshuffle_units): Likewise.
3492         * config/mips/mips.c (mips_multi_start): Likewise.
3493         (mips_multi_add): Likewise.
3494         (mips_multi_copy_insn): Likewise.
3495         (mips_multi_set_operand): Likewise.
3496         * hw-doloop.c (discover_loop): Likewise.
3497         (discover_loops): Likewise.
3498         (reorg_loops): Likewise.
3500 2012-08-14  Diego Novillo  <dnovillo@google.com>
3502         Merge from cxx-conversion branch.  C++ support in gengtype.
3504         * coretypes.h (gt_pointer_operator): Move from ...
3505         * ggc.h: ... here.
3506         * doc/gty.texi: Document support for C++ templates and
3507         user-provided markers.
3508         * gcc/gengtype-lex.l: Update copyright year.
3509         Remove support for recognizing DEF_VEC_O, DEF_VEC_P and DEFVEC_I.
3510         * gengtype-parse.c: Update copyright year.
3511         (token_names): Remove DEF_VEC_O, DEF_VEC_P and DEF_VEC_I.
3512         (require_template_declaration): New.
3513         (typedef_name): Call it.
3514         (type): Replace IS_UNION with KIND. Replace all users.
3515         (def_vec): Remove.  Update all users.
3516         * gengtype-state.c (type_lineloc): Handle TYPE_USER_STRUCT.
3517         (write_state_user_struct_type): New.
3518         (write_state_type): Call it.
3519         (read_state_user_struct_type): New.
3520         (read_state_type): Call it.
3521         * gengtype.c: Update copyright year.
3522         (dump_pair): Move declaration to the top.
3523         (dump_type): Likewise.
3524         (dump_type_list): Likewise.
3525         (dbgprint_count_type_at): Handle TYPE_USER_STRUCT.
3526         (create_user_defined_type): New.
3527         (resolve_typedef): Call it.
3528         (new_structure): Replace argument ISUNION with KIND.
3529         Change users to refer to KIND directly.
3530         Update all callers.
3531         (find_structure): Likewise.
3532         (set_gc_used_type): Handle TYPE_USER_STRUCT.
3533         (create_file): Update HDR to include new copyright year.
3534         (struct walk_type_data): Add field IN_PTR_FIELD.
3535         (output_mangled_typename): Handle TYPE_USER_STRUCT.
3536         (walk_type): Set D->IN_PTR_FIELD when walking a TYPE_POINTER.
3537         Clear it afterwards.
3538         Handle TYPE_USER_STRUCT.
3539         (write_types_process_field): Handle TYPE_USER_STRUCT.
3540         (get_type_specifier): Move earlier in the file.
3541         (write_type_decl): New.
3542         (write_marker_function_name): New.
3543         (write_user_func_for_structure_ptr): New.
3544         (write_user_func_for_structure_body): New.
3545         (write_user_marking_functions): New.
3546         (write_func_for_structure): Call write_marker_function_name
3547         and write_type_decl.
3548         Do not call walk_type for TYPE_USER_STRUCT. Emit a call to the user
3549         function directly.
3550         Call write_user_marking_functions on TYPE_USER_STRUCTs.
3551         (write_types_local_user_process_field): New.
3552         (write_pch_user_walking_for_structure_body): New.
3553         (write_pch_user_walking_functions): New.
3554         (write_types_local_process_field): Handle TYPE_USER_STRUCT.
3555         (write_local_func_for_structure): Do not call walk_type for
3556         TYPE_USER_STRUCT. Instead, emit the call to gt_pch_nx directly.
3557         Call write_pch_user_walking_functions for TYPE_USER_STRUCTs.
3558         (write_root): Handle TYPE_USER_STRUCT.
3559         (vec_prefix_type): Remove.  Update all users.
3560         (note_def_vec): Remove.  Update all users.
3561         (dump_typekind): Handle TYPE_USER_STRUCT.
3562         (dump_type): Initialize SEEN_TYPES, if needed.
3563         Handle TYPE_USER_STRUCT.
3564         (dump_everything): Do not initialize SEEN_TYPES.
3565         * gengtype.h: Update copyright year.
3566         (enum typekind): Add TYPE_USER_STRUCT.
3567         (union_or_struct_p): Rename from UNION_OR_STRUCT_P.
3568         Convert into function.
3569         Add an overload taking const_type_p.
3570         Update all callers.
3571         (new_structure): Change second field to type enum typekind.
3572         Update all users.
3573         (find_structure): Likewise.
3574         (note_def_vec): Remove.
3575         (DEFVEC_OP): Remove.
3576         (DEFVEC_I): Remove.
3577         * ggc-page.c (gt_ggc_mx): Add entry points for marking
3578         'const char *&', 'unsigned char *&' and 'unsigned char&'.
3579         * ggc-zone.c (gt_ggc_mx): Add entry points for marking
3580         'const char *&' and 'unsigned char *&'.
3581         * stringpool.c (gt_pch_nx): Add entry points for marking
3582         'const char *&', 'unsigned char *&' and 'unsigned char&'.
3583         Add an entry point for the overload taking arguments 'unsigned char
3584         *', 'gt_pointer_operator' and 'void *'.
3585         * vec.h (struct vec_prefix): Remove GTY marker.
3586         (struct vec_t): Remove GTY((length)) attribute from field 'vec'.
3587         (gt_ggc_mx (vec_t<T> *)): New template function.
3588         (gt_pch_nx (vec_t<T> *)): New template function.
3589         (gt_pch_nx (vec_t<T *> *, gt_pointer_operator, void *)): New template
3590         function.
3591         (gt_pch_nx (vec_t<T> *, gt_pointer_operator, void *)): New template
3592         function.
3594         * basic-block.h (struct edge_def): Mark GTY((user)).
3595         Remove all GTY markers from fields.
3596         (gt_ggc_mx): Declare.
3597         (gt_pch_nx): Declare.
3598         * tree-cfg.c (gt_ggc_mx): New.
3599         (gt_pch_nx): New.
3601         * gengtype-lex.l (USER_GTY): Add pattern for "user".
3602         * gengtype-parse.c (option): Handle USER_GTY.
3603         (opts_have): New.
3604         (type): Call it.
3605         If the keyword 'user' is used, do not walk the fields
3606         of the structure.
3607         * gengtype.h (USER_GTY): Add.
3608         * doc/gty.texi: Update.
3610 2012-08-14  Lawrence Crowl  <crowl@google.com>
3612         Merge cxx-conversion branch.  Implement C++ hash table.
3614         * hash-table.h: New. Implementation borrowed from libiberty/hashtab.c.
3615         * hash-table.c: Likewise.
3616         * tree-ssa-tail-merge.c: Include hash-table.h instead of hashtab.h.
3617         (static htab_t same_succ_htab): Change type to hash_table;
3618         move specification of helper functions from create call to declaration.
3619         Change users to invoke member functions.
3620         (same_succ_print_traverse): Make extern ssa_.... Change callers.
3621         Remove void* casting.
3622         (same_succ_hash): Likewise.
3623         (same_succ_equal): Likewise.
3624         (same_succ_delete): Likewise.
3625         * tree-ssa-threadupdate.c: Include hash-table.h.
3626         (struct local_info): Rename to ssa_local_info_t to avoid overloading
3627         the type name local_info with the variable name local_info.
3628         (static htab_t redirection_data): Change type to hash_table.
3629         Move specification of helper functions from create call to declaration.
3630         Change users to invoke member functions.
3631         (redirection_data_hash): Make extern ssa_.... Change callers.
3632         Remove void* casting.
3633         (redirection_data_eq): Likewise.
3634         (fix_duplicate_block_edges): Likewise.
3635         (create_duplicates): Likewise.
3636         (fixup_template_block): Likewise.
3637         (redirect_edges): Likewise.
3638         (lookup_redirection_data): Change types associated with the hash table
3639         from void* to their actual type. Remove unnecessary casts.
3640         * tree-ssa-ccp.c: Include hash-table.h.
3641         (typedef gimple_htab): New.  Uses hash_table.  Replace specific uses
3642         of htab_t with gimple_htab.  Change users to invoke member functions.
3643         Move specification of helper functions from create call to declaration.
3644         * tree-ssa-coalesce.c: Include hash-table.h instead of hashtab.h.
3645         (hash_ssa_name_by_var): Make extern. Remove void* casting.
3646         (eq_ssa_name_by_var): Likewise.
3647         (coalesce_ssa_name): Change type of local static htab_t ssa_name_hash
3648         to hash_table. Change users to invoke member functions.
3649         Move specification of helper functions from create call to declaration.
3650         * coverage.c: Include hash-table.h instead of hashtab.h.
3651         (static htab_t counts_hash): Change type to hash_table;
3652         move specification of helper functions from create call to declaration.
3653         Change users to invoke member functions.
3654         (htab_counts_entry_hash): Make extern. Rename with coverage_... instead
3655         of htab_... Remove void* casting.
3656         (htab_counts_entry_eq): Likewise.
3657         (htab_counts_entry_del): Likewise.
3658         * tree-ssa-pre.c: Include hash-table.h instead of hashtab.h.
3659         (static htab_t expression_to_id): Change type to hash_table.
3660         Move specification of helper functions from create call to declaration.
3661         Change users to invoke member functions.
3662         (static htab_t phi_translate_table): Likewise.
3663         (pre_expr_eq): Make extern ssa_.... Change callers.
3664         Remove void* casting.
3665         (pre_expr_hash): Likewise.
3666         (expr_pred_trans_hash): Likewise.
3667         (expr_pred_trans_eq): Likewise.
3668         (alloc_expression_id): Change types associated with the hash table
3669         from void* to their actual type. Remove unnecessary casts.
3670         (lookup_expression_id): Likewise.
3671         (phi_trans_lookup): Likewise.
3672         (phi_trans_add): Likewise.
3673         * stringpool.c: Rename uses of libcpp typedef hash_table to
3674         cpp_hash_table.
3675         * Makefile.in: Add hash-table.o to OBJS-libcommon-target.
3676         Add $(HASH_TABLE_H). Add new dependences on $(HASH_TABLE_H).
3678 2012-08-14  Lawrence Crowl  <crowl@google.com>
3680         Merge from cxx-conversion branch.  Re-write double_int in C++.
3682         * hash-table.h
3683         (typedef double_int): Change to struct (POD).
3684         (double_int::make): New overloads for int to double-int conversion.
3685         (double_int::mask): New.
3686         (double_int::max_value): New.
3687         (double_int::min_value): New.
3688         (double_int::operator ++): New.
3689         (double_int::operator --): New.
3690         (double_int::operator *=): New.
3691         (double_int::operator +=): New.
3692         (double_int::operator -=): New.
3693         (double_int::to_signed): New.
3694         (double_int::to_unsigned): New.
3695         (double_int::fits_unsigned): New.
3696         (double_int::fits_signed): New.
3697         (double_int::fits): New.
3698         (double_int::trailing_zeros): New.
3699         (double_int::popcount): New.
3700         (double_int::multiple_of): New.
3701         (double_int::set_bit): New.
3702         (double_int::mul_with_sign): New.
3703         (double_int::operator * (binary)): New.
3704         (double_int::operator + (binary)): New.
3705         (double_int::operator - (binary)): New.
3706         (double_int::operator - (unary)): New.
3707         (double_int::operator ~ (unary)): New.
3708         (double_int::operator & (binary)): New.
3709         (double_int::operator | (binary)): New.
3710         (double_int::operator ^ (binary)): New.
3711         (double_int::and_not): New.
3712         (double_int::lshift): New.
3713         (double_int::rshift): New.
3714         (double_int::alshift): New.
3715         (double_int::arshift): New.
3716         (double_int::llshift): New.
3717         (double_int::lrshift): New.
3718         (double_int::lrotate): New.
3719         (double_int::rrotate): New.
3720         (double_int::div): New.
3721         (double_int::sdiv): New.
3722         (double_int::udiv): New.
3723         (double_int::mod): New.
3724         (double_int::smod): New.
3725         (double_int::umod): New.
3726         (double_int::divmod): New.
3727         (double_int::sdivmod): New.
3728         (double_int::udivmod): New.
3729         (double_int::ext): New.
3730         (double_int::zext): New.
3731         (double_int::sext): New.
3732         (double_int::is_zero): New.
3733         (double_int::is_one): New.
3734         (double_int::is_minus_one): New.
3735         (double_int::is_negative): New.
3736         (double_int::cmp): New.
3737         (double_int::ucmp): New.
3738         (double_int::scmp): New.
3739         (double_int::ult): New.
3740         (double_int::ugt): New.
3741         (double_int::slt): New.
3742         (double_int::sgt): New.
3743         (double_int::max): New.
3744         (double_int::smax): New.
3745         (double_int::umax): New.
3746         (double_int::min): New.
3747         (double_int::smin): New.
3748         (double_int::umin): New.
3749         (double_int::operator ==): New.
3750         (double_int::operator !=): New.
3751         (shwi_to_double_int): Change implementation to use member function.
3752         (double_int_minus_one): Likewise.
3753         (double_int_zero): Likewise.
3754         (double_int_one): Likewise.
3755         (double_int_two): Likewise.
3756         (double_int_ten): Likewise.
3757         (uhwi_to_double_int): Likewise.
3758         (double_int_to_shwi): Likewise.
3759         (double_int_to_uhwi): Likewise.
3760         (double_int_fits_in_uhwi_p): Likewise.
3761         (double_int_fits_in_shwi_p): Likewise.
3762         (double_int_fits_in_hwi_p): Likewise.
3763         (double_int_mul): Likewise.
3764         (double_int_mul_with_sign): Likewise.
3765         (double_int_add): Likewise.
3766         (double_int_sub): Likewise.
3767         (double_int_neg): Likewise.
3768         (double_int_div): Likewise.
3769         (double_int_sdiv): Likewise.
3770         (double_int_udiv): Likewise.
3771         (double_int_mod): Likewise.
3772         (double_int_smod): Likewise.
3773         (double_int_umod): Likewise.
3774         (double_int_divmod): Likewise.
3775         (double_int_sdivmod): Likewise.
3776         (double_int_udivmod): Likewise.
3777         (double_int_multiple_of): Likewise.
3778         (double_int_setbit): Likewise.
3779         (double_int_ctz): Likewise.
3780         (double_int_not): Likewise.
3781         (double_int_ior): Likewise.
3782         (double_int_and): Likewise.
3783         (double_int_and_not): Likewise.
3784         (double_int_xor): Likewise.
3785         (double_int_lshift): Likewise.
3786         (double_int_rshift): Likewise.
3787         (double_int_lrotate): Likewise.
3788         (double_int_rrotate): Likewise.
3789         (double_int_cmp): Likewise.
3790         (double_int_scmp): Likewise.
3791         (double_int_ucmp): Likewise.
3792         (double_int_max): Likewise.
3793         (double_int_smax): Likewise.
3794         (double_int_umax): Likewise.
3795         (double_int_min): Likewise.
3796         (double_int_smin): Likewise.
3797         (double_int_umin): Likewise.
3798         (double_int_ext): Likewise.
3799         (double_int_sext): Likewise.
3800         (double_int_zext): Likewise.
3801         (double_int_mask): Likewise.
3802         (double_int_max_value): Likewise.
3803         (double_int_min_value): Likewise.
3804         (double_int_zero_p): Likewise.
3805         (double_int_one_p): Likewise.
3806         (double_int_minus_one_p): Likewise.
3807         (double_int_equal_p): Likewise.
3808         (double_int_popcount): Likewise.
3809         * hash-table.c
3810         (double_int_mask): Reuse implementation for double_int::mask.
3811         (double_int_max_value): Likewise.
3812         (double_int_min_value): Likewise.
3813         (double_int_ext): Likewise.
3814         (double_int_zext): Likewise.
3815         (double_int_sext): Likewise.
3816         (double_int_mul_with_sign): Likewise.
3817         (double_int_divmod): Likewise.
3818         (double_int_sdivmod): Likewise.
3819         (double_int_udivmod): Likewise.
3820         (double_int_div): Likewise.
3821         (double_int_sdiv): Likewise.
3822         (double_int_udiv): Likewise.
3823         (double_int_mod): Likewise.
3824         (double_int_smod): Likewise.
3825         (double_int_umod): Likewise.
3826         (double_int_multiple_of): Likewise.
3827         (double_int_lshift): Likewise.
3828         (double_int_rshift): Likewise.
3829         (double_int_lrotate): Likewise.
3830         (double_int_rrotate): Likewise.
3831         (double_int_cmp): Likewise.
3832         (double_int_ucmp): Likewise.
3833         (double_int_scmp): Likewise.
3834         (double_int_max): Likewise.
3835         (double_int_smax): Likewise.
3836         (double_int_umax): Likewise.
3837         (double_int_min): Likewise.
3838         (double_int_smin): Likewise.
3839         (double_int_umin): Likewise.
3840         (double_int_min): Likewise.
3841         (double_int_min): Likewise.
3842         (double_int_min): Likewise.
3843         (double_int_min): Likewise.
3844         (double_int_min): Likewise.
3845         (double_int_min): Likewise.
3846         (double_int::alshift): New.
3847         (double_int::arshift): New.
3848         (double_int::llshift): New.
3849         (double_int::lrshift): New.
3850         (double_int::ult): New.
3851         (double_int::ugt): New.
3852         (double_int::slt): New.
3853         (double_int::sgt): New.
3854         (double_int_setbit): Reuse implementation for double_int::set_bit,
3855         which avoids a name conflict with a macro.
3856         (double_int_double_int_ctz): Reuse implementation for
3857         double_int::trailing_zeros.
3858         (double_int_fits_in_shwi_p): Reuse implementation for
3859         double_int::fits_signed.
3860         (double_int_fits_in_hwi_p): Reuse implementation for double_int::fits.
3861         (double_int_mul): Reuse implementation for binary
3862         double_int::operator *.
3863         (double_int_add): Likewise.
3864         (double_int_sub): Likewise.
3865         (double_int_neg): Reuse implementation for unary
3866         double_int::operator -.
3867         (double_int_max_value): Likewise.
3868         * fixed-value.c: Change to use member functions introduced above.
3870 2012-08-14  Lawrence Crowl  <crowl@google.com>
3872         Merge cxx-conversion branch.  Support tree macro calling from gdb.
3874         * tree.h (tree_check): New.
3875         (TREE_CHECK): Use inline function above instead of __extension__.
3876         (tree_not_check): New.
3877         (TREE_NOT_CHECK): Use inline function above instead of __extension__.
3878         (tree_check2): New.
3879         (TREE_CHECK2): Use inline function above instead of __extension__.
3880         (tree_not_check2): New.
3881         (TREE_NOT_CHECK2): Use inline function above instead of __extension__.
3882         (tree_check3): New.
3883         (TREE_CHECK3): Use inline function above instead of __extension__.
3884         (tree_not_check3): New.
3885         (TREE_NOT_CHECK3): Use inline function above instead of __extension__.
3886         (tree_check4): New.
3887         (TREE_CHECK4): Use inline function above instead of __extension__.
3888         (tree_not_check4): New.
3889         (TREE_NOT_CHECK4): Use inline function above instead of __extension__.
3890         (tree_check5): New.
3891         (TREE_CHECK5): Use inline function above instead of __extension__.
3892         (tree_not_check5): New.
3893         (TREE_NOT_CHECK5): Use inline function above instead of __extension__.
3894         (contains_struct_check): New.
3895         (CONTAINS_STRUCT_CHECK): Use inline function above instead of
3896         __extension__.
3897         (tree_class_check): New.
3898         (TREE_CLASS_CHECK): Use inline function above instead of __extension__.
3899         (tree_range_check): New.
3900         (TREE_RANGE_CHECK): Use inline function above instead of __extension__.
3901         (omp_clause_subcode_check): New.
3902         (OMP_CLAUSE_SUBCODE_CHECK): Use inline function above instead of
3903         __extension__.
3904         (omp_clause_range_check): New.
3905         (OMP_CLAUSE_RANGE_CHECK): Use inline function above instead of
3906         __extension__.
3907         (expr_check): New.
3908         (EXPR_CHECK): Use inline function above instead of __extension__.
3909         (non_type_check): New.
3910         (NON_TYPE_CHECK): Use inline function above instead of __extension__.
3911         (tree_vec_elt_check): New.
3912         (TREE_VEC_ELT_CHECK): Use inline function above instead of
3913         __extension__.
3914         (omp_clause_elt_check): New.
3915         (OMP_CLAUSE_ELT_CHECK): Use inline function above instead of
3916         __extension__.
3917         (tree_operand_check): New.
3918         (TREE_OPERAND_CHECK): Use inline function above instead of
3919         __extension__.
3920         (tree_operand_check_code): New.
3921         (TREE_OPERAND_CHECK_CODE): Use inline function above instead of
3922         __extension__.
3923         (TREE_CHAIN): Simplify implementation.
3924         (TREE_TYPE): Simplify implementation.
3925         (tree_operand_length): Move for compilation dependences.
3926         * gdbinit.in: (macro define __FILE__): New.
3927         (macro define __LINE__): New.
3928         (skip "tree.h"): New.
3930 2012-08-14  Oleg Endo  <olegendo@gcc.gnu.org>
3932         PR target/52933
3933         * config/sh/sh.md (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0,
3934         *cmp_div0s_1, *cbranch_div0s, *movsicc_div0s): New insns.
3935         * config/sh/sh.c (sh_rtx_costs): Handle div0s patterns.
3937 2012-08-14  Oleg Endo  <olegendo@gcc.gnu.org>
3939         PR target/50751
3940         * config/sh/constraints.md (Sra): New constraint.
3941         * config/sh/predicates.md (simple_mem_operand,
3942         displacement_mem_operand, zero_extend_movu_operand): New predicates.
3943         (zero_extend_operand): Check zero_extend_movu_operand for SH2A.
3944         * config/sh/sh.md (*zero_extendqisi2_disp_mem,
3945         *zero_extendhisi2_disp_mem): Add new insns and two new related
3946         peephole2 patterns.
3948 2012-08-14  Steven Bosscher  <steven@gcc.gnu.org>
3950         * graphite-scop-detection.c (create_sese_edges): Compute dominance
3951         info before trying to fix loop structure.
3952         * cfgloopmanip.c (fix_loop_structure): Require fast DOM queries.
3953         * tree-cfgcleanup.c (repair_loop_structures): Likewise.
3954         * cfgloop.c (verify_loop_structure): Verify loop fathers.
3956         * dominance.c (init_dom_info): Use gcc_checking_assert, not gcc_assert.
3957         (dom_convert_dir_to_idx, compute_dom_fast_query,
3958         get_immediate_dominator, set_immediate_dominator, get_dominated_by,
3959         redirect_immediate_dominators, nearest_common_dominator,
3960         (dominated_by_p, bb_dom_dfs_in, bb_dom_dfs_out, recompute_dominator,
3961         iterate_fix_dominators, add_to_dominance_info,
3962         delete_from_dominance_info): Likewise.
3964 2012-08-14  Richard Guenther  <rguenther@suse.de>
3966         * cfgexpand.c (expand_used_vars): Use virtual_operand_p.
3967         * gimple-pretty-print.c (dump_phi_nodes): Likewise.
3968         * gimple-streamer-out.c (output_bb): Likewise.
3969         * graphite-sese-to-poly.c (scalar_close_phi_node_p): Likewise.
3970         (rewrite_reductions_out_of_ssa): Likewise.
3971         (rewrite_commutative_reductions_out_of_ss): Likewise.
3972         * ipa-split.c (verify_non_ssa_vars): Likewise.
3973         (consider_split): Likewise.
3974         (visit_bb): Likewise.
3975         (split_function): Likewise.
3976         * lto-streamer-out.c (output_ssa_names): Likewise.
3977         * sese.c (rename_uses): Likewise.
3978         * tree-cfg.c (replace_uses_by): Likewise.
3979         (gimple_merge_blocks): Likewise.
3980         (gimple_cfg2dot): Likewise.
3981         (verify_gimple_phi): Likewise.
3982         (replace_ssa_name): Likewise.
3983         (move_block_to_fn): Likewise.
3984         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
3985         * tree-if-conv.c (if_convertible_phi_p): Likewise.
3986         (predicate_scalar_phi): Likewise.
3987         * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
3988         (copy_phis_for_bb): Likewise.
3989         * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
3990         (destroy_loop): Likewise.
3991         * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
3992         (insert_backedge_copies): Likewise.
3993         * tree-parloops.c (transform_to_exit_first_loop): Likewise.
3994         (gather_scalar_reductions): Likewise.
3995         (try_create_reduction_list): Likewise.
3996         * tree-scalar-evolution.c (analyze_scalar_evolution_for_all_loop_ph):
3997         Likewise.
3998         (scev_const_prop): Likewise.
3999         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
4000         (get_default_value): Likewise.
4001         (ccp_initialize): Likewise.
4002         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
4003         * tree-ssa-copy.c (may_propagate_copy): Likewise.
4004         (init_copy_prop): Likewise.
4005         * tree-ssa-dce.c (propagate_necessity): Likewise.
4006         (remove_dead_phis): Likewise.
4007         (forward_edge_to_pdom): Likewise.
4008         (eliminate_unnecessary_stmts): Likewise.
4009         * tree-ssa-live.c (partition_view_init): Likewise.
4010         (remove_unused_locals): Likewise.
4011         (register_ssa_partition_check): Likewise.
4012         * tree-ssa-loop-im.c (movement_possibility): Likewise.
4013         (move_computations_stmt): Likewise.
4014         * tree-ssa-loop-ivopts.c (determine_biv_step): Likewise.
4015         (record_invariant): Likewise.
4016         (find_interesting_uses_outside): Likewise.
4017         (determine_set_costs): Likewise.
4018         * tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
4019         (find_uses_to_rename_use): Likewise.
4020         (check_loop_closed_ssa_use): Likewise.
4021         (rewrite_phi_with_iv): Likewise.
4022         (canonicalize_loop_ivs): Likewise.
4023         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4024         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
4025         * tree-ssa-pre.c (make_values_for_phi): Likewise.
4026         (compute_avail): Likewise.
4027         (eliminate): Likewise.
4028         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
4029         * tree-ssa-reassoc.c (phi_rank): Likewise.
4030         * tree-ssa-strlen.c (strlen_enter_block): Likewise.
4031         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
4032         (ipa_pta_execute): Likewise.
4033         * tree-ssa-tail-merge.c (same_succ_hash): Likewise.
4034         (release_last_vdef): Likewise.
4035         (same_phi_alternatives_1): Likewise.
4036         (bb_has_non_vop_phi): Likewise.
4037         (vop_phi): Likewise.
4038         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
4039         Likewise.
4040         * tree-ssa-uninit.c (warn_uninitialized_phi): Likewise.
4041         (execute_late_warn_uninitialized): Likewise.
4042         * tree-ssa.c (verify_ssa_name): Likewise.
4043         (verify_phi_args): Likewise.
4044         (verify_ssa): Likewise.
4045         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4046         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
4047         Likewise.
4048         (slpeel_tree_peel_loop_to_edge): Likewise.
4049         (vect_can_advance_ivs_p): Likewise.
4050         (vect_update_ivs_after_vectorizer): Likewise.
4051         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
4052         * tree-vrp.c (remove_range_assertions): Likewise.
4053         * value-prof.c (gimple_divmod_values_to_profile): Likewise.
4055 2012-08-14  Richard Guenther  <rguenther@suse.de>
4057         PR tree-optimization/54146
4058         * tree-ssa-pre.c (do_regular_insertion): Use a VEC
4059         indexed by pred edge index for avail.
4060         (do_partial_partial_insertion): Likewise.
4061         (insert_into_preds_of_block): Adjust.
4063 2012-08-14  Richard Guenther  <rguenther@suse.de>
4065         * gimplify.c (create_tmp_from_val): Mark temporary with
4066         DECL_GIMPLE_REG_P here ...
4067         (internal_get_tmp_var): ... instead of here.  If we go into
4068         SSA create an SSA name instead of a VAR_DECL.
4069         (gimplify_modify_expr): Do not create SSA names here, assert
4070         we already got them.
4071         (force_gimple_operand_1): Create an SSA name if we go into SSA.
4072         * sese.c (rename_uses): Simplify.
4074 2012-08-14  Richard Guenther  <rguenther@suse.de>
4076         * tree-into-ssa.c: Include diagnostic-core.h.
4077         * Makefile.in (tree-into-ssa.o): Adjust.
4079 2012-08-14  Richard Guenther  <rguenther@suse.de>
4081         * tree-into-ssa.c (update_ssa): Verify we do not rename
4082         symbols that are already partly in SSA form.
4084 2012-08-14  Jakub Jelinek  <jakub@redhat.com>
4086         PR middle-end/53411
4087         PR rtl-optimization/53495
4088         * ira.c (ira): Move delete_trivially_dead_insns call before
4089         find_moveable_pseudos call.
4091 2012-08-13  Steven Bosscher  <steven@gcc.gnu.org>
4093         * tree-ssa-pre.c (do_regular_insertion): Add FIXME markers at points
4094         of potentially huge memset overhead.
4095         (do_partial_partial_insertion): Likewise.
4096         * cfgexpand.c (gimple_expand_cfg): Use XCNEWVEC instead of xcalloc.
4097         * tree-vrp.c (find_assert_locations): Use XNEWVEC instead of XCNEWVEC
4098         for arrays to be filled by pre_and_rev_post_order_compute.  Allocate
4099         the right number of slots, not that number plus NUM_FIXED_BLOCKS.
4100         * tree-ssa-reassoc.c (init_reassoc): Likewise.
4101         * cfganal.c (dfs_enumerate_from): Use XNEWVEC instead of XCNEWVEC for
4102         array used as stack.
4103         * tree-ssa-sccvn.c (init_scc_vn): Use XNEWVEC instead of XCNEWVEC for
4104         arrays to be filled by pre_and_rev_post_order_compute.
4105         * cfgloopmanip.c (find_path): Use XNEWVEC instead of XCNEWVEC for
4106         array to be filled by dfs_enumerate_from.
4107         (remove_path): Likewise.
4108         (duplicate_loop_to_header_edge): Use XNEWVEC instead of XCNEWVEC for
4109         array of loops that is filled on the next lines.
4110         * cfgloop.c (get_loop_body): Use XNEWVEC instead of XCNEWVEC for
4111         array of basic blocks to be returned.
4112         (get_loop_body_in_dom_order): Likewise.
4113         (get_loop_body_in_bfs_order): Likewise.
4114         * tree-ssa-loop-manip.c (loop_renamer_obstack): New static obstack
4115         for all bitmaps used for rewriting into loop-closed SSA form.
4116         (add_exit_phis_var): Allocate the def bitmap on it.  Clear the livein
4117         bitmap at the end to release a lot of memory.
4118         (add_exit_phis): Allocate the exits bitmap on the new obstack.
4119         (get_loops_exits): Allocate the exits bitmap on the new obstack.
4120         (find_uses_to_rename_use): Allocate a use_blocks bitmap if ver is
4121         seen for the first time.
4122         (find_uses_to_rename): Add "???" for why the whole function must
4123         be re-scanned if changed_bbs is empty.
4124         (rewrite_into_loop_closed_ssa): Allocate bitmaps on the new obstack.
4125         Use XNEWVEC to allocate the use_blocks array.  Initialize the new
4126         obstack, and free it at the end.  Remove loop over all SSA names.
4127         (check_loop_closed_ssa_stmt): Look only at SSA_OP_USE operands.
4128         * tree-cfg.c (move_sese_region_to_fn): Use XNEWVEC instead of
4129         xcalloc to allocate edge_pred and edge_flag arrays.
4131 2012-08-13  Uros Bizjak  <ubizjak@gmail.com>
4133         * config/i386/i386.h (FIXED_REGISTERS): Do not mark REX registers here.
4134         (CALL_USED_REGISTERS): Use bitmaps to mark call-used registers
4135         for different ABIs.
4136         (enum reg_class): Move CLOBBERED_REGS just before GENERAL_REGS.
4137         (REG_CLASS_NAMES): Update.
4138         (REG_CLASS_CONTENTS): Update.  Clear CLOBBERED_REGS members.
4139         * config/i386/i386.c (ix86_conditional_register_usage): Disable
4140         REX registers on 32bit targets.  Handle bitmaps from
4141         CALL_USED_REGISTERS initializer.  Calculate CLOBBERED_REGS register
4142         set from GENERAL_REGS also for 32bit targets.  Do not change call
4143         used register set for TARGET_64BIT_MS_ABI separately.
4145 2012-08-13  Richard Guenther  <rguenther@suse.de>
4147         * basic-block.h (struct basic_block): Remove loop_depth
4148         member, move flags and index members next to each other.
4149         * cfgloop.h (bb_loop_depth): New inline function.
4150         * cfghooks.c (split_block): Do not set loop_depth.
4151         (duplicate_block): Likewise.
4152         * cfgloop.c (flow_loop_nodes_find): Likewise.
4153         (flow_loops_find): Likewise.
4154         (add_bb_to_loop): Likewise.
4155         (remove_bb_from_loops): Likewise.
4156         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
4157         * gimple-streamer-in.c (input_bb): Do not stream loop_depth.
4158         * gimple-streamer-out.c (output_bb): Likewise.
4159         * bt-load.c: Include cfgloop.h.
4160         (migrate_btr_defs): Use bb_loop_depth.
4161         * cfg.c (dump_bb_info): Likewise.
4162         * final.c (compute_alignments): Likewise.
4163         * ira.c (update_equiv_regs): Likewise.
4164         * tree-ssa-copy.c (init_copy_prop): Likewise.
4165         * tree-ssa-dom.c (loop_depth_of_name): Likewise.
4166         * tree-ssa-forwprop.c: Include cfgloop.h.
4167         (forward_propagate_addr_expr): Use bb_loop_depth.
4168         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
4169         * tree-ssa-sink.c (select_best_block): Likewise.
4170         * ipa-inline-analysis.c: Include cfgloop.h.
4171         (estimate_function_body_sizes): Use bb_loop_depth.
4172         * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H).
4173         (ipa-inline-analysis.o): Likewise.
4174         (bt-load.o): Likewise.
4176 2012-08-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4177             Jakub Jelinek  <jakub@redhat.com>
4179         PR driver/54210
4180         * config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW
4181         bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx.
4182         * config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID
4183         0x80000001 %ecx flags.
4185 2012-08-13  Richard Guenther  <rguenther@suse.de>
4187         * tree-cfg.c (print_loop): Avoid ICEing for loops marked for
4188         removal and loops with multiple latches.
4190 2012-08-13  Jakub Jelinek  <jakub@redhat.com>
4192         PR c/53968
4193         * tree.c (integer_pow2p): Avoid undefined signed overflows.
4194         * simplify-rtx.c (neg_const_int): Likewise.
4195         * expr.c (fixup_args_size_notes): Likewise.
4196         * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
4197         * double-int.c (mul_double_wide_with_sign): Likewise.
4198         (double_int_mask): Likewise.
4199         * tree-ssa-loop-ivopts.c (get_address_cost): Likewise.
4201 2012-08-13  Richard Guenther  <rguenther@suse.de>
4203         PR tree-optimization/54200
4204         * tree-ssa-copyrename.c (rename_ssa_copies): Do not add
4205         PHI results to another partition if not all PHI arguments
4206         have the same partition.
4208 2012-08-12  Jan Hubicka  <jh@suse.cz>
4210         * tree-pass.h (write_summary, write_optimization_summary): Remove
4211         set and vset arguments.
4212         * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments.
4213         (write_node_summary_p): Likewise; use the encoder.
4214         (ipa_reference_write_optimization_summary): Likewise.
4215         * lto-cgraph.c (output_cgraph_opt_summary): Use encoder.
4216         (lto_symtab_encoder_new): Initialize in_partition field.
4217         (lto_symtab_encoder_delete): Destroy in_partition field.
4218         (LCC_NOT_FOUND): Move to lto-streamer.h
4219         (lto_symtab_encoder_deref): Likewise.
4220         (lto_symtab_encoder_in_partition_p,
4221         lto_set_symtab_encoder_in_partition): New functions.
4222         (referenced_from_other_partition_p): Rewrite to use encoder.
4223         (reachable_from_other_partition_p): Likewise.
4224         (referenced_from_this_partition_p): Likewise.
4225         (reachable_from_this_partition_p): Likewise.
4226         (lto_output_node): Likewise.
4227         (lto_output_varpool_node): Likewise.
4228         (output_refs): Likewise.
4229         (compute_ltrans_boundary): Initialize in_partition fileds of
4230         the encoder.
4231         (output_symtab): Likewise.
4232         (input_refs): Match the changes in output_refs.
4233         (output_cgraph_opt_summary_p): Remove set argument.
4234         (output_node_opt_summary): Replace set by encoder.
4235         (output_cgraph_opt_summary): Remove set argument; use
4236         the encoder.
4237         * ipa-pure-const.c (pure_const_write_summary): Remove set and vset
4238         arguments; use the encoder.
4239         * lto-streamer-out.c (lto_output): Remove set and vset argument; use
4240         the encoder.
4241         (produce_symtab): Likewise.
4242         * ipa-inline.h (inline_write_summary): Remove set and vset arguments.
4243         * ipa-inline-analysis.c (inline_write_summary): Likewise.
4244         * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument;
4245         use encoder.
4246         * ipa-prop.h (ipa_prop_write_jump_functions): Likewise.
4247         * passes.c (ipa_write_summaries_2): Remove set and vset arguments.
4248         (ipa_write_summaries_1): Update.
4249         (ipa_write_optimization_summaries_1): Likewise.
4250         (ipa_write_optimization_summaries): Likewise.
4251         * lto-streamer.h (lto_symtab_encoder_t): Add in_partition.
4252         (lto_symtab_encoder_iterator): New type.
4253         (lto_symtab_encoder_deref): Make inline.
4254         (output_symtab, referenced_from_other_partition_p,
4255         reachable_from_other_partition_p, referenced_from_this_partition_p,
4256         reachable_from_this_partition_p): Update.
4257         (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node,
4258         lsei_varpool_node): New inline functions.
4259         (LCC_NOT_FOUND): New macro.
4260         (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition,
4261         lsei_start_in_partition, lsei_next_function_in_partition,
4262         lsei_start_function_in_partition, lsei_next_variable_in_partition,
4263         lsei_start_variable_in_partition): New inline functions.
4265 2012-08-12  Oleg Endo  <olegendo@gcc.gnu.org>
4267         * config/sh/sh.md (prefetch): Simplify expander.  Fix condition to
4268         allow SH3.
4269         (*prefetch_media): Move insn below expander.
4270         (*prefetch): Fix condition to allow SH3.
4272 2012-08-12  Oleg Endo  <olegendo@gcc.gnu.org>
4274         PR target/51244
4275         * config/sh/sh.md: Add splits for inverted compare and branch
4276         opportunities.
4277         (*cmpeqsi_t): New insn.
4278         (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives.
4279         (cmpgeusi_t): Use satisfies_constraint_Z.  Emit sett insn in
4280         replacement insn list and not in the preparation statements.
4281         (clrt, sett): Add mt_group attribute.
4283 2012-08-12 Marc Glisse <marc.glisse@inria.fr>
4285         PR middle-end/54193
4286         * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
4288 2012-08-12  Oleg Endo  <olegendo@gcc.gnu.org>
4290         PR target/39423
4291         * config/sh/predicates.md (mem_index_disp_operand): Check for
4292         arith_reg_operand instead of REG_P.
4294 2012-08-11  Bernd Schmidt  <bernds@codesourcery.com>
4296         * reload1.c (replaced_subreg, gen_reload): Add
4297         SECONDARY_MEMORY_NEEDED ifdefs as necessary.
4299 2012-08-11  Jan Hubicka  <jh@suse.cz>
4301         * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
4302         symtab_node sectoin name; it confuses plugin.
4304 2012-08-11  Uros Bizjak  <ubizjak@gmail.com>
4306         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID
4307         index in the va_list_vars bitmap by num_ssa_names.
4309 2012-08-11  Uros Bizjak  <ubizjak@gmail.com>
4311         * config/i386/sse.md (xop integer multiply/add insns): Use
4312         register_operand for operand 3 predicate.
4313         (xop_phadd<u>bq):  Fix vec_select selectors.
4315 2012-08-11  Martin Jambor  <mjambor@suse.cz>
4317         PR fortran/48636
4318         * ipa-inline.h (condition): New fields offset, agg_contents and by_ref.
4319         * ipa-inline-analysis.c (agg_position_info): New type.
4320         (add_condition): New parameter aggpos, also store agg_contents, by_ref
4321         and offset.
4322         (dump_condition): Also dump aggregate conditions.
4323         (evaluate_conditions_for_known_args): Also handle aggregate
4324         conditions.  New parameter known_aggs.
4325         (evaluate_properties_for_edge): Gather known aggregate contents.
4326         (inline_node_duplication_hook): Pass NULL known_aggs to
4327         evaluate_conditions_for_known_args.
4328         (unmodified_parm): Split into unmodified_parm and unmodified_parm_1.
4329         (unmodified_parm_or_parm_agg_item): New function.
4330         (set_cond_stmt_execution_predicate): Handle values passed in
4331         aggregates.
4332         (set_switch_stmt_execution_predicate): Likewise.
4333         (will_be_nonconstant_predicate): Likewise.
4334         (estimate_edge_devirt_benefit): Pass new parameter known_aggs to
4335         ipa_get_indirect_edge_target.
4336         (estimate_calls_size_and_time): New parameter known_aggs, pass it
4337         recrsively to itself and to estimate_edge_devirt_benefit.
4338         (estimate_node_size_and_time): New vector known_aggs, pass it o
4339         functions which need it.
4340         (remap_predicate): New parameter offset_map, use it to remap aggregate
4341         conditions.
4342         (remap_edge_summaries): New parameter offset_map, pass it recursively
4343         to itself and to remap_predicate.
4344         (inline_merge_summary): Also create and populate vector offset_map.
4345         (do_estimate_edge_time): New vector of known aggregate contents,
4346         passed to functions which need it.
4347         (inline_read_section): Stream new fields of condition.
4348         (inline_write_summary): Likewise.
4349         * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate
4350         contents.  Let all local callers pass NULL for known_aggs.
4352 2012-08-11  Jan Hubicka  <jh@suse.cz>
4354         * lto-cgraph.c (output_cgraph): Rename to ...
4355         (output_symtab): ... this one. Update for LTO_section_symtab_nodes.
4356         (input_cgraph): Rename to ...
4357         (input_symtab): ... this one. Update for LTO_section_symtab_nodes.
4358         * lto-streamer-out.c (create_output_block): Do not set
4359         section_type.
4360         (produce_asm): Likewise.
4361         (lto_output_toplevel_asms): Likewise.
4362         (produce_asm_for_decls): Likewise.
4363         (lto_output): Use output_symtab.
4364         * lto-section-in.c (lto_section_name): Update.
4365         * lto-section-out.c (lto_destroy_simple_output_block): Remove
4366         section_type.
4367         * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool;
4368         rename LTO_section_cgraph to LTO_section_symtab_nodes.
4369         (struct lto_header): Remove section_type.
4371 2012-08-11  Jan Hubicka  <jh@suse.cz>
4373         * cgraph.h (vector types for symtab_node): Add.
4374         * ipa-reference.c (ipa_reference_write_optimization_summary): Update
4375         for new symtab encoder.
4376         (ipa_reference_read_optimization_summary): Likewise.
4377         * lto-cgraph.c (output_varpool): Remove.
4378         (input_cgraph_opt_summary): Take symtab nodes vector as argument.
4379         (LTO_cgraph_tags): Rename to ...
4380         (LTO_symtab_tags): ... this one; add LTO_symtab_variable.
4381         (lto_cgraph_encoder_new): Rename to ...
4382         (lto_symtab_encoder_new): ... this on.
4383         (lto_cgraph_encoder_encode): Rename to ...
4384         (lto_symtab_encoder_encode): ... this one.
4385         (lto_cgraph_encoder_delete): Rename to ...
4386         (lto_symtab_encoder_delete): ... this one.
4387         (lto_cgraph_encoder_deref): Rename to ...
4388         (lto_symtab_encoder_deref): ... this one.
4389         (lto_cgraph_encoder_encode_body_p): Rename to ...
4390         (lto_symtab_encoder_encode_body_p): ... this one.
4391         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
4392         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
4393         lto_varpool_encoder_deref): Remove.
4394         (lto_varpool_encoder_encode_initializer_p): Rename to ...
4395         (lto_symtab_encoder_encode_initializer_p): ... this one.
4396         (lto_set_varpool_encoder_encode_initializer): Rename to ...
4397         (lto_set_symtab_encoder_encode_initializer): ... this one.
4398         (lto_output_edge): Update.
4399         (lto_output_node): Update.
4400         (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag.
4401         (lto_output_ref): Drop varpool_encoder; update.
4402         (add_node_to): Update.
4403         (add_references): Update.
4404         (output_outgoing_cgraph_edges): Update.
4405         (output_refs): Update.
4406         (compute_ltrans_boundary): Update.
4407         (output_cgraph): Update; output varpools too.
4408         (input_overwrite_node): Update.
4409         (output_varpool): Remove.
4410         (input_node): Update.
4411         (input_ref): Update.
4412         (input_edge): Update.
4413         (input_cgraph_1): Update; input varpool too; unify fixup code.
4414         (input_varpool_1): Remove.
4415         (input_refs): Update.
4416         (input_cgraph): Update.
4417         (output_node_opt_summary): Update.
4418         (input_cgraph_opt_section): Update.
4419         (input_cgraph_opt_summary): Update.
4420         * ipa-pure-const.c (pure_const_write_summary): Update.
4421         (pure_const_read_summary): Update.
4422         * lto-streamer-out.c (lto_write_tree): Update.
4423         (lto_output): Likewise.
4424         (produce_symtab): Update.
4425         (produce_asm_for_decls): Update.
4426         * ipa-inline-analysis.c (inline_read_section): Update.
4427         (inline_write_summary): Update.
4428         * ipa-prop.c (ipa_write_node_info): Update.
4429         (ipa_prop_read_section): Update.
4430         * lto-streamer.h (lto_cgraph_encoder_d): Rename to ...
4431         (lto_symtab_encoder_d): ... this one;  add initializer.
4432         (lto_cgraph_encoder_t): Rename to ...
4433         (lto_symtab_encoder_t): ... this one.
4434         (lto_cgraph_encoder_size): Rename to ...
4435         (lto_symtab_encoder_size): ... this one.
4436         (lto_varpool_encoder_d): ... remove.
4437         (lto_varpool_encoder_t): Remove.
4438         (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder
4439         add symtab_node_encoder.
4440         (lto_file_decl_data): Likewise.
4441         (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup,
4442         lto_cgraph_encoder_new, lto_cgraph_encoder_encode,
4443         lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p,
4444         lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref,
4445         lto_varpool_encoder_lookup, lto_varpool_encoder_new,
4446         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
4447         lto_varpool_encoder_encode_initializer_p): Remove.
4448         (lto_symtab_encoder_deref, lto_symtab_encoder_lookup,
4449         lto_symtab_encoder_t, lto_symtab_encoder_encode,
4450         lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p,
4451         lto_symtab_encoder_encode_initializer_p): New.
4453 2012-08-11  Uros Bizjak  <ubizjak@gmail.com>
4455         * config/i386/i386.md (isa): Add fma and fma4.
4456         (enabled): Handle fma and fma4.
4457         * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
4458         (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
4459         (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
4460         (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
4461         (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
4462         (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
4464 2012-08-10  Uros Bizjak  <ubizjak@gmail.com>
4466         * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
4467         *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
4468         *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
4470 2012-08-10  Uros Bizjak  <ubizjak@gmail.com>
4472         * config/i386/i386.md (simple LEA peephole2s): Add zero-extend
4473         variants of PLUS and MULT simple LEA patterns.  Disable PLUS
4474         patterns for TARGET_OPT_AGU.
4476 2012-08-10  Richard Guenther  <rguenther@suse.de>
4478         * Makefile.in (OBJS): Remove matrix-reorg.o.
4479         (matrix-reorg.o): Remove dependence rule.
4480         (GTFILES): Remove matrix-reorg.c.
4481         * matrix-reorg.c: Remove.
4482         * passes.c (init_optimization_passes): Do not schedule
4483         pass_ipa_matrix_reorg.
4484         * tree-pass.h (pass_ipa_matrix_reorg): Remove.
4485         * common.opt (fipa-matrix-reorg): Stub out.
4486         * doc/invoke.texi (fipa-matrix-reorg): Remove documentation.
4488 2012-08-10  Richard Guenther  <rguenther@suse.de>
4490         PR middle-end/54219
4491         * fold-const.c (fold_ternary_loc): Do not reverse the mask
4492         when canonicalizing it when folding VEC_PERM_EXPR.
4494 2012-08-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4496         PR middle-end/54211
4497         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
4498         Use cand_type to determine whether pointer arithmetic will be generated.
4500 2012-08-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4502         * doc/sourcebuild.texi: Document long_neq_int effective target.
4504 2012-08-10  Richard Guenther  <rguenther@suse.de>
4506         PR tree-optimization/54109
4507         * tree-ssa-forwprop.c
4508         (forward_propagate_addr_into_variable_array_index): Remove.
4509         (forward_propagate_addr_expr_1): Adjust.
4511 2012-08-10  Richard Guenther  <rguenther@suse.de>
4513         * tree-cfg.c (dump_function_to_file): Make sure to dump
4514         anonymous SSA names when there are no local decls.
4516 2012-08-10  Steven Bosscher  <steven@gcc.gnu.org>
4518         * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
4519         * tree-into-ssa.c (get_ssa_name_ann): Likewise.
4520         (mark_phi_for_rewrite): Likewise.
4521         (compute_global_livein): Use VEC_reserve outside the innermost
4522         loop and VEC_quick_push instead of VEC_safe_push in that loop.
4523         (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
4524         of new_ssa_names and old_ssa_names.  Allocate phis_to_rewrite to
4525         the correct initial size.
4527 2012-08-10  Richard Guenther  <rguenther@suse.de>
4529         * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove.
4530         (need_creation): Remove.
4531         (get_representative_for): Use anonymous named SSA names.
4532         (create_expression_by_pieces): Likewise.
4533         (insert_into_preds_of_block): Likewise.
4534         (init_pre): Do not init removed vars.
4535         (fini_pre): Do not free need_creation.
4536         * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous
4537         SSA names.
4538         * tree-ssa-loop-manip.c (create_iv): Likewise.
4539         * value-prof.c (gimple_divmod_fixed_value): Likewise.
4540         (gimple_mod_pow2): Likewise.
4541         (gimple_mod_subtract): Likewise.
4542         (gimple_ic): Likewise.
4543         (gimple_stringop_fixed_value): Likewise.
4544         * tree-ssa-phiopt.c (condstoretemp): Remove.
4545         (tree_ssa_phiopt_worker): Use anonymous named SSA names.
4546         (conditional_replacement): Likewise.
4547         (abs_replacement): Likewise.
4548         (cond_store_replacement): Likewise.
4549         (cond_if_else_store_replacement_1): Likewise.
4550         * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
4551         (rewrite_bittest): Likewise.
4552         * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers
4553         and build anonymous SSA names.
4554         (undistribute_ops_list): Adjust.
4555         (eliminate_redundant_comparison): Use anonymous SSA names.
4556         (rewrite_expr_tree_parallel): Likewise.
4557         (get_reassoc_pow_ssa_name): Remove.
4558         (attempt_builtin_powi): Adjust.
4559         (reassociate_bb): Likewise.
4560         * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names.
4561         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4562         (build_arrays): Likewise.
4563         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
4564         (create_tailcall_accumulator): Likewise.
4565         * tree-vect-generic.c (expand_vector_divmod): Likewise.
4566         * tree-profile.c (gcov_type_tmp_var): Remove.
4567         (gimple_init_edge_profiler): Do not initialize it and use anonymous
4568         SSA names.
4569         (gimple_gen_ic_profiler): Likewise.
4570         (tree_profiling): Adjust.
4571         * tree-sra.c (build_ref_for_offset): Use anonymous SSA names.
4572         * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
4573         (powi_as_mults_1): Likewise.
4574         (powi_as_mults): Likewise.
4575         (build_and_insert_call): Adjust.
4576         (build_and_insert_binop): Likewise.
4577         (build_and_insert_ref): Likewise.
4578         (build_and_insert_cast): Likewise.
4579         (gimple_expand_builtin_pow): Likewise.
4580         (gimple_expand_builtin_cabs): Likewise.
4581         (execute_optimize_bswap): Use anonymous SSA names.
4582         (convert_mult_to_widen): Likewise.
4583         (convert_plusminus_to_widen): Likewise.
4584         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
4585         * tree-ssa-propagate.c (update_call_from_tree): Likewise.
4586         * tree-if-conv.c (ifc_temp_var): Likewise.
4587         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
4588         * tree-parloops.c (take_address_of): Likewise.
4589         * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
4590         (vect_permute_load_chain): Likewise.
4591         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
4592         * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
4593         (vect_handle_widen_op_by_const): Likewise.
4594         (vect_operation_fits_smaller_type): Likewise.
4595         (vect_recog_over_widening_pattern): Likewise.
4596         * tree-vect-stmts.c (vect_init_vector): Likewise.
4597         * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise.
4598         (simplify_float_conversion_using_ranges): Likewise.
4600 2012-08-10  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4602         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix
4603         target mask of __builtin_ia32_rdseed_di_step builtin.
4605 2012-08-10  Richard Guenther  <rguenther@suse.de>
4607         PR tree-optimization/54027
4608         * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
4609         and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
4610         to handle LSHIFT_EXPR with a constant.
4612 2012-08-10  Richard Guenther  <rguenther@suse.de>
4614         * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE
4615         is recorded as var.
4616         (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME
4617         or its SSA_NAME_VAR.
4618         (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter.
4619         * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous
4620         SSA names by passing a type instead of a variable decl.
4621         (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
4622         (copy_ssa_name_fn): Handle anonymous SSA names.
4623         (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
4624         * tree-flow-inline.h (make_temp_ssa_name): New inline function.
4625         * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER,
4626         dump SSA names without a name as <anon>.
4627         * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are
4628         going to expand a decl.
4629         (gimple_expand_cfg): Assign all SSA names of a partition the
4630         decl we created for its leader.
4631         * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs.
4632         (verify_ssa_name): Handle anonymous SSA names.
4633         (verify_def): Likewise.
4634         * tree-predcom.c (eliminate_temp_copies): Likewise.
4635         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
4636         * tree-ssa-live.c (var_map_base_init): Compute conflicts for
4637         anonymous SSA names with the same type.
4638         (mark_all_vars_used_1): Handle anonymous SSA names.
4639         (verify_live_on_entry): Likewise.
4640         * tree-ssa-coalesce.c (abnormal_corrupt): Remove.
4641         (create_outofssa_var_map): Adjust with respect to conflicts we
4642         compute for anonymous SSA names.  Do not restrict abnormal
4643         coalescing.
4644         (coalesce_partitions): Do not restrict abnormal coalescing.
4645         Assert we only ever coalesce variables we computed conflicts for.
4646         * tree-ssa-ter.c (process_replaceable): Do not restrict TER
4647         of anonymous names.
4648         * expr.c (expand_expr_real_1): Handle anonymous SSA names
4649         expanded from IVOPTs by creating a raw REG here.
4650         * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names.
4651         (dump_function_to_file): Dump anonymous SSA names alongside
4652         with their types in the variable list.
4653         (verify_gimple_return): Guard use of SSA_NAME_VAR.
4654         * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol.
4655         (rewrite_into_ssa): Make SSA names anonymous.
4656         * tree-ssa-structalias.c (alias_get_name): Rewrite.
4657         * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous
4658         SSA names.
4659         (warn_uninitialized_phi): Likewise.
4660         * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding
4661         anonymous SSA names to the expander.
4662         (determine_iv_cost): Anonymous SSA names are artificial.
4663         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
4664         Handle anonymous SSA names.
4665         * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR
4666         or if NULL, the type of the SSA name.
4667         * tree-inline.c (remap_ssa_name): Handle anonymous SSA names,
4668         remap names as anonymous where appropriate.
4669         (insert_init_stmt): Pass SSA names down to insert_init_debug_bind.
4670         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust
4671         according to what we create conflicts for in out-of-SSA
4672         coalescing.
4673         * tree-parloops.c (separate_decls_in_region_name): Handle
4674         anonymous SSA names.
4675         (add_field_for_name): Likewise.
4676         * tree.c (get_name): Handle SSA names.
4677         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for
4678         SSA_NAMEs.
4679         * tree-vect-loop-manip.c (adjust_debug_stmts): Use
4680         virtual_operand_p.
4681         * tree-sra.c (create_access_replacement): Give up generating
4682         a DECL_DEBUG_EXPR for SSA names in the memory reference.
4683         (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR.
4684         * tree-complex.c (get_component_ssa_name): Handle anonymous
4685         SSA names.
4686         (set_component_ssa_name): Likewise.
4687         * tree-ssa-sccvn.c (visit_reference_op_load): Likewise.
4688         * tree-object-size.c (collect_object_sizes_for): Handle
4689         uninitialized SSA names properly.
4690         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of
4691         SSA_NAME_VAR.
4692         * ipa-split.c (test_nonssa_use): Likewise.
4693         (consider_split): Likewise.
4694         (mark_nonssa_use): Likewise.
4696 2012-08-09  Jan Hubicka  <jh@suse.cz>
4698         PR middle-end/54146
4699         * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY
4700         parameter; honnor it.
4701         * ipa-inline.c (recursive_inlining): Update call
4702         of inline_call.
4703         (inline_small_functions): Likewise.
4704         (ipa_inline): Likewise.
4705         (inline_always_inline_functions): Likewise.
4706         (early_inline_small_functions): Likewise.
4707         (flatten_function): Do separate update of summary info.
4708         * ipa-inline.h (inline_update_overall_summary): Declare.
4709         (inline_call): Update.
4710         * ipa-inline-analysis.c (inline_merge_summary): Break out
4711         updating code to ...
4712         (inline_update_overall_summary): Likewise.
4714 2012-08-09  Richard Henderson  <rth@redhat.com>
4716         * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.
4718         * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before
4719         performing the compare for the restart loop.
4721 2012-08-09  DJ Delorie  <dj@redhat.com>
4723         * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for
4724         SET before extracting SET_SRC.
4725         (rl78_remove_unused_sets): Check for REG before extractnig REGNO.
4727 2012-08-09  Oleg Endo  <olegendo@gcc.gnu.org>
4729         PR target/54089
4730         * config/sh/sh-protos (shift_insns_rtx): Delete.
4731         (sh_ashlsi_clobbers_t_reg_p): Add.
4732         * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns,
4733         ext_shift_amounts): Merge arrays of ints to array of structs.
4734         Adapt usage of arrays throughout the file.
4735         (shift_insns_rtx): Delete unused function.
4736         (sh_ashlsi_clobbers_t_reg_p): New function.
4737         * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the
4738         final shift sequence will clobber T_REG.
4739         (ashlsi3_n): Split only if the final shift sequence will not
4740         clobber T_REG.
4741         (ashlsi3_n_clobbers_t): New insn_and_split.
4743 2012-08-09  Steven Bosscher  <steven@gcc.gnu.org>
4745         * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE
4746         instead of looking at sbitmap n_bits member directly.
4747         * gcse.c (hoist_code): Likewise.
4748         * sched-rgn.c (split_edges): Likewise.
4749         * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping,
4750         update_ssa): Likewise.
4752 2012-08-09  Uros Bizjak  <ubizjak@gmail.com>
4754         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred
4755         single unit register class for classes that contain registers form
4756         multiple units.
4757         (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS,
4758         INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes.
4760 2012-08-09  Martin Jambor  <mjambor@suse.cz>
4762         * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to
4763         offset, updated all users.  New field agg_contents.
4764         * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR.
4765         (ipa_pass_through_data): New field agg_preserved.
4766         (ipa_ancestor_jf_data): Likewise.
4767         (ipa_member_ptr_cst): Removed.
4768         (ipa_agg_jf_item): New type.
4769         (ipa_agg_jump_function): Likewise.
4770         (ipa_jump_func): New field agg.  Removed field member_cst.
4771         (ipa_get_jf_pass_through_agg_preserved): New function.
4772         (ipa_get_jf_ancestor_agg_preserved): Likewise.
4773         (ipa_get_jf_member_ptr_pfn): Removed.
4774         (ipa_find_agg_cst_for_param): Declare.
4775         (ipa_load_from_parm_agg): Likewise.
4776         * ipa-prop.c (param_analysis_info): Fields modified and
4777         visited_statements rename to parm_modified and parm_visited_statements
4778         respectively, added fields ref_modified, ref_visited_statements,
4779         pt_modified and pt_visited_statements.
4780         (ipa_print_node_jump_functions_for_edge): Do not dump const member
4781         functions.  Dump agg_preserved flags and aggregate jump functions.
4782         (ipa_set_jf_simple_pass_through): Set also agg_preserved.
4783         (ipa_set_ancestor_jf): Likewise.
4784         (ipa_set_jf_arith_pass_through): Clear agg_preserved.
4785         (ipa_set_jf_member_ptr_cst): Removed.
4786         (is_parm_modified_before_stmt): Logic reversed, renamed to
4787         parm_preserved_before_stmt_p.  Cache visited bitmap only for
4788         naked DECL parameters.  All callers updated.
4789         (load_from_unmodified_param): Allow NULL parms_ainfo.
4790         (parm_ref_data_preserved_p): New function.
4791         (parm_ref_data_pass_through_p): Likewise.
4792         (ipa_load_from_parm_agg_1): Likewise.
4793         (ipa_load_from_parm_agg): Likewise.
4794         (compute_complex_assign_jump_func): Check if aggregate contents are
4795         preserved.
4796         (compute_complex_ancestor_jump_func): Likewise.
4797         (compute_scalar_jump_functions): Removed.
4798         (type_like_member_ptr_p): Also check field position are known and sane.
4799         (compute_pass_through_member_ptrs): Removed.
4800         (determine_cst_member_ptr): Likewise.
4801         (ipa_known_agg_contents_list): New type.
4802         (determine_known_aggregate_parts): New function.
4803         (compute_cst_member_ptr_arguments): Removed.
4804         (ipa_compute_jump_functions_for_edge): Compute all kinds of jump
4805         functions (scalar, aggregate and member pointer).
4806         (ipa_get_member_ptr_load_param): Incorporate into
4807         ipa_get_stmt_member_ptr_load_param, also pass back an offset.
4808         (ipa_note_param_call): Clear agg_contents.
4809         (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded
4810         from aggregates.  In such cases, store offset of the called field.
4811         (ipa_analyze_node): Initialize new fields of param_analysis_info.
4812         (update_jump_functions_after_inlining): Handle aggregate contents.
4813         (ipa_find_agg_cst_for_param): New function.
4814         (try_make_edge_direct_simple_call): Handle called aggregate values.
4815         (update_indirect_edges_after_inlining): Make sure aggregate preserving
4816         jump functions comply with type compatibility requirements.
4817         (ipa_edge_duplication_hook): Copy also aggregate jump functions.
4818         (ipa_write_jump_function): Stream agg_preserved flags and aggregate
4819         jump functions.  Do not stream member pointer constant jump functions.
4820         (ipa_read_jump_function): Likewise.
4821         (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info
4822         fields.
4823         (ipa_read_indirect_edge_info): Likewise.
4825 2012-08-09  Oleg Endo  <olegendo@gcc.gnu.org>
4827         PR target/39423
4828         * config/sh/predicates.md (mem_index_disp_operand): New predicate.
4829         * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new
4830         mem_index_disp_operand predicate.
4832 2012-08-09  Oleg Endo  <olegendo@gcc.gnu.org>
4834         PR target/51244
4835         * config/sh/sh.md: Add negc extu sequence peephole.
4836         (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate.
4837         (*movrt_negc): New insn.
4838         * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to
4839         gen_movnegt.
4840         * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t,
4841         sh_emit_compare_and_branch, sh_emit_compare_and_set): Use
4842         get_t_reg_rtx.
4843         (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt.
4845 2012-08-09  Oleg Endo  <olegendo@gcc.gnu.org>
4847         PR target/50751
4848         * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg):
4849         Use arith_reg_operand predicate instead of register_operand.
4850         * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept
4851         only mem, simplify.
4853 2012-08-09  Uros Bizjak  <ubizjak@gmail.com>
4855         * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
4856         (alpha_pad_function_end): ... this.  Also insert NOP between
4857         sibling call and GP load.
4858         (alpha_reorg): Update call to alpha_pad_function_end.  Expand comment.
4860 2012-08-09  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4862         * config/i386/adxintrin.h: Remove guarding __ADX__ check.
4863         * config/i386/x86intrin.h: Likewise.
4864         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove
4865         OPTION_MASK_ISA_ADX from needed options for
4866         __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64.
4867         (ix86_expand_builtin): Use add<mode>3_carry in expanding of
4868         IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64.
4870 2012-08-09  Andrey Belevantsev  <abel@ispras.ru>
4872         PR rtl-optimization/53701
4873         * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
4874         Process not only expr's vinsns but all old vinsns from expr's
4875         history of changes.
4876         (update_and_record_unavailable_insns): Clarify comment.
4878 2012-08-09  Bernd Schmidt  <bernds@codesourcery.com>
4880         * reload.c (find_valid_class_1): New static function.
4881         (push_reload): Use it when reloading a SYMBOL_REG as the inner
4882         of a subreg.  Keep better track of needed classes for the
4883         secondary memory case.
4884         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to
4885         GENERAL_REGS.
4886         * reload1.c (replaced_subreg): New static function.
4887         (gen_reload): Use it when deciding whether to use secondary
4888         memory.
4890 2012-08-09  Richard Guenther  <rguenther@suse.de>
4892         * tree.h (SSA_VAR_P): Simplify.
4893         * tree-ssanames.c (make_ssa_name_fn): Strengthen assert.
4894         * fold-const.c (fold_comparison): Check for default def first
4895         before checking for PARM_DECL.
4896         * tree-complex.c (get_component_ssa_name): Likewise.
4897         * tree-inline.c (remap_ssa_name): Likewise.
4898         * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise.
4899         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4900         (find_what_p_points_to): Likewise.
4901         * tree-ssa-operands.c (add_stmt_operand): Simplify.
4903 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4905         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
4906         IOR to a constant if one operand has side effects.
4908 2012-08-08  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4910         * builtins.c (expand_builtin_atomic_compare_exchange): Pass old
4911         value operand as MEM to expand_atomic_compare_and_swap.
4913         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Accept
4914         nonimmediate_operand for old value; generate load and store if
4915         needed.
4916         * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand
4917         as vtarget.
4919 2012-08-08  Steven Bosscher  <steven@gcc.gnu.org>
4921         PR middle-end/54146
4922         * gimpify.c (gimplify_body): Only verify_gimple_in_seq with
4923         checking enabled.
4924         * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is
4925         a gimple_reg if checking is enabled.
4926         (find_uses_to_rename_stmt): Only look at non-virtual USE operands.
4927         * tree-into-ssa (compute_global_livein): Change the worklist
4928         type from an array to a VEC.
4930 2012-08-08  Richard Guenther  <rguenther@suse.de>
4932         * tree-ssa-operands.h (virtual_operand_p): Declare.
4933         * tree-ssa-operands.c (virtual_operand_p): New predicate.
4934         * gimple.c (is_gimple_reg): Use virtual_operand_p.
4935         * tree-into-ssa.c (prepare_block_for_update): Likewise.
4936         * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
4938 2012-08-08  Richard Guenther  <rguenther@suse.de>
4940         * tree-call-cdce.c (check_pow): Simplify.
4941         (gen_conditions_for_pow_int_base): Likewise.
4942         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
4943         virtual operands here.
4944         * tree-ssa-operands.c (get_name_decl): Remove unused function.
4945         * gimplify.c (gimple_regimplify_operands): Remove dead code.
4946         * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
4947         * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
4948         * value-prof.c (gimple_ic): Use duplicate_ssa_name.
4949         (gimple_stringop_fixed_value): Likewise.
4950         * tree.c (needs_to_live_in_memory): Remove SSA name handling.
4951         * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
4952         in the bitmap alongside shifted DECL_UIDs.
4953         (va_list_counter_struct_op): Likewise.
4954         (va_list_ptr_read): Likewise.
4955         (va_list_ptr_write): Likewise.
4956         (check_va_list_escapes): Likewise.
4957         (check_all_va_list_escapes): Likewise.
4958         (execute_optimize_stdarg): Likewise.
4959         * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
4961 2012-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
4962             H.J. Lu  <hongjiu.lu@intel.com>
4964         PR rtl-optimization/54157
4965         * combine.c (gen_lowpart_for_combine): Don't return identity
4966         for CONST or symbolic reference.
4968 2012-08-08  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4970         * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New.
4971         (OPTION_MASK_ISA_ADX_UNSET): Likewise.
4972         (ix86_handle_option): Handle madx option.
4973         * config.gcc (i[34567]86-*-*): Add adxintrin.h.
4974         (x86_64-*-*): Likewise.
4975         * config/i386/adxintrin.h: New header.
4976         * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX
4977         support.
4978         * config/i386/i386-builtin-types.def
4979         (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type.
4980         (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise.
4981         * config/i386/i386-c.c: Define __ADX__ if needed.
4982         * config/i386/i386.c (ix86_target_string): Define -madx option.
4983         (PTA_ADX): New.
4984         (ix86_option_override_internal): Handle new option.
4985         (ix86_valid_target_attribute_inner_p): Add OPT_madx.
4986         (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32,
4987         IX86_BUILTIN_ADDCARRYX64.
4988         (ix86_init_mmx_sse_builtins): Define corresponding built-ins.
4989         (ix86_expand_builtin): Handle these built-ins.
4990         (ix86_expand_args_builtin): Handle new function types.
4991         * config/i386/i386.h (TARGET_ADX): New.
4992         * config/i386/i386.md (adcx<mode>3): New define_insn.
4993         * config/i386/i386.opt (madx): New.
4994         * config/i386/x86intrin.h: Include adxintrin.h.
4996 2012-08-08  Nick Clifton  <nickc@redhat.com>
4998         * config/rl78/rl78.c: Include tree-pass.h.
5000 2012-08-08  Steven Bosscher  <steven@gcc.gnu.org>
5002         PR middle-end/54146
5003         * ira.c (init_live_subregs): Take live_subregs_used as a bitmap.
5004         (build_insn_chain): Make live_subregs_used a bitmap.
5005         Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs.
5006         Use sbitmap_free to free the live_subreg sbitmaps.
5008         PR middle-end/54146
5009         * ifcvt.c: Include pointer-set.h.
5010         (cond_move_process_if_block): Change type of then_regs and
5011         else_regs from alloca'd array to pointer_sets.
5012         (check_cond_move_block): Update for this change.
5013         (cond_move_convert_if_block): Likewise.
5014         * Makefile.in: Fix dependencies for ifcvt.o.
5016 2012-08-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5018         * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct.
5019         (incr_vec): New static var.
5020         (incr_vec_len): Likewise.
5021         (address_arithmetic_p): Likewise.
5022         (stmt_cost): Remove dead assignment.
5023         (dump_incr_vec): New function.
5024         (cand_abs_increment): Likewise.
5025         (lazy_create_slsr_reg): Likewise.
5026         (incr_vec_index): Likewise.
5027         (count_candidates): Likewise.
5028         (record_increment): Likewise.
5029         (record_increments): Likewise.
5030         (unreplaced_cand_in_tree): Likewise.
5031         (optimize_cands_for_speed_p): Likewise.
5032         (lowest_cost_path): Likewise.
5033         (total_savings): Likewise.
5034         (analyze_increments): Likewise.
5035         (ncd_for_two_cands): Likewise.
5036         (nearest_common_dominator_for_cands): Likewise.
5037         (profitable_increment_p): Likewise.
5038         (insert_initializers): Likewise.
5039         (introduce_cast_before_cand): Likewise.
5040         (replace_rhs_if_not_dup): Likewise.
5041         (replace_one_candidate): Likewise.
5042         (replace_profitable_candidates): Likewise.
5043         (analyze_candidates_and_replace): Handle candidates with SSA-name
5044         strides.
5046 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
5048         * cfg.c (debug_bb): Do not set TDF_BLOCKS.
5049         * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
5050         * pretty-print.c (pp_base_flush): Do not add a newline, and do not
5051         clear pp_needs_newline.
5052         * pretty-print.h (pp_newline_and_flush): New macro with the behavior
5053         of pp_base_flush before the above change.
5054         * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
5055         instead of pp_flush.
5056         * diagnostic.c (diagnostic_finish): Likewise.
5057         (diagnostic_report_diagnostic): Likewise.
5058         (verbatim): Likewise.
5059         (error_recursion): Likewise.
5060         * tree-pretty-print.c (print_generic_stmt): Likewise.
5061         (print_generic_stmt_indented): LIkewise.
5062         * gimple-pretty-print.c (print_gimple_stmt): Likewise.
5063         (print_gimple_seq): Likewise.
5064         (gimple_dump_bb_buff): Likewise.
5066 2012-08-07  Uros Bizjak  <ubizjak@gmail.com>
5068         PR debug/54177
5069         * var-tracking.c (var_lowpart): Exit early for matched modes.
5071 2012-08-07  Richard Henderson  <rth@redhat.com>
5073         * config/s390/s390.c (s390_emit_compare_and_swap): Update for
5074         atomic_compare_and_swapsi_internal name change.
5075         (s390_expand_insv): Try RISBG last, not requiring operands in
5076         registers but forcing them there.  Try a limited form of ICM.
5077         (s390_two_part_insv): New.
5078         (s390_expand_cs_hqi): Use it.  Update for atomic optabs.
5079         * config/s390/s390.md (UNSPEC_MOVA): New.
5080         (TDSI): Remove mode iterator.
5081         (DGPR, DINT, TDI): New mode iterators.
5082         (td): New mode attribute.
5083         (mem_signal_fence): New.
5084         (mem_thread_fence): Rename from memory_barrier; update for model arg.
5085         (mem_thread_fence_1): Rename from *memory_barrier.
5086         (atomic_load<DINT>, atomic_store<DINT>): New expanders.
5087         (atomic_loaddi_1, atomic_loadti_1): New.
5088         (atomic_storedi_1, atomic_storeti_1): New.
5089         (sync_compare_and_swap<TDSI>, sync_compare_and_swap<HQI>): Remove.
5090         (atomic_compare_and_swap<DGPR>, atomic_compare_and_swap<HQI>): New.
5091         (atomic_compare_and_swap<DGPR>_internal): New.
5092         (*sync_compare_and_swap<DW>, *sync_compare_and_swap<GPR>): Remove.
5093         (*atomic_compare_and_swap<TDI>_1): New.
5094         (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New.
5095         (sync_<ATOMIC_Z196><GPR>, sync_old_<ATOMIC_Z196><GPR>): Remove.
5096         (atomic_fetch_<ATOMIC_Z196><GPR>): New.
5097         (atomic_fetch_<ATOMC_Z196><GPR>_iaf): New.
5098         (sync_<ATOMIC><HQI>, sync_old_<ATOMIC><HQI>): Remove.
5099         (sync_new_<ATOMIC><HQI>): Remove.
5100         (atomic_<ATOMIC><HQI>, atomic_fetch_<ATOMIC><HQI>): New.
5101         (atomic_<ATOMIC>_fetch<HQI>): New.
5102         (sync_lock_test_and_set<HQI>): Remove.
5103         (atomic_exchange<HQI>): New.
5105 2012-08-07  Paul Brook  <paul@codesourcery.com>
5106             Sandra Loosemore  <sandra@codesourcery.com>
5108         * except.c (switch_to_exception_section): Place tables for
5109         DECL_ONE_ONLY functions in comdat groups.
5111 2012-08-07  Richard Guenther  <rguenther@suse.de>
5113         * tree-flow.h (copy_ssa_name_fn): New function.
5114         (duplicate_ssa_name_fn): Likewise.
5115         * tree-flow-inline.h (copy_ssa_name): New function.
5116         (duplicate_ssa_name): Likewise.
5117         * tree-ssanames.c (copy_ssa_name_fn): New function.
5118         (duplicate_ssa_name): Rename to ...
5119         (duplicate_ssa_name_fn): ... this and adjust.
5120         * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
5121         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
5122         Likewise.
5123         (slpeel_update_phi_nodes_for_guard2): Likewise.
5124         (slpeel_tree_peel_loop_to_edge): Likewise.
5125         (vect_loop_versioning): Likewise.
5126         * tree-parloops.c (transform_to_exit_first_loop): Likewise.
5127         (create_parallel_loop): Likewise.
5128         * ipa-split.c (split_function): Likewise.
5129         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
5130         (vect_create_epilog_for_reduction): Likewise.
5131         * tree-vect-data-refs.c (bump_vector_ptr): Likewise.
5132         (vect_setup_realignment): Likewise.
5133         * tree-vect-stmts.c (vectorizable_load): Likewise.
5134         * tree-switch-conversion.c (build_one_array): Likewise.
5135         (gen_def_assigns): Likewise.
5136         * tree-cfg.c (gimple_make_forwarder_block): Likewise.
5137         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
5138         create_zero_dim_array with the SSA name.
5139         (rewrite_phi_out_of_ssa): Likewise.
5140         (rewrite_cross_bb_scalar_dependence): Likewise.  Use copy_ssa_name.
5142 2012-08-07  Richard Guenther  <rguenther@suse.de>
5144         * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
5145         bit of the old name when we clear the slot.
5146         * tree-ssa-live.c (remove_unused_locals): Release any default
5147         def associated with an unused var.
5148         * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
5150 2012-08-07  Richard Guenther  <rguenther@suse.de>
5152         * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables
5153         we rewrite into SSA form.
5154         (rewrite_enter_block): Adjust.
5155         * gimple-iterator.c (gsi_replace): Also allow replacement with
5156         a stmt without a lhs.
5157         * tree-ssa-live.c (remove_unused_locals): Remove code handling
5158         clobbers of SSA names.
5159         * tree-nested.c (convert_local_reference_stmt): Remove clobbers
5160         for variables we access through the local chain.
5161         * tree-cfg.c (verify_gimple_assign_single): Verify clobbers
5162         clobber full decls only.
5164 2012-08-07  Richard Guenther  <rguenther@suse.de>
5166         * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT.
5167         * tree-phinodes.c (make_phi_node): Allow a NULL var.
5168         * tree-into-ssa.c (insert_phi_nodes_for): Simplify.
5169         * tree-complex.c (update_phi_components): Likewise.
5170         * tree-ssa-loop-manip.c (create_iv): Likewise.
5171         (add_exit_phis_edge): Likewise.
5172         (split_loop_exit_edge): Likewise.
5173         (tree_transform_and_unroll_loop): Likewise.
5174         * value-prof.c (gimple_ic): Likewise.
5175         (gimple_stringop_fixed_value): Likewise.
5176         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
5177         * omp-low.c (expand_parallel_call): Likewise.
5178         (expand_omp_for_static_chunk): Likewise.
5179         (expand_omp_atomic_pipeline): Likewise.
5180         * tree-parloops.c (create_phi_for_local_result): Likewise.
5181         (transform_to_exit_first_loop): Likewise.
5182         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
5183         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
5184         * tree-predcom.c (initialize_root_vars): Likewise.
5185         (initialize_root_vars_lm): Likewise.
5186         * sese.c (sese_add_exit_phis_edge): Likewise.
5187         * gimple-streamer-in.c (input_phi): Likewise.
5188         * tree-inline.c (copy_phis_for_bb): Likewise.
5189         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5190         * tree-cfg.c (gimple_make_forwarder_block): Likewise.
5191         (gimple_duplicate_bb): Likewise.
5193 2012-08-07  Nick Clifton  <nickc@redhat.com>
5195         * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
5196         stack usage if requested.
5198 2012-08-06  Cary Coutant  <ccoutant@google.com>
5200         * cgraphunit.c (assemble_thunk): Add source line info.
5201         * final.c (final): Check for non-null cfg pointer.
5203 2012-08-06  Sandra Loosemore  <sandra@codesourcery.com>
5204             Maxim Kuvyrkov  <maxim@codesourcery.com>
5205             Julian Brown  <julian@codesourcery.com>
5207         * config/mips/24k.md (r24k_unknown_store): Delete special handling
5208         for cprestore.
5209         (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo)
5210         (r24k_int_cop, r24k_int_multi)
5211         (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer)
5212         (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p
5213         instead of store_data_bypass_p.
5214         * config/mips/74k.md (r74k_int_store): Delete special handling for
5215         cprestore.
5216         (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove):
5217         Use mips_store_data_bypass_p instead of store_data_bypass_p.
5219 2012-08-06  Marc Glisse  <marc.glisse@inria.fr>
5221         PR tree-optimization/51938
5222         PR tree-optimization/52005
5223         * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for
5224         inverted conditions.
5225         (ifcombine_iforif): Remove, merge code into ifcombine_ifandif.
5226         (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b
5227         and !a||b patterns.
5229 2012-08-06  Olivier Hainque  <hainque@adacore.com>
5231         * tree-emutls.c (new_emutls_decl): When a var_section is requested by
5232         the target, attach the new decl to that, not to the template section.
5234 2012-08-06  Tom de Vries  <tom@codesourcery.com>
5236         * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
5237         unsigned type.
5239 2012-08-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5241         * doc/invoke.texi: Document AMD btver2.
5242         * doc/extend.texi: Document AMD btver1 and btver2.
5244 2012-08-04  Sandra Loosemore  <sandra@codesourcery.com>
5245             Richard Sandiford  <rdsandiford@googlemail.com>
5247         * config/mips/mips.c (mips_option_override): Check -fpic
5248         for compatibility with -mabicalls and ABI.
5250 2012-08-04  Catherine Moore  <clm@codesourcery.com>
5251             Sandra Loosemore  <sandra@codesourcery.com>
5253         * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
5254         (ir_xlr_alu): Remove clz.
5255         * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
5257 2012-08-04  Richard Earnshaw  <rearnsha@arm.com>
5259         * arm.c (arm_gen_constant): Use SImode when preparing operands for
5260         gen_extzv_t2.
5262 2012-08-04  Uros Bizjak  <ubizjak@gmail.com>
5264         * config/i386/i386.h (QI_REGNO_P): New define.
5265         (ANY_QI_REGNO_P): Ditto.
5266         (GENERAL_REGNO_P): Use IN_RANGE macro.
5267         (QI_REG_P): Use QI_REGNO_P.
5268         (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P.
5269         (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P.
5270         * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto.
5271         (x86_extended_QIreg_mentioned_p): Ditto.  Also check if
5272         register is a general register.
5274 2012-08-03  Uros Bizjak  <ubizjak@gmail.com>
5276         * config/i386/sync.md (*atomic_fetch_add_cmp<mode>): Use
5277         incdec_operand predicate to return INC or DEC insn mnemonic.
5278         Add %K operand modifier.
5279         (atomic_add<mode>): Use incdec_operand predicate to
5280         return INC or DEC insn mnemonic.
5281         (atomic_dec<mode>): Ditto.
5283 2012-08-03  Michael Matz  <matz@suse.de>
5285         PR tree-optimization/54146
5286         * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into.
5287         (add_scope_conflicts): Iterate in RPO order.
5288         (add_stack_protection_conflicts): Iterate over the other triangle.
5289         (fini_vars_expansion): Clear stack_vars_sorted.
5291 2012-08-03  Marc Glisse  <marc.glisse@inria.fr>
5293         PR tree-optimization/30318
5294         * double-int.c (mul_double_wide_with_sign): New function.
5295         (mul_double_with_sign): Call the new function.
5296         * double-int.h (mul_double_wide_with_sign): Declare the new function.
5297         * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]:
5298         Handle integer types that wrap on overflow.
5299         (quad_int_cmp): New helper function.
5300         (quad_int_pair_sort): Likewise.
5302 2012-08-03  Richard Guenther  <rguenther@suse.de>
5304         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query
5305         is_gimple_reg on the SSA name, not its variable.
5306         (vect_update_ivs_after_vectorizer): Likewise.
5307         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
5308         * tree-if-conv.c (if_convertible_phi_p): Likewise.
5309         (predicate_scalar_phi): Likewise.
5310         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
5311         (vect_analyze_scalar_cycles_1): Likewise.
5312         * tree-ssa-live.c (register_ssa_partition_check): Likewise.
5313         * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
5314         * tree-ssa-reassoc.c (phi_rank): Likewise.
5315         * tree-parloops.c (separate_decls_in_region_name): Use
5316         replace_ssa_name_symbol.
5317         * tree-predcom.c (base_names_in_chain_on): Likewise.
5318         * matrix-reorg.c (update_type_size): Query the type of the SSA name,
5319         not its variable.
5320         * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise.
5321         (create_mul_imm_cand): Likewise.
5322         (create_add_ssa_cand): Likewise.
5323         (create_add_imm_cand): Likewise.
5324         (slsr_process_add): Likewise.
5325         * tree-inline.c (remap_ssa_name): Do not set the type of the
5326         new SSA_NAME.
5327         * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert.
5328         Check for default def first.
5330 2012-08-04  Steven Bosscher  <steven@gcc.gnu.org>
5332         * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns.
5334         * sched-vis.c (print_pattern): Handle SEQUENCE also.
5336 2012-08-02  Richard Henderson  <rth@redhat.com>
5338         Revert:
5339         PR 34548
5340         * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
5341         * cfgexpand.c (gimple_expand_cfg): Initialise it.
5342         * explow.c (allocate_dynamic_stack_space): Set it.  Simplify
5343         alignment requirements given the known alignment of dynamic_offset.
5344         * function.c (instantiate_virtual_regs): Align dtnamic_offset.
5346 2012-08-02  Kenneth Zadeck <zadeck@naturalbridge.com>
5348         * cfgexpand.c (expand_debug_locations):  Encapsulate test for
5349         CONST_DOUBLE in macro.
5350         * combine.c (try_combine, gen_lowpart_for_combine): Ditto.
5351         * cprop.c (implicit_set_cond_p): Ditto.
5352         * cselib.c (rtx_equal_for_cselib_1): Ditto.
5353         * expmed.c (expand_mult): Ditto.
5354         * expr.c (convert_modes): Ditto.
5355         * ira-costs.c (record_reg_classes): Ditto.
5356         * ira-lives.c (single_reg_class): Ditto.
5357         * optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
5358         * print-rtl.c (print_rtx): Ditto.
5359         * recog.c (simplify_while_replacing, const_double_operand)
5360         (asm_operand_ok, constrain_operands): Ditto.
5361         * reg-stack.c (subst_stack_regs_pat): Ditto.
5362         * reload.c (find_reloads, find_equiv_reg): Ditto.
5363         * rtlanal.c (replace_rtx): Remove test.
5364         * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate
5365         test for CONST_DOUBLE in macro.
5366         * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
5367         (simplify_unary_operation_1, simplify_const_unary_operation)
5368         (simplify_binary_operation_1, simplify_const_binary_operation)
5369         (simplify_relational_operation_1)
5370         (simplify_const_relational_operations)
5371         (implify_subreg): Ditto.
5372         * varasm.c (output_constant_pool_2): Ditto.
5373         * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros.
5374         * rtl.def (CONST_DOUBLE):  Updated comments.
5376 2012-08-02  Richard Sandiford  <rdsandiford@googlemail.com>
5378         PR target/51931
5379         * config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
5380         * config/mips/mips.c (mips_strip_unspec_address): Make extern.
5381         (mips16_rewrite_pool_constant): Make a copy of the pool constant
5382         before adding to a PC-relative table.
5383         (mips16_lay_out_constants): Add a SPLIT_P parameter.
5384         (mips16_load_branch_target, mips16_split_long_branches): New functions.
5385         (mips_reorg): Update call to mips16_lay_out_constants.
5386         Call mips16_split_long_branches.
5387         * config/mips/predicates.md (pc_or_label_operand): Delete.
5388         * config/mips/mips.md (length): Add a calculation for MIPS16 branches.
5389         Move the extended_mips16 handling further down.
5390         (*branch_equality<mode>_mips16): Replace use pc_or_label_operand
5391         with explicit label_ref and pc.  Follow the usual operand numbering.
5392         (*branch_equality<mode>_mips16_inverted): New pattern.
5393         (*jump_mips16): Add length attribute.
5394         (indirect_jump_and_restore_<mode>): New pattern.
5395         (consttable_int): Call mips_strip_unspec_address on the operand.
5397 2012-08-02  Richard Sandiford  <rdsandiford@googlemail.com>
5399         * recog.c (split_insn): Copy the original SET_SRC before using
5400         it as a note.
5402 2012-08-02  Richard Sandiford  <rdsandiford@googlemail.com>
5404         * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.
5406 2012-08-02  Marc Glisse  <marc.glisse@inria.fr>
5408         PR tree-optimization/53805
5409         * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and
5410         UNORDERED_EXPR even for trapping floating point.
5412 2012-08-02  H.J. Lu  <hongjiu.lu@intel.com>
5414         PR middle-end/53321
5415         PR middle-end/53865
5416         * ipa-inline-analysis.c (inline_free_summary): Return if
5417         inline_edge_summary_vec is NULL.
5419         * ipa-split.c (execute_split_functions): Check if a function
5420         is inlinable only if inline_edge_summary_vec != NULL.
5422         * ipa.c (symtab_remove_unreachable_nodes): Restore
5423         cgraph_propagate_frequency call when something was changed.
5424         (free_inline_summary): New function.
5425         (pass_ipa_free_inline_summary): New pass.
5427         * passes.c (init_optimization_passes): Add
5428         pass_ipa_free_inline_summary before pass_ipa_tree_profile.
5430         * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New.
5432         * tree-pass.h (pass_ipa_free_inline_summary): New.
5434 2012-08-02  Richard Earnshaw  <rearnsha@arm.com>
5436         * arm.c (arm_gen_constant): Use UBFX for some AND operations when
5437         available.
5439 2012-08-02  Richard Guenther  <rguenther@suse.de>
5441         * tree-into-ssa.c (struct common_info_d): New struct.
5442         (struct var_info_d, struct ssa_name_info): Use it.
5443         (get_ssa_name_ann): Adjust.
5444         (get_phi_state, set_phi_state): Remove.
5445         (get_common_info): New function.
5446         (get_current_def, set_current_def): Adjust.
5447         (get_def_blocks_for): Take a common info as param.
5448         (set_def_block): Call get_common_info once.
5449         (set_livein_block): Likewise.
5450         (find_def_blocks_for): Adjust.
5451         (insert_phi_nodes): Likewise.
5452         (register_new_def): Call get_common_info once.
5453         (get_reaching_def): Likewise.
5454         (rewrite_debug_stmt_uses): Likewise.
5455         (rewrite_leave_block): Likewise.
5456         (dump_currdefs): Likewise.
5457         (debug_var_infos_r): Adjust.
5458         (register_new_update_single): Call get_common_info once.
5459         (maybe_replace_use_in_debug_stmt): Likewise.
5460         (rewrite_update_leave_block): Likewise.
5461         (mark_use_interesting): Adjust.
5462         (create_new_def_for): Likewise.
5463         (update_ssa): Likewise.
5465 2012-08-02  Michael Matz  <matz@suse.de>
5467         * tree-ssa-live.c (set_is_used): Return a bool.
5468         (mark_all_vars_used): Don't take data argument.
5469         (mark_all_vars_used_1): Adjust calls to above, merge handling
5470         of local and global vars.
5471         (remove_unused_scope_block_p): Don't take global_unused_vars,
5472         merge handling of local and global vars.
5473         (remove_unused_locals): Don't allocate/fill/pass global_unused_vars,
5474         use is_used_p for local and global vars.
5476 2012-08-02  Richard Guenther  <rguenther@suse.de>
5478         * tree-flow.h (make_rename_temp): Remove.
5479         * tree-dfa.c (make_rename_temp): Likewise.
5480         * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
5481         instead of make_rename_temp.
5482         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5483         expand_omp_atomic_pipeline): Likewise.
5484         * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
5485         build_tm_store, expand_call_tm, expand_transaction,
5486         ipa_tm_insert_gettmclone_call): Likewise.
5487         * tree-complex.c (expand_complex_div_wide): Likewise.
5488         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
5489         Likewise.
5490         * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
5491         Likewise.
5492         * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
5493         * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
5494         gimple_mod_subtract): Likewise.
5496 2012-08-02  Richard Guenther  <rguenther@suse.de>
5498         * tree-flow.h (set_default_def): Rename to ...
5499         (set_ssa_default_def): ... this.  Take a struct function argument.
5500         (gimple_default_def): Rename to ...
5501         (ssa_default_def): ... this.
5502         (get_or_create_ssa_default_def): New function.
5503         * tree-dfa.c: Likewise.
5504         (dump_variable): Adjust.
5505         * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check
5506         for used parameters.
5507         * ipa-split.c (consider_split): Adjust, avoid repeated default-def
5508         lookups.
5509         (split_function): Likewise.
5510         * lto-streamer-in.c (input_ssa_names): Adjust.
5511         * omp-low.c (expand_omp_taskreg): Likewise.
5512         * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun.
5513         * tree-complex.c (init_parameter_lattice_values): Adjust.
5514         (get_component_ssa_name): Likewise.
5515         (update_parameter_components): Likewise.
5516         * tree-inline.c (remap_ssa_name): Likewise.
5517         (setup_one_parameter): Likewise.
5518         (initialize_inlined_parameters): Likewise.
5519         (declare_return_variable): Likewise.
5520         (expand_call_inline): Likewise.
5521         (tree_function_versioning): Likewise.
5522         * tree-into-ssa.c (get_default_def_for): Remove.
5523         (get_reaching_def): Use get_or_create_ssa_default_def instead.
5524         * tree-predcom.c (replace_ref_with): Adjust.
5525         * tree-sra.c (get_repl_default_def_ssa_name): Likewise.
5526         (is_unused_scalar_param): Likewise.
5527         (ptr_parm_has_direct_uses): Likewise.
5528         (sra_ipa_reset_debug_stmts): Likewise.
5529         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust.
5530         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
5531         * tree-ssa-live.c (verify_live_on_entry): Likewise.
5532         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise,
5533         avoid repeated default def lookups.
5534         * tree-ssa-sccvn.c (run_scc_vn): Likewise.
5535         * tree-tailcall.c (arg_needs_copy_p): Adjust.
5536         (tree_optimize_tail_calls_1): Likewise.
5538 2012-08-02  Richard Guenther  <rguenther@suse.de>
5540         PR tree-optimization/50672
5541         Revert
5542         2012-08-01  Richard Guenther  <rguenther@suse.de>
5544         * tree-ssa-tail-merge.c (release_last_vdef): Remove.
5545         (replace_block_by): Adjust.
5547 2012-08-02  Richard Guenther  <rguenther@suse.de>
5549         * tree-dfa.c (referenced_var_lookup): Remove.
5550         (find_referenced_vars): Remove.
5551         (pass_referenced_vars): Likewise.
5552         (make_rename_temp): Do not add referenced vars.
5553         (dump_referenced_vars): Remove.
5554         (debug_referenced_vars): Likewise.
5555         (dump_dfa_stats): Do not dump referenced var stats.
5556         (find_vars_r): Remove.
5557         (find_referenced_vars_in): Likewise.
5558         (referenced_var_check_and_insert): Likewise.
5559         (add_referenced_var_1): Likewise.
5560         (remove_referenced_var): Likewise.
5561         * tree-flow.h (referenced_var_lookup): Likewise.
5562         (struct gimple_df): Remove referenced_vars member.
5563         (typedef referenced_var_iterator): Remove.
5564         (FOR_EACH_REFERENCED_VAR): Likewise.
5565         (num_referenced_vars): Likewise.
5566         (debug_referenced_vars, dump_referenced_vars): Likewise.
5567         (add_referenced_var_1, add_referenced_var): Likewise.
5568         (remove_referenced_var): Likewise.
5569         (find_referenced_vars_in): Likewise.
5570         * tree-flow-inline.h (gimple_referenced_vars): Remove.
5571         (first_referenced_var): Likewise.
5572         (end_referenced_vars_p): Likewise.
5573         (next_referenced_var): Likewise.
5574         * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert.
5575         * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs
5576         unconditionally.
5577         * tree-into-ssa.c (dump_decl_set): Likewise.
5578         (pass_build_ssa): Do not require PROP_referenced_vars.
5579         * tree-ssa.c (target_for_debug_bind): Virtual operands are
5580         not suitable, but all register type vars are.
5581         (init_tree_ssa): Do not allocate referenced vars.
5582         (delete_tree_ssa): Do not free referenced vars.
5583         * cgraphunit.c (init_lowered_empty_function): Do not set
5584         PROP_referenced_vars.
5585         (assemble_thunk): Do not add referenced vars.
5586         * gimple-fold.c (canonicalize_constructor_val): Likewise.
5587         (gimplify_and_update_call_from_tree): Likewise.
5588         * gimple-streamer-in.c (input_bb): Likewise.
5589         * passes.c (init_optimization_passes): Do not run
5590         pass_referenced_vars.
5591         (dump_properties): Do not dump PROP_referenced_vars.
5592         * tree-inline.c (remap_decl): Do not add referenced vars.
5593         (remap_gimple_op_r): Likewise.
5594         (copy_tree_body_r): Likewise.
5595         (copy_bb): Likewise.
5596         (setup_one_parameter): Likewise.
5597         (declare_return_variable): Likewise.
5598         (copy_decl_for_dup_finish): Likewise.
5599         (copy_arguments_for_versioning): Likewise.
5600         (tree_function_versioning): Likewise.
5601         * tree-pass.h (PROP_referenced_vars): Remove.
5602         (pass_referenced_vars): Likewise.
5603         * tree-profile.c (gimple_gen_edge_profiler): Do not add
5604         referenced vars.
5605         (gimple_gen_interval_profiler): Likewise.
5606         (gimple_gen_pow2_profiler): Likewise.
5607         (gimple_gen_one_value_profiler): Likewise.
5608         (gimple_gen_ic_profiler): Likewise.
5609         (gimple_gen_average_profiler): Likewise.
5610         (gimple_gen_ior_profiler): Likewise.
5611         * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars.
5612         * tree-cfg.c (replace_ssa_name): Do not add referenced vars.
5613         (move_stmt_op): Likewise.
5614         * tree-ssa-operands.c (create_vop_var): Likewise.
5615         * gimple-low.c (record_vars_into): Likewise.
5616         * gimplify.c (gimple_regimplify_operands): Likewise.
5617         (force_gimple_operand_1): Likewise.
5618         * omp-low.c (expand_omp_for_generic): Likewise.
5619         (expand_omp_for_static_chunk): Likewise.
5620         (expand_omp_atomic_pipeline): Likewise.
5621         * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise.
5622         (translate_clast_assignment): Likewise.
5623         * graphite-sese-to-poly.c (create_zero_dim_array): Likewise.
5624         (handle_scalar_deps_crossing_scop_limits): Likewise.
5625         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
5626         * ipa-split.c (split_function): Likewise.
5627         * matrix-reorg.c (transform_access_sites): Likewise.
5628         * trans-mem.c (tm_log_add): Likewise.
5629         (ipa_tm_insert_gettmclone_call): Likewise.
5630         * tree-complex.c (create_one_component_var): Likewise.
5631         * tree-if-conv.c (ifc_temp_var): Likewise.
5632         * tree-parloops.c (take_address_of): Likewise.
5633         (initialize_reductions): Likewise.
5634         (separate_decls_in_region_name): Likewise.
5635         (create_call_for_reduction_1): Likewise.
5636         (separate_decls_in_region): Likewise.
5637         * tree-predcom.c (predcom_tmp_var): Likewise.
5638         (reassociate_to_the_same_stmt): Likewise.
5639         * tree-sra.c (build_ref_for_offset): Likewise.
5640         (create_access_replacement): Likewise.
5641         (get_replaced_param_substitute): Likewise.
5642         (sra_ipa_reset_debug_stmts): Likewise.
5643         * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
5644         (rewrite_bittest): Likewise.
5645         * tree-ssa-loop-ivopts.c (create_new_iv): Likewise.
5646         * tree-ssa-loop-manip.c (create_iv): Likewise.
5647         (tree_transform_and_unroll_loop): Likewise.
5648         * tree-ssa-math-opts.c (powi_as_mults): Likewise.
5649         (build_and_insert_call): Likewise.
5650         (gimple_expand_builtin_cabs): Likewise.
5651         (execute_optimize_bswap): Likewise.
5652         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
5653         (abs_replacement): Likewise.
5654         (cond_store_replacement): Likewise.
5655         (cond_if_else_store_replacement_1): Likewise.
5656         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5657         * tree-ssa-pre.c (get_representative_for): Likewise.
5658         (create_expression_by_pieces): Likewise.
5659         (insert_into_preds_of_block): Likewise.
5660         * tree-ssa-propagate.c (update_call_from_tree): Likewise.
5661         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
5662         (eliminate_redundant_comparison): Likewise.
5663         (rewrite_expr_tree_parallel): Likewise.
5664         (get_reassoc_pow_ssa_name): Likewise.
5665         * tree-ssa-strlen.c (get_string_length): Likewise.
5666         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
5667         (build_arrays): Likewise.
5668         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
5669         (create_tailcall_accumulator): Likewise.
5670         * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise.
5671         (vect_create_addr_base_for_vector_ref): Likewise.
5672         (vect_permute_store_chain): Likewise.
5673         (vect_permute_load_chain): Likewise.
5674         * tree-vect-generic.c (expand_vector_divmod): Likewise.
5675         * tree-vect-loop-manip.c (set_prologue_iterations): Likewise.
5676         (vect_build_loop_niters): Likewise.
5677         (vect_generate_tmps_on_preheader): Likewise.
5678         (vect_update_ivs_after_vectorizer): Likewise.
5679         (vect_gen_niters_for_prolog_loop): Likewise.
5680         (vect_do_peeling_for_alignment): Likewise.
5681         (vect_create_cond_for_align_checks): Likewise.
5682         * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
5683         (vect_handle_widen_op_by_const): Likewise.
5684         (vect_operation_fits_smaller_type): Likewise.
5685         (vect_recog_over_widening_pattern): Likewise.
5686         * tree-vect-stmts.c (vect_init_vector): Likewise.
5688 2012-08-01  Alexandre Oliva  <aoliva@redhat.com>
5690         PR debug/52983
5691         * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
5693 2012-08-01  Alexandre Oliva  <aoliva@redhat.com>
5695         PR debug/52983
5696         * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally,
5697         falling back to copy_rtx on non-autoinc machines.
5698         (propagate_for_debug_subst): Always use cleanup_auto_inc_dec.
5700 2012-08-01  Alexandre Oliva  <aoliva@redhat.com>
5702         PR debug/52983
5703         * valtrack.h, valtrack.c: New.
5704         * Makefile.in (VALTRACK_H): New.
5705         (OBJS): Add valtrack.o.
5706         (valtrack.o): New.
5707         (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H.
5708         * combine.c: Include valtrack.h.
5709         (make_compound_operation): Publish.
5710         (cleanup_auto_inc_dec): Move to valtrack.c.
5711         (struct rtx_subst_pair, propagate_for_debug_subst): Likewise.
5712         (propagate_for_debug): Likewise.  Add this_basic_block parameter.
5713         Adjust all callers.
5714         * cselib.c: Include valtrack.h.
5715         * dce.c: Likewise.
5716         * df-problems.c: Likewise.
5717         (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c.
5718         (dead_debug_finish, dead_debug_add): Likewise.
5719         (dead_debug_insert_temp): Likewise.
5720         * df.h (struct dead_debug_use): Move to valtrack.h.
5721         (struct dead_debug, enum debug_temp_where): Likewise.
5722         (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h.
5723         (dead_debug_finish, dead_debug_add): Likewise.
5724         (dead_debug_insert_temp): Likewise.
5725         * rtl.h (make_compound_operation): Declare.
5727 2012-08-01  Catherine Moore  <clm@codesourcery.com>
5728             Sandra Loosemore  <sandra@codesourcery.com>
5730         * config/mips/mips-cpus.def (34kn): New.
5731         * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
5732         (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
5733         * config/mips/mips-tables.opt: Regenerate.
5734         * doc/invoke.texi (MIPS Options): Document -march=34kn.
5736 2012-08-01  Richard Henderson  <rth@redhat.com>
5738         * expmed.h (NUM_MODE_PARTIAL_INT): New.
5739         (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New.
5740         (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT.
5741         (struct expmed_op_costs): Likewise.
5742         (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT.
5743         (expmed_mode_index): New.
5744         (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index.
5745         (convert_cost_ptr): Likewise.
5746         * expmed.c (struct init_expmed_rtl): Rename convert to trunc.
5747         (init_expmed_one_conv): Split out from ...
5748         (init_expmed_one_mode): ... here.  Iterate conversions over
5749         partial integer modes too.
5750         (init_expmed): Iterate over partial integer modes too.
5752 2012-08-01  Richard Henderson  <rth@redhat.com>
5754         * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove.
5755         (m32c_init_libfuncs): Remove.
5756         * config/m32c/cond.md (cstore<QHPSI>4_16): Rename from cstore<QHPSI>4.
5757         (cstore<QHPSI>4): New expander.
5759 2012-08-01  Richard Guenther  <rguenther@suse.de>
5761         * tree-flow-inline.h (referenced_var): Remove.
5762         * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
5763         checking code.
5764         * tree-sra.c (candidates): New global hashtable.
5765         (candidate): New function.
5766         (sra_initialize): Initialize candidates.
5767         (sra_deinitialize): Free candidates.
5768         (disqualify_candidate): Remove candidate from candidates.
5769         (maybe_add_sra_candidate): New function.
5770         (find_var_candidates): Walk over all local decls and parameters,
5771         add candidates to candidates hashtable.
5772         (find_param_candidates): Add candidates to candidates hashtable.
5773         (analyze_all_variable_accesses): Use candidate instead of
5774         referenced_var.
5776 2012-08-01  Tom de Vries  <tom@codesourcery.com>
5778         * tree-vrp.c (find_case_label_ranges): New function.
5779         (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use
5780         find_case_label_ranges instead of find_case_label_range.  Handle second
5781         range.
5783 2012-08-01  Michael Matz  <matz@suse.de>
5785         * tree-complex.c (init_parameter_lattice_values): Don't call var_ann.
5786         * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member.
5787         (dump_dfa_stats): Don't dump stats about var anns.
5788         (collect_dfa_stats): Don't collect them.
5789         (add_referenced_var_1): Don't set var annotation pointers.
5790         (remove_referenced_var): Ditto, and only remove it it's in the
5791         hash table.
5793         * tree-flow-inline.h (var_ann): Remove.
5794         * tree-flow.h (struct var_ann_d, var_ann_t): Remove.
5796         * tree-inline.c (remapped_type): Remove.
5797         (can_be_nonlocal): Most variable will be considered live here,
5798         return false earlier.
5799         (remap_decls): Don't call var_ann, all variables will be considered
5800         referenced here.
5801         (copy_debug_stmt): Ditto, and use is_global_var.
5803         * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to
5804         determine if a variable was referred to, not var_ann.
5805         * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann.
5806         (remove_unused_locals): Ditto.
5807         * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers.
5808         * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann.
5809         * tree.c (copy_node_stat): Don't clear var ann pointer.
5810         * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove
5811         ann member.
5812         (DECL_VAR_ANN_PTR): Remove.
5814 2012-08-01  Michael Matz  <matz@suse.de>
5816         * tree-flow.h (struct var_ann_d): Rename used member.
5817         (set_is_used): Don't declare.
5818         * tree-flow-inline.h (clear_is_used): Remove.
5819         (set_is_used, is_used_p): Move to ...
5820         * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use
5821         on the side bitmap.
5822         (usedvars): New bitmap.
5823         (dump_scope_block): Don't dump unusedness.
5824         (remove_unused_locals): Allocate and free usedvars.
5825         * tree-nrv.c (tree_nrv): Don't clear used flags here.
5827 2012-08-01  Michael Matz  <matz@suse.de>
5829         * tree-flow.h (struct var_ann_d): Remove base_var_processed and
5830         base_index members.
5831         * tree-ssa-live.h (struct _var_map): Remove basevars member.
5832         (VAR_ANN_BASE_INDEX): Remove.
5833         * tree-ssa-live.c (var_map_base_init): Use a hash table instead
5834         of var annotation to compress index space.  Don't deal with above
5835         removed members.
5836         (var_map_base_fini): Don't free basevars.
5837         (init_var_map): Don't clear basevars.
5839 2012-08-01  Bill Schmidt  <wschmidt@linux.ibm.com>
5841         * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change
5842         base_name to base_expr.
5843         (struct cand_chain_d): Likewise.
5844         (base_cand_hash): Likewise.
5845         (base_cand_eq): Likewise.
5846         (record_potential_basis): Likewise.
5847         (alloc_cand_and_find_basis): Likewise.
5848         (create_mul_ssa_cand): Likewise.
5849         (create_mul_imm_cand): Likewise.
5850         (create_add_ssa_cand): Likewise.
5851         (create_add_imm_cand): Likewise.
5852         (slsr_process_cast): Likewise.
5853         (slsr_process_copy): Likewise.
5854         (dump_candidate): Likewise.
5855         (base_cand_dump_callback): Likewise.
5856         (unconditional_cands_with_known_stride_p): Likewise.
5857         (cand_increment): Likewise.
5859 2012-08-01  Bill Schmidt  <wschmidt@linux.ibm.com>
5861         PR tree-optimization/46556
5862         * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF.
5863         (base_cand_map): Change to hash table.
5864         (base_cand_hash): New function.
5865         (base_cand_free): Likewise.
5866         (base_cand_eq): Likewise.
5867         (lookup_cand): Change base_cand_map to hash table.
5868         (find_basis_for_candidate): Likewise.
5869         (base_cand_from_table): Exclude CAND_REF.
5870         (restructure_reference): New function.
5871         (slsr_process_ref): Likewise.
5872         (find_candidates_in_block): Call slsr_process_ref.
5873         (dump_candidate): Handle CAND_REF.
5874         (base_cand_dump_callback): New function.
5875         (dump_cand_chains): Change base_cand_map to hash table.
5876         (replace_ref): New function.
5877         (replace_refs): Likewise.
5878         (analyze_candidates_and_replace): Call replace_refs.
5879         (execute_strength_reduction): Change base_cand_map to hash table.
5881 2012-08-01  Uros Bizjak  <ubizjak@gmail.com>
5883         * config/i386/i386.c (ix86_address_subreg_operand): Reject
5884         stack pointer.
5885         (ix86_print_operand_address): Assert that parts.base and parts.index
5886         are non-NULL after call to simplify_subreg.
5888 2012-08-01  Richard Guenther  <rguenther@suse.de>
5890         * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming.
5892 2012-08-01  Richard Guenther  <rguenther@suse.de>
5894         * graphite-clast-to-gimple.c (translate_clast_user): Rename
5895         virtual operands.
5896         * sese.c (graphite_copy_stmts_from_block): Do not rename virtual
5897         operands here.
5898         * tree-call-cdce.c (tree_call_cdce): Use
5899         mark_virtual_operands_for_renaming.
5900         * tree-eh.c (sink_clobbers): Simplify.
5901         * tree-flow.h (mark_sym_for_renaming): Remove.
5902         (mark_virtual_operands_for_renaming): New function.
5903         * tree-if-conv.c (tree_if_conversion): Use
5904         mark_virtual_operands_for_renaming.
5905         * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
5906         * tree-into-ssa.c (mark_sym_for_renaming): Remove.
5907         (mark_virtual_operands_for_renaming): New function.
5908         * tree-loop-distribution.c (tree_loop_distribution): Use
5909         mark_virtual_operands_for_renaming.
5910         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not
5911         update stmts, use mark_virtual_operands_for_renaming.
5912         * tree-ssa-tail-merge.c (release_last_vdef): Remove.
5913         (replace_block_by): Adjust.
5914         (tail_merge_optimize): Use mark_virtual_operands_for_renaming.
5915         * tree-tailcall.c (tree_optimize_tail_calls_1): Use
5916         mark_virtual_operands_for_renaming.
5917         * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
5918         * tree-vectorizer.c (vectorize_loops): Likewise.
5920 2012-08-01  Richard Guenther  <rguenther@suse.de>
5922         * tree-flow.h (struct gimple_df): Remove syms_to_rename member,
5923         add ssa_renaming_needed and rename_vops flags.
5924         (SYMS_TO_RENAME): Remove.
5925         (symbol_marked_for_renaming): Likewise.
5926         (mark_virtual_ops_for_renaming): Likewise.
5927         * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename):
5928         New globals.
5929         (mark_for_renaming, marked_for_renaming): New functions.
5930         (symbol_marked_for_renaming): Remove.
5931         (dump_currdefs): Adjust.
5932         (maybe_replace_use): Likewise.
5933         (maybe_replace_use_in_debug_stmt): Likewise.
5934         (maybe_register_def): Likewise.
5935         (rewrite_update_phi_arguments): Likewise.
5936         (rewrite_update_enter_block): Likewise.
5937         (fini_ssa_renamer): Clear update SSA status here ...
5938         (delete_update_ssa): ... not here.  Free rename set.
5939         (prepare_block_for_update): Compute which decls need renaming.
5940         (dump_update_ssa): Adjust.
5941         (mark_sym_for_renaming): Adjust update SSA status for virtuals.
5942         (need_ssa_update_p): Adjust.
5943         (insert_updated_phi_nodes_for): Likewise.
5944         (update_ssa): Likewise.
5945         * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status
5946         for virtual and real operands.
5947         (finalize_ssa_uses): Likewise.
5948         * tree-ssanames.c (init_ssanames): Adjust.
5949         * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var,
5950         execute_update_addresses_taken): Add bitmap to keep track of which
5951         candidates are suitable for rewriting and later renaming by SSA update.
5952         * matrix-reorg.c (transform_access_sites): Do not rename all defs.
5953         * tree-dfa.c (make_rename_temp): Do not mark real operands for
5954         renaming.
5955         * cgraphunit.c (assemble_thunk): Likewise.
5956         * gimplify.c (gimple_regimplify_operands): Likewise.
5957         (force_gimple_operand_1): Likewise.
5958         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
5959         * tree-inline.c (declare_return_variable): Likewise.
5960         * tree-parloops.c (separate_decls_in_region_stmt): Do not call
5961         mark_virtual_ops_for_renaming.
5962         (create_stores_for_reduction): Likewise.
5963         (create_loads_and_stores_for_name): Likewise.
5964         * tree-predcom.c (mark_virtual_ops_for_renaming): Remove.
5965         (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming.
5966         (execute_load_motion): Likewise.
5967         (remove_stmt): Likewise.
5968         (execute_pred_commoning_chain): Likewise.
5969         * tree-sra.c (create_access_replacement): Do not rename real operands.
5970         (get_unrenamed_access_replacement): Unify with ...
5971         (get_access_replacement): ... this.
5972         (get_repl_default_def_ssa_name): Adjust.
5973         * tree-ssa-loop-im.c (move_computations_stmt): Manually update
5974         virtual SSA form.
5975         (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming.
5976         * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
5978 2012-07-31  DJ Delorie  <dj@redhat.com>
5980         * config/s390/s390.c (s390_option_override): Disable DWARF 3/4
5981         extensions for TPF, unless specifically selected.
5983 2012-08-01  Alan Modra  <amodra@gmail.com>
5985         PR target/54131
5986         * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range
5987         of lo_sum offsets.  Comment.  Assert mode at least word size
5988         rather than bypassing powerpc64 word offset check.
5990 2012-07-31  Bill Schmidt  <wschmidt@linux.ibm.com>
5992         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
5993         costs for vec_perm and vec_promote_demote down to more natural values.
5994         (struct _rs6000_cost_data): New data structure.
5995         (rs6000_density_test): New function.
5996         (rs6000_init_cost): Change to use rs6000_cost_data.
5997         (rs6000_add_stmt_cost): Likewise.
5998         (rs6000_finish_cost): Perform density test when vectorizing a loop.
6000 2012-07-31  Steven Bosscher  <steven@gcc.gnu.org>
6002         * sched-vis.c (print_exp): Handle FMA explicitly.  Simplify handling
6003         of RTX_UNARY function-like operations.  Print unknown expression
6004         RTX classes as pseudo-functions.
6005         (print_pattern): Simplify return pattern printing.
6006         (dump_insn_slim): Print the value of notes as a pattern for proper
6007         printing of CFA notes.
6009 2012-07-31  Dehao Chen  <dehao@google.com>
6011         * predict.c (tree_estimate_probability_driver): Normalize the
6012         loop when initializing the loop optimizer.
6014 2012-07-31  Richard Guenther  <rguenther@suse.de>
6016         * tree-flow.h (struct var_ann_d): Remove need_phi_state
6017         and current_def members.
6018         * tree-into-ssa.c (struct def_blocks_d): Remove var member.
6019         (def_blocks): Remove.
6020         (struct var_info_d): New.
6021         (var_infos): New hashtable.
6022         (struct ssa_name_info): Add def_blocks member.
6023         (get_ssa_name_ann): Adjust.
6024         (get_var_info): New function.
6025         (get_phi_state, set_phi_state, get_current_def,
6026         set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust.
6027         (insert_phi_nodes_compare_def_blocks): Rename to ...
6028         (insert_phi_nodes_compare_var_infos): ... this and adjust.
6029         (insert_phi_nodes): Adjust.
6030         (dump_tree_ssa, dump_tree_ssa_stats): Adjust.
6031         (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove.
6032         (debug_def_blocks_r): Rename to ...
6033         (debug_var_infos_r): ... this and adjust.
6034         (var_info_hash): New function.
6035         (var_info_eq): Likewise.
6036         (rewrite_blocks): Adjust.
6037         (init_ssa_renamer): Likewise.
6038         (fini_ssa_renamer): Likewise.
6039         (delete_update_ssa): Likewise.
6040         (update_ssa): Likewise.
6041         * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs.
6043 2012-07-31  Bill Schmidt  <wschmidt@linux.ibm.com>
6045         PR tree-optimization/53773
6046         * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped.
6047         (LOOP_VINFO_OPERANDS_SWAPPED): New macro.
6048         * tree-vect-loop.c (new_loop_vec_info): Initialize
6049         LOOP_VINFO_OPERANDS_SWAPPED field.
6050         (destroy_loop_vec_info): Restore canonical form.
6051         (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field.
6052         (vect_is_simple_reduction_1): Likewise.
6054 2012-07-31  Steven Bosscher  <steven@gcc.gnu.org>
6056         * sched-vis.c (dump_insn_slim): Print print_rtx_head at the
6057         start of each new line.
6058         * final.c (final_scan_insn): If the final dump is requested as
6059         slim RTL, dump slim RTL to the assembly file also.
6061 2012-07-31  Andrey Belevantsev  <abel@ispras.ru>
6063         PR target/53975
6065         * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
6067         Revert
6068         2011-08-04  Sergey Grechanik  <mouseentity@ispras.ru>
6070         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
6071         only if producer writes to the register given by regno.
6073 2012-07-31  Nick Clifton  <nickc@redhat.com>
6075         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
6076         support for reporting stack usage.
6078         * config/frv/frv.c (QUAD): Fix typo.
6079         (frv_expand_prologue): Report stack usage.
6081 2012-07-31  Steven Bosscher  <steven@gcc.gnu.org>
6083         PR pch/53880
6084         * gengtype.c (struct walk_type_data): Add have_this_obj field.
6085         (walk_type): For functions that take a this_obj argument and
6086         that process fields with a GTY((length)) argument, write the
6087         test that write_types_local_process_field will write also at the
6088         head of the loop, effectively unswitching the loop.
6089         (write_func_for_structure, write_local_func_for_structure): Clear
6090         have_this_obj before calling walk_type.
6091         (write_local_func_for_structure): Set have_this_obj before walk_type.
6092         (write_array): Set have_this_obj for output of local pointer walking
6093         functions but not for marker functions.
6094         (write_types_local_process_field): Assert have_this_obj is set.
6096         * rtl.h (simplify_using_condition): Adjust prototype using bitmap
6097         from coretypes.h.
6099 2012-07-30  Nathan Froyd  <froydnj@gcc.gnu.org>
6102         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6103         * targhooks.c (default_mode_dependent_address_p): Delete code
6104         for GO_IF_MODE_DEPENDENT_ADDRESS.
6105         * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
6106         * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
6107         * doc/tm.texi: Regenerate.
6108         * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
6109         * config/alpha.c (alpha_mode_dependent_address_p): ...here.  New
6110         function.
6111         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6112         * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6113         * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6114         * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
6115         * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6116         * config/vax/vax.c (vax_mode_dependent_address_p): Make static.
6117         Take a const_rtx.
6118         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6120 2012-07-30  Nathan Froyd  <froydnj@gcc.gnu.org>
6122         * expmed.h (NUM_MODE_VECTOR_INT): Define.
6123         (struct expmed_op_cheap, struct expmed_op_costs): New structures.
6124         (struct target_expmed): Convert x_mul_highpart_cost and
6125         x_mul_widen_cost fields to be indexed by integer modes.
6126         Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
6127         of type struct expmed_op_cheap.  Convert other cost fields to be
6128         of type struct_expmed_op_costs.
6129         (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
6130         indexing of respective fields.
6131         (expmed_op_cheap_ptr): New function.
6132         (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
6133         (expmed_op_cost_ptr): New function.
6134         (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
6135         shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
6136         sdiv_cost_ptr, udiv_cost_ptr): Call it.
6138 2012-07-30  Sandra Loosemore  <sandra@codesourcery.com>
6139             Julian Brown  <julian@codesourcery.com>
6141         * doc/invoke.texi (MIPS Options): Document -mno-float.
6142         * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know
6143         about -mno-float.
6145 2012-07-30  Joseph Myers  <joseph@codesourcery.com>
6147         * doc/sourcebuild.texi (Subdirectories): Document common subdirectory.
6149 2012-07-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6151         PR middle-end/53823
6152         * expmed.c (expand_mult): Skip synth_mult for constant double op1 except
6153         for special cases.  Don't initialize coeff and is_neg.
6155 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
6156             Richard Earnshaw  <rearnsha@arm.com>
6158         * target.def (vector_alignment): New target hook.
6159         * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
6160         * doc/tm.texi: Regenerate.
6161         * targhooks.c (default_vector_alignment): New function.
6162         * targhooks.h (default_vector_alignment): Add prototype.
6163         * stor-layout.c (layout_type): Use targetm.vector_alignment.
6164         * config/arm/arm.c (arm_vector_alignment): New function.
6165         (TARGET_VECTOR_ALIGNMENT): Define.
6167         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
6168         vector type alignment instead of size.
6169         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
6170         element type size directly instead of computing it from alignment.
6171         Fix variable naming and comment.
6173 2012-07-30  Kirill Yukhin  <kirill.yukhin@intel.com>
6174             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6176         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
6177         (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
6178         (ix86_handle_option): Handle mrdseed option.
6179         * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
6180         (x86_64-*-*): Likewise.
6181         * config/i386/prfchwintrin.h: New header.
6182         * config/i386/cpuid.h (bit_RDSEED): New.
6183         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6184         RDSEED support.
6185         * config/i386/i386-c.c: Define __RDSEED__ if needed.
6186         * config/i386/i386.c (ix86_target_string): Define -mrdseed option.
6187         (PTA_RDSEED): New.
6188         (ix86_option_override_internal): Handle new option.
6189         (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
6190         (ix86_builtins): Add enum entries for RDSEED* builtins.
6191         (ix86_init_mmx_sse_builtins): Define new builtins.
6192         (ix86_expand_builtin): Expand RDSEED* builtins.
6193         * config/i386/i386.h (TARGET_RDSEED): New.
6194         * config/i386/i386.md (rdseed<mode>_1): New.
6195         * config/i386/i386.opt (mrdseed): New.
6196         * config/i386/x86intrin.h: Include rdseedintrin.h.
6198 2012-07-30  Richard Guenther  <rguenther@suse.de>
6200         * tree-into-ssa.c (mark_def_sites): Also process virtual operands.
6201         (rewrite_stmt): Likewise.
6202         (rewrite_enter_block): Likewise.
6203         (pass_build_ssa): Do not update virtual SSA form during TODO.
6204         (mark_symbol_for_renaming): Do nothing if we are not in SSA form.
6205         * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier.
6207 2012-07-30  Oleg Endo  <olegendo@gcc.gnu.org>
6209         PR target/39423
6210         * config/gcc/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New
6211         insns.
6213 2012-07-30  Oleg Endo  <olegendo@gcc.gnu.org>
6215         PR target/51244
6216         * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section.
6217         Use t_reg_operand predicate.  Add split for negated case.
6218         (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
6219         * config/sh/sh.c (expand_ashiftrt): Likewise.
6221 2012-07-30  Oleg Endo  <olegendo@gcc.gnu.org>
6223         PR target/54089
6224         * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead
6225         of trying to emit ashlsi3_n.
6227 2012-07-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6228             Steven Bosscher  <steven@gcc.gnu.org>
6230         * gengtype.c (adjust_field_type): Diagnose duplicate "length"
6231         option applications and option being applied to arrays of atomic types.
6232         (walk_type): Allow "atomic" option on strings too.
6233         * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option
6234         for the array field.
6235         * vec.h: Describe the atomic object "A" type of the macros in
6236         the header comment.
6237         (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define.
6238         * emit-rtl.c (locations_locators_vals): use the atomic object vector.
6239         * doc/gty.texi: Clarify that GTY option "length" is only for
6240         arrays of non-atomic objects.  Fix typo in the description of the
6241         "atomic" option.
6243 2012-07-27  Uros Bizjak  <ubizjak@gmail.com>
6245         * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle
6246         zero-extended addresses.  Return false if the address has less
6247         than two components.
6248         (ix86_split_lea_for_addr): Unconditionally convert target and
6249         all address operands to requested mode.
6250         * config/i386/i386.md (*lea<mode>): Recover operands from curr_insn.
6251         Pass SImode to ix86_split_lea_for_addr when splitting zero-extended
6252         address.
6253         (zero-extended add splitter): New splitter to conditionally split
6254         non-destructive adds.
6255         (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl.
6257 2012-07-28  Alan Modra  <amodra@gmail.com>
6259         PR target/54093
6260         * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit
6261         multi-gpr reload to cases where predicate passes.  Do the same for
6262         64-bit multi-gpr reload.
6264 2012-07-27  Nathan Froyd  <froydnj@gcc.gnu.org>
6266         * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
6267         smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
6268         shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
6269         sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
6270         macro definitions and re-purpose as inline functions.
6271         (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
6272         set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
6273         zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
6274         neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
6275         shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
6276         set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
6277         mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
6278         udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
6279         set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
6280         New functions.
6281         (convert_cost_ptr): New function, split out from...
6282         (set_convert_cost, convert_cost): ...here.
6283         * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
6284         * gimple-ssa-strength-reduction.c: Likewise.
6286 2012-07-20  Ryan Mansfield  <rmansfield@qnx.com>
6288         * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after
6289         diagnostic_initialize.
6291 2012-07-27  Oleg Endo  <olegendo@gcc.gnu.org>
6293         PR target/54089
6294         * config/sh/sh.c (shiftcosts): Remove case where first operand
6295         is a const_int.  Move COSTS_N_INSNS usage into caller ...
6296         (sh_rtx_costs) ... here.  Return false when shiftcosts cannot be
6297         calculated instead of MAX_COST.
6299 2012-07-27  Richard Guenther  <rguenther@suse.de>
6301         * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained
6302         check whether SSA form is not up-to-date.
6303         * tree-flow.h (name_mappings_registered_p): Remove.
6304         * tree-into-ssa.c (struct repl_map_d): Remove.
6305         (repl_tbl): Likewise.
6306         (struct ssa_name_info): Add repl_set member.
6307         (update_ssa_obstack): New static global.
6308         (get_ssa_name_ann): Initialize repl_set.
6309         (clear_ssa_name_info): Assert age did not wrap.
6310         (repl_map_hash, repl_map_eq, repl_map_free): Remove.
6311         (names_replaced_by): Adjust.
6312         (add_to_repl_tbl): Likewise.
6313         (dump_tree_ssa_stats): Likewise.
6314         (init_update_ssa): Initialize update_ssa_obstack.
6315         (delete_update_ssa): Free update_ssa_obstack.
6316         (name_mappings_registered_p): Remove.
6317         (update_ssa): Adjust.
6319 2012-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
6321         * config/rs6000/constraints.md: Delete "q" constraint.
6322         * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat):
6323         Delete the "q" alternative.
6324         * config/rs6000/predicates.md (gpc_reg_operand): Adjust.
6325         * config/rs6000/rs6000.c (rs6000_debug_reg_global)
6326         (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number):
6327         adjust to MQ_REGNO removal.
6328         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust
6329         comment.
6330         (REG_ALLOC_ORDER): Adjust comment.  Remove MQ from alloc order.
6331         (enum reg_class): Adjust comment.  Delete MQ_REGS.
6332         (REG_CLASS_CONTENTS): Adjust.
6333         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment.
6334         * config/rs6000/rs6000.md: Delete MQ_REGNO.
6335         (movsi_internal1, movsi_internal1_single, movhi_internal,
6336         movqi_internal, movcc_internal1, movsf_hardfloat,
6337         movsf_softfloat): Delete the "q" alternative.
6338         (ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
6339         ctr<mode>_internal6): Delete "q" constraint.
6341 2012-07-27  Richard Guenther  <rguenther@suse.de>
6343         * tree-into-ssa.c (def_blocks_p): New typedef.
6344         (insert_phi_nodes_compare_def_blocks): New function.
6345         (insert_phi_nodes): Do not walk over referenced vars, instead
6346         walk over recorded def_blocks, record relevant ones and sort
6347         them to avoid repeated hashtable lookups.
6349 2012-07-27  Richard Guenther  <rguenther@suse.de>
6351         * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio):
6352         Remove param documentation.
6353         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS,
6354         PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove.
6355         * tree-flow.h (mark_set_for_renaming): Remove.
6356         * tree-into-ssa.c (struct update_ssa_stats_d): Remove.
6357         (add_new_name_mapping): Remove bookkeeping code.
6358         (dump_update_ssa): Remove stats dumping code.
6359         (init_update_ssa): Remove stats allocation code.
6360         (delete_update_ssa): Remove stats freeing code.
6361         (mark_set_for_renaming): Remove.
6362         (switch_virtuals_to_full_rewrite_p): Likewise.
6363         (switch_virtuals_to_full_rewrite): Likewise.
6364         (update_ssa): Do not call switch_virtuals_to_full_rewrite.
6366 2012-07-27  Marek Polacek  <polacek@redhat.com>
6368         * cgraphunit.c: Rename varpool_finalize_variable to
6369         varpool_finalize_decl in a comment.
6371 2012-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
6373         * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
6374         Delete code for -mno-power, -mpower, and -mpower2.
6375         * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete.
6376         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
6377         with -maix64.
6378         (ASM_CPU_SPEC): Delete support for POWER and POWER2.
6379         * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete.
6380         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
6381         with -maix64.
6382         (ASM_CPU_SPEC): Delete support for POWER and POWER2.
6383         * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete.
6384         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
6385         with -maix64.
6386         (TARGET_POWER): Delete.
6387         * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete.
6388         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
6389         with -maix64.
6390         (TARGET_POWER): Delete.
6391         * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete.
6392         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
6393         with -maix64.
6394         (TARGET_POWER): Delete.
6395         * config/rs6000/darwin.h (TARGET_POWER): Delete.
6396         * config/rs6000/driver-rs6000.c (struct asm_names): Delete
6397         support for -mpower, -mpower2, and -mno-power.
6398         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
6399         Likewise.
6400         (rs6000_cpu_cpp_builtins): Likewise.
6401         * config/rs6000/rs6000-cpus.def: Likewise.
6402         * config/rs6000/rs6000-tables.opt: Regenerate.
6403         * config/rs6000/rs6000.c (POWER_MASKS): Delete.
6404         (rs6000_option_override_internal): Adjust.
6405         (rs6000_conditional_register_usage): Adjust.
6406         (rs6000_emit_move): Adjust.
6407         (rs6000_common_init_builtins): Adjust.
6408         (rs6000_init_libfuncs): Adjust.
6409         (rs6000_output_function_prologue): Adjust.
6410         (rs6000_adjust_cost): Adjust.
6411         (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2.
6412         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
6413         POWER and POWER2.
6414         (TARGET_DEFAULT): Adjust.
6415         (PROCESSOR_POWER): Delete.
6416         (SHIFT_COUNT_TRUNCATED): Adjust.
6417         * config/rs6000/rs6000.md (extendqisi2): Delete POWER support.
6418         (extendqisi2_power): Delete.
6419         (extendqisi2_no_power): Adjust.
6420         (extendqihi2, extendqihi2_power, extendqihi2_no_power):
6421         Likewise.
6422         (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust.
6423         (anonymous doz insn patterns): Delete.
6424         (abssi2): Adjust.
6425         (abssi2_power): Delete.
6426         (abssi2_nopower): Adjust.
6427         (nabs_power, nabs_nopower): Likewise.
6428         (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1):
6429         Likewise.  Delete anonymous post-reload splitter.
6430         (mulsi3_no_mq_internal1): rename to...
6431         (mulsi3_internal1): New define_insn.
6432         (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2):
6433         Likewise.
6434         (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq,
6435         udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq,
6436         udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise.
6437         (mulh_call, mull_call, divss_call, divus_call, quoss_call,
6438         quous_call): Likewise.
6439         (maskir_internal1, maskir_internal2, maskir_internal3,
6440         maskir_internal4, maskir_internal5, maskir_internal6,
6441         maskir_internal7, maskir_internal8): Delete.
6442         (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust.
6443         (anonymous sl insn patterns): Delete.
6444         (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust.
6445         (lshrsi3_64): Adjust.
6446         (anonymous sr insn patterns): Delete.
6447         (anonymous rrib insn patterns): Delete.
6448         (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust.
6449         (anonymous sra insn patterns): Delete.
6450         (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust.
6451         (fix_trunc<mode>si2, fix_trunc<mode>si2_internal,
6452         fctiwz_<mode>): Adjust.
6453         (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq,
6454         umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq,
6455         smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq,
6456         umulsi3_highpart_no_mq): Adjust.
6457         (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete.
6458         (ashrdi3_no_power, ashldi3, ashldi3_internal1,
6459         lshrdi3_internal1): Adjust.
6460         (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust.
6461         (movti_power): Delete.
6462         (movti_string): Adjust.
6463         (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust.
6464         (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power,
6465         stmsi4_power, stmsi3_power): Delete.
6466         (anonymous movmemsi insn patterns): Adjust.
6467         (lfq_power2, stfq_power2): Delete.
6468         (eq<mode>, eq<mode>_compare): Adjust.
6469         (eqsi_power): Delete.
6470         (ne0si): Adjust.
6471         (anonymous le, lt, ge, gt insn patterns): Delete.
6472         * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete.
6473         * config/rs6000/sysv4.h (TARGET_POWER): Delete.
6474         * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6475         MULTILIB_MATCHES): Adjust.
6476         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
6477         -mpower, -mno-power, -mpower2, -mno-power2 documentation.
6478         Delete -mcpu=power and -mcpu=power2 documentation.
6480 2012-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
6482         * config/rs6000/601.md: New file.
6483         * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for
6484         RIOS CPUs.
6485         * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise.
6486         * config/rs6000/driver-rs6000.c (detect_processor_aix,
6487         struct asm_names): Likewise.
6488         * config/rs6000/rios1.md: Delete file.
6489         * config/rs6000/rios2.md: Delete file.
6490         * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS
6491         CPUs.
6492         * config/rs6000/rs6000-opts.h (enum processor_type): Delete
6493         PROCESSOR_RIOS1 and PROCESSOR_RIOS2.
6494         * config/rs6000/rs6000-tables.opt: Regenerated.
6495         * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost):
6496         Delete.
6497         (rs6000_option_override_internal): Delete support for RIOS CPUs.
6498         (rs6000_conditional_register_usage): Adjust comment.
6499         (rs6000_issue_rate):Delete support for RIOS CPUs.
6500         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
6501         RIOS CPUs.
6502         (PROCESSOR_POWER): Change to PROCESSOR_PPC601.
6503         (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603.
6504         * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1
6505         and rios2.
6506         (include "rios1.md", include "rios2.md"): Delete.
6507         (include "601.md"): New.
6508         * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to
6509         PROCESSOR_PPC603.
6510         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support
6511         for RIOS CPUs.
6512         * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and
6513         rios2.md .  Add 601.md .
6515 2012-07-26  Richard Henderson  <rth@redhat.com>
6517         * doc/extend.texi (attribute): Document hot/cold for labels.
6518         * predict.c (tree_estimate_probability_bb): Handle hot/cold
6519         attributes on user labels.
6520         * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New.
6522 2012-07-26  Andrew Jenner  <andrew@codesourcery.com>
6523             Sandra Loosemore  <sandra@codesourcery.com>
6525         * cse.c (find_comparison_args): Check for cycles of any length.
6527 2012-07-26  Nick Clifton  <nickc@redhat.com>
6529         * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete.
6530         (mn10300_get_live_callee_saved_regs): If requested return a count
6531         of the number of bytes in the mask.
6532         (mn10300_expand_prologue): Add argument to invocation of
6533         mn10300_get_live_callee_regs.
6534         (mn10300_expand_epilogue): Compute reg_save_bytes by calling
6535         mn10300_get_live_callee_saved_regs.
6536         (mn10300_initial_offset): Likewise.
6537         * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs):
6538         Update prototype.
6539         * config/mn10300/mn10300.md (return_ret): Add argument to
6540         invocation of mn10300_get_live_callee_saved_regs.
6542 2012-07-26  Steven Bosscher  <steven@gcc.gnu.org>
6544         PR regression/54084
6545         * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
6546         pointer difference check.
6548 2012-07-26  Bill Schmidt  <wschmidt@linux.ibm.com>
6550         * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
6551         (mbc_entry_eq): Likewise.
6552         (mult_costs): Likewise.
6553         (cost_tables_exist): Likewise.
6554         (initialize_costs): Likewise.
6555         (finalize_costs): Likewise.
6556         (tree_ssa_iv_optimize_init): Remove call to initialize_costs.
6557         (add_regs_cost): Remove.
6558         (multiply_regs_cost): Likewise.
6559         (add_const_cost): Likewise.
6560         (extend_or_trunc_reg_cost): Likewise.
6561         (negate_reg_cost): Likewise.
6562         (struct mbc_entry): Likewise.
6563         (multiply_by_const_cost): Likewise.
6564         (get_address_cost): Change add_regs_cost calls to add_cost lookups;
6565         change multiply_by_const_cost to mult_by_coeff_cost.
6566         (force_expr_to_var_cost): Likewise.
6567         (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost.
6568         (get_computation_cost_at): Change add_regs_cost calls to add_cost
6569         lookups; change multiply_by_const_cost to mult_by_coeff_cost.
6570         (determine_iv_cost): Change add_regs_cost calls to add_cost lookups.
6571         (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs.
6572         * tree-ssa-address.c (expmed.h): New #include.
6573         (most_expensive_mult_to_index): Change multiply_by_const_cost to
6574         mult_by_coeff_cost.
6575         * gimple-ssa-strength-reduction.c (expmed.h): New #include.
6576         (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost,
6577         neg_cost, and convert_cost instead of IVOPTS interfaces.
6578         (execute_strength_reduction): Remove calls to initialize_costs and
6579         finalize_costs.
6580         * expmed.c (struct init_expmed_rtl): Add convert rtx_def.
6581         (init_expmed_one_mode): Initialize convert rtx_def; initialize
6582         x_convert_cost for related modes.
6583         (mult_by_coeff_cost): New function.
6584         * expmed.h (NUM_MODE_INT): New #define.
6585         (struct target_expmed): Add x_convert_cost matrix.
6586         (set_convert_cost): New inline function.
6587         (convert_cost): Likewise.
6588         (mult_by_coeff_cost): New extern decl.
6589         * tree-flow.h (initialize_costs): Remove decl.
6590         (finalize_costs): Likewise.
6591         (multiply_by_const_cost): Likewise.
6592         (add_regs_cost): Likewise.
6593         (multiply_regs_cost): Likewise.
6594         (add_const_cost): Likewise.
6595         (extend_or_trunc_reg_cost): Likewise.
6596         (negate_reg_cost): Likewise.
6597         * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies.
6598         (tree-ssa-address.o): Update dependencies.
6600 2012-07-26  Steven Bosscher  <steven@gcc.gnu.org>
6602         * bitmap.h: Add explanation of sparse set as linked-list bitmap.
6603         * sbitmap.h: Add explanation about non-sparse sets as simple bitmap.
6604         (TEST_BIT): Make a static inline function for stronger type checking.
6605         (SET_BIT): Don't handle sbitmaps with popcount.
6606         (RESET_BIT): Likewise.
6607         (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount.
6608         (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount.
6609         * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and
6610         RESET_BIT_WITH_POPCOUNT on wordmask bitmaps.
6611         (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into,
6612         ebitmap_and_compl_into, ebitmap_and_compl): Likewise.
6613         * sparseset.h: Add explanation of sparse set representation.
6615 2012-07-26  Richard Guenther  <rguenther@suse.de>
6617         PR tree-optimization/54098
6618         * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the
6619         original range was UNDEFINED.
6621 2012-07-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6623         * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and
6624         vld1Q_dupu64 tests.
6626 2012-07-26  Oleg Endo  <olegendo@gcc.gnu.org>
6628         PR target/51244
6629         * config/sh/sh.opt (mzdcbranch): New option.
6630         * doc/invoke.texi: Document it.
6631         * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition
6632         instead of TARGET_HARD_SH4.
6633         * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default
6634         for TARGET_HARD_SH4.
6636 2012-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
6638         PR target/54089
6639         * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA
6640         case.
6641         (p27_shift_count_operand, not_p27_shift_count_operand): New predicates.
6642         * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber
6643         from expander.  Do not emit shift insn for not-SHMEDIA case.
6644         (ashlsi3_std): Replace with ...
6645         (ashlsi3_k, ashlsi3_d): ... these new insns.
6646         * config/sh/sh.c (gen_ashift): Make static.  Add sanity checks.
6647         Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case.
6648         (gen_ashift_hi): Make static.
6649         * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward
6650         declaration.
6652 2012-07-25  Bharathi Seshadri  <bseshadr@cisco.com>
6653             Jim Wilson  <jimwilso@cisco.com>
6655         * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to
6656         TARGET_BIG_ENDIAN_DEFAULT.
6658 2012-07-25  Eric Botcazou  <ebotcazou@adacore.com>
6660         * gimple-low.c (lower_try_catch): New function.
6661         (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH.
6662         <GIMPLE_CATCH>: Delete.
6663         <GIMPLE_EH_FILTER>: Likewise.
6665 2012-07-25  Eric Botcazou  <ebotcazou@adacore.com>
6667         * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
6668         of BIT_FIELD_REF for ignored results.
6669         * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the
6670         CONSTRUCTOR has vector type before using vector accessors on it.
6671         * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and
6672         #2 of BIT_FIELD_REF.
6673         (gimplify_expr) <BIT_FIELD_REF>: Likewise.
6674         * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do
6675         not process operand #1 and #2.
6676         (convert_local_reference_op): Likewise.
6677         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous
6678         breaks throughout.
6679         <BIT_FIELD_REF>: Reuse operand #1 and #2 directly.
6680         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize
6681         operand #1 and #2.
6682         (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF.
6683         (build6_stat): Delete.
6684         * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise.
6686 2012-07-25 Marc Glisse <marc.glisse@inria.fr>
6688         PR tree-optimization/30318
6689         * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]:
6690         Handle __int128.
6691         [MINUS_EXPR]: Merge with PLUS_EXPR.
6693 2012-07-25  Sandra Loosemore  <sandra@codesourcery.com>
6694             Paul Brook  <paul@codesourcery.com>
6696         PR target/53633
6697         * target.def (warn_func_return): New hook.
6698         * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook.
6699         * doc/tm.texi: Regenerate.
6700         * doc/sourcebuild.texi (Effective-Target Keywords): Document
6701         naked_functions.
6702         * ipa-pure-const.c (warn_function_noreturn): Check
6703         targetm.warn_func_return.
6704         * tree-cfg.c (execute_warn_function_return): Likewise.
6705         * config/spu/spu.c (spu_warn_func_return): New.
6706         (TARGET_WARN_FUNC_RETURN): Define.
6707         * config/rx/rx.c (rx_warn_func_return): New.
6708         (TARGET_WARN_FUNC_RETURN): Define.
6709         * config/avr/avr.c (avr_warn_func_return): New.
6710         (TARGET_WARN_FUNC_RETURN): Define.
6711         * config/arm/arm.c (arm_warn_func_return): New.
6712         (TARGET_WARN_FUNC_RETURN): Define.
6713         * config/mcore/mcore.c (mcore_warn_func_return): New.
6714         (TARGET_WARN_FUNC_RETURN): Define.
6715         (saved_warn_return_type, saved_warn_return_type_count): Remove.
6716         (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack.
6718 2012-07-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6720         * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New
6721         function to implement assembler dialects.
6722         (output_asm_insn): Use do_assembler_dialects.
6723         (asm_fprintf): Likewise.
6725 2012-07-25  Richard Henderson  <rth@redhat.com>
6727         PR bootstrap/54092
6728         * libfuncs.h: Don't include optabs.h.
6729         (struct libfunc_entry): Use "int" for op, mode1, mode2 members.
6730         * optabs.c (hash_libfunc): Don't cast members to int.
6731         * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H.
6733 2012-07-25  Dodji Seketeli  <dodji@redhat.com>
6735         * basic-block.c: Fix typo in comment.
6737 2012-07-25  Kirill Yukhin  <kirill.yukhin@intel.com>
6738             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6740         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New.
6741         (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise.
6742         (ix86_handle_option): Handle mprfchw option.
6743         * config.gcc (i[34567]86-*-*): Add prfchwintrin.h.
6744         (x86_64-*-*): Likewise.
6745         * config/i386/prfchwintrin.h: New header.
6746         * config/i386/cpuid.h (bit_PRFCHW): New.
6747         (bit_BMI): Formatting fix.
6748         (bit_HLE): Likewise.
6749         (bit_RTM): Likewise.
6750         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6751         PREFETCHW support.
6752         * config/i386/i386-c.c: Define __PRFCHW__ if needed.
6753         * config/i386/i386.c (ix86_target_string): Define
6754         -mprfchw option. Formatting fixes.
6755         (PTA_HLE): Formatting fix.
6756         (PTA_PRFCHW): New.
6757         (ix86_option_override_internal): Handle new option.
6758         (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw.
6759         * config/i386/i386.h (TARGET_PRFCHW): New.
6760         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW.
6761         * config/i386/i386.opt (mprfchw): New.
6762         * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h.
6763         * config/i386/x86intrin.h: Include prfchwintrin.h.
6765 2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
6767         * config/i386/i386.md (stack_protect_set): Disable the pattern
6768         for Android since Android libc (bionic) does not provide random
6769         value for stack protection guard at gs:0x14. Guard value
6770         will be provided from external symbol (default implementation).
6771         (stack_protect_set_<mode>): Likewise.
6772         (stack_protect_test): Likewise.
6773         (stack_protect_test_<mode>): Likewise.
6774         * gcc/defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
6775         not have Bionic by default
6776         * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
6777         Macro OPTION_BIONIC is defined in this file and provides Bionic
6778         accessibility status
6780 2012-07-25  Steven Bosscher  <steven@gcc.gnu.org>
6782         * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
6784 2012-07-25  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6786         btver2 Enablement
6787         * config.gcc (i[34567]86-*-linux* | ...): Add btver2.
6788         (case ${target}): Add btver2.
6789         * config/i386/driver-i386.c (host_detect_local_cpu): Let
6790         -march=native recognize btver2 processors.
6791         * config/i386/i386-c.c (ix86_target_macros_internal): Add
6792         btver2 def_and_undef
6793         * config/i386/i386.c (struct processor_costs btver2_cost): New
6794         btver2 cost table.
6795         (m_BTVER2): New definition.
6796         (m_AMD_MULTIPLE): Includes m_BTVER2.
6797         (initial_ix86_tune_features): Add btver2 tune.
6798         (processor_target_table): Add btver2 entry.
6799         (static const char *const cpu_names): Add btver2 entry.
6800         (software_prefetching_beneficial_p): Add btver2.
6801         (ix86_option_override_internal): Add btver2 instruction sets.
6802         (ix86_issue_rate): Add btver2.
6803         (ix86_adjust_cost): Add btver2.
6804         * config/i386/i386.h (TARGET_BTVER2): New definition.
6805         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2.
6806         (enum processor_type): Add PROCESSOR_BTVER2.
6807         * config/i386/i386.md (define_attr "cpu"): Add btver2.
6809 2012-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
6811         * doc/tm.texi: Regenerate.
6812         * targhooks.c (default_init_cost): Add prologue and epilogue costs.
6813         (default_add_stmt_cost): Likewise; also handle NULL stmt_info.
6814         (default_finish_cost): Add prologue and epilogue costs.
6815         * targhooks.h (default_add_stmt_cost): Change parameter list.
6816         (default_finish_cost): Likewise.
6817         * target.def (init_cost): Change documentation string.
6818         (add_stmt_cost): Change documentation string and parameter list.
6819         (finish_cost): Likewise.
6820         * target.h (vect_cost_model_location): New enum.
6821         * tree-vectorizer.h (struct _slp_tree): Remove cost substruct.
6822         (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec
6823         to body_cost_vec.
6824         (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove.
6825         (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC.
6826         (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove.
6827         (struct _vect_peel_extended_info): Rename stmt_cost_vec to
6828         body_cost_vec.
6829         (struct _stmt_vec_info): Remove cost substruct.
6830         (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove.
6831         (stmt_vinfo_set_outside_of_loop_cost): Remove.
6832         (builtin_vectorization_cost): New function.
6833         (vect_get_stmt_cost): Change to use builtin_vectorization_cost.
6834         (add_stmt_cost): Change parameter list.
6835         (finish_cost): Likewise.
6836         (vect_model_simple_cost): Likewise.
6837         (vect_model_store_cost): Likewise.
6838         (vect_model_load_cost): Likewise.
6839         (record_stmt_cost): Likewise.
6840         (vect_get_load_cost): Likewise.
6841         (vect_get_known_peeling_cost): Likewise.
6842         * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter
6843         list; call record_stmt_cost for prologue and epilogue costs.
6844         (vect_estimate_min_profitable_iters): Call add_stmt_cost for
6845         prologue and epilogue costs; remove computation of vec_outside_cost;
6846         return vec_prologue_cost and vec_epilogue_cost from finish_cost.
6847         (vect_model_reduction_cost): Revise call to add_stmt_cost for body
6848         costs; call add_stmt_cost for prologue and epilogue costs.
6849         (vect_model_induction_cost): Revise call to add_stmt_cost for body
6850         costs; call add_stmt_cost for prologue costs.
6851         * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter
6852         list for function and arguments for calls to vect_get_load_cost and
6853         vect_get_store_cost.
6854         (vect_peeling_hash_get_lowest_cost): Change argument list for calls to
6855         vect_get_data_access_cost and vect_get_known_peeling_cost; use
6856         temporary vectors prologue_cost_vec and epilogue_cost_vec for the
6857         latter call and discard their results; rename stmt_cost_vec to
6858         body_cost_vec; correct possible storage leak for body_cost_vec.
6859         (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to
6860         body_cost_vec.
6861         (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to
6862         body_cost_vec; add extra dummy parameter on calls to
6863         vect_get_data_access_cost; tolerate null si->stmt; add vect_body to
6864         argument list on call to add_stmt_cost.
6865         * tree-vect-stmts.c (record_stmt_cost): Change parameter list;
6866         rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call
6867         builtin_vectorization_cost; add "where" parameter on call to
6868         add_stmt_cost.
6869         (vect_model_simple_cost): Change parameter list; call record_stmt_cost
6870         for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost;
6871         rename stmt_cost_vec to body_cost_vec.
6872         (vect_model_promotion_demotion_cost): Add vect_body argument to call
6873         to add_stmt_cost; call add_stmt_cost for prologue costs; remove call
6874         to stmt_vinfo_set_outside_of_loop_cost.
6875         (vect_model_store_cost): Change parameter list; call record_stmt_cost
6876         for prologue costs; add vect_body argument to call to record_stmt_cost;
6877         rename stmt_cost_vec to body_cost_vec; remove call to
6878         stmt_vinfo_set_outside_of_loop_cost.
6879         (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add
6880         vect_body argument to calls to record_stmt_cost.
6881         (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to
6882         body_cost_vec; add vect_body argument to calls to record_stmt_cost;
6883         remove call to stmt_vinfo_set_outside_of_loop_cost.
6884         (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to
6885         body_cost_vec; add vect_body argument to calls to record_stmt_cost;
6886         call record_stmt_cost for prologue costs.
6887         (vectorizable_store): Change argument list for call to
6888         vect_model_store_cost.
6889         (vectorizable_load): Change argument list for call to
6890         vect_model_load_cost.
6891         (new_stmt_vec_info): Remove assignment to
6892         STMT_VINFO_OUTSIDE_OF_LOOP_COST.
6893         * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs.
6894         (spu_add_stmt_cost): Likewise; also handle NULL stmt_info.
6895         (spu_finish_cost): Add prologue and epilogue costs.
6896         * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs.
6897         (i386_add_stmt_cost): Likewise; also handle NULL stmt_info.
6898         (i386_finish_cost): Add prologue and epilogue costs.
6899         * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue
6900         costs.
6901         (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info.
6902         (rs6000_finish_cost): Add prologue and epilogue costs.
6903         * tree-vect-slp.c (vect_free_slp_instance): Rename
6904         SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC.
6905         (vect_create_new_slp_node): Remove assignment to
6906         SLP_TREE_OUTSIDE_OF_LOOP_COST.
6907         (vect_get_and_check_slp_defs): Change parameter list; change argument
6908         lists to calls to vect_model_store_cost and vect_model_simple_cost.
6909         (vect_build_slp_tree): Change parameter list; change argument lists
6910         to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and
6911         recursive self-calls; remove setting of outside_cost from
6912         SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to
6913         record_stmt_cost.
6914         (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec;
6915         rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC;
6916         remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP
6917         prologue costs.
6918         (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to
6919         body_cost_vec; handle null ci->stmt; add vect_body argument to call
6920         to add_stmt_cost; simplify calls to targetm.vectorize.
6921         builtin_vectorization_cost; return vec_prologue_cost and
6922         vec_epilogue_cost from finish_cost.
6923         (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to
6924         body_cost_vec; add vect_body argument to call to add_stmt_cost.
6926 2012-07-24  Richard Henderson  <rth@redhat.com>
6928         * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison.
6929         * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
6930         * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
6931         * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
6932         * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove
6933         comment reference.
6934         * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
6935         * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New.
6936         (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX.
6937         * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
6938         * config/vax/vax.md (fixuns_trunc<VAXfp><VAXint>): New.
6939         * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
6940         * doc/tm.texi: Rebuild.
6942 2012-07-24  Richard Henderson  <rth@redhat.com>
6944         * optabs.def: New file.
6945         * Makefile.in (OPTABS_H): Add insn-opinit.h.
6946         (MOSTLYCLEANFILES): Likewise.
6947         (insn-opinit.o): Remove reload.h
6948         (simple_rtl_generated_c): Remove insn-opinit.c.
6949         (s-opinit): New rule.
6950         (build/genopinit.o): Add optabs.def.
6951         * genopinit.c (rtx_upname): New.
6952         (optabs): Extract to optabs.def
6953         (enum optab_tag, struct optab_def_d, optabs): New.
6954         (struct pattern_d, patterns): New.
6955         (match_pattern): Split out from ...
6956         (gen_insn): ... here.  Push matches on patterns vec.
6957         (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New.
6958         (header_file_name, source_file_name, handle_arg): New.
6959         (open_outfile): New.
6960         (main): Sort and emit new tables.  Generate lookup_handler,
6961         raw_optab_handler, swap_optab_enable.
6962         * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op".
6963         * optabs.c (code_to_optab_): Remove.
6964         (hash_libfunc): Update for optab name change.
6965         (eq_libfunc): Likewise.
6966         (convert_optab_libfunc): Update computation of optab member;
6967         use the new convlib_def table.
6968         (optab_libfunc): Similarly.
6969         (set_optab_libfunc, set_conv_libfunc): Likewise.
6970         (sign_expand_binop): Use swap_optab_enable instead of fake optabs.
6971         (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove.
6972         (init_optabs): Don't call them; export the data to optabs.def.
6973         (gen_int_libfunc, gen_fp_libfunc): Export non-static.
6974         (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise.
6975         (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise.
6976         (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise.
6977         (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise.
6978         (gen_int_signed_fixed_libfunc): Likewise.
6979         (gen_int_unsigned_fixed_libfunc): Likewise.
6980         (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise.
6981         (gen_ufloat_conv_libfunc): Likewise.
6982         (gen_int_to_fp_nondecimal_conv_libfunc): Likewise.
6983         (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
6984         (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise.
6985         (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise.
6986         (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise.
6987         (debug_optab_libfuncs): Update for optab representation change.
6988         * optabs.h: Include insn-opinit.h.
6989         (optab, convert_optab, direct_optab): New typedefs.
6990         (struct optab_handlers, struct widening_optab_handlers): Remove.
6991         (struct optab_libcall_d): Rename from optab_d; remove code_,
6992         handlers, widening members.
6993         (struct convert_optab_libcall_d): Rename from convert_optab_d;
6994         remove code_ and handlers members.
6995         (enum optab_index, enum convert_optab_index): Remove.
6996         (enum direct_optab_index): Remove.
6997         (code_to_optab_): Fix array range.
6998         (optab_to_code): Covert to inline function.
6999         (optab_to_code_, convlib_def, normlib_def): Declare.
7000         (raw_optab_handler, swap_optab_enable): Declare.
7001         (unknown_optab): Remove; export to optabs.def
7002         (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
7003         usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
7004         ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab,
7005         addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab,
7006         smul_widen_optab, umul_widen_optab, usmul_widen_optab,
7007         smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab,
7008         usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab,
7009         ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab,
7010         sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab,
7011         umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab,
7012         ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab,
7013         rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab,
7014         vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab,
7015         atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab,
7016         movstrict_optab, movmisalign_optab, storent_optab, neg_optab,
7017         negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab,
7018         ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab,
7019         parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab,
7020         cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab,
7021         ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab,
7022         log_optab, log10_optab, log2_optab, log1p_optab, floor_optab,
7023         ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab,
7024         tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab,
7025         cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab,
7026         lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab,
7027         cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab,
7028         reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
7029         reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab,
7030         usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab,
7031         vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab,
7032         vec_realign_load_optab, vec_widen_umult_hi_optab,
7033         vec_widen_umult_lo_optab, vec_widen_smult_hi_optab,
7034         vec_widen_smult_lo_optab, vec_widen_umult_even_optab,
7035         vec_widen_umult_odd_optab, vec_widen_smult_even_optab,
7036         vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab,
7037         vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab,
7038         vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab,
7039         vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab,
7040         vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab,
7041         vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab,
7042         vec_pack_usat_optab, vec_pack_sfix_trunc_optab,
7043         vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab,
7044         sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab,
7045         sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab,
7046         sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab,
7047         sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab,
7048         sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab,
7049         ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab,
7050         ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab,
7051         fract_optab, fractuns_optab, satfract_optab, satfractuns_optab,
7052         vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab,
7053         movcc_optab, reload_in_optab, reload_out_optab, movmem_optab,
7054         setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab,
7055         sync_lock_release_optab, sync_add_optab, sync_sub_optab,
7056         sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab,
7057         atomic_exchange_optab, atomic_compare_and_swap_optab,
7058         atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab,
7059         atomic_sub_fetch_optab, atomic_and_fetch_optab,
7060         atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab,
7061         atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab,
7062         atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab,
7063         atomic_add_optab, atomic_sub_optab, atomic_and_optab,
7064         atomic_nand_optab, atomic_xor_optab, atomic_or_optab,
7065         atomic_always_lock_free_optab, atomic_is_lock_free_optab,
7066         atomic_thread_fence_optab, atomic_signal_fence_optab,
7067         vec_perm_optab, vec_perm_const_optab): Likewise.
7068         (struct target_optabs): Remove x_optab_table, x_convert_optab_table,
7069         and x_direct_optab_table members; add pat_enable.
7070         (optab_table, convert_optab_table, direct_optab_table): Remove.
7071         (optab_handler): Use raw_optab_handler.
7072         (widening_optab_handler, convert_optab_handler): Likewise.
7073         (set_optab_handler, set_widening_optab_handler): Remove.
7074         (set_convert_optab_handler, set_direct_optab_handler): Remove.
7075         (direct_optab_handler): Defer to optab_handler.
7076         * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New.
7078 2012-07-24  Jason Merrill  <jason@redhat.com>
7080         * bitmap.c (bitmap_descriptor): Adjust order of parameters to
7081         match MEM_STAT_DECL.
7082         * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo.
7084 2012-07-24  Richard Henderson  <rth@redhat.com>
7086         * optabs.h (struct optab_d): Rename code member to code_.
7087         (struct convert_optab_h): Likewise.
7088         (code_to_optab_): Rename from code_to_optab.
7089         (code_to_optab, optab_to_code): New.
7090         * dojump.c (do_compare_rtx_and_jump): Use code_to_optab.
7091         * ifcvt.c (noce_emit_move_insn): Likewise.
7092         * optabs.c (simplify_expand_binop): Use optab_to_code.
7093         (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise.
7094         (avoid_expensive_constant, expand_binop_directly): Likewise.
7095         (expand_binop, expand_simple_unop, expand_unop_direct): Likewise.
7096         (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise.
7097         (have_insn_for, debug_optab_libfuncs): Likewise.
7098         (init_optab, init_optabv, init_convert_optab): Update for optab
7099         member name change.
7101         * libfuncs.h: Include optabs.h.
7102         * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h.
7103         * Makefile.in (LIBFUNCS_H): Add OPTABS_H.
7104         (lto-streamer-in.o, dwarf2out.o): Update deps.
7106         * optabs.h (unknown_optab): New.
7107         * builtins.c (interclass_mathfn_icode): Use it.
7108         * dojump.c (do_compare_rtx_and_jump): Likewise.
7109         * optabs.c (optab_for_tree_code, expand_binop): Likewise.
7110         * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
7111         (expand_vector_operations_1): Likewise.
7112         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7113         * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7115 2012-07-24  Steven Bosscher  <steven@gcc.gnu.org>
7117         * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
7119 2012-07-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7121         PR target/54051
7122         * config/arm/arm.c (arm_print_operand_address): Remove superfluous
7123         printing of 0.
7124         * config/arm/neon.md ("neon_vld3_lane<mode>":VD): Remove alignment
7125         specifier.
7126         ("neon_vld3_lane<mode>":VMQ): Likewise.
7127         ("neon_vld3_dup<mode>":VDX): Likewise.
7128         ("neon_vst3_lane<mode>":VD): Likewise.
7129         ("neon_vst3_lane<mode>":VMQ): Likewise.
7131 2012-07-24  Roland McGrath  <mcgrathr@google.com>
7133         * arm.c (arm_get_frame_offsets): Don't use fixed regs for
7134         stack alignment padding.
7136 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
7138         PR target/53961
7139         * config/i386/i386.c (ix86_legitimate_address_p): Move check for
7140         negative constant address for TARGET_X32 ...
7141         (ix86_decompose_address): ... here.  Reject constant addresses
7142         that don't satisfy x86_64_immediate_operand predicate.
7144 2012-07-24  Julian Brown  <julian@codesourcery.com>
7146         * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check.
7148 2012-07-24  Steven Bosscher  <steven@gcc.gnu.org>
7150         * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS.
7151         Move test to check that there is a popcount function for the the number
7152         of bits in SBITMAP_ELT_BITS to sbitmap.c.
7153         * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT.
7154         MEM_STAT_INFO): Define in terms of their ALONE counterparts.
7156         * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled.
7157         * configure: Regenerate.
7158         * statistics.h (GATHER_STATISTICS): Error out if it is not defined.
7159         (GCC_MEM_STAT_ARGUMENTS): New define.
7160         (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS.
7161         (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines.
7162         (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT,
7163         FINAL_PASS_MEM_STAT): Define.
7164         * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL.
7165         * ggc.h (ggc_record_overhead, ggc_free_overhead,
7166         ggc_prune_overhead_list): Remove internal prototypes, they are defined
7167         already in ggc-internal.h.
7168         * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS
7169         wrappers.
7170         (add_statistics): Likewise.
7171         (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0.
7172         * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS
7173         wrappers around "survived" and "stats" members.
7174         (alloc_large_page): Always initialize survived.
7175         (ggc_internal_alloc_zone_stat): Likewise.
7176         Remove #ifdef GATHER_STATISTICS wrappers.  Record overhead if
7177         GATHER_STATISTICS is non-0.
7178         (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code.
7179         (sweep_pages): Always increase survived.
7180         (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code.
7181         (calculate_average_page_survival): Always define.
7182         (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code.
7183         (ggc_print_statistics): Likewise.
7184         (ggc_pch_read): Likewise.
7185         * ggc-page.c (struct globals): Always define "stats" member.
7186         (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
7187         (ggc_free): Likewise.
7188         (ggc_collec): Likewise.
7189         (ggc_print_statistics): Likewise.
7190         * bitmap.h (struct bitmap_head_def): Always define "desc" member.
7191         (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code.
7192         * gimple.h (enum gimple_alloc_kind): Always define.
7193         (gimple_alloc_kind): Likewise.
7194         * tree-flow.h (phinodes_print_statistics): Always define.
7195         (ssanames_print_statistics): Likewise.
7196         * vec.h (vec_heap_free): Always define.
7197         (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0.
7198         * alloc-pool.c (alloc_pool_descriptor): Always define.
7199         (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code.
7200         (empty_alloc_pool): Likewise.
7201         (pool_alloc): Likewise.
7202         (pool_free): Likewise.
7203         (dump_alloc_pool_statistics): Likewise.
7204         (print_statistics): Always define.
7205         * bitmap.c (struct bitmap_descriptor): Always define.
7206         (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT.
7207         (register_overhead): Always define.
7208         (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code.
7209         (bitmap_element_allocate): Likewise.
7210         (bitmap_elt_clear_from): Likewise.
7211         (bitmap_obstack_alloc_stat): Likewise.
7212         (bitmap_gc_alloc_stat): Likewise.
7213         (bitmap_obstack_free): Likewise.
7214         (bitmap_find_bit): Likewise.
7215         (bitmap_ior_and_into):  Likewise.
7216         (bitmap_print): Likewise.
7217         (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0.
7218         * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define.
7219         (gimple_alloc_kind_names): Likewise.
7220         (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
7221         (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0.
7222         * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
7223         rtvec_alloc_sizes): Always define.
7224         (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code.
7225         (rtx_alloc_stat): Likewise.
7226         (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0.
7227         * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts,
7228         tree_node_sizes, tree_node_kind_names): Always define.
7229         (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS
7230         to if-code.
7231         (type_hash_canon): Likewise.
7232         (dump_tree_statistics): Likewise.
7233         * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created):
7234         Always define.
7235         (ssanames_print_statistics): Likewise.
7236         (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code.
7237         * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define.
7238         (phinodes_print_statistics): Likewise.
7239         (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code.
7240         * vec.c (struct vec_descriptor): Always define.
7241         (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr,
7242         vec_descriptor, rester_overhead, free_overhead): Likewise.
7243         (cmp_statistic): Likewise.
7244         (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code.
7245         (vec_heap_o_reserve_1): Likewise.
7246         (dump_vec_loc_statistics): Likewise.
7248 2012-07-24  Richard Guenther  <rguenther@suse.de>
7250         PR tree-optimization/53616
7251         * tree-loop-distribution.c (ldist_gen): Do not change
7252         partition ordering when merging partitions.
7254 2012-07-24  Alan Modra  <amodra@gmail.com>
7256         PR target/53914
7257         PR target/54009
7258         * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
7259         * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
7260         Adjust all rs6000_legitimate_offset_address_p calls.
7261         * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
7262         (rs6000_secondary_reload_gpr): Declare.
7263         (rs6000_legitimate_offset_address_p): Update prototype.
7264         (rs6000_offsettable_memref_p): Delete.
7265         (rs6000_secondary_reload_ppc64): Delete.
7266         * config/rs6000/rs6000.c (address_offset): New function.
7267         (mem_operand_gpr): Likewise.
7268         (rs6000_legitimate_offset_address_p): Add worst_case param.  When
7269         not worst_case assume class of regs with least restrictive offsets.
7270         Adjust all calls.
7271         (legitimate_lo_sum_address_p): Simplify register mode tests.
7272         (rs6000_legitimize_address): Likewise.  Assume best case offset
7273         addressing.  Combine ELF and MACHO lo_sum code.
7274         (rs6000_mode_dependent_address): Correct offset addressing limits.
7275         (rs6000_offsettable_memref_p): Make static, add reg_mode param.
7276         Use reg_mode to help rs6000_legitimate_offset_address_p.
7277         (rs6000_secondary_reload): Use address_offset.  Handle 32-bit multi
7278         gpr load/store when offset too large.
7279         (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
7280         (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
7281         * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
7282         for gpr load/store.  Order alternatives as r->Y,Y->r,r->r and
7283         d->m,m->d,d->d.  Correct size of gpr load/store.
7284         (movdf_softfloat32): Use 'Y' constraint for gpr load/store.  Order
7285         alternatives.
7286         (movti_ppc64): Likewise.
7287         (movdi_internal32): Likewise.  Also disparage fprs.
7288         (movdi_mfpgpr, movdi_internal64): Likewise.
7289         (movtf_internal): Use 'm' for fpr load/store.  Order alternatives.
7290         (movtf_softfloat): Order alternatives.
7291         (extenddftf2_internal): Use 'm' and 'Y' for store.
7292         (movti_power, movti_string): Use 'Y' for gpr load/store.  Order.
7293         (stack_protect_setdi, stack_protect_testdi): Likewise.
7294         (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
7295         (movdf_softfloat64): Likewise.
7296         (reload_<mode>_store): Adjust reload_di_store to provide
7297         reload_si_store as well.
7298         (reload_<mode>_load): Likewise.
7300 2012-07-23  Oleg Endo  <olegendo@gcc.gnu.org>
7302         PR target/51244
7303         * config/sh/predicates.md (general_movsrc_operand,
7304         general_movdst_operand): Reject T_REG.
7305         * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
7306         movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
7307         Remove T_REG alternatives.
7308         (*negtstsi): New insn.
7310 2012-07-23  Oleg Endo  <olegendo@gcc.gnu.org>
7312         PR target/53511
7313         * config/sh/sh.md (mulsf3_ie): Delete.
7314         (mulsf3_i4): Rename to mulsf3_i.
7315         (mulsf3): Emit mulsf3_i insn.
7317 2012-07-23  Oleg Endo  <olegendo@gcc.gnu.org>
7319         * config/sh/sh.md (addc1, subc1): Delete.
7320         (adddi3_compact): Use addc instead of addc1.
7321         (subdi3_compact): Use subc instead of subc1.
7323 2012-07-23  Uros Bizjak  <ubizjak@gmail.com>
7325         * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
7326         * config/i386/i386.c (ix86_lea_outperforms): Make static.  Make
7327         split_cost argument signed.
7328         (ix86_avoid_lea_for_add): Cleanup.
7329         (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
7330         (ix86_avoid_lea_for_addr): Ditto.  Make split_cost signed.
7331         Use gen_lowpart instead of gen_rtx_SUBREG.  Cleanup.
7333 2012-07-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
7335         * config/arm/arm.c (arm_reorg): Ensure all insns are split.
7337 2012-07-23  Uros Bizjak  <ubizjak@gmail.com>
7339         PR target/53961
7340         * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
7341         * config/i386/i386.c (ix86_print_operand_address): Ditto.
7342         (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
7343         addresses.  Prevent zero extensions of CONST_INT operands.
7345 2012-07-23  Steven Bosscher  <steven@gcc.gnu.org>
7347         * sbitmap.h (struct int_list): Remove.
7348         (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
7349         Remove prototypes of non-existing function.
7350         (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
7351         sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
7352         unused defines.
7353         (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
7354         sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
7355         * basic-block.h: ... here.
7356         * sbitmap.c: Do not include basic-block.h.
7357         (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
7358         sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
7359         * cfganal.c: ... here.
7360         * bt-load.c (compute_out, link_btr_uses): Update for above changes.
7361         * gcse.c (compute_code_hoist_vbeinout): Likewise.
7362         * lcm.c (compute_antinout_edge, compute_available): Likewise.
7363         * Makefile.in: Fix sbitmap.o dependencies.
7365 2012-07-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7366             Nick Clifton  <nickc@redhat.com>
7368         * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
7369         * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
7370         (unused) parameter to void *.
7372 2012-07-23  Richard Guenther  <rguenther@suse.de>
7374         * tree-ssa-alias.c (dump_alias_info): Walk over local decls
7375         instead of referenced vars.
7377 2012-07-23  Steven Bosscher  <steven@gcc.gnu.org>
7379         * coverage.c: Refer to "notes file" instead of "graph file"
7380         in all comments.  Explain history of bbg prefix.
7381         * gcov-io.h: Likewise.
7382         * gcov.c: Likewise.
7383         (find_source): Likewise in fnotice.
7384         (read_graph_file): Likewise.
7385         (read_count_file): Likewise.
7386         * doc/gcov.texi: Document -fprofile-dir flag.  Add "notes file"
7387         and "data file" explicitly in the explanation of the files.
7389 2012-07-22  Steven Bosscher  <steven@gcc.gnu.org>
7391         PR tree-optimization/53881
7392         * tree-cfg.c (group_case_labels_stmt): Look up the basic block
7393         for each label and compare them instead of labels.
7395 2012-07-22  Steven Bosscher <steven@gcc.gnu.org>
7397         * opts.c (common_handle_option): Do not set
7398         flag_value_profile_transformations for -fprofile-generate.
7399         * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
7400         (BB_TO_GCOV_INDEX): Remove.
7401         (output_location): Don't use it.
7402         (branch_prob): Likewise.  Don't fiddle with the index of
7403         ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.  Use clear_aux_for_blocks.
7404         (find_spanning_tree):
7405         * gcov.c (struct function_info): Document that blocks 0 and 1
7406         are the entry resp. exit blocks in gcov, too, like in GCC itself.
7407         (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
7408         blocks identification.
7409         (output_lines): Likewise.
7410         * value-prof.c (gimple_value_profile_transformations): Do not
7411         test flag_value_profile_transformations again.
7412         (gimple_ic_transform): Take a gimple_stmt_iterator like all other
7413         transformation functions.
7414         (gimple_values_to_profile):
7415         Don't test flag_value_profile_transformations
7416         * tree-profile.c (tree_profiling): Assert that the cgraph is in
7417         the CGRAPH_STATE_IPA_SSA state.
7418         Do not set, or look at, after_tree_profile.
7419         * function.h (struct function): Remove after_tree_profile bit.
7420         * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
7421         * tree-inline.c (initialize_cfun): Don't copy it.
7422         * lto-streamer-out.c (output_struct_function_base): Don't stream it.
7423         * lto-streamer-in.c (input_struct_function_base): Likewise.
7425 2012-07-22  Oleg Endo  <olegendo@gcc.gnu.org>
7427         * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
7428         (SH_DYNAMIC_SHIFT_COST): Use it.
7429         * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
7430         (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
7431         Add sanity check for input value.  Add function description.
7432         * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
7433         lshrsi3_d): Use TARGET_DYNSHIFT.
7435 2012-07-22  Oleg Endo  <olegendo@gcc.gnu.org>
7437         * config/sh/sh.md (negc): Delete expander.
7438         (*negc): Rename insn to negc.
7440 2012-07-22  Uros Bizjak  <ubizjak@gmail.com>
7442         PR target/53961
7443         * config/i386/i386.md (*lea): New insn pattern.
7444         (*lea_1): Remove.
7445         (*lea<mode>_2): Ditto.
7446         (*lea_{3,4,5,6}_zext): Ditto.
7447         * config/i386/predicates.md (lea_address_operand): Do not reject
7448         zero-extended address operands.
7449         * config/i386/constraints.md (j): Remove address constraint.
7450         * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
7451         of an address.
7452         (ix86_print_operand_address): Handle SImode subreg of an address.
7453         (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
7455 2012-07-22  Hans-Peter Nilsson  <hp@axis.com>
7457         Emit executable-stack note correctly for CRIS targets.
7458         * config/cris/cris.c (cris_file_end): New function.
7459         (TARGET_ASM_FILE_END): Define.
7461 2012-07-22  Chung-Lin Tang  <cltang@codesourcery.com>
7462             Maxim Kuvyrkov  <maxim@codesourcery.com>
7463             NetLogic Microsystems Inc.
7465         * config/mips/mips.c (mips_issue_rate): Handle XLP.
7466         * config/mips/mips.md: Include xlp.md.
7467         * config/mips/xlp.md: New file.
7469 2012-07-21  Steven Bosscher <steven@gcc.gnu.org>
7471         PR gcov-profile/32543
7472         * profile.c (branch_prob): Update total_num_edges_instrumented and
7473         report the number of edges to instrument.
7475 2012-07-21  Oleg Endo  <olegendo@gcc.gnu.org>
7477         * config/sh/sh.md: Correct comment regarding clrt and sett insns.
7479 2012-07-21  Andrew Pinski  <apinski@cavium.com>
7481         * config/mips/mips.md (*popcountdi2_trunc): New pattern
7482         to handle popcount of a truncation.
7484 2012-07-21  Andrew Pinski  <apinski@cavium.com>
7486         * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
7487         Add a bool argument.
7488         * config/mips/mips.c (mips_block_move_straight): Update call to
7489         mips_expand_ext_as_unaligned_load.
7490         (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
7491         Accept DImode dest when the width is that of SImode.
7492         * config/mips/mips.md (extv): Update call to
7493         mips_expand_ext_as_unaligned_load.
7494         (extzv): Likewise.
7496 2012-07-21  Andrew Pinski  <apinski@cavium.com>
7498         * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
7499         adjust_address.
7501 2012-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
7503         * config/mips/mips.md (define_attr sync_*): Move before "type".
7504         (define_attr "type"): New values "atomic" and "syncloop".
7505         * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
7506         Set "type" attribute.
7507         * config/mips/generic.md (generic_atomic, generic_syncloop):
7508         New reservations.
7509         * gcc/config/mips/10000.md, gcc/config/mips/20kc.md,
7510         * gcc/config/mips/24k.md, gcc/config/mips/4130.md,
7511         * gcc/config/mips/4k.md, gcc/config/mips/5400.md,
7512         * gcc/config/mips/5500.md, gcc/config/mips/5k.md,
7513         * gcc/config/mips/7000.md, gcc/config/mips/74k.md,
7514         * gcc/config/mips/9000.md, gcc/config/mips/loongson2ef.md,
7515         * gcc/config/mips/loongson3a.md, gcc/config/mips/octeon.md,
7516         * gcc/config/mips/sb1.md, gcc/config/mips/sr71k.md,
7517         * gcc/config/mips/xlr.md: Handle "atomic" and "syncloop" types.
7519 2012-07-20  Oleg Endo  <olegendo@gcc.gnu.org>
7521         * config/sh/sh.md: Group and sort shift related patterns.
7522         (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
7524 2012-07-20  Hans-Peter Nilsson  <hp@axis.com>
7526         * config/cris/cris.c (cris_asm_output_ident): Remove unused
7527         local variables section_asm_op, size, buf.
7529 2012-07-20  Pat Haugen <pthaugen@us.ibm.com>
7530             Steven Bosscher  <steven@gcc.gnu.org>
7532         * config/rs6000/power4.md (power4-store-update): Fix reservation.
7533         (power4-three): Likewise.
7535 2012-07-20  Sameera Deshpande  <sameera.deshpande@arm.com>
7536             Greta Yorsh  <Greta.Yorsh@arm.com>
7538         * config/arm/arm.c (arm_cortex_a15_tune): New tune.
7539         * config/arm/arm-cores.def (cortex-a15): Use it.
7541 2012-07-20  Sameera Deshpande  <sameera.deshpande@arm.com>
7542             Greta Yorsh  <Greta.Yorsh@arm.com>
7544         * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
7545         * config/arm/arm.c (arm_slowmul_tune): Initialize it.
7546         (arm_fastmul_tune, arm_strongarm_tune): Likewise.
7547         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
7548         (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
7549         (arm_fa726te_tune): Likewise.
7551 2012-07-20  Richard Guenther  <rguenther@suse.de>
7553         * tree-dfa.c (collect_dfa_stats): Simplify.
7554         * tree-ssa-structalias.c (compute_may_aliases): Do not dump
7555         referenced vars.
7556         * cfgexpand.c (estimated_stack_frame_size): Walk over local
7557         decls instead of referenced vars.
7558         * tree-ssa.c (delete_tree_ssa): Simplify.
7559         * tree-tailcall.c (find_tail_calls): Walk over local decls
7560         instead of referenced vars.
7561         (add_virtual_phis): Remove.
7562         (tree_optimize_tail_calls_1): Instead mark the virtual operand
7563         for renaming.
7565 2012-07-20  Steven Bosscher  <steven@gcc.gnu.org>
7567         * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
7568         (brief_dump_cfg): Update prototype to take flags argument.
7569         (check_bb_profile): Remove prototype.
7570         * tracer.c (tracer): Update brief_dump_cfg calls.
7571         * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
7572         Call dump_bb_info before and after the cfghook dump_bb.  Terminate
7573         the dump with a newline.
7574         (dump_flow_info): Do not call check_bb_profile.
7575         * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
7576         (check_bb_profile): Make static.  Take indent and flags arguments.
7577         (dump_bb_info): Always dump loop depth.  With TDF_DETAILS, call
7578         check_bb_profile.  Print one edge per line.
7579         (brief_dump_cfg): Take a flags argument, and filter out
7580         TDF_COMMENT and TDF_DETAILS.
7581         * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
7582         * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
7583         dump_bb_info here, it is already called from dump_bb.  Idem for
7584         check_bb_profile.
7585         (dump_gimple_bb_footer): Likewise.
7586         (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
7587         avoid broken dumps for statement histograms.
7588         (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK.  Do
7589         not call pp_flush here, the buffer should be empty.
7590         * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
7591         * sched-vis.c (debug_bb_slim): Likewise.
7592         * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
7593         (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
7594         (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
7595         (dump_function_to_file): Do not call check_bb_profile on
7596         ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
7597         Use dump_bb instead of gimple_dump_bb.
7598         (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
7599         * passes.c (execute_function_dump): Always call print_rtl_with_bb
7600         for RTL dumps.
7601         * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
7602         CFG.  With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
7603         bottom of each basic block.
7605 2012-07-20  Richard Guenther  <rguenther@suse.de>
7607         PR tree-optimization/54031
7608         * tree-ssa-ccp.c (get_value_from_alignment): Use
7609         get_pointer_alignment_1.
7611 2012-07-20  Richard Guenther  <rguenther@suse.de>
7613         * tree-inline.c (add_local_variables): Remove check_var_ann
7614         parameter and dead code.
7615         (expand_call_inline): Adjust.
7616         (tree_function_versioning): Likewise.
7618 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
7620         PR c++/28656
7621         * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
7622         of just the first one.
7624 2012-07-20  Richard Guenther  <rguenther@suse.de>
7626         * builtins.c (get_object_alignment_2): Correct offset handling
7627         when using type alignment of a MEM_REF kind base.
7629 2012-07-20  Kirill Yukhin  <kirill.yukhin@intel.com>
7631         PR target/53877
7632         * config/i386/lzcntintrin.h (_lzcnt_u32): New.
7633         (_lzcnt_u64): Ditto.
7635 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
7637         * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
7639 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
7641         * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
7642         defining statement is a SSA name that occurs in abnormal PHIs.
7644 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
7646         * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
7647         conversions.
7649 2012-07-19  Jakub Jelinek  <jakub@redhat.com>
7651         PR rtl-optimization/53942
7652         * function.c (assign_parm_setup_reg): Avoid zero/sign extension
7653         directly from likely spilled non-fixed hard registers, move them
7654         to pseudo first.
7656 2012-07-19  Steve Ellcey  <sellcey@mips.com>
7658         * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
7659         MIPS16 mode.
7661 2012-07-19  Jason Merrill  <jason@redhat.com>
7663         PR debug/53235
7664         * dwarf2out.c (get_die_parent): New.
7665         (generate_type_signature): Use it.
7667 2012-07-19  Richard Henderson  <rth@redhat.com>
7669         * config/ia64/vect.md (smulv4hi3_highpart): New.
7670         (umulv4hi3_highpart): New.
7671         (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
7672         (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
7673         (udot_prodv8qi, sdot_prodv8qi): Remove.
7674         (sdot_prodv4hi, udot_prodv4hi): Remove.
7675         * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
7676         * config/ia64/ia64-protos.h: Update.
7678         * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
7679         vectors larger than UNITS_PER_WORD.
7681         * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
7682         * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
7683         dummy != CODE_FOR_nothing value.
7685 2012-07-19  Uros Bizjak  <ubizjak@gmail.com>
7687         * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
7688         * doc/tm.texi: Regenerate.
7689         * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
7690         * config/sh/sh.h (MODE_AFTER): Update.
7691         * config/epiphany/epiphany.h (MODE_AFTER): Update.
7693 2012-07-19  Jakub Jelinek  <jakub@redhat.com>
7695         PR middle-end/54017
7696         * tree-cfgcleanup.c (cleanup_omp_return): Remove.
7697         (cleanup_tree_cfg_bb): Don't call it.
7698         * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
7699         handling.
7701 2012-07-19  Christian Bruel  <christian.bruel@st.com>
7703         PR target/54029
7704         * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
7706 2012-07-19  Richard Guenther  <rguenther@suse.de>
7707             Eric Botcazou  <ebotcazou@adacore.com>
7709         * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
7710         about transition from invariant to known bits.
7711         (likely_value): Addresses with UNDEFINED components are UNDEFINED.
7713 2012-07-19  Richard Guenther  <rguenther@suse.de>
7715         PR tree-optimization/53970
7716         * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
7718 2012-07-19  Tristan Gingold  <gingold@adacore.com>
7719             Richard Henderson  <rth@redhat.com>
7721         * opts.c (finish_options): Handle UI_SEH.
7722         * expr.c (build_personality_function): Handle UI_SEH.
7723         * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
7724         * coretypes.h (unwind_info_type): Add UI_SEH.
7725         * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
7726         New function.
7727         (i386_pe_seh_init_sections): Likewise.
7728         * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
7729         (TARGET_ASM_INIT_SECTIONS): Define.
7730         * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7731         (i386_except_unwind_info): New function.
7733 2012-07-18  Maciej W. Rozycki  <macro@codesourcery.com>
7734             Chao-ying Fu  <fu@mips.com>
7736         * config/mips/mips.opt (mmcu): New option.
7737         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
7738         _mips_mcu when TARGET_MCU.
7739         (ASM_SPEC): Pass mcu options to the assembler.
7740         * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
7742 2012-07-18  Ralf Corsépius  <ralf.corsepius@rtems.org>
7744         * config.gcc (v850-*-rtems*): New target.
7745         * config/v850/rtems.h: New.
7746         * config/v850/t-rtems: New.
7748 2012-07-18  Bill Schmidt  <wschmidt@linux.ibm.com>
7750         * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
7751         of flags controlling optimization; add -ftree-slsr to list of flags
7752         enabled by default at -O; add -fhoist-adjacent-loads to list of flags
7753         enabled by default at -O2; add -fvect-cost-model to list of flags
7754         enabled by default at -O3; document -fhoist-adjacent-loads and
7755         -ftree-slsr.
7756         * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
7757         * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
7758         flag_tree_slsr.
7759         * common.opt: Add -ftree-slsr with flag_tree_slsr.
7761 2012-07-18  Jie Zhang  <jzhang918@gmail.com>
7762             Julian Brown  <julian@codesourcery.com>
7764         * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
7765         (arm_size_rtx_costs): Likewise.
7766         (neon_valid_immediate): Add a case for double 0.0.
7768 2012-07-18  Andrew Stubbs  <ams@codesourcery.com>
7769             Mark Shinwell  <shinwell@codesourcery.com>
7770             Julian Brown  <julian@codesourcery.com>
7772         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
7773         (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
7774         (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
7775         (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
7776         neon_type.
7777         * config/arm/arm.md (neon_type): Update comment.
7779 2012-07-18  Richard Guenther  <rguenther@suse.de>
7781         PR tree-optimization/53970
7782         * tree.h (contains_packed_reference): Remove.
7783         * expr.c (contains_packed_reference): Likewise.
7784         * tree-vect-data-refs.c (not_size_aligned): New function.
7785         (vector_alignment_reachable_p): Use it.
7786         (vect_supportable_dr_alignment): Likewise.
7788 2012-07-18  Richard Guenther  <rguenther@suse.de>
7790         * tree.h (get_object_or_type_alignment): Remove.
7791         * builtins.c (get_object_alignment_2): New function copied from
7792         get_object_alignment_1.  Take extra argument to indicate whether
7793         we take the address of EXP.  Rework to use type alignment information
7794         if not, and return whether the result is an approximation or not.
7795         (get_object_alignment_1): Wrap around get_object_alignment_2.
7796         (get_pointer_alignment_1): Call get_object_alignment_2 indicating
7797         we take the address.
7798         (get_object_or_type_alignment): Remove.
7799         * expr.c (expand_assignment): Call get_object_alignment.
7800         (expand_expr_real_1): Likewise.
7802 2012-07-18  Nick Clifton  <nickc@redhat.com>
7804         * doc/invoke.texi (ARM Options): Document -munaligned-access.
7806 2012-07-18  Oleg Endo  <olegendo@gcc.gnu.org>
7808         * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
7809         expander.  Use arith_reg_dest predicate.
7810         (rotldi3, rotrdi3): Remove constraints in expander.
7811         (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
7812         ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
7813         insn_and_split.
7815 2012-07-18  Oleg Endo  <olegendo@gcc.gnu.org>
7817         PR target/33135
7818         * config/sh/sh.opt (mieee): Use Var instead of Mask.  Correct
7819         description.
7820         * config/sh/sh.c (sh_option_override): Do not change
7821         flag_finite_math_only.  Set TARGET_IEEE to complement of
7822         flag_finite_math_only.
7823         * doc/invoke.texi (SH options): Add mno-ieee.  Correct description
7824         of mieee and mno-ieee behavior.
7826 2012-07-18  Steven Bosscher  <steven@gcc.gnu.org>
7828         * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
7830 2012-07-18  Steven Bosscher  <steven@gcc.gnu.org>
7832         * dumpfile.h (TDF_COMMENT): New define.
7833         * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
7834         EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
7835         EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
7836         EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
7837         Move to new file cfg-flags.h.
7838         (enum cfg_edge_flags): New enum, using cfg-flags.h.
7839         (EDGE_ALL_FLAGS): Compute value automatically.
7840         (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
7841         BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
7842         BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
7843         BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
7844         BB_IN_TRANSACTION): Move to new file cfg-flags.h.
7845         (enum bb_flags): Rename to cfg_bb_flags.  Use cfg-flags.h.
7846         (BB_ALL_FLAGS): New, compute value automatically.
7847         (dump_bb_info): Update prototype.
7848         (dump_edge_info): Update prototype.
7849         * cfg-flags.h: New file.
7850         * cfg.c (dump_edge_info): Take flags argument.  Be verbose only if
7851         TDF_DETAILS and not TDF_SLIM.  Include cfg-flags.h for bitnames.
7852         Check that the edge flags are within the range of EDGE_ALL_FLAGS.
7853         (debug_bb): Update dump_bb call.
7854         (dump_cfg_bb_info): Remove.
7855         (dump_bb_info): New function.  Use cfg-flags.h for bitnames.
7856         Adjust verbosity using TDF_* flags.  Check that the basic block flags
7857         are within the range of BB_ALL_FLAGS.
7858         (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
7859         * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
7860         first for consistency with other dump functions.
7861         (dump_bb): Update prototype accordingly.
7862         * cfghooks.c: Include dumpfile.h.
7863         (verify_flow_info): Update dump_edge_info calls.
7864         (dump_bb): Take a flags argument and pass it around.
7865         Use dump_bb_info to dump common information about a basic block.
7866         (dump_flow_info): Moved here from cfgrtl.c.  Make IL agnostic.
7867         (debug_flow_info): Moved here from cfgrtl.c.
7868         * profile.c (is_edge_inconsistent): Update dump_bb calls.
7869         * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
7870         * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
7871         print_rtl_slim_with_bb): Remove prototypes.
7872         (dump_insn_slim): Adjust prototype to take a const_rtx.
7873         (print_rtl_with_bb): Adjust prototype.
7874         * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
7875         * sched-vis.c (dump_insn_slim): Take a const_rtx.
7876         (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
7877         (print_rtl_slim_with_bb): Remove.
7878         (print_rtl_slim): Rename to debug_rtl_slim.  Print only insn info,
7879         not basic block info (print_rtl_with_bb with TDF_SLIM should be used
7880         for that.  Prototype here near DEBUG_FUNCTION marker.
7881         (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
7882         Use dump_bb.
7883         (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
7884         * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
7885         (remove_bb): Update dump_bb call.
7886         (gimple_debug_bb): Use dump_bb.
7887         (dump_function_to_file): Update gimple_dump_bb call.
7888         (print_loops_bb): Likewise.
7889         * tree-flow.h (gimple_dump_bb): Update prototype.
7890         * gimple-pretty-print.c (dump_bb_header): Rename to
7891         dump_gimple_bb_header.  Write to a stream instead of a pretty
7892         printer.  Use dump_bb_info to dump basic block info.
7893         (dump_bb_end): Rename to dump_gimple_bb_footer.  Write to a
7894         stream instead of a pretty printer.  Use dump_bb_info.
7895         (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
7896         (gimple_dump_bb): Do it here with dump_gimple_bb_header and
7897         dump_gimple_bb_footer.
7898         * cfgrtl.c (rtl_dump_bb): Update prototype.  Only dump DF if the
7899         dump flags have TDF_DETAILS.  Use dump_insn_slim if TDF_SLIM.
7900         (print_rtl_with_bb): Take a flags argument and pass it around.
7901         Use dump_insn_slim if TDF_SLIM.
7902         (dump_bb_info): Removed and re-incarnated in cfg.c.
7903         (dump_flow_info): Moved to cfghooks.c.
7904         (debug_flow_info): Moved to cfghooks.c.
7905         * passes.c (execute_function_dump): Unconditionally use
7906         print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
7907         * final.c (dump_basic_block_info): Update dump_edge_info calls.
7908         * tree-vrp.c (dump_asserts_for): Likewise.
7909         * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
7910         * tree-if-conv.c (if_convertible_bb_p): Don't look at
7911         EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
7912         * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
7913         for the same reason.
7914         * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
7916 2012-07-17  Richard Guenther  <rguenther@suse.de>
7918         * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
7919         vars here, use create_tmp_reg where appropriate.
7920         (vect_create_addr_base_for_vector_ref): Do not add referenced
7921         vars here, use create_tmp_reg where appropriate.
7922         (vect_create_data_ref_ptr): Likewise.
7923         (vect_create_destination_var): Likewise.
7924         (vect_permute_store_chain): Likewise.
7925         (vect_permute_load_chain): Likewise.
7926         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
7927         Likewise.
7928         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
7929         * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
7930         (vect_handle_widen_op_by_const): Likewise.
7931         * tree-vect-stmts.c (vect_init_vector): Likewise.
7932         (vectorizable_load): Likewise.
7934 2012-07-17  Tom de Vries  <tom@codesourcery.com>
7936         * hwint.c: Fix loop range.
7938 2012-07-17  Tom de Vries  <tom@codesourcery.com>
7940         * double-int.h (double_int_popcount): New inline function.
7941         * hwint.c (popcount_hwi): New function.
7942         * hwint.h (popcount_hwi): Declare function.  New inline function.
7944 2012-07-17  Richard Henderson  <rth@redhat.com>
7946         * tree-vect-stmts.c (supportable_widening_operation): Remove decl
7947         parameters.
7948         (vectorizable_conversion): Update supportable_widening_operation call.
7949         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
7950         (vect_recog_widen_shift_pattern): Likewise.
7951         * tree-vectorizer.h: Update decl.
7953 2012-07-17  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7954             Ulrich Weigand  <ulrich.weigand@linaro.org>
7956         * common/config/arm/arm-common.c (arm_option_optimization_table):
7957         Enable -fsched-pressure by default while optimizing.
7958         * config/arm/arm.c (arm_option_override): Use the alternate scheduler
7959         pressure algorithm by default.
7961 2012-07-16  Oleg Endo  <olegendo@gcc.gnu.org>
7963         * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
7964         (CONST_OK_FOR_I10): Move macro to ...
7965         * config/sh/sh.c: ... here.
7966         (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
7967         CONST_OK_FOR_I06.
7969 2012-07-16  Oleg Endo  <olegendo@gcc.gnu.org>
7971         * config/sh/sh.md: Delete mov related define_peephole patterns.
7973 2012-07-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
7975         PR c++/53919
7976         * doc/install.texi (Installing GCC): Refer to instructions for
7977         released versions. Fix hyphenation.
7979 2012-07-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7981         * config/spu/spu.c (targetm): Move to bottom of file.
7982         (spu_attribute_table): Likewise.
7983         (spu_option_override, spu_init_builtins, spu_builtin_decl,
7984         spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
7985         spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
7986         adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
7987         frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
7988         insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
7989         get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
7990         spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
7991         spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
7992         spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
7993         spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
7994         spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
7995         spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
7996         spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
7997         spu_encode_section_info, spu_legitimize_address,
7998         spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
7999         spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
8000         spu_addr_space_pointer_mode, spu_addr_space_address_mode,
8001         spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
8002         spu_section_type_flags, spu_select_section, spu_unique_section,
8003         spu_trampoline_init, spu_conditional_register_usage,
8004         spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
8005         spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
8006         spu_setup_incoming_varargs): Remove prototypes.
8007         (spu_legitimize_address): Add "static" to definition.
8009 2012-07-16  Jakub Jelinek  <jakub@redhat.com>
8011         * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
8013 2012-07-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
8015         * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
8016         before calling gsi_stmt.
8018 2012-07-16  Kirill Yukhin  <kirill.yukhin@intel.com>
8020         Revert
8021         2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
8023         * config/i386/i386.md (stack_protect_set): Disable the pattern
8024         for Android since Android libc (bionic) does not provide random
8025         value for stack protection guard at gs:0x14. Guard value
8026         will be provided from external symbol (default implementation).
8027         (stack_protect_set_<mode>): Likewise.
8028         (stack_protect_test): Likewise.
8029         (stack_protect_test_<mode>): Likewise.
8031 2012-07-16  H.J. Lu  <hongjiu.lu@intel.com>
8033         PR middle-end/53959
8034         PR bootstrap/53963
8035         * gimple.c (gimple_types_compatible_p_1): Restore type attribute
8036         comparison.
8038 2012-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
8040         * opts.c (default_option): Add -fvect-cost-model to default options
8041         at -O3 and above.
8043 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
8045         * graphite-clast-to-gimple.c, graphite-dependences.c,
8046         graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
8047         for pass TODO flags.
8048         * Makefile.in: Fix dependencies.
8050 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
8052         * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
8053         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
8055         * function.c (stack_protect_epilogue): Use expand_call to expand
8056         targetm.stack_protect_fail.
8057         * stmt.c (expand_expr_stmt): Remove now-unused function.
8058         * tree.h (expand_expr_stmt): Remove prototype.
8059         * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
8060         hook must return a CALL_EXPR.
8061         * doc/tm.texi: Regenerate.
8063         * emit-rtl.c (emit_label_before): Do not allow the same label
8064         to be emitted twice.
8065         (emit_label_after): Likewise.
8066         (emit_label): Likewise.
8068         * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
8069         TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
8070         * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
8071         TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
8073 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
8075         * system.h (dump_file): Do not define.
8076         * tree-pass.h: Include dumpfile.h, which is a new file containing...
8077         (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
8078         dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
8079         dump_flag_name, dump_file, dump_flags, dump_file_name,
8080         get_dump_file_info, struct dump_file_info): all of this, moved to...
8081         * dumpfile.h: Here, new file.
8082         * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
8083         (dump_stmt): Remove prototype for C++ specific function.
8084         (dump_enumerated_decls): Move prototype from here...
8085         * tree-flow.h (dump_enumerated_decls): ... to here.
8086         (get_ref_base_and_extent) Move prototype from here ...
8087         * tree.h (get_ref_base_and_extent) ... to here.
8088         * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
8089         gimple-pretty-print.h is enough.  Do not include tree-dump.h,
8090         include timevar.h and dumpfile.h instead.
8091         (struct numbered_tree_d, compare_decls_by_uid,
8092         dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
8093         * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
8094         dump_enumerated_decls_push, dump_enumerated_decls):... to here.
8095         Do not include timevar.h.
8096         * tree.c: Do not include timevar.h.
8097         * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
8098         timevar.h.
8099         (dump_cfg_stats): Use current_function_name.
8100         (gimple_cfg2vcg): Likewise.
8101         (dump_function_to_file): Likewise.
8102         * df-scan.c: Do not include tree-pass.h and timevar.h.
8103         Include dumpfile.h.
8104         (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
8105         use print_current_pass.
8106         * df-problems.c: Include dumpfile.h.
8107         Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
8108         leads to errors in the code not selected.
8109         (df_note_compute): Do not print_rtl_with_bb here.  Fix compilation
8110         bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
8111         * lcm.c: Include dumpfile.h.
8112         Remove obsolete include of insn-attr.h.
8113         * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
8114         missing probability notes.
8115         * stmt.c: Include dumpfile.h.
8116         (emit_case_decision_tree): Re-enable printing expand details only
8117         if TDF_DETAILS.
8118         * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
8119         cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
8120         cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
8121         coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
8122         dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
8123         function.c, fwprop.c, gcse.c, gimple-fold.c,
8124         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
8125         gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
8126         graphite-dependences.c, graphite-interchange.c,
8127         graphite-optimize-isl.c, graphite-poly.c,
8128         graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
8129         ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
8130         ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
8131         ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
8132         jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
8133         loop-unroll.c, loop-unswitch.c, lower-subreg.c,
8134         lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
8135         mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
8136         plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
8137         print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
8138         regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
8139         sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
8140         store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
8141         tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
8142         tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
8143         tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
8144         tree-mudflap.c, tree-nrv.c, tree-object-size.c,
8145         tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
8146         tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
8147         tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
8148         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
8149         tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
8150         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
8151         tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
8152         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
8153         tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
8154         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
8155         tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
8156         tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
8157         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
8158         tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
8159         tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
8160         tree-ssa-uncprop.c, tree-ssa-uninit.c,
8161         tree-switch-conversion.c, tree-tailcall.c,
8162         tree-vect-data-refs.c, tree-vect-loop.c,
8163         tree-vect-loop-manip.c, tree-vectorizer.c,
8164         tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
8165         tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
8166         only if needed.  If tree-pass.h is included, do not include timevar.h
8167         and dumpfile.h.  If tree-pass.h is not included but dump_file, or
8168         dump_flags, or the TDF_* flags are used, include dumpfile.h.
8169         If gimple-pretty-print.h is included, don't include
8170         tree-pretty-print.h.  Remove assorted unnecessary includes.
8172         * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
8173         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
8174         config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
8175         Include dumpfile.h.
8176         * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
8177         * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
8178         spu/t-spu-elf: Fix dependencies.
8180 2012-07-16  Dehao Chen  <dehao@google.com>
8182         Revert
8183         2012-07-10  Dehao Chen  <dehao@google.com>
8185         * tree.h (phi_arg_d): New field.
8186         * tree-flow-inline.h (gimple_phi_arg_block): New function.
8187         (gimple_phi_arg_block_from_edge): New function.
8188         (gimple_phi_arg_set_block): New function.
8189         (gimple_phi_arg_has_block): New function.
8190         (redirect_edge_var_map_block): New function.
8191         * tree-flow.h (_edge_var_map): New field.
8192         * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
8193         * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
8194         redirect_edge_var_map_add.
8195         * tree-outof-ssa.c (_elim_graph): New field.
8196         (insert_partition_copy_on_edge): New parameter.
8197         (insert_value_copy_on_edge): New parameter.
8198         (insert_rtx_to_part_on_edge): New parameter.
8199         (insert_part_to_rtx_on_edge): New parameter.
8200         (elim_graph_add_edge): New parameter.
8201         (elim_graph_remove_succ_edge): New parameter.
8202         (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
8203         (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
8204         (new_elim_graph): Add block debug info.
8205         (clear_elim_graph): Likewise.
8206         (delete_elim_graph): Likewise.
8207         (elim_graph_add_node): Likewise.
8208         (elim_graph_add_edge): Likewise.
8209         (elim_graph_remove_succ_edge): Likewise.
8210         (eliminate_build): Likewise.
8211         (elim_forward): Likewise.
8212         (elim_unvisited_predecessor): Likewise.
8213         (elim_backward): Likewise.
8214         (elim_create): Likewise.
8215         (eliminate_phi): Likewise.
8216         (insert_backedge_copies): Likewise.
8217         * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
8218         add_phi_arg.
8219         (rewrite_add_phi_arguments): Likewise.
8220         * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
8221         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
8222         * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
8223         * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
8224         * tree-ssa-loop-manip.c (create_iv): Likewise.
8225         (add_exit_phis_edge): Likewise.
8226         (split_loop_exit_edge): Likewise.
8227         (copy_phi_node_args): Likewise.
8228         (tree_transform_and_unroll_loop): Likewise.
8229         * value-prof.c (gimple_ic): Likewise.
8230         (gimple_stringop_fixed_value): Likewise.
8231         * tree-tailcall.c (add_successor_phi_arg): Likewise.
8232         (eliminate_tail_call): Likewise.
8233         (create_tailcall_accumulator): Likewise.
8234         (tree_optimize_tail_calls_1): Likewise.
8235         * tree-phinodes.c (add_phi_arg): Likewise.
8236         (make_phi_node): Likewise.
8237         (resize_phi_node): Likewise.
8238         (remove_phi_arg_num): Likewise.
8239         * omp-low.c (expand_parallel_call): Likewise.
8240         (expand_omp_for_static_chunk): Likewise.
8241         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
8242         Likewise.
8243         (slpeel_update_phi_nodes_for_guard1): Likewise.
8244         (slpeel_update_phi_nodes_for_guard2): Likewise.
8245         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
8246         (set_prologue_iterations): Likewise.
8247         (slpeel_tree_peel_loop_to_edge): Likewise.
8248         (vect_loop_versioning): Likewise.
8249         * tree-parloops.c (create_phi_for_local_result): Likewise.
8250         (transform_to_exit_first_loop): Likewise.
8251         (create_parallel_loop): Likewise.
8252         * ipa-split.c (split_function): Likewise.
8253         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
8254         (vect_create_epilog_for_reduction): Likewise.
8255         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
8256         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
8257         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
8258         (cond_if_else_store_replacement_1): Likewise.
8259         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
8260         (remove_forwarder_block_with_phi): Likewise.
8261         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
8262         * tree-predcom.c (initialize_root_vars): Likewise.
8263         (initialize_root_vars_lm): Likewise.
8264         * sese.c (sese_add_exit_phis_edge): Likewise.
8265         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
8266         * tree-ssa.c (flush_pending_stmts): Likewise.
8267         (redirect_edge_var_map_add): Likewise.
8268         (ssa_redirect_edge): Likewise.
8269         * gimple-streamer-in.c (input_phi): Likewise.
8270         * tree-vect-stmts.c (vectorizable_load): Likewise.
8271         * tree-inline.c (copy_phis_for_bb): Likewise.
8272         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
8273         * tree-switch-conversion.c (fix_phi_nodes): Likewise.
8274         * tree-cfg.c (reinstall_phi_args): Likewise.
8275         (gimple_make_forwarder_block): Likewise.
8276         (add_phi_args_after_copy_edge): Likewise.
8277         (gimple_duplicate_sese_tail): Likewise.
8279 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
8281         * config/i386/i386.md (stack_protect_set): Disable the pattern
8282         for Android since Android libc (bionic) does not provide random
8283         value for stack protection guard at gs:0x14. Guard value
8284         will be provided from external symbol (default implementation).
8285         (stack_protect_set_<mode>): Likewise.
8286         (stack_protect_test): Likewise.
8287         (stack_protect_test_<mode>): Likewise.
8289 2012-07-16  Hans-Peter Nilsson  <hp@axis.com>
8291         * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
8292         * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
8293         CONSTANT_P and cris_legitimate_address_p.
8294         * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
8295         (cris_preferred_reload_class): Don't return GENERAL_REGS as
8296         preferred to MOF_SRP_REGS.
8298         * config/cris/cris.c (cris_init_libfuncs): Handle initialization
8299         of library functions for basic atomic compare-and-swap.
8300         * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
8301         * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
8302         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
8303         ("cris_atomic_fetch_<atomic_op_name><mode>_1")
8304         ("atomic_compare_and_swap<mode>")
8305         ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
8306         TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
8307         * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
8308         * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
8309         (atomic_op_op_pred): Ditto.
8310         (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
8311         reflect the change to include %2 in expansion.  All callers changed.
8312         (qm3): New mode_attr.
8313         ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
8314         as predicate for operand 2.
8315         ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME.  Use
8316         "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
8317         constraint for operand 2.
8318         ("atomic_compare_and_swap<mode>"): Add FIXME.  Change predicate to
8319         nonmemory_operand for operand 3.
8320         ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
8321         exclude memory.  Improve emitted sync code for v10 and v32.  Use
8322         <qm3> instead of <m> for size designator for cmp.
8323         ("atomic_compare_and_swap<mode>"): Change predicate to
8324         nonmemory_operand for operand 3.  Add FIXME.
8325         ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
8326         constraints for operand 3 to exclude memory.
8327         ("atomic_fetch_<atomic_op_name><mode>")
8328         ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
8329         calls on result of call to need_atomic_barrier_p.
8331 2012-07-15  Richard Sandiford  <rdsandiford@googlemail.com>
8333         * config/mips/mips.md (move_type): Replace mfhilo and mthilo
8334         with mflo and mtlo.
8335         (type): Split mfhilo into mfhi and mflo.  Split mthilo into mthi
8336         and mtlo.  Adjust move_type->type mapping.
8337         (may_clobber_hilo): Split mthilo into mthi and mtlo.
8338         (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
8339         (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
8340         (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
8341         instead of mthilo and mfhilo.
8342         (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
8343         (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
8344         * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
8345         (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
8346         Use mflo instead of mfhilo.
8347         * config/mips/10000.md (r10k_arith): Split mthilo.
8348         (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
8349         * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
8350         (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
8351         * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
8352         mthilo and mfhilo.
8353         * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
8354         * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
8355         Likewise.
8356         * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
8357         * config/mips/5400.md (ir_vr54_hilo): Likewise.
8358         * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
8359         * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
8360         * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
8361         * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
8362         * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
8363         * config/mips/generic.md (generic_hilo): Likewise.
8364         * config/mips/loongson2ef.md (ls2_alu): Likewise.
8365         * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
8366         * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
8367         (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
8368         * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
8369         * config/mips/xlr.md (xlr_hilo): Likewise.
8371 2012-07-14  Andrew Stubbs  <ams@codesourcery.com>
8372             Sandra Loosemore  <sandra@codesourcery.com>
8374         * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
8376 2012-07-14  Uros Bizjak  <ubizjak@gmail.com>
8378         * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
8379         for TARGET_SSE.
8381 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
8383         * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
8385 2012-07-13  Bill Schmidt  <wschmidt@linux.ibm.com>
8387         PR bootstrap/53955
8388         * config/spu/spu.c (spu_init_cost): Mark static.
8389         (spu_add_stmt_cost): Likewise.
8390         (spu_finish_cost): Likewise.
8391         (spu_destroy_cost_data): Likewise.
8392         * config/i386/i386.c (ix86_init_cost): Mark static.
8393         (ix86_add_stmt_cost): Likewise.
8394         (ix86_finish_cost): Likewise.
8395         (ix86_destroy_cost_data): Likewise.
8396         * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
8397         (rs6000_add_stmt_cost): Likewise.
8398         (rs6000_finish_cost): Likewise.
8399         (rs6000_destroy_cost_data): Likewise.
8401 2012-07-13  Steven Bosscher  <steven@gcc.gnu.org>
8403         * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
8404         ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
8405         ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
8406         ATTRIBUTE_MALLOC.
8407         * alloc-pool.h (pool_alloc): Likewise.
8409         * final.c (final): Do not loop to find max_uid.
8411 2012-07-13  Steven Bosscher  <steven@gcc.gnu.org>
8413         * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
8414         * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
8416 2012-07-13  Richard Guenther  <rguenther@suse.de>
8418         PR tree-optimization/53907
8419         * tree-ssa-forwprop.c (associate_pointerplus): New function.
8420         (ssa_forward_propagate_and_combine): Call it.
8422 2012-07-13  Richard Guenther  <rguenther@suse.de>
8424         PR tree-optimization/53922
8425         * tree-vrp.c (value_inside_range): Change prototype to take
8426         min/max instead of value-range.
8427         (range_includes_zero_p): Likewise.  Return the result from
8428         value_inside_range.
8429         (extract_range_from_binary_expr_1): Adjust to handle dont-know
8430         return value from range_includes_zero_p.
8431         (extract_range_from_unary_expr_1): Likewise.
8432         (compare_range_with_value): Likewise.
8433         (vrp_meet_1): Likewise.
8435 2012-07-13  Bill Schmidt  <wschmidt@linux.ibm.com>
8437         * doc/tm.texi: Regenerate.
8438         * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
8439         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
8440         (TARGET_VECTORIZE_FINISH_COST): Likewise.
8441         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
8442         * targhooks.c (default_init_cost): New function.
8443         (default_add_stmt_cost): Likewise.
8444         (default_finish_cost): Likewise.
8445         (default_destroy_cost_data): Likewise.
8446         * targhooks.h (default_init_cost): New decl.
8447         (default_add_stmt_cost): Likewise.
8448         (default_finish_cost): Likewise.
8449         (default_destroy_cost_data): Likewise.
8450         * target.def (init_cost): New DEFHOOK.
8451         (add_stmt_cost): Likewise.
8452         (finish_cost): Likewise.
8453         (destroy_cost_data): Likewise.
8454         * target.h (struct _stmt_vec_info): New extern decl.
8455         (stmt_vectype): Likewise.
8456         (stmt_in_inner_loop_p): Likewise.
8457         * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
8458         (stmt_vector_for_cost): New VEC/typedef.
8459         (add_stmt_info_to_vec): New function.
8460         (struct _slp_tree): Remove cost.inside_of_loop field.
8461         (struct _slp_instance): Remove cost.inside_of_loop field; add
8462         stmt_cost_vec field.
8463         (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
8464         (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
8465         (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
8466         (struct _vect_peel_extended_info): Add stmt_cost_vec field.
8467         (struct _loop_vec_info): Add target_cost_data field.
8468         (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
8469         (struct _bb_vec_info): Add target_cost_data field.
8470         (BB_VINFO_TARGET_COST_DATA): New accessor macro.
8471         (struct _stmt_vec_info): Remove cost.inside_of_loop field.
8472         (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
8473         (stmt_vinfo_set_inside_of_loop_cost): Remove function.
8474         (init_cost): New function.
8475         (add_stmt_cost): Likewise.
8476         (finish_cost): Likewise.
8477         (destroy_cost_data): Likewise.
8478         (vect_model_simple_cost): Change parameter list.
8479         (vect_model_store_cost): Likewise.
8480         (vect_model_load_cost): Likewise.
8481         (record_stmt_cost): New extern decl.
8482         (vect_get_load_cost): Change parameter list.
8483         (vect_get_store_cost): Likewise.
8484         * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
8485         (destroy_loop_vec_info): Call destroy_cost_data.
8486         (vect_estimate_min_profitable_iters): Remove old calculation of
8487         inside costs; call finish_cost instead.
8488         (vect_model_reduction_cost): Call add_stmt_cost instead of old
8489         inside-costs calculation.
8490         (vect_model_induction_cost): Likewise.
8491         * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
8492         return a stmt_vector_for_cost; modify calls to vect_get_load_cost
8493         and vect_get_store_cost to obtain the value to return.
8494         (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
8495         vect_get_data_access_cost and store it in the minimum peeling
8496         structure.
8497         (vect_peeling_hash_choose_best_peeling): Change the parameter list
8498         to add a (stmt_vector_for_cost *) output parameter, and set its value.
8499         (vect_enhance_data_refs_alignment): Ignore the new return value from
8500         calls to vect_get_data_access_cost; obtain stmt_cost_vec from
8501         vect_peeling_hash_choose_best_peeling and pass its contents to the
8502         target cost model.
8503         * tree-vect-stmts.c (stmt_vectype): New function.
8504         (stmt_in_inner_loop_p): Likewise.
8505         (record_stmt_cost): Likewise.
8506         (vect_model_simple_cost): Add stmt_cost_vec parameter; call
8507         record_stmt_cost instead of old calculation; don't call
8508         stmt_vinfo_set_inside_of_loop_cost.
8509         (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
8510         old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
8511         (vect_model_store_cost): Add stmt_cost_vec parameter; call
8512         record_stmt_cost instead of old calculation; add stmt_cost_vec
8513         parameter to vect_get_store_cost call; don't call
8514         stmt_vinfo_set_inside_of_loop_cost.
8515         (vect_get_store_cost): Add stmt_cost_vec parameter; call
8516         record_stmt_cost instead of old calculation.
8517         (vect_model_load_cost): Add stmt_cost_vec parameter; call
8518         record_stmt_cost instead of old calculation; add stmt_cost_vec
8519         parameter to vect_get_load_cost call; don't call
8520         stmt_vinfo_set_inside_of_loop_cost.
8521         (vect_get_load_cost): Add stmt_cost_vec parameter; call
8522         record_stmt_cost instead of old calculation.
8523         (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
8524         (vectorizable_conversion): Likewise.
8525         (vectorizable_assignment): Likewise.
8526         (vectorizable_shift): Likewise.
8527         (vectorizable_operation): Likewise.
8528         (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
8529         (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
8530         (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
8531         * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
8532         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
8533         (TARGET_VECTORIZE_FINISH_COST): Likewise.
8534         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
8535         (spu_init_cost): New function.
8536         (spu_add_stmt_cost): Likewise.
8537         (spu_finish_cost): Likewise.
8538         (spu_destroy_cost_data): Likewise.
8539         * config/i386/i386.c (ix86_init_cost): New function.
8540         (ix86_add_stmt_cost): Likewise.
8541         (ix86_finish_cost): Likewise.
8542         (ix86_destroy_cost_data): Likewise.
8543         (TARGET_VECTORIZE_INIT_COST): New macro def.
8544         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
8545         (TARGET_VECTORIZE_FINISH_COST): Likewise.
8546         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
8547         * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
8548         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
8549         (TARGET_VECTORIZE_FINISH_COST): Likewise.
8550         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
8551         (rs6000_init_cost): New function.
8552         (rs6000_add_stmt_cost): Likewise.
8553         (rs6000_finish_cost): Likewise.
8554         (rs6000_destroy_cost_data): Likewise.
8555         * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
8556         (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
8557         (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
8558         stmt_cost_vec parameter to vect_model_store_cost and
8559         vect_model_simple_cost calls.
8560         (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
8561         parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
8562         vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
8563         calculating cost more than once for loads; remove inside_cost
8564         parameter from recursive vect_build_slp_tree calls; call
8565         record_stmt_cost instead of old calculation.
8566         (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
8567         the instance; free it on premature exit; remove inside_cost parameter
8568         from vect_build_slp_tree call; add stmt_cost_vec parameter to
8569         vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
8570         (new_bb_vec_info): Call init_cost.
8571         (destroy_bb_vec_info): Call destroy_cost_data.
8572         (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
8573         statement recorded with an SLP instance; call finish_cost instead of
8574         the old calculation.
8575         (vect_update_slp_costs_according_to_vf): Record statement costs from
8576         SLP instances, multiplying by the appropriate number of copies; don't
8577         update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
8579 2012-07-13  Richard Guenther  <rguenther@suse.de>
8581         PR middle-end/53937
8582         * builtins.c (get_pointer_alignment_1): Handle constant
8583         pointers.
8585 2012-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
8586             Steven Bosscher  <steven@gcc.gnu.org>
8587             Bernd Schmidt  <bernds@codesourcery.com>
8589         PR rtl-optimization/53908
8590         * df-problems.c (can_move_insns_across): When doing
8591         memory-reference book-keeping, handle call insns.
8593 2012-07-13  Richard Guenther  <rguenther@suse.de>
8595         * gimple.c (gimple_types_compatible_p_1): Remove redundant
8596         type attribute comparisons.
8597         (gimple_canonical_types_compatible_p): Likewise.
8599 2012-07-12  Hans-Peter Nilsson  <hp@axis.com>
8601         PR rtl-optimization/53176
8602         * rtlanal.c (rtx_cost): Adjust default cost for X with a
8603         UNITS_PER_WORD factor for all X according to the size of
8604         its mode, not just for SUBREGs with untieable modes.
8605         Handle SET.  Use factor * factor for MULT, DIV, UDIV,
8606         MOD, UMOD.
8608 2012-07-12  Uros Bizjak  <ubizjak@gmail.com>
8610         * config/i386/i386.md (QImode and HImode cmove splitters): Merge
8611         QImode and HImode splitters.  Use ix86_comparison_operator.
8612         Explicitly match FLAGS_REG.
8613         (DFmode cmove splitter): Explicitly match FLAGS_REG.
8615 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
8617         * expr.h (can_move_by_pieces): Move prototype from here ...
8618         * tree.h (can_move_by_pieces): ... to here.
8619         * optabs.h (set_widening_optab_handler): Use XCNEW.
8620         * gimplify.c: Do not include expr.h.
8622         * toplev.c: Do not include dwarf2out.h.
8623         * config/ia64/ia64.c: Likewise.
8624         * config/sparc/sparc.c: Likewise.
8625         * config/sparc/t-sparc (sparc.o): Fix dependencies.
8627         * Makefile.in (toplev.o): Fix dependencies
8628         (c-family/c-gimplify.o): Likewise.
8629         (c-family/c-common.o): Likewise.
8631 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
8633         * basic-block.h (struct edge_def): Use basic_block instead of
8634         basic_block_def *.
8635         * cfgloop.h (struct loop_exit, struct loop): Likewise.
8636         * gengenrtl.c (type_from_format): Likewise.  Also for 'tree'
8637         instead of union tree_node *.
8638         * rtl.h (union rtunion_def, emit_insn_before_noloc,
8639         emit_insn_after_noloc, add_insn_before, add_insn_after,
8640         debug_bb_slim): Likewise.
8641         * tree-inline.h (struct copy_body_data): Likewise.
8642         * sched-rgn.c (dump_region_dot): Likewise.
8643         * gimple.h (struct gimple_statement_base, gimple_set_bb,
8644         gsi_move_to_bb_end): Likewise.
8645         * sched-vis.c (debug_bb_slim): Likewise.
8646         (debug_bb_n_slim): Likewise.
8647         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
8648         (mn10300_block_contains_call):
8650 2012-07-11  Greta Yorsh  <Greta.Yorsh@arm.com>
8652         PR target/53859
8653         * config/arm/arm.c (arm_early_load_addr_dep): Handle new
8654         epilogue patterns.
8656 2012-07-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
8658         * doc/extend.texi (Namespace Association): Alter cautionary text.
8660 2012-07-10  Oleg Endo  <olegendo@gcc.gnu.org>
8662         PR target/53911
8663         * config/sh/sh.md: Remove displacement addresssing related splits.
8665 2012-07-10  Xinliang David Li  <davidxl@google.com>
8667         * doc/invoke.texi: New option documented.
8668         * flag-types.h: New enum type.
8669         * gimplify.c (gimplify_bind_expr): Control
8670         clobber generation with new option.
8671         (gimplify_target_expr): Ditto.
8672         * common.opt: New option.
8674 2012-07-10  Julian Brown  <julian@codesourcery.com>
8676         * config/arm/arm.md (movsi): Don't split symbol refs here.
8677         (define_split): New.
8679 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
8681         PR bootstrap/53913
8682         * config/m68k/m68k.c (m68k_epilogue_uses): New.
8683         * config/m68k/m68k.h (EPILOGUE_USES): Use it.
8684         * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
8686 2012-07-10  Richard Henderson  <rth@redhat.com>
8688         * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
8689         * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
8690         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
8691         * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
8692         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
8693         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
8694         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
8695         (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
8696         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
8697         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
8698         (bdesc_args): Remove entries to match.
8699         (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
8700         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
8701         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
8702         * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
8703         (rs6000_builtin_mul_widen_odd): Remove.
8704         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
8705         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
8706         * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
8707         (spu_builtin_mul_widen_odd): Remove.
8708         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
8709         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
8710         * doc/tm.texi.in: Don't document the removed hooks.
8712         * tree-vect-stmts.c (supportable_widening_operation): Expand
8713         WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
8715         * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
8716         (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
8717         * optabs.c (can_mult_highpart_p): New.
8718         (expand_mult_highpart): New.
8719         * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
8720         * tree-vect-generic.c (expand_vector_operations_1): Don't expand
8721         by pieces if can_mult_highpart_p.
8722         (expand_vector_divmod): Use can_mult_highpart_p and always
8723         generate MULT_HIGHPART_EXPR.
8724         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
8725         * tree-vect-stmts.c (vectorizable_operation): Likewise.
8727         * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
8728         (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
8729         * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
8730         (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
8731         (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
8732         (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
8733         * config/spu/spu-builtins.def: Update pattern names to match.
8735         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
8736         from altivec_vmuleub.
8737         (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
8738         (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
8739         (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
8740         (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
8741         (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
8742         (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
8743         (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
8744         * config/rs6000/rs6000-builtin.def: Update pattern names to match.
8746         * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
8747         avx2_umulv4siv4di3.
8748         (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
8749         (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
8750         (mulv4si3): Remove XOP test shadowed by SSE4 test.
8751         * config/i386/i386.c (bdesc_args): Update pattern names.
8752         (ix86_expand_sse2_mulvxdi3): Likewise.
8753         (ix86_expand_mul_widen_evenodd): Likewise.  Remove XOP test
8754         shadowed by SSE4 test.
8756         * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
8757         * cfgexpand.c (expand_debug_expr): Handle them.
8758         * expr.c (expand_expr_real_2): Likewise.
8759         * fold-const.c (fold_binary_loc): Likewise.
8760         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
8761         * optabs.c (optab_for_tree_code): Likewise.
8762         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
8763         * tree-inline.c (estimate_operator_cost): Likewise.
8764         * tree-pretty-print.c (dump_generic_node): Likewise.
8765         * tree.c (commutative_tree_code): Likewise.
8766         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
8767         Handle type change before looking up optab.
8768         * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
8769         (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
8770         (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
8771         (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
8772         * genopinit.c (optabs): Initialize them.
8773         * doc/md.texi: Document them.
8775 2012-07-10  Dehao Chen  <dehao@google.com>
8777         * tree.h (phi_arg_d): New field.
8778         * tree-flow-inline.h (gimple_phi_arg_block): New function.
8779         (gimple_phi_arg_block_from_edge): New function.
8780         (gimple_phi_arg_set_block): New function.
8781         (gimple_phi_arg_has_block): New function.
8782         (redirect_edge_var_map_block): New function.
8783         * tree-flow.h (_edge_var_map): New field.
8784         * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
8785         * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
8786         redirect_edge_var_map_add.
8787         * tree-outof-ssa.c (_elim_graph): New field.
8788         (insert_partition_copy_on_edge): New parameter.
8789         (insert_value_copy_on_edge): New parameter.
8790         (insert_rtx_to_part_on_edge): New parameter.
8791         (insert_part_to_rtx_on_edge): New parameter.
8792         (elim_graph_add_edge): New parameter.
8793         (elim_graph_remove_succ_edge): New parameter.
8794         (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
8795         (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
8796         (new_elim_graph): Add block debug info.
8797         (clear_elim_graph): Likewise.
8798         (delete_elim_graph): Likewise.
8799         (elim_graph_add_node): Likewise.
8800         (elim_graph_add_edge): Likewise.
8801         (elim_graph_remove_succ_edge): Likewise.
8802         (eliminate_build): Likewise.
8803         (elim_forward): Likewise.
8804         (elim_unvisited_predecessor): Likewise.
8805         (elim_backward): Likewise.
8806         (elim_create): Likewise.
8807         (eliminate_phi): Likewise.
8808         (insert_backedge_copies): Likewise.
8809         * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
8810         add_phi_arg.
8811         (rewrite_add_phi_arguments): Likewise.
8812         * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
8813         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
8814         * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
8815         * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
8816         * tree-ssa-loop-manip.c (create_iv): Likewise.
8817         (add_exit_phis_edge): Likewise.
8818         (split_loop_exit_edge): Likewise.
8819         (copy_phi_node_args): Likewise.
8820         (tree_transform_and_unroll_loop): Likewise.
8821         * value-prof.c (gimple_ic): Likewise.
8822         (gimple_stringop_fixed_value): Likewise.
8823         * tree-tailcall.c (add_successor_phi_arg): Likewise.
8824         (eliminate_tail_call): Likewise.
8825         (create_tailcall_accumulator): Likewise.
8826         (tree_optimize_tail_calls_1): Likewise.
8827         * tree-phinodes.c (add_phi_arg): Likewise.
8828         (make_phi_node): Likewise.
8829         (resize_phi_node): Likewise.
8830         (remove_phi_arg_num): Likewise.
8831         * omp-low.c (expand_parallel_call): Likewise.
8832         (expand_omp_for_static_chunk): Likewise.
8833         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
8834         Likewise.
8835         (slpeel_update_phi_nodes_for_guard1): Likewise.
8836         (slpeel_update_phi_nodes_for_guard2): Likewise.
8837         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
8838         (set_prologue_iterations): Likewise.
8839         (slpeel_tree_peel_loop_to_edge): Likewise.
8840         (vect_loop_versioning): Likewise.
8841         * tree-parloops.c (create_phi_for_local_result): Likewise.
8842         (transform_to_exit_first_loop): Likewise.
8843         (create_parallel_loop): Likewise.
8844         * ipa-split.c (split_function): Likewise.
8845         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
8846         (vect_create_epilog_for_reduction): Likewise.
8847         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
8848         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
8849         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
8850         (cond_if_else_store_replacement_1): Likewise.
8851         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
8852         (remove_forwarder_block_with_phi): Likewise.
8853         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
8854         * tree-predcom.c (initialize_root_vars): Likewise.
8855         (initialize_root_vars_lm): Likewise.
8856         * sese.c (sese_add_exit_phis_edge): Likewise.
8857         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
8858         * tree-ssa.c (flush_pending_stmts): Likewise.
8859         (redirect_edge_var_map_add): Likewise.
8860         (ssa_redirect_edge): Likewise.
8861         * gimple-streamer-in.c (input_phi): Likewise.
8862         * tree-vect-stmts.c (vectorizable_load): Likewise.
8863         * tree-inline.c (copy_phis_for_bb): Likewise.
8864         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
8865         * tree-switch-conversion.c (fix_phi_nodes): Likewise.
8866         * tree-cfg.c (reinstall_phi_args): Likewise.
8867         (gimple_make_forwarder_block): Likewise.
8868         (add_phi_args_after_copy_edge): Likewise.
8869         (gimple_duplicate_sese_tail): Likewise.
8871 2012-07-09  Oleg Endo  <olegendo@gcc.gnu.org>
8873         PR target/53886
8874         * config/sh/sh.c (sequence_insn_p): New function.
8875         (find_barrier, sh_insn_length_adjustment): Use it.
8877 2012-07-09  Iain Sandoe  <iain@codesourcery.com>
8879         PR target/53283
8880         * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
8881         if defined.
8882         * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
8883         SUBTARGET_FOLD_BUILTIN.
8884         * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
8885         SUBTARGET_FOLD_BUILTIN.
8887 2012-07-09  Iain Sandoe  <iain@codesourcery.com>
8889         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
8890         runtime exceptions model setting from here ...
8891         * config/darwin.c (darwin_override_options): ... to here.
8893 2012-07-09  Steven Bosscher  <steven@gcc.gnu.org>
8895         PR tree-optimization/53887
8896         * tree-cfg.c (group_case_labels_stmt): Make non-static.
8897         * tree-flow.h (group_case_labels_stmt): Add prototype.
8898         * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
8899         to pre-process every switch.
8901 2012-07-09  Jason Merrill  <jason@redhat.com>
8903         PR c++/53882
8904         * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
8905         (type_hash_eq): Likewise.
8907 2012-07-09  Tom de Vries  <tom@codesourcery.com>
8908             Richard Guenther  <rguenther@suse.de>
8910         * tree-ssa-ccp.c (optimize_unreachable): New function.
8911         (execute_fold_all_builtins): Use optimize_unreachable to optimize
8912         BUILT_IN_UNREACHABLE.  Don't optimize after BUILT_IN_UNREACHABLE.
8914 2012-07-09  Richard Guenther  <rguenther@suse.de>
8916         PR bootstrap/53898
8917         * graphite-optimize-isl.c: Make sure CU is not empty.
8919 2012-07-09  Steven Bosscher  <steven@gcc.gnu.org>
8921         * gensupport.c (init_rtx_reader_args_cb): Start counting code
8922         generating patterns from 1 to free up 0 for CODE_FOR_nothing.
8923         * gencodes.c (main): Give CODE_FOR_nothing the value 0.  Add
8924         the LAST_INSN_CODE marker at the end.
8925         * genoutput.c (nothing): New static struct data.
8926         (idata): Initialize to &nothing.
8927         (idata_end): Initialize to &nothing.next.
8928         (init_insn_for_nothing): New function to create dummy 'nothing' insn.
8929         (main): Use it.
8930         * genpeep.c (insn_code_number): Remove global variable.
8931         (gen_peephole): Take it as an argument instead.
8932         (main): Take insn_code_number from read_md_rtx.
8933         * optabs.h: Revert r161809:
8934         (optab_handlers): Change type of insn_code back to insn_code.
8935         (optab_handler, widening_optab_handler, set_optab_handler,
8936         set_widening_optab_handler, convert_optab_handler,
8937         set_convert_optab_handler, direct_optab_handler,
8938         set_direct_optab_handler): Remove int casts.
8939         Revert to treating the insn_code field as "insn_code".
8941 2012-07-08  Oleg Endo  <olegendo@gcc.gnu.org>
8943         * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
8944         * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
8945         * config/sh/sh-protos.h: Declare it.
8947 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
8949         * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
8950         (dump_fixup_graph): Use current_function_name.
8951         (adjust_cfg_counts): Likewise.
8952         * ira-conflicts.c: Do not include tree.h.
8953         (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
8955 2012-07-08  Oleg Endo  <olegendo@gcc.gnu.org>
8957         PR target/51244
8958         * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
8960 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
8962         * basic-block.h: Re-group most prototypes per file.
8963         (struct edge_list): Remove num_blocks field.
8964         (dump_bb_info): Adjust prototypes.
8965         (dump_reg_info): Move prototype to regs.h.
8966         * function.h: Do not include tree.h.
8967         Include vec.h, vecir.h, input.h and machmode.h to compensate.
8968         (function_name): New prototype.
8969         * gimple.h: Include tree.h to compensate for basic-block.h change.
8970         * langhooks.h: Note that tree.h is only necessary for enum tree_code.
8971         * regs.h (dump_reg_info): Prototype here.
8972         * regset.h: Adjust file reference in comment.
8973         (debug_regset): Remove prototype.
8974         * rtl.h: Include flags.h for flag_var_tracking_assignments.
8975         (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
8976         instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
8977         (dump_reg_info, dump_flow_info): Remove prototypes.
8978         * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
8979         to here, the only user.  Make static.
8980         (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
8981         * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
8982         flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
8983         tree-pass.h, cfgloop.h, and tree-flow.h.
8984         Include basic-block.h, the first header I'd expect to be included.
8985         (reg_obstack): Move to df-core.c.
8986         (free_edge): Remove bogus ATTRIBUTE_UNUSED.
8987         (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
8988         (redirect_edge_succ_nodup): Move to cfghooks.c.
8989         (dump_regset, debug_regset): Move to df-core.c.
8990         (dump_bb_info): Move to cfgrtl.c.
8991         (dump_reg_info): Move to regstat.c.
8992         (dump_flow_info): Move to cfgrtl.c.
8993         (debug_flow_info): Likewise.
8994         (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
8995         * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
8996         insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
8997         (flow_active_insn_p, forwarder_block_p, can_fallthru,
8998         could_fall_through): Move to cfgrtl.c.
8999         (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
9000         (create_edge_list): Do not set edge_list's removed num_blocks.
9001         (print_edge_list): Look at n_basic_blocks instead of num_blocks.
9002         (flow_nodes_print): Remove.
9003         (flow_edge_list_print): Remove.
9004         (inverted_post_order_compute): Use FOR_ALL_BB.
9005         * cfgrtl.c (dump_flow_info): Moved from cfg.c.
9006         Do not call dump_reg_info.
9007         (debug_flow_info): Moved from cfg.c
9008         (dump_bb_info): Moved from cfg.c.  Take 'verbose' argument
9009         to avoid looking at TDF_* flags from tree-pass.h.
9010         (flow_active_insn_p, forwarder_block_p, can_fallthru,
9011         could_fall_through): Moved from cfganal.c.
9012         (print_rtl_with_bb): Adjust dump_bb_info calls.
9013         * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
9014         (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
9015         (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
9016         * cselib.c: Include tree.h with a FIXME.
9017         * df-core.c (reg_obstack): Moved from cfg.c.
9018         (dump_regset): Likewise.
9019         (debug_regset): Likewise.  Make a DEBUG_FUNCTION.
9020         * final.c (compute_alignments): Call dump_reg_info before
9021         dump_flow_info.
9022         * function.c (function_name): New function.
9023         (current_function_name): Use it.
9024         * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
9025         dump_flow_info.
9026         * ira-conflicts.c: Include tree.h with a note.
9027         * regstat.c (dump_reg_info): Moved here from cfg.c.
9028         * loop-init.c: Include regs.h instead of hard-reg-set.h.
9029         (rtl_loop_init): Call dump_reg_info before dump_flow_info.
9030         (rtl_loop_done): Likewise.
9031         * mcf.c: Include tree.h before langhooks.h.
9032         * predict.c (maybe_hot_count_p): Assert we have cfun.
9033         (probably_never_executed_bb_p): Likewise.
9034         * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
9035         instead of dump_flow_info.
9036         * sched-deps.c: Include tree.h with a FIXME.
9037         (call_may_noreturn_p): Add FIXME note why this function has to
9038         look at function decls instead of function decl flags.
9039         * sched-vis.c: Include tree.h with a FIXME.
9040         (print_rtl_slim): Adjust dump_bb_info uses.
9041         * statistics.c (statistics_fini_pass_2): Use current_function_name
9042         to avoid including tree.h.
9043         (statistics_counter_event): Use function_name for the same reason.
9044         (statistics_histogram_event): Likewise.
9045         * tracer.c (tracer): Remove bogus gcc_assert.  Use brief_dump_cfg
9046         instead of dump_flow_info.
9047         * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
9048         before dump_flow_info.
9049         * doc/cfg.texi: Update CFG documentation.
9050         * Makefile.in (RTL_H): Depend on FLAGS_H.
9051         (GIMPLE_H): Depend on TREE_H.
9052         (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
9053         but no longer on TREE_H.
9054         (C_COMMON_H): Depend on TREE_H.
9055         (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
9056         sched-deps.o, sched-vis.o): Fixup dependencies.
9058 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
9060         * alias.h: Do not include coretypes.h in header files.
9061         * cppbuiltin.h: Likewise.
9062         * double-int.h: Likewise.
9063         * gimple-fold.h: Likewise.
9064         * flags.h: Likewise.
9065         * tree-ssa-alias.h: Likewise.
9066         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
9067         OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
9068         * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
9069         (TREE_H): Likewise.
9070         (ALIAS_H): Do not depend on coretypes.h.
9071         (FLAGS_H): Likewise.
9072         (realmpfr.o): Depend on coretypes.h.
9074 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
9076         * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
9077         gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
9079 2012-07-07  Richard Earnshaw  <rearnsha@arm.com>
9081         * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
9082         (TARGET_FPA): Delete definition.
9083         (TARGET_MAVERICK): Likewise.
9084         (TARGET_FPA_EMU2): Likewise.
9085         (arm_fp_model): Remove FPA and Maverick models.
9086         (arm_arch_cirrus): Delete declaration.
9087         (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
9088         (FIXED_REGISTERS): Remove FPA and Maverick support.  Reorganize.
9089         (CALL_USED_REGISTERS): Likewise.
9090         (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
9091         (FIRST_VFP_REGNUM): Renumbered.
9092         (D7_VFP_REGNUM): Chain definition.
9093         (LAST_LO_VFP_REGNUM): Likewise.
9094         (FIRST_HI_VFP_REGNUM): Likewise.
9095         (LAST_HI_VFP_REGNUM): Likewise.
9096         (FIRST_IWMMXT_GR_REGNUM): Likewise.
9097         (LAST_IWMMXT_GR_REGNUM): Likewise.
9098         (FIRST_IWMMXT_REGNUM): Likewise.
9099         (LAST_IWMMXT_REGNUM): Likewise.
9100         (FRAME_POINTER_REGNUM): Renumbered.
9101         (ARG_POINTER_REGNUM): Renumbered.
9102         (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
9103         (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
9104         (HARD_REGNO_REGNUM): Remove FPA support.
9105         (REG_ALLOC_ORDER): Remove FPA and Maverick registers.  Reorganize.
9106         (reg_class): Likewise.
9107         (REG_CLASS_NAMES): Likewise.
9108         (REG_CLASS_CONTENTS): Likewise.
9109         (CANNOT_CHANGE_MODE_CLASS): Never true.  Update comment.
9110         (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
9111         (CLASS_MAX_NREGS): Remove FPA and Maverick support.
9112         * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
9113         Reorganize.  Use AAPCS preferred names.
9114         (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick.  Update
9115         comments.
9116         (OVERLAPPING_REGISTER_NAMES): Update register numbering.
9117         * arm.c (FL_CIRRUS): Delete definition.
9118         (arm_arch_cirrus): Delete variable.
9119         (arm_float_words_big_endian): Delete function.
9120         (cirrus_memory_offset): Delete function.
9121         (output_mov_long_double_fpa_from_arm): Delete function.
9122         (output_mov_long_double_arm_from_fpa): Delete function.
9123         (output_mov_double_fpa_from_arm): Delete function.
9124         (output_mov_double_arm_from_fpa): Delete function.
9125         (emit_sfm): Delete function.
9126         (maybe_get_arm_condition_code): Update comment.
9127         (arm_file_start): Always use softvfp for softfloat systems.
9128         (thumb_core_reg_alloc_order): Adjust for updated register allocation.
9129         (arm_option_override): Remove FPA and Maverick support.  Always
9130         default to vfp as the fallback FPU format.
9131         (use_return_insn): Remove FPA support.
9132         (arm_get_frame_offsets): Likewise.
9133         (arm_save_coproc_regs): Likewise.
9134         (arm_canonicalize_comparison): Remove Maverick support.
9135         (arm_select_cc_mode): Likewise.
9136         (arm_gen_compare_reg): Likewise.
9137         (arm_print_operand): Likewise.
9138         (arm_libcall_value_1): Remove FPA and Maverick support.
9139         (arm_function_value_regno_p): Likewise.
9140         (arm_apply_result_size): Likewise.
9141         (arm_legitimate_index_p): Likewise.
9142         (thumb2_legitimate_index_p): Likewise.
9143         (legitimize_reload_address): Likewise.
9144         (arm_register_move_cost): Likewise.
9145         (arm_hard_regno_mode_ok): Likewise.
9146         (arm_regno_class): Likewise.
9147         (arm_dbx_register_number): Likewise.
9148         (arm_emit_unwind_sequence): Likewise.
9149         (arm_conditional_register_usage): Likewise.
9150         * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
9151         (cirrus_memory_offset): Likewise.
9152         (output_move_long_double_fpa_from_arm): Likewise.
9153         (output_move_long_double_arm_from_fpa): Likewise.
9154         (output_move_double_fpa_from_arm): Likewise.
9155         (output_move_double_arm_from_fpa): Likewise.
9156         (arm_float_words_big_endian): Likewise.
9157         * arm.md (CC_REGNUM): Renumbered.
9158         (VFPCC_REGNUM): Moved here.  Renumbered.
9159         (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
9160         (attr fpu): Remove FPA and Maverick support.
9161         * vfp.md (VFPCC_REGNUM): Delete.  Moved to arm.md.
9162         * arm-cores.def (ep9312): Remove Maverick support.
9163         * arm-arches.def (ep9312): Delete architecture.
9164         * arm-tables.opt: Regenerated.
9166         * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
9168 2012-07-07  Steven Bosscher  <steven@gcc.gnu.org>
9170         PR tree-optimization/53881
9171         * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
9172         comparing labels to establish uniqueness of a switch case target,
9173         use the CFG instead.
9175 2012-07-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
9177         * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
9178         due to negative shift amount.
9180 2012-07-07  Hans-Peter Nilsson  <hp@axis.com>
9182         Fix configure test for "stack protector support in target C library".
9183         * configure.ac (test_prefix, test_exec_prefix): Move setting from
9184         inside sysroot handling to before and outside it.
9185         * configure: Regenerate.
9187 2012-07-06  Kai Tietz  <ktietz@redhat.com>
9189         PR bootstrap/52947
9190         * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
9191         as "/mingw/include".
9193 2012-07-06  Alexandre Oliva  <aoliva@redhat.com>
9195         PR debug/53820
9196         * var-tracking.c (vt_add_function_parameter): Convert
9197         internal_arg_pointer into arg_pointer-based address even
9198         without DRAP.
9200 2012-07-06  Alexandre Oilva  <aoliva@redhat.com>
9202         PR rtl-optimization/53827
9203         PR debug/53671
9204         PR debug/49888
9205         * alias.c (memrefs_conflict_p): Adjust offset and size by the
9206         same amount for alignment ANDs.
9208 2012-07-06  Tom de Vries  <tom@codesourcery.com>
9210         PR tree-optimization/51879
9211         * tree-ssa-sccvn.c (copy_reference_ops_from_call)
9212         (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
9213         (visit_use): Also call visit_reference_op_call for calls with a vdef.
9215 2012-07-06  Tom de Vries  <tom@codesourcery.com>
9217         PR tree-optimization/52009
9218         * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
9219         value numbers of gimple_vdef.
9220         * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
9221         prototype.
9222         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
9223         (vn_reference_insert): Add and handle vdef parameter.
9224         (visit_reference_op_load): Add argument to vn_reference_insert call.
9225         (visit_reference_op_store): Find value number of vdef of store.  Insert
9226         value number of vdef of store.
9228 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
9230         * config/i386/i386.md (simple lea to add peephole): Also transform
9231         RTXes where second PLUS operand matches output.
9233 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
9235         * config/i386/i386.c (construct_plt_address): Make static.
9236         * config/i386/i386-protos.h (construct_plt_address): Remove.
9238 2012-07-06  Nick Clifton  <nickc@redhat.com>
9240         * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
9241         default_encode_section_info.
9243 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
9245         PR target/53853
9246         * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
9247         emit PIC sequence for fnaddr symbol reference in advance.
9249 2012-07-06  Eric Botcazou  <ebotcazou@adacore.com>
9251         Revert
9252         2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
9254         * dwarf2out.c (function_possibly_abstracted_p): New static function.
9255         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
9256         cgraph_function_possibly_inlined_p.
9257         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
9258         (process_scope_var): Do not emit concrete instances of abstracted
9259         nested functions from here.
9260         (gen_decl_die): Emit the abstract instance if the function is possibly
9261         abstracted and not only possibly inlined.
9262         (dwarf2out_finish): Find the first non-abstract parent instance and
9263         attach concrete instances on the limbo list to it.
9265 2012-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9266             Julian Brown  <julian@codesourcery.com>
9268         PR target/48941
9269         PR target/51980
9270         * config/arm/neon-gen.ml (return_by_ptr): Delete.
9271         (print_function): Handle empty strings.
9272         (return): Delete use of return_by_ptr.
9273         (mask_shape_for_shuffle): New function.
9274         (mask_elems): Likewise.
9275         (shuffle_fn): Likewise.
9276         (params): Simplify and remove use of return_by_ptr.
9277         (get_shuffle): New function.
9278         (print_variant): Update.
9279         * config/arm/neon.ml (rev_elems): New function.
9280         (permute_range): Likewise.
9281         (zip_range): Likewise.
9282         (uzip_range): Likewise.
9283         (trn_range): Likewise.
9284         (zip_elems): Likewise.
9285         (uzip_elems): Likewise.
9286         (trn_elems): Likewise.
9287         (features): New enumeration Use_shuffle. Delete ReturnPtr.
9288         (pf_su_8_16): New.
9289         (suf_32): New.
9290         (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
9291         * config/arm/arm_neon.h: Regenerate.
9293 2012-07-05  Richard Guenther  <rguenther@suse.de>
9295         * tree-pretty-print.c (dump_generic_node): Properly test
9296         the result of exact_log2.
9298 2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9300         * config/s390/s390-protos.h (s390_expand_movmem)
9301         (s390_expand_cmpmem): Add return value.
9302         * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
9303         Return FALSE to use the library function in some cases.
9304         * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
9305         helper functions.
9307 2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9309         * config.gcc: Enable ifunc attribute by default on s390 and s390x.
9311 2012-07-05  Steven Bosscher  <steven@gcc.gnu.org>
9313         * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
9314         * stmt.c (dump_case_nodes): New.
9315         (expand_case): Split out code generation parts into new functions.
9316         (expand_switch_as_decision_tree_p): Split out from expand_case.
9317         (emit_case_decision_tree): Likewise.
9318         (emit_case_dispatch_table): Likewise.
9320 2012-07-05  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
9322         * config/arm/iterators.md (SDF): New mode iterator.
9323         (V_if_elem): Add support for SF and DF modes.
9324         (V_reg): Likewise.
9325         (F_constraint): New mode iterator attribute.
9326         (F_fma_type): Likewise.
9327         config/arm/vfp.md (fma<SDF:mode>4): New pattern.
9328         (*fmsub<SDF:mode>4): Likewise.
9329         (*fmnsub<SDF:mode>4): Likewise.
9330         (*fmnadd<SDF:mode>4): Likewise.
9332 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
9334         * expmed.c (expand_mult): Initialize coeff and is_neg.
9336 2012-07-04  Oleg Endo  <olegendo@gcc.gnu.org>
9338         * config/sh/predicates.md (zero_extend_operand): New predicate.
9339         * config/sh/sh.md (zero_extendhisi2): Simplify by using new
9340         zero_extend_operand predicate.
9341         (zero_extendqisi2): Likewise.
9343 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
9345         PR middle-end/53321
9346         * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
9347         to not call cgraph_propagate_frequency if something was changed.
9349 2012-07-04  Richard Guenther  <rguenther@suse.de>
9351         PR middle-end/53433
9352         * gimple-fold.c (get_base_constructor): Do not return an
9353         error_mark_node DECL_INITIAL.
9355 2012-07-04  Richard Guenther  <rguenther@suse.de>
9357         PR tree-optimization/53844
9358         * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
9359         the loop virtual PHI.
9361 2012-07-04  Richard Guenther  <rguenther@suse.de>
9363         PR tree-optimization/53849
9364         * tree-cfg.c (move_stmt_op): Only call add_referenced_var
9365         for duplicated locals.  Use add_referenced_var_1 to avoid
9366         pushing/popping cfun.
9368 2012-07-04  Kai Tietz  <ktietz@redhat.com>
9370         * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
9371         * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
9372         prototype.
9373         * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
9374         as i386_pe_reloc_rw_mask.
9376 2012-07-04  Richard Guenther  <rguenther@suse.de>
9378         * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
9379         as in free_lang_data_in_type.
9381 2012-07-04  Tobias Grosser <tobias@grosser.es>
9382             Michael Matz  <matz@suse.de>
9384         * Makefile.in (OBJS): Add graphite-optimize-isl.o.
9385         (graphite-optimize-isl.o): Add dependencies.
9386         * common.opt (floop-nest-optimize): New flag.
9387         * doc/invoke.texi (floop-nest-optimize): Document.
9388         * graphite-dependences.c (compute_deps): Export.
9389         * graphite-poly.h (compute_deps): Declare.
9390         * graphite-optimize-isl.c: New file.
9391         * graphite-poly.c (apply_poly_transforms): Run the loop
9392         nest optimizer.
9393         * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
9394         if -floop-nest-optimize is enabled.
9396 2012-07-03  Oleg Endo  <olegendo@gcc.gnu.org>
9398         * config/sh/predicates.md (logical_and_operand): New predicate.
9399         * config/sh/constraints.md (Jmb, Jmw): New constraints.
9400         * config/sh/sh.md (andsi3): Move expander above insns.  Add handling
9401         of 0xFFFF constant.  Use logical_and_operand predicate and
9402         satisfies_constraint_Jmb, satisfies_constraint_Jmw.
9403         (*andsi3_compact): Make it an insn_and_split.  Use
9404         logical_and_operand predicate.  Add Jmb,Jmw alternatives.
9406 2012-07-03  Jason Merrill  <jason@redhat.com>
9408         PR c++/53826
9409         * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
9411 2012-07-03  Nick Clifton  <nickc@redhat.com>
9413         * config/mep/mep.c (mep_reorg_regmove): Use
9414         next_nonnote_non_debug_insn to advance to the next insn.  Do not
9415         expect delete_insn to return an rtx.
9417 2012-07-03  Richard Guenther  <rguenther@suse.de>
9419         * doc/install.texi (CLooG): Clarify how CLooG needs to be
9420         configured and that it needs to be built against ISL 0.10.
9422 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
9424         * config/i386/i386.c (ix86_option_override_internal): Fix wrong
9425         code model string in the error message.
9427 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
9429         PR target/53811
9430         * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
9431         sibcall_insn_operand.  Move it to a temporary register if not.
9433 2012-07-03  Andreas Schwab  <schwab@linux-m68k.org>
9435         PR target/28896
9436         * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
9437         if !TARGET_68020.
9439 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
9441         * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
9443 2012-07-03  Roland McGrath  <mcgrathr@google.com>
9445         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
9446         assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
9447         * configure: Regenerated.
9448         * config/i386/i386.md (simple_return_internal_long): Use %;
9449         (ctz<mode>2): Likewise.
9450         (*pause): Likewise.
9452 2012-07-02  Oleg Endo  <olegendo@gcc.gnu.org>
9454         PR target/51244
9455         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
9456         predicates.
9457         * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
9458         * config/sh/sh.c (get_t_reg_rtx): New function.  Use it when invoking
9459         gen_branch_true and gen_branch_false.
9460         * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
9461         gen_branch_false.
9462         (branch_true, branch_false): Use t_reg_operand predicate.
9463         (*branch_true, *branch_false): Delete.
9464         (movt): Use t_reg_operand predicate.
9465         (*negnegt): Use negt_reg_operand predicate and fold little and big
9466         endian variants.
9467         (*movtt): Use t_reg_operand and fold little and big endian variants.
9468         (*movt_qi): Delete.
9470 2012-07-02  Steven Bosscher  <steven@gcc.gnu.org>
9472         * stmt.c (emit_case_bit_tests): Remove.
9473         (expand_case): Remove expand_switch_using_bit_tests_p code.
9474         * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
9475         (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
9476         (lshift_cheap_p): Likewise.
9477         (expand_switch_using_bit_tests_p): Likewise.
9478         (struct case_bit_test): Likewise.
9479         (case_bit_test_cmp): Likewise.
9480         (emit_case_bit_tests): New implementation for GIMPLE.
9481         (gen_inbound_check): Do not release post-dominator info here.
9482         (process_switch): Reorder code.  Expand as bit tests if it
9483         looks like a win.
9484         (do_switchconv): Release post-dominator info here if something changed.
9485         (struct gimple_opt_pass): Verify more.
9486         * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
9488 2012-07-02  Martin Jambor  <mjambor@suse.cz>
9490         PR middle-end/38474
9491         * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
9492         dynamic type change check.
9494 2012-07-02  Richard Guenther  <rguenther@suse.de>
9495             Michael Matz  <matz@suse.de>
9496             Tobias Grosser <tobias@grosser.es>
9497             Sebastian Pop <sebpop@gmail.com>
9499         * Makefile.in: Remove PPL flags in favor of ISL ones.
9500         (BACKENDLIBS): Remove PPL libs.
9501         (INCLUDES): Remove PPL includes in favor of ISL ones.
9502         (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
9503         graphite-cloog-compat.h dependencies.
9504         (graphite-dependences.o): Likewise.
9505         (graphite-poly.o): Likewise.
9506         * configure.ac: Declare ISL vars instead of PPL ones.
9507         * configure: Regenerated.
9508         * doc/install.texi: Replace PPL requirement documentation with ISL one.
9509         * graphite-blocking.c: Remove PPL code, add ISL equivalent.
9510         * graphite-clast-to-gimple.c: Likewise.
9511         * graphite-dependences.c: Likewise.
9512         * graphite-interchange.c: Likewise.
9513         * graphite-poly.h: Likewise.
9514         * graphite-poly.c: Likewise.
9515         * graphite-sese-to-poly.c: Likewise.
9516         * graphite.c: Likewise.
9517         * graphite-scop-detection.c: Re-arrange includes.
9518         * graphite-cloog-util.c: Remove.
9519         * graphite-cloog-util.h: Likewise.
9520         * graphite-ppl.h: Likewise.
9521         * graphite-ppl.c: Likewise.
9522         * graphite-dependences.h: Likewise.
9524 2012-07-02  Richard Guenther  <rguenther@suse.de>
9526         Merge from graphite branch
9527         2011-07-21  Tobias Grosser  <tobias@grosser.es>
9529         * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
9530         Remove graphite-cloog-util.h.
9531         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
9532         build_iv_mapping, translate_clast_user, translate_clast,
9533         free_scattering, initialize_cloog_names, build_cloog_prog,
9534         create_params_index): Do not use old compatibility functions.
9535         (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
9536         * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
9537         compatibility functions.
9538         (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
9539         cloog.
9540         * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
9541         * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
9542         cloog_finalize().
9543         * graphite-cloog-compat.h: Remove.
9545         2011-08-09  Tobias Grosser <tobias@grosser.es>
9547         * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
9548         of the string, no just a reference.
9549         (clast_name_index): Add a new field, that specifies if we need to free
9550         the name.
9551         (free_clast_name_index): If necessary, free the name string.
9552         (clast_name_index_elt_info): Calculate the hash based on the string
9553         content, not the memory location it is stored in.
9554         (clast_name_to_level): Specify that we do not need to free the name.
9555         (clast_name_to_index): Dito.
9556         (clast_name_to_lb_ub): Dito.
9557         (eq_clast_name_indexes): Compare the strings, not their base pointers.
9558         (free_scattering): Removed.
9559         (initialize_cloog_names): Renamed to add_names_to_union_domain().
9560         (add_names_to_union_domain): Changed to work on a union_domain,
9561         instead of a CloogNames structure.
9562         (build_cloog_prog): Removed.
9563         (build_cloog_union_domain): New.
9564         (generate_cloog_input): New.
9565         (scop_to_clast): Use CloogInput instead of CloogProgram.
9566         (print_generated_program): Adapt to new scop_to_clast() and do not
9567         print the CloogProgram any more.
9568         (create_params_index): Removed, functionality integrated in
9569         add_names_to_union_domain().
9570         (gloog): Adapt to new scop_to_clast().
9571         * graphite-clast-to-gimple.h (scop_to_clast): Remove.
9573         2012-01-11  Tobias Grosser <tobias@grosser.es>
9575         * graphite-clast-to-gimple.c (clast_name_to_index,
9576         clast_name_to_lb_ub, clast_name_to_gcc): Change types.
9577         (clast_to_gcc_expression): Add clast_expr_name as a new
9578         case. Do not assume a clast_expr_term points always to a
9579         clast_expr_name.
9580         (type_for_clast_term): Do not assume a clast_expr_term points always to
9581         a clast_expr_name.
9582         (type_for_clast_name): New.
9583         (type_for_clast_expr): Add clast_expr_name as a new case.
9585         2011-08-03  Sebastian Pop <sebpop@gmail.com>
9587         * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
9588         new_Cloog_Scattering_from_ppl_Polyhedron,
9589         new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
9591 2012-07-02  Jakub Jelinek  <jakub@redhat.com>
9593         PR tree-optimization/53645
9594         * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
9595         instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
9597 2012-07-01  Wei Guozhi  <carrot@google.com>
9599         PR target/53447
9600         * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
9601         * config/arm/arm.c (const_ok_for_dimode_op): New function.
9602         * config/arm/constraints.md (Dd): New constraint.
9603         * config/arm/predicates.md (arm_adddi_operand): New predicate.
9604         * config/arm/arm.md (adddi3): Extend it to handle constants.
9605         (arm_adddi3): Likewise.
9606         (addsi3_carryin_<optab>): Extend it to handle sbc case.
9607         (addsi3_carryin_alt2_<optab>): Likewise.
9608         * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
9610 2012-06-30  Nathan Sidwell  <nathan@acm.org>
9612         * coverage.c (bbg_file_stamp): New.
9613         (read_counts_file): Merge incoming stamp with bbg_file_stamp.
9614         (build_info): Write bbg_file_stamp.
9615         (coverage_init): Initialize bbg_file_stamp.  Read counts file
9616         before writing graph header.
9617         (coverage_finish): Don't unlink the data file if we can generate a
9618         unique file stamp.
9619         * tree.h (crc32_unsigned): Declare.
9620         * tree.c (crc32_unsigned_bits): New, broken out of ...
9621         (crc32_byte): ... here.  Use it.
9622         (crc32_unsigned): New.
9624 2012-06-29  Cary Coutant  <ccoutant@google.com>
9626         * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
9627         (gen_subprogram_die): Don't add pubname if want_pubnames is false.
9628         (gen_variable_die): Likewise.
9629         (gen_namespace_die): Likewise.
9631 2012-06-29  Eric Botcazou  <ebotcazou@adacore.com>
9633         * tree-eh.c (lower_try_finally_switch): Really put the location of the
9634         last statement of the finally block onto the switch.
9636 2012-06-29  H.J. Lu  <hongjiu.lu@intel.com>
9638         PR target/53539
9639         * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
9640         TARGET_LP64.
9642 2012-06-29  Sterling Augustine  <saugustine@google.com>
9644         * dwarf2out.c (add_pubname): Add comment.
9645         (add_pubtype): Fix indentation.
9646         (gen_enumeration_type_die): Likewise.
9648 2012-06-29  Jakub Jelinek  <jakub@redhat.com>
9650         * tree-vect-generic.c (expand_vector_divmod): For even/odd
9651         widening multiply, put even always as first argument to VEC_PERM_EXPR.
9653 2012-06-29  Richard Henderson  <rth@redhat.com>
9655         * tree-vect-generic.c: Include target.h.
9656         (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
9657         * Makefile.in (tree-vect-generic.o): Update.
9659 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
9661         * configure.ac: Remove special gtfiles case for C.
9662         * configure: Regenerate.
9663         * Makefile.in: Remove C front-end hooks and build hooks that
9664         will be picked up from c/Make-lang.in now.
9665         Add tree-mudflap to C_COMMON_OBJS.
9666         * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
9667         * config/vms/vms.c: Look for c-tree.h in c/.
9668         * doc/gty.texi: Remove reference to c-config-lang.in.
9669         * doc/sourcebuild.texi: Document the c/ subdirectory.
9671 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
9673         * system.h (CASE_USE_BIT_TESTS): Poison.
9674         * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
9675         (expand_switch_using_bit_tests_p): ...here.
9676         * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
9677         * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
9679 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
9681         * system.h (IFCVT_EXTRA_FIELDS): Poison.
9682         (IFCVT_INIT_EXTRA_FIELDS): Poison.
9683         * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
9684         * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
9685         IFCVT_INIT_EXTRA_FIELDS.
9686         * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
9687         * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
9688         IFCVT_MACHDEP_INIT.
9689         * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
9690         frv_ifcvt_machdep_init.
9691         * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
9692         Remove documentation.
9693         (IFCVT_MACHDEP_INIT): Document.
9694         * doc/tm.texi: Regenerate.
9696 2012-06-29  Nick Clifton  <nickc@redhat.com>
9698         * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
9700 2012-06-29  Jakub Jelinek  <jakub@redhat.com>
9702         * tree-vect-stmts.c (vectorizable_operation): Check both
9703         VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
9704         Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
9706 2012-06-28  Richard Henderson  <rth@redhat.com>
9708         * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
9710 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
9712         PR tree-optimization/51581
9713         * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
9714         (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
9715         also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
9716         VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
9717         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
9718         MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
9720         PR tree-optimization/53645
9721         * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
9722         instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
9723         if possible.
9725 2012-06-28  Georg-Johann Lay  <avr@gjlay.de>
9727         PR 53595
9728         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
9729         * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
9730         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
9731         avr_hard_regno_call_part_clobbered.
9733 2012-06-28  Richard Guenther  <rguenther@suse.de>
9735         PR middle-end/53790
9736         * expr.c (expand_expr_real_1): Verify if the type is complete
9737         before inspecting its size.
9739 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
9741         * doc/include/gpl.texi: Remove.
9742         * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
9744 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
9746         PR tree-optimization/53645
9747         * tree-vect-generic.c (add_rshift): New function.
9748         (expand_vector_divmod): New function.
9749         (expand_vector_operation): Use it for vector integer
9750         TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
9751         * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
9752         unused lguup variable with dummy_int.
9754 2012-06-28  OLivier Hainque  <hainque@adacore.com>
9756         * expr.c (convert_move): Latch mem integer inputs into a
9757         register before expanding a multi-instructions sequence.
9759 2012-06-28  Alexandre Oliva  <aoliva@redhat.com>
9760             Uros Bizjak  <ubizjak@gmail.com>
9761             Jakub Jelinek  <jakub@redhat.com>
9763         PR debug/53706
9764         PR debug/47624
9765         * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
9766         (vt_finalize): ... here instead, if needed.
9768 2012-06-28  Alexandre Oliva  <aoliva@redhat.com>
9770         PR debug/53740
9771         PR debug/52983
9772         PR debug/48866
9773         * dce.c (word_dce_process_block): Check whether inserting debug
9774         temps are needed even for needed insns.
9775         (dce_process_block): Likewise.
9776         * df-problems.c (dead_debug_add): Add comment about multi-regs.
9777         (dead_debug_insert_temp): Likewise.  Don't subreg when we're
9778         setting fewer regs than a multi-reg requires.
9780 2012-06-27  Richard Henderson  <rth@redhat.com>
9782         * config/alpha/alpha.c (alpha_dimode_u): New.
9783         (alpha_init_builtins): Initialize it, and use it.
9784         (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
9785         (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
9786         (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
9787         (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
9788         (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
9789         (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
9790         (alpha_fold_builtin_ctpop): Likewise.
9791         (alpha_fold_builtin_umulh): Remove.
9792         (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
9793         typo in MAX_ARGS check.
9795 2012-06-27  Richard Henderson  <rth@redhat.com>
9797         * tree.def (MULT_HIGHPART_EXPR): New.
9798         * cfgexpand.c (expand_debug_expr): Ignore it.
9799         * expr.c (expand_expr_real_2): Handle it.
9800         * fold-const.c (int_const_binop_1): Likewise.
9801         * optabs.c (optab_for_tree_code): Likewise.
9802         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
9803         * tree-inline.c (estimate_operator_cost): Likewise.
9804         * tree-pretty-print.c (dump_generic_node): Likewise.
9805         (op_code_prio, op_symbol_code): Likewise.
9806         * tree.c (commutative_tree_code): Likewise.  Also handle
9807         WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
9809 2012-06-27  Richard Henderson  <rth@redhat.com>
9811         PR target/53749
9812         * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
9813         in 2012-06-23 change.  Adjust two other DImode tests as well.
9815 2012-06-27  Nick Clifton  <nickc@redhat.com>
9817         * config/rx/rx.md (comparesi3_extend): Remove = modifier from
9818         input operand.
9820 2012-06-27  Richard Guenther  <rguenther@suse.de>
9822         PR middle-end/53676
9823         * tree-chrec.c (chrec_convert_1): Represent truncation to
9824         a type with undefined overflow as truncation to an unsigned
9825         type converted to the type with undefined overflow.
9826         * tree-scalar-evolution.c (interpret_rhs_expr): For computing
9827         the scalar evolution of a truncated widened operation avoid
9828         looking at the non-existing evolution of the widened operation
9829         result.
9831 2012-06-27  Richard Guenther  <rguenther@suse.de>
9833         PR tree-optimization/53774
9834         * tree-ssa-reassoc.c (get_rank): All default defs have
9835         precomputed rank.
9836         (init_reassoc): Precompute rank for all SSA default defs.
9838 2012-06-27  Nick Clifton  <nickc@redhat.com>
9840         * config/rx/rx.md (simple_return): Use the simple_return rtx.
9842 2012-06-26  Richard Henderson  <rth@redhat.com>
9844         * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
9845         and don't fall thru from standard_80387_constant_p to the memory
9846         fallback.
9848 2012-06-26  Richard Henderson  <rth@redhat.com>
9850         * config/i386/i386.c (bdesc_args): Update.  Change
9851         IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
9852         (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
9853         (ix86_builtin_mul_widen_even): Use it.
9854         (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
9855         (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
9856         * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
9857         for all SSE2.
9858         (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
9859         (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise.  Relax from V124_AVX2.
9860         (vec_widen_smult_even_v4si): New.
9862 2012-06-26  Richard Henderson  <rth@redhat.com>
9864         * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
9865         to expander; move guts to ...
9866         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here.  Add
9867         highparts before shifting up.
9868         * config/i386/i386-protos.h: Update.
9870 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9872         * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
9873         * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
9874         * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
9876 2012-06-26  Alexandre Oliva  <aoliva@redhat.com>
9878         * var-tracking.c (vt_add_function_parameter): Use a preserved
9879         VALUE for the MEM address of an incoming parameter.
9881 2012-06-26  Sterling Augustine <saugustine@google.com>
9883         * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
9884         (prune_unused_types): Likewise.
9886 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9888         * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9889         UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
9890         * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9891         UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
9892         VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
9893         VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
9894         * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
9895         UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
9896         * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
9897         documentation.
9898         * doc/tm.texi: Regenerate.
9899         * doc/cpp.texi: Make example for #error generic.
9900         * config/frv/frv.h: Fix example text to match tm.texi.
9902 2012-06-26  Bill Schmidt  <wschmidt@linux.ibm.com>
9904         * tree-pass.h (pass_strength_reduction): New decl.
9905         * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
9906         (finalize_costs): Likewise.
9907         * timevar.def (TV_TREE_SLSR): New timevar.
9908         * gimple-ssa-strength-reduction.c: New.
9909         * tree-flow.h (initialize_costs): New decl.
9910         (finalize_costs): Likewise.
9911         * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
9912         * passes.c (init_optimization_passes): Add pass_strength_reduction.
9914 2012-06-26  Matt Turner  <mattst88@gmail.com>
9916         * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
9917         (__builtin_arm_tinsrh): Likewise.
9918         (__builtin_arm_tinsrw): Likewise.
9919         (__builtin_arm_wsadb): Add missing v2si parameter.
9920         (__builtin_arm_wsadh): Likewise.
9921         (__builtin_arm_getwcx): Delete.
9922         (__builtin_arm_setwcx): Delete.
9923         (__builtin_arm_getwcgr0): Add.
9924         (__builtin_arm_getwcgr1): Add.
9925         (__builtin_arm_getwcgr2): Add.
9926         (__builtin_arm_getwcgr3): Add.
9927         (__builtin_arm_setwcgr0): Add.
9928         (__builtin_arm_setwcgr1): Add.
9929         (__builtin_arm_setwcgr2): Add.
9930         (__builtin_arm_setwcgr3): Add.
9932 2012-06-26  Richard Guenther  <rguenther@suse.de>
9934         Revert
9935         2012-06-21  Richard Guenther  <rguenther@suse.de>
9937         * tree-inline.c (estimate_num_insns): Estimate call cost for
9938         tailcalls properly.
9940 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9942         PR other/33190
9943         * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
9944         * doc/tm.texi: Regenerate.
9946 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9948         PR other/33190
9949         * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
9950         * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
9951         * doc/tm.texi.in: Remove documentation for unused target macros
9952         ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
9953         DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
9954         REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
9955         TARGET_NARROW_VOLATILE_BITFIELDS.
9956         Document that MD_HANDLE_UNWABI is a macro in libgcc.
9957         * doc/tm.texi: Regenerate.
9958         * system.h: Poison target macros
9959         ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
9960         DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
9961         REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
9962         TARGET_NARROW_VOLATILE_BITFIELDS
9964 2012-06-26  Jan Hubicka  <jh@suse.cz>
9966         PR lto/53572
9967         * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
9968         used symbols.
9970 2012-06-26  Dehao Chen  <dehao@google.com>
9972         * tree-inline.c: (expand_call_inline): Ensure that lexical block's
9973         source location is consistant with the call stmt.
9975 2012-06-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
9977         PR tree-optimization/53729
9978         PR tree-optimization/53636
9979         * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
9980         vect_verify_datarefs_alignment until after statements have
9981         been marked as relevant/irrelevant.
9982         * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
9983         Skip irrelevant statements.
9984         (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
9985         instead of STMT_VINFO_RELEVANT.
9986         (vect_get_data_access_cost): Do not check for supportable
9987         alignment before calling vect_get_load_cost/vect_get_store_cost.
9988         * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
9989         handling unsupported alignment.
9990         (vect_get_load_cost): Likewise.
9992 2012-06-25  Steven Bosscher  <steven@gcc.gnu.org>
9994         * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
9995         Do not define JMP_BUF_SIZE.
9997 2012-06-26  Jakub Jelinek  <jakub@redhat.com>
9999         PR tree-optimization/53748
10000         * tree-ssa-phiopt.c (conditional_replacement): Only optimize
10001         if arg0/arg1 have integral or pointer types.
10003 2012-06-25  Richard Henderson  <rth@redhat.com>
10005         * config/i386/sse.md (sse2_sse4_1): Remove code attr.
10006         (<s>dot_prodv4si, <s>dot_prodv8si): Remove
10007         (sdot_prodv4si): New; handle only XOP.
10009 2012-06-25  Richard Henderson  <rth@redhat.com>
10011         * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
10012         (V2UDI_FUNC_V4USI_V4USI): New.
10013         (V4UDI_FUNC_V8USI_V8USI): New.
10014         * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
10015         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
10016         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
10017         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
10018         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
10019         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
10020         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
10021         (bdesc_args): Add them.
10022         (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
10023         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
10024         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
10025         (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
10026         * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
10028 2012-06-25  Richard Henderson  <rth@redhat.com>
10030         * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
10032 2012-06-25  Richard Henderson  <rth@redhat.com>
10034         * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
10035         to V16QImode.
10036         (ix86_expand_vec_interleave): New.
10037         (ix86_expand_mul_widen_evenodd): New.
10038         (ix86_expand_mul_widen_hilo): New.
10039         (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
10040         * config/i386/i386.md (u_bool) New code attr.
10041         * config/i386/predicates.md
10042         (nonimmediate_or_const_vector_operand): Remove.
10043         * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
10044         both AVX and SSE4_1.
10045         (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
10046         (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
10047         (vec_widen<s>mult_hi_v8si): Remove.
10048         (vec_widen<s>mult_lo_v8si): Remove.
10049         (vec_widen_smult_hi_v4si): Remove.
10050         (vec_widen_smult_lo_v4si): Remove.
10051         (vec_widen_umult_hi_v4si): Remove.
10052         (vec_widen_umult_lo_v4si): Remove.
10053         (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
10054         (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
10055         * config/i386/i386-protos.h: Update.
10057 2012-06-25  Christophe Lyon  <christophe.lyon@st.com>
10059         * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
10060         (neon_vld1_dup): Restrict to VQ operands.
10061         (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
10063 2012-06-25  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
10064             James Greenhalgh  <james.greenhalgh@arm.com>
10066         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
10067         (TARGET_FMA): New macro.
10068         (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
10069         (TARGET_ARM_ARCH): Likewise.
10070         (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
10071         (TARGET_V6M, TARGET_V7M): Likewise.
10072         (TARGET_ARM_ARCH_PROFILE): Likewise.
10073         (TARGET_ARM_FEATURE_LDREX): Likewise.
10074         (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
10075         (ARM_MIN_ENUM_SIZE): Likewise.
10076         * config/arm/arm.c (arm_file_start): Refactor appropriately.
10077         (base_architecture): New enumeration.
10078         (arm_base_arch): New global variable.
10079         (processors): Add field base_arch.
10080         (ARM_ARCH, ARM_CORE): Adjust accordingly.
10081         (arm_option_override): Add initialization of arm_base_arch.
10082         * doc/cpp.texi (system-specific predefined macros.): Change.
10084 2012-06-25  Jakub Jelinek  <jakub@redhat.com>
10086         PR target/53759
10087         * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
10088         of x x x in the vmovlps load alternative.
10090 2012-06-25  Richard Sandiford  <rdsandiford@googlemail.com>
10092         PR debug/53740
10093         * df.h (dead_debug_add): Remove third argument.
10094         * df-problems.c (dead_debug_add): Likewise.  Use the REGNO of the
10095         REG that we want to replace instead.
10096         (dead_debug_insert_temp): Use the REGNO of the reg that we want
10097         to replace instead of DF_REF_REGNO.  Require there to always be
10098         at least one such use.  Check for cases where the same location
10099         has more than df_ref associated with it.
10100         (df_note_bb_compute): Remove third dead_debug_add argument.
10101         * dce.c (word_dce_process_block): Likewise.
10103 2012-06-25  Steven Bosscher  <steven@gcc.gnu.org>
10105         * config/v850/v850.c: Remove redundant extern declarations for
10106         last_assemble_variable_decl and size_directive_output.
10108         * doc/tm.texi.in: Document JMP_BUF_SIZE.
10109         * doc/tm.texi: Regenerate.
10110         * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
10111         * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
10112         * config/stormy16/stormy16.h: Likewise.
10114         * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
10116         * doc/sourcebuild.texi: Add missing subdirectories.
10118 2012-06-25  Tristan Gingold  <gingold@adacore.com>
10120         * config/i386/i386.h: Fix typo.
10122 2012-06-25  Tristan Gingold  <gingold@adacore.com>
10124         * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
10125         (seh_cfa_adjust_cfa): ... that function.
10126         (seh_emit_stackalloc): Do not emit out of range values.
10127         * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
10128         UNSPEC_DEF_CFA constants.
10129         * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
10130         * config/i386/i386.c (ix86_frame_pointer_required): Required
10131         for very large frames on SEH target.
10132         (ix86_compute_frame_layout): Save area is before frame pointer
10133         on SEH target.  Handle very large frames.
10134         (ix86_expand_prologue): Likewise.
10136 2012-06-24  Steven Bosscher  <steven@gcc.gnu.org>
10138         * output.h: (current_function_is_leaf,
10139         current_function_sp_is_unchanging,
10140         current_function_uses_only_leaf_regs): Remove.
10141         * function.c (current_function_is_leaf,
10142         current_function_sp_is_unchanging,
10143         current_function_uses_only_leaf_regs): Remove.
10144         (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
10145         instead of current_function_uses_only_leaf_regs.
10146         * function.h (struct rtl_data): New fields sp_is_unchanging,
10147         is_leaf, uses_only_leaf_regs.
10148         * resource.c (init_resource_info): Replace current_function_is_leaf,
10149         current_function_sp_is_unchanging, and
10150         current_function_uses_only_leaf_regs with new crtl fields.
10151         * sdbout.c (sdbout_symbol): Likewise.
10152         * df-core.c (rest_of_handle_df_initialize): Likewise.
10153         * ira.c (ira): Likewise.
10154         * final.c (final_start_function): Likewise.
10155         * reorg.c (fill_simple_delay_slots): Likewise.
10156         * regrename.c (check_new_reg_p): Likewise.
10157         * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
10158         (notice_stack_pointer_modification): Likewise.
10159         * dbxout.c (dbxout_symbol): Likewise.
10160         (dbxout_parms): Likewise.
10161         * sel-sched.c (init_regs_for_mode): Likewise.
10162         * dwarf2out.c (dbx_reg_number): Likewise.
10163         (multiple_reg_loc_descriptor): Likewise.
10164         * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
10165         (gen_pop): Likewise.
10166         (ix86_select_alt_pic_regnum): Likewise.
10167         (ix86_compute_frame_layout): Likewise.
10168         (ix86_finalize_stack_realign_flags): Likewise.
10169         (ix86_expand_epilogue): Likewise.
10170         * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
10171         * config/h8300/h8300.c (byte_reg): Likewise.
10172         * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
10173         (c6x_save_reg): Likewise.
10174         (c6x_compute_frame_layout): Likewise.
10175         * config/pa/pa.c (pa_compute_frame_size): Likewise.
10176         (pa_output_function_prologue): Likewise.
10177         * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
10178         * config/sparc/sparc.md (attr "leaf_function"): Likewise.
10179         * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
10180         (sparc_expand_prologue): Likewise.
10181         (sparc_flat_expand_prologue): Likewise.
10182         (sparc_asm_function_prologue): Likewise.
10183         (sparc_output_mi_thunk): Likewise.
10184         (sparc_frame_pointer_required): Likewise.
10185         * config/epiphany/epiphany.c (epiphany_compute_function_type):
10186         Likewise.
10187         (epiphany_compute_frame_size): Likewise.
10188         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
10189         * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
10190         (cris_frame_pointer_required): Likewise.
10191         * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
10192         (tilepro_current_function_is_leaf): Likewise.
10193         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
10194         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
10195         * config/ia64/ia64.c (find_gr_spill): Likewise.
10196         (ia64_compute_frame_size): Likewise.
10197         (ia64_can_eliminate): Likewise.
10198         (ia64_initial_elimination_offset): Likewise.
10199         * config/m68k/m68k.c (m68k_save_reg): Likewise.
10200         (m68k_expand_epilogue): Likewise.
10201         * config/rx/rx.c (rx_get_stack_layout): Likewise.
10202         * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
10203         * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
10204         Likewise.
10205         (picochip_output_frame_debug): Likewise.
10206         * config/sh/sh.c (sh_media_register_for_return): Likewise.
10207         (sh_allocate_initial_value): Likewise.
10208         (sh_output_mi_thunk): Likewise.
10209         * config/microblaze/microblaze.c (microblaze_must_save_register):
10210         Likewise.
10211         (compute_frame_size): Likewise.
10212         (microblaze_initial_elimination_offset): Likewise.
10213         (microblaze_expand_prologue): Likewise.
10214         (microblaze_expand_epilogue): Likewise.
10215         * config/frv/frv.c (frv_expand_epilogue): Likewise.
10216         (frv_frame_pointer_required): Likewise.
10217         * config/spu/spu.c (get_pic_reg): Likewise.
10218         (direct_return): Likewise.
10219         (spu_expand_prologue): Likewise.
10220         (spu_expand_epilogue): Likewise.
10221         (spu_initial_elimination_offset): Likewise.
10222         * config/mips/mips.c (mips_global_pointer): Likewise.
10223         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
10224         (mips_compute_frame_info): Likewise.
10225         * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
10226         (mep_reload_pointer): Likewise.
10227         * config/rl78/rl78.c (need_to_save): Likewise.
10228         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
10229         * config/score/score.c (score_compute_frame_size): Likewise.
10230         (score_function_prologue): Likewise.
10231         * config/bfin/bfin.c (must_save_p): Likewise.
10232         (expand_prologue_reg_save): Likewise.
10233         (expand_epilogue_reg_restore): Likewise.
10234         (bfin_frame_pointer_required): Likewise.
10235         (n_regs_saved_by_prologue): Likewise.
10236         (add_to_reg): Likewise.
10237         (expand_interrupt_handler_prologue): Likewise.
10238         (expand_interrupt_handler_epilogue): Likewise.
10239         (bfin_expand_prologue): Likewise.
10240         * config/avr/avr.c (avr_regs_to_save): Likewise.
10241         (avr_prologue_setup_frame): Likewise.
10242         (expand_epilogue): Likewise.
10243         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
10244         (s390_register_info): Likewise.
10245         (s390_frame_info): Likewise.
10246         (s390_init_frame_layout): Likewise.
10247         (s390_emit_prologue): Likewise.
10250 2012-06-24  Steven Bosscher  <steven@gcc.gnu.org>
10252         * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
10253         * vmsdbgout: Do not undefine it if defined.
10254         Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
10255         * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
10256         * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
10258 2012-06-24  Richard Sandiford  <rdsandiford@googlemail.com>
10260         * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
10262 2012-06-23  Richard Henderson  <rth@redhat.com>
10264         PR target/53749
10265         * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
10266         V*QImode shifts and multiply.
10267         (ix86_expand_vecop_qihi): Support shifts.
10268         * config/i386/i386.md (any_shift): New code iterator.
10269         * config/i386/sse.md (ashlv16qi3): Merge ...
10270         (<any_shiftrt>v16qi3): ... into ...
10271         (<any_shift><VI1_AVX2>3): ... here.  Use ix86_expand_vecop_qihi
10272         to support SSE and AVX.
10274         * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
10275         parameter into src and dest.
10276         * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
10277         (vec_unpacks_hi_<V124_AVX2>): Likewise.
10278         (vec_unpacku_lo_<V124_AVX2>): Likewise.
10279         (vec_unpacks_lo_<V124_AVX2>): Likewise.
10280         * config/i386/i386-protos.h: Update.
10282         * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
10283         pure expander; move expansion code ...
10284         * config/i386/i386.c (ix86_expand_vecop_qihi): ... here.  New function.
10285         * config/i386/i386-protos.h: Update.
10287 2012-06-22  Edmar Wienskoski  <edmar@freescale.com>
10289         * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
10290         (popcntb<mode>2): Add attribute type popcnt.
10291         (popcntd<mode>2): Ditto.
10292         * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
10293         * config/rs6000/power5.md (define_insn_reservation): Ditto.
10294         * config/rs6000/power7.md (define_insn_reservation): Ditto.
10295         * config/rs6000/476.md (define_insn_reservation): Ditto.
10296         * config/rs6000/power6.md (define_insn_reservation): New
10297         reservation for popcnt instructions.
10299 2012-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10301         * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
10303 2012-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10305         PR target/53383
10306         * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
10308         * config/i386/i386.c (ix86_option_override_internal): Allow
10309         -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
10311         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
10312         if SSE is disabled.
10314 2012-06-22  Bill Schmidt  <wschmidt@linux.ibm.com>
10316         * double-int.c (double_int_multiple_of): New function.
10317         * double-int.h (double_int_multiple_of): New decl.
10318         * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
10319         (mbc_entry_hash): New forward decl.
10320         (mbc_entry_eq): Likewise.
10321         (zero_cost): Change to no_cost.
10322         (mult_costs): New static var.
10323         (cost_tables_exist): Likewise.
10324         (initialize_costs): New function.
10325         (finalize_costs): Likewise.
10326         (tree_ssa_iv_optimize_init): Call initialize_costs.
10327         (add_cost): Change to add_regs_cost; distinguish costs by speed.
10328         (multiply_regs_cost): New function.
10329         (add_const_cost): Likewise.
10330         (extend_or_trunc_reg_cost): Likewise.
10331         (negate_reg_cost): Likewise.
10332         (multiply_by_cost): Change to multiply_by_const_cost; distinguish
10333         costs by speed.
10334         (get_address_cost): Change add_cost to add_regs_cost; change
10335         multiply_by_cost to multiply_by_const_cost.
10336         (force_expr_to_var_cost): Change zero_cost to no_cost; change
10337         add_cost to add_regs_cost; change multiply_by_cost to
10338         multiply_by_const_cost.
10339         (split_cost): Change zero_cost to no_cost.
10340         (ptr_difference_cost): Likewise.
10341         (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
10342         to multiply_by_const_cost.
10343         (get_computation_cost_at): Change add_cost to add_regs_cost; change
10344         multiply_by_cost to multiply_by_const_cost.
10345         (determine_use_iv_cost_generic): Change zero_cost to no_cost.
10346         (determine_iv_cost): Change add_cost to add_regs_cost.
10347         (iv_ca_new): Change zero_cost to no_cost.
10348         (tree_ssa_iv_optimize_finalize): Call finalize_costs.
10349         * tree-ssa-address.c (most_expensive_mult_to_index): Change
10350         multiply_by_cost to multiply_by_const_cost.
10351         * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
10352         (add_regs_cost): New decl.
10353         (multiply_regs_cost): Likewise.
10354         (add_const_cost): Likewise.
10355         (extend_or_trunc_reg_cost): Likewise.
10356         (negate_reg_cost): Likewise.
10358 2012-06-22  Richard Guenther  <rguenther@suse.de>
10360         Merge from graphite branch
10361         2011-08-10  Sebastian Pop <sebpop@gmail.com>
10363         * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
10365         2012-01-13  Tobias Grosser  <tobias@grosser.es>
10367         * tree-flow.h (parallelized_function_p): Declare.
10368         * tree-parloops.c (parallelized_function_p): Export.
10369         * graphite.c (graphite_transform_loops): Do not run graphite on
10370         already parallel functions.
10372 2012-06-22  Alan Modra  <amodra@gmail.com>
10374         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
10375         return mem.  Convert to indirect addressing if not indirect or
10376         indexed.  Adjust all callers.
10378 2012-06-22  Richard Guenther  <rguenther@suse.de>
10380         * gcov-iov.c: Include bconfig.h and system.h.
10382 2012-06-22  Andreas Schwab  <schwab@linux-m68k.org>
10384         * doc/include/texinfo.tex: Update to version 2012-06-05.14.
10386 2012-06-22  Richard Guenther  <rguenther@suse.de>
10388         PR gcov-profile/53744
10389         * gcov-iov.c (main): Treat "" and "prerelease" the same.
10391 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
10393         PR debug/53704
10394         * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
10395         for GNU Fortran if in strict DWARF2 mode.
10397 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
10399         * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
10400         DECL_IGNORED_P non-reg vars even if they are used.
10402 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
10404         PR debug/53671
10405         PR debug/49888
10406         * var-tracking.c (vt_get_canonicalize_base): New.
10407         (vt_canonicalize_addr, vt_stack_offset_p): New.
10408         (vt_canon_true_dep): New.
10409         (drop_overlapping_mem_locs): Use vt_canon_true_dep.
10410         (clobber_overlaping_mems): Use vt_canonicalize_addr.
10412 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
10414         PR debug/53671
10415         PR debug/49888
10416         * var-tracking.c (vt_initialize): Record initial offset between
10417         arg pointer and stack pointer.
10419 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
10421         PR debug/53671
10422         PR debug/49888
10423         * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
10424         CFA base.
10426 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
10428         PR debug/53671
10429         PR debug/49888
10430         * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
10432 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
10434         * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
10436 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
10438         PR debug/53682
10439         * cselib.c (promote_debug_loc): Don't crash on NULL argument.
10441 2012-06-21  Meador Inge  <meadori@codesourcery.com>
10443         PR c/53702
10444         * c-decl.c (c_push_function_context): Restore the behavior to reuse
10445         the language function allocated for -Wunused-local-typedefs.
10446         (c_pop_function_context): If necessary, clear the language function
10447         created in c_push_function_context.  Always clear out the
10448         x_cur_stmt_list field of the restored language function.
10450 2012-06-21  Sterling Augustine  <saugustine@google.com>
10451             Cary Coutant  <ccoutant@google.com>
10453         * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
10454         add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
10455         (comdat_type_struct): New field 'skeleton_die'.
10456         (breakout_comdat_types): Update it.
10457         (add_pubname): Rework logic.  Call is_class_die, is_cu_die and
10458         is_namespace_die.  Fix minor style violation.  Call want_pubnames.
10459         (add_pubname_string): Call want_pubnames.
10460         (add_pubtype): Rework logic for calculating type name.  Call
10461         is_namespace_die.  Call want_pubnames.
10462         (output_pubnames): Move conditional logic deciding when to produce the
10463         section from dwarf2out_finish.  Use new skeleton_die field.
10464         (base_type_die): Call add_pubtype.
10465         (gen_enumeration_type_die): Unconditionally call add_pubtype.
10466         (gen_subprogram_die): Adjust calls to add_pubname.
10467         (gen_namespace_die): Call add_pubname_string.
10468         (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
10469         produce pubnames and pubtypes sections to output_pubnames.
10470         * common.opt (-gpubnames): New option.
10471         * doc/invoke.texi: Document it.
10473 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
10475         * config/m32c/m32c-pragma.c: Remove unnecessary includes.
10477 2012-06-21  Michael Matz  <matz@suse.de>
10479         PR middle-end/53688
10480         * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
10481         with correct size.
10483 2012-06-21  Richard Guenther  <rguenther@suse.de>
10485         * tree-inline.c (estimate_num_insns): Estimate call cost for
10486         tailcalls properly.
10488 2012-06-20  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
10490         * tree.h (DECL_SOURCE_COLUMN): New accessor.
10492 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
10494         * config/i386/i386.md (SINCOS): New int iterator.
10495         (sincos): New int attribute.
10496         (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
10497         SINCOS int iterator.
10498         (*<sincos>_extend<mode>xf2_i387): Macroize insn from
10499         *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
10501 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
10503         * config/i386/i386.md (RDFSGSBASE): New int iterator.
10504         (WRFSGSBASE): Ditto.
10505         (fsgs): New int attribute.
10506         (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
10507         RDFSGSBASE int iterator.
10508         (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
10509         WRFSGSBASE int iterator.
10511 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
10513         * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
10514         from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
10515         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
10516         from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
10517         int iterator.
10519 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
10521         * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
10523 2012-06-20  Richard Guenther  <rguenther@suse.de>
10525         PR tree-optimization/30318
10526         * tree-vrp.c (range_int_cst_p): Do not reject overflowed
10527         constants here.
10528         (range_int_cst_singleton_p): But explicitely here.
10529         (zero_nonzero_bits_from_vr): And here.
10530         (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
10531         to cover all cases we can perform arbitrary precision
10532         arithmetic with double-ints.
10533         (intersect_ranges): Handle adjacent anti-ranges.
10535 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
10537         * config/i386/i386.md (rounding_insn): New int attribute.
10538         (<rounding_insn>xf2): Macroize insn from
10539         {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
10540         (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
10542 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
10544         * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
10545         (ieee_maxmin): New int attribute.
10546         (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
10547         *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
10549 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
10551         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
10552         * config/arm/arm.c: Do not include c-pragma.h.
10553         (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
10554         (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
10555         to arm_emit_eabi_attribute.
10556         * arm-c.c: Do not include output.h.
10557         (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
10558         call to arm_emit_eabi_attribute.
10559         * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
10561 2012-06-20  Richard Guenther  <rguenther@suse.de>
10563         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10564         Allow adjusting alignment of user-aligned decls again.
10566 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
10568         * config/rl78/rl78-c.c: Remove unnecessary includes.
10570 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
10572         * config/cris/cris.c: Include cgraph.h.
10573         (cris_option_override): Do not set non-existing flag_no_gcc_ident.
10575 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
10577         * emit-rtl.c (need_atomic_barrier_p): New function.
10578         * emit-rtl.h (need_atomic_barrier_p): Declare it.
10579         * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
10580         * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
10581         * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
10582         * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
10583         (mips_process_sync_loop): Use generic version instead.
10585 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
10587         * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
10588         it is used.
10590 2012-06-19  Tom de Vries  <vries@codesourcery.com>
10591             Maxim Kuvyrkov  <maxim@codesourcery.com>
10593         * config/mips/constraints.md (ZR): New constraint.
10594         * config/mips/predicates.md (mem_noofs_operand): New predicate.
10595         * config/mips/mips.c (mips_print_operand): Handle new print modifier.
10596         * config/mips/mips.h (TARGET_XLP): Define.
10597         (TARGET_SYNC_AFTER_SC): Update.
10598         (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
10599         * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
10600         XLP-specific swap and ldadd patterns.
10601         (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
10603 2012-06-19  Tom de Vries  <vries@codesourcery.com>
10604             Maxim Kuvyrkov  <maxim@codesourcery.com>
10606         * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
10607         (mips_emit_post_atomic_barrier_p): New static functions.
10608         (mips_process_sync_loop): Use them.  Emit sync memory barriers in
10609         accordance with memory model semantics.  Add return of CMP result for
10610         compare_and_swap.
10611         * config/mips/mips.md: Update comment.
10612         (sync_cmp): New attribute.
10613         (sync_memmodel): New attribute replacing sync_release_barrier.
10614         * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
10615         (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
10616         (sync_lock_test_and_set, test_and_set_12): Update.
10617         (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
10618         (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
10620 2012-06-19  Joseph Myers  <joseph@codesourcery.com>
10622         * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
10623         mov_si<mode>_e500_subreg0.
10624         (*mov_si<mode>_e500_subreg0_elf_low)
10625         (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
10627 2012-06-19  Richard Henderson  <rth@redhat.com>
10629         * config/alpha/alpha.c: Include params.h.
10630         (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
10631         PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
10633 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
10635         * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
10636         TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
10637         (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
10638         Remove.
10639         * doc/tm.texi: Regenerate.
10640         * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
10641         .objc_class_name_*.
10642         * config/darwin-c.c: Include target.h.
10643         (darwin_objc_declare_unresolved_class_reference): New function.
10644         (darwin_objc_declare_class_definition): New function.
10645         (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
10646         (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
10648 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
10650         * target.def (output_ident): New hook.
10651         * targhooks.h (default_asm_output_ident_directive): Add prototype.
10652         * varasm.c (assemble_asm): Only prefix a tab if the string does not
10653         already start with one.
10654         (default_asm_output_ident_directive): New function to emit
10655         .ident as a top-level asm node while parsing, or directly to
10656         asm_out_file after parsing.
10657         * toplev.c (compile_file): Print a GCC .ident with
10658         targetm.asm_out.output_ident.
10659         * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
10660         (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
10661         * doc/tm.texi: Update.
10663         * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
10664         (TARGET_ASM_OUTPUT_IDENT): Define.
10665         * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
10666         * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
10667         * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
10668         * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
10669         (TARGET_ASM_OUTPUT_IDENT): Define.
10670         * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
10671         (TARGET_ASM_OUTPUT_IDENT): Define.
10673         * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
10674         * config/cris/cris.c (cris_asm_output_ident): New function.
10675         * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
10677         * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
10678         Add prototype.
10679         * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
10680         (microblaze_asm_output_ident): Rewrite to work similar to
10681         default_asm_output_ident_directive for front-end .idents.
10682         * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
10683         (TARGET_ASM_OUTPUT_IDENT): Define.
10685         * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
10686         * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
10688         * config/rx/rx.c: Include cgraph.h for add_asm_node.
10689         (rx_asm_output_ident): New function, similar to
10690         default_asm_output_ident_directive, but handle AS100 syntax also, so
10691         that #ident also works for rx in AS100 syntax.
10692         (TARGET_ASM_OUTPUT_IDENT): Define.
10693         * config/rx/rx.h (IDENT_ASM_OP): Remove.
10695         * Makefile.in: Fix dependencies for c-family/c-lex.o.
10697 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
10699         * config/i386/i386.md (FIST_ROUNDING): New int iterator.
10700         (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
10701         (ROUNDING): Ditto.
10702         (*fist<mode>2_<rounding>_1): Macroize insn from
10703         *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
10704         (fistdi2_<rounding>): Macroize insn from
10705         fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
10706         (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
10707         corresponding splitters from fistdi2_{floor,ceil} and corresponding
10708         splitters using FIST_ROUNDING int iterator.
10709         (fist<mode>2_<rounding>): Macroize insn from
10710         fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
10711         (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
10712         corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
10713         splitters using FIST_ROUNDING int iterator.
10714         (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
10715         using FIST_ROUNDING int iterator.
10717 2012-06-19  Richard Henderson  <rth@redhat.com>
10719         * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
10720         * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
10721         * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
10722         * config/i386/sse.md (sse2_mulv4si3): Delete.
10723         (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
10724         nonimmediate_or_const_vector_operand.
10726 2012-06-19  Richard Henderson  <rth@redhat.com>
10728         * expmed.c (struct init_expmed_rtl): Split ...
10729         (init_expmed_one_mode): ... out of ...
10730         (init_expmed): ... here.  Initialize integer vector modes also.
10731         (synth_mult): Handle integer vector modes.
10732         (choose_mult_variant): Likewise.
10733         (expand_mult_const): Likewise.
10734         (expand_mult): Likewise.
10735         * machmode.h (GET_MODE_UNIT_BITSIZE): New.
10737 2012-06-19  Richard Henderson  <rth@redhat.com>
10739         * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
10740         integral vector modes.
10742 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
10744         * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
10745         (rounding): New int attribute.
10746         (ROUNDING): Ditto.
10747         (frndintxf2_<rounding>): Macroize insn from
10748         frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
10749         (frndintxf2_<rounding>_i387): Macroize insn from
10750         frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
10752 2012-06-19  Richard Guenther  <rguenther@suse.de>
10754         * tree-vrp.c (union_ranges): New function.
10755         (vrp_meet_1): Use union_ranges.
10756         (vrp_meet): Dump what we union and call vrp_meet_1.
10758 2012-06-19  Richard Earnshaw  <rearnsha@arm.com>
10760         * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
10761         (attr type): Remove fmul, ffmul, farith, ffarith, float_em
10762         f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
10763         (attr write_conflict, attr core_cycles): Update.
10764         * arm-generic.md (r_mem_f_wbuf): Delete reservation.
10766 2012-06-19  Richard Guenther  <rguenther@suse.de>
10768         * tree-vrp.c (intersect_ranges): Handle more cases.
10769         (vrp_intersect_ranges): Dump what we intersect and call ...
10770         (vrp_intersect_ranges_1): ... this.
10772 2012-06-19  Richard Guenther  <rguenther@suse.de>
10774         PR tree-optimization/53708
10775         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
10776         user-supplied alignment and alignment of decls with the used
10777         attribute.
10779 2012-06-18  Lawrence Crowl  <crowl@google.com>
10781         * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
10782         (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
10783         (TV_PHASE_STREAM_IN): New.
10784         (TV_PHASE_STREAM_OUT): New.
10785         * timevar.c (validate_phases): New.
10786         (timevar_print): Call validate_phases.
10787         * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
10788         to TV_PHASE_OPT_GEN.
10789         * langhooks.c (write_global_declarations): Rename use of
10790         TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN.  Use TV_PHASE_DBGINFO instead of
10791         TV_PHASE_CHECK_DBGINFO.
10792         * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
10793         TV_PHASE_LATE_ASM.  Move start of TV_PHASE_LATE_ASM to after call to
10794         lang_hooks.decls.final_write_globals.
10796 2012-06-18  David Edelshn  <dje.gcc@gmail.com>
10798         * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
10800 2012-06-18  Uros Bizjak  <ubizjak@gmail.com>
10802         PR target/53712
10803         * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
10804         (*sse4_2_pcmpistr_unaligned): New.
10806 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
10807             Sameera Deshpande  <sameera.deshpande@arm.com>
10808             Greta Yorsh  <greta.yorsh@arm.com>
10810         * config/arm/arm-protos.h (arm_output_epilogue): Remove.
10811         * config/arm/arm.c (print_multi_reg): Remove.
10812         (vfp_output_fldmd): Likewise.
10813         (arm_output_epilogue): Likewise.
10814         * config/arm/arm.md (epilogue_insns): Update condition and code.
10816 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
10817             Sameera Deshpande  <sameera.deshpande@arm.com>
10818             Greta Yorsh  <greta.yorsh@arm.com>
10820         * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
10821         * config/arm/arm.c (thumb2_expand_return): New function.
10822         * config/arm/arm.md (return): Update condition and code.
10824 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
10825             Sameera Deshpande  <sameera.deshpande@arm.com>
10826             Greta Yorsh  <greta.yorsh@arm.com>
10828         * config/arm/arm-protos.h (output_return_instruction): New parameter
10829         and int to bool change of parameter types.
10830         * config/arm/arm.c (output_return_instruction): Likewise.
10831         * config/arm/arm.md (arm_simple_return): New pattern.
10832         (arm_return, cond_return, cond_return_inverted): Add new arguments.
10833         * config/arm/thumb2.md (thumb2_return): Update condition and code.
10835 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
10836             Sameera Deshpande  <sameera.deshpande@arm.com>
10837             Greta Yorsh  <greta.yorsh@arm.com>
10839         * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
10840         * config/arm/arm.c (arm_expand_epilogue): New function.
10841         * config/arm/arm.md (epilogue): Update condition and code.
10842         (sibcall_epilogue): Likewise.
10844 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
10845             Sameera Deshpande  <sameera.deshpande@arm.com>
10846             Greta Yorsh  <greta.yorsh@arm.com>
10848         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
10849         * config/arm/arm.md (arm_addsi3) Add an alternative.
10851 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
10852             Sameera Deshpande  <sameera.deshpande@arm.com>
10853             Greta Yorsh  <greta.yorsh@arm.com>
10855         * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
10856         * config/arm/predicates.md (pop_multiple_fp) New special predicate.
10857         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
10859 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
10860             Sameera Deshpande  <sameera.deshpande@arm.com>
10861             Greta Yorsh  <greta.yorsh@arm.com>
10863         * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
10864         (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
10865         (pop_multiple_with_return, ldr_with_return) Likewise.
10866         * config/arm/predicates.md (pop_multiple_return) New special predicate.
10867         * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
10868         * config/arm/arm.c (arm_output_multireg_pop) New function.
10869         (arm_emit_multi_reg_pop): New function.
10871 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
10873         * config/arm/arm.c (ldm_stm_operation_p): Require SP
10874         as base register for loads if SP is in the register list.
10876 2012-06-18  Richard Guenther  <rguenther@suse.de>
10878         PR tree-optimization/53693
10879         * tree-vect-patterns.c (vect_operation_fits_smaller_type):
10880         Reject operands with more than one use.
10882 2012-06-18  Bill Schmidt  <wschmidt@linux.ibm.com>
10884         PR tree-optimization/53703
10885         * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
10886         correctly set bb_for_def[12].
10888 2012-06-18  Steven Bosscher  <steven@gcc.gnu.org>
10890         * config/vax/vax.h (VMS_TARGET): Remove.
10892 2012-06-18  Richard Guenther  <rguenther@suse.de>
10894         * tree-vrp.c (extract_range_from_assert): Split out range
10895         intersecting code.
10896         (intersect_ranges): New function.
10897         (vrp_intersect_ranges): Likewise.
10899 2012-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10901         * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
10902         r187965.
10904 2012-06-18  Tejas Belagod  <tejas.belagod@arm.com>
10906         * doc/md.texi: Document int iterators.
10907         * read-rtl.c (ints): New iterator group.
10908         (find_int): Int iterator group callback.
10909         (apply_int_iterator): Likewise.
10910         (apply_iterators): Traverse int iterator table and add all the used
10911         iterators to list.
10912         (initialize_iterators): Initialize data structures and callbacks for
10913         int iterators.
10914         (read_rtx): Parse and read mappings for int iterators.
10915         (read_rtx_code): Record int iterator usage.
10917 2012-06-18  Richard Sandiford  <rdsandiford@googlemail.com>
10919         PR middle-end/53698
10920         * expr.c (expand_expr_addr_expr_1): Convert to tmode before
10921         performing an addition.
10923 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
10925         * output.h (split_double): Move prototype to rtl.h.
10926         (constructor_static_from_elts_p): Move prototype to tree.c.
10927         * rtl.h (split_double): Moved here from output.h.
10928         * tree.h (constructor_static_from_elts_p): Moved here from output.h.
10929         * final.c (split_double): Move from here ...
10930         * rtlanal.c (split_double): ... to here.
10931         * expr.c: Do not include output.h.
10933 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
10935         * cfglayout.h: Remove.
10936         * cfglayout.c: Remove.
10937         * function.h (struct function): Remove x_last_location field.
10938         * function.c: Do not include cfglayout.h.
10939         (expand_function_start): Do not call no-op force_next_line_note.
10940         (expand_function_end): Likewise.
10941         * cfgrtl.c: Do not include cfglayout.h.  Include gt-cfgrtl.h.
10942         (unlink_insn_chain): Moved here from cfglayout.c.
10943         (skip_insns_after_block, label_for_bb, record_effective_endpoints,
10944         into_cfg_layout_mode, outof_cfg_layout_mode,
10945         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
10946         relink_block_chain, fixup_reorder_chain, verify_insn_chain,
10947         fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
10948         cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
10949         cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
10950         cfg_layout_finalize): Likewise.
10951         (rtl_can_remove_branch_p): Likewise.
10952         * rtl.h (insn_scope): Move prototype from cfglayout.h here.
10953         (duplicate_insn_chain): Likewise.
10954         (force_next_line_note): Remove prototype.
10955         * emit-rtl.c: Do not include tree-flow.h, egad.  Include vecprim.h.
10956         (last_location): Remove #define to emit.x_last_location.
10957         (force_next_line_note): Remove no-op function.
10958         (init_emit): Don't set x_last_location.
10959         (block_locators_locs, block_locators_blocks, locations_locators_locs,
10960         locations_locators_vals, prologue_locator, epilogue_locator,
10961         curr_location, last_location, curr_block, last_block, curr_rtl_loc):
10962         Move POD to here from cfglayout.c.
10963         (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
10964         set_curr_insn_source_location, get_curr_insn_source_location,
10965         set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
10966         locator_scope, insn_scope, locator_location, locator_line, insn_line,
10967         locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
10968         * cfghooks.h: Remove double-include protection.
10969         (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
10970         * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
10971         * final.c: Do not include cfglayout.h.
10972         (choose_inner_scope, change_scope): Move to here from cfglayout.c.
10973         (reemit_insn_block_notes): Likewise.  Make static.
10974         * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
10975         operation_could_trap_p, tree_could_throw_p): Move from here...
10976         * tree.h: ... to here.
10977         * gengtype.c (open_base_files): Remove cfglayout.h from the list.
10978         * profile.c: Do not include cfghooks.h.
10979         * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
10980         * modulo-sched.c: Likewise.
10981         * loop-unswitch.c: Do not include cfglayout.h.
10982         * sched-ebb.c: Likewise.
10983         * tracer.c: Likewise.
10984         * ddg.c: Likewise.
10985         * tree-vect-loop-manip.c: Likewise.
10986         * loop-init.c: Likewise.
10987         * dwarf2out.c: Likewise.
10988         * hw-doloop.c: Likewise.
10989         * loop-unroll.c: Likewise.
10990         * cfgcleanup.c: Likewise.
10991         * bb-reorder.c: Likewise.
10992         * sched-rgn.c: Likewise.
10993         * tree-cfg.c: Likewise.
10994         * config/alpha/alpha.c: Likewise.
10995         * config/spu/spu.c: Likewise.
10996         * config/sparc/sparc.c: Likewise.
10997         * config/sh/sh.c: Likewise.
10998         * config/c6x/c6x.c: Likewise.
10999         * config/ia64/ia64.c: Likewise.
11000         * config/rs6000/rs6000.c: Likewise.
11001         * config/score/score.c: Likewise.
11002         * config/mips/mips.c: Likewise.
11003         * config/bfin/bfin.c: Likewise.
11004         * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
11005         * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
11006         * config/spu/t-spu-elf (spu.o: $): Likewise.
11007         * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
11009 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
11011         * cfgloop.h: Do not include rtl.h.
11012         (enum iv_extend_code): New.
11013         (struct rtx_iv): Use iv_extend_code instead of rtx_code.
11014         * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
11015         * loop-iv.c (iv_extend_to_rtx_code): New function to translate
11016         an IV_EXTEND_CODE to an RTX_CODE.
11017         (dump_iv_info): Update for rtx_iv field type change.
11018         (iv_constant): Likewise.
11019         (iv_subreg): Likewise.
11020         (iv_extend): Likewise.
11021         (iv_neg): Likewise.
11022         (iv_add): Likewise.
11023         (iv_mult): Likewise.
11024         (iv_shift): Likewise.
11025         (get_biv_step_1): Likewise.
11026         (get_biv_step): Likewise.
11027         (iv_analyze_biv): Likewise.
11028         (get_iv_value): Likewise.
11029         (shorten_into_mode): Likewise.
11030         (canonicalize_iv_subregs): Likewise.
11031         * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
11032         of MAY_HAVE_DEBUG_INSNS.
11033         * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
11034         * tree-ssa-loop-prefetch.c: Likewise.
11036 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
11038         * expmed.c (ceil_log2): Move from here...
11039         * hwint.c: ... to here for older GCCs...
11040         * hwint.h: ... and here for newer GCCs.
11041         * rtl.h (ceil_log2): Remove prototype.
11043         * tree-phinodes.c: Do not include rtl.h.
11044         * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
11046 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
11048         * config/cris/cris.h (TARGET_ELF): Remove.
11049         (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
11050         (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
11051         (LOCAL_LABEL_PREFIX): Likewise.
11052         * config/cris/cris.c (cris_target_asm_named_section): Remove.
11053         (cris_option_override): Simpify using TARGET_ELF==1.
11054         (cris_file_start): Likewise.
11055         * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
11057 2012-06-17  Uros Bizjak  <ubizjak@gmail.com>
11059         * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
11061 2012-06-16  Eric Botcazou  <ebotcazou@adacore.com>
11063         PR middle-end/53590
11064         * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
11066 2012-06-15  Easwaran Raman  <eraman@google.com>
11068         * passes.c (init_optimization_passes): Remove pass_call_cdce
11069         from its current position and insert after pass_dce.
11071 2012-06-15  Walter Lee  <walt@tilera.com>
11073         * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
11075 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
11077         * arm.c (note_invalid_constants): Don't return a result.
11078         (arm_memory_load_p): Delete function.
11079         (arm_const_double_rtx): Delete iterator variable i;
11080         (fp_immediate_constant): Likewise.
11081         (fp_const_from_val): Likewise.
11083         * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
11085 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
11087         PR c++/51033
11088         * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
11089         * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
11091 2012-06-15  Georg-Johann Lay  <avr@gjlay.de>
11093         * config/avr/avr.c (avr_default_expand_builtin): New function.
11094         (avr_expand_builtin): Use it.
11095         (avr_expand_unop_builtin): Remove.
11096         (avr_expand_binop_builtin): Remove.
11097         (avr_expand_triop_builtin): Remove.
11099 2012-06-15  Michael Matz  <matz@suse.de>
11101         PR middle-end/38474
11102         * cfgexpand.c (add_alias_set_conflicts): Remove.
11103         (expand_used_vars): Don't call it.
11104         (aggregate_contains_union_type): Remove.
11105         * function.c (n_temp_slots_in_use): New static data.
11106         (make_slot_available, assign_stack_temp_for_type): Update it.
11107         (init_temp_slots): Zero it.
11108         (remove_unused_temp_slot_addresses): Use it for quicker removal.
11109         (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
11111 2012-06-15  Michael Matz  <matz@suse.de>
11113         * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
11114         argument, don't emit assign statement if value is directly usable.
11115         (gimplify_expr): Adjust.
11117 2012-06-15  Michael Matz  <matz@suse.de>
11119         * gimplify.c (gimplify_modify_expr): Fold generated statements.
11120         * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
11122 2012-06-15  Richard Guenther  <rguenther@suse.de>
11124         * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
11125         predicates to set VR_UNDEFINED and VR_VARYING.  Drop a case
11126         we assert for in set_value_range to VR_VARYING.
11128 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
11130         * arm.md (addsf3, adddf3): Use s_register_operand.
11131         (subsf3, subdf3): Likewise.
11132         (mulsf3, muldf3): Likewise.
11133         (difsf3, divdf3): Likewise.
11134         (movsfcc, movdfcc): Likewise.
11135         * predicates.md (f_register_operand): Delete.
11136         (arm_float_rhs_operand): Delete.
11137         (arm_float_add_operand): Delete.
11138         (arm_float_compare_operand): Use s_register_operand when
11139         there's no VFP.
11140         (cirrus_register_operand): Delete.
11141         (cirrus_fp_register): Delete.
11142         (cirrus_shift_const): Delete.
11143         (cmpdi_operand): Remove Maverick support.
11144         * constraints.md (f, v, H): Delete constraints.
11145         (G): Update documentation.
11146         * arm.c (fp_consts_inited): Convert to bool.
11147         (strings_fp): Delete.
11148         (values_fp): Delete.
11149         (value_fp0): New variable.
11150         (init_fp_table): Simplify logic.
11151         (arm_const_double_rtx): Likewise.
11152         (fp_immediate_constant): Likewise.
11153         (fp_const_from_val): Likewise.
11154         (neg_const_double_rtx_ok_for_fpa): Delete.
11155         * doc/md.texi (ARM constraints): Update documentation.
11157 2012-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
11159         PR tree-optimization/53636
11160         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
11161         stride when doing basic-block vectorization.
11163 2012-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11165         * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
11166         into VEC_PERM_EXPR.
11168 2012-06-15  Jakub Jelinek  <jakub@redhat.com>
11170         * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
11171         allocate and free bbs array for the SLP case.
11173         PR tree-optimization/51581
11174         * expr.h (choose_multiplier): New prototype.
11175         * expmed.c (choose_multiplier): No longer static.
11176         Change multiplier_ptr from rtx * to UHWI *.
11177         (expand_divmod): Adjust callers.
11178         * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
11179         (vect_recog_divmod_pattern): ... this.  Pass bb_vinfo as last
11180         argument to new_stmt_vec_info.  Attempt to optimize also divisions
11181         by non-pow2 constants if integer vector division isn't supported.
11182         * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
11183         don't look at pattern stmts and sequences.
11185 2012-06-15  Eric Botcazou  <ebotcazou@adacore.com>
11187         PR middle-end/53590
11188         * common.opt (-fdelete-dead-exceptions): New switch.
11189         * doc/invoke.texi (Code Gen Options): Document it.
11190         * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
11191         insn_could_throw_p predicate.  Do not skip an insn that could throw
11192         if dead exceptions can be deleted.
11193         (insn_live_p): Likewise, do not return true in that case.
11194         * dce.c (can_alter_cfg): New flag.
11195         (deletable_insn_p): Do not return false for an insn that can throw if
11196         the CFG can be altered and dead exceptions can be deleted.
11197         (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
11198         * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
11199         predicate. Do not preserve an insn that could throw if dead exceptions
11200         can be deleted.
11201         * function.h (struct function): Add can_delete_dead_exceptions flag.
11202         * function.c (allocate_struct_function): Set it.
11203         * lto-streamer-in.c (input_struct_function_base): Stream it.
11204         * lto-streamer-out.c (input_struct_function_base): Likewise.
11205         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
11206         statement that could throw as necessary if dead exceptions can be
11207         deleted.
11209 2012-06-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
11211         * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
11213 2012-06-14  Oleg Endo  <olegendo@gcc.gnu.org>
11215         PR target/53568
11216         * config/sh/sh.md: Add peephole for swapbsi2.
11217         (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
11219 2012-06-14  Uros Bizjak  <ubizjak@gmail.com>
11221         * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
11222         (*zero_extendsidi2_rex64): Ditto.  Remove isa attribute.
11224 2012-06-14  Jakub Jelinek  <jakub@redhat.com>
11226         PR target/53639
11227         * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
11229 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
11231         * arm.c (arm_cirrus_insn_p): Delete.
11232         (cirrus_reorg): Delete.
11233         (arm_reorg): Don't call cirrus_reorg.
11234         (arm_final_prescan_insn_p): Don't check for cirrus insns.
11235         * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
11236         (adddi3, subdi3): Remove Maverick support.
11237         (arm_adddi3): Likewise.
11238         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
11239         (addsf3, adddf3): Likewise.
11240         (subsf3, subdf3): Likewise.
11241         (mulsf3, muldf3): Likewise.
11242         (ashldi3, ashrdi3, lshrdi3): Likewise.
11243         (floatsisf2, floatsidf2): Likewise.
11244         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
11245         (arm_movdi, thumb1_movdi_insn): Likewise.
11246         (arm_cmpdi_insn): Likewise.
11247         (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
11248         (cirrus.md): Don't include.
11249         * cirrus.md: Delete file.
11250         * t-arm (MD_INCLUDES): Remove cirrus.md.
11252 2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
11254         * dwarf2out.c (function_possibly_abstracted_p): New static function.
11255         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
11256         cgraph_function_possibly_inlined_p.
11257         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
11258         (process_scope_var): Do not emit concrete instances of abstracted
11259         nested functions from here.
11260         (gen_decl_die): Emit the abstract instance if the function is possibly
11261         abstracted and not only possibly inlined.
11262         (dwarf2out_finish): Find the first non-abstract parent instance and
11263         attach concrete instances on the limbo list to it.
11265 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
11267         * arm.md (divsf3, divdf3): Remove FPA support.
11268         (negsf2, negdf2): Likewise.
11269         (sqrtsf2, sqrtdf2): Likewise.
11270         (movdfcc): Likewise.
11271         (modsf3, moddf3, movxf): Delete.
11272         (push_fp_multi): Delete.
11273         (fpa.md): Don't include it.
11274         * fpa.md: Delete file.
11275         * t-arm (MD_INCLUDES): Remove fpa.md.
11277 2012-06-14  Bill Schmidt  <wschmidt@linux.ibm.com>
11279         * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
11280         (cost_for_stmt): Remove decl.
11281         (vect_get_single_scalar_iteration_cost): Correct typo in name.
11282         * tree-vect-loop.c (vect_get_cost): Remove.
11283         (vect_get_single_scalar_iteration_cost): Correct typo in name; use
11284         vect_get_stmt_cost rather than vect_get_cost.
11285         (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
11286         vect_get_cost.
11287         (vect_estimate_min_profitable_iters): Correct typo in call to
11288         vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
11289         than vect_get_cost.
11290         (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
11291         vect_get_cost.
11292         (vect_model_induction_cost): Likewise.
11293         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
11294         typo in call to vect_get_single_scalar_iteration_cost.
11295         * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
11296         (cost_for_stmt): Remove unnecessary function.
11297         * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
11299 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
11301         * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
11302         * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
11303         * arm-tables.opt: Regenerated.
11304         * doc/invoke.texi: Remove references to deleted options.
11306 2012-06-14  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
11308         * config/h8300/genmova.sh: Modified to add offset bits of
11309         mova/Sz assembly instruction for memory access.
11310         * config/h8300/h8300.c: Likewise.
11311         * config/h8300/mova.md: Likewise.
11313 2012-06-12  Christian Bruel  <christian.bruel@st.com>
11315         PR target/53621
11316         * config/sh/sh.c (sh_option_override): Don't force
11317          flag_omit_frame_pointer and maccumulate_outgoing_args.
11318         * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
11320 2012-06-14  Richard Guenther  <rguenther@suse.de>
11322         * tree-vrp.c (VR_INITIALIZER): New define.
11323         (ranges_from_anti_range): New function.
11324         (extract_range_from_binary_expr_1): Decompose operations on
11325         VR_ANTI_RANGEs to operations on VR_RANGE.
11326         (extract_range_from_unary_expr_1): Likewise.
11327         (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
11328         extract_range_from_unary_expr_1, extract_range_from_unary_expr,
11329         extract_range_from_cond_expr, adjust_range_with_scev,
11330         vrp_visit_assignment_or_call, vrp_visit_phi_node,
11331         simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
11333 2012-06-13  Richard Henderson  <rth@redhat.com>
11335         * hwint.h (HOST_WIDEST_INT_C): New.
11336         (HOST_WIDE_INT_C): New.
11337         (HOST_WIDE_INT_1): Use it.
11338         * config/alpha/alpha.c (alpha_trampoline_init): Use it.
11340 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
11342         PR debug/49888
11343         * var-tracking.c: Include alias.h.
11344         (overlapping_mems): New struct.
11345         (drop_overlapping_mem_locs): New.
11346         (clobber_overlapping_mems): New.
11347         (var_mem_delete_and_set, var_mem_delete): Call it.
11348         (val_bind): Likewise, but only if modified.
11349         (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
11350         * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
11352 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
11354         PR debug/47624
11355         * var-tracking.c (loc_exp_dep_pool): New.
11356         (vt_emit_notes): Create and release the pool.
11357         (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
11358         (emit_notes_in_bb): Likewise.
11359         (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
11360         (notify_dependents_of_changed_value): Likewise.
11361         (notify_dependents_of_resolved_value): Check that NOT_ONEPART
11362         variables don't have a VAR_LOC_DEP_LST.
11363         (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
11364         VALUEs or MEMs of VALUEs.
11366 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
11368         PR debug/52983
11369         PR debug/48866
11370         * dce.c (word_dce_process_block): Insert debug temps only if the
11371         insn is not marked.
11372         (dce_process_block): Likewise, and if debug.used is not empty,
11373         and only after iterating over all DEFs that might mark the insn.
11375 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
11377         * common.opt (ftree-coalesce-inlined-vars): New.
11378         (ftree-coalesce-vars): New.
11379         * doc/invoke.texi: Document them.
11380         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
11381         Implement them.
11383 2012-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
11385         * read-rtl.c (mapping): Remove index field.  Add current_value field.
11386         Define heap vectors.
11387         (iterator_group): Fix long line.  Remove num_builtins field and
11388         uses_iterator fields.  Make apply_iterator take a void * parameter.
11389         (iterator_use, atttribute_use): New structures.
11390         (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
11391         (current_iterators, iterator_uses, attribute_uses): New variables.
11392         (uses_mode_iterator_p, uses_code_iterator_p): Delete.
11393         (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
11394         (map_attr_string, apply_iterator_to_string): Remove iterator
11395         and value parameters.  Look through all current iterator values
11396         for a matching attribute.
11397         (mode_attr_index, apply_mode_maps): Delete.
11398         (apply_iterator_to_rtx): Replace with...
11399         (copy_rtx_for_iterators): ...this new function.
11400         (uses_iterator_p, apply_iterator_traverse): Delete.
11401         (apply_attribute_uses, add_current_iterators, apply_iterators): New
11402         functions.
11403         (add_mapping): Remove index field.  Set current_value field.
11404         (initialize_iterators): Don't set num_builtins and uses_iterator_p
11405         fields.
11406         (find_iterator): Delete.
11407         (record_iterator_use, record_attribute_use): New functions.
11408         (record_potential_iterator_use): New function.
11409         (check_code_iterator): Remove handling of bellwether codes.
11410         (read_rtx): Remove mode maps.  Truncate iterator and attribute uses.
11411         (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
11412         parameter.  Use the first code iterator value instead of the
11413         bellwether_codes array.  Use record_potential_iterator_use for modes.
11415 2012-06-13  Oleg Endo  <olegendo@gcc.gnu.org>
11417         PR target/53568
11418         * config/sh/sh.md (bswapsi2): New expander.
11419         (swapbsi2): New insn.
11421 2012-06-13  H.J. Lu  <hongjiu.lu@intel.com>
11423         PR target/53647
11424         * config/i386/i386.c (ix86_tune_cost): New variable.
11425         (ix86_option_override_internal): Set ix86_tune_cost.  Use
11426         ix86_tune_cost for simultaneous_prefetches, prefetch_block,
11427         l1_cache_size and l2_cache_size.
11429 2012-06-13  Richard Guenther  <rguenther@suse.de>
11431         * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
11432         Handle meeting two VR_RANGE to an VR_ANTI_RANGE.  Implement
11433         all possible meetings of VR_RANGE with VR_ANTI_RANGE and
11434         VR_ANTI_RANGE with VR_ANTI_RANGE.
11436 2012-06-13  Richard Earnshaw  <rearnsha@arm.com>
11438         * config.gcc (unsupported): Move obsoleted FPA-based configurations
11439         here from ...
11440         (obsolete): ... here.
11441         (arm*-*-freebsd*): Remove.
11442         (arm*-*-linux*): Only accept EABI variants.  Simplify logic.
11443         (arm*-*-uclinux*): Likewise.
11444         (arm*-*-ecos-elf): Remove.
11445         (arm*-*-rtems*): Remove.
11446         (arm*-*-elf): Remove.
11447         (arm*-wince-pe*): Remove.
11448         (arm, --with-fpu): Remove support for fpa and Maverick variants.
11449         * arm/ecos-elf.h: Delete.
11450         * arm/t-strongarm-elf: Delete.
11451         * arm/rtems-elf.h: Delete.
11452         * arm/wince-pe.h: Delete.
11453         * arm/pe.c: Delete.
11454         * arm/pe.h: Delete.
11455         * arm/t-wince-pe: Delete.
11457 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
11459         PR tree-optimization/53647
11460         * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
11461         targets with no defined cache line size.
11463 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
11465         * targhooks.c (default_builtin_vectorized_conversion): Handle
11466         vec_construct, using vectype to base cost on subparts.
11467         * target.h (enum vect_cost_for_stmt): Add vec_construct.
11468         * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
11469         instead of scalar_to-vec.
11470         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
11471         vec_construct in same way as default for now.
11472         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
11473         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
11474         Handle vec_construct, including special case for 32-bit loads.
11476 2012-06-13  Xinyu Qi <xyqi@marvell.com>
11478         * config/arm/arm.c (FL_IWMMXT2): New define.
11479         (arm_arch_iwmmxt2): New variable.
11480         (arm_option_override): Enable use of iWMMXt with VFP.
11481         Disable use of iWMMXt with NEON. Disable use of iWMMXt under
11482         Thumb mode. Set arm_arch_iwmmxt2.
11483         (arm_expand_binop_builtin): Accept VOIDmode op.
11484         (enum arm_builtins): Revise built-in fcode.
11485         (IWMMXT2_BUILTIN): New define.
11486         (IWMMXT2_BUILTIN2): Likewise.
11487         (iwmmx2_mbuiltin): Likewise.
11488         (builtin_description bdesc_2arg): Revise built in declaration.
11489         (builtin_description bdesc_1arg): Likewise.
11490         (arm_init_iwmmxt_builtins): Revise built in initialization.
11491         (arm_expand_builtin): Revise built in expansion.
11492         (arm_output_iwmmxt_shift_immediate): New function.
11493         (arm_output_iwmmxt_tinsr): Likewise.
11494         * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
11495         (arm_output_iwmmxt_tinsr): Likewise.
11496         * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
11497         (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
11498         (rorv4hi3, rorv2si3, rordi3): Likewise.
11499         (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
11500         (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
11501         (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
11502         (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
11503         (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
11504         (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
11505         (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
11506         (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
11507         (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
11508         (ror<mode>3, ror<mode>3_di): Likewise.
11509         (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
11510         (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
11511         (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
11512         (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
11513         (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
11514         (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
11515         (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
11516         (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
11517         (All instruction patterns): Add wtype attribute.
11518         (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
11519         (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
11520         (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
11521         (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
11522         (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
11523         (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
11524         (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
11525         (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
11526         (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
11527         (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
11528         (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
11529         (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
11530         (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
11531         (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
11532         (iwmmxt2.md): Include.
11533         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
11534         (TARGET_IWMMXT2): New define.
11535         (TARGET_REALLY_IWMMXT2): Likewise.
11536         (arm_arch_iwmmxt2): Declare.
11537         * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
11538         Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
11539         Use C name-mangling for intrinsics.
11540         (__v8qi): Redefine.
11541         (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
11542         (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
11543         (_m_from_int): Likewise.
11544         (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
11545         (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
11546         (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
11547         (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
11548         (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
11549         (_mm_tbcst_pi32): Likewise.
11550         (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
11551         (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
11552         (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
11553         (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
11554         (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
11555         (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
11556         (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
11557         (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
11558         (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
11559         (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
11560         (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
11561         (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
11562         (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
11563         (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
11564         (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
11565         (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
11566         (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
11567         (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
11568         (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
11569         (_m_to_int): New define.
11570         * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
11571         * config/arm/arm-arches.def (iwmmxt2): Likewise.
11572         * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
11573         iwmmxt2.md.
11574         * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
11575         (arch): Add "iwmmxt2".
11576         (arch_enabled): Handle "iwmmxt2".
11577         (wtype): New attribute.
11578         (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
11579         (UNSPEC_WALIGNI): New unspec.
11580         * config/arm/predicates.md (imm_or_reg_operand): New predicate.
11581         * config/arm/iterators.md (VMMX2): New mode_iterator.
11582         * config/arm/marvell-f-iwmmxt.md: New file.
11583         * config/arm/iwmmxt2.md: New file.
11585 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
11587         PR c/53532
11588         PR c/51034
11589         PR c/53196
11590         * c-decl.c (build_compound_literal): Call c_incomplete_type_error
11591         if type isn't complete.
11593 2012-06-12  Uros Bizjak  <ubizjak@gmail.com>
11595         * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
11597 2012-06-12  Richard Henderson  <rth@redhat.com>
11599         * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
11600         iterator instead of INT.
11602 2012-06-12  Bill Schmidt  <wschmidt@linux.ibm.com>
11604         * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
11605         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
11606         declaration.
11607         (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
11608         (tree_ssa_phiopt): Call gate_hoist_loads.
11609         (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
11610         (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
11611         hoist_adjacent_loads.
11612         (local_mem_dependence): New function.
11613         (hoist_adjacent_loads): Likewise.
11614         (gate_hoist_loads): Likewise.
11615         * common.opt (fhoist-adjacent-loads): New switch.
11616         * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
11618 2012-06-12  Michael Matz  <matz@suse.de>
11620         * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
11621         (nonoverlapping_memrefs_p): Don't call it here ...
11622         (true_dependence_1): ... but here.
11624 2012-06-12  Richard Guenther  <rguenther@suse.de>
11626         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
11627         * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
11628         and MEM_SIZE only refines it.  Reflect that and be less conservative
11629         if either of the latter is not known.
11631 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
11633         PR rtl-optimization/53589
11634         * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
11635         discovery even when e->dest != target.  If any LABEL_REF points
11636         to e->dest label, redirect it to target's label.
11638 2012-06-12  Chung-Lin Tang  <cltang@codesourcery.com>
11640         * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
11641         condition for generating REG_FRAME_RELATED_EXPR note.
11642         (pop): Add code for generating REG_CFA_RESTORE,
11643         REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
11644         (sh_expand_epilogue): Use frame_insn() for FP to SP move.
11645         Set 'frame_p' of calls to output_stack_adjust() to 'true'.
11647 2012-06-11  Richard Henderson  <rth@redhat.com>
11649         * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
11650         * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
11652         * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
11654 2012-06-12  Hans-Peter Nilsson  <hp@axis.com>
11656         * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
11657         Mention that this hook needs to be defined for native TLS.
11658         * doc/tm.texi: Regenerate.
11660 2012-06-11  Mike Stump  <mikestump@comcast.net>
11662         * emit-rtl.c (init_emit_once): Iterate through the
11663         MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
11664         MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
11665         all the MIN_MODE_PARTIAL_INT modes anymore.
11667 2012-06-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
11669         * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
11671 2012-06-11  Roland McGrath  <mcgrathr@google.com>
11673         * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
11674         SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
11675         not a VAR_DECL.  Also don't limit it to UNSPECs with exactly one
11676         operand.
11678 2012-06-11  Oleg Endo  <olegendo@gcc.gnu.org>
11680         PR target/53511
11681         * config/sh/sh.md (fmasf4): New expander.
11682         (*macsf3): Rename to fmasf4_i.  Adapt to fma pattern.
11683         (mac_media): Rename to fmasf4_media.  Adapt to fma pattern.
11684         * config/sh/sh.opt (mfused-madd): Remove.
11685         * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
11686         (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
11687         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
11688         as extra options.
11689         * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
11690         descriptions.
11692 2012-06-11  Richard Henderson  <rth@redhat.com>
11694         * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
11696 2012-06-11  Richard Guenther  <rguenther@suse.de>
11698         PR middle-end/53470
11699         * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
11700         replace it with the first non-BLOCK context.
11702 2012-06-11  Richard Guenther  <rguenther@suse.de>
11704         * alias.c (aliases_everything_p): Remove.
11705         (DIFFERENT_ALIAS_SETS_P): Likewise.
11706         (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
11707         Do not use aliases_everything_p or special-case ANDs.  Do not
11708         special-case BLKmode moves.
11709         (may_alias_p): Likewise.  Handle BLKmode similar like everywhere
11710         - for SCATCH only.
11712 2012-06-09  Hans-Peter Nilsson  <hp@axis.com>
11714         Fix CRIS build errors with --enable-build-with-cxx.
11715         * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
11716         variable "and" to "andop".
11717         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
11718         temporary variable for memory model, passing C++-type-correct
11719         parameter type to expand_mem_thread_fence.
11720         ("atomic_compare_and_swap<mode>"): Ditto.
11722 2012-06-09  Richard Henderson  <rth@redhat.com>
11724         PR c++/53602
11725         * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
11726         (pass_jump): Rename from pass_jump2.
11727         (execute_jump2, pass_jump2): New.
11728         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
11729         perform cfg cleanup here.  Move the test of PUSH_ROUNDING
11730         and ACCUMULATE_OUTGOING_ARGS test...
11731         (gate_handle_stack_adjustments): ... here.
11732         * passes.c (init_optimization_passes): Update for pass_jump2 rename.
11733         Place new pass_jump2 after pass_stack_adjustments.
11734         * tree-pass.h (pass_jump): Declare.
11736 2012-06-09  Kenneth Zadeck <zadeck@naturalbridge.com>
11738         * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
11739         count trucation.
11741 2012-06-08  Richard Henderson  <rth@redhat.com>
11743         PR c++/53602
11744         * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
11745         note to a clobber insn when no other insn is available.
11747 2012-06-08  Georg-Johann Lay  <avr@gjlay.de>
11749         * config/avr/avr.c (avr_case_values_threshold): Return 7.
11751 2012-06-07  Andreas Schwab  <schwab@linux-m68k.org>
11753         * genhooks.c (main): Set progname.
11754         (emit_documentation): Remove variable found_start, always bail out
11755         when a place is missing.
11756         * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
11758 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
11760         PR middle-end/53580
11761         * omp-low.c (scan_omp): Change first argument to gimple_seq *,
11762         call walk_gimple_seq_mod instead of walk_gimple_seq.
11763         (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
11764         scan_omp_for, scan_omp_sections, scan_omp_single,
11765         execute_lower_omp): Adjust callers.
11766         (scan_omp_1_stmt): Likewise.  If check_omp_nesting_restrictions
11767         returns false, replace stmt with GIMPLE_NOP.
11768         (check_omp_nesting_restrictions): Instead of issuing warnings,
11769         issue errors and return false if any errors were reported.
11771 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
11773         * doc/invoke.texi (fconserve-space): Remove documentation.
11775 2012-06-06  Edmar Wienskoski  <edmar@freescale.com>
11777         * config/rs6000/rs6000-tables.opt: Regenerated.
11779 2012-06-06  Richard Guenther  <rguenther@suse.de>
11781         PR tree-optimization/53081
11782         * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
11783         (adjacent_dr_p): ... this and make it work for reads, too.
11784         * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
11785         (struct partition_s): Change main_stmt to main_dr, add
11786         secondary_dr member.
11787         (build_size_arg_loc): Change to date data-reference and not
11788         gimplify here.
11789         (build_addr_arg_loc): New function split out from ...
11790         (generate_memset_builtin): ... here.  Use it and simplify.
11791         (generate_memcpy_builtin): New function.
11792         (generate_code_for_partition): Adjust.
11793         (classify_partition): Streamline pattern detection.  Detect memcpy.
11794         (ldist_gen): Adjust.
11795         (tree_loop_distribution): Adjust seed statements for memcpy
11796         recognition.
11798 2012-06-06  Matt Turner  <mattst88@gmail.com>
11800         * config/arm/mmintrin.h (_mm_empty): New.
11801         (_m_empty): New.
11803 2012-06-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
11805         * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
11806         * common.opt (fsched-pressure-algorithm=): Remove.
11807         * flag-types.h (sched_pressure_algorithm): Move to...
11808         * sched-int.h (sched_pressure_algorithm): ...here.
11809         * params.def (sched-pressure-algorithm): New param.
11810         * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
11811         * common/config/s390/s390-common.c (s390_option_optimization_table):
11812         Remove OPT_fsched_pressure_algorithm_ entry.
11813         * config/s390/s390.c (s390_option_override): Set a default value for
11814         PARAM_SCHED_PRESSURE_ALGORITHM.
11816 2012-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
11818         PR target/53487
11819         * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
11820         doing an unsigned compare, make sure the second argument is not a
11821         negative constant.
11822         (rs6000_emit_cmove): Don't allow floating point comparisons when
11823         generating ISEL moves.
11825 2012-06-05  Edmar Wienskoski  <edmar@freescale.com>
11827         * config/rs6000/e5500.md: New file.
11828         * config/rs6000/e6500.md: New file.
11829         * config/rs6000/rs6000.c (processor_costs): Add new costs for
11830         e5500 and e6500.
11831         (rs6000_option_override_internal): Altivec and Spe options not
11832         allowed with e5500. Spe options not allowed with e6500. Increase
11833         move inline limit for e5500 and e6500. Disable string instructions
11834         for e5500 and e6500. Enable branch targets alignment for e5500 and
11835         e6500. Initialize rs6000_cost for e5500 and e6500.
11836         (rs6000_adjust_cost): Add extra scheduling cycles between compare
11837         and brnach for e5500 and e6500.
11838         (rs6000_issue_rate): Set issue rate for e5500 and e6500.
11839         * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
11840         e6500.
11841         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
11842         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
11843         ppce6500.
11844         Include e5500.md and e6500.md.
11845         * config/rs6000/rs6000-opt.h (processor_type): Add
11846         PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
11847         * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
11848         (powerpc*-*-*): Add new cores e5500, e6500.
11849         * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
11851 2012-06-05  Richard Guenther  <rguenther@suse.de>
11853         * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
11855 2012-06-05  H.J. Lu  <hongjiu.lu@intel.com>
11857         PR target/53575
11858         * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
11859         is used for x86_64-*-*.
11861 2012-06-05  Richard Guenther  <rguenther@suse.de>
11863         PR tree-optimization/30442
11864         * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
11865         vectorization stop analysis at the first stmt we cannot compute
11866         a data-reference for instead of giving up completely.
11868 2012-06-05  Richard Guenther  <rguenther@suse.de>
11870         * tree-loop-distribution.c (struct partition_s): Add has_writes member.
11871         (partition_alloc): Initialize it.
11872         (partition_has_writes): New function.
11873         (rdg_flag_uses): Adjust.
11874         (rdg_flag_vertex): Likewise.
11875         (rdg_flag_vertex_and_dependent): Likewise.
11876         (rdg_flag_loop_exits): Likewise.
11877         (build_rdg_partition_for_component): Likewise.
11878         (rdg_build_partitions): Likewise.
11880 2012-06-05  Richard Guenther  <rguenther@suse.de>
11882         PR tree-optimization/53081
11883         * tree-loop-distribution.c (generate_memset_builtin): Handle all
11884         kinds of byte-sized stores.
11885         (classify_partition): Likewise.
11886         (tree_loop_distribution): Adjust seed statements used for
11887         !flag_tree_loop_distribution.
11889 2012-06-05  Alan Modra  <amodra@gmail.com>
11891         * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
11892         (rs6000_emit_prologue): Ensure register used for inline saves
11893         of vector regs is not the static chain register.  Revise comment.
11895 2012-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
11897         * doc/md.texi (Standard Pattern Names For Generation): Document
11898         sincos pattern.
11900 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11902         PR bootstrap/53555
11903         * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
11905 2012-06-04  Jason Merrill  <jason@redhat.com>
11907         * dwarf2out.c (is_unit_die): New.
11908         (copy_declaration_context, copy_ancestor_tree): Use it.
11909         (copy_decls_walk): Likewise.
11911 2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>
11913         PR c++/53524
11914         * doc/invoke.texi (Wenum-compare): Update documentation.
11916 2012-06-04  Dodji Seketeli  <dodji@redhat.com>
11918         PR preprocessor/53463
11919         * parser.c (cp_parser_assignment_expression): Use the location
11920         for the '=' as the default location for the expression.
11922 2012-06-04  Edmar Wienskoski  <edmar@freescale.com>
11924         PR target/53559
11925         * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
11926         operands.
11927         (altivec_stvlxl): Ditto.
11928         (altivec_stvrx): Ditto.
11929         (altivec_stvrxl): Ditto.
11931 2012-06-04  Vladimir Makarov  <vmakarov@redhat.com>
11933         * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
11934         (ira_uniform_class_p): New macro.
11936         * ira.c (setup_uniform_class_p): New function.
11937         (setup_allocno_and_important_classes): Call the function.
11938         (print_unform_and_important_classes): New function.
11939         (print_classes): Rename to print_translated_classes.
11940         (ira_debug_allocno_classes): Add call of
11941         print_unform_and_important_classes.
11943         * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
11944         classes instead of pressure classes.
11946 2012-06-04  Aldy Hernandez  <aldyh@redhat.com>
11948         PR middle-end/47530
11949         * trans-mem.c (expand_block_edges): Do not skip the first
11950         statement when resetting the BB.
11952 2012-06-04  Richard Guenther  <rguenther@suse.de>
11954         * tree-data-ref.c (stores_from_loop): Remove.
11955         (stmt_with_adjacent_zero_store_dr_p): Likewise.
11956         (stores_zero_from_loop): Likewise.
11957         * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
11958         stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
11959         (adjacent_store_dr_p): New function.
11960         * tree-loop-distribution.c (generate_memset_builtin): Pass
11961         the RDG, use the already available data-reference.
11962         (generate_code_for_partition): Pass down RDG.
11963         (classify_partition): Inline parts of the former
11964         stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
11965         (ldist_gen): Remember if there was any detected builtin and
11966         do less work if not and flag_tree_loop_distribution is not set.
11967         (tree_loop_distribution): Inline and fuse stores_from_loop
11968         and stores_zero_from_loop here.
11970 2012-06-04  Richard Guenther  <rguenther@suse.de>
11972         PR middle-end/53471
11973         * dwarf2out.c (dwarf2out_finish): If generating LTO do not
11974         create new assembler names.
11976 2012-06-04  Richard Guenther  <rguenther@suse.de>
11978         * tree-data-ref.c (struct rdg_vertex_info): Remove.
11979         (rdg_vertex_for_stmt): Simplify using gimple_uid.
11980         (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
11981         hashtable.  Record stmt data-references.
11982         (hash_stmt_vertex_info): Remove.
11983         (eq_stmt_vertex_info): Likewise.
11984         (hash_stmt_vertex_del): Likewise.
11985         (build_empty_rdg): Simplify.
11986         (build_rdg): Adjust.
11987         (free_rdg): Likewise.
11988         (ref_base_address): Remove.
11989         (have_similar_memory_accesses): Likewise.
11990         * tree-data-ref.h (create_rdg_vertices): Remove.
11991         (struct rdg_vertex): Add datarefs member.
11992         (RDGV_DATAREFS): New define.
11993         (RDG_DATAREFS): Likewise.
11994         (have_similar_memory_accesses): Remove.
11995         (rdg_has_similar_memory_accesses): Likewise.
11996         * tree-loop-distribution.c (ref_base_address): Re-implement here.
11997         (similar_memory_accesses): Re-implement using existing data-references.
11998         (tree_loop_distribution): Initialize stmt uids for the stmt to
11999         RDG index mapping.
12000         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
12001         access stmt vinfo for stmts in loop.
12003 2012-06-04  Andreas Schwab  <schwab@linux-m68k.org>
12005         PR target/53461
12006         * config/m68k/m68k.md ("tablejump"): Fix check for
12007         CASE_VECTOR_PC_RELATIVE.
12009 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
12011         * output.h (merge_weak, assemble_alias,
12012         initializer_constant_valid_p,
12013         initializer_constant_valid_for_bitfield_p): Move protos from here...
12014         * tree.h: ... to here.
12015         * cgraphclones.c: Do not include output.h.
12016         * gimplify.c: Likewise.
12017         * reload.c: Likewise.
12018         * recog.c: Likewise.
12019         * tree-ssa-loop-ivopts.c: Likewise.
12020         * tree-switch-conversion.c: Likewise.
12021         * c-parser.c: Likewise.
12022         * c-typeck.c: Likewise.
12023         * Makefile.in: Fix dependencies.
12025 2012-06-04  Georg-Johann Lay  <avr@gjlay.de>
12027         PR target/46261
12028         * config/avr/avr-stdint.h: New file.
12029         * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
12030         newlib-stdint.h
12032 2012-06-04  Jakub Jelinek  <jakub@redhat.com>
12034         PR tree-optimization/53550
12035         * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
12036         is POINTER_TYPE_P, use sizetype as step type instead of type.
12038 2012-06-04  Richard Guenther  <rguenther@suse.de>
12040         * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
12041         (ref_base_address_1): Likewise.
12042         (remove_similar_memory_refs): Likewise.
12043         * tree-data-ref.h (remove_similar_memory_refs): Remove.
12044         * tree-loop-distribution.c (classify_partition): Do not classify
12045         as builtin if -ftree-loop-distribute-patterns is not enabled.
12046         (fuse_partitions_with_similar_memory_accesses): Inline ...
12047         (ldist_gen): ... here.  Fuse all non-builtin partitions if
12048         -ftree-loop-distribution is not enabled.  Properly return
12049         the number of created partitions.  Do not update SSA form here but ...
12050         (tree_loop_distribution): ... once here for the whole function.
12051         Only walk innermost loops, constrain loops we consider here
12052         further.  Do not call remove_similar_memory_refs.
12053         (distribute_loop): Do not check number of loop nodes here.
12055 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
12057         * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
12059 2012-06-03  Martin Jambor  <mjambor@suse.cz>
12061         * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
12062         (ipa_get_jf_known_type_base_type): Likewise.
12063         (ipa_get_jf_known_type_component_type): Likewise.
12064         (ipa_get_jf_constant): Likewise.
12065         (ipa_get_jf_pass_through_formal_id): Likewise.
12066         (ipa_get_jf_pass_through_operation): Likewise.
12067         (ipa_get_jf_ancestor_offset): Likewise.
12068         (ipa_get_jf_ancestor_type): Likewise.
12069         (ipa_get_jf_ancestor_formal_id): Likewise.
12070         (ipa_get_jf_member_ptr_pfn): Likewise.
12071         * ipa-prop.c (ipa_set_jf_known_type): New function.
12072         (ipa_set_jf_constant): Likewise.
12073         (ipa_set_jf_simple_pass_through): Likewise.
12074         (ipa_set_jf_arith_pass_through): Likewise.
12075         (ipa_set_ancestor_jf): Likewise.
12076         (fill_member_ptr_cst_jump_function): Moved up and renamed to
12077         ipa_set_jf_member_ptr_cst.
12078         (detect_type_change_1): Use the new jump function creation functions.
12079         (compute_complex_assign_jump_func): Likewise.
12080         (compute_complex_ancestor_jump_func): Likewise.
12081         (compute_known_type_jump_func): Likewise.
12082         (compute_scalar_jump_functions): Likewise.
12083         (compute_pass_through_member_ptrs): Likewise.
12084         (determine_cst_member_ptr): Likewise.
12085         (combine_known_type_and_ancestor_jfs): Likewise.
12086         (try_make_edge_direct_simple_call): Likewise.
12087         (try_make_edge_direct_virtual_call): Likewise.
12088         (update_indirect_edges_after_inlining): Likewise.
12089         * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
12090         access functions.  Incorporat NOP_EXPR and BINFO handling from its
12091         callers.
12092         (ipa_get_jf_ancestor_result): Likewise.  Incorporate handling BINFOs
12093         which was in its callers.
12094         (ipa_value_from_jfunc): Use jump function access functions.  Some
12095         functionality moved to functions above.
12096         (propagate_vals_accross_ancestor): Likewise.
12097         (propagate_vals_accross_pass_through): Use jump function access
12098         functions.
12099         (propagate_accross_jump_function): Likewise.
12100         * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
12101         access functions.
12102         (inline_merge_summary): Likewise.
12104 2012-06-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12106         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
12107         * config/pa/pa.c (pa_attr_length_millicode_call): Use
12108         MAX_PCREL17F_OFFSET instead of fixed offset.
12109         (pa_attr_length_call): Likewise.
12110         (pa_attr_length_indirect_call): Likewise.
12112 2012-06-03  Oleg Endo  <olegendo@gcc.gnu.org>
12114         PR target/53512
12115         * config/sh/sh.opt (mfsca, mfsrra): New options.
12116         * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
12117         condition.
12118         (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
12119         (sinssf2, cossf2): Fold expanders to ...
12120         (sincossf3): ... this new expander.  Use TARGET_FPU_ANY and
12121         TARGET_FSCA condition.
12122         * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
12123         TARGET_FSCA.
12124         * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
12125         -mno-fsca, -mfsrra, -mno-fsrra.
12127 2012-06-03  Matt Turner  <mattst88@gmail.com>
12129         * config/mips/4600.md (r4700_imul_si): New.
12130         (r4700_imul_di): New.
12131         (r4700_fmul_single): New.
12132         (r4700_fmul_double): New.
12133         * config/mips/mips-cpus.def: Add r4700.
12134         * config/mips/mips.c: Likewise.
12135         * config/mips/mips.md: Likewise.
12136         * config/mips/mips-tables.opt: Regenerate.
12138 2012-06-02  Steven Bosscher  <steven@gcc.gnu.org>
12140         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
12141         new function sparc_initial_elimination_offset.
12142         * config/sparc/sparc.c (sparc_initial_elimination_offset): New
12143         function.
12144         * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
12145         Prototype it.
12147 2012-06-02  Kenneth Zadeck <zadeck@naturalbridge.com>
12149         * expmed.c (expand_mult, choose_multiplier): Change
12150         "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
12151         * expr.c (convert_modes): Likewise.
12152         * explow.c (plus_constant): Likewise.
12153         * fixed-value.c (fixed_saturate1, fixed_saturate2)
12154         (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
12155         (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
12156         (do_fixed_divide, do_fixed_divide, do_fixed_divide)
12157         (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
12158         (do_fixed_shift, fixed_convert, fixed_convert)
12159         (fixed_convert_from_int, fixed_convert_from_int)
12160         (fixed_convert_from_real): Likewise.
12161         * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
12162         (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
12163         * varasm.c (output_constructor_bitfield): Likewise.
12164         * tree-vrp.c (register_edge_assert_for_2): Likewise.
12165         * double-int.c (rshift_double, lshift_double): Likewise.
12166         * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
12167         Likewise.
12168         * simplify-rtx.c (mode_signbit_p)
12169         (simplify_const_unary_operation, simplify_binary_operation_1)
12170         (simplify_immed_subreg): Likewise.
12171         * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
12172         * tree-vect-generic.c (build_replicated_const): Likewise.
12173         * dbxout.c (stabstr_O): Likewise.
12174         * emit-rtl.c (immed_double_int_const, immed_double_const)
12175         (gen_lowpart_common, init_emit_once): Likewise.
12176         * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
12177         (widest_int_cst_value, upper_bound_in_type): Likewise.
12178         * stor-layout.c (initialize_sizetypes, fixup_signed_type)
12179         (fixup_unsigned_type): Likewise.
12180         * real.c (real_to_integer2, real_from_integer): Likewise.
12181         * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
12182         (clz_loc_descriptor, mem_loc_descriptor): Likewise.
12184 2012-06-01  Eric Botcazou  <ebotcazou@adacore.com>
12186         PR middle-end/53501
12187         * fold-const.c (fold_binary_loc): Refine previous change.
12189 2012-06-01  Olivier Hainque  <hainque@adacore.com>
12191         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
12192         the "do {" part of the do-while(0) loop.
12194 2012-06-01  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
12196         * config/i386/i386.c (x86_sched_reorder): New function.
12197         Added new function x86_sched_reorder.
12199 2012-06-01  Richard Guenther  <rguenther@suse.de>
12201         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
12202         Handle PHIs.
12203         (classify_partition): Likewise.
12205 2012-06-01  Richard Guenther  <rguenther@suse.de>
12207         * tree-loop-distribution.c (enum partition_kind): New enum.
12208         (struct partition_s): Add kind and main_stmt members.
12209         (partition_alloc): Initialize kind to PKIND_NORMAL.
12210         (partition_builtin_p): New function.
12211         (copy_loop_before): Remove failure path and assert instead.
12212         (generate_loops_for_partition): Likewise.
12213         (generate_memset_zero): Fold into ...
12214         (generate_memset_builtin): ... this.
12215         (classify_partition): New function with code from
12216         can_generate_builtin and generate_builtin.
12217         (generate_builtin): Remove.
12218         (can_generate_builtin): Likewise.
12219         (fuse_partitions_with_similar_memory_accesses): Call
12220         partition_builtin_p instead of can_generate_builtin.
12221         (rdg_build_partitions): Do not call
12222         fuse_partitions_with_similar_memory_accesses here...
12223         (ldist_gen): ... but here after classifying all partitions.
12224         Remove failure path of generate_code_for_partition.
12225         (generate_code_for_partition): Generate code according
12226         to partition classification.
12228 2012-06-01  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12229             Jonathan Wakely  <jwakely.gcc@gmail.com>
12231         PR c++/50134
12232         * doc/invoke.texi (Warning Options): Explain purpose and differences
12233         between -Wmissing-prototypes and -Wmissing-declarations.
12235 2012-06-01  Christian Bruel  <christian.bruel@st.com>
12237         * gcc.c (save_switch): Add user_p parameter.
12238         (read_specs): Likewise.
12239         (set_specs): Likewise.
12240         (validate_switches): Likewise.
12241         (validate_switches_from_spec): Likewise.
12242         (validate_all_switches): Pass on user_p parameter.
12243         (struct spec_list): Add user_p field.
12244         (struct switchstr): Add known field.
12245         (save_switch): Add known parameter.
12246         (INIT_STATIC_SPEC): Initialize user_p;
12247         (driver_unknown_option_callbac): call save_switch if
12248         OPT_SPECIAL_unknown.
12249         (driver_handle_option): Propagate OPT_specs.
12250         (do_spec_1): Set validated only if known.
12251         (check_live_switch): Likewise.
12252         (validate_switches): Set validated if known or user_spec.
12254 2012-06-01  Hans-Peter Nilsson  <hp@axis.com>
12256         Add CRIS atomic patterns for 1, 2, and 4 bytes.
12257         * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
12258         * config/cris/cris-protos.h: Declare it.
12259         * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
12260         (TARGET_DEFAULT): Add alignment by 32.
12261         [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
12262         case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
12263         TARGET_CPU_DEFAULT == 32.
12264         (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
12265         * config/cris/cris.md: Include sync.md.  Avoid allocating specific
12266         numbers by replacing the define_constants for all UNSPECs with the
12267         equivalent define_c_enum construct.
12268         * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
12269         * config/cris/sync.md: New file.
12271 2012-05-31  Matt Turner  <mattst88@gmail.com>
12273         * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
12274         (r4600_imul_di): New.
12275         (r4600_idiv_si): Rename from r4600_idiv.
12276         (r4600_idiv_di): New.
12278 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
12280         * output.h (__gcc_host_wide_int__): Move to hwint.h.
12281         (decl_default_tls_model): Move to tree.h
12282         (dump_file): Move to system.h.
12283         (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
12284         dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
12285         dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
12286         dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
12287         dbxout_stab_value_zero, dbxout_stab_value_label_diff,
12288         dbxout_stab_value_internal_label,
12289         dbxout_stab_value_internal_label_diff): Move from here ...
12290         * dbxout.h: ... to here.
12291         * system.h (dump_file): Moved here from output.h.
12292         * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
12293         * tree.h (decl_default_tls_model): Moved here from output.h.
12294         * varasm.c (default_stabs_asm_out_destructor,
12295         default_stabs_asm_out_constructor): Move from here ...
12296         * dbxout.c: ... to here.
12298         * gcov-dump.c (dump_file): Rename to dump_gcov_file.  Update callers.
12300         * collect2.h (dump_file): Rename to dump_ld_file.
12301         * collect2.c: Likewise.
12302         * tlink.c: Likewise.
12304         * alias.c: Do not include output.h.
12305         * auto-inc-dec.c: Likewise.
12306         * bt-load.c: Likewise.
12307         * caller-save.c: Likewise.
12308         * cfg.c: Likewise.
12309         * cfgbuild.c: Likewise.
12310         * cfgcleanup.c: Likewise.
12311         * cfglayout.c: Likewise.
12312         * cfgloop.c: Likewise.
12313         * cfgloopanal.c: Likewise.
12314         * cfgloopmanip.c: Likewise.
12315         * cfgrtl.c: Likewise.
12316         * cgraph.c: Likewise.
12317         * cgraphclones.c: Likewise.
12318         * combine-stack-adj.c: Likewise.
12319         * combine.c: Likewise.
12320         * cprop.c: Likewise.
12321         * cse.c: Likewise.
12322         * cselib.c: Likewise.
12323         * dbgcnt.c: Likewise.
12324         * df-problems.c: Likewise.
12325         * df-scan.c: Likewise.
12326         * dojump.c: Likewise.
12327         * fwprop.c: Likewise.
12328         * gcse.c: Likewise.
12329         * graph.c: Likewise.
12330         * haifa-sched.c: Likewise.
12331         * hw-doloop.c: Likewise.
12332         * ipa-inline-transform.c: Likewise.
12333         * ipa-pure-const.c: Likewise.
12334         * ipa-reference.c: Likewise.
12335         * ipa-utils.c: Likewise.
12336         * ira-build.c: Likewise.
12337         * ira-emit.c: Likewise.
12338         * lcm.c: Likewise.
12339         * loop-doloop.c: Likewise.
12340         * loop-invariant.c: Likewise.
12341         * loop-iv.c: Likewise.
12342         * loop-unroll.c: Likewise.
12343         * loop-unswitch.c: Likewise.
12344         * lto-cgraph.c: Likewise.
12345         * lto-section-in.c: Likewise.
12346         * lto-streamer-in.c: Likewise.
12347         * mcf.c: Likewise.
12348         * mode-switching.c: Likewise.
12349         * postreload-gcse.c: Likewise.
12350         * postreload.c: Likewise.
12351         * predict.c: Likewise.
12352         * profile.c: Likewise.
12353         * ree.c: Likewise.
12354         * reg-stack.c: Likewise.
12355         * regcprop.c: Likewise.
12356         * regmove.c: Likewise.
12357         * regstat.c: Likewise.
12358         * reload1.c: Likewise.
12359         * sched-ebb.c: Likewise.
12360         * sel-sched-dump.c: Likewise.
12361         * simplify-rtx.c: Likewise.
12362         * stor-layout.c: Likewise.
12363         * store-motion.c: Likewise.
12364         * tracer.c: Likewise.
12365         * tree-affine.c: Likewise.
12366         * tree-cfg.c: Likewise.
12367         * tree-cfgcleanup.c: Likewise.
12368         * tree-dfa.c: Likewise.
12369         * tree-into-ssa.c: Likewise.
12370         * tree-nomudflap.c: Likewise.
12371         * tree-optimize.c: Likewise.
12372         * tree-pretty-print.c: Likewise.
12373         * tree-profile.c: Likewise.
12374         * tree-ssa-address.c: Likewise.
12375         * tree-ssa-ccp.c: Likewise.
12376         * tree-ssa-copy.c: Likewise.
12377         * tree-ssa-dom.c: Likewise.
12378         * tree-ssa-loop-ch.c: Likewise.
12379         * tree-ssa-loop-im.c: Likewise.
12380         * tree-ssa-loop-manip.c: Likewise.
12381         * tree-ssa-loop-niter.c: Likewise.
12382         * tree-ssa-loop-prefetch.c: Likewise.
12383         * tree-ssa-loop-unswitch.c: Likewise.
12384         * tree-ssa-loop.c: Likewise.
12385         * tree-ssa-propagate.c: Likewise.
12386         * tree-ssa-structalias.c: Likewise.
12387         * tree-ssa-tail-merge.c: Likewise.
12388         * tree-ssa-threadedge.c: Likewise.
12389         * tree-ssa-threadupdate.c: Likewise.
12390         * tree-ssa-uncprop.c: Likewise.
12391         * tree-ssa-uninit.c: Likewise.
12392         * tree-ssa.c: Likewise.
12393         * value-prof.c: Likewise.
12394         * var-tracking.c: Likewise.
12395         * web.c: Likewise.
12397         * config/m32r/m32r.c: Include dbxout.h.
12398         * config/pa/pa.c: Likewise.
12399         * config/rs6000/rs6000.c: Likewise.
12401         * Makefile.in: Fix dependencies.
12402         * config/rs6000/t-rs5000: Likewise.
12404 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
12406         * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
12407         * gimple.h (block_in_transaction): Check for flag_tm.
12409 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
12411         PR tree-optimization/52558
12412         * cfg.c (alloc_aux_for_edge): Fix comment.
12413         (alloc_aux_for_edge): Remove static.
12414         * basic-block.h (alloc_aux_for_edge): Protoize.
12415         * tree-ssa-loop-im.c (execute_sm_if_changed): New.
12416         (execute_sm_if_changed_flag): New.
12417         (execute_sm_if_changed_flag_set): New.
12418         (execute_sm): Do not generate data races unless requested.
12419         (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
12420         (tree_ssa_lim_finalize): Call free_aux_for_edges.
12421         * gimple.h (block_in_transaction): New.
12422         (gimple_in_transaction): Use block_in_transaction.
12424 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
12426         PR target/51345
12427         * config/avr/avr.opt (-msp8): Document it.
12428         * doc/invoke.texi (AVR Options): Ditto.  And document related
12429         built-in macros.
12431 2012-05-31  Diego Novillo  <dnovillo@google.com>
12433         * configure.ac (CXX_FOR_BUILD): Define and substitute.
12434         (BUILD_CXXFLAGS): Define and substitute.
12435         * Makefile.in (BUILD_CXXFLAGS): Define.
12436         (CXX_FOR_BUILD): Define.
12437         (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
12438         (LINKER_FOR_BUILD): Likewise.
12439         (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
12440         (BUILD_LINKERFLAGS): Likewise.
12441         * configure: Regenerate.
12443 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
12445         * Makefile.in: Fix many dependencies.
12446         * tree-profile.c: Don't include regs.h.
12447         * tree-vectorizer.c: Don't include cfglayout.h.
12448         * tree-vect-stmts.c: Likewise.
12449         * tree-vect-slp.c: Likewise.
12450         * tree-vect-loop.c: Likewise.
12451         * reg-stack.c: Likewise.
12452         * tree-ssa-loop-manip.c: Likewise.
12453         * toplev.c: Likewise.
12454         * varasm.c: Don't include cfglayout.h, basic-block.h,
12455         and tree-iterator.h.
12456         * tree-cfgcleanup.c: Don't include cfglayout.h.
12457         * passes.c: Don't include cfglayout.h, dwarf2asm.h,
12458         dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
12459         * cgraphclones.c: Don't include plugin.h.
12461 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
12463         * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
12464         (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
12465         * doc/avr-mmcu.texi (svn:eol-style): Set to native.
12467 2012-05-31  Richard Guenther  <rguenther@suse.de>
12469         * tree-loop-distribution.c (struct partition_s): New struct,
12470         typedef and vector type.
12471         (partition_alloc, partition_free): New functions.
12472         (generate_loops_for_partition, generate_builtin,
12473         generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
12474         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
12475         build_rdg_partition_for_component, can_generate_builtin,
12476         similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
12477         rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
12478         number_of_rw_in_partition, partition_contains_all_rw,
12479         ldist_gen): Use partition_t instead of bitmap.
12481 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
12483         * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
12484         * doc/avr-mmcu.texi: Regenerate.
12486 2012-05-31  Richard Guenther  <rguenther@suse.de>
12488         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
12489         Use FOR_EACH_SSA_DEF_OPERAND.
12490         (generate_builtin): Adjust.
12491         (stmt_generated_in_another_partition): Remove.
12492         (add_scalar_computations_to_partition): Likewise.
12493         (rdg_build_partitions): Do not call
12494         add_scalar_computations_to_partition.
12496 2012-05-31  Eric Botcazou  <ebotcazou@adacore.com>
12498         * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
12499         double ints throughout.
12500         * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
12501         Check that the position of the field is representable as an integer.
12503 2012-05-31  Richard Guenther  <rguenther@suse.de>
12505         * tree-data-ref.c (dr_analyze_innermost): Properly convert
12506         the MEM_REF offset to sizetype.
12508 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
12510         * doc/invoke.texi (AVR Options): Fix typos.
12512 2012-05-31  Hans-Peter Nilsson  <hp@axis.com>
12514         * config/cris/cris.h (CC1_SPEC): Pass through all -march=
12515         and -mcpu= options.
12516         (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
12517         non-v32 into --march=v0_v10.
12519 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
12521         * ira-int.h (target_ira_int): Rename x_move_cost to
12522         x_ira_register_move_cost, x_may_move_in_cost to
12523         x_ira_may_move_in_cost and x_may_move_out_cost to
12524         x_ira_may_move_out_cost.  Delete the old fields with
12525         those names and also x_ira_max_register_move_cost,
12526         x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
12527         (move_cost, may_move_in_cost, may_move_out_cost)
12528         (ira_max_register_move_cost, ira_max_may_move_in_cost)
12529         (ira_max_may_move_out_cost): Delete.
12530         * ira.c (init_move_cost): Rename to...
12531         (ira_init_register_move_cost): ...this, deleting the old
12532         function with that name.  Apply above variable renamings.
12533         Retain asserts for null fields.
12534         (ira_init_once): Don't initialize register move costs here.
12535         (free_register_move_costs): Apply above variable renamings.
12536         Remove code for deleted fields.
12538 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
12540         * ira.c (init_move_cost): Adjust choice of subclasses to match
12541         the current ira_init_register_move_cost choice.  Use
12542         ira_class_subset_p instead of reg_class_subset_p.
12543         (ira_init_register_move_cost): Assert that move_cost,
12544         may_move_in_cost and may_move_out_cost already hold the desired
12545         values for their ira_* equivalents.  For the latter two,
12546         ignore classes that can't store a register of the given mode.
12548 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
12550         * ira.c (setup_allocno_and_important_classes): Use
12551         ira_class_hard_regs_num to check whether a class has any
12552         allocatable registers.
12553         (ira_init_register_move_cost): Likewise.
12555 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
12557         * ira.c (init_move_cost): Adjust local variable names to match
12558         file conventions.  Use ira_assert instead of gcc_assert.
12560 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
12562         * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
12563         Move these definitions and associated target_globals fields to...
12564         * ira-int.h: ...here.
12565         * rtl.h (init_move_cost): Delete.
12566         * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
12567         * ira.c: ...here, making the latter static.
12569 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
12571         * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
12572         and ira_register_move_cost instead of init_move_cost and move_cost.
12574 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
12576         * ira.h (target_ira): Delete x_ira_available_class_regs.
12577         (ira_available_class_regs): Delete.
12578         * ira.c (setup_available_class_regs): Delete.
12579         (setup_alloc_classes): Don't call it.
12580         (setup_pressure_classes): Use ira_class_hard_regs_num instead of
12581         ira_available_class_regs.
12582         * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
12583         (model_spill_cost): Likewise.
12584         * ira-build.c (low_pressure_loop_node_p): Likewise.
12585         * ira-color.c (color_pass): Likewise.
12586         * ira-emit.c (change_loop): Likewise.
12587         * ira-lives.c (inc_register_pressure, dec_register_pressure)
12588         (single_reg_class, ira_implicitly_set_insn_hard_regs)
12589         (process_bb_node_lives): Likewise.
12590         * loop-invariant.c (gain_for_invariant): Likewise.
12592 2012-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12594         PR target/52999
12595         * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
12596         (pa_section_type_flags): New.
12597         (pa_legitimate_constant_p): Revert previous change.
12599 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
12601         * ira.c (allocate_initial_values): Make static.
12603 2012-05-30  Uros Bizjak  <ubizjak@gmail.com>
12605         * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
12606         Generate tls_initial_exec_64_sun only when !TARGET_X32.
12608 2012-05-30  Richard Guenther  <rguenther@suse.de>
12610         PR middle-end/53501
12611         * fold-const.c (fold_binary_loc): Make sure to call
12612         fold_plusminus_mult_expr with the original sign of operands.
12614 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
12616         * Makefile.in: Fix many dependencies.
12617         (DWARF2_H): Depend on dwarf2.def.
12618         (RTL_ERROR_H): Depend on rtl-error.h.
12619         (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New.  Replace
12620         all gimple-pretty-print.h and tree-pretty-print.h references.
12622 2012-05-30  Marc Glisse  <marc.glisse@inria.fr>
12624         * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
12625         concatenations.
12627 2012-05-30  Richard Guenther  <rguenther@suse.de>
12629         PR middle-end/53522
12630         * tree-emutls.c (gen_emutls_addr): Do not add globals to
12631         referenced-vars.
12633 2012-05-30  Eric Botcazou  <ebotcazou@adacore.com>
12635         * explow.c (probe_stack_range): Restore simple control flow and stop
12636         again when the probe cannot be generated if HAVE_check_stack.
12638 2012-05-30  Jakub Jelinek  <jakub@redhat.com>
12640         PR rtl-optimization/53519
12641         * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
12642         instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
12644 2012-05-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12646         * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
12648 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
12650         PR debug/53453
12651         * doc/tm.texi: Update.
12652         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
12653         * target.def (force_at_comp_dir): New hook.
12654         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
12655         * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
12657 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
12659         * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
12660         Darwin >= 10.
12661         (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
12662         (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
12664 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
12666         PR target/51340
12667         * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
12668         flag_unsafe_math_optimizations is set.
12669         * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
12670         Update description of -mfused-madd.
12672 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
12674         PR target/52941
12675         * config/sh/predicates.md (atomic_arith_operand,
12676         atomic_logical_operand): New predicates.
12677         * config/sh/sh.c (sh_option_override): Check atomic options.
12678         * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
12679         UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
12680         (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
12681         UNSUPPORTED_HARD_ATOMIC_CPU.
12682         * config/sh/sync.md: Update description comments.
12683         (I12): New mode iterator.
12684         (fetchop_predicate, fetchop_constraint): New code attributes.
12685         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
12686         atomic_exchangesi_hard, atomic_exchange<mode>_hard,
12687         atomic_fetch_<fetchop_name>si_hard,
12688         atomic_fetch_<fetchop_name><mode>_hard,
12689         atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
12690         atomic_<fetchop_name>_fetchsi_hard,
12691         atomic_<fetchop_name>_fetch<mode>_hard,
12692         atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
12693         atomic_test_and_set_hard): New insns.
12694         (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
12695         atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
12696         atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
12697         atomic_test_and_set_soft): Use same formatting for the first line of
12698         the asm block as in new insns above.
12699         (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
12700         atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
12701         atomic_test_and_set): Integrate new *_hard insns into expanders.
12702         * config/sh/sh.opt (mhard-atomic): New option.
12703         * doc/invoke.texi (SH Options): Document it.
12705 2012-05-29  Meador Inge  <meadori@codesourcery.com>
12707         * c-decl.c (c_push_function_context): Always create a new language
12708         function.
12709         (c_pop_function_context): Clear the language function created in
12710         c_push_function_context.
12712 2012-05-29  Matt Turner  <mattst88@gmail.com>
12714         * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
12715         (define_bypass "ev6_fcmov"): New.
12717 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12719         * integrate.c: Remove.
12720         * integrate.h: Remove.
12721         * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
12722         * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
12723         * config/rs6000/t-rs6000: Likewise
12724         * config/spu/t-spu-elf: Likewise.
12725         * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
12726         get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
12727         from integrate.h to here.
12728         (initial_value_entry): New prototype.
12729         * reload.h (allocate_initial_values): Remove prototype.
12730         * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
12731         * cse.c (fixed_base_plus_p): Don't handle virtual registers for
12732         integrate.c.
12733         * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
12734         set_decl_abstract_flags, set_block_abstract_flags): Move from
12735         integrate.c to here, the only user.
12736         * expmed.c (extract_fixed_bit_field): Remove outdated comment
12737         about integrate.c.
12738         * function.c: Don't include integrate.h.
12739         (struct initial_value_pair, struct initial_value_struct,
12740         get_hard_reg_initial_val, has_hard_reg_initial_val,
12741         get_hard_reg_initial_reg, emit_initial_value_sets): Move from
12742         integrate.c to here.
12743         (initial_value_entry): New function.
12744         * genemit.c (main): Don't print integrate.h include line.
12745         * ira.c: Don't include integrate.h.
12746         (allocate_initial_values): Move from integrate.c to here.
12747         (ira): Update allocate_initial_values call.
12748         * tree-inline.c: Don't include integrate.h.
12749         (function_attribute_inlinable_p): Moved from integrate.c to here.
12750         * cfgexpand.c: Don't include integrate.h.
12751         * except.c: Likewise.
12752         * langhooks.c: Likewise.
12753         * passes.c: Likewise.
12754         * toplev.c: Likewise.
12755         * config/frv/frv.c: Likewise.
12756         * config/pa/pa.c: Likewise.
12757         * config/spu/spu.c: Likewise.
12758         * config/epiphany/epiphany.c: Likewise.
12759         * config/mep/mep.c: Likewise.
12760         * config/score/score.c: Likewise.
12761         * config/picochip/picochip.c: Likewise.
12762         * config/sh/sh.c: Likewise.
12763         * config/alpha/alpha.c: Likewise.
12764         * config/microblaze/microblaze.c: Likewise.
12765         * config/mips/mips.c: Likewise.
12766         * config/v850/v850.c: Likewise.
12767         * config/mmix/mmix.c: Likewise.
12768         * config/bfin/bfin.c: Likewise.
12769         * config/arm/arm.c: Likewise.
12770         * config/s390/s390.c: Likewise.
12771         * config/m32r/m32r.c: Likewise.
12772         * config/rs6000/rs6000.c: Likewise.
12773         * config/c6x/c6x.c: Include function.h instead of integrate.h.
12774         * config/tilegx/tilegx.c: Likewise.
12775         * config/tilepro/tilepro.c: Likewise.
12777 2012-05-29  Georg-Johann Lay  <avr@gjlay.de>
12779         * config/avr/t-avr (s-avr-mmcu-texi): Call
12780         gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
12782 2012-05-29  Michael Matz  <matz@suse.de>
12784         * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
12785         assign_temp): Remove 'keep' argument.
12786         (mark_temp_addr_taken): Remove prototype.
12787         * tree.h (expand_decl): Remove prototype.
12788         * function.c (struct temp_slot): Remove addr_taken and keep member.
12789         (assign_stack_temp_for_type) Don't initialize above, remove
12790         keep argument.
12791         (assign_stack_temp, assign_temp): Remove keep argument.
12792         (mark_temp_addr_taken): Remove.
12793         (preserve_temp_slots): Remove handling of addr_taken and keep members.
12794         (free_temp_slots): Ditto.
12795         * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
12796         dead code.
12797         * stmt.c (expand_asm_operands): Remove dead code.
12798         (expand_decl): Remove.
12799         * c-decl.c (finish_struct): Don't call expand_decl.
12800         * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
12801         and assign_stack_temp.
12802         * calls.c (save_fixed_argument_area, initialize_argument_information,
12803         expand_call, emit_library_call_value_1, store_one_arg): Ditto.
12804         * expmed.c (extract_bit_field_1): Ditto.
12805         * expr.c (emit_group_load_1, emit_group_store,
12806         copy_blkmode_from_reg, emit_push_insn, expand_assignment,
12807         store_field, expand_constructor, expand_cond_expr_using_cmove,
12808         expand_expr_real_2, expand_expr_real_1): Ditto.
12809         * stmt.c (expand_asm_operands, expand_return): Ditto.
12811         * function.c (pop_temp_slots): Call free_temp_slots.
12812         * calls.c (store_one_arg): Don't call preserve_temp_slots or
12813         free_temp_slots.
12814         * expr.c (expand_assignment): Don't call free_temp_slots.
12816         * config/arm/arm.c (neon_expand_vector_init): Ditto.
12817         * config/i386/i386.c (ix86_expand_vector_set): Ditto.
12818         (ix86_expand_vector_extract): Ditto.
12819         * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
12820         ia64_expand_movxf_movrf): Ditto.
12821         * config/mips/mips.c (mips_expand_vi_general): Ditto.
12822         * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
12823         extendsfdf2): Ditto.
12824         * config/rs6000/rs6000.c (rs6000_expand_vector_init,
12825         rs6000_expand_vector_set, rs6000_expand_vector_extract,
12826         rs6000_allocate_stack_temp): Ditto.
12827         * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
12828         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
12829         sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
12830         sparc_expand_vector_init): Ditto.
12832 2012-05-29  Michael Matz  <matz@suse.de>
12834         * c-tree.h (c_expand_decl): Remove prototype.
12836         * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
12837         a kept temp.
12838         (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
12839         * gimple-fold.c (canonicalize_constructor_val): Canonicalize
12840         COMPOUND_LITERAL_EXPR.
12841         * function.c (expand_function_start): Don't call expand_decl,
12842         instead assert that we have RTL assigned.
12843         * tree-ssa-live.c (remove_unused_locals): Clear
12844         nonlocal_goto_save_area if its backing variable is removed.
12845         * stmt.c (expand_asm_operands): Remove handling of non-lvalues
12846         as mem inputs.
12847         (expand_decl): Assert that this does nothing.
12848         * calls.c (expand_call): Don't call mark_temp_addr_taken.
12850 2012-05-29  Richard Guenther  <rguenther@suse.de>
12852         PR tree-optimization/53516
12853         * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
12854         bitfield accesses.
12855         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
12857 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
12859         * LANGUAGES: Fix typos.
12860         * Makefile.in: Fix typos.
12861         * alias.c: Fix typos.
12862         * auto-inc-dec.c: Fix typos.
12863         * bb-reorder.c: Fix typos.
12864         * cfgcleanup.c: Fix typos.
12865         * cgraph.c: Fix typos.
12866         * cgraph.h: Fix typos.
12867         * cgraphunit.c: Fix typos.
12868         * collect2-aix.h: Fix typos.
12869         * collect2.c: Fix typos.
12870         * compare-elim.c: Fix typos.
12871         * config/alpha/vms.h: Fix typos.
12872         * config/arm/README-interworking: Fix typos.
12873         * config/arm/arm.c: Fix typos.
12874         * config/arm/iterators.md: Fix typos.
12875         * config/arm/vxworks.h: Fix typos.
12876         * config/avr/avr.c: Fix typos.
12877         * config/avr/avr.h: Fix typos.
12878         * config/avr/avr.md: Fix typos.
12879         * config/avr/builtins.def: Fix typos.
12880         * config/c6x/c6x.c: Fix typos.
12881         * config/cr16/cr16.c: Fix typos.
12882         * config/cr16/cr16.md: Fix typos.
12883         * config/cris/cris.md: Fix typos.
12884         * config/darwin.c: Fix typos.
12885         * config/darwin.opt: Fix typos.
12886         * config/i386/i386-c.c: Fix typos.
12887         * config/i386/i386.c: Fix typos.
12888         * config/ia64/ia64.c: Fix typos.
12889         * config/m68k/cf.md: Fix typos.
12890         * config/mep/mep.c: Fix typos.
12891         * config/microblaze/microblaze.c: Fix typos.
12892         * config/microblaze/microblaze.h: Fix typos.
12893         * config/mn10300/mn10300.c: Fix typos.
12894         * config/mn10300/mn10300.md: Fix typos.
12895         * config/pa/pa.c: Fix typos.
12896         * config/picochip/picochip.h: Fix typos.
12897         * config/rs6000/a2.md: Fix typos.
12898         * config/rs6000/rs6000.c: Fix typos.
12899         * config/rs6000/vector.md: Fix typos.
12900         * config/rx/rx.md: Fix typos.
12901         * config/rx/rx.opt: Fix typos.
12902         * config/s390/2097.md: Fix typos.
12903         * config/s390/s390.c: Fix typos.
12904         * config/s390/s390.h: Fix typos.
12905         * config/sh/sh.c: Fix typos.
12906         * config/sh/sh.md: Fix typos.
12907         * config/sparc/sync.md: Fix typos.
12908         * config/spu/spu.c: Fix typos.
12909         * config/spu/spu.md: Fix typos.
12910         * config/vms/vms.c: Fix typos.
12911         * config/vxworks-dummy.h: Fix typos.
12912         * config/vxworks.h: Fix typos.
12913         * cselib.c: Fix typos.
12914         * df-scan.c: Fix typos.
12915         * df.h: Fix typos.
12916         * doc/extend.texi: Fix typos.
12917         * doc/install.texi: Fix typos.
12918         * doc/invoke.texi: Fix typos.
12919         * doc/md.texi: Fix typos.
12920         * doc/plugins.texi: Fix typos.
12921         * doc/rtl.texi: Fix typos.
12922         * dse.c: Fix typos.
12923         * dwarf2asm.c: Fix typos.
12924         * dwarf2out.c: Fix typos.
12925         * except.h: Fix typos.
12926         * expr.c: Fix typos.
12927         * fold-const.c: Fix typos.
12928         * gcc.c: Fix typos.
12929         * gcse.c: Fix typos.
12930         * genautomata.c: Fix typos.
12931         * gengtype-state.c: Fix typos.
12932         * gengtype.c: Fix typos.
12933         * genhooks.c: Fix typos.
12934         * gimple-fold.c: Fix typos.
12935         * gimple-pretty-print.c: Fix typos.
12936         * gimple.c: Fix typos.
12937         * gimple.h: Fix typos.
12938         * gimplify.c: Fix typos.
12939         * graphite-interchange.c: Fix typos.
12940         * graphite-sese-to-poly.c: Fix typos.
12941         * ifcvt.c: Fix typos.
12942         * input.c: Fix typos.
12943         * ipa-cp.c: Fix typos.
12944         * ipa-inline-analysis.c: Fix typos.
12945         * ipa-inline-transform.c: Fix typos.
12946         * ipa-inline.c: Fix typos.
12947         * ipa-pure-const.c: Fix typos.
12948         * ipa-ref.h: Fix typos.
12949         * ipa-reference.c: Fix typos.
12950         * ipa-utils.c: Fix typos.
12951         * ipa.c: Fix typos.
12952         * ira-emit.c: Fix typos.
12953         * ira-lives.c: Fix typos.
12954         * lto-streamer.c: Fix typos.
12955         * lto-streamer.h: Fix typos.
12956         * lto-wrapper.c: Fix typos.
12957         * mcf.c: Fix typos.
12958         * mode-switching.c: Fix typos.
12959         * modulo-sched.c: Fix typos.
12960         * plugin.c: Fix typos.
12961         * postreload.c: Fix typos.
12962         * sched-deps.c: Fix typos.
12963         * sel-sched-ir.c: Fix typos.
12964         * sel-sched-ir.h: Fix typos.
12965         * sel-sched.c: Fix typos.
12966         * sese.c: Fix typos.
12967         * stor-layout.c: Fix typos.
12968         * target-hooks-macros.h: Fix typos.
12969         * target.def: Fix typos.
12970         * trans-mem.c: Fix typos.
12971         * tree-eh.c: Fix typos.
12972         * tree-predcom.c: Fix typos.
12973         * tree-sra.c: Fix typos.
12974         * tree-ssa-address.c: Fix typos.
12975         * tree-ssa-loop-ivopts.c: Fix typos.
12976         * tree-ssa-loop-niter.c: Fix typos.
12977         * tree-ssa-math-opts.c: Fix typos.
12978         * tree-ssa-pre.c: Fix typos.
12979         * tree-ssa-propagate.c: Fix typos.
12980         * tree-ssa-reassoc.c: Fix typos.
12981         * tree-ssa-sccvn.c: Fix typos.
12982         * tree-ssa-ter.c: Fix typos.
12983         * tree-ssa-uninit.c: Fix typos.
12984         * tree-ssanames.c: Fix typos.
12985         * tree-vect-generic.c: Fix typos.
12986         * tree-vect-slp.c: Fix typos.
12987         * tree.c: Fix typos.
12988         * tree.h: Fix typos.
12989         * varasm.c: Fix typos.
12990         * varpool.c: Fix typos.
12992 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
12994         * doc/include/texinfo.tex: Update to version 2012-05-16.16.
12996 2012-05-29  Richard Guenther  <rguenther@suse.de>
12998         * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
12999         for globals.
13000         (add_referenced_var_1): Re-organize.  Assert we are not
13001         called for globals.
13002         (remove_referenced_var): Likewise.
13003         * varpool.c (add_new_static_var): Use create_tmp_var_raw.
13004         * tree-mudflap.c (execute_mudflap_function_ops): Do not
13005         call add_referenced_var on globals.
13006         * matrix-reorg.c (transform_access_sites): Likewise.
13008 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
13010         * alias.c (reg_known_value): Make this a VEC.
13011         (reg_known_equiv_p): Make this an sbitmap.
13012         (reg_known_value_size): Remove.
13013         (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
13014         set_reg_known_equiv_p): Update for reg_known_value and
13015         reg_known_value_size data structure change.
13016         (init_alias_analysis, end_alias_analysis): Likewise.
13018 2012-05-29  Jakub Jelinek  <jakub@redhat.com>
13020         PR middle-end/53510
13021         * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
13022         to avoid leaking memory.  No need to handle memory allocation
13023         failure.  Double string_len on each reallocation instead of adding 2.
13024         * gcov.c (read_line): Likewise.
13026 2012-05-29  Hans-Peter Nilsson  <hp@axis.com>
13028         * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
13029         New macros.
13030         * config/cris/cris.md ("trap"): Define, enabled for
13031         TARGET_TRAP_USING_BREAK8.
13032         * config/cris/cris.opt (mtrap-using-break8): New option.
13034 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
13036         PR c++/25137
13037         * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
13038         for C++.
13040 2012-05-28  Hans-Peter Nilsson  <hp@axis.com>
13042         * doc/md.texi (stack_protect_test): Remove negation of branch to label.
13043         (Standard Names): Fix typos in documentation of atomic patterns.
13045 2012-05-27  Nathan Sidwell  <nathan@acm.org>
13047         * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
13049 2012-05-26  Jason Merrill  <jason@redhat.com>
13051         PR c++/53220
13052         * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
13053         about array compound literals.
13055 2012-05-26  Eric Botcazou  <ebotcazou@adacore.com>
13057         * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
13058         if CLEANUP_NO_INSN_DEL.
13059         * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
13060         from cfg_layout_merge_blocks.
13061         (emit_nop_for_unique_locus_between): New function.
13062         (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
13063         (cfg_layout_merge_blocks): Likewise.
13065 2012-05-26  Dimitrios Apostolou  <jimis@gmx.net>
13066             Paolo Bonzini  <bonzini@gnu.org>
13068         * df-scan.c (df_def_record_1): Assert a parallel must contain an
13069         EXPR_LIST at this point.  Receive the LOC and move its extraction...
13070         (df_defs_record): ... here. Change if-else to a switch statement.
13071         (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
13072         (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
13073         and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
13074         DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
13075         regs_invalidated_by_call.
13076         (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
13077         df_get_call_refs().
13079 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13081         PR lto/52178
13082         * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
13083         * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
13085 2012-05-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
13087         * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
13088         software floating point emulation.  No longer build the multilibs
13089         with -mstrict-align.
13091 2012-05-25  Aldy Hernandez  <aldyh@redhat.com>
13093         PR middle-end/53008
13094         * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
13095         accessed indirectly.
13096         (ipa_tm_create_version): Same.
13098 2012-05-25  Uros Bizjak  <ubizjak@gmail.com>
13100         PR target/53474
13101         * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
13102         <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
13104 2012-05-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13106         PR target/53435
13107         * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
13108         (ix86_expand_vec_perm): Use int mode instead of float.
13109         (expand_vec_perm_pshufb): Remove handling of useseless type
13110         conversion.
13112 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13114         PR ada/52362
13115         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
13116         gnu_ld variables to yes.
13117         * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
13118         (HAVE_GNU_AS): Likewise.
13119         * config.in: Regenerate.
13120         * configure: Likewise.
13122 2012-05-25  Tristan Gingold  <gingold@adacore.com>
13124         * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
13125         (ix86_compute_frame_layout): Fix type of stack_alignment_needed
13126         and preferred_alignment.
13128 2012-05-25  Tristan Gingold  <gingold@adacore.com>
13130         * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
13132 2012-05-25  Thomas Schwinge  <thomas@codesourcery.com>
13134         * fold-const.c (optimize_bit_field_compare): Abort early in the strict
13135         volatile bitfields case.
13137 2012-05-24  Pat Haugen  <pthaugen@us.ibm.com>
13139         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
13140         rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
13141         (adjacent_mem_locations): Move some code to and call...
13142         (get_memref_parts): ...new function.
13143         (mem_locations_overlap): New function.
13144         (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
13145         (is_mem_ref): Rename to...
13146         (find_mem_ref): ...this. Return MEM rtx.
13147         (get_store_dest): Remove function.
13148         (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
13149         new parameter and adjust calls.
13150         (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
13151         mem refs overlap for true_store_to_load_dep_costly.
13152         (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
13153         passed to adjacent_mem_locations.
13154         (is_costly_group): Walk resolved dependency list.
13155         (force_new_group): Emit group ending nop for Power6/Power7.
13156         * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
13157         (group_ending_nop): New define_insn.
13159 2012-05-24  Dodji Seketeli  <dodji@redhat.com>
13161         Make unwound macro expansion trace less redundant
13162         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
13163         context of macro definition in the trace, when it's redundant.
13164         Update comments.
13166 2012-05-24  Richard Guenther  <rguenther@suse.de>
13168         PR middle-end/53460
13169         * tree-profile.c (tree_profiling): Cleanup the CFG if
13170         execute_fixup_cfg requests it.
13172 2012-05-24  Richard Guenther  <rguenther@suse.de>
13174         * tree-flow.h (create_var_ann): Remove.
13175         * tree-dfa.c (create_var_ann): Remove and inline into its
13176         single caller ...
13177         (add_referenced_var_1): ... here.
13178         * varpool.c (add_new_static_var): Do not call add_referenced_var
13179         for global vars.
13180         * gimple-fold.c (canonicalize_constructor_val): Likewise.
13181         * tree-switch-conversion.c (build_one_array): Likewise.
13182         * tree-profile.c (gimple_gen_ic_profiler): Likewise.
13183         * tree-flow-inline.h (gimple_referenced_vars): Guard against
13184         NULL fn argument.
13185         * tree-inline.c (remap_gimple_op_r): Likewise.  Check
13186         gimple_referenced_vars instead of gimple_in_ssa_p.
13187         (copy_tree_body_r): Likewise.
13188         (setup_one_parameter): Likewise.
13189         (declare_return_variable): Likewise.
13190         (tree_function_versioning): Likewise.
13192 2012-05-24  Jakub Jelinek  <jakub@redhat.com>
13194         PR tree-optimization/53465
13195         * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
13196         vr0 into *vr, then vrp_meet that.
13197         (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
13198         have any equivalences.
13199         (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
13200         first time.
13202 2012-05-24  Jim MacArthur  <jim.macarthur@arm.com>
13204         * recog.c (reg_fits_class_p): Check both regno and regno + offset are
13205         hard registers.
13206         * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
13207         check end_regno - 1 is a hard register.
13209 2012-05-24  Richard Guenther  <rguenther@suse.de>
13211         * varpool.c (add_new_static_var): Remove call to create_var_ann.
13212         * tree-ssa-operands.c (create_vop_var): Likewise.
13214 2012-05-24  Richard Guenther  <rguenther@suse.de>
13216         PR bootstrap/53466
13217         * tree-ssa-live.c (remove_unused_scope_block_p): Properly
13218         handle globals.
13219         (remove_unused_locals): Pass global_unused_vars to
13220         remove_unused_scope_block_p.  Restore code walking all
13221         referenced vars and pruning them.
13223 2012-05-23  Jan Hubicka  <jh@suse.cz>
13225         * tree.h (alias_diag_flags): Remove.
13226         (alias_pair): Remove emitted_diags.
13227         (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
13228         symbol_alias_set_t, symbol_alias_set_destroy,
13229         symbol_alias_set_contains, propagate_aliases_backward): Remove.
13230         * toplev.c (compile_file): Do not call finish_aliases_2
13231         * cgraphunit.c (cgraph_process_new_functions): Do not call
13232         finish_aliases_1.
13233         (handle_alias_pairs): Output diagnostics about aliases to externals.
13234         (assemble_thunks_and_aliases): Use do_assemble_alias.
13235         (output_weakrefs): Likewise.
13236         (finalize_compilation_unit): Do not call finish_aliases_1.
13237         * ipa.c (symtab_remove_unreachable_nodes): De not call
13238         remove_unreachable_alias_pairs.
13239         * varasm.c (do_assemble_alias): Export.
13240         (symbol_alias_set_create, symbol_alias_set_destroy,
13241         symbol_alias_set_contains, symbol_alias_set_insert,
13242         propagate_aliases_forward, propagate_aliases_backward,
13243         propagate_aliases_backward, trivially_visible_alias,
13244         trivially_defined_alias, remove_unreachable_alias_pairs,
13245         finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
13246         * output.h (do_assemble_alias): Declare.
13247         * varpool.c (varpool_remove_unreferenced_decls): Do not call
13248         finish_aliases_1.
13250 2012-05-23  Martin Jambor  <mjambor@suse.cz>
13252         * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
13254 2012-05-23  Eric Botcazou  <ebotcazou@adacore.com>
13256         * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
13257         size handling.
13258         (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
13259         (iterative_hash_gimple_type): Adjust comment.
13260         (iterative_hash_canonical_type): Likewise.  Hash the bounds of the
13261         domain for an array type instead of the domain type itself.
13263 2012-05-23  Richard Guenther  <rguenther@suse.de>
13265         PR tree-optimization/53438
13266         * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
13268 2012-05-23  Georg-Johann Lay  <avr@gjlay.de>
13270         PR target/53448
13271         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
13272         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
13273         ASM_OUTPUT_ALIGN.
13275 2012-05-23  Richard Guenther  <rguenther@suse.de>
13277         * tree-dfa.c (add_referenced_var_1): Do not add global vars.
13278         * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
13279         via the global_unused_vars bitmap.
13280         (remove_unused_locals): Handle global vars in local-decls via
13281         a global_unused_vars bitmap instead of the used flag in the
13282         var annotation.  Simplify global variable handling and removal.
13284 2012-05-22  Jan Hubicka  <jh@suse.cz>
13286         PR middle-end/53426
13287         * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
13288         from other partitions.
13290 2012-05-22  Jan Hubicka  <jh@suse.cz>
13292         PR middle-end/53161
13293         * symtab.c (symtab_register_node): Fix ordering issue.
13295 2012-05-22  Steven Drake <sbd@NetBSD.org>
13297         * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
13299 2012-05-22  David Edelsohn  <dje.gcc@gmail.com>
13301         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
13302         Use strip_name_encoding target hook.
13304 2012-05-22  Richard Guenther  <rguenther@suse.de>
13306         * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
13307         (init_function_for_compilation): Remove.
13308         * tree-dfa.c (find_vars_r): Take struct function argument.
13309         (find_referenced_vars_in): Adjust.
13310         * tree-ssa-operands.c (clobber_stats): Remove.
13311         (create_vop_var): Take struct function argument.  Mark
13312         virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
13313         (init_ssa_operands): Take struct function argument.
13314         (fini_ssa_operands): Do not dump dead stats.
13315         * tree-ssa-operands.h (init_ssa_operands): Take struct function
13316         argument.
13317         * cgraphunit.c (init_lowered_empty_function): Adjust.
13318         * lto-streamer-in.c (input_cfg): Likewise.
13319         * tree-inline.c (initialize_cfun): Likewise.
13320         * tree-into-ssa.c (rewrite_into_ssa): Likewise.
13321         * omp-low.c (expand_omp_taskreg): Likewise.  Avoid switching cfun.
13322         * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
13323         virtual operands are not registers.
13325 2012-05-22  Richard Guenther  <rguenther@suse.de>
13327         * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
13329 2012-05-22  Richard Guenther  <rguenther@suse.de>
13331         PR middle-end/53437
13332         * tree-inline.c (setup_one_parameter): Create a dummy init
13333         statement for unused parameters when not optimizing.
13335 2012-05-22  Richard Guenther  <rguenther@suse.de>
13337         * tree-flow.h (add_referenced_var_1): Declare.
13338         (add_referenced_var): Define.
13339         * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
13340         (add_referenced_var): Rename to ...
13341         (add_referenced_var_1): ... this.  Take struct function argument.
13343 2012-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13345         PR target/53334
13346         * config/arm/arm-protos.h (arm_validize_comparison): Declare.
13347         * config/arm/arm.c (arm_validize_comparison): Define.
13348         * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
13349         arm_validize_comparison.
13350         ("cbranchdi4"): Likewise.
13351         ("cstoredi4"): Likewise.
13352         ("movsicc"): Likewise.
13353         ("movsfcc"): Likewise.
13354         ("movdfcc"): Likewise.
13356 2012-05-22  Dimitrios Apostolou  <jimis@gmx.net>
13358         * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
13359         the mw_reg_pool size.
13361 2012-05-22  Paolo Bonzini  <bonzini@gnu.org>
13363         PR tree-optimization/53336
13364         * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
13365         non-integer integral types to offset type and vice versa.
13367 2012-05-22  Alan Modra  <amodra@gmail.com>
13369         * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
13370         * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
13371         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
13372         V_SAVE_INLINE): Delete.
13373         * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
13374         (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
13375         For ELF targets, use out-of-line restores for -Os and any number
13376         of regs if the restore exits, and out-of-line gp save for two or
13377         more regs.  Use save_reg_p to test for holes in reg restore set.
13378         Replace "#if" with "if".
13380 2012-05-22  Alan Modra  <amodra@gmail.com>
13382         * config/rs6000/rs6000.c (save_reg_p): New function.
13383         (first_reg_to_save, first_fp_reg_to_save): Use it here.
13384         (first_altivec_reg_to_save, restore_saved_cr): Likewise.
13385         (emit_frame_save): Use gen_frame_store.
13386         (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
13387         (rs6000_emit_prologue): Use save_reg_p.  Use gen_frame_store for
13388         vrsave and toc.
13389         (rs6000_emit_epilogue): Use save_reg_p.  Use gen_frame_load for
13390         vrsave, toc, gp and fp restores.
13392 2012-05-22  Alan Modra  <amodra@gmail.com>
13394         * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
13395         Move those with ATTRIBUTE_UNUSED to immediately before definitions.
13396         Move function pointer variables after forward declarations.
13397         (rs6000_builtin_support_vector_misalignment): Make static.
13398         (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
13399         (rs6000_function_value, rs6000_can_eliminate): Likewise.
13401 2012-05-21  Bernd Schmidt  <bernds@codesourcery.com>
13403         PR rtl-optimization/53373
13404         * caller-save.c (save_call_clobbered_regs): Look into a possible
13405         PARALLEL manually rather than using single_set on a call insn.
13407 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
13409         PR tree-optimization/53436
13410         * omp-low.c (omp_build_component_ref): New function.
13411         (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
13413 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
13415         * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
13416         arguments to bool.
13417         (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
13418         Do not print '.' here.  Output operand lossage error for unhandled
13419         sizes.  Move.
13420         <case '*'>: Move.
13421         <case '&'>: Ditto.
13422         <case 'Y'>: Ditto.
13423         <case 'z'>: Hardcode "code" argument into error strings.
13424         <case 'Z'>: Ditto.
13425         <case 'D'>: Merge AVX and non-AVX codes.
13426         <case 'C', case 'c', case 'F', case 'f'>: Merge.  Fix error string.
13427         Update call to put_condition_code.
13429 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
13431         * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2.  Call
13432         CC_STATUS_INIT.
13433         (clzsi2): New expander.
13434         (*clzsi2_68k): New insn.
13435         * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
13437 2012-05-21  Aldy Hernandez  <aldyh@redhat.com>
13439         * gimple.h (gimple_set_in_transaction): Remove.
13440         (gimple_in_transaction): Look in BB instead.
13441         (gimple_statement_base): Remove in_transaction field.
13442         * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
13443         * trans-mem.c (compute_transaction_bits): Place transaction bit
13444         information into basic blocks.
13446 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
13448         * expr.c (get_def_for_expr_class): Define only if
13449         HAVE_conditional_move.
13450         (convert_tree_comp_to_rtx): Likewise.
13452 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
13454         PR target/53399
13455         * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
13456         for TARGET_BMI.
13457         (ffssi2_no_cmove): Ditto.
13458         (*ffs<mode>_1): Remove insn pattern.
13459         (*tzcnt<mode>_1): New insn pattern.
13460         (*bsf<mode>1): Ditto.
13462 2012-05-21  Richard Guenther  <rguenther@suse.de>
13464         * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
13465         more referenced vars.
13466         * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
13467         flag on variables that have a var-annotation.
13469 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
13471         PR c/53418
13472         * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
13473         from folded operands before wrapping another around the
13474         conditional expression.
13476 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
13478         PR tree-optimization/53366
13479         * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
13480         tests if complex_numbers == 2, but there are non-complex number loads
13481         too.
13483         PR tree-optimization/53409
13484         * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
13485         vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
13487         PR tree-optimization/53410
13488         * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
13489         instead of build_int_cst (type, 0) where vector types might be
13490         involved. Instead of build_int_cst (type, 1) convert the original
13491         integer_onep argument to the desired type.
13493 2012-05-21  Michael Matz  <matz@suse.de>
13495         * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
13496         (simplify_test_exp): Handle one more case of distributive law,
13497         decrease cost threshold.
13498         (tests_attr_p, get_attr_order): New functions.
13499         (optimize_attrs): Use topological order, inline only cheap values.
13500         (write_attr_set): Reset our_known_true after some time.
13502 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13504         PR target/53425
13505         * config/i386/i386.c (type_natural_mode): Warn passing SSE
13506         vector argument without SSE enabled changes the ABI.
13508 2012-05-21  Richard Guenther  <rguenther@suse.de>
13510         PR tree-optimization/53408
13511         * tree-vect-loop.c (vectorizable_induction): Properly check
13512         the restriction that we cannot handle induction results from
13513         the inner loop outside of the outer loop.
13515 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13517         PR target/53416
13518         * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
13519         (UNSPECV_RDRAND): This.
13520         (rdrand<mode>_1): Updated.
13522 2012-05-21  Richard Guenther  <rguenther@suse.de>
13524         * tree-loop-distribution.c (can_generate_builtin): Reject
13525         volatile stmts.
13527 2012-05-21  Chung-Lin Tang  <cltang@codesourcery.com>
13529         * Makefile.in (options.c): Add options.h to included header
13530         files, before tm.h.
13532 2012-05-21  Razya Ladelsky  <razya@il.ibm.com>
13534         * tree-parloops.c : Add myself to contributors, update
13535         TODO list, add link to wiki.
13537 2012-05-21  Alan Modra  <amodra@gmail.com>
13539         * config/rs6000/predicates.md (input_operand): Don't match
13540         constant pool addresses.  Remove label_ref, high and plus from
13541         match_code list.  Remove redundant CONSTANT_P test.
13542         (splat_input_operand): Similarly update match_code list.
13543         (small_toc_ref): New predicate.
13544         * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
13545         * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
13546         (legitimate_constant_pool_address_p): Move TARGET_TOC test and
13547         register checks to..
13548         (toc_relative_expr_p): ..here.  Add "strict" param.  Match new rtl
13549         generated by create_TOC_reference.
13550         (rs6000_legitimize_address): Update cerate_TOC_reference call.
13551         (rs6000_delegitimize_address): Handle new rtl for toc refs.
13552         (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
13553         (use_toc_relative_ref): New function, split out from..
13554         (rs6000_emit_move): ..here.  Remove redundant tests.  Update
13555         create_TOC_reference calls.
13556         (rs6000_legitimize_reload_address): Formatting.  Handle splitting
13557         of medium/large model toc addresses.  Use use_toc_relative_ref.
13558         (print_operand): Formatting, style.  Adjust for toc changes.
13559         (print_operand_address): Likewise.
13560         (rs6000_output_addr_const_extra): Likewise.
13561         (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
13562         than a PLUS.  Use this formulation for both high and low part
13563         of -mcmodel=medium/large toc reference too.  Before reload,
13564         always use the small model formulation.
13565         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
13566         a PLUS in high part of addresses here.
13567         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
13568         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
13569         (largetoc_high, largetoc_low): Move earlier.  Cope when no
13570         base reg available.
13571         (largetoc_high_plus): New insn.
13572         (movsi_internal1, movsi_internal1_single, movsf_softfloat,
13573         movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
13574         (tocref): ..instead do so here, new insn and split.
13576 2012-05-20  H.J. Lu  <hongjiu.lu@intel.com>
13578         * config/i386/driver-i386.c (host_detect_local_cpu): Support
13579         RDRND, F16C and FSGSBASE.
13581 2012-05-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13583         PR rtl-optimzation/53373
13584         * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
13585         call pattern.  Update split patterns.
13586         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
13587         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
13589 2012-05-20  Razya Ladelsky  <razya@il.ibm.com>
13591         * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
13592         for outer loops.
13594 2012-05-18  Jan Hubicka  <jh@suse.cz>
13596         * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
13597         (cgraph_process_new_functions): Process also aliases.
13598         * lto-streamer-out.c (struct sets): Remove.
13599         (trivally_defined_alias): Remove.
13600         (output_alias_pair_p): Remove.
13601         (output_unreferenced_globals): Remove.
13602         (produce_symtab); Do not handle alias pairs.
13603         (produce_asm_for_decls): Likewise.
13604         * lto-streamer-in.c (input_alias_pairs): Remove.
13605         (lto_read_body): Do not input alias pairs.
13606         (lto_input_constructors_and_inits): Remove.
13608 2012-05-18  Jan Hubicka  <jh@suse.cz>
13610         * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
13611         aliases.
13613 2012-05-18  Jan Hubicka  <jh@suse.cz>
13615         * cgraphbuild.c (record_reference): Update.
13616         * lto-cgraph.c (lto_output_varpool_node): External vars
13617         are not in other partition even if they are not output
13618         in current partition.
13619         * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
13620         argument; fix.
13621         (canonicalize_constructor_val): Take FROM_DECL argument.
13622         (fold_ctor_reference, fold_string_cst_ctor_reference,
13623         fold_array_ctor_reference, fold_nonarray_ctor_reference,
13624         fold_ctor_reference): Likewise.
13625         (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
13626         * gimple.h (gimple_fold_builtin): Likewise.
13628 2012-05-18  Olivier Hainque  <hainque@adacore.com>
13630         * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
13631         $(libsubdir) as libexecsubdir.
13633 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13635         * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
13636         relied on signed overflow behavior.
13638 2012-05-18  Richard Guenther  <rguenther@suse.de>
13640         PR tree-optimization/53346
13641         * tree-loop-distribution.c (ldist_gen): Make sure to apply
13642         builtin transform even when only a single partition with
13643         all reads/writes exists.
13645 2012-05-18  Richard Guenther  <rguenther@suse.de>
13647         PR tree-optimization/53390
13648         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
13649         strided loads.
13651 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13653         * tree-ssa-reassoc.c (bip_map): Remove decl.
13654         (completely_remove_stmt): Remove function.
13655         (remove_def_if_absorbed_call): Remove function.
13656         (remove_visited_stmt_chain): Remove __builtin_powi handling.
13657         (possibly_move_powi): Remove function.
13658         (rewrite_expr_tree): Remove calls to possibly_move_powi.
13659         (rewrite_expr_tree_parallel): Likewise.
13660         (attempt_builtin_powi): Build multiplies explicitly rather than
13661         relying on the ops vector and rank system.
13662         (transform_stmt_to_copy): New function.
13663         (transform_stmt_to_multiply): Likewise.
13664         (reassociate_bb): Handle leftover operations after __builtin_powi
13665         optimization; build a final multiply if necessary.
13667 2012-05-18  Jan Hubicka  <jh@suse.cz>
13669         * cgraphunit.c (varpool_finalize_decl): Allow external decls.
13670         (mark_functions_to_output): Fix sanity check.
13671         * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
13673 2012-05-18  Richard Guenther  <rguenther@suse.de>
13675         * tree-flow.h (mark_symbols_for_renaming): Remove.
13676         * tree-dfa.c (mark_symbols_for_renaming): Likewise.
13677         * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
13678         (copy_debug_stmt): Likewise.
13679         (expand_call_inline): Likewise.
13680         (declare_return_variable): Mark the return variable for renaming
13681         if necessary.
13683 2012-05-18  Andrew Stubbs  <ams@codesourcery.com>
13685         * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
13686         prototype.
13687         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
13688         * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
13689         (ashrdi3,lshrdi3): Likewise.
13690         (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
13692 2012-05-18  Meador Inge  <meadori@codesourcery.com>
13694         PR rtl-optimization/53352
13695         * cse.c (equiv_constant): Ignore paradoxical subregs.
13697 2012-05-17  Steven Bosscher  <steven@gcc.gnu.org>
13699         PR rtl-optimization/53125
13700         * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
13701         argument.  Simplify calculation of REG_LIVE_LENGTH for regnos that
13702         die in the basic block.  Correctly top off REG_FREQ and
13703         REG_FREQ_CALLS_CROSSED.
13704         Remove do_not_gen.
13705         (regstat_compute_ri): Allocate and free local_live_last_luid.
13706         Remove do_not_gen.
13707         (regstat_bb_compute_calls_crossed): Correctly top off
13708         REG_FREQ_CALLS_CROSSED.
13710 2012-05-17  Jan Hubicka  <jh@suse.cz>
13712         * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
13713         constructor over decl without.
13714         * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
13715         * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
13716         * cgraphunit.c (process_function_and_variable_attributes): Finalize
13717         extrnal decls.
13718         (mark_functions_to_output): Also accept bodies for functions with
13719         clones.
13720         (output_in_order): Skip external vars.
13721         * lto-cgraph.c (lto_output_node): External functions are never in other
13722         partition.
13723         (lto_output_varpool_node): Likewise.
13724         * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
13725         forgotten initializers.
13726         * ipa.c (process_references): Handle external vars.
13727         (symtab_remove_unreachable_nodes): Update to handle external vars.
13728         (varpool_externally_visible_p): External vars are externally visible.
13729         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
13730         * varpool.c (varpool_remove_node): Remove constructor.
13731         (decide_is_variable_needed): Handle externals.
13732         (varpool_remove_unreferenced_decls): Likewise.
13734 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13736         * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
13737         (enable_warning_as_error): Do not special case Wuninitialized.
13738         * optc-gen.awk: Add sanity checks.
13740 2012-05-17  Jan Hubicka  <jh@suse.cz>
13742         * ipa-reference.c (is_proper_for_analysis): Do not check flags
13743         that might change as result of global optimization.
13744         (analyze_function): Do not check analyzed and externally_visible
13745         flags; be happy about address dereferences.
13746         (propagate): Prune all_module_statics so it really contains just
13747         statics; prune all the local summaries.
13748         (ipa_reference_write_optimization_summary): Simplify.
13750 2012-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
13752         * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
13753         * config/m68k/m68k-tables.opt: Regenerated.
13754         * doc/invoke.texi (M680x0 Options): Document.
13756 2012-05-16  Dave Boutcher  <daveboutcher@gmail.com>
13757             Patrick Marlier  <patrick.marlier@gmail.com>
13759         * trans-mem.c (ipa_tm_transform_clone): Transform functions with
13760         indirect calls.
13762 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13764         * configure: Regenerated.
13766 2012-05-16  Andrew Pinski  <apinski@cavium.com>
13768         * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
13769         GIMPLE_ASSIGN.
13771 2012-05-16  David S. Miller  <davem@davemloft.net>
13773         * jump.c (delete_related_insns): If we remove a CALL, make sure
13774         we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
13776 2012-05-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13778         PR tree-optimization/53217
13779         * tree-ssa-reassoc.c (bip_map): New static variable.
13780         (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
13781         (attempt_builtin_powi): Save feeding multiplies on a stack.
13782         (reassociate_bb): Create and destroy bip_map.
13784 2012-05-16  Olivier Hainque  <hainque@adacore.com>
13786         * Makefile.in (install-no-fixedincludes): New target, former toplevel
13787         gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
13788         Add comments and improve stamp preservation across the whole sequence.
13789         (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
13791 2012-05-16  Richard Guenther  <rguenther@suse.de>
13793         * tree-inline.c (insert_init_stmt): Do not call
13794         mark_symbols_for_renaming.
13795         (setup_one_parameter): Avoid initializing unused parameters.
13796         (declare_return_variable): Properly handle DECL_BY_REFERENCE
13797         return vars in SSA form.
13799 2012-05-16  Richard Guenther  <rguenther@suse.de>
13801         * tree-flow.h (get_virtual_var): Remove.
13802         * tree-dfa.c (get_virtual_var): Likewise.
13804 2012-05-16  Richard Guenther  <rguenther@suse.de>
13806         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
13807         Remove set-only bitmap of new names.
13808         (slpeel_tree_peel_loop_to_edge): Likewise.  Do not set
13809         CFG hooks.
13810         * tree-flow.h (ssa_names_to_replace): Remove.
13811         * tree-into-ssa.c (ssa_names_to_replace): Likewise.
13813 2012-05-16  Richard Guenther  <rguenther@suse.de>
13815         PR tree-optimization/53364
13816         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
13817         detect a view-conversion of the decl.
13819 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
13821         PR preprocessor/7263
13822         * c-tree.h (enum c_declspec_word): Declare new enum.
13823         (struct c_declspecs::locations): New member.
13824         (declspecs_add_qual, declspecs_add_scspec)
13825         (declspecs_add_addrspace, declspecs_add_alignas): Take a new
13826         location parameter.
13827         * c-decl.c (build_null_declspecs): Initialize the new struct
13828         c_declspecs::locations member.
13829         (declspecs_add_addrspace): Take a location parameter for the
13830         address space.  Store it onto declaration specifiers.
13831         (declspecs_add_qual): Likewise, take a location parameter for the
13832         qualifier.
13833         (declspecs_add_type): Likewise, take a location parameter for the
13834         type specifier.
13835         (declspecs_add_scspec): Likewise, take a location parameter for
13836         the storage class specifier.
13837         (declspecs_add_attrs): Likewise, take a location parameter for the
13838         first attribute.
13839         (declspecs_add_alignas): Likewise, take a location parameter for
13840         the alignas token.
13841         (finish_declspecs): For diagnostics, use the location of the
13842         relevant declspec, instead of the global input_location.
13843         * c-parser.c (c_parser_parameter_declaration): Pass the precise
13844         virtual location of the declspec to the declspecs-setters.
13845         (c_parser_declspecs): Likewise.  Avoid calling c_parser_peek_token
13846         repeatedly.
13848 2012-05-16  Igor Zamyatin  <igor.zamyatin@intel.com>
13850         * configure.ac: Stack protector enabling for Android targets.
13851         * configure: Regenerate.
13853 2012-05-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
13855         * ira.c (pseudo_move_insn): Delete.
13856         (find_moveable_pseudos): Don't set it.
13857         (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
13858         the definitions of the original pseudo.  Delete all of them.
13860 2012-05-16  Olivier Hainque  <hainque@adacore.com>
13862         * config/rs6000/rs6000-opts.h (enum processor_type): Add
13863         PROCESSOR_PPC8548.
13864         * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
13865         * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
13866         * config/rs6000/8540.md: indicate that the units/patterns apply to
13867         ppc8548 as well.
13869         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
13870         default_cpu into implicit_cpu, conveying what --with-cpu was passed at
13871         configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
13872         related flags,  check that what is queried is supported by the selected
13873         configuration. Rework the single/double_float and MASK_STRING resets to
13874         hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
13875         costs for PROCESSOR_PPC8548 as well.
13876         (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
13877         (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
13878         statement instead of a sequence of ifs.
13880         * config/rs6000/rs6000.h (TARGET_E500): Remove.
13881         (TARGET_NO_LWSYNC): Adjust accordingly.
13882         * config/rs6000/e500.h (TARGET_E500): Remove.
13883         (CHECK_E500_OPTIONS): Adjust accordingly.
13884         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
13885         (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
13886         * config/rs6000/linuxspe.h: Likewise.
13887         * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
13888         superfluous comments.
13889         * config/rs6000/e500-double.h: Remove.
13891         * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
13892         default to with_cpu=8548 if --enable-e500-double, and to 8540
13893         otherwise.
13894         (set misc flags section): For powerpc*|rs6000*, remove inclusion
13895         of e500-double.h for --enable-e500-double.
13897 2012-05-16  Olivier Hainque  <hainque@adacore.com>
13899         * Makefile.in (s-header-vars): Resort to -n instead of trailing
13900         -e d in sed invocation.
13902 2012-05-16  Hans-Peter Nilsson  <hp@axis.com>
13904         * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
13905         source-code.
13906         * doc/tm.texi: Regenerate.
13908 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
13910         * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
13912 2012-05-15  Jakub Jelinek  <jakub@redhat.com>
13914         PR target/53358
13915         * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
13916         that operands[2] is either immediate, or q_regs_operand.
13918 2012-05-15  Richard Guenther  <rguenther@suse.de>
13920         * cgraphunit.c (thunk_adjust): Use make_rename_temp.
13921         (assemble_thunk): Likewise.  Manually rename and register
13922         function arguments.
13924 2012-05-15  Richard Guenther  <rguenther@suse.de>
13926         PR tree-optimization/53355
13927         * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
13928         by constants.
13930 2012-05-15  Tristan Gingold  <gingold@adacore.com>
13932         * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
13934 2012-05-15  Richard Guenther  <rguenther@suse.de>
13936         * gimple.c (gimple_set_modified): Move ...
13937         * gimple.h (gimple_set_modified): ... here.
13939 2012-05-15  Tristan Gingold  <gingold@adacore.com>
13941         * ira-color.c (move_spill_restore): Add a guard.
13943 2012-05-15  Tristan Gingold  <gingold@adacore.com>
13945         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
13946         plus_constant.
13948 2012-05-15  Eric Botcazou  <ebotcazou@adacore.com>
13950         * gimplify.c (gimplify_init_constructor): Do a block move for very
13951         small objects as well.
13953 2012-05-15  Bernd Schmidt  <bernds@codesourcery.com>
13955         * ira.c (find_moveable_pseudos): Skip registers whose
13956         DF_REG_EQ_USE_COUNT is nonzero.
13958 2012-05-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
13960         * doc/md.texi (fma): Define to only be applicable for single rounding.
13962 2012-05-14  Uros Bizjak  <ubizjak@gmail.com>
13964         PR target/46098
13965         * config/i386/i386.c (ix86_expand_special_args_builtin): Always
13966         generate target register for "load" class builtins.
13968         Revert:
13969         2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
13971         PR target/46098
13972         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
13973         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
13974         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
13975         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
13976         (<sse>_movu<ssemodesuffix>): New expander.
13977         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
13978         (avx_movdqu<avxmodesuffix>): New expander.
13979         (*sse2_movdqu): Rename from sse2_movdqu.
13980         (sse2_movdqu): New expander.
13982 2012-05-14  Marc Glisse  <marc.glisse@inria.fr>
13984         PR target/52607
13985         * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
13986         (canonicalize_perm): ... new function.
13987         (expand_vec_perm_2vperm2f128_vshuf): New function.
13988         (ix86_expand_vec_perm_const_1): Call it.
13990 2012-05-14  Andrew Pinski  <apinski@cavium.com>
13991             H.J. Lu  <hongjiu.lu@intel.com>
13992             Jakub Jelinek  <jakub@redhat.com>
13994         PR target/53315
13995         * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
13996         (xbegin): Updated.
13998 2012-05-14  Jakub Jelinek  <jakub@redhat.com>
14000         * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
14001         lineno 1 the same as lineno 0 before first start file directive.
14002         (optimize_macinfo_range): Likewise.
14004         * dwarf2out.c (have_macinfo): Define.
14005         (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
14006         attribute, don't force empty compilation unit and don't emit any
14007         .debug_macinfo/.debug_macro section if macinfo_table is empty.
14009 2012-05-14  Georg-Johann Lay  <avr@gjlay.de>
14011         PR target/53344
14012         * config/avr/avr.c (avr_const_address_lo16): Remove.
14013         (avr_assemble_integer):  Print ".byte lo8(x)",
14014         ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
14015         .warning if 3-byte address is assembled.
14016         * doc/extend.texi (AVR Named Address Spaces): Document that
14017         binutils 2.23 is needed to assemble 3-byte addresses.
14019 2012-05-14  Richard Guenther  <rguenther@suse.de>
14021         * tree-vect-data-refs.c (vect_setup_realignment): Remove
14022         call to mark_symbols_for_renaming.
14023         (vect_permute_load_chain): Likewise.
14024         * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
14025         instead of calling mark_symbols_for_renaming.
14026         * tree-vect-stmts.c (read_vector_array): Remove call to
14027         mark_symbols_for_renaming.
14028         (write_vector_array): Likewise.
14029         (vectorizable_call): Likewise.
14030         (vectorizable_store): Likewise.
14031         (vectorizable_load): Likewise.
14032         * matrix-reorg.c (transform_allocation_sites): Likewise.
14033         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
14034         (create_expression_by_pieces): Likewise.
14036 2012-05-14  Richard Guenther  <rguenther@suse.de>
14038         * gimplify.c (gimple_regimplify_operands): Only mark the LHS
14039         of statements for renaming.
14040         (force_gimple_operand_1): Likewise, consistently for both
14041         calls to force_gimple_operand and force_gimple_operand_gsi.
14043 2012-05-14  Richard Guenther  <rguenther@suse.de>
14045         * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
14046         * omp-low.c (expand_omp_taskreg): Properly conditionalize call
14047         to update_ssa.
14048         (expand_omp_for): Likewise.
14049         (expand_omp_for_generic): Adjust conditional add to referenced vars.
14050         Use make_rename_temp for temporaries that should be rewritten into
14051         SSA form.
14052         (expand_omp_for_static_nochunk): Likewise.
14053         (expand_omp_atomic_pipeline): Likewise.
14055 2012-05-14  Richard Guenther  <rguenther@suse.de>
14057         PR tree-optimization/53331
14058         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
14059         strided loads.
14060         * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
14062 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14064         PR 53063
14065         * doc/options.texi: (LangEnabledBy): Document it.
14066         * optc-gen.awk: Handle LangEnabledBy.
14067         * opth-gen.awk: Generate declaration for lang-specific functions.
14068         * opt-read.awk: Record lang numbers.
14069         * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
14070         (lang_sanitized_name): New.
14072 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
14074         * attribs.c (decl_attributes): Avoid emitting a warning if
14075         ATTR_FLAG_BUILT_IN.
14076         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
14077         codes.  Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
14078         * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define.  Use it to
14079         define a string "1".
14080         (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
14081         * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
14082         BUILT_IN_STRCPY): Use it for these functions.
14083         * postreload.c (reload_combine): Deal with SETs inside
14084         CALL_INSN_FUNCTION_USAGE.
14085         * caller-save.c (setup_save_areas, save_call_clobbered_regs):
14086         Look for REG_RETURNED notes and use a cheap restore if possible.
14087         * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
14088         (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
14089         * ira-build.c (ira_create_allocno, create_cap_allocno,
14090         propagate_allocno_info, propagate_some_info_from_allocno,
14091         copy_info_to_removed_store_destination, ira_flattening): Handle it.
14092         * ira-lives.c (pseudo_regno_single_word_and_live_p,
14093         find_call_crossed_cheap_reg): New static functions.
14094         (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
14095         and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible.  Also make
14096         a REG_RETURNED note in that case.
14097         * ira.c (setup_reg_renumber): Change assert to allow cases where
14098         allocnos only cross calls for which they are cheap to restore.
14099         * ira-costs.c (ira_tune_allocno_costs): Compare
14100         ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
14101         than 0.
14102         * reg-notes.def (REG_RETURNED): New note.
14103         * cse.c (cse_insn): Likewise.
14104         * sched-deps.c (sched_analyze_insn): Likewise.
14105         * expr.c (init_block_move_fn): Set a "fn spec" attribute.
14106         * calls.c (decl_return_flags): New static function.
14107         (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
14108         functions that return one of their arguments.
14109         * regcprop.c (struct kill_set_value_data): New.
14110         (kill_set_value): Interpret data as a pointer to such a struct.
14111         Do nothing if the caller wants the register to be ignored.
14112         (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
14114 2012-05-14  Richard Guenther  <rguenther@suse.de>
14116         PR tree-optimization/53340
14117         * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
14119 2012-05-14  Richard Guenther  <rguenther@suse.de>
14121         * gimplify.c (gimplify_expr): Remove odd code.
14123 2012-05-14  Eric Botcazou  <ebotcazou@adacore.com>
14125         * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
14126         into a PLUS_EXPR byte offset.
14128         * tree-ssa-pre.c (can_value_number_call): Delete.
14129         (compute_avail): Skip all statements with side effects.
14130         <GIMPLE_CALL>: Skip calls to internal functions.
14132 2012-05-13  Steven Bosscher  <steven@gcc.gnu.org>
14134         * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
14136 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14138         * common.opt (Wtype-limits): Use EnabledBy.
14140 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
14142         * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
14143         (pushtf splitter): Ditto.
14144         (movtf): Ditto.
14145         (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
14146         (<code>tf2): Enable for TARGET_SSE.
14147         (*absnegtf2_sse): Ditto.
14148         (copysign<mode>3): Enable TFmode for TARGET_SSE.
14149         (copysign<mode>3_const): Ditto.
14150         (copysign<mode>3_var): Ditto.
14151         * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
14152         (*andnottf3): Ditto.  Use V4SFmode for !TARGET_SSE2.
14153         (*<code>tf3): Ditto.
14154         * config/i386/i386.c (struct builtin_description bdesc_args)
14155         <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
14156         <IX86_BUILTIN_COPYSIGNQ>: Ditto.
14157         (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
14158         Emit a normal call if SSE isn't available.
14160 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
14162         * config/i386/sse.md (<sse>_andnot<mode>3): Handle
14163         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
14164         (<code><mode>3): Ditto.
14165         (*andnot<mode>3): Ditto.
14166         (*andnottf3): Ditto.
14167         (*<code><mode>3): Ditto.
14168         (<code>tf3): Ditto.
14170 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14172         * optc-gen.awk: Error instead of warning for conflicting help.
14174 2012-05-12  Jason Merrill  <jason@redhat.com>
14176         PR debug/53235
14177         * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
14178         comdat types.
14180 2012-05-12  Eric Botcazou  <ebotcazou@adacore.com>
14182         * function.c (requires_stack_frame_p): If the function can throw
14183         non-call exceptions, return true if the insn can throw internally.
14185 2012-05-12  Paolo Carlini  <paolo.carlini@oracle.com>
14187         * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
14189 2012-05-12  Uros Bizjak  <ubizjak@gmail.com>
14191         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
14192         ORDERED and UNORDERED conditions.
14194 2012-05-11  Richard Guenther  <rguenther@suse.de>
14196         * tree-flow.h (referenced_var_check_and_insert): Remove.
14197         (find_new_referenced_vars): Likewise.
14198         * tree-dfa.c (referenced_var_check_and_insert): Make static.
14199         (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
14200         * tree-inline.c (copy_bb): Use find_referenced_vars_in
14201         instead of find_new_referenced_vars.
14202         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
14204 2012-05-11  Richard Guenther  <rguenther@suse.de>
14206         * tree-pass.h (pass_rest_of_compilation,
14207         pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
14208         Remove.
14209         * passes.c (pass_all_optimizations, pass_postreload,
14210         pass_all_early_optimizations): Make static.
14211         (pass_rest_of_compilation): Likewise.  Make it an RTL_PASS.
14212         * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
14213         * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
14214         (delete_tree_ssa): Do not call fini_phinodes.
14215         * tree-flow.h (init_phinodes, fini_phinodes): Remove.
14217 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14219         PR 53063
14220         * doc/options.texi (EnabledBy): Document
14221         * opts.c: Include opts.h and options.h before tm.h.
14222         (finish_options): Do not handle some sub-options here...
14223         (common_handle_option): ... instead call common_handle_option_auto
14224         here.
14225         * optc-gen.awk: Handle EnabledBy.
14226         * opth-gen.awk: Declare common_handle_option_auto.
14227         * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
14228         (Wmaybe-uninitialized): Likewise.
14229         (Wunused-but-set-variable): Likewise.
14230         (Wunused-function): Likewise.
14231         (Wunused-label): Likewise.
14232         (Wunused-value): Likewise.
14233         (Wunused-variable): Likewise.
14234         * opt-read.awk: Create opt_numbers array.
14236 2012-05-11  Richard Guenther  <rguenther@suse.de>
14238         PR tree-optimization/53295
14239         * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
14240         strides.
14241         * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
14242         strides when analyzing data-references in a loop context.
14243         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
14244         non-constant strides for now.
14245         (vect_enhance_data_refs_alignment): Ignore data references
14246         that are strided loads.
14247         (vect_analyze_data_ref_access): Handle non-constant strides.
14248         (vect_check_strided_load): Verify the data-reference is a load.
14249         (vect_analyze_data_refs): Restructure to make strided load
14250         support not dependent on gather support.
14251         * tree-vect-stmts.c (vectorizable_load): Avoid useless work
14252         when doing strided or gather loads.
14253         * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
14254         integer_zerop to compare stride with zero.
14256 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
14258         * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
14260 2012-05-11  Jan Hubicka  <jh@suse.cz>
14262         PR bootstrap/53300
14263         * varpool.c (varpool_assemble_decl): Also output constat pool entries
14264         that output_constant_pool missed.
14266 2012-05-11  Mingjie Xing  <mingjie.xing@gmail.com>
14268         * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
14269         MULTILIB_EXTRA_OPTS.
14271 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
14273         PR target/53291
14274         * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
14276 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
14278         * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
14279         optimization for TARGET_AVX.
14280         (*movti_internal_sse): Ditto.
14281         (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
14282         (*movdi_internal): Ditto.
14283         (*movsi_internal): Ditto.
14284         (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
14285         (*movdf_internal_rex64): Ditto.
14286         (*movfd_internal): Ditto.
14287         (*movsf_internal): Ditto.
14288         * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
14290 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
14292         * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
14293         reference as size attribute.
14295 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
14296             Tristan Gingold  <gingold@adacore.com>
14298         * doc/md.texi (Standard Names): Document probe_stack_address.
14299         * explow.c (emit_stack_probe): Handle probe_stack_address.
14300         * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
14301         (UNSPECV_PROBE_STACK_RANGE): Likewise.
14302         (probe_stack_address): New insn.
14303         (probe_stack_range): Likewise.
14304         * config/ia64/ia64.c: Include common/common-target.h.
14305         (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
14306         checking is enabled.
14307         (ia64_emit_probe_stack_range): New function.
14308         (output_probe_stack_range): Likewise.
14309         (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
14310         builtin stack checking is enabled.
14311         (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
14312         and UNSPECV_PROBE_STACK_ADDRESS.
14313         (unknown_for_bundling_p): New predicate.
14314         (group_barrier_needed): Use important_for_bundling_p.
14315         (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
14316         (issue_nops_and_insn): Likewise.
14317         (bundling): Likewise.
14318         (final_emit_insn_group_barriers): Likewise.
14319         * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
14320         * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
14321         (STACK_CHECK_PROTECT): Likewise.
14322         * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14324 2012-05-10  Jan Hubicka  <jh@suse.cz>
14326         * ipa-inline.c (update_all_callee_keys): Remove.
14327         (inline_small_functions): Simplify priority updating.
14329 2012-05-10  Jan Hubicka  <jh@suse.cz>
14331         * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
14333 2012-05-10  Jan Hubicka  <jh@suse.cz>
14335         * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
14336         (symtab_remove_unreachable_nodes): ... this one.
14337         * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
14338         * cgraphunit.c (ipa_passes): Update.
14339         * cgraphclones.c (cgraph_materialize_all_clones): Update.
14340         * cgraph.c (cgraph_release_function_body): Only turn initial
14341         into error mark when initial was previously set.
14342         * ipa-inline.c (ipa_inline): Update.
14343         * ipa.c: Include ipa-inline.h
14344         (enqueue_cgraph_node, enqueue_varpool_node): Remove.
14345         (enqueue_node): New function.
14346         (process_references): Update.
14347         (symtab_remove_unreachable_nodes): Cleanup.
14348         * passes.c (execute_todo, execute_one_pass): Update.
14350 2012-05-10  Vladimir Makarov  <vmakarov@redhat.com>
14352         PR rtl-optimization/53125
14353         * ira.c (ira): Call find_moveable_pseudos and
14354         move_unallocated_pseudos if only ira_conflicts_p is true.
14356 2012-05-10  Uros Bizjak  <ubizjak@gmail.com>
14358         * config/i386/i386.md (*movoi_internal_avx): Handle
14359         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
14360         (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
14361         (*movti_internal_sse): Ditto.
14362         (*movtf_internal): Ditto.
14363         * config/i386/sse.md (ssePSmode): New mode attribute.
14364         (*move<mode>_internal): Use ssePSmode.
14365         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
14366         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
14367         * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
14368         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
14370 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
14372         * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
14373         DECL_ORIGINAL_TYPE if it is present.
14375 2012-05-10  Nick Clifton  <nickc@redhat.com>
14377         PR target/53120
14378         * config/m32c/bitops.md (bset_qi): Change operand 2 from having
14379         a "0" constraint to being a (match_dup 0).
14381 2012-05-10  Richard Guenther  <rguenther@suse.de>
14383         * stor-layout.c (byte_from_pos): Amend comment.
14385 2012-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14387         * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
14388         Document requirement to call in constructors.
14390         * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
14392 2012-05-10  Richard Guenther  <rguenther@suse.de>
14394         * tree.h (TYPE_IS_SIZETYPE): Remove.
14395         * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
14396         (extract_muldiv_1): Likewise.
14397         * gimple.c (gtc_visit): Likewise.
14398         (gimple_types_compatible_p): Likewise.
14399         (iterative_hash_canonical_type): Likewise.
14400         (gimple_canonical_types_compatible_p): Likewise.
14401         * gimplify.c (gimplify_one_sizepos): Likewise.
14402         * print-tree.c (print_node): Likewise.
14403         * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
14405 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
14407         PR target/52908
14408         * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
14409         xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
14410         (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
14411         instead of xop_mulv2div2di3_low.
14412         (xop_p<macs>dql): Fix vec_select selector.
14413         (xop_p<macs>dqh): Ditto.
14414         (xop_mulv2div2di3_low): Remove insn_and_split pattern.
14415         (xop_mulv2div2di3_high): Ditto.
14417 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14419         PR c++/53289
14420         * diagnostic.h (diagnostic_context): Add last_location.
14421         * diagnostic.c (diagnostic_initialize): Initialize it.
14422         (diagnostic_show_locus): Use it.
14424 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14426         * doc/extend.texi (Function Attributes): Point xref to section
14427         about Pragmas.
14429 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
14431         * config/i386/i386.c (*movdf_internal_rex64): Remove
14432         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
14433         Calculate "mode" attribute according to
14434         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
14435         (*movdf_internal): Ditto.
14437 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
14439         PR target/44141
14440         * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
14441         128 bit vectors specially for TARGET_AVX.  Emit sse2_movupd and
14442         sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
14443         or when optimizing for size.
14444         * config/i386/sse.md (*mov<mode>_internal): Remove
14445         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
14446         Calculate "mode" attribute according to optimize_function_for_size_p
14447         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
14448         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
14449         depending on the mode of the instruction.  Calculate "mode" attribute
14450         according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
14451         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
14452         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
14454 2012-05-09  Georg-Johann Lay  <avr@gjlay.de>
14456         PR target/53256
14457         * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
14458         * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
14459         * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
14460         * config/avr/avr.c (avr_asm_declare_function_name): Remove.
14461         (expand_prologue): Move initialization of cfun->machine->is_naked,
14462         is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
14463         (avr_set_current_function): ...this new static function.
14464         (TARGET_SET_CURRENT_FUNCTION): New define.
14465         (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
14466         checking attributes of current_function_decl.
14467         (avr_regs_to_save): Ditto.
14468         (signal_function_p): Rename to avr_signal_function_p.
14469         (interrupt_function_p): Rename to avr_interrupt_function_p.
14471         * doc/extend.texi (Function Attributes): Better explanation of
14472         'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
14473         alphabetical order.
14475 2012-05-09  Michael Matz  <matz@suse.de>
14477         PR tree-optimization/53185
14478         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
14479         peeling when we see strided loads.
14481 2012-05-09  Matthias Klose  <doko@ubuntu.com>
14483         * gcc-ar.c (main): Don't check for execute bits for the plugin.
14485 2012-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14487         * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
14488         Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
14489         USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
14490         * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
14491         (USE_LOAD_POST_INCREMENT): Define.
14492         (USE_LOAD_PRE_INCREMENT): Define.
14493         (USE_LOAD_POST_DECREMENT): Define.
14494         (USE_LOAD_PRE_DECREMENT): Define.
14495         (USE_STORE_PRE_DECREMENT): Define.
14496         (USE_STORE_PRE_INCREMENT): Define.
14497         (USE_STORE_POST_DECREMENT): Define.
14498         (USE_STORE_POST_INCREMENT): Define.
14499         (arm_auto_incmodes): Add enumeration.
14500         * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
14501         * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
14503 2012-05-09  Jakub Jelinek  <jakub@redhat.com>
14505         PR tree-optimization/53226
14506         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
14507         prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
14508         before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
14509         doesn't need to be revisited, look for earliest stmt with
14510         !gimple_plf (stmt, GF_PLF_1) if something changed.
14512 2012-05-09  Terry Guo  <terry.guo@arm.com>
14514         * genmultilib: Update copyright dates.
14515         * doc/fragments.texi: Ditto.
14517 2012-05-09  Terry Guo  <terry.guo@arm.com>
14519         * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
14520         * genmultilib (MULTILIB_REQUIRED): New.
14521         * doc/fragments.texi: Document the MULTILIB_REQUIRED.
14523 2012-05-09  Richard Guenther  <rguenther@suse.de>
14525         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
14526         (vect_do_peeling_for_loop_bound): Likewise.
14527         (vect_do_peeling_for_alignment): Likewise.
14528         * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
14529         (vect_do_peeling_for_loop_bound): Get check_profitability and
14530         threshold as parameters.
14531         (vect_do_peeling_for_alignment): Likewise.
14532         (vect_loop_versioning): Likewise.
14533         * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
14534         and threshold here.  Control where to put the check here.
14536 2012-05-09  Richard Sandiford  <rdsandiford@googlemail.com>
14538         PR middle-end/53249
14539         * dwarf2out.h (get_address_mode): Move declaration to...
14540         * rtl.h: ...here.
14541         * dwarf2out.c (get_address_mode): Move definition to...
14542         * rtlanal.c: ...here.
14543         * var-tracking.c (get_address_mode): Delete.
14544         * combine.c (find_split_point): Use get_address_mode instead of
14545         targetm.addr_space.address_mode.
14546         * cselib.c (cselib_record_sets): Likewise.
14547         * dse.c (canon_address, record_store): Likewise.
14548         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
14549         * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
14550         (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
14551         (expand_expr_real_1): Likewise.
14552         * ifcvt.c (noce_try_cmove_arith): Likewise.
14553         * optabs.c (maybe_legitimize_operand_same_code): Likewise.
14554         * reload.c (find_reloads): Likewise.
14555         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
14556         * sel-sched-dump.c (debug_mem_addr_value): Likewise.
14558 2012-05-09  Maciej W. Rozycki  <macro@codesourcery.com>
14560         * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
14561         information from the instruction produced.
14563 2012-05-09  Richard Guenther  <rguenther@suse.de>
14565         * stor-layout.c (bit_from_pos): Document.
14566         (byte_from_pos): Likewise.  Optimize.
14567         (pos_from_bit): Likewise.
14568         (normalize_offset): Use pos_from_bit instead of replicating it.
14570 2012-05-09  Alan Modra  <amodra@gmail.com>
14572         PR target/53271
14573         * config/rs6000/rs6000.c (gen_frame_set): New function.
14574         (gen_frame_load, gen_frame_store): New functions.
14575         (rs6000_savres_rtx): Use the above.
14576         (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
14577         Correct mode used for CR2 in save/restore_world patterns.
14578         Don't emit instructions for eh_return frame unwind reg info.
14580 2012-05-08  Jan Hubicka  <jh@suse.cz>
14582         * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
14583         with VALUE_EXPR.
14584         * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
14585         are removable.
14586         * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
14587         need to wrapup.
14588         (compile_file): Do not output variables.
14589         * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
14590         output it.
14591         * langhooks.c: Include timevar.h
14592         (write_global_declarations): Finalize compilation unit after wrapup;
14593         set timevars correctly.
14594         * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
14595         not to be added to varpool.
14596         * varpool.c (varpool_assemble_decl): Sanity check that we are called
14597         only on cases where it makes sense; skip constant pool and value expr
14598         vars.
14600 2012-05-08  David S. Miller  <davem@davemloft.net>
14602         * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
14603         * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
14604         * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
14606 2012-05-08  Richard Sandiford  <rdsandiford@googlemail.com>
14608         PR rtl-optimization/53278
14609         * lower-subreg.c (decompose_multiword_subregs): Remove left-over
14610         speed_p code from earlier patch.
14612 2012-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14614         PR target/51244
14615         * config/sh/sh.md (*branch_true, *branch_false): New insns.
14617 2012-05-08  Teresa Johnson  <tejohnson@google.com>
14619         * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
14620         * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
14622 2012-05-08  Jan Hubicka  <jh@suse.cz>
14624         * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
14625         (cgraph_create_node_1): Rename to ...
14626         (cgraph_create_empty_node): ... this one; export.
14627         (cgraph_create_node): Update.
14628         (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
14629         (cgraph_create_edge_including_clones): Likewise.
14630         (cgraph_find_replacement_node): Likewise.
14631         (cgraph_clone_edge): Likewise.
14632         (cgraph_clone_node): Likewise.
14633         (clone_function_name): Likewise.
14634         (cgraph_create_virtual_clone): Likewise.
14635         (cgraph_remove_node_and_inline_clones): Likewise.
14636         (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
14637         * cgraph.h: Reorder declarations so they match file of origin.
14638         (cgraph_create_empty_node): Declare.
14639         * cgraphunit.c (update_call_expr): Move to cgraphclones.c
14640         (cgraph_copy_node_for_versioning): Likewise.
14641         (cgraph_function_versioning): Likewise.
14642         (cgraph_materialize_clone): Likewise.
14643         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
14644         (cgraph_materialize_all_clones): Likewise.
14645         * cgraphclones.c: New file.
14646         * Makefile.in: Update for cgraphclones.
14648 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
14650         PR target/53176
14651         * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
14652         (ix86_rtx_costs): Handle SET.
14654 2012-05-08  Michael Matz  <matz@suse.de>
14656         * basic-block.h (struct rtl_bb_info): Remove visited member and
14657         move head_ member to ...
14658         (struct basic_block_def.basic_block_il_dependent): ... the new
14659         member x, replacing but containing old member rtl.
14660         (enum bb_flags): New BB_VISITED flag.
14661         (BB_HEADER, BB_FOOTER): New macros.
14663         * jump.c (mark_all_labels): Adjust.
14664         * cfgcleanup.c (try_optimize_cfg): Adjust.
14665         * cfglayout.c (record_effective_endpoints): Adjust.
14666         (relink_block_chain): Ditto (and don't fiddle with visited).
14667         (fixup_reorder_chain): Adjust.
14668         (fixup_fallthru_exit_predecessor): Ditto.
14669         (cfg_layout_duplicate_bb): Ditto.
14670         * combine.c (update_cfg_for_uncondjump): Adjust.
14671         * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
14672         (bb_visited_trace): New accessor.
14673         (mark_bb_visited): Move in front.
14674         (rotate_loop): Use bb_visited_trace.
14675         (find_traces_1_round): Ditto.
14676         (emit_barrier_after): Ditto.
14677         (copy_bb): Ditto, and initialize visited on resize.
14678         (reorder_basic_blocks): Initize visited member.
14679         (duplicate_computed_gotos): Clear bb flags at start, use
14680         BB_VISITED flags.
14682         * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
14683         (rtl_verify_flow_info_1): Ditto.
14684         (cfg_layout_split_block): Ditto.
14685         (cfg_layout_delete_block): Ditto.
14686         (cfg_layout_merge_blocks): Ditto.
14687         (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
14689 2012-05-08  Hans-Peter Nilsson  <hp@axis.com>
14691         PR target/53272
14692         * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
14693         when a constant source operand matches an "I" constraint, the "no
14694         CC0 change" applies to a register-destination only, not a
14695         strict_low_part-destination.
14697 2012-05-08  Richard Guenther  <rguenther@suse.de>
14699         * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
14700         to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
14702 2012-05-08  Georg-Johann Lay  <avr@gjlay.de>
14704         * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
14706         * doc/avr-mmcu.texi: New auto-generated file.
14707         * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
14708         to document all valid -mmcu= arguments.
14710         * config/avr/avr.h (arch_info_s): New struct definition.
14711         * config/avr/avr-devices.c (avr_texinfo): New variable.
14712         * config/avr/gen-avr-mmcu-texi.c: New file.
14713         * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
14715 2012-05-08  Dehao Chen  <dehao@google.com>
14717         * predict.c (find_qualified_ssa_name): New.
14718         (find_ssa_name_in_expr): New.
14719         (find_ssa_name_in_assign_stmt): New.
14720         (is_comparison_with_loop_invariant_p): New.
14721         (is_bound_expr_similar): New.
14722         (predict_iv_comparison): New.
14723         (predict_loops): Add heuristic for loop-nested branches that compare an
14724         induction variable to a loop bound variable.
14725         * predict.def (PRED_LOOP_IV_COMPARE): New macro.
14727 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
14729         * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
14730         TARGET_BDVER2 defines where appropriate.
14732 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
14734         * configure.ac (PLUGIN_LD): Rename into...
14735         (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
14736         * config.in: Regenerate.
14737         * configure: Likewise.
14738         * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
14740 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
14742         * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
14743         computation using the precision of the index type.
14744         * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
14745         (fold_array_ctor_reference): Do index computations in the index type.
14747 2012-05-07  Georg-Johann Lay  <avr@gjlay.de>
14749         * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
14750         down to plus_constant.
14751         (expand_epilogue): Ditto.
14753 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
14755         * postreload.c (reload_cse_regs): Make static.
14756         * reload.h (reload_cse_regs): Remove prototype.
14758 2012-05-07  Richard Henderson  <rth@redhat.com>
14760         * config/alpha/alpha.md (clear_cache): New pattern.
14762 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
14764         PR middle-end/53245
14765         * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
14766         is folded to a type boundary value, verify that the resulting case
14767         label is still a care range.
14769 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
14771         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
14772         only for TARGET_GENERIC, when not optimizing for size.
14773         (*ffs<mode>_1): Ditto.
14775 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
14777         * tree-cfg.c (verify_gimple_switch): Tighten checks.
14779 2012-05-07  Jakub Jelinek  <jakub@redhat.com>
14781         PR tree-optimization/53239
14782         * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
14783         of DECL_BY_REFERENCE RESULT_DECL to nonnull.
14785 2012-05-07  Richard Guenther  <rguenther@suse.de>
14787         PR tree-optimization/53195
14788         * tree-inline.c (setup_one_parameter): Properly add referenced
14789         vars from the parameters new known value.
14791 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
14793         * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
14794         (sched_branch_type): Remove.
14795         (m68k_sched_md_init_global): Don't allocate it.
14796         (m68k_sched_md_finish_global): Don't free it.
14797         * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
14798         * config/m68k/m68k.md: Set the type of insns using
14799         m68k_sched_branch_type to bcc directly.
14801 2012-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14803         * config/sol2.c (solaris_override_options): New function.
14804         * config/sol2-protos.h (solaris_override_options): Declare.
14805         * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
14807 2012-05-07  Richard Guenther  <rguenther@suse.de>
14809         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
14810         whether we failed to compute data dependences.
14811         (loop_prefetch_arrays): Fail if we failed.
14813 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
14814             Paolo Bonzini  <bonzini@gnu.org>
14816         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
14817         Emit bsf when optimizing for size.
14818         (*ffs<mode>_1): Ditto.
14820 2012-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
14822         PR target/53250
14823         * config/sh/sh.c (sh_rtx_costs): Handle SET.
14825 2012-05-06  Uros Bizjak  <ubizjak@gmail.com>
14827         PR target/53227
14828         * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
14829         (bswapdi2): Split from bswap<mode>2.  Use nonnimediate_operand
14830         predicate for operand 1.  Force operand 1 to register for TARGET_BSWAP.
14831         (bswapsi2): Ditto.
14832         (*bswapdi2_doubleword): New insn pattern.
14833         (*bswap<mode>2): Rename from *bswap<mode>2_1.
14835 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
14837         * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
14838         (mips_set_reg_reg_cost): Likewise.
14839         (mips_rtx_costs): Handle SET.
14841 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
14843         * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
14844         (compute_costs): Likewise for the zero extension.  Use set_rtx_cost
14845         to compute the cost of moves.  Set the mode of the target register.
14847 2012-05-05  Richard Sandiford  <rdsandiford@googlemail.com>
14849         * rtl.h (plus_constant, plus_constant_mode): Merge into a single
14850         plus_constant function.
14851         * explow.c (plus_constant, plus_constant_mode): Likewise.  Assert
14852         that the mode is sensible.
14853         (use_anchored_address, round_push, allocate_dynamic_stack_space)
14854         (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
14855         plus_constant.
14857         * alias.c (canon_rtx): Likewise.
14858         (init_alias_analysis): Likewise.
14859         * builtins.c (expand_builtin_return_addr)
14860         (expand_builtin_setjmp_setup, expand_builtin_longjmp)
14861         (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
14862         (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
14863         (expand_builtin_stpcpy): Likewise.
14864         * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
14865         (compute_argument_addresses, internal_arg_pointer_based_exp)
14866         (expand_call, emit_library_call_value_1): Likewise.
14867         * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
14868         * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
14869         * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
14870         * cse.c (insert_const_anchor, find_reg_offset_for_const)
14871         (use_related_value, fold_rtx): Likewise.
14872         * cselib.c (cselib_subst_to_values): Likewise.
14873         * dse.c (record_store, check_mem_read_rtx): Likewise.
14874         * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
14875         * emit-rtl.c (adjust_address_1): Likewise.
14876         * except.c (sjlj_emit_function_enter)
14877         (expand_builtin_extract_return_addr)
14878         (expand_builtin_frob_return_addr): Likewise.
14879         * expmed.c (expand_divmod): Likewise.
14880         * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
14881         (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
14882         (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
14883         * function.c (assign_stack_local_1)
14884         (instantiate_virtual_regs_in_rtx): Likewise.
14885         * optabs.c (prepare_cmp_insn): Likewise.
14886         * recog.c (offsettable_address_addr_space_p): Likewise.
14887         * reload.c (find_reloads_address, form_sum)
14888         (find_reloads_subreg_address): Likewise.
14889         * reload1.c (init_reload, eliminate_regs_1)
14890         (eliminate_regs_in_insn): Likewise.
14891         * simplify-rtx.c (simplify_unary_operation_1)
14892         (simplify_binary_operation_1, simplify_plus_minus): Likewise.
14893         * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
14894         (vt_add_function_parameter): Likewise.
14896         * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
14897         * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
14898         * config/alpha/alpha.c (alpha_legitimize_address_1)
14899         (get_unaligned_address, alpha_expand_unaligned_load)
14900         (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
14901         (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
14902         (alpha_expand_builtin_establish_vms_condition_handler)
14903         (alpha_setup_incoming_varargs, emit_frame_store_1)
14904         (alpha_expand_prologue, alpha_expand_epilogue)
14905         (alpha_use_linkage): Likewise.
14906         * config/alpha/alpha.md: Likewise.
14908         * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
14909         (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
14910         (thumb_legitimize_address, arm_gen_load_multiple_1)
14911         (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
14912         (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
14913         (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
14914         (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
14915         (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
14916         (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
14917         (thumb_expand_movmemqi, arm_set_return_address)
14918         (thumb_set_return_address): Likewise.
14919         * config/arm/arm.md: Likewise.
14921         * config/avr/avr.c (avr_incoming_return_addr_rtx)
14922         (avr_prologue_setup_frame, expand_epilogue)
14923         (avr_const_address_lo16): Likewise.
14925         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
14926         * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
14927         (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
14928         (bfin_output_mi_thunk): Likewise.
14930         * config/c6x/c6x.c (c6x_initialize_trampoline)
14931         (c6x_output_mi_thunk): Likewise.
14933         * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
14934         * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
14936         * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
14937         (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
14938         (cris_emit_movem_store, cris_trampoline_init): Likewise.
14939         * config/cris/cris.md: Likewise.
14941         * config/darwin.c (machopic_indirect_data_reference)
14942         (machopic_legitimize_pic_address): Likewise.
14944         * config/epiphany/epiphany.c (epiphany_emit_save_restore)
14945         (epiphany_expand_prologue, epiphany_expand_epilogue)
14946         (epiphany_trampoline_init): Likewise.
14947         * config/epiphany/epiphany.md: Likewise.
14949         * config/fr30/fr30.c (fr30_move_double): Likewise.
14951         * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
14952         (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
14953         (frv_index_memory, unspec_got_name, frv_find_base_term)
14954         (frv_output_dwarf_dtprel): Likewise.
14956         * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
14957         (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
14959         * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
14960         * config/i386/i386.c (setup_incoming_varargs_64)
14961         (setup_incoming_varargs_ms_64, choose_baseaddr)
14962         (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
14963         (ix86_emit_probe_stack_range, ix86_expand_prologue)
14964         (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
14965         (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
14966         (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
14967         (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
14968         (x86_output_mi_thunk): Likewise.
14969         * config/i386/i386.md: Likewise.
14971         * config/ia64/ia64.c (ia64_expand_load_address)
14972         (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
14973         (do_spill, ia64_trampoline_init): Likewise.
14975         * config/iq2000/iq2000.c (iq2000_va_start)
14976         (iq2000_emit_frame_related_store, iq2000_expand_prologue)
14977         (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
14978         (iq2000_print_operand, iq2000_legitimize_address): Likewise.
14980         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14982         * config/m32c/m32c.c (m32c_return_addr_rtx)
14983         (m32c_expand_insv): Likewise.
14985         * config/m32r/m32r.c (m32r_setup_incoming_varargs)
14986         (m32r_legitimize_pic_address, m32r_print_operand)
14987         (m32r_print_operand_address): Likewise.
14989         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
14990         * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
14991         (EH_RETURN_HANDLER_RTX): Likewise.
14992         * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
14993         (m68k_expand_epilogue, legitimize_pic_address)
14994         (m68k_output_mi_thunk): Likewise.
14995         * config/m68k/m68k.md: Likewise.
14997         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
14998         (mcore_expand_epilog): Likewise.
14999         * config/mcore/mcore.md: Likewise.
15001         * config/mep/mep.c (mep_allocate_initial_value)
15002         (mep_expand_prologue, mep_expand_epilogue): Likewise.
15004         * config/microblaze/microblaze.c (double_memory_operand)
15005         (microblaze_block_move_loop): Likewise.
15007         * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
15008         (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
15009         (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
15010         (mips_expand_prologue, mips_epilogue_set_cfa)
15011         (mips_expand_epilogue): Likewise.
15012         * config/mips/mips.md: Likewise.
15014         * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
15015         (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
15017         * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
15018         (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
15020         * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
15021         (EH_RETURN_HANDLER_RTX): Likewise.
15022         * config/moxie/moxie.c (moxie_static_chain): Likewise.
15024         * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
15025         (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
15026         (pa_return_addr_rtx, hppa_builtin_saveregs)
15027         (pa_trampoline_init): Likewise.
15028         * config/pa/pa.md: Likewise.
15030         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
15032         * config/picochip/picochip.c (picochip_static_chain): Likewise.
15034         * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
15035         * config/rs6000/rs6000.c (rs6000_legitimize_address)
15036         (setup_incoming_varargs, print_operand, rs6000_return_addr)
15037         (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
15038         (rs6000_emit_epilogue)
15039         (rs6000_machopic_legitimize_pic_address): Likewise.
15041         * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15043         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
15044         (DYNAMIC_CHAIN_ADDRESS): Likewise.
15045         * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
15046         (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
15047         (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
15048         (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
15049         (s390_emit_epilogue, s390_function_profiler): Likewise.
15050         * config/s390/s390.md: Likewise.
15052         * config/score/score.c (score_add_offset, score_prologue): Likewise.
15054         * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
15055         (sh_output_mi_thunk): Likewise.
15056         * config/sh/sh.md: Likewise.
15058         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
15059         (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
15060         * config/sparc/sparc.c (sparc_legitimize_pic_address)
15061         (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
15062         (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
15063         (emit_and_preserve): Likewise.
15064         * config/sparc/sparc.md: Likewise.
15066         * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
15067         * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
15068         (spu_setup_incoming_varargs, ea_load_store_inline)
15069         (spu_expand_load): Likewise.
15071         * config/stormy16/stormy16.c (xstormy16_expand_prologue)
15072         (combine_bnp): Likewise.
15074         * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
15075         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
15076         (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
15078         * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
15079         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
15080         (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
15082         * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
15083         * config/v850/v850.md: Likewise.
15085         * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
15086         (EH_RETURN_HANDLER_RTX): Likewise.
15087         * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
15088         * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
15089         (print_operand_address, vax_trampoline_init): Likewise.
15091         * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
15092         (xtensa_function_value_regno_p): Likewise.
15094 2012-05-04  Andrew Pinski  <apinski@cavium.com>
15096         * expr.c (get_def_for_expr_class): New function.
15097         (convert_tree_comp_to_rtx): New function.
15098         (expand_cond_expr_using_cmove): New function.
15099         (expand_expr_real_2 <case COND_EXPR>): Call
15100         expand_cond_expr_using_cmove first and return if it succeeds.
15101         Remove the check for HAVE_conditional_move since we should have
15102         already converted it to a conditional move.
15103         * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
15104         modes of DImode for 32bits and TImode.
15106 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
15108         PR other/29442
15109         * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
15110         (print_md_ptr_loc, print_c_condition): Use them.
15111         * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
15112         * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
15113         attr_file, dfa_file, latency_file): New global variables.
15114         (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
15115         write_upcase, write_indent, write_length_unit_log, write_test_expr,
15116         write_attr_get, write_insn_cases, write_eligible_delay,
15117         write_const_num_delay_slots): Accept FILE pointer and toss it around.
15118         Update all callers.
15119         (write_header, open_outfile, handle_arg): New funcions.
15120         (make_automaton_attrs): Write prototypes as extern to the output
15121         files.
15122         (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
15123         names from the command line.  Open the output files and write out
15124         internal functions for DFA functions to dfa_file_name, insn latency
15125         functions to latency_file_name, and everything else to attr_file.
15126         * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
15127         (BACKEND): Build libbackend first.
15128         (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
15129         (.PRECIOUS): Likewise.
15130         (insn-dfatab.o): New rule.
15131         (insn-latencytab.o): New rule.
15132         (simple_rtl_generated_c): Do not include insn-attrtab.c.
15133         (s-attrtab): New rule.
15135 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
15137         * rtl.def (ATTR_FLAG): Remove probability indicating flags.
15138         * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
15139         ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
15140         * reorg.c (get_jump_flags): Do not set the removed flags.
15142         * doc/md.texi (attr_flag): Update for abovementioned changes.
15144 2012-05-04  Uros Bizjak  <ubizjak@gmail.com>
15146         PR target/53228
15147         * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
15148         (TARGET_CMOV): Rename from TARGET_CMOVE.
15149         (TARGET_CMOVE): New define.
15150         * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
15151         Do not set TARGET_CMOVE here.
15153 2012-05-04  Dodji Seketeli  <dodji@redhat.com>
15155         Enable -Wunused-local-typedefs when -Wall or -Wunused is on
15156         * opts.c (finish_options): Activate -Wunused-local-typedefs if
15157         -Wunused is activated.
15158         * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
15160 2012-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15162         * config/s390/s390.md (*movmem_short, *clrmem_short)
15163         (*cmpmem_short): Move the mode check from the insn condition to
15164         the match_scratch.
15166 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
15168         PR tree-optimization/52633
15169         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
15170         vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
15171         (vect_recog_over_widening_pattern): Remove handling of code that was
15172         already detected as over-widening pattern.  Remove special handling
15173         of "unsigned" cases.  Instead, support general case of conversion
15174         of the shift result to another type.
15176 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
15178         * tree-vect-patterns.c (vect_single_imm_use): New function.
15179         (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
15180         (vect_recog_over_widening_pattern): Likewise.
15181         (vect_recog_widen_shift_pattern): Likewise.
15183 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
15185         * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
15186         (vect_handle_widen_op_by_const): Use it instead of open-coding test.
15187         (vect_recog_widen_mult_pattern): Likewise.
15188         (vect_operation_fits_smaller_type): Likewise.
15189         (vect_recog_over_widening_pattern): Likewise.
15190         (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
15192 2012-05-04  Richard Guenther  <rguenther@suse.de>
15194         PR lto/50602
15195         * lto-wrapper.c (merge_and_complain): Complain about mismatches
15196         of -freg-struct-return and -fpcc-struct-return.
15197         (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
15198         from the input file options and ignore those from the link
15199         command line.
15201 2012-05-04  Richard Guenther  <rguenther@suse.de>
15203         PR tree-optimization/53168
15204         * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
15205         memory reads when the result is a constant we can pun.
15207 2012-05-04  Richard Guenther  <rguenther@suse.de>
15209         * common.opt (flto-report): Do not mark as Optimization.
15211 2012-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15213         PR target/48496
15214         * recog.c (constrain_operands): If extra constraints are present, also
15215         accept pseudo-registers with equivalent memory locations during reload.
15217 2012-05-04  Olivier Hainque  <hainque@adacore.com>
15219         * collect2.c (may_unlink_output_file): New global.
15220         (maybe_unlink): Honor it.
15221         * collect2.h: Add extern for it.
15222         * tlink.c (do_tlink): Set it to true if the link succeeded.
15224 2012-05-04  Olivier Hainque  <hainque@adacore.com>
15226         * gcc.c (eval_spec_function): Finalize/restore the current string
15227         obstack state as part of the context push/pop operations.
15229 2012-05-04  Bin Cheng  <bin.cheng@arm.com>
15231         PR rtl-optimization/52804
15232         * reload1.c (reload_reg_reaches_end_p): Check whether successor
15233         reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
15234         of current one with type RELOAD_FOR_INPADDR_ADDRESS.
15235         Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
15236         RELOAD_FOR_OUTADDR_ADDRESS.
15238 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15240         PR c++/24985
15241         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
15242         for macro expansion.
15244 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15246         * flags.h (flag_permissive): Do not declare.
15247         * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
15248         option specially.
15249         * toplev.c (flag_permissive): Do not define.
15250         * c-tree.h (system_header_p): Delete unused.
15252 2012-05-03  David S. Miller  <davem@davemloft.net>
15254         PR target/52684
15255         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
15256         MEM directly into a libcall, mark it's MEM_EXPR as addressable.
15257         (sparc_emit_float_lib_cmp): Likewise.
15259 2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
15261         PR target/53199
15262         * config/rs6000/rs6000.md (bswapdi splitters): If
15263         -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
15264         default) is used, generate an alternate sequence that does not
15265         depend on using indexed addressing.
15267 2012-05-03  Jason Merrill  <jason@redhat.com>
15269         * gengtype.c (write_types): Fix warning message.
15270         (write_local): Likewise.
15272 2012-05-02  Jason Merrill  <jason@redhat.com>
15274         * dwarf2out.c (struct external_ref, build_local_stub): New.
15275         (hash_external_ref, external_ref_eq, lookup_external_ref): New.
15276         (optimize_external_refs, optimize_external_refs_1): New.
15277         (change_AT_die_ref): New.
15278         (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
15279         (build_abbrev_table): Take the external refs hashtable.
15280         (output_comp_unit): Get it from optimize_external_refs and pass it in.
15282 2012-05-03  Jan Hubicka  <jh@suse.cz>
15284         PR middle-end/53093
15285         * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
15287 2012-05-03  Jan Hubicka  <jh@suse.cz>
15289         PR middle-end/53106
15290         * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
15292 2012-05-03  Jason Merrill  <jason@redhat.com>
15294         * dwarf2out.c (die_struct): Add comdat_type_p flag.  Use it instead of
15295         use_debug_types to discriminate the die_id union.
15296         (print_die, assign_symbol_names, copy_decls_walk): Likewise.
15297         (build_abbrev_table, output_die): Likewise.
15298         (prune_unused_types_walk_attribs): Likewise.
15299         (generate_type_signature, copy_declaration_context): Set it.
15300         (remove_child_or_replace_with_skeleton): Set it.
15301         (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
15302         check use_debug_types.
15303         (dwarf2out_finish): Do break_out_includes after .debug_types.
15305 2012-05-03  Jason Merrill  <jason@redhat.com>
15307         * dwarf2out.c (modified_type_die): Use scope_die_for.
15308         (gen_type_die_with_usage, dwarf2out_finish): Likewise.
15309         (uses_local_type_r, uses_local_type): New.
15310         (scope_die_for): Keep a type that uses a local type in local scope.
15311         Use get_context_die for namespace and type scope.
15313 2012-05-03  Jason Merrill  <jason@redhat.com>
15315         * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
15316         pc thunk.
15317         * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
15318         (dwarf2out_finish): Likewise.
15320 2012-05-03  Martin Jambor  <mjambor@suse.cz>
15322         * builtins.c (get_object_alignment_1): Return whether we can determine
15323         the alignment or conservatively assume byte alignment.  Return the
15324         alignment by reference.  Use get_pointer_alignment_1 for dereference
15325         alignment.
15326         (get_pointer_alignment_1): Return whether we can determine the
15327         alignment or conservatively assume byte alignment.  Return the
15328         alignment by reference.  Use get_ptr_info_alignment to get SSA name
15329         alignment.
15330         (get_object_alignment): Update call to get_object_alignment_1.
15331         (get_object_or_type_alignment): Likewise, fall back to type alignment
15332         only when it returned false.
15333         (get_pointer_alignment): Update call to get_pointer_alignment_1.
15334         * fold-const.c (get_pointer_modulus_and_residue): Update call to
15335         get_object_alignment_1.
15336         * ipa-prop.c (ipa_modify_call_arguments): Update call to
15337         get_pointer_alignment_1.
15338         * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
15339         of MEM_REF or TARGET_MEM_REF only when it returns false.
15340         * tree-ssa-ccp.c (get_value_from_alignment): Update call to
15341         get_object_alignment_1.
15342         (ccp_finalize): Use set_ptr_info_alignment.
15343         * tree.h (get_object_alignment_1): Update declaration.
15344         (get_pointer_alignment_1): Likewise.
15345         * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
15346         (dump_gimple_stmt): Likewise.
15347         * tree-flow.h (ptr_info_def): Updated comments of fields align and
15348         misalign.
15349         (get_ptr_info_alignment): Declared.
15350         (mark_ptr_info_alignment_unknown): Likewise.
15351         (set_ptr_info_alignment): Likewise.
15352         (adjust_ptr_info_misalignment): Likewise.
15353         * tree-ssa-address.c (copy_ref_info): Use new access functions to get
15354         and set alignment of SSA names.
15355         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
15356         mark_ptr_info_alignment_unknown.
15357         * tree-ssanames.c (get_ptr_info_alignment): New function.
15358         (mark_ptr_info_alignment_unknown): Likewise.
15359         (set_ptr_info_alignment): Likewise.
15360         (adjust_ptr_info_misalignment): Likewise.
15361         (get_ptr_info): Call mark_ptr_info_alignment_unknown.
15362         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
15363         Likewise.
15364         (bump_vector_ptr): Likewise.
15365         * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
15366         (vectorizable_store): Likewise.
15367         (vectorizable_load): Likewise.
15369 2012-05-03  Michael Matz  <matz@suse.de>
15371         * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
15372         in front of basic_block_def.
15373         (struct basic_block_def): Make il.gimple the full struct, not a
15374         pointer.
15375         (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
15377         * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
15378         * gimple-iterator.c (gimple_stmt_iterator): Don't special case
15379         NULL il.gimple, which can't happen anymore.
15380         * gimple.h (bb_seq): il.gimple can't be NULL.
15381         (bb_seq_add): Ditto.
15382         (set_bb_seq): Adjust.
15383         (gsi_start_bb, gsi_last_bb): Tidy.
15384         * lto-streamer-in.c (make_new_block): Don't zero members that
15385         are zeroed already, don't allocate a gimple_bb_info.
15386         * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
15387         (remove_bb): Clear all il.gimple members.
15388         (gimple_verify_flow_info): Adjust for flat il.gimple.
15389         * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
15391         * coretypes.h (const_gimple_seq): Remove typedef.
15392         * gimple.h (gimple_seq_first): Take gimple_seq.
15393         (gimple_seq_first_stmt): Ditto.
15394         (gimple_seq_last): Ditto.
15395         (gimple_seq_last_stmt): Ditto.
15396         (gimple_seq_empty_p): Ditto.
15398 2012-05-03  Richard Guenther  <rguenther@suse.de>
15400         * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
15401         operations.
15402         (prune_clobbered_mems): Do it here.  Do not uselessly sort expressions.
15403         (compute_avail): Do not add possibly trapping operations to
15404         EXP_GEN if they might not be executed in the block.
15406 2012-05-03  Uros Bizjak  <ubizjak@gmail.com>
15408         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
15410 2012-05-03  Steven Bosscher  <steven@gcc.gnu.org>
15412         * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
15413         information as early as possible.  Update dominance info instead of
15414         discarding it.
15416 2012-05-03  Richard Guenther  <rguenther@suse.de>
15418         * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
15419         (union_contains_value): Remove.
15420         (vro_valid_in_sets): Likewise.
15421         (op_valid_in_sets): New function.
15422         (valid_in_sets): Use op_valid_in_sets.
15423         (insert_into_preds_of_block): Move dumping ...
15424         (do_regular_insertion): ... here.
15425         (do_partial_partial_insertion): ... and here.  Dump that
15426         we've found a partial partial redundancy.
15427         (insert): Dump the current insert iteration.
15429 2012-05-03  Jakub Jelinek  <jakub@redhat.com>
15431         PR plugins/53126
15432         * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
15433         append program name to it and pass that as first argument
15434         to make_relative_prefix.  Always pass standard_libexec_prefix
15435         as last argument to make_relative_prefix.  If
15436         make_relative_prefix returns NULL, fall back to
15437         standard_libexec_prefix.
15439         PR debug/53174
15440         * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
15441         removed.
15443         PR target/53187
15444         * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
15445         mode, return that mode.
15447         PR target/53194
15448         * config/i386/i386-c.c (ix86_target_macros_internal): Don't
15449         define __ATOMIC_HLE_* macros here.
15450         (ix86_target_macros): But here, using cpp_define_formatted.
15452 2012-05-03  Richard Guenther  <rguenther@suse.de>
15454         PR tree-optimization/53144
15455         * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
15456         Rename to ...
15457         (vn_reference_lookup_or_insert_for_pieces): ... this.  Properly deal
15458         with SSA name values.
15459         (vn_reference_lookup_3): Adjust callers.
15461 2012-05-03  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
15463         * config/i386/driver-i386.c (host_detect_local_cpu): Reset
15464         has_fma4 for AMD processors with both fma3 and fma4 support.
15466 2012-05-03  Kirill Yukhin  <kirill.yukhin@intel.com>
15468         PR target/53201
15469         * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
15470         "-mno-hle".
15472 2012-05-03  Michael Matz  <matz@suse.de>
15474         PR bootstrap/53197
15475         * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
15476         (dse_enter_block): Properly iterate the whole sequence even
15477         if the last statement was removed.
15479 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
15481         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
15482         unset flag_jump_tables.
15483         * stmt.c (expand_case): Remove special flag_pic case conditional
15484         on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
15486 2012-05-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
15488         * common/config/s390/s390-common.c (s390_option_optimization_table):
15489         Enable -fsched-pressure using -fsched-pressure-algorithm=model by
15490         default when optimizing.
15492 2012-05-02  Martin Jambor  <mjambor@suse.cz>
15494         PR lto/52605
15495         * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
15496         of a variable when the contect is a function.
15498 2012-05-02  Michael Matz  <matz@suse.de>
15500         * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
15501         * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
15502         (const_gimple_seq_node): Remove.
15503         (gimple_seq_node): Typedef as gimple.
15504         (struct gimple_statement_base): Add next and prev members,
15505         adjust all WORD markers in using structs.
15506         (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
15507         (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
15508         gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
15509         gimple are the same.
15510         (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
15511         gimple_seq, adjust.
15512         (gimple_init_singleton): New function.
15513         (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
15514         (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
15515         (gsi_stmt): Adjust.
15516         (gsi_stmt_ptr): Remove.
15517         (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
15519         * gimple-iterator.c (update_bb_for_stmts): Take last parameter
15520         again, adjust for above changes.
15521         (update_call_edge_frequencies): Adjust for above changes.
15522         (gsi_insert_seq_nodes_before): Rewrite for new data structure.
15523         (gsi_insert_seq_nodes_after): Ditto.
15524         (gsi_split_seq_after): Ditto.
15525         (gsi_set_stmt): Ditto.
15526         (gsi_split_seq_before): Ditto.
15527         (gsi_remove): Ditto.
15528         (gsi_insert_seq_before_without_update): Don't free sequence.
15529         (gsi_insert_seq_after_without_update): Ditto.
15530         (gsi_replace): Assert some more invariants.
15531         (gsi_insert_before_without_update, gsi_insert_after_without_update):
15532         Tidy.
15533         (gsi_for_stmt): Don't search for stmt.
15534         (gsi_insert_on_edge_immediate): Tidy.
15536         * gimple.c (gimple_alloc_k): Remove "sequences".
15537         (gimple_seq_cache): Remove.
15538         (gimple_alloc_stat): Make stmt a singleton sequence.
15539         (gimple_seq_alloc, gimple_seq_free): Remove.
15540         (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
15541         (gimple_copy): Ditto.
15542         * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
15543         create iterator from correct sequence.
15544         * tree-phinodes.c (make_phi_node): Make stmt a singleton.
15546 2012-05-02  Michael Matz  <matz@suse.de>
15548         * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
15549         gimple_seq.
15550         (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
15551         sequence, lazily allocate it.
15552         (bb_seq_addr): New function.
15553         (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
15554         (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
15555         (gsi_none): New function.
15556         (gsi_start_bb): Adjust.
15557         (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
15558         (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
15559         (gsi_last_bb): Adjust.
15560         (gsi_seq): Adjust.
15561         * tree-flow-inline.h (phi_nodes_ptr): New function.
15563         * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
15564         datastructure and interface change.
15565         (gsi_insert_seq_before_without_update): Ditto.
15566         (gsi_insert_seq_nodes_after): Ditto.
15567         (gsi_insert_seq_after_without_update): Ditto.
15568         (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
15569         (gsi_split_seq_before): Ditto.
15570         (gsi_start_phis): Adjust.
15571         * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
15572         (vect_transform_loop): Ditto.
15573         * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
15574         gimple_seq_copy): Don't use gimple_seq_alloc.
15575         * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
15576         (gimplify_seq_add_seq): Ditto.
15577         * lto-streamer-in.c (make_new_block): Ditto.
15578         * tree-cfg.c (create_bb): Ditto.
15579         * tree-sra.c (initialize_parameter_reductions): Ditto.
15581 2012-05-02  Michael Matz  <matz@suse.de>
15583         * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
15584         gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
15585         gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
15586         set_bb_seq): Move down to after gimple_statement_d definition.
15588 2012-05-02  Michael Matz  <matz@suse.de>
15590         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
15591         gsi_replace_with_seq, instead of inserting itself.
15592         * gimple-iterator.c (gsi_replace_with_seq): New function.
15593         * tree-ssa-forwprop.c (forward_propagate_comparison): Take
15594         iterator instead of statement, advance it.
15595         (ssa_forward_propagate_and_combine): Adjust call to above.
15597 2012-05-02  Michael Matz  <matz@suse.de>
15599         * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
15600         gimple_seq_alloc.
15601         * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
15602         * tree-nested.c (walk_gimple_omp_for): Ditto.
15603         * trans-mem.c (lower_transaction): Ditto.
15604         * tree-eh.c (do_return_redirection): Ditto.
15605         (do_goto_redirection): Ditto.
15606         (lower_try_finally_switch): Ditto.
15607         * gimplify.c (gimplify_stmt): Ditto.
15608         (gimplify_scan_omp_clauses): Ditto.
15609         (gimplify_omp_for): Ditto.
15610         (gimplify_function_tree): Ditto.
15611         * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
15612         * tree-mudflap.c (mf_decl_cache_locals): Ditto.
15613         (mf_build_check_statement_for): Ditto.
15614         (mx_register_decls): Ditto.
15615         * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
15616         and don't use itertors to append.
15617         (insert_stmts): Ditto.
15618         (insert_out_of_ssa_copy): Ditto.
15619         (insert_out_of_ssa_copy_on_edge): Ditto.
15621 2012-05-02  Michael Matz  <matz@suse.de>
15623         * gimple.h (gimple_bind_body_ptr): New function.
15624         (gimple_bind_body): Use it.
15625         (gimple_catch_handler): Use gimple_catch_handler_ptr.
15626         (gimple_eh_filter_failure_ptr): New function.
15627         (gimple_eh_filter_failure): Use it.
15628         (gimple_eh_else_n_body_ptr): New function.
15629         (gimple_eh_else_n_body): Use it.
15630         (gimple_eh_else_e_body_ptr): New function.
15631         (gimple_eh_else_e_body): Use it.
15632         (gimple_try_eval_ptr): New function.
15633         (gimple_try_eval): Use it.
15634         (gimple_try_cleanup_ptr): New function.
15635         (gimple_try_cleanup): Use it.
15636         (gimple_wce_cleanup_ptr): New function.
15637         (gimple_wce_cleanup): Use it.
15638         (gimple_omp_body_ptr): New function.
15639         (gimple_omp_body): Use it.
15640         (gimple_omp_for_pre_body_ptr): New function.
15641         (gimple_omp_for_pre_body): Use it.
15642         (gimple_transaction_body_ptr): New function.
15643         (gimple_transaction_body): Use it.
15644         (gsi_split_seq_before): Adjust to return nothing and take pointer
15645         to sequence.
15646         (gsi_set_stmt): Declare.
15647         (gsi_replace_with_seq): Declare.
15648         (walk_gimple_seq_mod): Declare.
15649         * function.h (struct function <gimple_body>): Use typedef gimple_seq.
15651         * gimple-iterator.c (gsi_set_stmt): New function.
15652         (gsi_split_seq_before): Return new sequence via pointer argument.
15653         (gsi_replace): Use gsi_set_stmt.
15655         * tree-ssa-loop-im.c (move_computations_stmt): First remove
15656         then insert stmt.
15657         * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
15658         * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
15659         return new stmt.
15660         (reserve_phi_args_for_new_edge): Change call to above,
15661         use gsi_set_stmt.
15663         * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
15664         (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
15665         iterators.  Adjust call to lower_omp.
15666         (lower_lastprivate_clauses): Adjust call to lower_omp.
15667         (lower_reduction_clauses): Ditto.
15668         (expand_omp_taskreg): Nullify non-cfg body of child_fn.
15669         (lower_omp_sections): Don't explicitely count sequence length,
15670         nullify lowered bodies earlier, ensure stmts are part of only
15671         one sequence, adjust call to lower_omp.
15672         (lower_omp_single): Ensure stmts are part of only one sequence,
15673         adjust call to lower_omp.
15674         (lower_omp_master): Ditto.
15675         (lower_omp_ordered): Ditto.
15676         (lower_omp_critical): Ditto.
15677         (lower_omp_for): Ditto.
15678         (lower_omp_taskreg): Ditto, tidy.
15679         (lower_omp_1): Adjust calls to lower_omp.
15680         (execute_lower_omp): Ditto.
15681         (lower_omp): Adjust to take pointer to sequence.
15682         (diagnose_sb_2): Use walk_gimple_seq_mod.
15683         (diagnose_omp_structured_block_errors): Ditto and set possibly
15684         changed function body.
15685         * gimple-low.c (lower_function_body): Set function body after
15686         it stabilizes.
15687         (lower_sequence): Adjust to take pointer to sequence.
15688         (lower_omp_directive): Ensure stmt isn't put twice into the
15689         sequence, adjust call to lower_sequence.
15690         (lower_stmt): Adjust calls to lower_sequence.
15691         (lower_gimple_bind): Ditto.
15692         (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
15693         * tree-nested.c (walk_body): Take pointer to sequence, use
15694         walk_gimple_seq_mod.
15695         (walk_function): Adjust call to walk_body, set possibly changed body.
15696         (walk_gimple_omp_for): Adjust calls to walk_body.
15697         (convert_nonlocal_omp_clauses): Ditto.
15698         (convert_nonlocal_reference_stmt): Ditto.
15699         (convert_local_omp_clauses): Ditto.
15700         (convert_local_reference_stmt): Ditto.
15701         (convert_tramp_reference_stmt): Ditto.
15702         (convert_gimple_call): Ditto.
15703         (convert_nl_goto_reference): Use local iterator copy.
15704         * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
15705         but taking pointer to sequence, ensure gsi_start is called with
15706         callers lvalue.
15707         (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
15708         asserting that the sequence head didn't change.
15709         (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
15710         walk_gimple_seq_mod.
15711         * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
15712         (execute_lower_tm): Ditto, and set possibly changed body.
15713         * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
15714         call gsi_start with that lvalue.
15715         (replace_goto_queue_stmt_list): Ditto.
15716         (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
15717         (replace_goto_queue): Ditto.
15718         (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
15719         (lower_try_finally_onedest): Ditto.
15720         (lower_try_finally_copy): Ditto.
15721         (lower_try_finally_switch): Ditto.
15722         (lower_try_finally): Ditto.
15723         (lower_eh_filter): Ditto.
15724         (lower_eh_must_not_throw): Ditto.
15725         (lower_cleanup): Ditto.
15726         (lower_eh_constructs_2): Ditto.
15727         (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
15728         (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
15729         set possibly changed body.
15730         (optimize_double_finally): Call gsi_start with lvalue.
15732         * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
15733         (gimple_split_block): Ditto.
15734         (gimple_merge_blocks): Use gsi_start_phis.
15735         (move_stmt_r): Use walk_gimple_seq_mod.
15736         * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
15737         * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
15738         (rebuild_cgraph_edges): Ditto.
15739         (cgraph_rebuild_references): Ditto.
15740         * ipa-prop.c (ipa_analyze_params_uses): Ditto.
15741         * tree-inline.c (copy_phis_for_bb): Ditto.
15742         * tree-ssa-dce.c: Ditto.
15744         * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
15746 2012-05-02  Kirill Yukhin  <kirill.yukhin@intel.com>
15747             Andi Kleen  <ak@linux.intel.com>
15749         * coretypes.h (MEMMODEL_MASK): New.
15750         * builtins.c (get_memmodel): Add val. Call target.memmodel_check
15751         and return new variable.
15752         (expand_builtin_atomic_exchange):  Mask memmodel values.
15753         (expand_builtin_atomic_compare_exchange): Ditto.
15754         (expand_builtin_atomic_load): Ditto.
15755         (expand_builtin_atomic_store): Ditto.
15756         (expand_builtin_atomic_clear): Ditto.
15757         * doc/extend.texi: Mention port-dependent memory model flags.
15758         * config/i386/cpuid.h (bit_HLE): New.
15759         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15760         HLE support.
15761         * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
15762         * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
15763         (ix86_target_string)<-mhle>: New.
15764         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
15765         * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
15766         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
15767         (ix86_option_override_internal) <PTA_HLE>: New switch, set it
15768         enabled for generic, generic64 and core-avx2.
15769         (ix86_print_operand): Generate HLE lock prefixes.
15770         (ix86_memmodel_check): New.
15771         (TARGET_MEMMODEL_CHECK): Ditto.
15772         * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
15773         (IX86_HLE_ACQUIRE): Ditto.
15774         (IX86_HLE_RELEASE): Ditto.
15775         * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
15776         * config/i386/i386.opt (mhle): Ditto.
15777         * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
15778         success model to instruction emitter.
15779         (atomic_fetch_add<mode>): Ditto.
15780         (atomic_exchange<mode>): Ditto.
15781         (atomic_add<mode>): Ditto.
15782         (atomic_sub<mode>): Ditto.
15783         (atomic_<code><mode>): Ditto.
15784         (*atomic_compare_and_swap_doubledi_pic): Ditto.
15785         (atomic_compare_and_swap_single<mode>): Define and use argument
15786         for success model.
15787         (atomic_compare_and_swap_double<mode>): Ditto.
15788         * configure.ac: Check if assembler support HLE prefixes.
15789         * configure: Regenerate.
15790         * config.in: Ditto.
15792 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
15794         PR middle-end/53153
15795         * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
15796         split out from ...
15797         (gimplify_switch_expr): ... here.
15798         * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
15799         * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
15800         to clean up case labels with values outside the index type range.
15801         (simplify_gimple_switch): Call it if something changed.
15802         Remove strange and unnecessary assert.
15804 2012-05-02  Richard Guenther  <rguenther@suse.de>
15806         * fold-const.c (div_if_zero_remainder): sizetypes no longer
15807         sign-extend.
15808         (int_const_binop_1): New worker for int_const_binop with
15809         overflowable parameter.  Pass it through to force_fit_type_double.
15810         (int_const_binop): Wrap around int_const_binop_1 with overflowable
15811         equal to one.
15812         (size_binop_loc): Call int_const_binop_1 with overflowable equal
15813         to minus one, forcing overflow detection for even unsigned types.
15814         (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
15815         (fold_binary_loc): Call try_move_mult_to_index with signed offset.
15816         * stor-layout.c (initialize_sizetypes): sizetypes no longer
15817         sign-extend.
15818         (layout_type): For zero-sized arrays ignore overflow on the
15819         size calculations.
15820         * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
15821         (bit_value_binop_1): Likewise.
15822         * tree.c (double_int_to_tree): Likewise.
15823         (double_int_fits_to_tree_p): Likewise.
15824         (force_fit_type_double): Likewise.
15825         (host_integerp): Likewise.
15826         (int_fits_type_p): Likewise.
15827         * varasm.c (output_constructor_regular_field): Sign-extend the
15828         field-offset to cater for negative offsets produced by the Ada
15829         frontend.
15830         * omp-low.c (extract_omp_for_data): Convert the loop step to
15831         signed for pointer adjustments.
15833 2012-05-02  Richard Guenther  <rguenther@suse.de>
15835         * tree.c (valid_constant_size_p): New function.
15836         * tree.h (valid_constant_size_p): Declare.
15837         * cfgexpand.c (expand_one_var): Adjust check for too large
15838         variables by using valid_constant_size_p.
15839         * varasm.c (assemble_variable): Likewise.
15841         * c-decl.c (grokdeclarator): Properly check for sizes that
15842         cover more than half of the address-space.
15844 2012-05-02  Jakub Jelinek  <jakub@redhat.com>
15846         PR tree-optimization/53163
15847         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
15848         return value from compute_all_dependences.
15850         PR rtl-optimization/53160
15851         * ree.c (combine_reaching_defs): Handle the case where cand->insn
15852         has been modified by ree pass already.
15854 2012-05-01  Ian Lance Taylor  <iant@google.com>
15856         PR c/37303
15857         * c-decl.c (build_compound_literal): Make the decl readonly if it
15858         an array of a readonly type.
15859         * gimplify.c (gimplify_compound_literal_expr): Add fallback
15860         parameter.  Change all callers.  If the decl is not addressable
15861         and is not an l-value, make it readonly.
15863 2012-05-01  Bernd Schmidt  <bernds@codesourcery.com>
15865         * ira.c (allocated_reg_info_size): New static variable.
15866         (expand_reg_info): Manage it. Call
15867         setup_preferred_alternate_classes_for_new_pseudos.
15868         (ira): Don't do it here.  Remove local allocated_reg_info_size,
15869         set the global before calling find_moveable_pseudos.
15870         (find_moveable_pseudos): Call expand_reg_info rather than
15871         resize_reg_info.
15873 2012-05-01  Richard Henderson  <rth@redhat.com>
15875         * common.opt (fsync-libcalls): New.
15876         * doc/invoke.texi: Document it.
15877         * optabs.c (init_sync_libfuncs): Honor it.
15879 2012-05-01  Kenneth Zadeck  <zadeck@naturalbridge.com>
15880             Richard Sandiford  <r.sandiford@uk.ibm.com>
15882         PR rtl-optimization/52543
15883         * Makefile.in (lower-subreg.o, target-globals.o): Depend on
15884         lower-subreg.h.
15885         * lower-subreg.h: New file.
15886         * target-globals.h (this_target_lower_subreg): Declare.
15887         (target_globals): Add lower_subreg;
15888         (restore_target_globals): Restore this_target_lower_subreg.
15889         * target-globals.c: Include it.
15890         (default_target_globals): Add default_target_lower_subreg.
15891         (save_target_globals): Initialize target_lower_subreg.
15892         * rtl.h (init_lower_subreg): Added declaration.
15893         * toplev.c (backend_init_target): Call initializer for lower-subreg
15894         pass.
15895         * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
15896         (default_target_lower_subreg): New variable.
15897         (this_target_lower_subreg): Likewise.
15898         (twice_word_mode, choices): New macros.
15899         (shift_cost, compute_splitting_shift, compute_costs)
15900         (init_lower_subreg): New functions.
15901         (resolve_simple_move): Add speed_p argument.  Check choices.
15902         (find_pseudo_copy): Don't check the mode size here.
15903         (resolve_simple_move): Assert the mode size.
15904         (find_decomposable_shift_zext): Add speed_p argument and return
15905         a bool.  Check choices.
15906         (resolve_shift_zext): Add comment.
15907         (dump_shift_choices, dump_choices): New functions.
15908         (decompose_multiword_subregs): Dump list of profitable
15909         transformations.  Add code to skip non profitable transformations.
15910         Update calls to simple_move and find_decomposable_shift_zext.
15912 2012-05-01  Ian Bolton  <ian.bolton@arm.com>
15913             Sameera Deshpande  <sameera.deshpande@arm.com>
15914             Greta Yorsh  <greta.yorsh@arm.com>
15916         * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
15917         (thumb1_unexpanded_epilogue): ...this.
15918         * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
15919         (thumb1_unexpanded_epilogue): ...this.
15920         * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
15921         (thumb1_unexpanded_epilogue): ...this.
15923 2012-05-01  Richard Earnshaw  <rearnsha@arm.com>
15925         * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
15926         comparing enumeration values.  Update comments.
15928 2012-05-01  Alan Modra  <amodra@gmail.com>
15930         PR target/53038
15931         * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
15932         load_cr_save, add_crlr_cfa_restore): New functions.
15933         (rs6000_restore_saved_cr): Rename to..
15934         (restore_saved_cr): ..this.  Add cfa_restore notes for cr.
15935         (rs6000_emit_epilogue): Use new functions.  Adjust condition
15936         for emitting lr and cr cfa_restore.  Emit cfa_restores for fp
15937         regs when using out-of-line restore only when shrink wrapping.
15939 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
15941         PR middle-end/53136
15942         * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
15943         calls to cgraph_node_name in xstrdup.
15944         (ipa_make_edge_direct_to_target): Ditto.
15945         * cgraph.c (dump_cgraph_node): Ditto.
15946         * tree-sra.c (convert_callers_for_node): Ditto.
15947         * lto-symtab.c (lto_cgraph_replace_node): Ditto.
15948         * ipa-cp.c (perhaps_add_new_callers): Ditto.
15949         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
15950         (cgraph_materialize_all_clones): Ditto.
15951         * ipa-inline.c (report_inline_failed_reason): Ditto.
15952         (want_early_inline_function_p): Ditto.
15953         (edge_badness): Ditto.
15954         (update_edge_key): Ditto.
15955         (flatten_function): Ditto.
15956         (ipa_inline): Ditto.
15957         (inline_always_inline_functions): Ditto.
15958         (early_inline_small_functions): Ditto.
15960 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
15962         PR target/53141
15963         * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
15964         constraints 0 and 1.
15966 012-04-30  Jan Hubicka  <jh@suse.cz>
15968         * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
15969         (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
15970         (cgraph_add_to_same_comdat_group): Remove.
15971         (cgraph_add_asm_node): Move to cgraphunit.c.
15972         (cgraph_make_decl_local): Move to symtab.c
15973         (cgraph_make_node_local_1): Update.
15974         (cgraph_can_remove_if_no_direct_calls_and): Update.
15975         (used_from_object_file_p): Update.
15976         (resolution_used_from_other_file_p): Move to symtab.c
15977         (cgraph_used_from_object_file_p): move to symtab.c
15978         (verify_cgraph_node): Verify same comdat groups.
15979         * cgraph.h (cgraph_asm_node): Rename to ...
15980         (asm_node): ... this one.
15981         (cgraph_asm_nodes): Rename to ...
15982         (asm_nodes): ... this one.
15983         (symtab_add_to_same_comdat_group): New function.
15984         (symtab_dissolve_same_comdat_group_list): New function.
15985         (symtab_used_from_object_file_p): Declare.
15986         (symtab_make_decl_local): Declare.
15987         (cgraph_add_to_same_comdat_group): Remove.
15988         (cgraph_add_asm_node): Remove.
15989         (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
15990         Remove.
15991         (cgraph_finalize_compilation_unit): Rename to ...
15992         (finalize_compilation_unit): ... this one.
15993         (cgraph_optimize): Rename to ....
15994         (compile): ... this one.
15995         (add_asm_node): Declare.
15996         (fixup_same_cpp_alias_visibility): Declare.
15997         (cgraph_make_decl_local): Remove.
15998         (varpool_assemble_pending_decls): Rename to ...
15999         (varpool_output_variables): ... this one.
16000         (varpool_remove_unreferenced_decls): Remove.
16001         * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
16002         (preserve_function_body_p): Make static.
16003         * toplev.c (compile_file): Update comments; update.
16004         * cgraphunit.c: Update comments.
16005         (cgraph_expand_all_functions): Rename to ...
16006         (expand_all_functions): ... this one; update.
16007         (cgraph_mark_functions_to_output): Rename to ...
16008         (mark_functions_to_output): ... this one; cleanup.
16009         (cgraph_output_pending_asms): Remove prototype.
16010         (asm_nodes, asm_last_node): New static vars.
16011         (cgraph_process_new_functions): Update.
16012         (cgraph_reset_node): Cleanup; add comment.
16013         (cgraph_add_new_function): Update.
16014         (cgraph_output_pending_asms): Rename to ...
16015         (output_asm_statements): ... this one.
16016         (add_asm_node): New function.
16017         (fixup_same_cpp_alias_visibility): New function based on code
16018         in cgraph_analyze_function.
16019         (cgraph_analyze_function): Use it.
16020         (cgraph_order_sort): Update.
16021         (cgraph_output_in_order): Update.
16022         (cgraph_function_versioning): Update.
16023         (cgraph_optimize): Rename to ...
16024         (compile): ... this one; initialize streamer hooks here.
16025         (cgraph_finalize_compilation_unit): Rename to ...
16026         (finalize_compilation_unit): ... this one; do not initialize streamer
16027         hook here.
16028         * lto-streamer-out.c (lto_output_toplevel_asms): Update.
16029         * dwarf2out.c: Update ocmment.
16030         * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
16031         * method.c (use_thunk): Likewise.
16032         * semantics.c (maybe_add_lambda_conv_op): Likewise.
16033         * decl2.c (maybe_emit_vtables): Likewise.
16034         (cp_write_global_declarations): Use finalize_compilation_unit.
16035         * parser.c (cp_parser_asm_definition): Use add_asm_node.
16036         * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
16037         * c-decl.c (c_write_global_declarations): Use
16038         finalize_compilation_unit.
16039         * langhooks.c (write_global_declarations): Update.
16040         * ipa.c (cgraph_externally_visible_p): Update.
16041         (dissolve_same_comdat_group_list): Remove.
16042         (function_and_variable_visibility): Update.
16043         * symtab.c: Inlcude lto-streamer.h and rtl.h
16044         (ld_plugin_symbol_resolution_names): New.
16045         (symtab_add_to_same_comdat_group): New.
16046         (symtab_dissolve_same_comdat_group_list): New.
16047         (resolution_used_from_other_file_p): Move here from cgraph.c
16048         (symtab_used_from_object_file_p): New.
16049         (symtab_make_decl_local): New.
16050         * passes.c (register_pass): Update comments.
16051         * c-parser.c (c_parser_asm_definition): Update.
16052         * varpool.c (varpool_analyze_node): Use
16053         fixup_same_cpp_alias_visibility.
16054         (varpool_remove_unreferenced_decls): Make static.
16055         (varpool_assemble_pending_decls): Rename to ...
16056         (varpool_output_variables): ... this one; call
16057         varpool_remove_unreferenced_decls.
16058         (varpool_used_from_object_file_p): Remove.
16060 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
16062         PR c++/51033
16063         * c-typeck.c (build_array_ref): Call
16064         convert_vector_to_pointer_for_subscript.
16065         * doc/extend.texi (Vector Extensions): Subscripting not just for C.
16067 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
16069         * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
16070         to compile-time "mode == <MODE>mode" checks.
16071         (and splitter): Ditto.
16073 2012-04-30  Richard Henderson  <rth@redhat.com>
16075         * config/arm/arm.md (UNSPEC_LL): New.
16076         * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
16077         (arm_load_exclusivedi): Use %H0.
16079 2012-04-30  Jason Merrill  <jason@redhat.com>
16081         * dwarf2out.c (comdat_symbol_id): Add const.
16082         (union die_symbol_or_type_node): Add const to die_symbol.
16083         (output_die_symbol, output_die, output_comp_unit): Adjust.
16085 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
16087         * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
16088         * config/arm/neon.md (negdi2_neon): New insn.
16089         Also add splitters for core and NEON registers.
16091 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
16093         * config/arm/arm.c (neon_valid_immediate): Allow const_int.
16094         (arm_print_operand): Add 'x' format.
16095         * config/arm/constraints.md (Dn): Allow const_int.
16096         * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
16097         Use 'x' format to print constants.
16098         * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
16099         * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
16100         is enabled.
16101         (movdi_vfp_cortexa8): Likewise.
16103 2012-04-30  Ian Bolton  <ian.bolton@arm.com>
16104             Sameera Deshpande  <sameera.deshpande@arm.com>
16105             Greta Yorsh  <greta.yorsh@arm.com>
16107         * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
16108         * config/arm/arm.c (ldm_stm_operation_p): New function.
16109         * config/arm/predicates.md (load_multiple_operation): Update predicate.
16110         (store_multiple_operation): Likewise.
16112         * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
16113         * config/arm/arm.c (ldm_stm_operation_p): New parameters.
16114         * config/arm/predicates.md (load_multiple_operation): Add arguments.
16115         (store_multiple_operation): Likewise.
16117 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
16119         * config/i386/i386.md (and<mode>3): Expand masking operations with
16120         0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
16121         (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
16123 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
16125         Add -Wvarargs option
16126         * builtins.c (fold_builtin_next_arg):  Use OPT_Wvarargs as an
16127         argument for the various warning_at calls.
16128         * docs/invoke.texi: Update the documentation.
16130 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
16132         Switch -ftrack-macro-expansion=2 on by default.
16133         * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
16134         by default.
16136         Fix va_start related location
16137         * builtins.c (fold_builtin_next_arg): Unwinds to the first
16138         location in real source code.
16140         Make conversion warnings work on NULL with -ftrack-macro-expansion
16141         * input.h (expansion_point_location_if_in_system_header): Declare
16142         new function.
16143         * input.c (expansion_point_location_if_in_system_header): Define it.
16145         Fix -Wuninitialized for -ftrack-macro-expansion
16146         * tree-ssa.c (warn_uninit): Use the spelling location of the variable
16147         declaration.  Use linemap_location_before_p for source locations.
16149         Strip "<built-in>" loc from displayed expansion context
16150         * input.c (expand_location_1): When expanding to spelling location
16151         in a context of a macro expansion, skip reserved system header
16152         locations.  Update comments.  * tree-diagnostic.c
16153         (maybe_unwind_expanded_macro_loc): Likewise.
16155         Make expand_location resolve to locus in main source file
16156         * input.c (expand_location_1): New.  Takes a parameter to choose
16157         whether to resolve the location to spelling or expansion point.
16158         Was factorized from ...
16159         (expand_location): ... here.
16160         (expand_location_to_spelling_point): New.  Implemented in terms of
16161         expand_location_1.
16162         * diagnostic.c (diagnostic_build_prefix): Use the new
16163         expand_location_to_spelling_point instead of expand_location.
16165         Fix PCH crash on GTYed pointer-to-scalar field of a struct
16166         * gengtype.c (write_types_process_field): Force second argument of
16167         the call to the PCH object hierarchy walker to be 'x'.
16169 2012-04-30  Eric Botcazou  <ebotcazou@adacore.com>
16171         * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
16172         predicate to discriminate types.
16174 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16176         * doc/invoke.texi (Wmissing-format-attribute): Document as an
16177         alias of Wsuggest-attribute=format.
16178         * c-typeck.c (convert_for_assignment): Replace
16179         Wmissing-format-attribute with Wsuggest-attribute=format.
16180         (digest_init): Likewise.
16182 2012-04-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16184         * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
16185         * common.opt (Wmissing-noreturn): Alias of
16186         -Wsuggest-attribute=noreturn.
16188 2012-04-29  Hans-Peter Nilsson  <hp@axis.com>
16190         PR target/53156
16191         * config/cris/cris.md (andqu): New peephole2.
16192         (andu): Tweak head comment.
16194 2012-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16195             Steven Bosscher  <steven@gcc.gnu.org>
16196             Maxim Kuvyrkov  <maxim@codesourcery.com>
16198         PR tree-optimization/38785
16199         * common.opt (ftree-partial-pre): New option.
16200         * doc/invoke.texi: Document it.
16201         * opts.c (default_options_table): Initialize flag_tree_partial_pre.
16202         * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
16203         benefit speed path.
16204         (execute_pre): Use flag_tree_partial_pre.
16206 2012-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16208         PR target/52999
16209         * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
16210         in constant pool.
16212 2012-04-27  Ollie Wild  <aaw@google.com>
16214         * doc/invoke.texi (Wliteral-suffix): Document new option.
16216 2012-04-27  Tom Tromey  <tromey@redhat.com>
16218         * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
16219         (dwarf_tag_name): Use get_DW_TAG_name.
16220         (dwarf_attr_name): Use get_DW_AT_name.
16221         (dwarf_form_name): Use get_DW_FORM_name.
16222         * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
16224 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
16226         * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
16227         arguments are -1 and 0, by negating the result of the conditional.
16229 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
16231         PR target/53138
16232         * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
16234 2012-04-27  Richard Guenther  <rguenther@suse.de>
16236         * tree-flow.h (is_hidden_global_store): Remove.
16237         * tree-ssa-sink.c (is_hidden_global_store): Likewise.
16238         * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
16239         (stmt_may_clobber_global_p): Likewise.
16240         * tree-ssa-alias.c (ref_may_alias_global_p): New function.
16241         (stmt_may_clobber_global_p): Likewise.
16242         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
16243         stmt_may_clobber_global_p.
16244         * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
16246 2012-04-27  Steven Bosscher  <steven@gcc.gnu.org>
16248         * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
16249         place.
16251         * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
16252         reorganize some fields and update comments.  Rename bit_test_uniq
16253         and bit_test_count to uniq resp. count.  Remove bit_test_bb.
16254         (collect_switch_conv_info): New function, collects info about a
16255         GIMPLE_SWITCH into a struct switch_conv_info.
16256         (check_range): Simplify to use pre-recorded info.  Fix think-o in
16257         range-branch ratio check.
16258         (check_process_case): Remove function.
16259         (check_all_empty_except_final): New function, verifies that all
16260         non-final basic blocks are empty.
16261         (process_switch): Simplify to use pre-recorded info.  Call
16262         collect_switch_conv_info to do that.  Assert that degenerate switch
16263         statements have been cleaned up.
16265 2012-04-27  Marc Glisse  <marc.glisse@inria.fr>
16267         PR middle-end/27139
16268         * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
16270 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16272         PR c/53130
16273         * c-typeck.c (pop_init_level): Use %qD instead of %qT.
16275 2012-04-27  Tom de Vries  <tom@codesourcery.com>
16277         PR tree-optimization/51879
16278         * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
16279         * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
16280         of ...
16281         (defs_to_varying): ... here.  Don't set use_processed.
16282         (visit_reference_op_call): Handle gimple_vdef.
16283         Handle case that lhs is NULL_TREE.
16284         (visit_use): Use mark_use_processed.  Handle calls with side-effect
16285         using visit_reference_op_call.
16287 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
16289         * sched-deps.c (fixup_sched_groups): Rename to...
16290         (chain_to_prev_insn): ...this.
16291         (chain_to_prev_insn_p): New function.
16292         (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
16294 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
16296         * sched-int.h (_haifa_insn_data): Move priority_status.
16297         Add model_index.
16298         (INSN_MODEL_INDEX): New macro.
16299         * haifa-sched.c (insn_delay): New function.
16300         (sched_regno_pressure_class): Update commentary.
16301         (mark_regno_birth_or_death): Pass the liveness bitmap and
16302         pressure array as arguments, instead of using curr_reg_live and
16303         curr_reg_pressure.  Only update the pressure if the bit in the
16304         liveness set has changed.
16305         (initiate_reg_pressure_info): Always trust the live-in set for
16306         SCHED_PRESSURE_MODEL.
16307         (initiate_bb_reg_pressure_info): Update call to
16308         mark_regno_birth_or_death.
16309         (dep_list_size): Take the list as argument.
16310         (calculate_reg_deaths): New function, extracted from...
16311         (setup_insn_reg_pressure_info): ...here.
16312         (MODEL_BAR): New macro.
16313         (model_pressure_data, model_insn_info, model_pressure_limit)
16314         (model_pressure_group): New structures.
16315         (model_schedule, model_worklist, model_insns, model_num_insns)
16316         (model_curr_point, model_before_pressure, model_next_priority):
16317         New variables.
16318         (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
16319         (MODEL_INSN_INFO, MODEL_INSN): New macros.
16320         (model_index, model_update_limit_points_in_group): New functions.
16321         (model_update_limit_points, model_last_use_except): Likewise.
16322         (model_start_update_pressure, model_update_pressure): Likewise.
16323         (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
16324         (model_excess_cost, model_dump_pressure_points): Likewise.
16325         (model_set_excess_costs): Likewise.
16326         (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
16327         SCHED_PRIORITY_MODEL.  Use insn_delay.  Use the order in the model
16328         schedule as an alternative tie-breaker.  Update the call to
16329         dep_list_size.
16330         (ready_sort): Call model_set_excess_costs.
16331         (update_register_pressure): Update call to mark_regno_birth_or_death.
16332         Rely on that function to check liveness rather than doing it here.
16333         (model_classify_pressure, model_order_p, model_add_to_worklist_at)
16334         (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
16335         (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
16336         (model_record_pressure, model_record_pressures): New functions.
16337         (model_record_final_pressures, model_add_successors_to_worklist)
16338         (model_promote_predecessors, model_choose_insn): Likewise.
16339         (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
16340         (model_start_schedule, model_finalize_pressure_group): Likewise.
16341         (model_end_schedule): Likewise.
16342         (schedule_insn): Say when we're scheduling the next instruction
16343         in the model schedule.
16344         (schedule_insn): Handle SCHED_PRESSURE_MODEL.
16345         (queue_to_ready): Do not add instructions that are
16346         MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
16347         Always allow the next instruction in the model schedule to be added.
16348         (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
16349         and delay for SCHED_PRESSURE_MODEL too.
16350         (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
16351         SCHED_PRIORITY_MODEL, but also take the DFA into account.
16352         (schedule_block): Call model_start_schedule and model_end_schedule.
16353         Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
16354         (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
16355         to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
16356         region_ref_regs.
16357         (sched_finish): Update accordingly.
16358         (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
16359         to SCHED_PRESSURE_MODEL.
16360         (add_jump_dependencies): Update call to dep_list_size.
16361         (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
16362         (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
16363         to SCHED_PRESSURE_MODEL.
16364         * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
16365         allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
16366         (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
16367         handling to SCHED_PRESSURE_MODEL.
16369 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
16371         * common.opt (fsched-pressure-algorithm=): New option.
16372         * flag-types.h (sched_pressure_algorithm): New enum.
16373         * sched-int.h (sched_pressure_p): Replace with...
16374         (sched_pressure): ...this new variable.
16375         * haifa-sched.c (sched_pressure_p): Replace with...
16376         (sched_pressure): ...this new variable.
16377         (sched_regno_pressure_class, rank_for_schedule, ready_sort)
16378         (update_reg_and_insn_max_reg_pressure, schedule_insn)
16379         (debug_ready_list, prune_ready_list, schedule_block, sched_init)
16380         (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
16381         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
16382         (sched_analyze_insn): Likewise.
16383         * sched-rgn.c (schedule_region): Likewise.
16384         * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
16386 2012-04-26  Bernd Schmidt  <bernds@codesourcery.com>
16388         * PR middle-end/52997
16389         * ira.c (find_moveable_pseudos): Call resize_reg_info.
16391         PR middle-end/52940
16392         * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
16393         * expr.c (convert_move): Honor unsignedp when extending partial int
16394         modes.
16395         * genmodes.c (complete_mode): Don't clear component field of partial
16396         int modes.
16397         (emit_mode_inner): Don't emit it however.
16398         (calc_wider_mode): Partial int modes widen to their component.
16400 2012-04-26  David S. Miller  <davem@davemloft.net>
16402         * config/sparc/niagara4.md: New file.
16403         * config/sparc/sparc.md: Include it.
16404         * config/sparc/sparc.c (niagara4_costs): New processor costs.
16405         (sparc_option_override): Use it.
16406         (sparc_use_sched_lookahead): Return 2 for niagara4.
16407         (sparc_issue_rate): Likewise.
16409         * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
16410         (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
16411         (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
16412         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
16413         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
16414         alignaddrldi_vis): Set type to gsr.
16415         (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
16416         (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
16417         cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
16418         v<vis3_shift_patname><mode>3, fmean16_vis,
16419         fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
16420         fucmp<code>8<P:mode>_vis): Set type to fga.
16421         * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
16422         * config/sparc/niagara.md: Likewise.
16423         * config/sparc/niagara2.md: Likewise.
16424         * config/sparc/ultra3.md: Likewise, and fix type matching for
16425         us3_ialuX reservation.
16427 2012-04-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16429         * reload.c (find_reloads): Change the loop nesting when trying an
16430         alternative with swapped operands.
16432 2012-04-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16434         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
16435         comment. Delete unused parameter first_exp_point_map.
16436         (virt_loc_aware_diagnostic_finalizer): Update call.
16438 2012-04-26  Michael Hope  <michael.hope@linaro.org>
16439             Richard Earnshaw  <rearnsha@arm.com>
16441         * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
16442         (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
16443         (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
16444         (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
16446 2012-04-25  Sriraman Tallam  <tmsriram@google.com>
16448         * doc/extend.texi: Document avx2 support.
16449         * config/i386/i386.c (fold_builtin_cpu): Add avx2.
16451 2012-04-26  Hans-Peter Nilsson  <hp@axis.com>
16453         PR target/53120
16454         * config/cris/cris.md ("*andhi_lowpart_v32")
16455         ("*andqi_lowpart_v32"): Change first input-only operand from
16456         a (match_operand ...) to (match_dup 0).  Drop alternatives with
16457         const_int-matching constraints for redundancy.
16458         ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
16459         three-operand alternative.
16461 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
16463         PR target/53110
16464         * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
16465         instead expand it as zero extension.
16467 2012-04-25  H.J. Lu  <hongjiu.lu@intel.com>
16469         PR debug/52857
16470         * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
16472 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
16474         * common.opt (flag_debug_types_section): Default to 0.
16475         (dwarf_version): Default to 4.
16476         (dwarf_record_gcc_switches): Default to 1.
16477         (dwarf_strict): Default to 0.
16478         * toplev.c (process_options): Don't handle dwarf_strict
16479         or dwarf_version here.
16480         * config/vxworks.c (vxworks_override_options): Don't
16481         test whether dwarf_strict or dwarf_version are negative,
16482         instead test !global_options_set.x_dwarf_*.
16483         * config/darwin.c (darwin_override_options): Default to
16484         dwarf_version 2.
16485         * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
16486         and -fno-debug-types-section are now the default.
16488 2012-04-25  Jan Hubicka  <jh@suse.cz>
16490         * cgraphunit.c: Update toplevel comment.
16491         (tree_rest_of_compilation): Merge into cgraph_expand_function.
16492         (cgraph_analyze_function): Make static.
16493         (cgraph_decide_is_function_needed): Make static.
16494         (cgraph_add_new_function): Use expand_function instead of
16495         rest_of_compilation.
16496         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
16497         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
16498         Move to cgraph.c
16499         (cgraph_inline_p): Remove.
16500         (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
16501         (init_cgraph): Add comment.
16502         * cgraphbuild.c (record_reference, mark_address, mark_load,
16503         mark_store): Do not call analyze_expr hook.
16504         * cgraph.c: Update toplevel comment.
16505         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
16506         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
16507         Move fere from cgraphunit.c
16508         (cgraph_mark_force_output_node): Move to cgraph.h
16509         * cgraph.h: Reorder so the comments match the function placement.
16510         (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
16511         (cgraph_mark_force_output_node): Move here from cgraph.c
16512         * tree.c (free_lang_data): Do not clear analyze_expr hook.
16513         * ipa-inline-transform.c (preserve_function_body_p): New function.
16514         (inline_transform): Update.
16515         * langhooks.c (lhd_callgraph_analyze_expr): Remove.
16516         * langhooks.h (lang_hooks_for_callgraph): Remove.
16517         (lang_hooks): Remove callgraph.
16518         * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
16519         * varpool.c: Remove out of date comment.
16520         * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
16521         (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
16523 2012-04-25  Jan Hubicka  <jh@suse.cz>
16525         PR middle-end/53089
16526         * cgraphunit.c (referred_to_p): Move ahead in file to avoid
16527         forward declaration.
16528         (cgraph_finalize_function): Finalize them here.
16529         * symtab.c (dump_symtab): Dump ctors and dtors.
16531 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
16533         PR middle-end/52979
16534         * stor-layout.c (get_best_mode): Don't return mode with bitsize
16535         larger than maxbits.  Don't compute maxbits modulo align.
16536         Also check that unit bytes long store at bitpos / unit * unit
16537         doesn't affect bits beyond bitregion_end.
16538         * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
16539         would not fit into bitregion_start ... bitregion_end + 1 bit region.
16540         (store_split_bit_field): Decrease unit close to end of bitregion_end
16541         if access is restricted in order to avoid mutual recursion.
16543         PR tree-optimization/53058
16544         * double-int.h (double_int_max_value, double_int_min_value): New
16545         prototypes.
16546         * double-int.c (double_int_max_value, double_int_min_value): New
16547         functions.
16548         * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
16549         or GT_EXPR with double_int_max_value instead of double_int_mask.
16551 2012-04-25  Richard Guenther  <rguenther@suse.de>
16553         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
16554         * tree-vect-loop.c (vect_transform_loop): Adjust.
16555         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
16556         the maximum number of iterations for the epilogue loop.
16557         (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
16559 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
16561         PR c/52880
16562         * c-typeck.c (set_nonincremental_init,
16563         set_nonincremental_init_from_string): Pass true instead of false
16564         as IMPLICIT to add_pending_init.
16566 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16568         * c-typeck.c (pop_init_level): Improve diagnostics.
16570 2012-04-25  Uros Bizjak  <ubizjak@gmail.com>
16572         * compare-elim.c (try_eliminate_compare): Also handle operands with
16573         implicit extensions.
16575 2012-04-25  Alan Modra  <amodra@gmail.com>
16577         * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
16578         V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
16579         SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
16580         (no_global_regs_above): Delete.
16581         (no_global_regs): New function.
16582         (rs6000_savres_strategy): Handle vector regs.  Use proper lr_save_p
16583         value for load multiple test.
16584         (savres_routine_syms): Increase size.
16585         (rs6000_savres_routine_name, rs6000_savres_routine_sym,
16586         ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
16587         rather than a number of boolean flags.  Update all callers.
16588         (rs6000_savres_routine_name): Generate vector save/restore names.
16589         (rs6000_savres_routine_sym): Handle vector regs.  Delete forward decl.
16590         (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
16591         (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
16592         and using_store_multiple.  Expand uses.  Don't always use r11 as
16593         frame reg when needed for out-of-line saves.  Set up initial offset
16594         for out-of-line vector saves when buying stack frame.  Handle pointer
16595         reg setup for out-of-line fp save.  Emit call to out-of-line vector
16596         save function.  Choose r11 or r12 for vrsave reg when available for
16597         better scheduling.
16598         (rs6000_output_function_prologue): Don't emit .extern for ELF.
16599         (rs6000_emit_epilogue): Choose a better frame reg when restoring
16600         from back-chain to suit out-of-line vector restore functions.  Emit
16601         call to out-of-line vector restore function.  Adjust register used
16602         for cr restore.  Tweak pointer register setup for gpr restore.
16603         * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
16604         FIXED_R13.
16605         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
16606         (V_SAVE_INLINE): Define.
16607         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
16609 2012-04-25  Alan Modra  <amodra@gmail.com>
16611         * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
16612         out-of-line save/restore for large frames.  Don't disable
16613         out-of-line saves on ABI_AIX when using static chain reg.
16614         (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
16615         clobber static chain reg, and tweak for out-of-line gpr saves
16616         that use r1.
16618 2012-04-25  Alan Modra  <amodra@gmail.com>
16620         * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
16621         (rs6000_emit_prologue): Use the above to catch register overlap.
16623 2012-04-25  Alan Modra  <amodra@gmail.com>
16625         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
16626         decl.  Move logic selecting update reg to callers.  Update all callers.
16627         (rs6000_emit_allocate_stack): Add copy_off param.
16628         (emit_frame_save): Don't handle reg+reg addressing.
16629         (ptr_regno_for_savres): New function, extracted from..
16630         (rs6000_emit_savres_rtx): ..here.  Add lr_offset param.
16631         (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
16632         Set frame_reg_rtx to r11 whenever r11 is needed, and merge
16633         frame offset adjustment for out-of-line save with copy from sp.
16634         Simplify condition controlling whether cr is saved early or
16635         late.  Use ptr_regno_for_savres to verify correct reg is set
16636         up for out-of-line saves.  Pass the actual pointer reg used to
16637         rs6000_emit_savres_rtx so rtl matches insns in out-of-line
16638         function.  Rearrange spe vars so code is similar to that
16639         elsewhere in this function.  Don't update frame_off when spe
16640         save code will restore r11.  Use emit_frame_save for spe and
16641         gpr saves.  Consolidate darwin out-of-line gpr setup with that
16642         for other abis.  Don't assume frame_offset is zero and frame
16643         reg is sp when setting up altivec reg saves, and calculate
16644         exact offset requirement.
16645         (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off.  Tidy
16646         spe restore code.  Consolidate darwin out-of-line gpr setup
16647         with that for other abis.
16649 2012-04-25  Alan Modra  <amodra@gmail.com>
16651         * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
16652         REG_FRAME_RELATED_EXPR note when the instruction exactly matches
16653         the replacement.
16654         (emit_frame_save): Delete frame_ptr param.  Rename total_size to
16655         frame_reg_to_sp.
16656         (rs6000_emit_prologue): Add sp_off.  Update rs6000_frame_related
16657         and emit_frame_save calls.  Cope with possibly missing note.
16659 2012-04-24  Sriraman Tallam  <tmsriram@google.com>
16661         * config/i386/i386.c (build_processor_model_struct): New function.
16662         (make_var_decl): New function.
16663         (fold_builtin_cpu): New function.
16664         (ix86_fold_builtin): New function.
16665         (make_cpu_type_builtin): New function.
16666         (ix86_init_platform_type_builtins): New function.
16667         (ix86_expand_builtin): Expand new builtins by folding them.
16668         (ix86_init_builtins): Make new builtins to detect CPU type.
16669         (TARGET_FOLD_BUILTIN): New macro.
16670         (IX86_BUILTIN_CPU_INIT): New enum value.
16671         (IX86_BUILTIN_CPU_IS): New enum value.
16672         (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
16673         * config/i386/i386-builtin-types.def: New function type.
16674         * testsuite/gcc.target/builtin_target.c: New testcase.
16675         * doc/extend.texi: Document builtins.
16677 2012-04-24  Olivier Hainque  <hainque@adacore.com>
16679         * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
16680         * toplev.c (process_options): Default to dwarf_version 2.
16681         * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
16682         and dwarf_version 2.
16684 2012-04-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16686         * tree-pretty-print.h (default_tree_printer): Do not declare.
16687         * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
16688         intl.h.
16689         (default_tree_diagnostic_starter): Make static.
16690         (default_tree_printer): Move to here. Make static.
16691         (tree_diagnostics_defaults): New.
16692         * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
16693         * tree.c (free_lang_data): Use tree_diagnostics_defaults.
16694         * toplev.c: Do not include tree-pass.h.
16695         (default_tree_printer): Move from here.
16696         (general_init): Use tree_diagnostics_defaults.
16698 2012-04-24  Chao-ying Fu  <fu@mips.com>
16700         * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
16701         (mips*-*-linux*): Append mips/linux-common.h to tm_file.
16702         * config/mips/gnu-user.h
16703         (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
16704         (GNU_USER_TARGET_LINK_SPEC): New define.
16705         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
16706         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
16707         (GNU_USER_TARGET_MATHFILE_SPEC): New define.
16708         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
16709         GNU_USER_TARGET_ENDFILE_SPEC.
16710         * config/mips/gnu-user64.h (LIB_SPEC): Remove.
16711         (GNU_USER_TARGET_LINK_SPEC): New define.
16712         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
16713         * config/mips/linux-common.h: New file.
16715 2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16717         PR target/47197
16718         * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
16719         (altivec_build_resolved_builtin): Call fully_fold_convert.
16721 2012-04-24  Georg-Johann Lay  <avr@gjlay.de>
16723         PR target/53065
16724         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
16726 2012-04-24  Richard Guenther  <rguenther@suse.de>
16728         PR tree-optimization/53085
16729         * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
16730         stores.
16732 2012-04-24  Richard Guenther  <rguenther@suse.de>
16734         * tree-if-conv.c (main_tree_if_conversion): Move bb under
16735         ENABLE_CHECKING.
16737 2012-04-24  Jim Meyering  <meyering@redhat.com>
16739         * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
16740         absence of an define_enum call.
16742 2012-04-24  Richard Guenther  <rguenther@suse.de>
16744         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
16745         the epilogue loop is not re-used as unvectorized version
16746         record the its maximum number of iterations.
16748 2012-04-24  Andrew Pinski  <apinski@cavium.com>
16750         * tree-ssa-forwprop.c (simplify_bitwise_binary):
16751         Don't directly use def1/def2.
16753 2012-04-24  Richard Guenther  <rguenther@suse.de>
16755         PR tree-optimization/53098
16756         * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
16757         comparison sign.
16759 2012-04-24  Andrew Pinski  <apinski@cavium.com>
16761         PR tree-opt/33512
16762         * tree-ssa-forwprop.c (defcodefor_name): New function.
16763         (simplify_bitwise_binary): Use defcodefor_name instead of manually
16764         Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
16765         Simplify "(~X | Y) & X" to "X & Y" and
16766         "(~X & Y) | X" to "X | Y".
16768 2012-04-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16770         * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
16771         validate_change to add clobbers if IN_GROUP is nonzero.
16772         (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
16773         * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
16774         prototype.
16775         * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
16776         set to false.
16777         * config/s390/s390.c (insn_invalid_p): Likewise.
16779 2012-04-24  Jakub Jelinek  <jakub@redhat.com>
16781         PR middle-end/53084
16782         * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
16783         (output_addressed_constants): Likewise.
16785         PR middle-end/52999
16786         * varasm.c (get_section): Don't ICE for section conflicts with
16787         built-in section kinds.
16789 2012-04-23  DJ Delorie  <dj@redhat.com>
16791         * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
16792         (LIBSTDCXX): Change to CPP2.
16794 2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>
16796         PR bootstrap/52878
16797         * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
16798         extra_masks.
16800 2012-04-23  Uros Bizjak  <ubizjak@gmail.com>
16802         * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
16803         (*addsi_2_zext): Ditto.
16804         (*add<mode>_3): Ditto.
16805         (*addsi_3_zext): Ditto.
16806         (*add<mode>_5): Ditto.
16808 2012-04-23  Andrew Pinski  <apinski@cavium.com>
16810         * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
16811         (C & B) to (A OP0) & B.
16813 2012-04-23  Martin Jambor  <mjambor@suse.cz>
16815         * expr.c (expand_expr_real_1): Remove setting parent's alias set for
16816         temporaries created for a bitfield (reverting revision 122014).
16818 2012-04-23  Richard Guenther  <rguenther@suse.de>
16820         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
16821         the condition using is_gimple_condexpr and avoid the not necessary
16822         boolification.
16823         (set_prologue_iterations): Likewise.
16824         (vect_loop_versioning): Likewise.
16826 2012-04-23  Richard Guenther  <rguenther@suse.de>
16828         PR tree-optimization/53070
16829         * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
16830         (main_tree_if_conversion): Verify we succeeded in that.
16832 2012-04-23  Jan Hubicka  <jh@suse.cz>
16834         * lto-symtab.c (lto_cgraph_replace_node): Do not call
16835         mark_reahcable_node.
16836         * cgraph.c (cgraph_remove_node): Do not clear reachable.
16837         (cgraph_mark_reachable_node): Remove.
16838         (cgraph_mark_force_output_node): Do not set reachable.
16839         (dump_cgraph_node): Do not dump reachable.
16840         (cgraph_create_virtual_clone): Do not set reachable.
16841         * cgraph.h (cgraph_node): Remove reachable flag.
16842         (varpool_node): Remove reachable flag.
16843         (cgraph_mark_if_needed): Remove.
16844         (cgraph_mark_reachable_node): Remove.
16845         * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
16846         * cgraphunit.c (cgraph_finalize_function): Do not mark node as
16847         reachable.
16848         (cgraph_add_new_function): Likewise.
16849         (cgraph_mark_if_needed): Remove.
16850         (cgraph_analyze_function): Do not set target as reachable.
16851         (process_function_and_variable_attributes): Do not care about
16852         dllexport.
16853         (cgraph_analyze_functions): Do not set reachable flags.
16854         (cgraph_mark_functions_to_output): Do not check reachability.
16855         (cgraph_copy_node_for_versioning): Do not set reachable flag.
16856         (dbxout_expand_expr): Update.
16857         * c-decl.c (merge_decls): Do not track changed externs.
16858         * ipa.c: Include pointer-set.h
16859         (enqueue_cgraph_node): Use reachable pointer set.
16860         (process_references): Likewise.
16861         (cgraph_remove_unreachable_nodes): Likewise.
16862         (whole_program_function_and_variable_visibility): Do not recompute
16863         reachable.
16864         * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
16866 2012-04-23  Georg-Johann Lay  <avr@gjlay.de>
16868         * doc/extend.texi (AVR Named Address Spaces): Fix typos.
16870 2012-04-23  Richard Guenther  <rguenther@suse.de>
16872         PR c/53060
16873         * c-typeck.c (build_binary_op): Fix typo.
16875 2012-04-23  Jakub Jelinek  <jakub@redhat.com>
16877         PR tree-optimizations/52891
16878         * tree-vect-patterns.c (adjust_bool_pattern): Use
16879         build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
16880         but with non-standard precision.
16882 2012-04-22  Jan Hubicka  <jh@suse.cz>
16884         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
16885         tree refs.
16887 2012-04-22  Jan Hubicka  <jh@suse.cz>
16889         * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
16890         * cgraphbuild.c (record_reference, record_type_list, mark_address,
16891         mark_load, mark_store): Do not mark varpool nodes as needed.
16892         * cgraph.c (cgraph_new_nodes): Remove.
16893         (cgraph_create_function_alias): Do not mark nodes as reachable.
16894         (cgraph_add_thunk): Likewise.
16895         (cgraph_mark_reachable_node): Do not manage the queue.
16896         * cgraph.h (cgraph_node): Remove next_needed.
16897         (varpool_nodes_queue): Remove next_needed and prev_needed.
16898         (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
16899         (cgraph_new_nodes): Declare.
16900         (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
16901         (varpool_analyze_pending_decls): Remove.
16902         (varpool_analyze_node): New.
16903         (varpool_mark_needed_node): Remove.
16904         (varpool_first_variable, varpool_next_variable): New inlines.
16905         (varpool_first_static_initializer, varpool_next_static_initializer):
16906         Update.
16907         (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
16908         (varpool_first_defined_variable): New inline.
16909         (varpool_next_defined_variable): New inline
16910         (FOR_EACH_VARIABLE): Reimplement.
16911         (FOR_EACH_DEFINED_VARIABLE): Reimplement.
16912         * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
16913         needed flag.
16914         * cgraphunit.c (cgraph_new_nodes): Declare here.
16915         (enqueue_node): New function.
16916         (cgraph_process_new_functions): update for new
16917         node set; when constructing cgraph enqueue node for processing.
16918         (cgraph_add_new_function): Use new node set.
16919         (process_function_and_variable_attributes): Do not set varpool needed
16920         flags.
16921         (referred_to_p): New function.
16922         (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
16923         when varpool is in construction.
16924         (cgraph_analyze_functions): Rewrite.
16925         (cgraph_expand_all_functions): Update.
16926         (cgraph_output_in_order): Do not analyze pending decls; do not set
16927         needed flags.
16928         (cgraph_optimize): Do not analyze pending decls.
16929         * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
16930         in other partition; do not mark node as needed.
16931         * dwarf2out.c (reference_to_unused): Use analyzed flag.
16932         (premark_types_used_by_global_vars_helper): Likewise.
16933         * ipa.c (process_references): Do not call varpool_mark_needed_node.
16934         (cgraph_remove_unreachable_nodes): Do not rely on varpool and
16935         cgrpah queues.
16936         (function_and_variable_visibility): Do not mark node as needed.
16937         (whole_program_function_and_variable_visibility): Likewise.
16938         * Makefile.in (gt-varpool.h): No longer needed.
16939         * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
16940         (ipa_write_summaries): Do not use needed flag.
16941         * varpool.c: Do not include gt-varpool.h
16942         (x_varpool_nodes_queue, x_varpool_last_needed_node,
16943         x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
16944         x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
16945         Remove.
16946         (varpool_remove_node): Do not update the lists.
16947         (dump_varpool_node): Do not dump needed flag.
16948         (varpool_enqueue_needed_node): Remove.
16949         (varpool_mark_needed_node): Remove.
16950         (varpool_reset_queue): Remove.
16951         (varpool_finalize_decl): Move to cgraphunit.c
16952         (varpool_analyze_node): New functions based on former
16953         varpool_analyze_pending_decls.
16954         (varpool_analyze_pending_decls): Remove.
16955         (varpool_assemble_decl): Do not update the lists.
16956         (enqueue_node): New function.
16957         (varpool_remove_unreferenced_decls): Rewrite.
16958         (varpool_empty_needed_queue): Remove.
16959         (add_new_static_var): Do not mark node as needed.
16960         (varpool_create_variable_alias): Handle expansion state
16961         creation.
16962         * except.c (output_ttype): Do not mark node as needed.
16963         * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
16964         * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
16965         Likewise.
16966         * tree-switch-conversion.c (build_one_array): Likewise.
16968 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16970         PR c/44774
16971         * doc/invoke.texi (pedantic): Rename to Wpedantic.
16972         * common.opt (Wpedantic): New.
16973         (pedantic): Alias Wpedantic.
16974         * diagnostic.c (warning_at): Likewise.
16975         * c-decl.c (diagnose_mismatched_decls): Likewise.
16976         (build_array_declarator): Likewise.
16977         (mark_forward_parm_decls):
16978         (check_bitfield_type_and_width): Likewise.
16979         (grokdeclarator): Likewise.
16980         (grokfield): Likewise.
16981         (finish_struct): Likewise.
16982         (build_enumerator): Likewise.
16983         (store_parm_decls_oldstyle): Likewise.
16984         (declspecs_add_qual): Likewise.
16985         (declspecs_add_type): Likewise.
16986         (finish_declspecs): Likewise.
16987         * c-typeck.c (composite_type): Likewise.
16988         (comp_target_types): Likewise.
16989         (build_array_ref): Likewise.
16990         (pointer_diff): Likewise.
16991         (build_unary_op): Likewise.
16992         (build_conditional_expr): Likewise.
16993         (build_c_cast): Likewise.
16994         (convert_for_assignment): Likewise.
16995         (maybe_warn_string_init): Likewise.
16996         (digest_init): Likewise.
16997         (pop_init_level): Likewise.
16998         (set_init_index): Likewise.
16999         (c_finish_goto_label): Likewise.
17000         (c_finish_return): Likewise.
17001         (do_case): Likewise.
17002         (build_binary_op): Likewise.
17003         * c-parser.c (static): Likewise.
17004         (c_parser_external_declaration): Likewise.
17005         (c_parser_declaration_or_fndef): Likewise.
17006         (c_parser_static_assert_declaration_no_se): Likewise.
17007         (c_parser_enum_specifier): Likewise.
17008         (c_parser_struct_or_union_specifier): Likewise.
17009         (c_parser_struct_declaration): Likewise.
17010         (c_parser_alignas_specifier): Likewise.
17011         (c_parser_braced_init): Likewise.
17012         (c_parser_initelt): Likewise.
17013         (c_parser_compound_statement_nostart): Likewise.
17014         (c_parser_conditional_expression): Likewise.
17015         (c_parser_alignof_expression): Likewise.
17016         (c_parser_postfix_expression): Likewise.
17017         (c_parser_postfix_expression_after_paren_): Likewise.
17018         (c_parser_objc_class_instance_variables): Likewise.
17019         (c_parser_objc_method_definition): Likewise.
17020         (c_parser_objc_methodprotolist): Likewise.
17022 2012-04-22  Ian Lance Taylor  <iant@google.com>
17024         * godump.c (go_output_typedef): Dump size of structs.
17026 2012-04-22  Razya Ladelsky  <razya@il.ibm.com>
17028         Correcting transform_to_exit_first_loop + fix to PR46886
17029         * tree-parloops.c (transform_to_exit_first_loop): Remove
17030         setting of number of iterations according to the loop pattern.
17031         Duplicate from entry to exit->src instead of loop->latch.
17032         (pallelize_loops): Remove the condition preventing do-while loops.
17033         * tree-cfg.c (bool bb_in_region_p): New.
17034         (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
17035         Adjust redirection of the duplicated iteration.
17037 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
17039         PR bootstrap/53021
17040         * rtl.def (ADDRESS): Use "i" rather than "w".
17041         * rtl.h (find_base_term): Delete.
17042         (may_be_sp_based_p): Declare.
17043         * rtl.c (rtx_code_size): Remove ADDRESS special case.
17044         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
17045         (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
17046         * alias.c: ...here.
17047         (find_base_term): Make static.
17048         (may_be_sp_based_p): New function.
17049         * dse.c (record_store): Use it.
17050         * store-motion.c (store_killed_in_insn): Likewise.
17052 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
17054         * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
17056 2012-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17058         PR 35441
17059         * c-typeck.c (inform_declaration): New.
17060         (build_function_call_vec):  Do not pretty-print
17061         expressions when caret is enabled.
17062         (convert_arguments): Use inform_declaration.
17064 2012-04-20  Jim Meyering  <meyering@redhat.com>
17066         * genmodes.c (make_complex_modes): Don't truncate a mode name of
17067         length 7 or more when prepending a "C".  Suggested by Richard Guenther.
17069 2012-04-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17071         PR rtl-optimization/44214
17072         * fold-const.c (exact_inverse): New function.
17073         (fold_binary_loc): Fold vector and complex division by constant into
17074         multiply by recripocal with flag_reciprocal_math; fold vector division
17075         by constant into multiply by reciprocal with exact inverse.
17077 2012-04-20  Jan Hubicka  <jh@suse.cz>
17079         * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
17080         force flags.
17081         * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
17082         (cgraph_remove_node): Update.
17083         (cgraph_mark_needed_node): Remove.
17084         (cgraph_mark_force_output_node): New.
17085         (dump_cgraph_node): Do not dump needed flag.
17086         (cgraph_node_cannot_be_local_p_1): Update.
17087         (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
17088         * cgraph.h (symtab_node_base): Add force_output flag.
17089         (cgraph_node): Remove needed flag.
17090         (varpool_node): Remove force_output flag.
17091         (cgraph_mark_needed_node): Remove.
17092         (cgraph_mark_force_output_node): New.
17093         (cgraph_only_called_directly_or_aliased_p,
17094         varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
17095         * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
17096         * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
17097         (cgraph_add_new_function): Update.
17098         (cgraph_mark_if_needed): Update.
17099         (verify_cgraph_node): Update.
17100         (cgraph_analyze_function): Alias target is reachable.
17101         (process_function_and_variable_attributes): Update: externally_visible
17102         flag makes function reachable.
17103         (cgraph_analyze_functions): Update dumping.
17104         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
17105         input_overwrite_node, input_varpool_node): Update streaming.
17106         * lto-streamer-out.c (produce_symtab): Use force_output.
17107         * ipa.c (process_references): Weakrefs must be processed.
17108         (cgraph_remove_unreachable_nodes): Likewise; update for new
17109         force_output flag.
17110         (varpool_externally_visible_p): Weakrefs are externally visible
17111         even if they are not.
17112         (function_and_variable_visibility): Update; when processing alias
17113         pair force the targets to be output.
17114         (whole_program_function_and_variable_visility): Use
17115         mark_reachable_node.
17116         * trans-mem.c (ipa_tm_mark_needed_node): Remove
17117         (ipa_tm_mark_force_output_node): New function.
17118         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
17119         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
17120         aliases.
17121         * varasm.c (mark_decl_referenced): Update.
17122         (find_decl_and_mark_needed): Remove.
17123         (find_decl): New function.
17124         (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
17125         alias targets as needed.
17126         (dump_tm_clone_pairs): Update.
17127         * tree-inline.c (copy_bb): Update check.
17128         * symtab.c (dump_symtab_base): Dump force_output.
17129         * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
17130         * passes.c (execute_todo): Fix dumping.
17131         * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
17132         (varpool_analyze_pending_decls): Alias target is reachable.
17133         (varpool_create_variable_alias): Finalize weakrefs.
17135 2012-04-20  Jakub Jelinek  <jakub@redhat.com>
17137         PR bootstrap/53021
17138         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
17139         UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
17140         * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
17141         macros instead of constants.
17142         * dse.c (record_store): Check for SP ADDRESS by comparing
17143         XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
17144         XEXP to be stack_pointer_rtx.
17146 2012-04-20  Richard Guenther  <rguenther@suse.de>
17148         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
17149         update_call_from_tree when propagating into a call.
17151 2012-04-20  Alan Modra  <amodra@gmail.com>
17153         * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
17154         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.  Rename
17155         sp_offset to frame_off.  Move world save code earlier.
17157 2012-04-20  Richard Guenther  <rguenther@suse.de>
17159         PR tree-optimization/53050
17160         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
17161         Do only one transform on COND_EXPRs at the same time.
17163 2012-04-19  Jan Hubicka  <jh@suse.cz>
17165         * symtab.c (dump_symtab_base): Revert accidental checkin.
17167 2012-04-20  Alan Modra  <amodra@gmail.com>
17169         PR target/53040
17170         * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
17171         static chain, set REST_INLINE_FPRS too.
17173 2012-04-20  Thomas Schwinge  <thomas@codesourcery.com>
17175         * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
17176         nodes.
17178 2012-04-20  Richard Guenther  <rguenther@suse.de>
17180         * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
17181         loops that can never run more often than the vectorization factor.
17183 2012-04-19  Jan Hubicka  <jh@suse.cz>
17185         * symtab.c (dump_symtab_base): Fix dumping of asm lists.
17187 2012-04-19  David Edelsohn  <dje.gcc@gmail.com>
17189         * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
17191 2012-04-19  Jim Meyering  <meyering@redhat.com>
17193         * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
17194         We verified above that the string(including trailing NUL) fits in buf,
17195         so just use memcpy.
17197 2012-04-19  Richard Guenther  <rguenther@suse.de>
17199         * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
17200         for dumping DECL_SECTION_NAME.
17202 2012-04-19  Michael Matz  <matz@suse.de>
17204         PR middle-end/52977
17205         * tree.h (VECTOR_CST_NELTS): Use part number of types again.
17206         (struct tree_vector): Adjust GTY length.
17207         * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
17209         * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
17210         members.
17211         (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
17212         caller emitted the length calulation already.
17213         (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
17214         before handling any of the fields for structs.
17216 2012-04-19  Richard Guenther  <rguenther@suse.de>
17218         PR tree-optimization/53031
17219         * tree-vrp.c (adjust_range_with_scev): Revert back to
17220         using max_loop_iterations.
17222 2012-04-19  Michael Matz  <matz@suse.de>
17224         * diagnostic.c (emit_diagnostic): Move va_end call after user
17225         of the va_list.
17226         (warning, warning_at, pedwarn, permerror): Ditto.
17228 2012-04-19  Richard Guenther  <rguenther@suse.de>
17230         * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
17231         array access.
17233 2012-04-19  Georg-Johann Lay  <avr@gjlay.de>
17235         PR target/53033
17236         * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
17237         the case *(X+const).
17239 2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17241         * config/arm/sync.md (sync_optab): Change ior attribute to "or".
17243 2012-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17245         PR c/52283/37985
17246         * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
17247         * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
17249 2012-04-19  Richard Guenther  <rguenther@suse.de>
17251         PR rtl-optimization/44688
17252         * loop-iv.c (determine_max_iter): Only return max_iter.
17253         (iv_number_of_iterations): Also use the recorded loop bound
17254         on the maximum number of iterations.
17255         * loop-unroll.c (decide_unroll_runtime_iterations): Use
17256         max_iter to avoid unrolling loops that do not roll.
17257         (decide_unroll_stupid): Likewise.
17259 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
17261         * targhooks.c (default_case_values_threshold): Fix code style nit.
17263         * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
17264         case range and type folding from here...
17265         * gimplify.c (gimplify_switch_expr): ... to here.  Expect NULL_TREE
17266         type, as documented in tree.def.
17268 2012-04-18  Jan Hubicka  <jh@suse.cz>
17270         * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
17271         Declare.
17272         * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
17273         cgraph hash and same comdat groups.
17274         (cgraph_optimize): Verify symbol table.
17275         * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
17276         (dissolve_same_comdat_group_list): Work on symtab nodes.
17277         (function_and_variable_visibility): Dissolve variable same comdat group
17278         lists, too.
17279         * symtab.c: Include timevar.h
17280         (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
17282 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
17284         * tree-switch-conversion.c (info): Remove global pass info.
17285         (check_range, check_process_case, check_final_bb, create_temp_arrays,
17286         free_temp_arrays, gather_default_values, build_constructors,
17287         array_value_type, build_one_array, build_arrays, gen_def_assigns,
17288         fix_phi_nodes, gen_inbound_check): Pass info around from ...
17289         (process_switch): ... here.  Unify message format.  Return a const
17290         char pointer to the failure reason message.
17291         (do_switchconv): Unify message format.  Update process_switch usage.
17293         * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
17294         * tree-cfg.c (edge_to_cases): Fix documentation.
17296 2012-04-18  Uros Bizjak  <ubizjak@gmail.com>
17298         * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
17300 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17302         PR tree-optimization/52976
17303         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
17304         (possibly_move_powi): New function.
17305         (rewrite_expr_tree): Call possibly_move_powi.
17306         (rewrite_expr_tree_parallel): Likewise.
17307         (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
17308         call add_to_ops_vec instead.
17310 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17312         PR tree-optimization/52976
17313         * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
17314         (decrement_power): Likewise.
17315         (propagate_op_to_single_use): Likewise.
17316         (zero_one_operation): Handle __builtin_pow* calls in linearized
17317         expression trees; factor logic into propagate_op_to_single_use.
17318         (undistribute_ops_list): Allow operands with repeat counts > 1.
17320 2012-04-18  Richard Guenther  <rguenther@suse.de>
17322         PR tree-optimization/44688
17323         * cfgloop.h (record_niter_bound): Declare.
17324         * tree-ssa-loop-niter.c (record_niter_bound): Export.
17325         Update the estimation with the upper bound here...
17326         (estimate_numbers_of_iterations_loop): ... instead of here.
17327         Do not forcefully reset a recorded upper bound.
17328         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17329         Record the maximum number of loop iterations of the prologue loop.
17331 2012-04-18  Jan Hubicka  <jh@suse.cz>
17333         * lto-symtab.c (lto_cgraph_replace_node): Update.
17334         * cgraphbuild.c (record_reference, record_type_list,
17335         record_eh_tables, mark_address, mark_load, mark_store): Update.
17336         * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
17337         cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
17338         Update.
17339         * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
17340         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
17341         * reload.c: Fix typo in comment.
17342         * rtlanal.c: Likewise.
17343         * tree-emultls.c (gen_emutls_addr): Update.
17344         * ipa-reference.c (analyze_function): Update.
17345         * cgraphunit.c (cgraph_analyze_function,
17346         cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
17347         Update.
17348         * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
17349         (ipa_remove_reference): Likewise.
17350         (ipa_remove_all_refering): Rename to ...
17351         (ipa_remove_all_referring): ... this one; update.
17352         (ipa_dump_references): Update.
17353         (ipa_dump_referring): Update.
17354         (ipa_clone_references): Update.
17355         (ipa_clone_refering): Rename to ...
17356         (ipa_clone_referring): ... this one; update.
17357         (ipa_ref_cannot_lead_to_return): Update.
17358         (ipa_ref_has_aliases_p): Update.
17359         * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
17360         forward typedefs.
17361         (ipa_ref_type): Remove.
17362         (ipa_ref_ptr_u): Remove.
17363         (ipa_ref): Remove referencing, refered, refered_index, refering_type
17364         and refered_type; add referring, referred and referred_index.
17365         (ipa_ref_list): Rename refering to referring.
17366         (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
17367         ipa_clone_references, ipa_clone_referring): Update prototypes.
17368         * lto-cgraph.c (referenced_from_other_partition_p): Update.
17369         (lto_output_ref): Update.
17370         (add_references): Update.
17371         (input_varpool_node): Update.
17372         (input_refs): Update.
17373         * ipa-ref-inline.h (ipa_ref_node): Update.
17374         (ipa_ref_varpool_node): Update.
17375         (ipa_ref_referring_node): Update.
17376         (ipa_ref_referring_varpool_node): Update.
17377         (ipa_ref_referring_ref_list): Update.
17378         (ipa_ref_referred_ref_list): Update.
17379         (ipa_ref_list_first_referring): Update.
17380         (ipa_empty_ref_list): Update.
17381         (ipa_ref_list_refering_iterate): Rename to ...
17382         (ipa_ref_list_referring_iterate): ... this one.
17383         * cse.c: Update comment.
17384         * ipa-utils.c (ipa_reverse_postorder): Update.
17385         * tree-ssa-alias.c: Update.
17386         * ipa-inline.c (reset_edge_caches): Update.
17387         (update_caller_keys): Update.
17388         * ipa-inline.h: Update comments.
17389         * jump.c: Update comment.
17390         * alias.c: Likewise.
17391         * ipa.c (process_references): Update.
17392         (cgraph_remove_unreachable_nodes): Likewise.
17393         (ipa_discover_readonly_nonaddressable_var): Likewise.
17394         (cgraph_address_taken_from_non_vtable_p): Likewise.
17395         * trans-mem.c (ipa_tm_execute): Update.
17396         * simplify-rtx.c: Fix comment.
17397         * rtl.c: Fix comment.
17398         * symtab.c (symtab_unregister_node): Update.
17399         * varpool.c (dump_varpool_node): Update.
17400         (varpool_analyze_pending_decls): Update.
17401         (assemble_aliases): Update.
17402         (varpool_for_node_and_aliases): Update.
17404 2012-04-18  Richard Guenther  <rguenther@suse.de>
17406         * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
17407         use_undefined_p parameter.
17408         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
17409         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
17410         Likewise.
17411         (estimate_numbers_of_iterations): Likewise.
17412         (estimated_loop_iterations): Adjust.
17413         (max_loop_iterations): Likewise.
17414         (scev_probably_wraps_p): Likewise.
17415         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
17416         * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
17417         not max_loop_iterations.
17418         (execute_vrp): Remove explicit number of iterations estimation.
17420 2012-04-18  Enkovich Ilya  <ilya.enkovich@intel.com>
17422         * config/i386/linux-common.h: New.
17424         * config.gcc: Add i386/linux-common.h before
17425         all i386/linux.h and i386/linux64.h usages.
17427         * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
17428         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
17429         * config/i386/gnu-user64.h: Likewise.
17431         * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
17432         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
17433         (GNU_USER_TARGET_MATHFILE_SPEC): New.
17434         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
17436 2012-04-18  Jan Hubicka  <jh@suse.cz>
17438         * cgraph.c (cgraph_node_name): Remove.
17439         (dump_cgraph_node): Use dump_symtab_base; reformat.
17440         * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
17441         debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
17442         Declare.
17443         (cgraph_node_name, varpool_node_name): Remove.
17444         (cgraph_node_asm_name, varpool_node_asm_name,
17445         cgraph_node_name, varpool_node_name): New.
17446         * tree-pass.h (TODO_dump_cgraph): Rename to ...
17447         (TODO_dump_symtab): ... this one.
17448         * ipa-cp (pass_ipa_cp): Update.
17449         * ia-reference.c (generate_summary, read_write_all_from_decl,
17450         propagate, ipa_reference_read_optimization_summary): Update.
17451         * cgraphunit.c (cgraph_analyze_functions): Update.
17452         (cgraph_optimize): Update.
17453         * ipa-ref.c (ipa_dump_references): Update.
17454         (ipa_dump_refering): Update.
17455         * ipa-inline.c (pass_ipa_inline): Update.
17456         * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
17457         * ipa.c (pass_ipa_function_visibility,
17458         pass_ipa_whole_program_visibility): Update.
17459         * tree-sra.c (pass_early_ipa_sra): Update.
17460         * symtab.c: Include langhooks.h
17461         (symtab_node_asm_name): New.
17462         (symtab_node_name): New.
17463         (symtab_type_names): New static var.
17464         (dump_symtab_base): New.
17465         (dump_symtab_node, dump_symtab): New.
17466         (debug_symtab_node,  debug_symtab): New.
17467         * tree-ssa-structalias.c: Dump symbol table.
17468         * pases.c (execute_todo): Handle TODO_dump_symtab instead
17469         of TODO_dump_cgraph.
17470         * varpoo.c (varpool_node_name): Remove.
17471         (dump_varpool_node): Use dump_symtab_base; reformat.
17473 2012-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17475         * doc/invoke.texi (Language Independent Options): @item should be
17476         before @opindex.
17478 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
17480         PR bootstrap/53021
17481         * rtl.c (rtx_code_size): Handle ADDRESS.
17483 2012-04-17  Tom de Vries  <tom@codesourcery.com>
17485         * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
17486         is not a STMT_LIST.
17488 2012-04-17  Uros Bizjak  <ubizjak@gmail.com>
17490         PR target/53020
17491         * config/i386/sync.md (atomic_<code><mode>): Rename to
17492         atomic_<logic><mode>.
17494 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
17496         * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
17497         * alias.c (reg_base_value): Expand and update comment.
17498         (arg_base_value): New variable.
17499         (unique_id): Move up file.
17500         (unique_base_value, unique_base_value_p, known_base_value_p): New.
17501         (find_base_value): Use arg_base_value and known_base_value_p.
17502         (record_set): Document REG_NOALIAS handling.  Use unique_base_value.
17503         (find_base_term): Use known_base_value_p.
17504         (base_alias_check): Use unique_base_value_p.
17505         (init_alias_target): Initialize arg_base_value.  Use unique_base_value.
17506         (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
17508 2012-04-17  Pat Haugen <pthaugen@us.ibm.com>
17510         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
17512 2012-04-17  Michael Matz  <matz@suse.de>
17514         PR tree-optimization/18437
17515         * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
17516         (STMT_VINFO_STRIDE_LOAD_P): New accessor.
17517         (vect_check_strided_load): Declare.
17518         * tree-vect-data-refs.c (vect_check_strided_load): New function.
17519         (vect_analyze_data_refs): Use it to accept strided loads.
17520         * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
17522 2012-04-17  Richard Guenther  <rguenther@suse.de>
17524         PR middle-end/53011
17525         * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
17526         loops when redirecting an entry or latch edge.
17528 2012-04-17  Bernd Schmidt  <bernds@codesourcery.com>
17530         * sel-sched.c (sel_global_init): Revert previous change.
17532 2012-04-17  Richard Guenther  <rguenther@suse.de>
17534         * tree-flow.h (array_at_struct_end_p): Move declaration ...
17535         * tree.h (array_at_struct_end_p): ... here.
17536         * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
17537         * expr.c (array_at_struct_end_p): ... here.  Rewrite.
17539 2012-04-17  Steven Bosscher  <steven@gcc.gnu.org>
17541         * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
17542         COST_TABLE): Remove.
17543         (estimate_case_costs): Remove.
17544         (expand_case): Do not call estimate_case_costs
17545         to set use_cost_table.
17546         (balance_case_nodes): Do not use use_cost_table.
17548 2012-04-16  Jan Hubicka  <jh@suse.cz>
17550         * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
17551         (hash_node, eq_node): Remove.
17552         (cgraph_create_node): Do not handle hashtable.
17553         (cgraph_get_node): Remove.
17554         (cgraph_insert_node_to_hashtable): Remove.
17555         (hash_node_by_assembler_name): Remove.
17556         (eq_assembler_name): Remove.
17557         (cgraph_node_for_asm): Rewrite.
17558         (cgraph_find_replacement_node): Break out from ...
17559         (cgraph_remove_node): ... here; do not maintain hashtables.
17560         (change_decl_assembler_name): Remove.
17561         (cgraph_clone_node): Do not maintain hashtables.
17562         * cgraph.h (const_symtab_node): New typedef.
17563         (cgraph_insert_node_to_hashtable): Remove.
17564         (symtab_get_node, symtab_node_for_asm,
17565         symtab_insert_node_to_hashtable): Declare.
17566         (cgraph_find_replacement_node): Declare.
17567         (cgraph_get_node, varpool_get_node): Turn into inlines.
17568         (cgraph, varpool): Work sanely on NULL pointers.
17569         (FOR_EACH_SYMBOL): New walker.
17570         * ipa-inline-transform.c (save_inline_function_body): Use
17571         symtab_insert_node_to_hashtable.
17572         * symtab.c: Include ggc.h and diagnostics.h
17573         (symtab_hash, assembler_name_hash): New static vars;
17574         (hash_node, eq_node, hash_node_by_assembler_name,
17575         eq_assembler_name, insert_to_assembler_name_hash,
17576         unlink_from_assembler_name_hash): New.
17577         (symtab_register_node): Update hashtables.
17578         (symtab_insert_node_to_hashtable): New.
17579         (symtab_unregister_node): Update hashtables.
17580         (symtab_get_node): New.
17581         (symtab_node_for_asm): New.
17582         (change_decl_assembler_name): New.
17583         * Makefile.in (symtab.o): Needs GTY.
17584         * varpool.c (varpool_hash): Remove.
17585         (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
17586         (varpool_node): Rewrite using varpool_get_node.
17587         (varpool_remove_node): DO not maintain hashtables.
17588         (varpool_node_for_asm): Rewrite.
17590 2012-04-16  Sandra Loosemore  <sandra@codesourcery.com>
17592         * doc/invoke.texi:  Copy-edit to put verbs in the present tense
17593         when describing the current behavior of GCC.
17595 2012-04-16  Richard Sandiford  <rdsandiford@googlemail.com>
17597         * genemit.c (gen_exp): Remove ADDRESS handling.
17598         * genoutput.c (scan_operands): Likewise.
17599         * genpeep.c (match_rtx): Likewise.
17600         * genrecog.c (add_to_sequence): Likewise.
17602 2012-04-16  David Edelsohn  <dje.gcc@gmail.com>
17604         * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
17606 2012-04-16  Martin Jambor  <mjambor@suse.cz>
17608         * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
17609         bit-fields.
17611 2012-04-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
17613         PR target/51819
17614         * config/arm/arm.c (arm_print_operand): Fix invalid alignment
17615         hints for 'A' operand types.
17617 2012-04-16  Jan Hubicka  <jh@suse.cz>
17619         * cgraph.h (symtab_node_base): Add next and previous pointers.
17620         (cgraph_node): Remove next and preivous pointers.
17621         (varpool_node): Likewise; remove next/previous GTY marker;
17622         it is not type safe.
17623         (symtab_node_def): Update GTY marker
17624         (x_cgraph_nodes, cgraph_nodes): Remove.
17625         (symtab_nodes): New function.
17626         (cgraph_order): Rename to ...
17627         (symtab_order): ... this one.
17628         (symtab_register_node, symtab_unregister_node, symtab_remove_node):
17629         Declare.
17630         (x_varpool_nodes, varpool_nodes): Remove.
17631         (FOR_EACH_STATIC_VARIABLE): Update.
17632         (symtab_function_p, symtab_variable_p): New function.
17633         (FOR_EACH_VARIABLE): Update.
17634         (varpool_first_variable, varpool_next_variable): New functions.
17635         (FOR_EACH_VARIABLE): Update.
17636         (cgraph_first_defined_function): Update.
17637         (cgraph_next_defined_function, cgraph_next_defined_function): Update.
17638         (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
17639         (cgraph_first_function, cgraph_next_function): New.
17640         (FOR_EACH_FUNCTION): Update.
17641         (cgraph_first_function_with_gimple_body,
17642         cgraph_next_function_with_gimple_body): Update.
17643         * symtab.c: New file.
17644         * cgraph.c: Update copyright dates.
17645         (x_cgraph_nodes, cgraph_order): Remove.
17646         (NEXT_FREE_NODE): Update.
17647         (SET_NEXT_FREE_NODE): New.
17648         (cgraph_create_node_1): Remove common code.
17649         (cgraph_create_node): Remove common code; call symtab_register_node.
17650         (cgraph_remove_node): Remove common code; call symtab_unregister-node.
17651         (cgraph_add_asm_node): Update.
17652         (cgraph_clone_node): Register new node.
17653         * cgraphunit.c (process_function_and_variable_attributes): Update.
17654         (cgraph_analyze_functions): Update.
17655         (cgraph_analyze_functions): Update.
17656         (cgraph_output_in_order): Update.
17657         * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
17658         Update.
17659         * ipa-inline.c (recursive_inlining): Update.
17660         * lto-streamer-in.c (lto_input_toplevel_asms): Update.
17661         * ipa.c (cgraph_remove_unreachable_nodes): Update.
17662         * Makefile.in: Add symtab.o
17663         * varpool.c (x_varpool_nodes): Remove
17664         (varpool_node): Remove common code; call symtab_register_node.
17665         (varpool_remove_node): Remove common code; call symtab_unregister_node.
17667 2012-04-16  Richard Guenther  <rguenther@suse.de>
17669         PR middle-end/52977
17670         * tree.h (VECTOR_CST_NELTS): Adjust.
17671         (struct tree_vector): Add explicit length field.
17672         (make_vector_stat): Declare.
17673         (make_vector): Define.
17674         * tree.c (make_vector_stat): New function.
17675         (build_vector_stat): Use it.
17676         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
17678 2012-04-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17680         PR tree-optimization/52976
17681         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
17682         (undistribute_ops_list): Ops with repeat counts aren't eligible for
17683         undistribution.
17684         (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
17686 2012-04-16  Jan Hubicka  <jh@suse.cz>
17688         * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
17689         New macros.
17690         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
17691         walkers to walk cgraph and varpool.
17692         * cgraph.c (cgraph_node_for_asm): Likewise.
17693         (dump_cgraph): Likewise.
17694         * value-prof.c (init_node_map): Likewise.
17695         * tree.c (free_lang_data_in_cgraph): Likewise.
17696         * tree-emutls.c: (ipa_lower_emutls): Likewise.
17697         * ipa-reference.c (generate_summary, propagate): Likewise.
17698         * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
17699         cgraph_mark_functions_to_output, cgraph_output_in_order,
17700         output_weakrefs, cgraph_materialize_all_clones,
17701         cgraph_optimize): Likewise.
17702         * lto-cgraph.c (merge_profile_summaries): Likewise.
17703         (input_cgraph): Likewise.
17704         * ipa-pure-const.c (generate_summary): Likewise.
17705         (propagate): Likwise.
17706         * ipa-utils.c (ipa_reduced_postorder): Likewise.
17707         (ipa_free_postorder_info): Likewise.
17708         (ipa_reverse_postorder): Likewise.
17709         * ipa-inline.c (ipa_inline): Likewise.
17710         * matrix-reorg.c (find_matrices_decl): Likewise.
17711         (matrix_reorg): Likewise.
17712         * tree-vectorizer.c (increase_alignment): Likewise.
17713         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
17714         (function_and_variable_visibility): Likewise.
17715         (whole_program_function_and_variable_visibility): Likewise.
17716         (ipa_cdtor_merge): Likewise.
17717         * trans-mem.c (ipa_tm_execute): Likewise.
17718         * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
17719         * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
17720         (ipa_print_all_params): Likewise.
17721         (ipa_update_after_lto_read): Likewise.
17722         * tree-profie.c (tree_profiling): Likewise.
17723         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
17724         * passes.c (dump_passes): Likewise.
17725         (do_per_function): Likewise.
17726         (ipa_write_summaries): Likewise.
17727         * varpool.c (dump_varpool): Likewise.
17728         (varpool_node_for_asm): Likewise.
17729         (varpool_assemble_pending_decls): Likewise.
17731 2012-04-16  Richard Guenther  <rguenther@suse.de>
17733         PR tree-optimization/52975
17734         * tree-if-conv.c (predicate_bbs): Do not simplify inverted
17735         condition but always mark it with TRUTH_NOT_EXPR.
17737 2012-04-16  Richard Guenther  <rguenther@suse.de>
17739         PR tree-optimization/52975
17740         * tree-ssa-forwprop.c (combine_cond_exprs): New function.
17741         (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
17742         and VEC_COND_EXPRs.  Also combine into VEC_COND_EXPRs condition.
17743         * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
17745 2012-04-14  Uros Bizjak  <ubizjak@gmail.com>
17747         * config/i386/sse.md (ssse3_plusminus): New code iterator.
17748         (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
17749         avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
17750         (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
17751         ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
17752         (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
17753         ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
17755         (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
17756         avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
17757         (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
17758         ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
17759         (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
17760         ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
17762         (xop_plus): New code iterator.
17763         (macs): New code attribute.
17764         (macds): Ditto.
17765         (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
17766         xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
17767         iterator.
17768         (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
17769         xop_plus code iterator.
17770         (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
17771         xop_plus code iterator.
17772         (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
17773         xop_plus code iterator.
17774         (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
17775         xop_plus code iterator.
17777         (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
17778         any_extend code iterator.
17779         (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
17780         any_extend code iterator.
17781         (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
17782         any_extend code iterator.
17783         (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
17784         any_extend code iterator.
17785         (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
17786         any_extend code iterator.
17787         (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
17788         any_extend code iterator.
17790 2012-04-14  Tom de Vries  <tom@codesourcery.com>
17792         * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
17793         call to delete_insn.  Remove code to reorder BASIC_BLOCK note and
17794         DELETED_LABEL note, and move it to ...
17795         * cfgrtl.c (delete_insn): ... here.  Change return type to void.
17796         (delete_insn_and_edges): Likewise.
17797         (delete_insn_chain): Handle new return type of delete_insn.  Delete
17798         chain backwards rather than forwards.
17799         * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
17800         void.
17801         * cfglayout.c (fixup_reorder_chain): Delete unused label.
17803 2012-04-14  Jan Hubicka  <jh@suse.cz>
17805         * cgraph.h: Update copyrights;
17806         (symtab_node): Turn to union typedef.
17807         (symtab_node_base): New structure.
17808         (symtab_type): Add SYMTAB_SYMBOL tag.
17809         (cgraph_node): Annotate some pinters with nested_ptr.
17810         (varpool_node): Likewise.
17811         (cgraph_local_info): Remove lto_file_data
17812         and externally_visible.
17813         (cgraph_node): Remove decl; same_comdat_group list;
17814         aux; ref_list; order; address_taken; reachable_from_other_parittion,
17815         in_other_partition; resolution.
17816         (varpool_node): Remove decl; same_comdat_group;
17817         ref_list; lto_file_data; aux; order; resolution; externally_visible;
17818         used_from_other_partition; in_other_partition.
17819         (symtab_node_def): New union.
17820         (cgraph, varpool): Update.
17821         (varpool_first_static_initializer, varpool_next_static_initializer,
17822         cgraph_only_called_directly_or_aliased_p,
17823         varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
17824         varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
17825         varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
17826         field references.
17827         * cgraph.c: Likewise.
17828         (cgraph_hash, assembler_name_hash): Turn into symtab_node.
17829         * cgraphbuild.c: Likewise.
17830         * lto-symtab.c: Likewise.
17831         * c-gimplify.c: Likewise.
17832         * value-prof.c: Likewise.
17833         * tree.c: Likewise.
17834         * ipa-cp.c: Likewise.
17835         * tree-emutls.c: Likewise.
17836         * ipa-inline-transform.c: Likwise.
17837         * ipa-reference.c: Likewise.
17838         * cgraphunit.c: Likewise.
17839         * ipa-ref.c: Likewise.
17840         * lto-cgraph.c: Likewise.
17841         * ipa-ref-inline.h: Likewise.
17842         * ipa-pure-const.c: Likewise.
17843         * lto-streamer-out.c: Likewise.
17844         * ipa-utils.c: Likewise.
17845         * ipa-inline.c: Likewise.
17846         * matrix-reorg.c: Likewise.
17847         * tree-eh.c: Likewise.
17848         * tree-vectorizer.c: Likewise.
17849         * ipa-split.c: Likewise.
17850         * ipa.c: Likewise.
17851         * trans-mem.c: Likewise.
17852         * ipa-inline-analysis.c: Likewise.
17853         * gimplify.c: Likewise.
17854         * cfgexpand.c: Likewise.
17855         * tree-sra.c: Likewise.
17856         * ipa-prop.c: Likewise.
17857         * varasm.c: Likewise.
17858         * tree-nested.c: Likewise.
17859         * tree-inline.c: Likewise.
17860         * tree-profile.c: Likewise.
17861         * tree-ssa-structalias.c: Likewise.
17862         * passes.c: Likewise.
17863         * varpool.c: Likewise.
17865 2012-04-14  Tom de Vries  <tom@codesourcery.com>
17867         * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
17868         same_succ_hash, with local_def inlined.  Use SINGLE_SSA_DEF_OPERAND.
17869         Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT.  Remove use
17870         of find_edge.
17871         (gsi_advance_fw_nondebug_nonlocal): New function.
17872         (local_def): Removed function.
17873         (same_succ_hash): Use stmt_local_def.
17874         (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
17875         (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
17877 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
17879         * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
17880         and __ILP32__ for x32.
17882 2012-04-13  Martin Jambor  <mjambor@suse.cz>
17884         PR middle-end/52939
17885         * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
17886         fold_ctor_reference returns a zero constant.
17888 2012-04-13  Enkovich Ilya  <ilya.enkovich@intel.com>
17890         * config.gcc: Add i386/gnu-user-common.h before all
17891         i386/gnu-user.h and i386/gnu-user64.h usages.
17893         * config/i386/gnu-user-common.h: New.
17895         * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
17896         (CC1_SPEC): Likewise.
17897         (ENDFILE_SPEC): Likewise.
17898         (DEFAULT_PCC_STRUCT_RETURN): Likewise.
17899         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
17900         (TARGET_OS_CPP_BUILTINS): Likewise.
17901         (LIBGCC2_HAS_TF_MODE): Likewise.
17902         (LIBGCC2_TF_CEXT): Likewise.
17903         (TF_SIZE): Likewise.
17904         (TARGET_ASM_FILE_END): Likewise.
17905         (STACK_CHECK_MOVING_SP): Likewise.
17906         (STACK_CHECK_STATIC_BUILTIN): Likewise.
17907         * config/i386/gnu-user64.h: Likewise.
17909 2012-04-13  Martin Jambor  <mjambor@suse.cz>
17911         * expr.c (expand_expr_real_1): Pass type, not the expression, to
17912         set_mem_attributes for a memory temporary. Do not call the function
17913         for the memory temporary created for a bitfield.
17915 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
17917         PR debug/48866
17918         * df.h (enum debug_temp_where): New.
17919         (dead_debug_init, dead_debug_finish) Declare.
17920         (dead_debug_add, dead_debug_insert_temp): Declare.
17921         (struct dead_debug_use, struct dead_debug): Moved from...
17922         * df-problems.c: ... here.
17923         (df_set_unused_notes_for_mw): Bind debug uses of unused regno
17924         to a debug temp.
17925         (df_create_unused_note): Likewise.
17926         (df_set_dead_notes_for_mw): Move comment where it belongs.
17927         (dead_debug_init): Export.
17928         (dead_debug_reset_uses): New, factored out of...
17929         (dead_debug_finish): ...this.  Export.
17930         (dead_debug_reset): Remove.
17931         (dead_debug_add): Export.
17932         (dead_debug_insert_before): Rename to...
17933         (dead_debug_insert_temp): ... this.  Add where argument.  Export.
17934         Locate stored value for BEFORE_WITH_VALUE.  Avoid repeat inserts.
17935         Return insertion count.
17936         (df_note_bb_compute): Adjust.
17937         * dce.c (word_dce_process_block): Adjust dead debug uses.
17938         (dce_process_block): Likewise.
17940 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
17942         * df-problems.c (df_note_bb_compute): Do not take note of
17943         debug uses for whose REGs we won't emit DEAD or UNUSED notes.
17945 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
17947         PR debug/51570
17948         * var-tracking.c (expand_depth): New type.
17949         (onepart_aux, expand_loc_callback_data): Change depth type to it.
17950         (loc_exp_dep_alloc): Adjust initializer.
17951         (update_depth): Use new type.  Add entryvals.
17952         (vt_expand_var_loc_chain): Take note of expansions with
17953         ENTRY_VALUEs, but don't accept them right away.  Run an optional
17954         second pass accepting the minimum ENTRY_VALUE count found in the
17955         first pass.
17956         (vt_expand_loc_callback, INIT_ELCD): Adjust.
17958 2012-04-13  Tom de Vries  <tom@codesourcery.com>
17960         * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
17961         parameters vuse and vuse_escaped.
17962         (find_duplicate): Init vuse1, vuse2 and vuse_escaped.  Pass to
17963         gsi_advance_bw_nondebug_nonlocal.  Return if vuse_escaped and
17964         vuse1 != vuse2.
17966 2012-04-13  Richard Guenther  <rguenther@suse.de>
17968         PR tree-optimization/52969
17969         * tree-if-conv.c (predicate_mem_writes): Properly gimplify
17970         the condition for the COND_EXPR and handle predicate negation
17971         by swapping the COND_EXPR arms.
17973 2012-04-13  Nick Clifton  <nickc@redhat.com>
17975         * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
17976         TODO_dump_func flag.
17978 2012-04-13  Andrey Belevantsev  <abel@ispras.ru>
17980         PR rtl-optimization/52203
17981         PR rtl-optimization/52715
17983         Revert the 2012-03-07 fix for PR 52203.
17984         * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
17985         the insn does not modify DFA right before issuing, adjust
17986         issue_rate accordingly.
17988 2012-04-13  Richard Guenther  <rguenther@suse.de>
17990         PR c/52549
17991         * c-typeck.c (pointer_diff): Remove bogus assert.
17993 2012-04-13  Richard Guenther  <rguenther@suse.de>
17995         PR c/52862
17996         * convert.c (convert_to_pointer): Remove special-casing of zero.
17998 2012-04-13  Joey Ye  <joey.ye@arm.com>
18000         * config/arm/constraints.md (Pe): New constraint.
18001         * config/arm/arm.md: New split for imm 256-510.
18003 2012-04-13  Terry Guo  <terry.guo@arm.com>
18005         * config/arm/arm-cores.def: Added core cortex-m0plus.
18006         * config/arm/arm-tune.md: Regenerated.
18007         * config/arm/arm-tables.opt: Regenerated.
18008         * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
18010 2012-04-13  Alan Modra  <amodra@gmail.com>
18012         PR target/52828
18013         * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
18014         tie regs on destination of sets.  Delete forward declaration.
18015         (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
18016         (rs6000_emit_prologue): Likewise.
18017         (rs6000_emit_epilogue): Likewise.  Use in place of gen_frame_tie
18018         and gen_stack_tie.
18019         (is_mem_ref): Use tie_operand to recognise stack ties.
18020         * config/rs6000/predicates.md (tie_operand): New.
18021         * config/rs6000/rs6000.md (restore_stack_block): Generate new
18022         stack tie rtl.
18023         (restore_stack_nonlocal): Likewise.
18024         (stack_tie): Update.
18025         (frame_tie): Delete.
18027 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18029         * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
18030         HOST_WIDE_INT_PRINT_DEC in format strings.
18032 2012-04-12  Uros Bizjak  <ubizjak@gmail.com>
18034         PR target/52932
18035         * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
18036         argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
18037         * config/i386/sse.md (UNSPEC_VPERMVAR): New.
18038         (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
18039         (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
18040         (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
18041         avx2_permvarv8si using VI4F_256 mode iterator.
18042         * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
18043         Update builtin type to V8SF_FTYPE_V8SF_V8SI.
18044         (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
18045         gen_avx2_permvarv8sf.
18046         (expand_vec_perm_pshufb): Ditto.
18048 2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18050         PR target/52775
18051         * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
18052         the list of options to enable the FCFID instruction.
18053         (TARGET_EXTRA_BUILTINS): Adjust comment.
18055 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18057         PR tree-optimization/18589
18058         * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
18059         (operand_entry): Add count field.
18060         (add_repeat_to_ops_vec): New function.
18061         (completely_remove_stmt): Likewise.
18062         (remove_def_if_absorbed_call): Likewise.
18063         (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
18064         (acceptable_pow_call): New function.
18065         (linearize_expr_tree): Look for builtin pow/powi calls and add operand
18066         entries with repeat counts when found.
18067         (repeat_factor_d): New struct and associated typedefs.
18068         (repeat_factor_vec): New static vector variable.
18069         (compare_repeat_factors): New function.
18070         (get_reassoc_pow_ssa_name): Likewise.
18071         (attempt_builtin_powi): Likewise.
18072         (reassociate_bb): Call attempt_builtin_powi.
18073         (fini_reassoc): Two new calls to statistics_counter_event.
18075 2012-04-12  Richard Guenther  <rguenther@suse.de>
18077         * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
18078         * cgraph.h (tree_rest_of_compilation): Remove.
18079         * cgraph.c (cgraph_add_new_function): Move ...
18080         * cgraphunit.c (cgraph_add_new_function): ... here.
18081         (tree_rest_of_compilation): Make static.
18082         (cgraph_expand_function): Do not set cgraph_function_flags_ready.
18083         * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
18084         gate_all_early_local_passes, execute_all_early_local_passes,
18085         pass_early_local_passes, gate_all_early_optimizations,
18086         pass_all_early_optimizations): Move ...
18087         * passes.c (gate_all_optimizations, pass_all_optimizations,
18088         gate_all_early_local_passes, execute_all_early_local_passes,
18089         pass_early_local_passes, gate_all_early_optimizations,
18090         pass_all_early_optimizations): ... here.
18091         * tree-optimize.c (execute_free_datastructures): Remove.
18092         * tree-flow.h (execute_free_datastructures): Remove.
18093         * tree-optimize.c (execute_init_datastructures,
18094         pass_init_datastructures): Move ...
18095         * tree-ssa.c (execute_init_datastructures,
18096         pass_init_datastructures): ... here.
18097         * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
18098         execute_free_datastructures.
18100 2012-04-12  Bernd Schmidt  <bernds@codesourcery.com>
18102         * dbgcnt.def (ira_move): New counter.
18103         * ira-int.h (ira_create_new_reg): Declare function.
18104         (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
18105         * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
18106         no longer static.  All callers changed.
18107         * ira.c: Include "dbgcnt.h".
18108         (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
18109         move_unallocated_pseudos): New static functions.
18110         (first_moveable_pseudo, last_moveable_pseudo): New global variables.
18111         (pseudo_replaced_reg, pseudo_move_insn): New static variables.
18112         (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
18113         * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
18114         to the pseudos generated in find_moveable_pseudos.
18115         * Makefile.in (ira.o): Add $(DBGCNT_H).
18117 2012-04-12  Richard Guenther  <rguenther@suse.de>
18119         PR tree-optimization/52943
18120         * tree-chrec.h (chrec_is_positive): Remove.
18121         * tree-scalar-evolution.c (chrec_is_positive): Move ...
18122         * tree-data-ref.c (chrec_is_positive): ... here.  Make static.
18123         Return false for a constant zero instead of negative.
18124         (analyze_siv_subscript_cst_affine): Handle zero difference
18125         in the initial condition explicitely.
18127 2012-04-12  Richard Guenther  <rguenther@suse.de>
18129         * tree-parloops.c (parallelize_loops): Also consult the upper
18130         bound for the number of iterations.
18131         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
18132         (loop_prefetch_arrays): Likewise.
18134 2012-04-12  Richard Guenther  <rguenther@suse.de>
18136         * cfgloop.h (estimated_loop_iterations_int): Ditch
18137         'conservative' parameter.
18138         (max_stmt_executions_int): Likewise.
18139         (estimated_loop_iterations): Likewise.
18140         (max_stmt_executions): Likewise.
18141         (max_loop_iterations): Declare.
18142         (max_loop_iterations_int): Likewise.
18143         (estimated_stmt_executions): Likewise.
18144         (estimated_stmt_executions_int): Likewise.
18145         * tree-ssa-loop-niter.c (estimated_loop_iterations):
18146         Split parts to ...
18147         (max_loop_iterations): ... this.
18148         (estimated_loop_iterations_int): Split parts to ...
18149         (max_loop_iterations_int): ... this.
18150         (max_stmt_executions_int): Split parts to ...
18151         (estimated_stmt_executions_int): ... this.
18152         (max_stmt_executions): Split parts to ...
18153         (estimated_stmt_executions): ... this.
18154         * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
18155         * predict.c (predict_loops): Likewise.
18156         * tree-data-ref.c (max_stmt_executions_tree): Likewise.
18157         (analyze_siv_subscript_cst_affine): Likewise.
18158         (compute_overlap_steps_for_affine_1_2): Likewise.
18159         (analyze_subscript_affine_affine): Likewise.
18160         (init_omega_for_ddr_1): Likewise.
18161         * tree-parloops.c (parallelize_loops): Likewise.
18162         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
18163         (may_eliminate_iv): Likewise.
18164         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
18165         (loop_prefetch_arrays): Likewise.
18166         * tree-vrp.c (adjust_range_with_scev): Likewise.
18168 2012-04-12  Oleg Endo  <olegendo@gcc.gnu.org>
18170         * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
18171         * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
18172         Fix line width.
18173         (dump_table): Use bool type for need_align and have_df variables.
18174         (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
18175         (regs_used): Remove register modifier.
18176         (barrier_align): Move variables slot, credit, jump_to_next
18177         into if block above for loop.  Use bool type for jump_to_next.
18178         (sh_function_arg): Use NULL_RTX instead of 0.
18180 2012-04-11  Andreas Schwab  <schwab@linux-m68k.org>
18182         * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
18183         (bswapsi2): New expander.
18185 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
18187         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
18188         0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
18190 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
18192         PR rtl-optimization/52876
18193         * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
18194         Don't call mark_reg_pointer for incompatible pointer sign extension.
18196         * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
18197         directly.
18199 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
18201         * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
18202         comparisons against TYPE_PRECISION.
18203         * tree-ssa-forwprop.c (combine_conversions): Likewise.
18205 2012-04-11  Xinliang David Li  <davidxl@google.com>
18207         * tree-passes.h: Remove TODO_dump_func.
18208         * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
18209         * trans-mem.c: Remove TODO_dump_func.
18210         * ira.c: Remove TODO_dump_func.
18212 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
18214         * config/i386/i386.c (ix86_option_override_internal): Check
18215         SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
18216         after TARGET_64BIT is updated.
18218 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
18220         * config/sh/sh.h: Remove old secondary reload code.
18222 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
18224         * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
18225         (ready_reorder): ... this function.
18227 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
18229         * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
18230         sched_init calls.
18232         * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
18233         insns so that no other insn is queued for a time before them.
18235         * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
18236         unknown.
18238 2012-04-11  Richard Guenther  <rguenther@suse.de>
18240         PR middle-end/52621
18241         * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
18242         consider loop nesting.
18243         (evolution_function_is_univariate_p): Properly check the remainder
18244         for chrecs.
18246 2012-04-11  Richard Guenther  <rguenther@suse.de>
18248         PR middle-end/52918
18249         * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
18251 2012-04-11  Nick Clifton  <nickc@redhat.com>
18253         * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
18254         information, if requested.
18256         * config/rx/rx.c (rx_expand_prologue): Likewise.
18258 2012-04-11  Peter Bergner  <bergner@vnet.ibm.com>
18259             Michael Matz  <matz@suse.de>
18261         PR target/16458
18262         * rtlanal.c (unsigned_reg_p): New function.
18263         Update copyright notice dates.
18264         * rtl.h (unsigned_reg_p): Prototype it.
18265         Update copyright notice dates.
18266         * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
18267         Update comment.
18268         * expr.c (expand_expr_real_1): Set register attributes.
18269         * stmt.c (expand_case): Likewise.
18271 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
18273         PR target/50751
18274         * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
18275         consider_sh2a and allow_zero.
18276         * config/sh/sh.c (sh_legitimate_index_p): Likewise.
18277         (disp_addr_displacement): New function.
18278         (sh_address_cost): Use disp_addr_displacement function instead
18279         of DISP_ADDR_OFFSET.
18280         (sh_legitimate_address_p): Adapt to changed
18281         sh_legitimate_index_p declaration.
18282         (sh_find_mov_disp_adjust): Remove HImode check.
18283         (sh_secondary_reload): Add HImode case.  Use satisfies_constraint_Sdd,
18284         disp_addr_displacement and max_mov_insn_displacement.
18285         (max_mov_insn_displacement): Remove HImode check.
18286         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
18287         DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
18288         * config/sh/constraints.md (K05, K13): New constraints.
18289         (K12): Correct comment.
18290         (Sdd): Do not use DISP_ADDR_P macro.
18291         (Snd, Sbw): Use satisfies_constraint_Sdd.
18292         * config/sh/sh.md (extendhisi2): Remove constraints from expander.
18293         (*extendhisi2_compact, movhi_i): Remove.
18294         (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
18295         *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
18296         *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
18297         *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
18298         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
18299         *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
18300         *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
18301         CONST_OK_FOR_Kxx.
18302         Add new peepholes for HImode displacement addressing.
18304 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
18306         * config/sh/sh.h (SIDI_OFF): Remove.
18307         * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
18308         DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
18309         or operand_subword.
18311 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
18313         PR target/52624
18314         * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
18315         (PowerPC AltiVec/VSX Built-in Functions): Remove it.
18316         * doc/md.texi (Standard Names): Add bswap.
18317         * builtin-types.def (BT_UINT16): New primitive type.
18318         (BT_FN_UINT16_UINT16): New function type.
18319         * builtins.def (BUILT_IN_BSWAP16): New.
18320         * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
18321         (expand_builtin) <BUILT_IN_BSWAP16>: New case.  Pass TARGET_MODE to
18322         expand_builtin_bswap.
18323         (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
18324         (fold_builtin_1): Likewise.
18325         (is_inexpensive_builtin): Likewise.
18326         * optabs.c (expand_unop): Deal with bswap in HImode specially.  Add
18327         missing bits for bswap to libcall code.
18328         * tree.c (build_common_tree_nodes): Build uint16_type_node.
18329         * tree.h (enum tree_index): Add TI_UINT16_TYPE.
18330         (uint16_type_node): New define.
18331         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
18332         * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
18333         above builtin.
18334         (rs6000_init_builtins): Likewise.
18335         * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
18337 2012-04-11  Tristan Gingold  <gingold@adacore.com>
18339         * doc/extend.texi (Type Attributes): Move paragraph.
18341 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18343         PR 24985
18344         * diagnostic.h (show_caret): Declare.
18345         (caret_max_width): Declare.
18346         (diagnostic_show_locus): Declare.
18347         * diagnostic.c (diagnostic_initialize): Initialize to false.
18348         (diagnostic_show_locus): New.
18349         (diagnostic_report_diagnostic): Call it.
18350         (getenv_columns): New.
18351         (adjust_line): New.
18352         (diagnostic_set_caret_max_width): New.
18353         * input.c (read_line): New.
18354         (location_get_source_line): New.
18355         * input.h (location_get_source_line): Declare.
18356         * toplev.c (general_init): Initialize show_caret from options.
18357         * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
18358         * opts.c (common_handle_option): Likewise.
18359         * pretty-print.h (pp_get_prefix): New.
18360         (pp_base_get_prefix): New.
18361         * common.opt (fdiagnostics-show-caret): New option.
18362         * doc/invoke.texi (fdiagnostics-show-caret): Document it.
18364 2012-04-11  Richard Guenther  <rguenther@suse.de>
18366         PR rtl-optimization/52881
18367         * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
18369 2012-04-11  Richard Guenther  <rguenther@suse.de>
18371         PR tree-optimization/52912
18372         * tree-ssa-threadupdate.c (thread_block): Tell the cfg
18373         manipulation code we are threading through a loop header
18374         to an exit destination.
18376 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18378         * tree.h (warn_if_unused_value): Move declaration from here.
18379         * stmt.c (warn_if_unused_value): Move definition from here.
18381 2012-04-10  Michael Matz  <matz@suse.de>
18383         * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
18384         grouped_stores.
18385         (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
18386         (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
18387         (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
18388         (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
18389         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
18390         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
18391         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
18392         (vect_record_strided_load_vectors): Rename to
18393         vect_record_grouped_load_vectors.
18394         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
18395         Rename use of above macros.
18396         (vect_verify_datarefs_alignment): Ditto.
18397         (vector_alignment_reachable_p): Ditto.
18398         (vect_peeling_hash_get_lowest_cost): Ditto.
18399         (vect_enhance_data_refs_alignment): Ditto.
18400         (vect_analyze_group_access): Ditto and rename stride to groupsize.
18401         (vect_analyze_data_ref_access): Rename "strided" to "grouped".
18402         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
18403         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
18404         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
18405         (vect_record_strided_load_vectors): Rename to
18406         vect_record_grouped_load_vectors.
18407         * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
18408         (destroy_loop_vec_info): Ditto.
18409         (vect_transform_loop): Ditto and rename strided_store to grouped_store.
18410         * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
18411         (vect_analyze_slp): Ditto.
18412         (new_bb_vec_info): Ditto.
18413         (destroy_bb_vec_info): Ditto.
18414         (vect_schedule_slp_instance): Ditto and rename strided_store to
18415         grouped_store.
18416         * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
18417         vect_cost_group_size.
18418         (vect_model_store_cost): Rename use of above macros and call
18419         to vect_cost_strided_group_size.
18420         (vect_model_load_cost): Ditto.
18421         (vectorizable_store): Ditto, rename strided_store to grouped_store
18422         and calls to renamed tree-vectorizer.h functions.
18423         (vectorizable_load): Ditto.
18424         (vect_transform_stmt): Rename use of above macros and strided_store
18425         to grouped_store.
18427 2012-04-10  Jan Hubicka  <jh@suse.cz>
18429         * cgraph.h: Remove misledaing comment on ipa-ref.h.
18430         (symtab_type): New enum.
18431         (symtab_node): New structure.
18432         (cgraph_node, varpool_node): Add symbol base type.
18433         (cgraph, varpool): New accestor functions.
18434         * cgraph.c (cgraph_create_node_1): Set symbol type.
18435         * varpool.c (varpool_node): Set symbol type.
18437 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
18438             Richard Sandiford  <rdsandiford@googlemail.com>
18440         * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
18442 2012-04-10  Richard Guenther  <rguenther@suse.de>
18444         PR middle-end/52888
18445         * gimple-low.c (gimple_check_call_args): Properly account for
18446         compatible aggregate types.
18448 2012-04-10  Richard Guenther  <rguenther@suse.de>
18450         * toplev.h (tree_rest_of_compilation): Remove.
18451         * tree-optimize.c (tree_rest_of_compilation): Likewise.
18452         * cgraph.h (tree_rest_of_compilation): Declare.
18453         * tree-optimize.c (tree_rest_of_compilation): Move ...
18454         * cgraphunit.c (tree_rest_of_compilation): ... here.
18455         * cgraph.c (cgraph_add_new_function): Adjust.
18456         * Makefile.in (tree-optimize.o): Adjust.
18457         (cgraphunit.o): Likewise.
18459 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
18461         PR tree-optimization/52870
18462         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
18463         presumed pattern statement is within the same loop or basic block.
18465 2012-04-10  Tristan Gingold  <gingold@adacore.com>
18467         * gengtype.c (main): Make uintptr_t a known type.
18469 2012-04-10  Richard Guenther  <rguenther@suse.de>
18471         * tree-pass.h (tree_lowering_passes): Remove.
18472         * tree-optimize.c (tree_lowering_passes): Remove.
18473         * cgraph.c (cgraph_add_new_function): Inline relevant parts
18474         of tree_lowering_passes, avoid redundant call of early local passes.
18475         * cgraphunit.c (cgraph_lower_function): Fold into ...
18476         (cgraph_analyze_function): ... its single caller.  Inline
18477         relevant parts of tree_lowering_passes.
18479 2012-04-09  H.J. Lu  <hongjiu.lu@intel.com>
18481         PR other/52777
18482         * config/pa/pa.opt: Remove SIO and GNU_LD.
18484 2012-04-09  Jan Hubicka  <jh@suse.cz>
18486         PR lto/52722
18487         PR lto/51765
18488         PR lto/52634
18489         * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
18490         boundary, add its target too.
18491         * lto.c (add_references_to_partition): Add also aliased nodes.
18492         (add_cgraph_node_to_partition,
18493         add_varpool_node_to_partition): Work on nodes, not functions/variables;
18494         when adding alias, add also the aliased object.
18496 2012-04-09  Uros Bizjak  <ubizjak@gmail.com>
18498         PR target/52883
18499         * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
18500         VOIDmode immediate operands.
18501         * config/i386/constraints.md (Wz): New constraint.
18502         * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
18504 2012-04-09  Eric Botcazou  <ebotcazou@adacore.com>
18506         PR target/52717
18507         * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
18508         the DECL generated for the special GOT helper.
18510 2012-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
18512         * config/sh/constraints.md: Update list of constraints in
18513         comment block.
18514         (Sr0): Remove unused memory constraint.
18516 2012-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18518         * tree-pretty-print.h: Update comment.
18520 2012-04-08  Oleg Endo  <olegendo@gcc.gnu.org>
18522         * config/sh/sh.md: Use braced string notation where applicable.
18523         (*prefetch_i4, prefetch_m2a): Merge into ...
18524         (*prefetch): ... this new insn.
18526 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
18528         * config/sh/sh.h (high_life_started): Remove
18529         * config/sh/predicates.md (general_movdst_operand): Use
18530         'reload_in_progress' instead of 'high_life_started'.
18531         * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
18532         divsi_inv_fp): Likewise.
18534 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
18536         * config/sh/sh-protos.h (prepare_move_operands): Return void
18537         instead of int.
18538         * config/sh/sh.c (prepare_move_operands): Likewise.
18539         * config/sh/sh.md: Remove return value checks of prepare_move_operands.
18541 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
18543         * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
18544         general_movsrc_operand, general_movdst_operand, arith_reg_operand,
18545         fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
18546         logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
18547         commutative_float_operator, noncommutative_float_operator,
18548         sh_handle_pragma): Remove.
18550 2012-04-06  Sandra Loosemore  <sandra@codesourcery.com>
18552         * doc/invoke.texi:  Clean up Texinfo markup throughout the file.
18553         Use @option markup on command-line options.  Use @samp markup on
18554         literal keywords to options.  Use @code markup on code fragments.
18555         Use other markup in preference to quotation marks in the text.
18556         Add markup to some passages without any.
18558 2012-04-06  Mike Stump  <mikestump@comcast.net>
18560         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
18562 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
18564         * config/sh/sh.c (hi_const): Remove.
18565         (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
18566         of hi_const.
18568 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
18570         * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
18571         to bool.
18572         * config/sh/sh.c (sh_expand_t_scc): Likewise.
18573         * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
18574         calling sh_expand_t_scc.
18576 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
18578         * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
18579         nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
18580         sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
18581         reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
18582         sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
18583         sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
18584         check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
18585         sh2a_is_function_vector_call): Use bool as return type.
18586         (sh_pass_in_reg_p): Remove.
18587         * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
18588         flow_dependent_p, sh2a_function_vector_p, expand_block_move,
18589         expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
18590         sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
18591         sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
18592         sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
18593         fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
18594         sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
18595         sh_loads_bankedreg_p): Use bool as return type.
18596         (nonpic_symbol_mentioned_p): Use bool as return type.  Remove
18597         'register' modifier.
18599 2012-04-06  Matt Turner  <mattst88@gmail.com>
18601         * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
18603 2012-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18605         * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
18606         of the destination isn't also a FP_REGS register.
18608 2012-04-05  Teresa Johnson  <tejohnson@google.com>
18609             H.J. Lu  <hongjiu.lu@intel.com>
18611         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
18612         * config/i386/i386.md (move immediate to memory peephole2):
18613         Add cases for HImode move when LCP stall avoidance is needed.
18614         * config/i386/i386.c (initial_ix86_tune_features): Initialize
18615         X86_TUNE_LCP_STALL entry.
18617 2012-04-05  Uros Bizjak  <ubizjak@gmail.com>
18619         PR target/52882
18620         * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
18621         CONST_INT operands, zero-extended with AND.
18623 2012-04-05  Oleg Endo  <olegendo@gcc.gnu.org>
18625         PR target/50751
18626         * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
18627         first argument instead of mode size.  Move displacement calculations
18628         to ...
18629         (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
18630         ... these new functions.
18631         (disp_adjust): Remove max_mov_disp field.
18632         (sh_legitimate_index_p): Use max_mov_insn_displacement and
18633         mov_insn_alignment_mask.
18634         (sh_address_cost): Use max_mov_insn_displacement.
18636 2012-04-05  Andrew Stubbs  <ams@codesourcery.com>
18638         * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
18639         (arch_enabled): Handle new arch types.
18640         (one_cmpldi2): Add NEON support.
18642 2012-04-05  Richard Guenther  <rguenther@suse.de>
18644         * gimple.c (walk_gimple_op): Compute val_only for the LHS
18645         of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
18646         (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
18647         * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
18648         ... here and make static.
18649         * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
18650         Remove.
18652 2012-04-05  Richard Guenther  <rguenther@suse.de>
18654         * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
18655         basic-block before removing it.
18657 2012-04-05  Richard Guenther  <rguenther@suse.de>
18659         * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
18660         version namespace as we release the freelist.
18662 2012-04-05  Richard Guenther  <rguenther@suse.de>
18664         * tree-nrv.c (tree_nrv): Release VDEFs.
18665         * tree-sra.c (sra_modify_constructor_assign): Likewise.
18666         (sra_modify_assign): Likewise.
18667         * tree-vect-stmts.c (vect_remove_stores): Likewise.
18668         * tree-vect-loop.c (vect_transform_loop): Likewise.
18669         * tree-ssa-dom.c (optimize_stmt): Likewise.
18670         * tree-vect-slp.c (vect_schedule_slp): Likewise.
18671         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
18673 2012-04-05  Richard Guenther  <rguenther@suse.de>
18675         * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
18676         cleanup.
18677         * gimple.h (gsi_remove): Adjust.
18678         * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
18679         * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
18680         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
18681         * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
18682         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
18683         * tree-ssa-pre.c (eliminate): Likewise.
18685 2012-04-04  Mike Stump  <mikestump@comcast.net>
18687         * doc/rtl.texi (const_double): Document as sign-extending.
18688         * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
18689         * emit-rtl.c (immed_double_int_const): Refine to state the
18690         value is signed.
18691         * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
18692         CONST_DOUBLE integers.
18693         (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
18694         negative values are converted.  Fix conversions bigger than
18695         HOST_BITS_PER_WIDE_INT.
18696         (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
18697         (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
18698         * explow.c (plus_constant_mode): Add.
18699         (plus_constant): Implement with plus_constant_mode.
18700         * rtl.h (plus_constant_mode): Add.
18702 2012-04-04  Richard Guenther  <rguenther@suse.de>
18704         PR tree-optimization/52808
18705         * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
18706         * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
18708 2012-04-04  Tristan Gingold  <gingold@adacore.com>
18710         * expr.c (expand_expr_real_2): Handle larger sizetype in
18711         POINTER_PLUS_EXPR.
18713 2012-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
18715         * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
18716         to m2a-single instead of m2e.
18718 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
18720         * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
18721         Change type of BITOFFSET to signed.  Make sure the lower bound of
18722         the computed range is non-negative by adjusting OFFSET and BITPOS.
18723         (expand_assignment): Adjust call to get_bit_range.
18725 2012-04-03  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
18727         * h8300/h8300.c (h8300_current_function_monitor_function_p):
18728         New function. Added to check monitor functions.
18729         (h8300_option_override): Modified to generate error/warning
18730         messages for invalid combinations of different command line
18731         options.
18732         * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
18733         save EXR on stack for monitor function in case of H8S target
18734         when "-mno-exr" is passed.
18735         * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
18736         Add prototype.
18737         * doc/invoke.texi: Document H8S options.
18739 2012-04-03  Tristan Gingold  <gingold@adacore.com>
18741         * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
18742         of gcc_AC_FUNC_MMAP_BLACKLIST.
18743         * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
18744         * Makefile.in (aclocal_deps): Add mmap.m4.
18745         * configure: Regenerate.
18746         * aclocal.m4: Regenerate.
18748 2012-04-03  Richard Guenther  <rguenther@suse.de>
18750         PR tree-optimization/52808
18751         * tracer.c (tail_duplicate): Return whether we have duplicated
18752         any block.
18753         (tracer): If we have duplicated any block, cleanup the CFG.
18754         * cfghooks.c (duplicate_block): If we duplicated a loop
18755         header but not its loop, destroy the loop because it now has
18756         multiple entries.
18757         * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
18758         the cfg manipulation routines we are not creating a multiple
18759         entry loop.
18761 2012-04-03  Tristan Gingold  <gingold@adacore.com>
18763         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
18764         'byte' alignment.
18765         (vms_c_common_override_options): Allow parameterless variadic
18766         functions.
18768 2012-04-03  Jakub Jelinek  <jakub@redhat.com>
18770         PR tree-optimization/52835
18771         * tree-data-ref.c (build_rdg): Return NULL if
18772         compute_data_dependences_for_loop failed.
18774 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
18776         * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
18777         for REAL_CST as well.
18778         (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
18779         In the bitfield case, if the value is a REAL_CST, convert it first to
18780         an INTEGER_CST.
18782 2012-04-02  H.J. Lu  <hongjiu.lu@intel.com>
18784         * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
18785         for --with-abi={x32|mx32} or --with-multilib-list=mx32.
18786         (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
18788         * config/i386/biarchx32.h: New.
18790 2012-04-02  Anatoly Sokolov  <aesok@post.ru>
18792         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
18793         * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18794         (arm_preferred_reload_class): New function.
18796 2012-04-02  Richard Guenther  <rguenther@suse.de>
18798         PR tree-optimization/52756
18799         * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
18800         (thread_through_loop_header): After threading through the loop latch
18801         remove the split part from the loop and clear further threading
18802         opportunities that would create a multiple entry loop.
18804 2012-04-02  Richard Guenther  <rguenther@suse.de>
18806         PR rtl-optimization/52800
18807         * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
18808         CLEANUP_CFG_CHANGED.
18810 2012-04-02  Richard Guenther  <rguenther@suse.de>
18812         PR middle-end/52803
18813         * loop-init.c (gate_handle_loop2): Destroy loops here if
18814         we don't enter RTL loop optimizers.
18816 2012-04-02  Uros Bizjak  <ubizjak@gmail.com>
18818         Partially revert:
18819         2012-03-29  Richard Guenther  <rguenther@suse.de>
18821         * rtl.h (extended_count): Remove.
18822         * combine.c (extended_count): Remove.
18824 2012-04-02  Dodji Seketeli  <dodji@redhat.com>
18826         PR c++/40942
18827         * pt.c (more_specialized_fn):  Don't apply decay conversion to
18828         types of function parameters.
18830 2012-04-02  Tristan Gingold  <gingold@adacore.com>
18832         * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
18833         (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
18834         (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
18835         (ggc_pch_this_base): Use uintptr_t instead of size_t.
18837 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18839         PR bootstrap/52784
18840         * config/i386/i386.c (ix86_option_override_internal): Don't
18841         check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
18843 2012-03-31  Eric Botcazou  <ebotcazou@adacore.com>
18845         * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
18846         (stmt_can_make_abnormal_goto): Use it.
18847         (is_ctrl_altering_stmt): Likewise.
18849 2012-03-30  Naveen H.S  <naveen.S@kpitcummins.com>
18850             Kaz Kojima  <kkojima@gcc.gnu.org>
18852         * config/sh/sh.c (push_regs): Skip banked registers when
18853         resbank attribute is specified.
18854         (sh_expand_epilogue): Likewise.
18856 2012-03-30  Richard Henderson  <rth@redhat.com>
18858         PR debug/52727
18859         * combine-stack-adj.c (prev_active_insn_bb): New.
18860         (next_active_insn_bb): New.
18861         (force_move_args_size_note): New.
18862         (combine_stack_adjustments_for_block): Use it.
18864 2012-03-30  Richard Henderson  <rth@redhat.com>
18866         * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
18867         (ix86_expand_vector_init_duplicate): Initialize it.
18868         (expand_vec_perm_palignr): Likewise.
18869         (ix86_expand_vec_perm_const): Likewise.
18870         (ix86_vectorize_vec_perm_const_ok): Likewise.
18871         (expand_vec_perm_blend): Use it.
18872         (expand_vec_perm_vpermil): Likewise.
18873         (expand_vec_perm_pshufb): Likewise.
18874         (expand_vec_perm_1): Likewise.
18875         (expand_vec_perm_pshuflw_pshufhw): Likewise.
18876         (expand_vec_perm_interleave2): Likewise.
18877         (expand_vec_perm_vpermq_perm_1): Likewise.
18878         (expand_vec_perm_vperm2f128): Likewise.
18879         (expand_vec_perm_interleave3): Likewise.
18880         (expand_vec_perm_vperm2f128_vblend): Likewise.
18881         (expand_vec_perm_vpshufb2_vpermq): Likewise.
18882         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
18883         (expand_vec_perm_broadcast): Likewise.
18884         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
18886 2012-03-30  Richard Henderson  <rth@redhat.com>
18888         * dwarf2out.c (gen_variable_die): Initialize off.
18890 2012-03-30  Tristan Gingold  <gingold@adacore.com>
18892         * config/vms/vms-f.c: New file.
18893         * config/vms/t-vms (vms-f.o): New rule.
18894         * config.gcc (*-*-*vms*): Define fortran_target_objs.
18896 2012-03-30  Richard Guenther  <rguenther@suse.de>
18898         PR tree-optimization/52754
18899         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
18900         propagate arbitrary addresses into really plain dereferences.
18902 2012-03-30  Richard Guenther <rguenther@suse.de>
18904         PR middle-end/52772
18905         * except.c (emit_to_new_bb_before): Move loop updating ...
18906         (dw2_build_landing_pads): ... here.  Use a proper block for
18907         querying the loop father.
18909 2012-03-30  Tristan Gingold  <gingold@adacore.com>
18911         * config/ia64/ia64.c (ia64_section_type_flags): Remove
18912         common_object attribute handling.
18913         (SECTION_VMS_OVERLAY): Remove
18914         (ia64_vms_common_object_attribute): Replace abort with an assert.
18915         Do not set DECL_SECTION_NAME.
18916         (ia64_vms_output_aligned_decl_common): Handle common_object
18917         attribute.
18918         (ia64_vms_elf_asm_named_section): Remove.
18919         * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
18921 2012-03-30  Richard Guenther  <rguenther@suse.de>
18923         PR middle-end/52786
18924         * double-int.c (rshift_double): Remove not needed cast.
18926 2012-03-30  Richard Guenther  <rguenther@suse.de>
18928         * tree-affine.h (print_aff): Remove.
18929         * tree-affine.c (print_aff): Make static.
18930         * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
18931         (get_references_in_stmt): Likewise.
18932         (print_direction_vector): Likewise.
18933         (print_dir_vectors): Likewise.
18934         (print_dist_vectors): Likewise.
18935         (dump_subscript): Likewise.
18936         (dump_ddrs): Likewise.
18937         (dump_dist_dir_vectors): Likewise.
18938         (dump_data_references): Likewise.
18939         (dump_data_dependence_relation): Likewise.
18940         (dump_data_dependence_direction): Likewise.
18941         (dump_rdg_vertex): Likewise.
18942         (dump_rdg_component): Likewise.
18943         (debug_ddrs): Declare.
18944         (struct data_ref_loc_d): Move ...
18945         * tree-data-ref.c (struct data_ref_loc_d): ... here.
18946         (get_references_in_stmt): Make static.
18947         (dump_data_references): Likewise.
18948         (dump_subscript): Likewise.
18949         (print_direction_vector): Likewise.
18950         (print_dir_vectors): Likewise.
18951         (print_dist_vectors): Likewise.
18952         (dump_data_dependence_relation): Likewise.
18953         (dump_dist_dir_vectors): Likewise.
18954         (dump_ddrs): Likewise.
18955         (dump_rdg_vertex): Likewise.
18956         (dump_rdg_component): Likewise.
18957         (debug_ddrs): New function.
18958         (access_matrix_get_index_for_parameter): Remove.
18960 2012-03-30  Tristan Gingold  <gingold@adacore.com>
18962         * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
18963         (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
18964         (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
18965         (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
18966         (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
18967         (vms_patch_builtins): Handle new flags
18968         * config/vms/vms-crtlmap.map: Completed using nm on
18969         c and math system libraries.
18970         * config/vms/make-crtlmap.awk: Handle any number of flags.
18972 2012-03-30  Martin Jambor  <mjambor@suse.cz>
18974         * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
18975         is a builtin_stack_save in a dominating BB.
18977 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
18979         * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
18980         crossing 128bit lane boundary.
18982 2012-03-29  Vladimir Makarov  <vmakarov@redhat.com>
18984         * ira-color.c (setup_left_conflict_sizes_p): Process all
18985         conflicting objects.
18987 2012-03-29  Jakub Jelinek  <jakub@redhat.com>
18989         PR tree-optimization/52760
18990         * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
18991         shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
18993 2012-03-29  Richard Guenther  <rguenther@suse.de>
18995         * cgraph.h (cgraph_materialize_all_clones): Remove.
18996         (reset_inline_failed): Likewise.
18997         * cgraphunit.c (cgraph_materialize_all_clones): Make static.
18998         * cgraphbuild.c (reset_inline_failed): Remove.
18999         * rtl.h (cse_main): Remove.
19000         (extended_count): Likewise.
19001         * cse.c (dump_class): Mark as DEBUG_FUNCTION.
19002         (cse_main): Make static.
19003         * combine.c (extended_count): Remove.
19004         (dump_combine_stats): Mark as DEBUG_FUNCTION.
19005         * basic-block.h (reorder_basic_blocks): Remove.
19006         * bb-reorder.c (reorder_basic_blocks): Make static.
19007         * Makefile.in (dse.o): Remove dse.h dependency.
19008         * dse.h: Remove.
19009         * dse.c (gate_dse): Remove.
19010         (clear_alias_mode_eq): Likewise.
19011         (clear_alias_mode_hash): Likewise.
19012         (dse_record_singleton_alias_set): Likewise.
19013         (dse_invalidate_singleton_alias_set): Likewise.
19015 2012-03-29  H.J. Lu  <hongjiu.lu@intel.com>
19017         * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
19018         crtbegin_so%O%s for -shared.
19019         (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
19021 2012-03-29  Richard Guenther  <rguenther@suse.de>
19023         * tree-flow.h (struct pre_expr_d): Remove forward declaration.
19024         (add_to_value): Remove.
19025         (print_value_expressions): Likewise.
19026         * tree-ssa-pre.c (add_to_value): Make static.
19027         (print_value_expressions): Likewise.
19028         * gimple.h (gimple_adjust_this_by_delta): Remove.
19029         * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
19031 2012-03-29  Richard Guenther  <rguenther@suse.de>
19033         PR middle-end/50708
19034         * double-int.h (rshift_double): Remove.
19035         * double-int.c (lshift_double): Use absu_hwi to make count positive.
19036         (rshift_double): Make static, take unsigned count argument,
19037         remove handling of negative count argument.
19038         (double_int_rshift): Dispatch to lshift_double.
19040 2012-03-28  H.J. Lu  <hongjiu.lu@intel.com>
19042         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
19043         OPTION_MASK_ABI_64.
19045         * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
19046         (SPEC_X32): Likewise.
19047         (MULTILIB_DEFAULTS): Likewise.
19049         * config/i386/i386.c (isa_opts): Remove -m64.
19050         (ix86_target_string): Properly handle -m32/-m64/-mx32.
19051         (ix86_option_override_internal): Properly
19052         set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
19053         handle -m32, -m64 and -mx32.
19055         * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
19056         with OPTION_ABI_X32.  Moved after TARGET_LP64.
19057         (TARGET_LP64): Changed to OPTION_ABI_64.
19059         * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
19060         (mx32): Replace ISA_X32 with ABI_X32.
19062 2012-03-28  Eric Botcazou  <ebotcazou@adacore.com>
19064         * tree.c (tree_size) <VECTOR_CST>: New case.
19066 2012-03-28  Uros Bizjak  <ubizjak@gmail.com>
19068         * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
19069         (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
19071 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
19073         PR middle-end/52691
19074         * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
19075         __builtin_va_start to __builtin_next_arg if the latter is
19076         builtin_decl_explicit_p rather than when it is not.
19078         PR middle-end/52750
19079         * tree-vect-generic.c (vector_element): Perform multiplication
19080         for pos in bitsizetype type instead of idx type.
19082 2012-03-28  Richard Guenther  <rguenther@suse.de>
19084         * loop-init.c (loop_optimizer_init): If loops are preserved
19085         perform incremental initialization of required loop features.
19086         (loop_optimizer_finalize): If loops are to be preserved only
19087         clean up optional loop features.
19088         (rtl_loop_done): Forcefully free loops here.
19089         * cgraph.c (cgraph_release_function_body): Forcefully free loops.
19090         * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
19091         to existing loops.
19092         (construct_init_block): Likewise.
19093         (construct_exit_block): Likewise.
19094         (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state.  Cleanup
19095         the CFG after expanding.
19096         * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
19097         If we needed to calculate them, free them afterwards.
19098         * tree-pass.h (PROP_loops): New define.
19099         * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
19100         * basic-block.h (CLEANUP_CFG_CHANGED): New.
19101         * cfgcleanup.c (merge_blocks_move): Protect loop latches.
19102         (cleanup_cfg): If we did something and have loops around, fix them up.
19103         * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
19104         with CLEANUP_CFG_CHANGED.
19105         * cfghooks.c (merge_blocks): If we merge a loop header into
19106         its predecessor, update the loop structure.
19107         (duplicate_block): If we copy a loop latch, adjust loop state
19108         to note we may have multiple latches.
19109         (delete_basic_block): Mark loops for fixup if we remove a loop.
19110         * cfganal.c (forwarder_block_p): Protect loop latches, headers
19111         and preheaders.
19112         * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
19113         (cfg_layout_can_merge_blocks_p): Likewise.
19114         * cprop.c (bypass_block): If we create a loop with multiple
19115         entries, mark it for removal.
19116         * except.c (emit_to_new_bb_before): Add the new basic-block
19117         to existing loops.
19118         * tree-eh.c (lower_resx): Likewise.
19119         * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
19120         (expand_omp_taskreg): Likewise.
19121         * tree-inline.c (initialize_cfun): Likewise.
19122         * tree-mudflap.c (add_bb_to_loop): Prototype.
19123         (mf_build_check_statement_for): Properly add new basic-blocks
19124         to existing loops.
19125         * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
19126         if we remove a loop.
19127         (thread_through_loop_header): Likewise.
19128         * trans-mem.c (tm_log_emit_save_or_restores): Properly add
19129         new basic-blocks to existing loops.
19130         (expand_transaction): Likewise.
19131         * Makefile.in (except.o): Add $(CFGLOOP_H).
19132         (expr.o): Likewise.
19133         (cgraph.o): Likewise.
19134         (cprop.o): Likewise.
19135         (cfgexpand.o): Likewise.
19136         (cfganal.o): Likewise.
19137         (trans-mem.o): Likewise.
19138         (tree-eh.o): Likewise.
19140 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
19142         PR target/52692
19143         * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
19144         (avr_builtin_decl): New static function.
19145         (struct avr_builtin_description, avr_bdesc): Move up.
19146         Add GTY marker. Add field fndecl. Remove redundant field id.
19147         (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
19148         (avr_expand_builtin): Code cleanup because .id is removed.
19150 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
19152         PR target/52737
19153         * config.gcc (tm_file): Remove avr/multilib.h.
19155         * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
19157         * config/avr/genmultilib.awk: Remove code to generate multilib.h.
19158         (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
19159         * config/avr/t-avr: Remove generation of multilib.h.
19160         * config/avr/t-multilib: Regenerate.
19161         * config/avr/multilib.h: Remove.
19162         * config/avr/avr.opt (-msp8): New option.
19163         (avr_sp8): New variable.
19164         * config/avr/driver-avr.c (avr_device_to_sp8): New function.
19165         * config/avr/avr.h (AVR_HAVE_SPH): New define.
19166         (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
19167         (avr_device_to_sp8): New prototype.
19168         (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
19169         (DRIVER_SELF_SPECS): New define.
19170         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
19171         __AVR_SP8__, __AVR_HAVE_SPH__.
19172         * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
19173         AVR_HAVE_8BIT_SP to decide if SP_H is present.
19174         (avr_file_start): Ditto.
19176 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
19178         PR target/52736
19179         * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
19180         instead of 8 in adjust_address.
19182 2012-03-27  Aurelien Buhrig  <aurelien.buhrig.gcc@gmail.com>
19184         PR middle-end/51893
19185         * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
19186         targets.
19188 2012-03-27  Oleg Endo  <olegendo@gcc.gnu.org>
19190         PR target/50751
19191         * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
19192         Rearrange conditional logic.  Move displacement address calculations
19193         to ...
19194         (sh_find_mov_disp_adjust): ... this new function.
19196 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
19198         * config/arm/arm.opt (mapcs): Remove MaskExists.
19199         * config/cris/linux.opt (mno-gotplt): Likewise.
19200         * config/i386/i386.opt (mhard-float): Likewise.
19201         (msse4): Likewise.
19202         (mno-sse4): Likewise.
19203         * config/m68k/m68k.opt (mhard-float): Likewise.
19204         * config/mep/mep.op (mcop32): Likewise.
19205         * config/pa/pa-hpux.opt (msio): Likewise.
19206         * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
19207         * config/picochip/picochip.opt (mlittle): Likewise.
19208         * config/sh/sh.opt (mrenesas): Likewise.
19209         * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
19210         * config/sparc/sparc.opt (mhard-float): Likewise.
19211         * config/v850/v850.opt (mv850es): Likewise.
19212         * config/vax/vax.opt (mg-float): Likewise.
19214 2012-03-27  Martin Jambor  <mjambor@suse.cz>
19216         PR middle-end/52693
19217         * tree-sra.c (sra_modify_assign): Do not call
19218         load_assign_lhs_subreplacements when working with an unscalarizable
19219         region.
19221 2012-03-27  Uros Bizjak  <ubizjak@gmail.com>
19223         PR target/52698
19224         * config/i386/i386-protos.h (ix86_legitimize_reload_address):
19225         New prototype.
19226         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
19227         * config/i386/i386.c: Include reload.h.
19228         (ix86_legitimize_reload_address): New function.
19230 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
19232         * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
19233         hasn't been allocated.  Define a target macro for Mask and
19234         InverseMask if it hasn't been defined.  Remove MaskExists handling.
19236         * doc/options.texi: Remove MaskExists.
19238 2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>
19240         PR target/52667
19241         * config/sh/sh.c (find_barrier): Add equality check of last_got
19242         to avoid going above orig insn. Update comments.
19244 2012-03-27  Richard Guenther  <rguenther@suse.de>
19246         PR middle-end/52720
19247         * fold-const.c (try_move_mult_to_index): Handle &x.array more
19248         explicitely.
19250 2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>
19252         * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
19253         of a unit before computing the offset in units.
19254         * expr.c (get_bit_range): Return the null range if the enclosing record
19255         is part of a larger bit field.
19257 2012-03-27  Tristan Gingold  <gingold@adacore.com>
19259         * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
19260         * config/ia64/ia64.md: Remove mode in template.
19261         Sign extend operand in expand_simple_binop.
19262         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
19263         CASE_VECTOR_MODE instead of TARGET_ILP32.
19264         (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
19266 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
19268         * varasm.c (assemble_external): #if 0 out the new assert from the
19269         previous commit, it breaks the Java and Go front ends.
19271 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
19273         * toplev.c (check_global_declaration_1): Do not call assemble_external.
19274         * expr.c (emit_block_move_libcall_fn): Likewise.
19275         (clear_storage_libcall_fn): Likewise.
19276         (expand_expr_addr_expr_1): Likewise.
19277         (expand_expr_real_1): Likewise.
19278         * calls.c (rtx_for_function_call): Likewise.
19280         * varasm.c (assemble_external): Assert this function is only called
19281         during or after expanding to RTL.
19283 2012-03-26  Martin Jambor  <mjambor@suse.cz>
19285         PR tree-optimization/50052
19286         * tree-sra.c (tree_non_aligned_mem_p): Removed.
19287         (tree_non_aligned_mem_for_access_p): Likewise.
19288         (build_accesses_from_assign): Removed strict alignment requirements
19289         checks.
19290         (access_precludes_ipa_sra_p): Likewise.
19292 2012-03-26  Richard Guenther  <rguenther@suse.de>
19294         PR tree-optimization/52701
19295         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
19296         compute and set the evolution part of PHI nodes.
19298 2012-03-26  Richard Guenther  <rguenther@suse.de>
19300         PR tree-optimization/52721
19301         * tree-vect-stmts.c (vect_init_vector): Handle scalars.
19303 2012-03-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
19305         PR tree-optimization/52686
19306         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
19307         WIDEN_LSHIFT_EXPR.
19309 2012-03-26  Tristan Gingold  <gingold@adacore.com>
19311         * config/alpha/vms.h (LINK_SPEC): Simplify.
19312         (STARTFILE_SPEC): Remove -mvms-return-codes handling.
19313         (NAME__MAIN, SYMBOL__MAIN): Remove.
19314         (VMS_DEBUG_MAIN_POINTER): Remove.
19315         * config/ia64/vms.h: Likewise.
19316         * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
19317         code to vms.c.  Call vms_start_function.
19318         * config/ia64/ia64.c (ia64_start_function): Likewise.
19319         * config/vms/vms-protos.h (vms_start_function): Declare.
19320         * config/vms/vms.c (vms_start_function): New function.
19321         * config/vms/vms.h (MATH_LIBRARY): Define.
19322         (VMS_DEBUG_MAIN_POINTER): Define.
19324 2012-03-26  Eric Botcazou  <ebotcazou@adacore.com>
19326         PR rtl-optimization/52629
19327         * reload1.c (count_pseudo): Short-circuit common case.
19328         (count_spilled_pseudo): Return early for pseudos without hard regs.
19329         Assert that the pseudo has got a hard reg before manipulating it.
19331 2012-03-24  Jan Hubicka  <jh@suse.cz>
19333         PR lto/51663
19334         * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
19335         (decide_is_variable_needed): Do not handle toplevel reorder here.
19336         * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
19337         * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
19338         even at -O0.
19340 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
19342         * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
19343         and str_bitsize instead of more convoluted expressions.
19345 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
19347         PR target/52610
19348         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
19350 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
19352         PR target/52656
19353         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
19355 2012-03-23  Martin Jambor  <mjambor@suse.cz>
19357         * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
19359 2012-03-23  Richard Guenther  <rguenther@suse.de>
19361         PR tree-optimization/52678
19362         * tree-vectorizer.h (struct _stmt_vec_info): Add
19363         loop_phi_evolution_part member.
19364         (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
19365         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
19366         STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
19367         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
19368         Use the cached evolution part and the PHI nodes value from
19369         the loop preheader edge instead of re-analyzing the evolution.
19371 2012-03-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
19373         * config/mips/mips-tables.opt: Update.
19374         * config/mips/mips.md (processor): Add xlp.
19375         * config/mips/mips-cpus.def: Add xlp.
19376         * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
19377         5KF for now.
19378         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
19379         * doc/invoke.texi: Mention XLP.
19381 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
19383         PR middle-end/52547
19384         * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
19385         on any new_local_var_chain vars declared during recursing on
19386         GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
19388 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
19390         * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
19391         (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
19392         (ASM_OUTPUT_LOCAL): Ditto.
19393         (ASM_OUTPUT_COMMON): Remove.
19394         * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
19395         * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
19397 2012-03-22  Jan Hubicka  <jh@suse.cz>
19399         PR middle-end/51737
19400         * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
19401         parameter.
19402         * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
19403         * ipa-inline-transform.c (save_inline_function_body): Remove
19404         copied clone if needed.
19405         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
19407 2012-03-22  Richard Guenther  <rguenther@suse.de>
19409         PR middle-end/52666
19410         * fold-const.c (fold_ternary_loc): Fix typo.
19412 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
19414         PR target/52496
19415         * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
19416         (unspecv): Add UNSPECV_MEMORY_BARRIER.
19417         (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
19418         (delay_cycles_1, delay_cycles_2): Ditto.
19419         (delay_cycles_3, delay_cycles_4): Ditto.
19420         (nopv, *nopv): Ditto.
19421         (sleep, *sleep): Ditto.
19422         (wdr, *wdr): Ditto.
19424 2012-03-22  Richard Guenther  <rguenther@suse.de>
19426         PR tree-optimization/52548
19427         * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
19428         because of clobbers.
19429         (prune_clobbered_mems): New function.
19430         (compute_antic_aux): Use it to prune ANTIC_OUT.
19431         (compute_partial_antic_aux): Use it to prune PA_IN.
19432         (compute_avail): Only insert expressions into EXP_GEN that are not
19433         invalidated when translated up to the beginning of the block.
19435 2012-03-22  Richard Guenther  <rguenther@suse.de>
19437         PR tree-optimization/52638
19438         * tree-vect-stmts.c (vect_init_vector_1): New function, split
19439         out from ...
19440         (vect_init_vector): ... here.  Handle scalar vector inits.
19441         (vect_get_vec_def_for_operand): Adjust.
19442         (vectorizable_load): Likewise.
19444 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
19446         * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
19447         (alpha*-*-freebsd*): Ditto.
19448         (alpha*-*-netbsd*): Ditto.
19449         (alpha*-*-openbsd*): Ditto.
19450         * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
19451         (DWARF2_DEBUGGING_INFO): Remove.
19452         (PREFERRED_DEBUGGING_TYPE): Remove.
19453         (ASM_FINAL_SPEC): Remove.
19454         (IDENT_ASM_OP): Remove.
19455         (ASM_OUTPUT_IDENT): Remove.
19456         (SKIP_ASM_OP): Remove.
19457         (ASM_OUTPUT_SKIP): Remove.
19458         (ALIGN_ASM_OP): Remove.
19459         (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
19460         (ASM_OUTPUT_CASE_LABEL): Remove.
19461         (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
19462         (COMMON_ASM_OP): Remove.
19463         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
19464         (ASCII_DATA_ASM_OP): Remove.
19465         (READONLY_DATA_SECTION_ASM_OP): Remove.
19466         (INIT_SECTION_ASM_OP): Remove.
19467         (FINI_SECTION_ASM_OP): Remove.
19468         (ASM_SECTION_START_OP): Remove.
19469         (ASM_OUTPUT_SECTION_START_FILE): Remove.
19470         (TARGET_ASM_NAMED_SECTION): Remove.
19471         (TARGET_ASM_SELECT_SECTION): Remove.
19472         (MAKE_DECL_ONE_ONLY): Remove.
19473         (TYPE_ASM_OP): Remove.
19474         (SIZE_ASM_OP): Remove.
19475         (ASM_WEAKEN_LABEL): Remove.
19476         (TYPE_OPERAND_FMT): Remove.
19477         (ASM_DECLARE_RESULT): Remove.
19478         (ASM_DECLARE_OBJECT_NAME): Remove.
19479         (ASM_FINISH_DECLARE_OBJECT): Remove.
19480         (ELF_ASCII_ESCAPES): Remove.
19481         (ELF_STRING_LIMIT): Remove.
19482         (STRING_ASM_OP): Remove.
19483         (ASM_OUTPUT_EXTERNAL): Remove.
19484         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
19485         * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
19486         before define.
19487         (ASM_DECLARE_FUNCTION_NAME): Ditto.
19488         (ASM_DECLARE_FUNCTION_SIZE): Ditto.
19489         (ASM_GENERATE_INTERNAL_LABEL): Ditto.
19490         (ASM_OUTPUT_SKIP): Ditto.
19491         (READONLY_DATA_SECTION_ASM_OP): Remove.
19492         (USER_LABEL_PREFIX): Remove.
19493         (ASM_OUTPUT_ASCII): Remove.
19494         (ASM_OUTPUT_CASE_LABEL): Remove.
19495         (NO_DOLLAR_IN_LABEL): Undefine.
19497 2012-03-22  Richard Guenther  <rguenther@suse.de>
19499         PR tree-optimization/52459
19500         * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
19501         PHI insertion for calls.
19503 2012-03-21  Steven Bosscher  <steven@gcc.gnu.org>
19505         * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
19506         find_sets_in_insn, canonicalize_insn): Split out from ...
19507         (cse_insn): ... here.
19508         (invalidate_from_clobbers): Take an insn instead of the pattern.
19510 2012-03-21  Oleg Endo  <olegendo@gcc.gnu.org>
19512         PR target/52479
19513         * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
19514         * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
19515         * config/sh/sh.md (sindf2, cosdf2): Remove.
19517 2012-03-21  Kaz Kojima  <kkojima@gcc.gnu.org>
19519         PR target/52642
19520         * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
19521         prologue for unwinder and profiler.
19523 2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
19525         * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
19526         Introduce emul_name to select the right linker emulation for
19527         powerpc64-*-freebsd*.
19528         * configure: Regenerate.
19529         * config.gcc: Add bits to support powerpc64-*-freebsd*.
19530         * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
19531         * config/rs6000/freebsd64.h: New file.
19532         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
19533         POWERPC_FREEBSD.
19534         (rs6000_savres_strategy): Likewise.
19535         (rs6000_savres_routine_name): Likewise.
19536         (rs6000_elf_file_end): Likewise.
19537         * config/rs6000/t-freebsd64: New file.
19538         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
19539         rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
19541         * config/rs6000/freebsd64.h: Remove duplicated entries from last
19542         commit.
19543         * config/rs6000/t-freebsd64: Likewise.
19545 2012-03-21  Georg-Johann Lay  <avr@gjlay.de>
19547         PR rtl-optimization/52543
19548         PR target/52461
19549         * config/avr/avr-protos.h (avr_load_lpm): New prototype.
19550         * config/avr/avr.c (avr_mode_dependent_address_p): New function.
19551         (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
19552         (avr_load_libgcc_p): Restrict to __flash loads.
19553         (avr_out_lpm): Only handle 1-byte loads from __flash.
19554         (avr_load_lpm): New function.
19555         (avr_find_unused_d_reg): Remove.
19556         (avr_out_lpm_no_lpmx): Remove.
19557         (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
19558         * config/avr/avr.md (unspec): Add UNSPEC_LPM.
19559         (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
19560         (load_<mode>, load_<mode>_clobber): New insns.
19561         (mov<mode>): For multi-byte move from non-generic
19562         16-bit address spaces: Expand to load_<mode> resp.
19563         load_<mode>_clobber.
19564         (load<mode>_libgcc): Remove expander.
19565         (split-lpmx): Remove split.
19567 2012-03-21  Richard Earnshaw  <rearnsha@arm.com>
19569         * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
19570         * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
19571         All callers changed.
19572         (Fixed_core_reg): New feature.
19573         (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg.  Allow fmrrd in
19574         disassembly.
19575         * neon-testgen.ml: Handle Fixed_core_reg.
19577 2012-03-21  Andrew Stubbs  <ams@codesourcery.com>
19579         * config/arm/arm.c (thumb2_reorg): Add complete support
19580         for 16-bit instructions.
19581         * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
19583 2012-03-21  Richard Guenther  <rguenther@suse.de>
19585         PR tree-optimizer/52636
19586         * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
19587         to the appropriate type.
19589 2012-03-21  Richard Guenther  <rguenther@suse.de>
19591         * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
19592         dependencies.
19593         * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
19594         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
19595         * passes.c (init_optimization_passes): Remove pass_init_function,
19596         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
19597         * tree-pass.h (pass_init_function): Remove.
19598         (pass_jump): Remove.
19599         (pass_initial_value_sets): Remove.
19600         (pass_unshare_all_rtl): Remove.
19601         * integrate.c (pass_initial_value_sets): Remove.
19602         * emit-rtl.c (pass_unshare_all_rtl): Remove.
19603         * tree.h (init_function_for_compilation): Remove.
19604         * function.c (init_function_for_compilation): Remove.
19605         (pass_init_function): Remove.
19606         * cfgcleanup.c (rest_of_handle_jump): Remove.
19607         (pass_jump): Remove.
19609 2012-03-20  Jason Merrill  <jason@redhat.com>
19611         * tree-streamer-in.c (streamer_alloc_tree): Call
19612         ggc_alloc_zone_cleared_tree_node instead of
19613         ggc_alloc_zone_cleared_tree_node_stat.
19615 2012-03-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
19617         * doc/extend.texi (Template Instantiation): Remove anachronisms.
19619 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
19621         PR target/52607
19622         * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
19623         (ix86_expand_vec_perm_const_1): Call it.
19625         * config/i386/i386.c (vselect_insn): New variable.
19626         (init_vselect_insn): New function.
19627         (expand_vselect, expand_vselect_insn): Add testing_p argument.
19628         Call init_vselect_insn if vselect_insn is NULL.  Adjust
19629         PATTERN (vselect_insn), instead of creating a new insn each time,
19630         only emit a copy of it if not testing and recog has been successful.
19631         (expand_vec_perm_pshufb, expand_vec_perm_1,
19632         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
19633         callers.
19635         PR target/52607
19636         * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
19637         ("enabled" attribute): Handle avx2 and noavx2 isas.
19638         * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
19639         New insns.
19640         (vec_dup<mode>): Add avx2 =x,x alternative.
19641         (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
19642         (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
19643         For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
19644         * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
19645         for V8SFmode.
19646         (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
19647         if possible, handle also V8SFmode.
19649 2012-03-20  Richard Earnshaw  <rearnsha@arm.com>
19651         * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
19652         * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
19653         reg_or_zero_operand predicate.
19654         (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
19656 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
19658         * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
19659         If operand isn't UNSPEC, return 0.
19661 2012-03-20  Richard Guenther  <rguenther@suse.de>
19663         * tree-pass.h (pass_rtl_eh): Remove.
19664         * except.c (gate_handle_eh): Likewise.
19665         (rest_of_handle_eh): Likewise.
19666         (pass_rtl_eh): Likewise.
19667         (finish_eh_generation): Export.
19668         * except.h (finish_eh_generation): Declare.
19669         * passes.c (init_optimization_passes): Remove pass_rtl_eh.
19670         * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
19671         after expanding stack alignment.  Instead of compacting blocks
19672         call cleanup_cfg.
19674 2012-03-20  Richard Guenther  <rguenther@suse.de>
19676         * stor-layout.c (finish_bitfield_representative): Fallback
19677         to conservative maximum size if the padding up to the next
19678         field cannot be computed as a constant.
19679         (finish_bitfield_layout): If we cannot compute the distance
19680         between the start of the bitfield representative and the
19681         bitfield member start a new representative.
19682         * expr.c (get_bit_range): The distance between the start of
19683         the bitfield representative and the bitfield member is zero
19684         if the field offsets are not constants.
19686 2012-03-20  Tristan Gingold  <gingold@adacore.com>
19688         * tree.h (enum size_type_kind): Add stk_ prefix to constants,
19689         convert in lowercase.
19690         (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
19691         (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
19692         * stor-layout.c (sizetype_tab): Adjust.
19693         (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
19694         * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
19695         instead of type_kind_last.
19696         * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
19697         instead of size_int_kind.
19698         * doc/tm.texi.in (Type Layout): Document SIZETYPE.
19699         * doc/tm.texi: Regenerate.
19700         * defaults.h (SIZETYPE): Provide a default value.
19701         * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
19702         (SIZETYPE): Define.
19704 2012-03-20  Oleg Endo  <olegendo@gcc.gnu.org>
19706         * config/sh/sh.md: Use braced string notation where applicable.
19708 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
19710         * config/i386/i386.md (allocate_stack): Simplify.
19712 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
19714         * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
19715         copy_to_mode_reg (Pmode, ...).
19716         (expand_builtin_frame_address): Ditto.
19717         * expr.c (emit_block_move_via_libcall): Ditto.
19718         (set_storage_via_libcall): Ditto.
19720         * config/i386/i386.c (ix86_expand_movmem): Ditto.
19721         (ix86_expand_setmem): Ditto.
19722         (ix86_trampoline_init): DItto.
19723         * config/i386/i386.md (cmpstrnsi): Ditto.
19725 2012-03-19  Sandra Loosemore  <sandra@codesourcery.com>
19727         * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
19728         * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
19729         * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
19730         (SH Options): Likewise.
19732 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
19734         * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
19735         Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
19736         (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
19737         DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
19738         (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
19740         Revert:
19741         2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
19743         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
19744         * config/i386/i386.c (ix86_decompose_address): Use
19745         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
19746         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
19747         thread pointer to a register.
19749         Revert:
19750         2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
19752         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
19753         if Pmode != word_mode.
19754         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
19755         Pmode == SImode for TARGET_X32.
19757         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
19758         (tls_initial_exec_x32): Likewise.
19760 2012-03-19  Oleg Endo  <olegendo@gcc.gnu.org>
19762         PR target/50751
19763         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
19764         DISP_ADDR_OFFSET): New macros.
19765         * config/sh/sh.c (sh_address_cost): Add SH2A special case.
19766         (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
19767         (sh_legitimize_address): Add QImode displacement handling.
19768         (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
19769         vector subregs.
19770         (sh_secondary_reload): Add QImode displacement handling.
19771         * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
19772         * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
19773         * config/sh/sh.md (extendqisi2): Remove constraints from expander.
19774         (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
19775         to register operands only.
19776         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
19777         (extendqihi2): Change insn to expander.
19778         (*extendqihi2_compact_reg): New insn.
19779         (movqi_i, movqi): Replace with ...
19780         (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
19781         *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
19782         Add new peepholes for QImode displacement addressing.
19784 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
19786         PR c++/14710
19787         * doc/invoke.texi: Document -Wuseless-cast.
19789 2012-03-19  Eric Botcazou  <ebotcazou@adacore.com>
19791         * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
19792         * tree.h (handled_component_p): Reorder cases.
19793         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
19794         not initialize unsignedp.
19795         (loc_list_from_tree): Likewise.
19796         (fortran_common): Likewise.
19797         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
19799 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
19801         * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
19802         mode consistently.  Use ix86_gen_add3.  Assert that Pmode == DImode.
19803         (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
19804         (ix86_split_long_move): Ditto.
19805         (legitimize_tls_address): Use ix86_gen_sub3.
19806         (construct_plt_address): Assert that Pmode == DImode.
19808 2012-03-18  Uros Bizjak  <ubizjak@gmail.com>
19810         * config/i386/i386.md: Remove empty predicates and/or constraints.
19811         * config/i386/sync.md: Ditto.
19812         * config/i386/sse.md: Ditto.
19813         * config/i386/mmx.md: Ditto.
19814         * config/i386/pentium.md: Ditto.
19815         * config/i386/athlon.md: Ditto.
19817 2012-03-16  Richard Guenther  <rguenther@suse.de>
19819         PR tree-optimization/52603
19820         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
19821         comment.
19823         Revert
19824         2012-03-14  Richard Guenther  <rguenther@suse.de>
19826         PR tree-optimization/52571
19827         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
19828         flag_section_anchors check ...
19829         (vect_can_force_dr_alignment_p): ... here.
19831 2012-03-16  Martin Jambor  <mjambor@suse.cz>
19833         * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
19834         memory through MEM_REFs by calling extract_bit_field.
19836 2012-03-16  Richard Guenther  <rguenther@suse.de>
19838         * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
19839         and REFERENCE_TYPE interpretations.
19840         (can_native_interpret_type_p): New function.
19841         (fold_ternary_loc): Use native encode/interpret to fold
19842         BIT_FIELD_REFs of constants.
19844 2012-03-16  Richard Guenther  <rguenther@suse.de>
19846         PR middle-end/52584
19847         * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
19848         of vector constants and constructors.
19850 2012-03-16  Richard Guenther  <rguenther@suse.de>
19852         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
19853         VIEW_CONVERT_EXPR to convert constants.
19854         (vect_is_simple_use): Treat all constants as vec_constant_def.
19856 2012-03-16  Richard Guenther  <rguenther@suse.de>
19857             Kai Tietz  <ktietz@redhat.com>
19859         PR middle-end/48814
19860         * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
19861         side-effects completely in the pre-queue and use a temporary
19862         for the result.
19864 2012-03-16  Richard Guenther  <rguenther@suse.de>
19866         * stor-layout.c (finish_bitfield_representative): Fall back
19867         to the conservative maximum size if we cannot compute the
19868         size of the tail padding.
19870 2012-03-16  Tristan Gingold  <gingold@adacore.com>
19872         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
19873         __CRTL_VER and __VMS_VER.
19874         * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
19875         and vms_c_get_vms_ver.
19876         * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
19877         functions.
19878         * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
19879         (VMS_DEFAULT_VMS_VER): Define.
19880         * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
19881         (VMS_DEFAULT_VMS_VER): Define.
19883 2012-03-16  Richard Guenther  <rguenther@suse.de>
19885         * tree-vect-loop.c (get_initial_def_for_induction): Use
19886         build_constructor directly.
19887         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
19888         build_vector_from_val.
19889         * tree.c (build_vector_from_val): Avoid creating a constructor
19890         first when we want a constant vector.
19892 2012-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19894         * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
19896 2012-03-16  Richard Guenther  <rguenther@suse.de>
19898         * tree.h (TREE_VECTOR_CST_ELTS): Remove.
19899         (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
19900         (struct tree_vector): Remove elements member, add variable size
19901         elts array member.
19902         (build_vector_stat): Declare.
19903         (build_vector): Define in terms of build_vector_stat.
19904         * tree.c (build_vector): Rename to ...
19905         (build_vector_stat): ... this.  Take array of trees as parameter.
19906         (build_vector_from_ctor): Adjust.
19907         (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
19908         initializer_zerop): Adjust.
19909         * cfgexpand.c (expand_debug_expr): Likewise.
19910         * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
19911         const_vector_from_tree): Likewise.
19912         * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
19913         native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
19914         fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
19915         * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
19916         (lto_input_ts_vector_tree_pointers): Adjust.
19917         * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
19918         (write_ts_vector_tree_pointers): Adjust.
19919         * varasm.c (const_hash_1, compare_constant, copy_constant,
19920         output_constant): Adjust.
19921         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
19922         * print-tree.c (print_node): Adjust.
19923         * tree-pretty-print.c (dump_generic_node): Adjust.
19924         * tree-vect-generic.c (uniform_vector_p, vector_element,
19925         lower_vec_perm): Adjust.
19926         * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
19927         * tree-vect-slp.c (vect_get_constant_vectors,
19928         vect_transform_slp_perm_load): Adjust.
19929         * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
19930         * expmed.c (make_tree): Adjust.
19931         * config/i386/i386.c (ix86_expand_builtin): Adjust.
19932         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
19933         and implementation.
19934         (sparc_fold_builtin): Adjust.
19936 2012-03-16  Tristan Gingold  <gingold@adacore.com>
19938         * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
19939         * config/vms/vms-stdint.h: New file.
19941 2012-03-16  Tristan Gingold  <gingold@adacore.com>
19943         * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
19944         (ia64-hp-*vms*): Replaced by ...
19945         (*-*-*vms*): ... This new entry.
19947 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
19949         PR target/52568
19950         * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
19951         (ix86_expand_vec_perm_const_1): Use it.
19953         PR target/52568
19954         * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
19955         (avx2_permv4df): Remove.
19956         (avx2_permv4di): Macroize into...
19957         (avx2_perm<mode>): ... this using VI8F_256 iterator.
19958         (avx2_permv4di_1): Macroize into...
19959         (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
19961 2012-03-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
19963         * combine.c (apply_distributive_law): Do not distribute SUBREG.
19965 2012-03-15  Ira Rosen  <irar@il.ibm.com>
19966             Ulrich Weigand  <ulrich.weigand@linaro.org>
19968         * tree-vect-patterns.c (widened_name_p): Rename to ...
19969         (type_conversion_p): ... this.  Add new argument to determine
19970         if it's a promotion or demotion operation.  Check for
19971         CONVERT_EXPR_CODE_P instead of NOP_EXPR.
19972         (vect_recog_dot_prod_pattern): Call type_conversion_p instead
19973         widened_name_p.
19974         (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
19975         vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
19976         Likewise.
19977         (vect_recog_mixed_size_cond_pattern): Likewise and allow
19978         non-constant then and else clauses.
19980 2012-03-15  Ira Rosen  <irar@il.ibm.com>
19981             Ulrich Weigand  <ulrich.weigand@linaro.org>
19983         * tree-vectorizer.h (vect_pattern_recog): Add new argument.
19984         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
19985         vect_pattern_recog.
19986         * tree-vect-patterns.c (widened_name_p): Pass basic block
19987         info to vect_is_simple_use.
19988         (vect_recog_dot_prod_pattern): Fail for basic blocks.
19989         (vect_recog_widen_sum_pattern): Likewise.
19990         (vect_handle_widen_op_by_const): Support basic blocks.
19991         (vect_operation_fits_smaller_type,
19992         vect_recog_over_widening_pattern): Likewise.
19993         (vect_recog_vector_vector_shift_pattern): Support basic blocks.
19994         Update call to vect_is_simple_use.
19995         (vect_recog_mixed_size_cond_pattern): Support basic blocks.
19996         Add printing.
19997         (check_bool_pattern): Add an argument, update call to
19998         vect_is_simple_use and the recursive calls.
19999         (vect_recog_bool_pattern): Update relevant function calls.
20000         Add printing.
20001         (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
20002         (vect_pattern_recog_1): Check for reduction only in loops.
20003         (vect_pattern_recog): Add new argument.  Support basic blocks.
20004         * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
20005         info to vect_is_simple_use_1.
20006         * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
20007         (vect_slp_analyze_bb_1): Call vect_pattern_recog.
20009 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
20010             Andrew Pinski  <apinski@cavium.com>
20012         PR middle-end/52592
20013         * builtins.c (expand_builtin_int_roundingfn_2): If expanding
20014         BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
20015         calls instead of __builtin_ir{int,ound}*.
20017 2012-03-15  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20019         * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
20020         documentation.
20022 2012-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20024         * config.gcc (target_type_format_char): New. Document it. Set it for
20025         arm*-*-* .
20026         * configure.ac (gnu_unique_option): Use target_type_format_char
20027         in test.  Comment rationale.
20028         * configure: Regenerate .
20030 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
20032         PR tree-optimization/52267
20033         * tree-vrp.c (masked_increment): New function.
20034         (register_edge_assert_for_2): Derive ASSERT_EXPRs
20035         from (X & CST1) cmp CST2 tests.
20037 2012-03-15  Richard Guenther  <rguenther@suse.de>
20039         PR middle-end/52580
20040         * tree-data-ref.c (subscript_dependence_tester_1): Check
20041         all dimensions for non-conflicting access functions.
20043 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20045         PR c++/44783
20046         * doc/invoke.texi [C++ Language Options]: Document
20047         -ftemplate-backtrace-limit.
20049 2012-03-15  Tristan Gingold  <gingold@adacore.com>
20051         * c-parser.c (c_parser_parameter_declaration): Handle #pragma
20052         before a parameter.
20054 2012-03-15  Tristan Gingold  <gingold@adacore.com>
20056         * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
20057         use DW_OP_call_frame_cfa.
20059 2012-03-14  H.J. Lu  <hongjiu.lu@intel.com>
20061         PR target/50797
20062         * config/i386/i386-opts.h (pmode): New.
20064         * config/i386/i386.c (ix86_option_override_internal): Properly
20065         check and set ix86_pmode.
20067         * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
20069         * config/i386/i386.opt (maddress-mode=): New.
20071         * doc/invoke.texi: Document -maddress-mode=short|long for x86.
20073 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20075         * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
20076         (dwarf2out_do_cfi_asm): Likewise.
20077         * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
20078         handling.
20079         (add_data_member_location_attribute): Likewise.
20080         (gen_array_type_die): Likewise.
20081         (gen_subprogram_die): Likewise.
20082         (gen_producer_string): Likewise.
20083         * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
20084         Remove MIPS_DEBUGGING_INFO handling.
20085         (sdb_debug_hooks): Likewise.
20086         (sdbout_begin_block): Likewise.
20087         (sdbout_end_block): Likewise.
20088         (sdbout_begin_prologue): Likewise.
20089         (sdbout_start_source_file): Likewise.
20090         (sdbout_end_source_file): Likewise.
20091         (sdbout_init): Likewise.
20092         * system.h (MIPS_DEBUGGING_INFO): Poison.
20094 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20096         * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
20097         (alpha_file_start) [MS_STAMP]: Remove.
20099         * config/alpha/elf.h (TARGET_GAS): Remove.
20100         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
20101         * config/alpha/linux.h (TARGET_DEFAULT): Remove.
20102         * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
20103         * config/alpha/vms.h (TARGET_DEFAULT): Remove.
20104         * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
20105         (alpha*-*-freebsd*): Likewise.
20106         (alpha*-*-netbsd*): Likewise.
20107         (alpha*-*-openbsd*): Likewise.
20108         (alpha*-*-*): Remove target_cpu_default2.
20109         * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
20110         handling.
20111         * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
20112         (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
20113         * config/alpha/alpha.c (print_operand): Always assume
20114         TARGET_AS_SLASH_BEFORE_SUFFIX.
20115         * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
20116         Remove TARGET_AS_CAN_SUBTRACT_LABELS.
20117         ("*builtin_setjmp_receiver_er_1"): Remove.
20118         * config/alpha/alpha.opt (malpha-as): Remove.
20119         (mgas): Ignore.
20120         * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
20121         -malpha-as, -mgas.
20122         Remove DEC Unix reference.
20124         * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
20125         (EXTENDED_COFF): Remove.
20126         * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
20127         (EXTENDED_COFF): Don't undef.
20128         * config/alpha/alpha.c (alpha_file_start): Always assume
20129         OBJECT_FORMAT_ELF.
20130         Don't set targetm.asm_file_start_file_directive.
20131         [!OBJECT_FORMAT_ELF]: Remove.
20132         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
20134         * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
20135         (DBX_DEBUGGING_INFO): Remove.
20136         (MIPS_DEBUGGING_INFO): Remove.
20137         (PREFERRED_DEBUGGING_TYPE): Remove.
20138         (DBX_OUTPUT_SOURCE_LINE): Remove.
20139         (SDB_OUTPUT_SOURCE_LINE): Remove.
20140         (DBX_CONTIN_LENGTH): Remove.
20141         (NO_DBX_FUNCTION_END): Remove.
20142         (ASM_STABS_OP): Remove.
20143         (ASM_STABN_OP): Remove.
20144         (ASM_STABD_OP): Remove.
20145         (SDB_ALLOW_FORWARD_REFERENCES): Remove.
20146         (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
20147         (PUT_SDB_DEF): Remove.
20148         (PUT_SDB_PLAIN_DEF): Remove.
20149         (PUT_SDB_TYPE): Remove.
20150         (sdb_label_count): Remove.
20151         (PUT_SDB_BLOCK_START): Remove.
20152         (PUT_SDB_BLOCK_END): Remove.
20153         (PUT_SDB_FUNCTION_START): Remove.
20154         (PUT_SDB_FUNCTION_END): Remove.
20155         (PUT_SDB_EPILOGUE_END): Remove.
20156         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
20157         (MIPS_DEBUGGING_INFO): Don't undef.
20158         (DBX_DEBUGGING_INFO): Don't undef.
20159         * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
20160         (MIPS_DEBUGGING_INFO): Don't undef.
20161         (DBX_DEBUGGING_INFO): Don't undef.
20162         * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
20163         * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
20164         handling.
20165         (alpha_start_function): Likewise.
20166         (sdb_label_count): Remove.
20167         (alpha_output_filename): Remove DBX_DEBUG handling.
20168         (alpha_file_start): Likewise.
20170 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20172         * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
20173         (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
20174         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
20175         Solaris 8 support.
20176         * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
20177         (ld_tls_support): Remove Solaris 8 references.
20178         (lwp_dir, lwp_spec): Remove support for alternate thread library.
20179         * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
20180         * configure: Regenerate.
20181         * config.in: Regenerate.
20183         * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
20184         * config/i386/sol2.h: Remove Solaris 8 references.
20186         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
20187         (i?86-*-solaris2.9): ... this.
20188         Remove Solaris 8 references.
20189         (Specific, *-*-solaris2*): Document Solaris 8 removal.
20190         Remove Solaris 8 references.
20192 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20194         * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
20195         (mips-sgi-irix6.5*): Remove.
20196         * config.host (mips-sgi-irix*): Remove.
20197         * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
20198         (set_have_as_tls): Remove *-*-irix6*.
20199         (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
20200         * configure: Regenerate.
20202         * config/mips/iris6.h: Remove.
20203         * config/mips/iris6.opt: Remove.
20204         * config/mips/t-irix6: Remove.
20206         * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
20207         (TARGET_IRIX6): Remove.
20208         (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
20209         Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
20210         * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
20211         handling.
20212         (mips_file_start): Likewise.
20213         * config/mips/mips-protos.h (irix_asm_output_align): Remove.
20215         * config/mips/driver-native.c [__sgi__]: Remove.
20216         (host_detect_local_cpu) [__sgi__]: Remove.
20218         * config/mips/gnu-user.h: Remove iris5.h reference.
20220         * config/mips/mips-modes.def: Remove IRIX 6 reference.
20221         * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
20222         * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
20223         Remove.
20225         * gcc.c (main): Move asm_debug initialization ...
20226         (asm_debug): ... here.
20228         * ginclude/stddef.h (__STDDEF_H__): Don't define.
20230         * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
20231         * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
20232         * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
20233         (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
20234         [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
20235         * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
20236         Remove.
20237         * doc/tm.texi: Regenerate.
20239         * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
20240         IRIX 6 reference.
20241         (MIPS Options, -march): Remove IRIX reference.
20242         * doc/install.texi (Binaries, SGI IRIX): Remove.
20243         (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
20244         of section.
20245         * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
20247 2012-03-14  Martin Jambor  <mjambor@suse.cz>
20249         * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
20250         when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
20251         (expand_expr_real_1): Do not handle misalignment if modifier is
20252         EXPAND_WRITE.
20254 2012-03-14  Richard Guenther  <rguenther@suse.de>
20256         PR middle-end/52584
20257         * tree-vect-generic.c (type_for_widest_vector_mode): Take
20258         element type instead of mode, use build_vector_type_for_mode
20259         instead of the langhook, build a vector of proper signedness.
20260         (expand_vector_operations_1): Adjust.
20262 2012-03-14  Richard Guenther  <rguenther@suse.de>
20264         PR middle-end/52582
20265         * gimple-fold.c (canonicalize_constructor_val): Make sure we have
20266         a cgraph node for a FUNCTION_DECL that comes from a constructor.
20267         (gimple_get_virt_method_for_binfo): Likewise.
20269 2012-03-14  Richard Guenther  <rguenther@suse.de>
20271         PR tree-optimization/52571
20272         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
20273         flag_section_anchors check ...
20274         (vect_can_force_dr_alignment_p): ... here.  Do not re-align
20275         DECL_COMMON variables.
20277 2012-03-14  Richard Guenther  <rguenther@suse.de>
20279         * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
20280         * stor-layout.c (start_bitfield_representative): New function.
20281         (finish_bitfield_representative): Likewise.
20282         (finish_bitfield_layout): Likewise.
20283         (finish_record_layout): Call finish_bitfield_layout.
20284         * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
20285         for QUAL_UNION_TYPE fields.
20286         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
20287         Stream DECL_BIT_FIELD_REPRESENTATIVE.
20288         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
20290         PR middle-end/52080
20291         PR middle-end/52097
20292         PR middle-end/48124
20293         * expr.c (get_bit_range): Unconditionally extract bitrange
20294         from DECL_BIT_FIELD_REPRESENTATIVE.
20295         (expand_assignment): Adjust call to get_bit_range.
20297 2012-03-14  Richard Guenther  <rguenther@suse.de>
20299         PR middle-end/52578
20300         * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
20301         the outermost conversion is a sign-change only.
20302         (fold_binary_loc): Disregard widening and sign-changing
20303         conversions when we determine if two variables are equal
20304         for reassociation.
20305         * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
20306         (T1)x if the outermost conversion is a sign-change only.
20308 2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
20310         Revert:
20311         2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
20313         * config/i386/predicates.md (constant_call_address_operand): Declare
20314         as special predicate.  Update all uses.
20316 2012-03-13  Jakub Jelinek  <jakub@redhat.com>
20318         PR c/52577
20319         * c-parser.c (c_parser_postfix_expression)
20320         <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
20322         * config/i386/smmintrin.h: Avoid /* within a comment.
20323         * config/i386/nmmintrin.h: Likewise.
20325 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
20327         * config/i386/i386.md (xbegin): Remove constraint from expander.
20329 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
20331         * config/i386/predicates.md (constant_call_address_operand): Declare
20332         as special predicate.  Update all uses.
20333         * config/i386/i386.md: Remove mode from constant_call_address_operand
20334         predicates.
20335         * config/i386/i386.c (ix86_output_call_insn): Call
20336         constant_call_address_operand with VOIDmode.
20338 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
20340         * config/i386/i386.c (ix86_decompose_address): Handle subregs of
20341         AND zero extended address correctly.
20343 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
20345         * config/i386/predicates.md (tls_symbolic_operand): Declare as
20346         special predicate.
20347         (tls_modbase_operand): Ditto.
20348         * config/i386/i386.md: Remove mode from tls_symbolic_operand and
20349         tls_modbase_operand predicates.
20351 2012-03-13  Martin Jambor  <mjambor@suse.cz>
20353         * expr.c (expand_assignment): Handle misaligned scalar writes to
20354         memory through top-level MEM_REFs by calling store_bit_field.
20356 2012-03-13  Richard Guenther  <rguenther@suse.de>
20358         PR middle-end/52134
20359         * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
20360         if Y is a constant multiple of 1 << CST.
20362 2012-03-13  Georg-Johann Lay  <avr@gjlay.de>
20364         PR target/52488
20365         * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
20366         offset (size) to a value the insns can deal with.
20367         (expand_epilogue): Ditto.
20369 2012-03-13  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
20371         * config/arm/neon.ml (ops): Fixup expected instructions for
20372         unsigned vector compares.
20374 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
20376         * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
20377         addresses only when %reg is not in word mode.
20379 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20381         * config/microblaze/microblaze.md: Fix typo.
20382         * tree-if-conv.c: Likewise.
20383         * tree-vect-patterns.c: Likewise.
20385 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20387         * config.gcc (extra_passes): Remove.
20388         * configure.ac (extra_passes): Don't substitute.
20389         * configure: Regenerate.
20390         * Makefile.in (EXTRA_PASSES): Remove.
20391         (GCC_PASSES): Remove $(EXTRA_PASSES).
20392         (MOSTLYCLEANFILES): Likewise.
20393         (native): Likewise.
20394         (install-common): Likewise.
20396 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
20398         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
20399         * config/i386/i386.c (ix86_decompose_address): Use
20400         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
20401         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
20402         thread pointer to a register.
20404 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
20406         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
20407         on tls_symbolic_operand.
20408         (tls_global_dynamic_64_<mode>): Likewise.
20410 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
20412         PR other/52545
20413         * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
20414         SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
20416 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
20418         PR target/52499
20419         * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
20420         type from reg_class_t to enum reg_class.
20421         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
20423 2012-03-12  Andrew Pinski  <apinski@cavium.com>
20425         * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
20426         (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
20427         (value_replacement): Likewise.
20428         (empty_block_p): Check also if the PHIs for the block are empty.
20430 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
20432         PR target/52148
20433         * config/avr/avr.c (avr_out_movmem): Fix typo in output template
20434         for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
20435         r184615 from 2012-02-28.
20437 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
20439         * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
20440         (ix86_gen_tls_local_dynamic_base_64): Likewise.
20441         (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
20442         and ix86_gen_tls_local_dynamic_base_64.
20443         (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
20444         ix86_gen_tls_local_dynamic_base_64.
20446         * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
20447         (*tls_global_dynamic_64_<mode>): This.
20448         (tls_global_dynamic_64): Renamed to ...
20449         (tls_global_dynamic_64_<mode>): This.
20450         (*tls_local_dynamic_base_64): Renamed to ...
20451         (*tls_local_dynamic_base_64_<mode>): This.
20452         (tls_local_dynamic_base_64): Renamed to ...
20453         (tls_local_dynamic_base_64_<mode>): This.
20455 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
20457         * config/i386/i386.c (ix86_option_override_internal): Properly
20458         set ix86_gen_leave and ix86_gen_monitor.  Check Pmode == DImode,
20459         instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
20460         ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
20461         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
20463         * config/i386/sse.md (sse3_monitor64): Renamed to ...
20464         (sse3_monitor64_<mode>): This.
20466 2012-03-12  Tristan Gingold  <gingold@adacore.com>
20468         * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
20469         (ia64_function_arg_advance): Ditto.
20471 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20473         * config.gcc (mips*-*-openbsd*): Remove.
20474         * config/mips/openbsd.h: Remove.
20475         * config/mips/sdb.h: Remove.
20477         * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
20478         * config/mips/mips.c (sdb_label_count): Remove.
20479         (mips_debugger_offset): Remove #if 0 code.
20480         (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
20481         * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
20483 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20485         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
20486         binutils reference.
20487         (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
20488         Update binutils references.
20489         (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
20490         Update binutils reference.
20491         Update Sun as/GNU ld caveat.
20492         Document binutils largefile requirement for LTO plugin.
20493         Remove reference to alternate libpthread.
20495 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20497         * config.gcc (alpha*-dec-osf5.1*): Remove.
20498         * config.host (alpha*-dec-osf*): Remove.
20499         * configure.ac (*-*-osf*): Remove.
20500         (alpha*-dec-osf*): Remove.
20501         * configure: Regenerate.
20503         * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
20504         config/alpha/va_list.h, config/alpha/x-osf: Remove.
20506         * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
20507         * config/alpha/alpha.c (struct machine_function): Update comment.
20508         (alpha_start_function): Remove Tru64 UNIX as handling for
20509         max_frame_size.
20510         * config/alpha/alpha.md ("exception_receiver"): Remove
20511         TARGET_LD_BUGGY_LDGP.
20512         ("*exception_receiver_2"): Likewise.
20513         * except.c (finish_eh_generation): Remove Tru64 reference.
20514         * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
20515         * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
20516         * target.def (handle_pragma_extern_prefix): Remove.
20518         * Makefile.in (mips-tfile.o-warn): Remove.
20519         (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
20520         (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
20521         * mips-tdump.c, mips-tfile.c: Remove.
20523         * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
20524         extern_prefix.
20525         * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
20526         (Specific, alpha*-dec-osf5.1): Note removal.
20527         * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
20528         Remove.
20529         * doc/tm.texi: Regenerate.
20530         * doc/trouble.texi (Cross-Compiler Problems): Remove.
20532 2012-03-12  Richard Guenther  <rguenther@suse.de>
20534         * config/arm/arm.c (neon_dereference_pointer): Do not call
20535         covert during RTL expansion.
20537 2012-03-12  Tristan Gingold  <gingold@adacore.com>
20539         * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
20540         Options.  Mention -mpointer-size.
20542 2012-03-12  Richard Guenther  <rguenther@suse.de>
20544         * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
20545         build_nonstandard_integer_type.
20547 2012-03-12  Richard Guenther  <rguenther@suse.de>
20549         * tree.c (signed_or_unsigned_type_for): Use
20550         build_nonstandard_integer_type.
20551         (signed_type_for): Adjust documentation.
20552         (unsigned_type_for): Likewise.
20553         * tree-pretty-print.c (dump_generic_node): Use standard names
20554         for non-standard integer types if available.
20556 2012-03-12  Tristan Gingold  <gingold@adacore.com>
20558         * config/vms/vms.opt: Add vms-opts.h header.
20559         (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
20560         target mask.
20561         (-mvms-return-codes): Document.
20562         (-mpointer-size): New option.
20563         (vms_pointer_size): Add enumeration.
20564         * config/vms/vms-opts.h: New file.
20565         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
20566         __INITIAL_POINTER_SIZE.
20567         (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
20568         (C_COMMON_OVERRIDE_OPTIONS): Define.
20569         (DWARF2_ADDR_SIZE): Define.
20570         * config/vms/vms.c (vms_patch_builtins): Adjust condition.
20571         * config/vms/vms-protos.h (vms_c_common_override_options):
20572         New prototype.
20573         * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
20574         if -mno-pointer-size.
20575         (vms_c_common_override_options): New function.
20576         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
20577         * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
20578         (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
20579         and flag_vms_pointer_size.
20580         (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
20581         * config.gcc (*-*-*vms*): Define xm_file.
20582         (alpha*-dec-*vms*): Do not define xm_file.
20583         (alpha64-dec-*vms*): Remove.
20584         (ia64-hp-*vms*): Do not define xm_file.  Simplify tm_file
20585         and tmake_file.
20587 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
20589         PR tree-optimization/51721
20590         * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
20591         if (int) unsvar cmp CST.
20593 2012-03-12  Richard Guenther  <rguenther@suse.de>
20595         * tree-sra.c (create_access_replacement): Only rename the replacement
20596         if we can rewrite it into SSA form.  Properly mark register typed
20597         replacements that we cannot rewrite with TREE_ADDRESSABLE.
20598         * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
20599         for aggregate or BLKmode results.
20601 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
20603         PR tree-optimization/52533
20604         * tree-vrp.c (register_edge_assert_for_2): Use double_int
20605         type for mask, only handle shifts by non-zero in-range
20606         shift count, for LE_EXPR and GT_EXPR if new_val is
20607         maximum, don't add the assertion.
20609 2012-02-12  Kirill Yukhin  <kirill.yukhin@intel.com>
20611         * doc/invoke.texi: Document -mrtm option.
20612         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
20613         (OPTION_MASK_ISA_RTM_UNSET): Ditto.
20614         (ix86_handle_option): Handle OPT_mrtm.
20615         * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
20616         xtestintrin.h.
20617         (x86_64-*-*): Ditto.
20618         * i386-builtin-types.def (INT_FTYPE_VOID): New.
20619         * config/i386/i386-c.c (ix86_target_macros_internal): Define
20620         __RTM__ if needed.
20621         (ix86_target_string): Define -mrtm option.
20622         (PTA_RTM): New.
20623         (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
20624         Handle new option.
20625         (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
20626         (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
20627         IX86_BUILTIN_XTEST.
20628         (bdesc_special_args): Ditto.
20629         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
20630         (ix86_expand_special_args_builtin): Handle new built-in type.
20631         (ix86_expand_builtin): Handle XABORT instruction.
20632         * config/i386/i386.h (TARGET_RTM): New.
20633         * config/i386/i386.md (UNSPECV_XBEGIN): New.
20634         (UNSPECV_XEND): Ditto.
20635         (UNSPECV_XABORT): Ditto.
20636         (UNSPECV_XTEST): Ditto.
20637         (xbegin): Ditto.
20638         (xbegin_1): Ditto.
20639         (xend): Ditto.
20640         (xabort): Ditto
20641         (xtest): Ditto.
20642         (xtest_1): Ditto.
20643         * config/i386/i386.opt (mrtm): New.
20644         * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
20645         * config/i386/rtmintrin.h: New header.
20646         * config/i386/xtestintrin.h: Ditto.
20648 2012-03-12  Tristan Gingold  <gingold@adacore.com>
20650         * ginclude/stddef.h: Adjust previous patch.
20651         Use __VMS__ instead of VMS.
20653 2012-03-12  Uros Bizjak  <ubizjak@gmail.com>
20655         * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
20656         Also convert sequences with CC setting arithmetic instruction.
20658 2012-03-11  Sandra Loosemore  <sandra@codesourcery.com>
20660         * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
20661         from C Language Options to Preprocessor Options.
20662         (C Dialect Options): Move -no-integrated-cpp documentation
20663         from here...
20664         (Preprocessor Options): ...to here.  Rewrite the description
20665         so it makes more sense, and remove discussion of merging front ends.
20667 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
20669         * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
20670         needed for loop.
20671         (ix86_expand_setmem): Likewise.
20673 2012-03-11  Uros Bizjak  <ubizjak@gmail.com>
20675         * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
20676         convert_to_mode.
20678 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
20680         * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
20681         ptr_mode == SImode.  Replace DImode with Pmode or ptr_mode.
20683 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
20685         * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
20687 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
20689         * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
20690         TARGET_64BIT.
20692 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
20693             Uros Bizjak  <ubizjak@gmail.com>
20695         * config/i386/predicates.md (call_insn_operand): Allow
20696         constant_call_address_operand in Pmode only.
20697         (sibcall_insn_operand): Ditto.
20698         * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
20699         (*call_vzeroupper): Ditto.
20700         (*sibcall): Ditto.
20701         (*sibcall_vzeroupper): Ditto.
20702         (*call_value): Ditto.
20703         (*call_value_vzeroupper): Ditto.
20704         (*sibcall_value): Ditto.
20705         (*sibcall_value_vzeroupper): Ditto.
20706         (*indirect_jump): Ditto.
20707         (*tablejump_1): Ditto.
20708         (indirect_jump): Convert memory address to word mode for TARGET_X32.
20709         (tablejump): Ditto.
20710         * config/i386/i386.c (ix86_expand_call): Convert indirect operands
20711         to word mode.
20713 2012-03-11  Oleg Endo  <olegendo@gcc.gnu.org>
20715         PR target/51244
20716         * config/sh/sh.md (movnegt): Expand into respective insns immediately.
20717         Use movrt_negc instead of negc pattern for non-SH2A.
20718         (*movnegt): Remove.
20719         (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
20721 2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
20723         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
20724         if Pmode != word_mode.
20725         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
20726         Pmode == SImode for TARGET_X32.
20728         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
20729         (tls_initial_exec_x32): Likewise.
20731 2012-03-10  Chung-Lin Tang  <cltang@codesourcery.com>
20733         PR rtl-optimization/52528
20734         * combine.c (can_combine_p): Add setting of subst_low_luid
20735         before call to expand_field_assignment().
20737 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
20739         * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
20740         and related program names.
20742 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
20744         * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
20746 2012-03-09  Uros Bizjak  <ubizjak@gmail.com>
20748         PR target/52530
20749         * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
20750         (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
20751         to set code to 'q'.
20752         * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
20753         (*movdi_internal_rex64): Use %E operand modifier for lea.
20754         (*movsi_internal): Ditto.
20755         (*lea_1): Ditto.
20756         (*lea<mode>_2): Ditto.
20757         (*lea_{3,4,5,6}_zext): Ditto.
20758         (*tls_global_dynamic_32_gnu): Ditto.
20759         (*tls_global_dynamic_64): Ditto.
20760         (*tls_dynamic_gnu2_lea_32): Ditto.
20761         (*tls_dynamic_gnu2_lea_64): Ditto.
20762         (pro_epilogue_adjust_stack_<mode>_add): Ditto.
20764 2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
20766         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
20767         redefine to be NULL if the current bit-size is different from the
20768         configured bit-size.
20770         * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
20771         cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
20772         set the default tuning.  Add asserts to make sure the cpu and tune
20773         indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
20774         test whether the index is set, instead of > 0.
20775         (rs6000_file_start): Do not reset the default cpu if the current
20776         bit-size is different from the configured bit-size.
20778 2012-03-09  Tristan Gingold  <gingold@adacore.com>
20780         * config/vms/vms-crtlmap.map: Add comments.
20781         Add entries needed to build Ada RTS.
20783 2012-03-09  Tristan Gingold  <gingold@adacore.com>
20785         * ginclude/stddef.h: Do not define __size_t on VMS.
20787 2012-03-09  Tristan Gingold  <gingold@adacore.com>
20789         * c-tree.h (c_default_pointer_mode): New variable.
20790         * c-decl.c (c_default_pointer_mode): New variable.
20791         (c_build_pointer_type): New function.
20792         (grokdeclarator): Call c_build_pointer_type instead
20793         of build_pointer_type.
20795         * config/vms/vms-c.c: Include c-tree.h
20796         (saved_pointer_mode): New variable.
20797         (handle_pragma_pointer_size): New function.
20798         (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
20799         (vms_c_register_pragma): Register __pointer_size and
20800         __required_pointer_size pragmas.
20802 2012-03-09  Tristan Gingold  <gingold@adacore.com>
20804         * config/vms/vms-c.c (vms_construct_include_filename): New function.
20805         (vms_c_register_includes): Reference it.
20807 2012-03-09  Andrew Pinski  <apinski@cavium.com>
20809         PR middle-end/51988
20810         * tree-ssa-phiopt.c: Include tree-pretty-print.h for
20811         print_generic_expr.
20812         (tree_ssa_phiopt_worker): Go through all the PHIs for
20813         value_replacement instead of just the singleton one.
20814         (value_replacement): Change return type to int.  Return 0 instead of
20815         false.
20816         Allow the middle basic block to contain more than just the defining
20817         statement.
20818         Handle non empty middle basic blocks.
20819         * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
20821 2012-03-09  Jiangning Liu  <jiangning.liu@arm.com>
20823         * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
20824         array reference and component reference.
20825         (analyze_scalar_evolution_for_address_of): New.
20827 2012-03-08  Jie Zhang  <jzhang918@gmail.com>
20829         PR target/49862
20830         * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
20831         (hwloop_pattern_reg): Fix set but not used warning.
20832         (bfin_reorg_loops): Remove unused parameter.
20833         (bfin_reorg): Update use of bfin_reorg_loops.
20835 2012-03-08  H.J. Lu  <hongjiu.lu@intel.com>
20837         * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
20838         with integer parameters in registers.
20839         (gen_push): Push register in word_mode instead of Pmode.
20840         (ix86_emit_save_regs): Likewise.
20841         (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
20842         (gen_pop): Pop register in word_mode instead of Pmode.
20843         (ix86_emit_restore_regs_using_pop): Likewise.
20844         (ix86_expand_prologue): Replace Pmode with word_mode for push
20845         immediate.  Use ix86_gen_pro_epilogue_adjust_stack.  Save and
20846         restore RAX and R10 in word_mode.
20847         (ix86_emit_restore_regs_using_mov): Restore integer registers
20848         in word_mode.
20849         (ix86_expand_split_stack_prologue): Save R10_REG and restore in
20850         word_mode.
20851         (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
20852         (ix86_split_long_move): Likewise.
20854         * config/i386/i386.md (W): New.
20855         (*push<mode>2_prologue): Replace :P with :W.
20856         (*pop<mode>1): Likewise.
20857         (*pop<mode>1_epilogue): Likewise.
20858         (push/pop peephole2): Use word_mode scratch registers.
20860 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
20862         * config/i386/predicates.md (indirect_branch_operand): Simplify.
20864 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
20866         * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
20867         for constants in [-63,63].
20869 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
20871         PR target/52530
20872         Revert:
20873         2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
20875         * config/i386/i386.c (ix86_print_operand_address): Only handle
20876         zero-extended DImode addresses.
20878 2012-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20880         * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
20881         * configure: Regenerate.
20883 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
20885         PR target/52496
20886         * config/avr/avr.c (avr_mem_clobber): New static function.
20887         (avr_expand_delay_cycles): Add memory clobber operand to
20888         delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
20889         * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
20890         (enable_interrupt, disable_interrupt): New expander.
20891         (nopv, sleep, wdr): New expanders.
20892         (delay_cycles_1): Add memory clobber.
20893         (delay_cycles_2): Add memory clobber.
20894         (delay_cycles_3): Add memory clobber.
20895         (delay_cycles_4): Add memory clobber.
20896         (cli_sei): New insn from former "enable_interrupt",
20897         "disable_interrupt" with memory clobber.
20898         (*wdt): New insn from former "wdt" with memory clobber.
20899         (*nopv): Similar, but for "nopv".
20900         (*sleep): Similar, but for "sleep".
20902 2012-03-07  Oleg Endo  <olegendo@gcc.gnu.org>
20903             Kaz Kojima  <kkojima@gcc.gnu.org>
20905         PR target/52503
20906         * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
20907         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
20908         (SUBTARGET_OVERRIDE_OPTIONS): Define.
20910 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
20912         * config/i386/predicates.md (x86_64_zext_general_operand): New.
20913         * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
20914         predicate to x86_64_zext_general_operand.  Accept "Z" constraint.
20916 2012-03-07  Walter Lee  <walt@tilera.com>
20918         * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
20919         REG_CFA_* notes for the stack pointer.
20920         (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
20921         EH_RETURN_STACKADJ_RTX.
20922         * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
20923         generate REG_CFA_* notes for the stack pointer.
20924         (tilepro_expand_epilogue): Restore stack pointer by adjusting it
20925         by EH_RETURN_STACKADJ_RTX.
20927 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
20929         * doc/invoke.texi (AVR Built-in Macros): Correct condition for
20930         when __AVR_3_BYTE_PC__ is defined.
20932 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
20934         * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
20935         (ix86_print_operand): Handle '^'.
20936         * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
20937         using P mode iterator.  Add %^ to asm template to conditionally emit
20938         addr32 prefix.
20939         (*rep_movdi_rex64): Ditto.
20940         (*strsetdi_rex_1): Ditto.
20941         (*rep_stosdi_rex64): Ditto.
20942         (*strmov{si,hi,qi}_1): Add %^ to asm template to
20943         conditionally emit addr32 prefix.
20944         (*rep_mov{si,qi}): Ditto.
20945         (*strset{si,hi,qi}): Ditto.
20946         (*rep_stos{si,qi}): Ditto.
20947         (*cmpstrnqi_nz_1): Ditto.
20948         (*cmpstrnqi_1): Ditto.
20949         (*strlenqi_1): Ditto.
20951 2012-03-07  H.J. Lu  <hongjiu.lu@intel.com>
20953         * config/i386/i386.c (function_value_64): Return pointers in
20954         word_mode instead of Pmode.
20955         (ix86_promote_function_mode): Likewise.
20957 2012-03-07  Richard Guenther  <rguenther@suse.de>
20959         * coverage.c (get_gcov_type): Use type_for_mode.
20960         (get_gcov_unsigned_t): Likewise.
20961         * expr.c (store_constructor): Use type_for_mode.
20962         (try_casesi): Likewise.
20963         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
20964         (add_standard_iv_candidates): Use standard type trees.
20965         * dojump.c (do_jump): Remove dead code.
20967 2012-03-07  Richard Guenther  <rguenther@suse.de>
20969         * c-typeck.c (pointer_diff): Use c_common_type_for_size.
20971 2012-03-07  Richard Guenther  <rguenther@suse.de>
20973         * convert.c (strip_float_extensions): Move ...
20974         * tree.c (strip_float_extensions): ... here.
20976 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
20978         PR target/52484
20979         * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
20981 2012-03-07  Richard Guenther  <rguenther@suse.de>
20983         * omp-low.c (extract_omp_for_data): Use signed_type_for.
20984         (expand_omp_for_generic): Likewise.
20985         (expand_omp_for_static_nochunk): Likewise.
20986         (expand_omp_for_static_chunk): Likewise.
20987         * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
20988         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
20989         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
20990         Use unsigned_type_for.
20991         (vect_create_cond_for_align_checks): Use signed_type_for.
20993 2012-03-07  Andrey Belevantsev  <abel@ispras.ru>
20995         PR rtl-optimization/52203
20996         * sel-sched.c (estimate_insn_cost): New parameter pempty.  Adjust
20997         all callers to pass NULL except ...
20998         (reset_sched_cycles_in_current_ebb): ... here, save the value
20999         in new variable 'empty'.  Increase issue_rate only for
21000         non-empty insns.
21002 2012-03-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
21004         PR target/51417
21005         * Makefile.in: Let install-gcc-ar depend on installdirs,
21006         gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
21007         Don't double canonicalize if cross-compiling.
21009 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
21011         PR target/52506
21012         * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
21013         to: RAMPZ, RAMPY, RAMPX, RAMPD.
21014         (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
21016 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
21018         PR target/52505
21019         * config/avr/avr.c (avr_out_xload): Don't read unintentionally
21020         from RAM.
21021         * config/avr/avr.md (xload_8): Adjust insn length.
21023 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
21025         PR target/52461
21026         * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
21027         if RAMPZ affects reading from RAM.
21029 2012-03-07  Richard Guenther  <rguenther@suse.de>
21031         PR pch/52518
21032         PR pch/38987
21033         * doc/invoke.texi (Precompiled Headers): Remove sentence that
21034         suggests you can include PCHs from inside another header.
21036 2012-03-07  Richard Sandiford  <rdsandiford@googlemail.com>
21038         PR middle-end/52515
21039         * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
21041 2012-03-07  Kai Tietz  <ktietz@redhat.com>
21043         * doc/invoke.texi (fwritable-relocated-rdata): Document
21044         new Cygwin/MinGW target option.
21045         * config/i386/winnt.c (i386_pe_unique_section): Ignore
21046         reloc if flag -fwritable-relocated-rdata is not set.
21047         (i386_pe_section_type_flags): Likewise.
21048         * config/i386/cygming.opt (fwritable-relocated-rdata):
21049         Add new flag variable flag_writable_rel_rdata.
21051 2012-03-07  Richard Guenther  <rguenther@suse.de>
21053         * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
21054         precision against gimple constraints.
21056 2012-03-06  Richard Sandiford  <rdsandiford@googlemail.com>
21058         PR middle-end/52372
21059         * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
21060         variables.
21061         (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
21062         * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
21063         variables.
21064         (init_emit_regs): Move associated initialization to...
21065         (init_emit_once): ...here.
21067 2012-03-06  Richard Henderson  <rth@redhat.com>
21069         * config/m68k/m68k.h (ISA_HAS_TAS): New.
21070         * config/m68k/sync.md (atomic_test_and_set): Use it.
21071         (atomic_test_and_set_1): Likewise.
21073 2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
21075         PR target/50310
21076         * config/rs6000/vector.md (vector_uneq<mode>): Add support for
21077         UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
21078         (vector_ltgt<mode>): Likewise.
21079         (vector_ordered<mode>): Likewise.
21080         (vector_unordered<mode>): Likewise.
21081         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
21083 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
21085         * trans-mem.c: New typedef for tm_region_p.
21086         Define vector types for tm_region_p.
21087         (tm_region_init): Replace region_worklist to a vector called
21088         bb_regions.
21090 2012-03-06  Richard Guenther  <rguenther@suse.de>
21092         * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
21093         MEM_REF with constant pointer operand.
21095 2012-03-06  Richard Guenther  <rguenther@suse.de>
21097         PR middle-end/52493
21098         * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
21100 2012-03-06  Tristan Gingold  <gingold@adacore.com>
21102         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
21103         (external_model_kind): Improve documentation.
21104         (vms_pragma_extern_model): Handle relaxed_redef.
21105         (vms_c_register_pragma): Allow expansion for nomember_alignment.
21107 2012-03-06  Georg-Johann Lay  <avr@gjlay.de>
21109         * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
21110         Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
21111         Some more notes on EIND usage and reorder EIND subsection.
21113 2012-03-06  Tristan Gingold  <gingold@adacore.com>
21115         * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
21116         * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
21118 2012-03-06  Tristan Gingold  <gingold@adacore.com>
21120         * config/vms/t-vmsnative (version): Define.
21121         * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
21123 2012-03-06  Andrey Belevantsev  <abel@ispras.ru>
21125         PR rtl-optimization/52250
21126         * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
21127         to put note list into.  Unconditionally call move_bb_info.
21128         (move_bb_info): Do not assert the blocks being in the same region,
21129         just drop the note list if they are not.
21131 2012-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
21133         PR target/51244
21134         * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
21135         and use unified expansion logic.
21136         * config/sh/sh.md (xorsi3_movrt): Rename to movrt.  Move
21137         closer to the existing movt insn.
21138         (negc): Rename insn to *negc.  Add new expander.
21139         (movnegt): Use xor pattern for T bit negation.  Reserve helper
21140         constant for negc pattern.
21141         (*movnegt): New insn and splitter.
21143 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
21145         * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
21146         PLUS_EXPR.
21148 2012-03-05  Richard Henderson  <rth@redhat.com>
21150         * genemit.c (main): Include "target.h" in insn-emit.c.
21151         * Makefile.in (insn-emit.o): Depend on TARGET_H.
21152         * config/sh/sync.md (atomic_test_and_set): Reference
21153         targetm.atomic_test_and_set_trueval instead of
21154         TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
21156 2012-03-05  Joern Rennecke  <joern.rennecke@embecosm.com>
21158         * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
21159         Make static.
21161 2012-03-05  Steven Bosscher  <steven@gcc.gnu.org>
21163         * langhooks.c (add_builtin_type): New function.
21164         * langhooks.h (add_builtin_type): Export it.
21165         * config/mep/mep.c (mep_init_builtins): Use it.
21166         * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
21168 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
21170         PR debug/51902
21171         * tree.h (BLOCK_SAME_RANGE): Define.
21172         * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
21173         if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
21174         Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
21175         isn't equal to supercontext fragment's fragment chain.
21176         Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
21177         fragment origin.
21178         (blocks_nreverse_all): Likewise.
21179         (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits.  Set
21180         BLOCK_SUPERCONTEXT to supercontext fragment instead of
21181         supercontext fragment's fragment origin.
21182         * dwarf2out.c (add_high_low_attributes): If stmt has the same
21183         range as its parent (or parents thereof etc.), use the parent's
21184         DW_AT_ranges value instead of creating a new .debug_ranges range.
21186 2012-03-05  Richard Henderson  <rth@redhat.com>
21188         PR tree-opt/52242
21189         Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
21190         * omp-low.c (expand_omp_atomic): Assume anything aligned to
21191         BIGGEST_ALIGNMENT is aligned.
21193 2012-03-05  Richard Henderson  <rth@redhat.com>
21195         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
21196         * config/sh/sh.c: ... here.
21198 2012-03-05  Richard Henderson  <rth@redhat.com>
21200         PR target/52481
21201         * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
21202         instead of calling negqi2 directly.
21204 2012-03-05  Aldy Hernandez  <aldyh@redhat.com>
21206         PR middle-end/52463
21207         * trans-mem.c (tm_region_init): Use last_basic_block.
21209 2012-03-05  Oleg Endo  <olegendo@gcc.gnu.org>
21211         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
21212         * config/sh/sync.md (atomic_test_and_set): New expander.
21213         (tasb, atomic_test_and_set_soft): New insns.
21214         * config/sh/sh.opt (menable-tas): New option.
21215         * doc/invoke.texi (SH Options): Document it.
21217 2012-03-05  Richard Guenther  <rguenther@suse.de>
21219         * cfgloop.c (verify_loop_structure): Verify dominators before
21220         using them.
21221         * graphite-clast-to-gimple.c (graphite_verify): Do not verify
21222         dominators from here.
21223         * graphite-scop-detection.c (create_sese_edges): Likewise.
21224         * loop-doloop.c (doloop_optimize_loops): Likewise.
21225         * loop-init.c (loop_optimizer_init): Likewise.
21226         * loop-unroll.c (unroll_and_peel_loops): Likewise.
21227         * loop-unswitch.c (unswitch_loops): Likewise.
21228         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
21229         * tree-parloops.c (parallelize_loops): Likewise.  Verify
21230         only when checking is enabled.
21231         * tree-loop-distribution.c (tree_loop_distribution): Likewise.
21233 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
21235         * genautomata.c (parse_automata_opt): New static function.
21236         (initiate_automaton_gen): Remove all option handling code.  Remove
21237         argc argument.  All callers changed.
21238         (main): Call init_rtx_reader_args_cb with the new function as argument.
21240 2012-03-05  Richard Guenther  <rguenther@suse.de>
21242         * cfgexpand.c (gimple_expand_cfg): Free dominator info.
21243         * tree-if-conv.c (combine_blocks): Free post-dominator info
21244         after breaking it.
21245         * tree-parloops.c (create_parallel_loop): Free and re-compute
21246         dominator info after breaking it.
21248 2012-03-05  Richard Guenther  <rguenther@suse.de>
21250         PR middle-end/52353
21251         * optabs.h (trapv_unoptab_p): New function.
21252         (trapv_binoptab_p): Likewise.
21253         * optabs.c (expand_binop): Use emit_libcall_block_1 with
21254         a proper equiv_may_trap argument.
21255         (expand_unop): Likewise.
21256         (emit_libcall_block_1): Take extra argument whether the
21257         instruction may trap.  Renamed from ...
21258         (emit_libcall_block): ... this.  New wrapper.
21260 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
21262         PR tree-optimization/51721
21263         * tree-vrp.c (register_edge_assert_for_2): If comparing
21264         lhs of right shift by constant with an integer constant,
21265         add ASSERT_EXPRs for the rhs1 of the right shift.
21267         * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
21269 2012-03-05  Richard Guenther  <rguenther@suse.de>
21271         * tree.c (integer_zerop): Handle VECTOR_CSTs.
21272         (integer_onep): Likewise.
21273         (integer_all_onesp): Likewise.
21275 2012-03-05  Georg-Johann Lay  <avr@gjlay.de>
21277         * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
21279 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
21281         * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
21282         instead of TARGET_64BIT.
21284 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
21286         * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
21287         adjust_stack_insn.
21289 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
21291         * config/i386/i386.c (ix86_print_operand_address): Only handle
21292         zero-extended DImode addresses.
21294 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
21296         * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
21297         taken and cputaken as bool.
21299 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
21301         * config/i386/constraints.md (Ya): New internal constraint.
21302         * config/i386/i386.md (zero_extendsidi2): Remove expansion.
21303         (*zero_extendsidi2_rex64): Add x,x alternative.
21304         (*zero_extendsidi2): Ditto.  Add o,0 alternative.
21305         Remove flags reg clobber.  Adjust corresponding splits.
21306         (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
21307         zero_extendqisi2 expanders using SWI12 mode iterator.
21308         (zero_extend<mode>si2_and): Macroize insn from
21309         zero_extendhisi2_and and zero_extendqisi2_and.  Merge corresponding
21310         splitters.
21311         (*zero_extend<mode>si2):  Macroize insn from
21312         *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
21313         (*zero_extend*2_movzbl_and): Remove insn patterns.
21314         (zero_extendqihi2_and): Merge corresponding splitter.
21315         (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
21316         (*zero_extend*2_movzbl_and): Remove insn patterns.
21317         (*anddi_1): Split TYPE_IMOVX instructions.
21318         (*andsi_1): Use Ya for alternative 2.  Split TYPE_IMOVX instructions.
21319         (*andhi_1): Ditto.
21320         (and->zext splitter): Add splitter pattern.
21321         (zero extend with andsi3 splitter): Adjust zero_extend pattern.
21323 2012-03-04  Sandra Loosemore  <sandra@codesourcery.com>
21325         * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
21326         x86-specific text.
21327         (Debugging Options): Likewise.
21328         (Optimize Options): Likewise.
21329         (i386 and x86-64 Options): Discuss -march before -mtune, consistently
21330         with other architectures.  Use official processor names with correct
21331         spelling/capitalization.  Fix formatting and grammar issues.
21332         (i386 and x86-64 Windows Options): Similar cleanup here.
21334 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
21336         * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
21338 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
21340         * config/sh/sh.c (sh_dwarf_register_span): Don't apply
21341         DBX_REGISTER_NUMBER.
21343 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
21345         * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
21346         operand is CONST_INT.  Take COSTS_N_INSNS into account.
21347         (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
21348         of shiftcosts.
21350 2012-03-02  Richard Henderson  <rth@redhat.com>
21352         * optabs.c (expand_atomic_test_and_set): Honor
21353         atomic_test_and_set_trueval even when atomic_test_and_set
21354         optab is not in use.
21356 2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>
21358         PR target/48596
21359         PR target/48806
21360         * config/sh/sh.c (sh_register_move_cost): Increase cost between
21361         GENERAL_REGS and FP_REGS for SImode.
21363 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
21365         PR target/49486
21366         * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
21367         (absdi2): New expander.
21368         (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
21370 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
21372         * config/sh/sync.md (atomic_exchange<mode>): New expander.
21373         (atomic_exchange<mode>_soft): New insn.
21375 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
21377         * config/sh/sync.md: Update copyright notice dates.
21378         (atomic_compare_and_swap<mode>): Use SImode for return value instead
21379         of QImode.
21380         (atomic_compare_and_swap<mode>_soft): Likewise.
21382 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
21384         PR target/31640
21385         * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
21386         * config/sh/sh.c: Update copyright notice dates.
21387         (sh_loop_align): Add logic from LOOP_ALIGN.  Don't disable loop
21388         alignment for TARGET_HARD_SH4.
21389         (sh_option_override): Reduce default function alignment.  Set
21390         loop alignment to 4 bytes when not optimizing for size.
21392 2012-03-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
21394         PR middle-end/50335
21395         * doc/invoke.texi (floop-flatten): Remove.
21396         * toplev.c (process_options): Remove references to flag_loop_flatten.
21397         * tree-ssa-loop.c (gate_graphite_transform): Same.
21398         * common.opt (floop-flatten): Obsolete.
21399         * graphite-poly.c (apply_poly_transforms): Remove reference to
21400         flag_loop_flatten.
21401         * Makefile.in (graphite-flattening.o): Remove.
21402         * graphite-flattening.c: Remove.
21404 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
21406         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
21407         having mode compatible with the mode of previous compare.  Substitute
21408         compare mode of previous compare with the mode, compatible
21409         with eliminated and previous compare.
21411 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
21413         * config/rs6000/dfp.md (floatdidd2): New define_insn.
21415 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
21417         * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
21418         compatible with CCGOCmode and CCGCmode.
21420 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
21422         * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
21424 2012-03-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
21426         * config/arm/arm.c (arm_sat_operator_match): New function.
21427         * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
21428         * config/arm/arm.md ("insn" attribute): Add "sat" value.
21429         ("SAT", "SATrev"): New code iterators.
21430         ("SATlo", "SAThi"): New code iterator attributes.
21431         ("*satsi_<SAT:code>"): New pattern.
21432         ("*satsi_<SAT:code>_shift"): Likewise.
21433         * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
21434         and "shift" attributes.
21435         ("arm_usatsihi"): Add "insn" attribute.
21436         * config/arm/predicates.md (sat_shift_operator): Allow multiplication
21437         by powers of two.  Do not allow shift by 32.
21439 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
21441         PR target/46716
21442         * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
21443         to pass the argument in the register of "natural" mode.
21445 2012-03-02  Richard Guenther  <rguenther@suse.de>
21447         PR tree-optimization/52406
21448         * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
21449         (struct indices): Add unconstrained_base member.
21450         (struct dr_alias): Remove unused vops member.
21451         (DR_UNCONSTRAINED_BASE): New define.
21452         * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
21453         add indices to allow their disambiguation.  Make DR_BASE_OBJECT
21454         be an artificial access that covers the whole indexed object,
21455         or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
21456         plain decl base-objects to their MEM_REF variant.
21457         (dr_may_alias_p): When the base-object of either data reference
21458         has unknown size use only points-to information.
21459         (compute_affine_dependence): Make dumps easier to read and
21460         more verbose.
21461         * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
21462         DR_REF when looking for packed references.
21463         (vect_supportable_dr_alignment): Likewise.
21465 2012-03-02  Greta Yorsh  <Greta.Yorsh@arm.com>
21467         * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
21468         Improve conditions for peepholes of loads followed by commutative
21469         operators.
21470         * config/arm/ldmstm.md: Regenerated.
21472 2012-03-02  Richard Guenther  <rguenther@suse.de>
21474         * BASE-VER: Set to 4.8.0.
21476 2012-03-01  Richard Earnshaw  <rearnsha@arm.com>
21478         * config.gcc (obsolete): Add all ARM targets using the FPA.
21479         (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
21480         * doc/install.texi: Avoid references to obsolete ARM ports.
21482 2012-03-01  Joern Rennecke  <joern.rennecke@embecosm.com>
21484         * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
21486 2012-03-01  Jeremy Bennett  <jeremy.bennett@embecosm.com>
21487             Joern Rennecke  <joern.rennecke@embecosm.com>
21489         * doc/extend.texi: Expand and update information on interrupt
21490         attribute for Epiphany.
21492 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
21494         * config/sh/sh-protos.h: Update copyright notice dates.
21495         * config/sh/sh.h: Likewise.
21496         * config/sh/sh.md: Likewise.
21497         * config/sh/constraints.md: Likewise.
21498         * config/sh/predicates.md: Likewise.
21500 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
21502         * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
21503         * config/sh/sh.c (tertiary_reload_operand): Likewise.
21505 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
21507         * config/sh/constraints.md: Fix comment typo.
21509 2012-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21511         PR target/52408
21512         * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
21513         unsigned HOST_WIDE_INT.
21514         (zvdep_imm64): Likewise.
21515         (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
21516         (vdepi_and): Likewise.
21517         Likewise for unamed 64-bit patterns.
21518         * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
21520 2012-03-01  Alexandre Oliva  <aoliva@redhat.com>
21522         PR debug/52001
21523         PR rtl-optimization/52417
21524         * cselib.c (cselib_any_perm_equivs): New variable.
21525         (cselib_reset_table): Check that it's not set when not
21526         preserving constants.
21527         (cselib_add_permanent_equiv): Set it.
21528         (cselib_have_permanent_equivalences): New.
21529         (cselib_init, cselib_finish): Reset it.
21530         * cselib.h (cselib_have_permanent_equivalences): Declare.
21531         * alias.c (get_addr): Restore earlier behavior when there
21532         aren't permanent equivalences.
21534 2012-03-01  Steven Bosscher  <steven@gcc.gnu.org>
21536         * config/mn10300/mn10300-modes.def: Fix copyright notice.
21537         * config/v850/v850-modes.def: Fix copyright notice.
21539 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
21541         * doc/extend.texi (AVR Built-in Functions): Document
21542         __builtin_avr_flash_segment.
21544         * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
21545         * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
21546         (*split.flash_segment): New insn-and-split.
21547         * config/avr/avr.c (avr_init_builtins): Add local variables:
21548         const_memx_void_node, const_memx_ptr_type_node,
21549         char_ftype_const_memx_ptr.
21551 2012-03-01  Jakub Jelinek  <jakub@redhat.com>
21553         PR tree-optimization/52445
21554         * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
21555         add ssa_name_ver, offset and size fields and change store field
21556         to bool.
21557         (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
21558         (add_or_mark_expr): Likewise.  Only consider previous stores
21559         with the same size and offset.
21560         (nt_init_block): Only look at gimple_assign_single_p stmts,
21561         doesn't look at rhs2.
21563 2012-03-01  Richard Guenther  <rguenther@suse.de>
21565         PR middle-end/52443
21566         * tree-cfg.c (verify_gimple_assign_unary): Allow any
21567         conversions from integral types to pointer types.
21569 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
21571         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
21572         defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
21573         unintentionally removed in r184616.
21575 2012-03-01  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
21577         * doc/invoke.texi: Document AMD bdver2 and remove mentioning
21578         3DNow from bdver1.
21580 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
21581             Uros Bizjak  <ubizjak@gmail.com>
21583         PR target/52437
21584         * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
21585         alternatives, add "e" constraint to the new last alternative
21586         and ! to last 3 alternatives.
21588 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
21590         * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
21591         DW_AT_artificial attributes at the end of the processing.
21592         (gen_array_type_die): Likewise.
21593         (gen_enumeration_type_die): Likewise.
21594         (gen_struct_or_union_type_die): Likewise.
21595         (add_gnat_descriptive_type_attribute): Do not suppress debug info for
21596         the parent type.
21598 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
21600         PR middle-end/52419
21601         * expr.c (expand_assignment): If doing misaligned store that doesn't
21602         cover all mode bits, perform a RMW cycle.
21604         PR tree-optimization/52429
21605         * tree-parloops.c (separate_decls_in_region_debug): Return early
21606         if var is LABEL_DECL.
21608 2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21610         PR tree-optimization/52424
21611         * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
21612         calling dom_thread_across_edge.
21614 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
21616         * config/avr/avr.c: Move definition of TARGET macros to end of file.
21618 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
21620         * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
21621         * config/avr/avr.c (avr_output_bld): Remove unused function.
21622         (avr_out_sbxx_branch): Use "%T" to print bit position.
21624 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
21626         * config/avr/avr.md: Untabify.
21628 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
21630         * config/avr/avr.md (eqne): New code iterator.
21631         (*dec-and-branchsi): Use it in text peephole's condition.
21632         (*dec-and-branchhi): Ditto.
21633         (*dec-and-branchqi): Ditto.
21635 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
21637         PR target/49939
21638         * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
21639         the device does not have the skip-bug.
21641 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
21643         * doc/invoke.texi (-msoft-atomic): Add more detailed description.
21644         (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
21645         -mpretend-cmove): New.
21647 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
21649         PR bootstrap/52397
21650         * df.h (struct df_d): Adjust comment that hard_regs_live_count
21651         doesn't count DEBUG_INSN refs.
21652         * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
21653         for DEBUG_INSN refs.
21655 2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21657         Partially revert:
21659         2012-02-20  Richard Guenther  <rguenther@suse.de>
21660         PR tree-optimization/52298
21661         * tree-vect-stmts.c (vectorizable_load): Properly use
21662         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
21664 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
21666         PR middle-end/51752
21667         * gimple.h (gimple_in_transaction): New.
21668         (gimple_set_in_transaction): New.
21669         (struct gimple_statement_base): Add in_transaction field.
21670         * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
21671         transaction loads.
21672         (tree_ssa_lim_initialize): Compute transaction bits.
21673         * tree.h (compute_transaction_bits): Protoize.
21674         * trans-mem.c (tm_region_init): Use the heap to store BB
21675         auxilliary data.
21676         (compute_transaction_bits): New.
21678 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21680         * gcc.c (display_help): Document --help=common and sort entries
21681         alphabetically.
21683 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21685         * doc/install.texi: Document check-$LANG specific shortcuts
21687 2012-02-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
21689         PR target/51534
21690         * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
21691         and vcgtu.
21692         * config/arm/arm_neon.h: Regenerate.
21693         * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
21694         (neon_vcgeu): New insn.
21695         (neon_vcgtu): Likewise.
21696         * config/arm/neon.ml (s_8_32, u_8_32): New lists.
21697         (ops): Unsigned comparison intrinsics call a different builtin.
21699 2012-02-28  Richard Guenther  <rguenther@suse.de>
21701         PR target/52407
21702         * config/i386/i386.c (ix86_expand_vector_set): Fix element
21703         ordering for the VEC_CONCAT for two element vectors for
21704         V2SFmode, V2SImode and V2DImode.
21706 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
21708         PR target/49448
21709         * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
21710         detecting big-endian triplets.
21712 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
21714         * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
21715         mode if there is no type information available.
21717 2012-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
21719         PR tree-optimization/53207
21720         * doc/invoke.texi: Document as experimental and relying on graphite.
21722 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
21724         * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
21725         of initializer to changes from r184614.
21727 2012-02-28  Richard Guenther  <rguenther@suse.de>
21729         PR tree-optimization/52395
21730         * tree-sra.c (build_ref_for_offset): Also look at the base
21731         TYPE_ALIGN when figuring out the alignment of the replacement.
21733 2012-02-28  Richard Guenther  <rguenther@suse.de>
21735         PR tree-optimization/52402
21736         * ipa-prop.c (ipa_modify_call_arguments): Properly use
21737         mis-aligned types when creating the accesses at the call site.
21739 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
21741         * config/avr/builtins.def: New file.
21742         * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
21743         * config/avr/avr.c (enum avr_builtin_id): Use it.
21744         (avr_init_builtins): Use it. And use avr_bdesc.
21745         (bdesc_1arg): Remove.
21746         (bdesc_2arg): Remove.
21747         (bdesc_3arg): Remove.
21748         (struct avr_builtin_description): Add field n_args.
21749         (avr_bdesc): New static variable using builtins.def.
21750         (avr_expand_builtin): Use it.
21751         Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
21752         (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
21753         Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
21755 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
21757         PR target/52148
21758         * config/avr/avr.md (movmem_<mode>): Replace match_operand that
21759         match only one single hard register with respective hard reg rtx.
21760         (movmemx_<mode>): Ditto.
21761         * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
21762         insn anatomy of movmem[x]_<mode>.
21763         (avr_out_movmem): Same for printing assembler and operand usage.
21765 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
21767         PR target/49868
21768         PR target/52261
21769         * doc/extend.texi (AVR Named Address Spaces): No more try to fix
21770         address spaces located outside of device flash.
21772         * config/avr/avr.h (base_arch_s): Remove field n_segments.
21773         (mcu_type_s): Add field n_flash.
21774         * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
21775         Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
21776         (AVR_MCU): Add N_FLASH argument.
21777         * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
21778         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
21779         macro __FLASH<n> if that address space makes sense for the device.
21780         * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
21781         outside of target flash.
21782         (avr_asm_named_section): Ditto.
21783         (avr_asm_select_section): Ditto.
21784         (avr_addr_space_convert): Ditto.
21785         (avr_emit_movmemhi): Ditto.
21786         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
21787         address space is outside of device flash.
21788         (avr_insert_attributes): Ditto.
21789         (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
21790         avr_current_arch->n_segments.
21792 2012-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21794         PR target/52352
21795         * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
21796         (*movabs<mode>_2): Likewise.
21798 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
21800         PR target/52375
21801         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
21802         s_register_operand in the test instead of REG_P.  Don't call
21803         gen_reg_rtx if it won't be used.
21805         PR tree-optimization/52376
21806         * ipa-split.c (split_function): Ignore CLOBBER stmts.
21808 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
21810         * ifcvt.c (noce_get_condition): Check condition variable is not
21811         small_register_classes_for_mode_p before accepting.
21813 2012-02-27  Uros Bizjak  <ubizjak@gmail.com>
21815         * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
21817 2012-02-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
21819         Revert:
21820         2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
21821         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
21822         tuning parameters.
21823         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
21825 2012-02-27  Oleg Endo  <olegendo@gcc.gnu.org>
21827         * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
21829 2012-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
21831         * config/sh/predicates.md: Remove blank lines.
21832         * config/sh/sh.c: Fix typos in comments.
21833         * config/sh/constraints.md: Likewise.
21834         * config/sh/sh.md: Remove blank lines.
21835         Fix typos in comments.  Use ;; as comment characters.
21837 2012-02-26  Walter Lee  <walt@tilera.com>
21839         * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
21840         (replace_mov_pcrel_step2): Ditto.
21842 2012-02-25  Alexandre Oliva  <aoliva@redhat.com>
21844         PR debug/52001
21845         * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
21846         (get_addr): Walk canonical value's locs.  Avoid returning VALUEs
21847         and locs that reference values newer than the non-canonical value
21848         at hand.  Return the canonical value as a worst case.
21849         (memrefs_conflict_p): Walk canonical value's locs.
21851         PR debug/52001
21852         * cselib.c (preserve_only_constants): Rename to...
21853         (preserve_constants_and_equivs): ... this.  Split out...
21854         (invariant_or_equiv_p): ... this.  Preserve plus expressions
21855         of other preserved expressions too.
21856         (cselib_reset_table): Adjust.
21857         * var-tracking.c (reverse_op): Use canonical value to build
21858         reverse operation.
21860 2012-02-23  Kai Tietz  <ktietz@redhat.com>
21862         * config/i386/i386.c (ix86_delegitimize_address): Handle
21863         UNSPEC_PCREL plus displacement.
21865 2012-02-24  Georg-Johann Lay  <avr@gjlay.de>
21867         PR target/52261
21868         * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
21869         to test for unusedness in st X addressing.
21871 2012-02-24  Richard Guenther  <rguenther@suse.de>
21873         PR middle-end/52361
21874         * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
21875         (is_gimple_reg_type): Move inline ...
21876         * gimple.h (is_gimple_reg_type): ... here.
21878 2012-02-24  Richard Guenther  <rguenther@suse.de>
21880         PR middle-end/52361
21881         * passes.c (execute_function_todo): When verifying SSA form
21882         verify gimple form first.
21883         * tree-ssa.c (verify_ssa): Do not verify gimple form here.
21885 2012-02-24  Richard Guenther  <rguenther@suse.de>
21887         PR middle-end/52355
21888         * fold-const.c (fold_addr_of_array_ref_difference): New function.
21889         (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
21891 2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21893         * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
21895 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21897         * tree-phinodes.c (make_phi_node): Mark static.
21898         * tree-flow.h (make_phi_node): Remove extern decl.
21899         * doc/gimple.texi (make_phi_node): Remove documentation.
21901 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21903         * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
21904         * tree-ssa-sccvn.c (print_scc): Ditto.
21906 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21908         * doc/passes.texi (Full redundancy elimination): Fix typo.
21910 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21912         * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
21914 2012-02-23  Eric Botcazou  <ebotcazou@adacore.com>
21916         PR bootstrap/52287
21917         * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
21919 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
21921         PR c/52290
21922         * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
21924 2012-02-23  Georg-Johann Lay  <avr@gjlay.de>
21926         * config/avr/avr.md (code_stdname): Add ior, xor.
21927         (xior): New code iterator.
21928         (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
21929         (*<code_stdname><mode>qi.byte1-3): Ditto.
21931 2012-02-23  Jakub Jelinek  <jakub@redhat.com>
21933         PR tree-optimization/52019
21934         * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
21935         CLOBBER stmts.
21937 2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21939         * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
21940         HAVE_INITFINI_ARRAY to work around namespace pollution in
21941         certain versions of newlib system headers.
21942         * config.in: Regenerate.
21943         * configure: Regenerate.
21944         * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
21945         instead of HAVE_INITFINI_ARRAY.
21947 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
21949         PR target/52330
21950         * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
21951         is not offsettable memory reference.
21953 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
21955         PR target/18145
21956         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
21957         setting avr_need_clear_bss_p for __gnu_lto* symbols.
21959 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
21961         * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
21962         * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
21964 2012-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21966         * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
21967         library on Solaris 8 even without TLS support.
21968         * configure: Regenerate.
21970 2012-02-22  Richard Guenther  <rguenther@suse.de>
21972         PR middle-end/52329
21973         * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
21974         for GIMPLE_DEBUG stmts.
21976 2012-02-22  Martin Jambor  <mjambor@suse.cz>
21978         PR middle-end/51782
21979         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
21980         according to the base object.
21982 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
21984         PR rtl-optimization/50063
21985         * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
21986         and 2 (8-bit SP) in operand 2.
21987         * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
21988         setup to use movhi_sp_r instead of vanilla move to write SP.
21989         Adjust REG_CFA notes to superseed unspec.
21990         (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
21991         of vanilla move.
21992         As function body might contain CLI or SEI: Use irq_state 0 (IRQ
21993         known to be off) only with TARGET_NO_INTERRUPTS. Never use
21994         irq_state 1 (IRQ known to be on) here.
21996 2012-02-21  Bernd Schmidt  <bernds@codesourcery.com>
21998         * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
21999         WORDS_BIG_ENDIAN.
22000         * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
22001         assign_hard_reg): Likewise.
22003 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
22005         * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
22007 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
22009         * config/avr/avr.md
22010         (*dec-and-branchhi!=-1.d.clobber): New text peephole.
22011         (*dec-and-branchhi!=-1.l.clobber): New text peephole.
22013 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
22015         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
22016         prototype from here to...
22017         * config/avr/avr.h: ...here.
22019 2012-02-21  Richard Earnshaw  <rearnsha@arm.com>
22021         PR target/52294
22022         * thumb2.md (thumb2_shiftsi3_short): Split register and
22023         immediate shifts.  For register shifts tie operands 0 and 1.
22024         (peephole2 for above): Check that register-controlled shifts
22025         have suitably tied operands.
22027 2012-02-21  Quentin Neill  <quentin.neill@amd.com>
22029         PR target/52137
22030         * config/i386/bdver1.md (bdver1_call, bdver1_push,
22031         bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
22032         bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
22033         bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
22034         bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
22035         bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
22036         bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
22037         bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
22038         bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
22039         bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
22040         bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
22041         bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
22042         bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
22043         bdver1_ssevector_avx256_unaligned_load,
22044         bdver1_ssevector_sse128_unaligned_load,
22045         bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
22046         bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
22047         bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
22048         bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
22049         bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
22050         bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
22051         bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
22052         bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
22053         bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
22054         bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
22055         bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
22056         bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
22057         bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
22058         bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
22059         bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
22060         bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
22061         bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
22062         bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
22063         bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
22064         bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
22065         bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
22066         bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
22067         bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
22068         bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
22069         bdver1_ssediv_double_load, bdver1_ssediv_double,
22070         bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
22071         Add "bdver2" attribute.
22073 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22075         * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
22076         default if possible and not specified otherwise.
22078 2012-02-21  Richard Guenther  <rguenther@suse.de>
22080         PR middle-end/52314
22081         * gimplify.c (create_tmp_from_val): Use the main variant type
22082         for the type of the temporary we create.
22084 2012-02-21  Richard Guenther  <rguenther@suse.de>
22086         PR tree-optimization/52324
22087         * gimplify.c (gimplify_expr): When re-gimplifying expressions
22088         do not gimplify a MEM_REF address operand if it is already
22089         in suitable form.
22091 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22093         * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
22094         TARGET_HARD_FLOAT with TARGET_HARD_DFP.
22096 2012-02-21  Richard Guenther  <rguenther@suse.de>
22098         * tree-vect-stmts.c (vectorizable_load): Use pre-computed
22099         nested_in_vect_loop.
22101 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
22103         PR tree-optimization/52318
22104         * gimple-fold.c (gimplify_and_update_call_from_tree): Add
22105         vdef also to non-pure/const call stmts in the sequence.
22107 2012-02-21  Tristan Gingold  <gingold@adacore.com>
22109         * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
22111 2012-02-20  David S. Miller  <davem@davemloft.net>
22113         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
22114         don't use the "rd %pc" instruction on v9 for PIC register loads.
22116 2012-02-20  Aldy Hernandez  <aldyh@redhat.com>
22118         PR middle-end/52141
22119         * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
22120         in a transaction safe function.
22122 2012-02-20  Kai Tietz  <ktietz@redhat.com>
22124         PR target/52238
22125         * stor-layout.c (place_field): Handle desired_align for
22126         ms-bitfields, too.
22128 2012-02-20  Richard Guenther  <rguenther@suse.de>
22130         PR tree-optimization/52298
22131         * tree-vect-stmts.c (vectorizable_store): Properly use
22132         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
22133         outer loops.
22134         (vectorizable_load): Likewise.
22135         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
22136         Access DR_STEP after ensuring it is not NULL.
22138 2012-02-20  Jakub Jelinek  <jakub@redhat.com>
22140         PR tree-optimization/52286
22141         * fold-const.c (fold_binary_loc): For (X & C1) | C2
22142         optimization use double_int_to_tree instead of build_int_cst_wide,
22143         rewrite to use double_int vars.
22145 2012-02-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22147         PR target/50166
22148         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
22149         Define _start.
22150         Remove -e 0 from $gcc_cv_ld invocation.
22151         Only use __GLIBC_PREREQ if defined.
22152         Enable on Solaris since Solaris 8 patch.
22153         (gcc_SUN_LD_VERSION): New macro.
22154         * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
22155         gcc_SUN_LD_VERSION for version number format.
22156         * configure: Regenerate.
22157         * varasm.c (get_elf_initfini_array_priority_section): Set
22158         SECTION_NOTYPE for non-default priority.
22159         Use get_section instead of get_unnamed_section to emit
22160         .init_array/.fini_array with default priority.
22162 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
22164         * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
22165         (mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
22166         (mips_start_unique_function, mips_output_mips16_rdhwr)
22167         (mips_code_end): New functions.
22168         (TARGET_ASM_CODE_END): Define.
22170 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
22172         * config/mips/mips.c (mips16_build_call_stub): Add CFI information
22173         to stubs with non-sibling calls.
22175 2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>
22177         * doc/invoke.texi (-fira-* options): Copy-edit.
22178         (ira-* parameters): Copy-edit.
22180 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
22182         * doc/invoke.texi: Minor copy-edits to bring into conformance with
22183         GCC coding conventions.
22185 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
22187         * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
22188         when used as adjectives.
22190 2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>
22192         * doc/invoke.texi: Clean up "that"/"which" confusion.
22194 2012-02-17  Steven Bosscher  <steven@gcc.gnu.org>
22196         * system.h: Poison SMALL_REGISTER_CLASSES
22197         * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
22198         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
22200 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
22202         PR tree-optimization/52285
22203         * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
22204         when deciding if a call is a tail call or tail recursion.
22206 2012-02-16  Kai Tietz  <ktietz@redhat.com>
22208         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
22209         interger-constant displacement for UNSPEC_PCREL.
22211 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
22213         PR rtl-optimization/52208
22214         * ira-costs.c (scan_one_insn): Don't decrease mem_cost
22215         for MEMs with REG_EQUIV, if the MEM isn't general_operand.
22217         PR tree-optimization/52255
22218         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
22219         loop->header has virtual PHI, but exit_e->dest doesn't, add
22220         virtual PHI to exit_e->dest and adjust all uses after the loop.
22222         PR debug/52260
22223         * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
22224         children with clone_tree_hash, not after it.
22226 2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
22228         * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
22229         extended identifiers.
22231 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
22233         PR middle-end/51929
22234         * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
22235         a same_body_alias, also test whether e->callee isn't a former
22236         or current clone of the decl this is a same body alias of.
22238         PR translation/52264
22239         * cgraphunit.c (verify_cgraph_node): Fix a typo.
22241 2012-02-15  Sandra Loosemore  <sandra@codesourcery.com>
22243         * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
22245 2012-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
22247         PR target/52199
22248         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
22249         force_reg instead of copy_to_reg for better optimization.  Force
22250         non-register or memory operands into a register.
22252 2012-02-15  Andrew MacLeod  <amacleod@redhat.com>
22254         * extend.texi: Reserve upper bits of memory model for future use.
22256 2012-01-15  Georg-Johann Lay  <avr@gjlay.de>
22257             Anatoly Sokolov <aesok@post.ru>
22258             Eric Weddington <eric.weddington@atmel.com>
22260         PR target/52261
22261         * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
22262         avrxmega4, avrxmega5, avrxmega6, avrxmega7.
22263         Rewrite initializers for .macro.
22264         * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
22265         avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
22266         atxmega32d4, atxmega32x1.
22267         avrxmega4: atxmega64a3, atxmega64d3.
22268         avrxmega5: atxmega64a1, atxmega64a1u.
22269         avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
22270         atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
22271         avrxmega7: atxmega128a1, atxmega128a1u.
22272         * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
22273         ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
22274         (struct base_arch_s): Rename reserved to xmega_p.
22275         Rename reserved2 to have_rampd.
22276         (AVR_XMEGA): New define.
22277         (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
22278         (AVR_HAVE_RAMPZ): Change definition to fit xmega.
22279         * config/avr/predicates.md (io_address_operand): Take into
22280         account SFR offset.
22281         (low_io_address_operand): Ditto.
22282         (high_io_address_operand): Ditto.
22283         * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
22284         (enabled, movhi_sp_r): Use them.
22285         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
22286         cpp_define_formatted to built-in define __AVR_ARCH__.
22287         (__AVR_XMEGA__): New built-in define.
22288         (__AVR_HAVE_RAMPD__): New built-in define.
22289         (__AVR_HAVE_RAMPX__): New built-in define.
22290         (__AVR_HAVE_RAMPY__): New built-in define.
22291         (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
22293         * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
22294         (avr_option_override): Initialize them.
22295         (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
22296         (avr_init_expanders): Initialize them. No more block several calls.
22297         (emit_push_sfr): New static function.
22298         (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
22299         Handle AVR_XMEGA.
22300         (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
22301         (avr_print_operand): Print addreeses as symbols for
22302         RAMPX, RAMPY, RAMPD, CCP.
22303         (output_movhi): Handle AVR_XMEGA when writing to SP.
22304         (avr_out_movhi_mr_r_xmega): New static function.
22305         (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
22306         (avr_file_start): Print symbol defines for __RAMPX__,  __RAMPY__,
22307         __RAMPD__,  __CCP__ as needed.
22309         * config/avr/multilib.h: Regenerate.
22310         * config/avr/t-multilib: Regenerate.
22311         * config/avr/avr-tables.opt: Regenerate.
22313 2012-02-15  Tobias Grosser <grosser@fim.uni-passau.de>
22315         PR tree-optimization/50561
22316         * graphite-flattening.c (lst_project_loop): Do not
22317         remove old scattering dimensions after flattening.
22318         (lst_do_flatten): Likewise.
22320 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
22322         * doc/extend.texi (AVR Built-in Functions): Remove doc for
22323         __builtin_avr_map8, __builtin_avr_map16.
22324         Document __builtin_avr_insert_bits.
22326         * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
22327         (insert_bits): New insn.
22328         (adjust_len.map_bits): Rename to insert_bits.
22329         (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
22330         * avr-protos.h (avr_out_map_bits): Remove.
22331         (avr_out_insert_bits, avr_has_nibble_0xf): New.
22332         * config/avr/constraints.md (Cxf,C0f): New.
22333         * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
22334         defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
22335         New built-in define __BUILTIN_AVR_INSERT_BITS.
22336         * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
22337         (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
22338         (avr_move_bits): Rewrite.
22339         (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
22340         functions.
22341         (avr_map_op_t): New typedef.
22342         (avr_map_op): New static variable.
22343         (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
22344         (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
22345         (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
22346         (bdesc_3arg, avr_expand_triop_builtin): New.
22347         (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
22348         (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
22349         (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
22350         (avr_map_equal_p, avr_map_sig_p): Remove.
22351         (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
22352         (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
22353         (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
22354         (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
22355         (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
22356         (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
22358 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
22360         * config/c6x/c6x.md (reserve_cycles): New attribute.
22361         * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
22362         don't reserve functional units after the branch occurs.
22364 2012-02-14  Aldy Hernandez  <aldyh@redhat.com>
22366         PR middle-end/52142
22367         * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
22368         functions into non-tm_pure functions.
22370 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
22372         PR lto/52178
22373         * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
22374         (iterative_hash_canonical_type): Likewise.
22375         * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
22376         the dead edges.
22378 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
22380         * haifa-sched.c (prune_ready_list): Ensure that if there is a
22381         sched-group insn, it either remains alone or the entire list is pruned.
22383 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
22385         * doc/install.texi (Prerequisites): Fix grammar.
22386         (Configuration): Likewise.
22388 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
22390         * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
22391         MPC as part of GCC before describing configuring with --with-gmp etc.
22392         (Installing GCC: Configuration): --with-gmp etc. aren't needed if
22393         sources are present.
22395 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
22397         PR debug/51950
22398         * dwarf2out.c (clone_tree_hash): New function.
22399         (copy_decls_walk): Use it instead of clone_tree.
22401 2012-02-14  Richard Guenther  <rguenther@suse.de>
22403         PR tree-optimization/52244
22404         PR tree-optimization/51528
22405         * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
22406         replacements for integral types.
22408 2012-02-14  Walter Lee  <walt@tilera.com>
22410         * config.gcc: Handle tilegx and tilepro.
22411         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
22412         tilegx and tilepro.
22413         Add HAVE_AS_TLS check for tilegx and tilepro.
22414         * configure: Regenerate.
22415         * doc/contrib.texi: Add Mat Hostetter and self.
22416         * doc/extend.texi (TILE-Gx Built-in Functions): New node.
22417         Document instruction intrinsics and network accessing intrinsics.
22418         (TILEPro Built-in Functions): New node.  Document instruction
22419         intrinsics and network accessing intrinsics.
22420         * doc/install.texi (Specific, tilegx-*-linux*): Document it.
22421         (Specific, tilepro-*-linux*): Likewise.
22422         * doc/invoke.texi (TILE-Gx Options): New section.
22423         (TILEPro Options): New section.
22424         * doc/md.texi (TILE-Gx): New section.
22425         (TILEPro): New section.
22426         * common/config/tilegx/tilegx-common.c: New file.
22427         * common/config/tilepro/tilepro-common.c: New file.
22428         * config/tilegx/constraints.md: New file.
22429         * config/tilegx/linux.h: New file.
22430         * config/tilegx/mul-tables.c: New file.
22431         * config/tilegx/predicates.md: New file.
22432         * config/tilegx/sync.md: New file.
22433         * config/tilegx/t-tilegx: New file.
22434         * config/tilegx/tilegx-builtins.h: New file.
22435         * config/tilegx/tilegx-c.c: New file.
22436         * config/tilegx/tilegx-generic.md: New file.
22437         * config/tilegx/tilegx-modes.def: New file.
22438         * config/tilegx/tilegx-multiply.h: New file.
22439         * config/tilegx/tilegx-protos.h: New file.
22440         * config/tilegx/tilegx.c: New file.
22441         * config/tilegx/tilegx.h: New file.
22442         * config/tilegx/tilegx.md: New file.
22443         * config/tilegx/tilegx.opt: New file.
22444         * config/tilepro/constraints.md: New file.
22445         * config/tilepro/gen-mul-tables.cc: New file.
22446         * config/tilepro/linux.h: New file.
22447         * config/tilepro/mul-tables.c: New file.
22448         * config/tilepro/predicates.md: New file.
22449         * config/tilepro/t-tilepro: New file.
22450         * config/tilepro/tilepro-builtins.h: New file.
22451         * config/tilepro/tilepro-c.c: New file.
22452         * config/tilepro/tilepro-generic.md: New file.
22453         * config/tilepro/tilepro-modes.def: New file.
22454         * config/tilepro/tilepro-multiply.h: New file.
22455         * config/tilepro/tilepro-protos.h: New file.
22456         * config/tilepro/tilepro.c: New file.
22457         * config/tilepro/tilepro.h: New file.
22458         * config/tilepro/tilepro.md: New file.
22459         * config/tilepro/tilepro.opt: New file.
22461 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
22463         PR tree-optimization/52210
22464         * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
22465         vect_model_simple_cost with two entry vect_def_type array instead
22466         of an address of dt.
22468 2012-02-14  Richard Guenther  <rguenther@suse.de>
22470         PR lto/52178
22471         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
22472         Do not stream DECL_QUALIFIER.
22473         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
22474         * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
22475         (find_decls_types_r): Do not walk DECL_QUALIFIER.
22477 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
22479         PR c/52181
22480         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
22481         newdecl.
22483 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
22485         PR bootstrap/52172
22486         * cselib.h (cselib_subst_to_values_from_insn): New prototype.
22487         * cselib.c (cselib_subst_to_values_from_insn): New function.
22488         * sched-deps.c (add_insn_mem_dependence,
22489         sched_analyze_1, sched_analyze_2): Use it.
22491 2012-02-13  Jan Hubicka  <jh@suse.cz>
22493         PR middle-end/52214
22494         * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
22496 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
22498         * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
22499         (GTM_SELF_SPECS): Define if not already defined.
22500         (driver_self_specs): Add GTM_SELF_SPECS.
22501         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
22502         (GTM_SELF_SPECS): Define.
22503         * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
22504         * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
22506 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
22508         * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
22509         away if seen.
22511         * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
22513         PR middle-end/52230
22514         * omp-low.c (expand_omp_for): If a static schedule without chunk size
22515         has NULL region->cont, force fd.chunk_size to be integer_zero_node.
22517 2012-02-13  Andrew MacLeod  <amacleod@redhat.com>
22519         PR c/52190
22520         * doc/extend.texi : Fix another __atomic_compare_exchange typo.
22522 2012-02-13  Richard Guenther  <rguenther@suse.de>
22524         PR translation/52211
22525         * passes.c (enable_disable_pass): Fix typo.
22527 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
22529         PR middle-end/52209
22530         * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
22531         XOR for reduce_bit_field if type is unsigned.
22533 2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>
22535         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
22536         disallow changes from SFmode to mode with different size in FP regs.
22538 2012-02-12  Robert Millan  <rmh@gnu.org>
22539             Gerald Pfeifer <gerald@pfeifer.com>
22541         * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
22542         Tweak comment.
22544 2012-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
22546         PR rtl-optimization/52175
22547         * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
22548         to frame-related instructions.
22550 2012-02-10  Jason Merrill  <jason@redhat.com>
22552         PR c++/51910
22553         * tlink.c (demangled_hash_entry): Change mangled to a VEC.
22554         (demangle_new_symbols): Fill it.
22555         (scan_linker_output): Walk it.
22556         (start_tweaking): Split out from scan_linker_output.
22557         (maybe_tweak): Update sym->chosen.
22558         * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
22560 2012-02-11  Jakub Jelinek  <jakub@redhat.com>
22562         PR debug/52132
22563         * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
22565 2012-02-11  Uros Bizjak  <ubizjak@gmail.com>
22567         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
22568         having the same mode as previous compare.
22570 2012-02-10  Eric Botcazou  <ebotcazou@adacore.com>
22572         * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
22573         * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
22574         (nonlocal_goto_internal): Likewise.
22575         (nonlocal_goto): Emit a use and an indirect jump directly.
22577 2012-02-10  Andrew MacLeod  <amacleod@redhat.com>
22579         PR c/52190
22580         * doc/extend.texi : Update comments for __atomic_compare_exchange and
22581         __atomic_{is,always}_lock_free.
22583 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
22585         PR target/52146
22586         * config/i386/i386.c (ix86_legitimate_address_p): Disallow
22587         negative constant address for TARGET_X32.
22589 2012-02-10  Richard Henderson  <rth@redhat.com>
22591         * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
22592         * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
22593         for GIMPLE_TRANSACTION.  Tidy if's into a switch.
22595 2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22596             Ira Rosen  <irar@il.ibm.com>
22598         PR tree-optimization/50031
22599         * targhooks.c (default_builtin_vectorization_cost): Handle
22600         vec_promote_demote.
22601         * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
22602         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
22603         all types of reduction and pattern statements.
22604         (vect_estimate_min_profitable_iters): Likewise.
22605         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
22606         (vect_get_load_cost): Use vec_perm for permutations; add dump logic
22607         for explicit realigns.
22608         (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
22609         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
22610         vec_promote_demote.
22611         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
22612         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
22613         vec_perm for VSX and handle vec_promote_demote.
22615 2012-02-10  Jakub Jelinek  <jakub@redhat.com>
22617         PR middle-end/52177
22618         * builtins.c (fold_builtin_atomic_always_lock_free,
22619         expand_builtin_atomic_always_lock_free,
22620         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
22621         Return and/or test boolean_true_node/boolean_false_node instead of
22622         integer_one_node/integer_zero_node.
22624 2012-02-10  Jan Hubicka  <jh@suse.cz>
22626         PR middle-end/48600
22627         * predict.c (predict_paths_for_bb): Prevent looping.
22628         (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
22630 2012-02-10  Roman Zhuykov  <zhroma@ispras.ru>
22632         * config/arm/arm.c (output_move_double): In one case properly
22633         count number of instructions that will be emitted.
22635 2012-02-10  Richard Guenther  <rguenther@suse.de>
22637         PR translation/52193
22638         * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
22640 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
22642         PR middle-end/52140
22643         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
22645 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
22647         PR debug/52165
22648         * var-tracking.c (emit_note_insn_var_location): If
22649         EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
22650         emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
22651         non-NOTE_DURING_CALL_P insn.
22653 2012-02-09  Bin Cheng  <bin.cheng@arm.com>
22655         PR middle-end/51867
22656         * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
22658 2012-02-08  Magnus Granberg  <zorry@gentoo.org>
22660         PR driver/48524
22661         * gcc.c (switch_matches) Support switches with separated form,
22662         -D and -U.
22664 2012-02-08  Georg-Johann Lay  <avr@gjlay.de>
22666         * config/avr/avr.md (SREG_ADDR): Remove constant definition.
22667         (SP_ADDR): Ditto.
22668         (RAMPZ_ADDR): Ditto.
22669         * config/avr/avr.c (avr_addr_t): New typedef.
22670         (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
22671         (avr_init_expanders): Initialize it.
22672         (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
22673         SREG_ADDR.
22674         (expand_epilogue): Ditto.
22675         (avr_print_operand): Ditto.
22676         (avr_file_start): Ditto.
22677         (avr_emit_movmemhi): Ditto.
22679 2012-02-08  Richard Guenther  <rguenther@suse.de>
22681         PR tree-optimization/46886
22682         * tree-flow.h (do_while_loop_p): Declare.
22683         * tree-ssa-loop-ch.c (do_while_loop_p): Export.
22684         * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
22686 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
22688         * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
22689         always succeed for integers larger than a native word.
22691 2012-02-08  Richard Guenther  <rguenther@suse.de>
22693         PR rtl-optimization/52170
22694         * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
22695         properly handle integer vector modes.
22697 2012-02-08  Jakub Jelinek  <jakub@redhat.com>
22699         PR gcov-profile/52150
22700         * coverage.c: Include target.h.
22701         (build_var): Call targetm.strip_name_encoding on the assembler name.
22702         Change one _ into . or $ if the target allows it.
22703         * Makefile.in (coverage.o): Depend on $(TARGET_H).
22705         PR rtl-optimization/52139
22706         * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
22707         is a BARRIER after emit_insn_after_noloc, move BB_END
22708         to the last non-BARRIER insn before it.
22710 2012-02-07  Richard Sandiford  <rdsandiford@googlemail.com>
22712         PR middle-end/24306
22713         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
22714         (mips_gimplify_va_arg_expr): Call it instead of
22715         std_gimplify_va_arg_expr.
22717 2012-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
22719         * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
22720         message for -mno-pointers-to-nested-function.
22722 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
22724         PR middle-end/51994
22725         * expr.c (get_inner_reference): If there is an offset, add a negative
22726         bit position to it (if any).
22728 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
22730         PR rtl-optimization/52060
22731         * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
22732         copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
22733         before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
22734         and/or i0src_copy2 when needed.
22736 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
22738         * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
22739         or LTOPLUGINSONAME if have_c.
22741         * config/freebsd-spec.h: Add comment about what macros can be defined
22742         in this header.
22743         (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
22744         * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
22745         here instead.
22747 2012-02-07  Richard Guenther  <rguenther@suse.de>
22749         * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
22750         newline in -alias dumps.
22752 2012-02-07  Kai Tietz  <ktietz@redhat.com>
22753             Dave Korn  <dave.korn.cygwin@gmail.com>
22755         PR target/40068
22756         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
22757         Take care that typinfo gets dllexport-attribute.
22759 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
22761         PR middle-end/52074
22762         * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
22763         if modifier < EXPAND_SUM call force_operand on the result.
22765 2012-02-07  Joern Rennecke  <joern.rennecke@embecosm.com>
22767         * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
22768         adding __forwarder_dst__ prefix if a forwarder_section attribute is
22769         present.
22770         (epiphany_function_type): Replace types for specific interrupts with
22771         EPIPHANY_FUNCTION_INTERRUPT.
22772         (EPIPHANY_INTERRUPT_P): Update.
22773         * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
22774         New static function.
22775         (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
22776         <disinterrupt>: Affects type identity.
22777         (epiphany_handle_interrupt_attribute): Handle variable number of
22778         arguments.
22779         (epiphany_compute_function_type): Update for new
22780         epiphany_function_type definition.
22781         (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
22782         handlers with a longcall forwarder.
22783         (epiphany_start_function): Handle multiple interrupt arguments and/or
22784         forwarder_section attribute.
22786         * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
22787         libgloss.
22789 2012-02-07  Alan Modra  <amodra@gmail.com>
22791         PR target/52107
22792         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
22793         subregs of TFmode.
22795 2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22797         PR tree-optimization/50969
22798         * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
22799         use vec_perm rather than vector_stmt.
22800         (vect_model_load_cost): Likewise.
22801         * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
22802         vec_perm to be the same as other vector statements.
22803         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
22804         cost of vec_perm for TARGET_VSX.
22806 2012-02-06  Richard Guenther  <rguenther@suse.de>
22808         PR tree-optimization/52115
22809         * tree-sra.c (access_has_replacements_p): New function.
22810         (sra_modify_assign): Use it to decide whether a use is uninitialized.
22812 2012-02-06  Patrick Marlier  <patrick.marlier@gmail.com>
22814         PR middle-end/52047
22815         * trans-mem.c (expand_call_tm): Add an assertion.
22816         * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
22817         functions.
22819 2012-02-06  Richard Guenther  <rguenther@suse.de>
22821         PR tree-optimization/50955
22822         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
22823         raise cost of expressions that replace an address with an
22824         expression based on a different pointer.
22826 2012-02-06  Jakub Jelinek  <jakub@redhat.com>
22828         PR target/52129
22829         * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
22830         CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
22832 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
22834         PR c++/48680
22835         * doc/invoke.texi (C++ Dialect Options): Use @option markup for
22836         -Weffc++ and specify guidelines come from second edition.
22838 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
22840         * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
22841         (sibcall_value_multiple_internal, call_split, call_internal_direct)
22842         (call_direct_split, call_value_split, call_value_internal_direct)
22843         (call_value_direct_split, call_value_multiple_split): Use jal and
22844         jal_macro attributes.
22846 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
22848         * reload1.c (reload_regs_reach_end_p): Replace with...
22849         (reload_reg_rtx_reaches_end_p): ...this function.
22850         (new_spill_reg_store): Update commentary.
22851         (emit_input_reload_insns): Don't clear new_spill_reg_store here.
22852         (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
22853         before setting new_spill_reg_store.
22854         (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
22855         Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
22856         Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
22857         for non-spill reload registers.
22859 2012-02-05  Ira Rosen  <irar@il.ibm.com>
22861         PR tree-optimization/52091
22862         * tree-vectorizer.h (vect_is_simple_use): Add an argument.
22863         (vect_is_simple_use_1): Likewise.
22864         * tree-vect-loop.c (vectorizable_reduction): Update calls
22865         to vect_is_simple_use_1 and vect_is_simple_use.
22866         (vectorizable_live_operation): Likewise.
22867         * tree-vect-patterns.c (widened_name_p,
22868         vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
22869         * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
22870         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
22871         vectorizable_shift,vectorizable_operation, vectorizable_store,
22872         vectorizable_load): Likewise.
22873         (vect_is_simple_cond): Add an argument, pass it to
22874         vect_is_simple_use_1.
22875         (vectorizable_condition): Update calls to vect_is_simple_cond,
22876         vect_is_simple_use.
22877         (vect_is_simple_use): Add an argument, the statement in which
22878         OPERAND is used.  Check that if OPERAND's def stmt is a double
22879         reduction phi node, the use is a phi node too.
22880         (vect_is_simple_use_1): Add an argument, pass it to
22881         vect_is_simple_use.
22882         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
22883         to vect_is_simple_use.
22885 2012-02-04  Jakub Jelinek  <jakub@redhat.com>
22887         PR rtl-optimization/52095
22888         * modulo-sched.c (dump_insn_locator): New function.
22889         (loop_canon_p, sms_schedule): Use it.
22891         PR rtl-optimization/52113
22892         * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
22893         even for decomposable shift/zext insns.
22895 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
22896             Zdenek Dvorak  <ook@ucw.cz>
22898         PR rtl-optimization/52092
22899         * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
22900         on get_iv_value result.
22902 2012-02-02  Andrew Pinski  <apinski@cavium.com>
22904         PR middle-end/47982
22905         PR middle-end/43967
22906         * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
22908 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
22910         PR middle-end/48071
22911         * diagnostic.c (diagnostic_finish): Remove trailing newlines.
22913 2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>
22915         PR rtl-optimization/49800
22916         * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
22917         (sched_finish): Call regstat_free_n_sets_and_refs.
22919 2012-02-02  Jia Liu  <proljc@gmail.com>
22921         * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
22922         than operand 2.
22924 2012-02-02  Jan Hubicka  <jh@suse.cz>
22925             Tom de Vries  <tom@codesourcery.com>
22927         PR middle-end/51998
22928         * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
22929         * varpool.c (varpool_analyze_pending_decls): Likewise.
22931 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
22932             Jayant R Sonar <jayant.sonar@kpitcummins.com>
22934         * config.gcc: Add cr16-* support.
22936         * doc/extend.texi: Document cr16 extensions.
22937         * doc/install.texi: Document cr16 install.
22938         * doc/invoke.texi: Document cr16 options.
22939         * doc/md.texi: Document cr16 constraints.
22941         * common/config/cr16/cr16-common.c: New file.
22942         * config/cr16/cr16.c: New file.
22943         * config/cr16/cr16.h: New file.
22944         * config/cr16/cr16.md: New file.
22945         * config/cr16/cr16.opt: New file.
22946         * config/cr16/cr16-protos.h: New file.
22947         * config/cr16/predicates.md: New file.
22948         * config/cr16/constraints.md: New file.
22949         * config/cr16/t-cr16: New file.
22951 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
22953         PR target/52086
22954         * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
22955         that operands[2] is either immediate, or q_regs_operand.
22957         PR tree-optimization/52073
22958         * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
22959         a pattern stmt for pattern uses, ignore uses outside of the loop.
22961 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
22963         * config/avr/avr.c: Resolve all AS1 and AS2 macros.
22964         * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
22965         (OUT_AS1, OUT_AS2): Remove.
22967 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
22969         PR rtl-optimization/51374
22970         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
22971         to cross other volatile_refs_p insns.
22973 2012-02-01  Richard Guenther  <rguenther@suse.de>
22975         * doc/invoke.texi (fno-inline): Clarify documentation.
22976         (finline-small-functions): Likewise.
22977         (finline-functions): Likewise.
22978         * common.opt (finline): Adjust comment and documentation.
22979         (finline-small-functions): Clarify documentation.
22980         (finline-functions): Likewise.
22981         (finline-functions-called-once): Likewise.
22983 2012-02-01  Tristan Gingold  <gingold@adacore.com>
22985         * c-typeck.c (composite_type): Keep mode for pointers.
22987 2012-01-31  Richard Sandiford  <rdsandiford@googlemail.com>
22989         * function.h (regno_reg_rtx): Adjust comment.
22990         * reginfo.c (init_reg_modes_target): Only use the previous mode
22991         if it fits within one register.  Remove MIPS comment.
22993 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
22995         PR bootstrap/52058
22996         * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
22998 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23000         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
23001         to srak instruction.
23003 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
23005         * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
23007 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
23009         PR bootstrap/52041
23010         PR bootstrap/52039
23011         PR target/51974
23012         * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
23014 2012-01-31  Richard Guenther  <rguenther@suse.de>
23016         PR tree-optimization/51528
23017         * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
23018         assigns.
23020 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
23022         PR bootstrap/52041
23023         PR bootstrap/52039
23024         PR target/51974
23025         * ree.c (add_removable_extension): Change def_map argument
23026         to unsigned *, store in def_map 1 + offset into *insn_list vector
23027         instead of pointers into the vector.
23028         (find_removable_extensions): Adjust caller.
23030 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
23032         * config/avr/avr.md: Resolve all AS1 and AS2 macros.
23033         Transform all "* quoted-c-code" to { c-code }.
23034         Remove redundant test for "optimize" in combine patterns.
23035         Move (include "avr-dimode.md") to end of file.
23037 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
23039         PR target/51835
23040         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
23041         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
23043 2012-01-30  Richard Guenther  <rguenther@suse.de>
23045         PR tree-optimization/52028
23046         * tree-loop-distribution.c (ldist_gen): Properly update
23047         virtual SSA form.
23049 2012-01-30  Jakub Jelinek  <jakub@redhat.com>
23051         PR debug/52027
23052         * dwarf2out.c (dwarf2out_switch_text_section): Don't call
23053         set_cur_line_info_table if not emitting debug info.
23055         PR tree-optimization/52046
23056         * tree-vect-patterns.c (check_bool_pattern): Give up if
23057         a comparison could throw.
23059         PR debug/52048
23060         * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
23062 2012-01-30  Richard Guenther  <rguenther@suse.de>
23064         PR tree-optimization/52045
23065         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
23066         SSA form if cfgcleanup did anything.
23068 2012-01-30  Richard Guenther  <rguenther@suse.de>
23070         PR tree-optimization/52045
23071         * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
23072         before computing final todo.
23074 2012-01-30  Richard Guenther  <rguenther@suse.de>
23076         PR tree-optimization/51528
23077         * tree-sra.c (sra_modify_assign): Re-factor in preparation
23078         for PR51528 fix.
23080 2012-01-30  Paolo Bonzini  <bonzini@gnu.org>
23082         * df-problems.c (df_kill_notes): Check that the use refers
23083         to the note under examination.
23085 2012-01-30  Eric Botcazou  <ebotcazou@adacore.com>
23087         PR target/51920
23088         * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
23089         parameter and use short-lived pseudos.
23090         (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
23091         (sparc_expand_vector_init): Const-ify local variables and adjust
23092         calls to above functions.
23094 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
23096         * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
23098 2012-01-29  Sandra Loosemore  <sandra@codesourcery.com>
23100         * doc/invoke.texi: Make usage of "compile time" and
23101         "run time"/"runtime" consistent throughout the file.
23103 2012-01-29  Uros Bizjak  <ubizjak@gmail.com>
23105         * config/alpha/alpha.c (alpha_option_override): Default to
23106         full IEEE compliance mode for Go language.
23108 2012-01-29  Tijl Coosemans  <tijl@coosemans.org>
23110         * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
23111         (LINK_SSP_SPEC): Define.
23113 2012-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23115         PR target/51871
23116         * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
23117         stubs.
23119 2012-01-28  Sandra Loosemore  <sandra@codesourcery.com>
23121         * doc/invoke.texi: Correct hyphenation of "floating point",
23122         "double precision", and related terminology throughout the file.
23124 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
23126         PR target/52006
23127         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
23128         arm_general_register_operand predicate for operand 2 instead of
23129         register_operand.
23131 2012-01-27  Ian Lance Taylor  <iant@google.com>
23133         PR go/47656
23134         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
23135         * builtins.c (expand_builtin_init_trampoline): Add onstack
23136         parameter.  Change caller.
23137         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
23138         * tree.c (build_common_builtin_nodes): Declare
23139         __builtin_init_heap_trampoline.
23141 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
23143         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
23144         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
23145         * config/avr/avr.c: Ditto.
23146         (avr_regnames): Remove because unused.
23147         * config/avr/avr.md (*cpse.ne): New peephole.
23148         (*cpse.eq): New peephole from former cpse peepholes.
23150 2012-01-27  Michael Eager  <eager@eagercon.com>
23152         * config/microblaze.c (microblaze_emit_compare): Correct
23153         test after pcmp instruction.
23155 2012-01-27  Richard Guenther  <rguenther@suse.de>
23157         PR tree-optimization/52020
23158         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
23160 2012-01-27  Richard Guenther  <rguenther@suse.de>
23162         * ipa-pure-const.c (check_stmt): Clobbers do not make a
23163         function non-const/pure.
23165 2012-01-27  Richard Guenther  <rguenther@suse.de>
23167         PR tree-optimization/50444
23168         * tree-sra.c (build_ref_for_offset): Properly adjust the
23169         MEM_REF type for unaligned accesses.
23171 2012-01-27  Richard Guenther  <rguenther@suse.de>
23173         PR tree-optimization/50444
23174         * expr.c (mem_ref_refers_to_non_mem_p): New function.
23175         (expand_assignment): Use it.  Properly handle misaligned
23176         bases when expanding stores to component references.
23177         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
23178         refactor that case.
23180 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
23182         PR middle-end/51389
23183         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
23184         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
23185         * tree-data-ref.c (find_data_references_in_loop): Make static.
23186         (compute_all_dependences): Change return type to bool.  Bail out
23187         for too many datarefs in a loop.  Move the hunk resetting the data
23188         dependences vector from ...
23189         (compute_data_dependences_for_loop): ... here.  Account for
23190         compute_all_dependences returning false.
23191         (compute_data_dependences_for_bb): Likewise.
23192         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
23193         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
23195 2012-01-27  Richard Guenther  <rguenther@suse.de>
23197         PR middle-end/51959
23198         * expr.c (store_field): Use the alias-set of the scratch memory
23199         for storing to it.
23201 2012-01-27  Tom de Vries  <tom@codesourcery.com>
23203         PR tree-optimization/51990
23204         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
23205         WITH_SIZE_EXPR.
23206         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
23208 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
23210         PR debug/52001
23211         * var-tracking.c (reverse_op): Don't add any reverse operation
23212         if V already has any constant locations.
23214 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
23216         * doc/invoke.texi: Correct usage of "command line" (noun)
23217         vs "command-line" (adjective) throughout.
23219 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
23221         * doc/invoke.texi (Language Independent Options): Move
23222         -Wcoverage-mismatch blurb from here....
23223         (Warning Options): ...to here.
23225 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
23227         * config/rs6000/rs6000.c (rs6000_option_override_internal):
23228         Set rs6000_always_hint to false for 476.
23230 2012-01-27  Matthias Klose  <doko@ubuntu.com>
23232         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
23233           system root.
23234         * incpath.c (add_standard_paths): Likewise.
23236 2012-01-27  Richard Henderson  <rth@redhat.com>
23238         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
23239         * config/m68k/sync.md (atomic_test_and_set): Rename from
23240         sync_test_and_setqi and adjust the operands.
23241         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
23242         and unconditionally enable.
23244 2012-01-27  Richard Henderson  <rth@redhat.com>
23246         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
23247         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
23248         (ldstub): Rename from ldstubqi.
23249         (ldstub<I24MODE>): Remove.
23251 2012-01-27  Richard Henderson  <rth@redhat.com>
23253         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
23254         * c-cppbuiltin.c (cpp_atomic_builtins): Define
23255         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
23256         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
23257         * doc/tm.texi: Rebuild.
23259 2012-01-27  Richard Henderson  <rth@redhat.com>
23261         * optabs.c (gen_atomic_test_and_set): Remove default.
23262         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
23264 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
23266         PR rtl-optimization/51978
23267         * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
23268         (combine_reaching_defs): Likewise.
23269         (struct re_info): Remove.
23270         (add_removable_extension): Remove x and data arguments,
23271         add insn, insn_list and def_map.  Use the arguments directly
23272         instead of using struct re_info.
23273         (find_removable_extensions): Don't call add_removable_extension
23274         through note_stores, instead just call it with single_set
23275         result if non-NULL.
23276         (find_and_remove_re): Pass curr_cand->expr instead of
23277         PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
23279 2012-01-26  Michael Matz  <matz@suse.de>
23281         PR tree-optimization/46590
23282         * cfgexpand.c: Revert last change (r183305).
23283         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
23284         regs.
23285         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
23286         checking for emptiness.
23288 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
23290         PR middle-end/51895
23291         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
23292         non-addressable non-BLKmode base correctly.
23294 2012-01-26  Michael Matz  <matz@suse.de>
23296         PR tree-optimization/48794
23297         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
23298         regions referenced from RESX/EH_DISPATCH.
23300 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23302         * config/s390/s390.h: Make BRANCH_COST an option.
23303         * config/s390/s390.opt: New option -mbranch-cost.
23305 2012-01-26  Richard Henderson  <rth@redhat.com>
23307         Revert 2012-01-24 change:
23308         * trans-mem.c (requires_barrier): Do not instrument thread local
23309         variables and emit save/restore for them.
23311 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
23313         PR middle-end/51986
23314         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
23315         for pat == 0.
23317 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
23319         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
23320         ASM_OPERANDS.
23322 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
23324         PR target/49868
23325         Rename __pgm to __flash.
23326         Rename __pgm1 to __flash1.
23327         Rename __pgm2 to __flash2.
23328         Rename __pgm3 to __flash3.
23329         Rename __pgm4 to __flash4.
23330         Rename __pgm5 to __flash5.
23331         Rename __pgmx to __memx.
23332         * doc/extend.texi (AVR Named Address Spaces)
23333         Rename address space names as indicated above.
23334         * config/avr/avr.c (avr_addrspace): Ditto.
23336         * config/avr/avr-protos.h
23337         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
23338         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
23339         * config/avr/predicates.md: Ditto.
23340         * config/avr/avr.c Ditto, and
23341         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
23342         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
23344         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
23345         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
23346         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
23347         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
23348         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
23349         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
23350         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
23351         * config/avr/avr.c: Ditto.
23352         * config/avr/avr.md: Ditto.
23354 2012-01-25  Jason Merrill  <jason@redhat.com>
23356         PR c++/51992
23357         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
23359 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
23361         PR tree-optimization/51987
23362         * tree-data-ref.c (get_references_in_stmt): Handle references in
23363         non-volatile GIMPLE_ASM.
23365 2012-01-25  Richard Guenther  <rguenther@suse.de>
23367         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
23368         bases are dereferenced.
23370 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
23372         PR rtl-optimization/48374
23373         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
23375 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
23377         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
23378         compute_data_dependences_for_loop returns false.
23379         * tree-parloops.c (loop_parallel_p): Likewise.
23381 2012-01-25  Richard Guenther  <rguenther@suse.de>
23383         * tree.h (get_pointer_alignment_1): Declare.
23384         * builtins.c (get_pointer_alignment_1): New function.
23385         (get_pointer_alignment): Use it.
23387 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23389         PR rtl-optimization/48308
23390         * combine.c (enum undo_kind): Add UNDO_LINKS.
23391         (struct undo): Add member l to other_contents and where.
23392         (do_SUBST_LINK): New.
23393         (SUBST_LINK): New.
23394         (try_combine): Handle LOG_LINKS for the dummy i1 case.
23395         (undo_all): Handle UNDO_LINKS.
23397 2012-01-25  Richard Henderson  <rth@redhat.com>
23399         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
23400         mem inputs.
23402 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
23404         * optabs.c (gen_atomic_test_and_set): Use each argument.
23406 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
23408         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
23409         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
23410         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
23411         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
23412         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
23413         TARGET_PAIRED_SINGLE_FLOAT.
23415 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
23417         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
23418         (in_struct, return_val): Remove MEM documentation.
23419         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
23420         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
23421         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
23422         and MEM_SCALAR.
23423         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
23424         * cfgexpand.c (add_alias_set_conflicts): Likewise.
23425         * expr.c (store_field): Likewise.
23426         * function.c (assign_stack_temp_for_type): Likewise.
23427         * ifcvt.c (noce_try_cmove_arith): Likewise.
23428         * reload1.c (reload): Likewise.
23429         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
23430         (alpha_set_memflags): Likewise.
23431         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
23433 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
23435         * rtl.h (true_dependence, canon_true_dependence): Remove varies
23436         parameter.
23437         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
23438         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
23439         (true_dependence_1, true_dependence, canon_true_dependence): Remove
23440         varies parameter.
23441         * cselib.c (cselib_rtx_varies_p): Delete.
23442         (cselib_invalidate_mem): Update call to canon_true_dependence.
23443         * dse.c (record_store, check_mem_read_rtx): Likewise.
23444         (scan_reads_nospill): Likewise.
23445         * cse.c (check_dependence): Likewise.
23446         (cse_rtx_varies_p): Delete.
23447         * expr.c (safe_from_p): Update call to true_dependence.
23448         * ira.c (validate_equiv_mem_from_store): Likewise.
23449         (memref_referenced_p): Likewise.
23450         * postreload-gcse.c (find_mem_conflicts): Likewise.
23451         * sched-deps.c (sched_analyze_2): Likewise.
23452         * store-motion.c (load_kills_store): Likewise.
23453         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
23454         * gcse.c (mems_conflict_for_gcse_p): Likewise.
23455         (compute_transp): Update call to canon_true_dependence.
23457 2012-01-25  Richard Henderson  <rth@redhat.com>
23459         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
23460         (maybe_emit_atomic_test_and_set): New.
23461         (expand_sync_lock_test_and_set): Use it.
23462         (expand_atomic_test_and_set): Likewise.
23463         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
23464         the implementation; clarify implementation defined details.
23465         * doc/md.texi (atomic_test_and_set): Document.
23467 2012-01-25  Richard Henderson  <rth@redhat.com>
23469         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
23471 2012-01-25  Richard Henderson  <rth@redhat.com>
23473         PR target/51968
23474         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
23475         to effect no-op split.
23477 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
23479         PR lto/51698
23480         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
23481         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
23482         (BT_FN_VOID_PTR_INT_SIZE): New.
23483         (BT_FN_UINT_UINT_VAR): Remove.
23484         (BT_FN_UINT32_UINT32_VAR): New.
23485         (BT_FN_DOUBLE_VPTR): Remove.
23486         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
23488         * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
23489         (_ITM_changeTransactionMode): Same.
23490         (_ITM_memmoveRtWt): Change return type to void.
23491         (_ITM_memcpyRtWt): Same.
23492         (_ITM_memsetW): Same.
23493         (_ITM_RaRD): Change types to double.
23494         (_ITM_RD): Same.
23495         (_ITM_RaWD): Same.
23496         (_ITM_RfWD): Same.
23498         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
23500 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
23501             Patrick Marlier  <patrick.marlier@gmail.com>
23503         * trans-mem.c (requires_barrier): Do not instrument thread local
23504         variables and emit save/restore for them.
23506 2012-01-24  Jason Merrill  <jason@redhat.com>
23508         PR c++/51812
23509         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
23510         output static aliases.
23512 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
23514         PR driver/47249
23515         * common.opt (-pie, -shared, pie, shared): Change from Common to
23516         Driver.
23517         * gcc.c (display_help): Display help for -pie and -shared.
23519 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
23521         PR target/49868
23522         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
23523         Remove note on size/offset limitation.
23524         (AVR Variable Attributes): Add example how to read data located
23525         with progmem.  Refer to named address spaces.
23526         * doc/invoke.texi (AVR Options): Fix typo.
23528 2012-01-24  Richard Guenther  <rguenther@suse.de>
23530         Forward-port to trunk
23531         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
23533         PR middle-end/45678
23534         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
23535         op0 isn't sufficiently aligned and there is movmisalignM
23536         insn for mode, use it to load op0 into a temporary register.
23538 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
23540         PR target/51957
23541         * target.def (const_not_ok_for_debug_p): New hook.
23542         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
23543         documentation.
23544         * doc/tm.texi: Regenerated.
23545         * dwarf2out.c (const_ok_for_output_1): If
23546         targetm.const_not_ok_for_debug_p returns true, fail.
23547         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
23548         function.
23549         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
23551 2012-01-23  Kai Tietz  <ktietz@redhat.com>
23553         PR target/51900
23554         * config/i386/predicates.md (symbolic_operand): Allow
23555         UNSPEC_PCREL as PIC expression for lea.
23556         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
23557         * config/i386/i386.c (ix86_delegitimize_address): Handle
23558         UNSPEC_PCREL for none-MEM, too.
23560 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
23562         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
23563         (ipa_tm_create_version_alias): Same.
23565 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
23567         PR libitm/51830
23568         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
23569         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
23571 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
23572             Patrick Marlier  <patrick.marlier@gmail.com>
23573             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
23575         PR lto/51916
23576         * lto-wrapper.c (run_gcc): Pass the LTO section name to
23577         simple_object_start_read.
23579 2012-01-23  Richard Guenther  <rguenther@suse.de>
23582         PR tree-optimization/51895
23583         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
23584         parameter decomposition into BLKmode components.
23586 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
23588         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
23589         fake variables for restrict-qualified pointers whose pointed-to type
23590         contains a placeholder.
23592 2012-01-23  Richard Guenther  <rguenther@suse.de>
23594         PR tree-optimization/51949
23595         * ipa-split.c (execute_split_functions): Do not split malloc functions.
23597 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
23599         PR rtl-optimization/51933
23600         * ree.c (transform_ifelse): Return true right away if dstreg is
23601         already wider or equal to cand->mode.
23602         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
23603         (make_defs_and_copies_lists): Remove defs_list and copies_list
23604         arguments, add state argument, just truncate state->work_list
23605         instead of always allocating and freeing the vector.  Assert that
23606         get_defs succeeds instead of returning 2.  Changed return type to bool.
23607         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
23608         have ext_src_mode, see if it has been modified already with the
23609         right kind of extension and has been extended before from the
23610         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
23611         just return true.  Remember the original mode in state->modified array.
23612         (combine_reaching_defs): Add state argument.  Don't allocate and
23613         free here def_list, copied_list and vec vectors, instead just
23614         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
23615         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
23616         Add state variable, clear vectors in it, initialize state.modified
23617         if needed.  Free all the vectors at the end and state.modified too.
23618         Don't skip a candidate if the extension expression has been modified.
23620 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
23622         PR target/47096
23623         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
23624          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
23625         (extra_options) interix.opt -> i386/interix.opt"
23626         (extra_objs):Add winnt-stubs.o
23627         * configure.ac: Add interix to target_os .comm on PE check.
23628         * configure: Regenerate.
23629         * config/interix3.h: Delete and move bits to..
23630         * config/interix.h: Delete and move bits to..
23631         * config/i386/i386-interix3.h: Delete and move bits to..
23632         * config/i386/i386-interix.h: ..here.
23633         (TARGET_CPU_DEFAULT): Remove redefinition.
23634         (TARGET_ASM_CONSTRUCTOR): Undefine.
23635         (SUBTARGET_SWITCHES): Define for ms-bitfields.
23636         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
23637         (PTRDIFF_TYPE): Define.
23638         (LONG_DOUBLE_TYPE_SIZE): Define.
23639         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
23640         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
23641         (TARGET_SECTION_TYPE_FLAGS): Define.
23642         (ASM_DECLARE_FUNCTION_NAME): Define.
23643         (ASM_OUTPUT_EXTERNAL): Define.
23644         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
23645         (ASM_OUTPUT_ALIGNED_BSS): Define.
23646         (PCC_BITFIELD_TYPE_MATTERS): Define.
23647         (USE_CONST_SECTION): Define.
23648         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
23649         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
23650         (SUPPORTS_ONE_ONLY): Remove.
23651         (I386_PE_STRIP_ENCODING): Define.
23652         * config/interix.opt: Delete and move bits to..
23653         * config/i386/interix.opt: ..here. New.
23654         (mpe-aligned-commons): Add.
23655         * config/i386/t-interix: Add copyright header.
23656         (winnt-stubs.o): Add rule.
23658 2012-01-22  Jason Merrill  <jason@redhat.com>
23660         PR c++/51832
23661         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
23662         for extra name aliases.
23664 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
23666         PR rtl-optimization/51924
23667         * ree.c (combine_set_extension): Improve debugging message.
23668         (combine_reaching_defs): Likewise.
23669         (get_defs): Rename confusingly named variable.
23670         (find_and_remove_re): Skip a candidate if the extension expression has
23671         been modified.
23673 2012-01-21  Robert Millan  <rmh@gnu.org>
23674             Gerald Pfeifer  <gerald@pfeifer.com>
23676         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
23677         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
23679 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
23681         PR tree-optimization/51914
23682         * tree-vect-stmts.c (vectorizable_conversion): For
23683         cvt_type && modifier == WIDEN, put temporary with cvt_type
23684         at the beginning of vec_dsts and set vec_dest to temporary
23685         with vectype_out.
23687 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
23689         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
23691 2012-01-20  Tijl Coosemans  <tijl@coosemans.org>
23693         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
23694         * config/rs6000/rs6000.c: Likewise.
23696 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
23698         PR target/51915
23699         * config/arm/arm.c (arm_count_output_move_double_insns): Call
23700         output_move_double on a copy of operands array.
23702 2012-01-20  Cary Coutant  <ccoutant@google.com>
23703             Dodji Seketeli  <dodji@redhat.com>
23705         PR debug/45682
23706         * dwarf2out.c (copy_declaration_context): Return ref to parent
23707         of declaration DIE, if necessary.
23708         (remove_child_or_replace_with_skeleton): Add new parameter; update
23709         caller.  Place skeleton DIE under parent DIE of original declaration.
23710         Move call to copy_declaration_context to here ...
23711         (break_out_comdat_types): ... from here.
23713 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23715         PR rtl-optimization/51856
23716         * reload.c (find_reloads_subreg_address): Set the address_reloaded
23717         flag to reloaded.
23719 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23721         PR target/51819
23722         * config/arm/arm.c (arm_print_operand): Correct output of alignment
23723         hints for neon loads and stores.
23725 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
23727         PR target/49868
23728         PR target/50887
23729         * doc/extend.texi (Named Address Spaces): Split into subsections.
23730         (AVR Named Address Spaces): New subsection.
23731         (M32C Named Address Spaces): New subsection.
23732         (RL78 Named Address Spaces): New subsection.
23733         (SPU Named Address Spaces): New subsection.
23734         (Variable Attributes): New anchor "AVR Variable Attributes".
23735         (AVR Variable Attributes): Rewrite and avoid wording
23736         "address space" in this context.
23737         * doc/invoke.texi (AVR Options): Rewrite and add documentation
23738         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
23739         (AVR Built-in Macros): New subsubsection therein.
23740         * doc/md.texi (AVR constraints): Remove "C04", "R".
23742 2012-01-20  Richard Guenther  <rguenther@suse.de>
23744         PR tree-optimization/51903
23745         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
23746         when removing stmts.
23748 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23750         PR target/50313
23751         * config/arm/arm.c (arm_load_pic_register): Use
23752         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
23753         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
23754         (arm_pic_static_addr): Likewise.
23755         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
23756         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
23757         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
23758         (pic_load_addr_unified): New.
23760 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
23762         PR target/51106
23763         * function.c (instantiate_virtual_regs_in_insn): Use
23764         delete_insn_and_edges when removing a wrong asm insn.
23766 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
23768         PR rtl-optimization/40761
23769         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
23770         Add new member loop_num.
23771         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
23772         (ira_build): Remove the parameter.
23774         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
23775         (ira.c): Do not build CFG loops for one region allocation.  Remove
23776         argument from ira_build call.
23778         * ira-build.c (init_loop_tree_node): New function.
23779         (create_loop_tree_nodes): Use it.  Separate the case when CFG
23780         loops are not built.
23781         (more_one_region_p): Check current_loops.
23782         (finish_loop_tree_nodes): Separate the case when CFG loops are not
23783         built.
23784         (add_loop_to_tree): Process loop equal to NULL too.
23785         (form_loop_tree): Separate the case when CFG loops are not built.
23786         Use explicitly number for the root.
23787         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
23788         an assertion.
23789         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
23790         instead of loop->num.
23791         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
23792         (mark_all_loops_for_removal): Ditto.
23793         (remove_unnecessary_regions): Separate the case when CFG loops
23794         are not built.
23795         (ira_build): Remove the parameter.  Use explicit number of regions
23796         when CFG loops are not built.
23798         * ira-color.c (print_loop_title): Separate the case for the root node.
23799         Use loop_num instead of loop->num.
23800         (move_spill_restore): Use loop_num instead of loop->num.
23802         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
23803         (change_loop): Ditto.
23804         (change_loop): Use loop_num instead of loop->num.
23806         * ira-lives.c (process_bb_node_lives): Ditto.
23808         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
23810         * ira-conflicts.c (print_allocno_conflicts): Ditto.
23812 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
23814         PR libmudflap/40778
23815         * tree-mudflap.c (mf_artificial): New function.
23816         (execute_mudflap_function_ops, execute_mudflap_function_decls,
23817         mx_register_decls, mudflap_enqueue_decl): Use it.
23819         PR target/51876
23820         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
23821         numbers in the insn pattern.
23823 2012-01-19  Michael Matz  <matz@suse.de>
23825         PR tree-optimization/46590
23826         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
23827         use it in remembering which conflicts we already created.
23828         (add_scope_conflicts): Adjust call to above, (de)allocate helper
23829         bitmap.
23831 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
23833         PR lto/51280
23834         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
23835         (merge_and_complain): Same.
23837 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
23839         PR bootstrap/50237
23840         * config/initfini-array.h: Guard content of the header
23841         with #ifdef HAVE_INITFINI_ARRAY.
23842         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
23843         Add initfini-array.h to tm_file here.
23844         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
23845         * config.gcc: Don't add initfini-array.h to tm_file here.
23846         * configure: Regenerated.
23848 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
23850         PR rtl-optimization/51505
23851         * df-problems.c (df_kill_notes): New parameter live. Update comment.
23852         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
23853         (df_note_bb_compute): Update the call to df_kill_notes.
23855 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
23857         * trans-mem.c (requires_barrier): Remove call to is_global_var.
23859 2012-01-18  Richard Guenther  <rguenther@suse.de>
23861         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
23862         of conversions to void *.
23864 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23865             Richard Sandiford  <rdsandiford@googlemail.com>
23867         PR middle-end/50325
23868         PR middle-end/51192
23869         * optabs.h (simplify_expand_binop): Declare.
23870         * optabs.c (simplify_expand_binop): Make global.
23871         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
23872         endian targets if the source cannot be exactly covered by word
23873         mode chunks.
23875 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
23877         PR bootstrap/51872
23878         * hard-reg-set.h (struct hard_reg_set_container): New type.
23879         * target.h (struct hard_reg_set_container): Forward declare.
23880         * target.def (set_up_by_prologue): New target hook.
23881         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
23882         * doc/tm.texi: Regenerated.
23883         * function.c (thread_prologue_and_epilogue_insns): Change
23884         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
23885         Call targetm.set_up_by_prologue on it.
23886         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
23887         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
23889 2012-01-17  Nick Clifton  <nickc@redhat.com>
23891         * config/rx/rx.c (rx_can_use_simple_return): New function.
23892         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
23893         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
23895 2012-01-17  Richard Guenther  <rguenther@suse.de>
23897         PR middle-end/51782
23898         * expr.c (expand_assignment): Take address-space information
23899         from the address operand of MEM_REF and TARGET_MEM_REF.
23900         (expand_expr_real_1): Likewise.
23902 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23904         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
23905         reload dump is requested.
23907 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
23909         PR other/51165
23910         * trans-mem.c (requires_barrier): Call may_be_aliased.
23912 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
23914         PR tree-optimization/51877
23915         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
23916         call arguments and fndecls compare equal, instead return false if they
23917         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
23918         both SSA_NAMEs that are valueized the same, or they satisfy
23919         operand_equal_p.
23921 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23923         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
23924         Solaris 11+.
23925         * configure: Regenerate.
23927 2012-01-16  Jan Hubicka  <jh@suse.cz>
23929         PR c/12245
23930         PR c++/14179
23931         * convert.c (convert_to_integer): Use fold_convert for
23932         converting an INTEGER_CST to integer type.
23934 2012-01-16  Jason Merrill  <jason@redhat.com>
23936         PR c++/14179
23937         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
23939 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
23941         PR bootstrap/51860
23942         * config/s390/s390.c (s390_chunkify_start): Don't skip
23943         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
23944         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
23945         If insn is followed by NOTE_INSN_VAR_LOCATION or
23946         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
23947         Don't use location of note insns.
23949         PR tree-optimization/51865
23950         * tree-inline.c (tree_function_versioning): Call remap_decl
23951         on DECL_RESULT whenever it has VOID_TYPE_P type.
23953 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
23955         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
23956         for calls to locally-binding MIPS16 functions if only the return
23957         type uses float regs.
23959 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
23960             Richard Sandiford  <rdsandiford@googlemail.com>
23962         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
23963         (SYMBOL_32_HIGH): Likewise.
23964         (mips_output_tls_reloc_directive): Declare.
23965         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
23966         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
23967         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
23968         (mips_lo_relocs, mips_hi_relocs): Make extern.
23969         (mips16_stub_function): Move up file.
23970         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
23971         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
23972         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
23973         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
23974         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
23975         (mips_get_tp): Add MIPS16 support.
23976         (mips_legitimize_tls_address): Remove MIPS16 sorry().
23977         Generalize DTPREL and TPREL handling.
23978         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
23979         Add MIPS16 TLS support.
23980         (mips_output_tls_reloc_directive): New function.
23981         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
23982         * config/mips/predicates.md (symbolic_operand_with_high)
23983         (tls_reloc_operand): New predicates.
23984         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
23985         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
23986         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
23987         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
23988         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
23989         (*tls_get_tp_mips16_call_<mode>): Likewise.
23991 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
23993         PR rtl-optimization/51821
23994         * recog.c (peep2_find_free_register): Determine clobbered registers
23995         from insn pattern.
23997 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
23999         PR target/50925
24000         * config/avr/avr-protos.h: Revert change of 2012-01-09.
24001         * config/avr/avr.c: Likewise.
24002         * config/avr/avr.h: Likewise.
24004 2012-01-13  Ian Lance Taylor  <iant@google.com>
24006         PR c++/50012
24007         * tree.h (TYPE_QUALS): Add cast to int.
24008         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
24010 2012-01-13  Ian Lance Taylor  <iant@google.com>
24012         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
24013         comparing param_index to VEC_length result.
24015 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
24017         * c-decl.c: Do not include tree-mudflap.h
24018         * tree-optimize.c: Likewise.
24019         * Makefile.in: Update dependencies.
24021 2012-01-13  Richard Guenther  <rguenther@suse.de>
24023         PR middle-end/8081
24024         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
24025         variable-sized result always use RSO.
24027 2012-01-12  DJ Delorie  <dj@redhat.com>
24029         * cfgexpand.c (convert_debug_memory_address): Allow any valid
24030         pointer type, not just the default pointer type.
24032 2012-01-09  Richard Henderson  <rth@redhat.com>
24033             Denis Chertykov  <chertykov@gmail.com>
24035         PR target/50925
24036         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
24037         * config/avr/avr.c (avr_can_eliminate): Simplify.
24038         (avr_initial_elimination_offset): Likewise.
24039         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
24040         (expand_epilogue): Likewise.
24041         (avr_legitimize_address): Gut.
24042         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
24043         (avr_hard_regno_nregs): New.
24044         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
24045         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
24046         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
24047         add soft frame pointer.
24048         (CALL_USED_REGISTERS): Likewise.
24049         (REG_CLASS_CONTENTS): Likewise.
24050         (REGISTER_NAMES): Likewise.
24051         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
24052         (HARD_FRAME_POINTER_REGNUM): New.
24053         (FRAME_POINTER_REGNUM): Use soft frame pointer.
24054         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
24055         remove the HARD_FRAME_POINTER self-elimination.
24057 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
24059         PR target/51756
24060         * config/avr/avr.c (avr_encode_section_info): Test for absence of
24061         DECL_EXTERNAL when checking for initializers of progmem variables.
24063 2012-01-12  Ira Rosen  <irar@il.ibm.com>
24065         PR tree-optimization/51799
24066         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
24067         that the last operation is a type demotion.
24069 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
24071         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
24072         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
24074 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
24076         PR bootstrap/51796
24077         * combine.c (distribute_notes): If i3 is a noreturn call,
24078         allow old_size to be equal to args_size and make sure the
24079         noreturn call gets REG_ARGS_SIZE note.
24080         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
24081         on noreturn calls even when the delta is 0.
24083 2012-01-11  Nathan Sidwell  <nathan@acm.org>
24085         * gcov.c (STRING_SIZE): Remove.
24086         (generate_results): Erase annotations for source files with no
24087         coverage information.
24088         (read_line): New.
24089         (output_lines): Use it.
24091 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
24093         * gimple.h (gimplify_body): Remove first argument.
24094         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
24095         pointer set here, instead just pass DATA to walk_tree.
24096         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
24097         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
24098         (unvisit_body): Likewise, but with unmark_visited.
24099         (gimplify_body): Remove BODY_P argument and adjust.
24100         (gimplify_function_tree): Adjust call to gimplify_body.
24101         * omp-low.c (finalize_task_copyfn): Likewise.
24103 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
24105         * tree.h (build_function_decl_skip_args): Add boolean parameter.
24106         (build_function_type_skip_args): Delete.
24107         * tree.c (build_function_type_skip_args): Make static and add
24108         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
24109         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
24110         pass it to build_function_type_skip_args.
24111         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
24112         (tree_function_versioning): Likewise.
24113         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
24114         build_function_decl_skip_args.
24115         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
24116         and pass it to build_function_decl_skip_args/tree_function_versioning.
24117         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
24118         * ipa-inline-transform.c (save_inline_function_body): Likewise.
24119         * trans-mem.c (ipa_tm_create_version): Likewise.
24120         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
24121         * tree-inline.c (declare_return_variable): Remove always-true test.
24122         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
24123         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
24124         * ipa-split.c (split_function): Skip the return value for the split
24125         part if it doesn't return.
24127 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24129         PR tree-optimization/49642
24130         * ipa-split.c (forbidden_dominators): New variable.
24131         (check_forbidden_calls): New function.
24132         (dominated_by_forbidden): Likewise.
24133         (consider_split): Check for forbidden dominators.
24134         (execute_split_functions): Initialize and free forbidden
24135         dominators info; call check_forbidden_calls.
24137 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
24139         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
24141 2012-01-11  Nick Clifton  <nickc@redhat.com>
24143         * config/rx/rx.md (return): Define pattern.
24145 2012-01-11  Richard Guenther  <rguenther@suse.de>
24147         * doc/extend.texi (malloc attribute): Adjust according to
24148         implementation.
24150 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
24151             Patrick Marlier  <patrick.marlier@gmail.com>
24153         PR middle-end/51516
24154         * trans-mem.c (get_cg_data): Traverse aliases if requested.
24155         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
24156         (ipa_tm_note_irrevocable): Same.
24157         (ipa_tm_scan_irr_block): Same.
24158         (ipa_tm_decrement_clone_counts): Same.
24159         (ipa_tm_scan_irr_function): Same.
24160         (ipa_tm_create_version_alias): Same.
24161         (ipa_tm_create_version): Same.
24162         (ipa_tm_transform_calls_redirect): Same.
24163         (ipa_tm_transform_calls): Same.
24164         (ipa_tm_transform_transaction): Same.
24165         (ipa_tm_execute): Same.
24167 2012-01-10  Richard Guenther  <rguenther@suse.de>
24169         PR middle-end/51806
24170         * opts.c (common_handle_option): Handle -Werror.
24172 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
24174         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
24175         operand number.
24177 2012-01-10  Jason Merrill  <jason@redhat.com>
24179         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
24180         information.
24182 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24184         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
24185         supports R_386_TLS_GD_PLT reloc.
24186         (gcc_cv_as_ix86_tlsldmplt): Check if linker
24187         supports R_386_TLS_LDM_PLT reloc.
24188         * configure: Regenerate.
24189         * config.in: Regenerate.
24191 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
24193         PR target/49868
24194         Extend __pgmx semantics to linearize memory.
24195         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
24196         determine if code comes inline or from libgcc.
24197         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
24198         (movmem_qi, movmem_qi): Set constraint #2 to "n".
24199         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
24200         (movmemx_qi, movmemx_hi): New insns.
24201         (xload_<mode>_libgcc): Rewrite to new insn condition.
24202         (xload_<mode>): Remove insns.
24203         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
24204         cases that don't satisfy avr_xload_libgcc_p().
24205         (avr_addr_space_convert): Allow converting in any direction.
24206         (avr_addr_space_subset_p): Return always true.
24207         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
24208         (avr_emit_movmemhi): Ditto.
24209         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
24210         (avr_out_movmem): Ditto.
24211         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
24212         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
24213         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
24214         (avr_encode_section_info): Encode 'progmem' in symbol flags.
24215         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
24217 2012-01-10  Richard Guenther  <rguenther@suse.de>
24219         PR tree-optimization/50913
24220         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
24221         Require data-refs to be representable by Graphite with respect
24222         to any loop nest.
24224 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
24226         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
24227         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
24229 2012-01-10  Tom de Vries  <tom@codesourcery.com>
24231         PR rtl-optimization/51271
24232         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
24233         handling annulled branch.
24235 2012-01-10  Richard Henderson  <rth@redhat.com>
24237         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
24238         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
24239         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
24240         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
24241         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
24242         arm_expand_vec_perm_const): New.
24243         * config/arm/arm-protos.h: Update.
24244         * config/arm/neon.md (UNSPEC_VCONCAT): New.
24245         (*neon_vswp<VDQX>): New.
24246         (neon_vcombine<VDX>): Use neon_split_vcombine.
24247         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
24248         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
24249         (vec_perm<VE>): New.
24251 2012-01-10  Richard Henderson  <rth@redhat.com>
24253         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
24254         use it if reload_completed.
24255         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
24256         arm_output_asm_insn, arm_process_output_memory_barrier,
24257         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
24258         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
24259         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
24260         arm_process_output_sync_insn, arm_output_sync_insn,
24261         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
24262         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
24263         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
24264         (emit_unlikely_jump): New.
24265         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
24266         (arm_split_atomic_op): New.
24267         * config/arm/arm-protos.h: Update.
24268         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
24269         (struct arm_sync_generator): Remove.
24270         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
24271         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
24272         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
24273         (VUNSPEC_LL, VUNSPEC_SC): New.
24274         (sync_result, sync_memory, sync_required_value, sync_new_value,
24275         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
24276         (attr length): Don't use arm_sync_loop_insns.
24277         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
24278         (movsfcc, movdfcc): Likewise.
24279         * config/arm/constraints.md (Ua): New.
24280         * config/arm/prediates.md (mem_noofs_operand): New.
24281         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
24282         (sync_clobber, sync_t2_reqd): Remove.
24283         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
24284         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
24285         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
24286         (arm_sync_compare_and_swap<SIDI>): Remove.
24287         (arm_sync_compare_and_swap<NARROW>): Remove.
24288         (arm_sync_lock_test_and_set<SIDI>): Remove.
24289         (arm_sync_lock_test_and_set<NARROW>): Remove.
24290         (arm_sync_new_<syncop><SIDI>): Remove.
24291         (arm_sync_new_<syncop><NARROW>): Remove.
24292         (arm_sync_new_nand<SIDI>): Remove.
24293         (arm_sync_new_nand<NARROW>): Remove.
24294         (arm_sync_old_<syncop><SIDI>): Remove.
24295         (arm_sync_old_<syncop><NARROW>): Remove.
24296         (arm_sync_old_nand<SIDI>): Remove.
24297         (arm_sync_old_nand<NARROW>): Remove.
24298         (*memory_barrier): Merge arm_output_memory_barrier.
24299         (atomic_compare_and_swap<QHSD>): New.
24300         (atomic_compare_and_swap<NARROW>_1): New.
24301         (atomic_compare_and_swap<SIDI>_1): New.
24302         (atomic_exchange<QHSD>): New.
24303         (cas_cmp_operand, cas_cmp_str): New.
24304         (atomic_op_operand, atomic_op_str): New.
24305         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
24306         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
24307         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
24308         (arm_load_exclusive<NARROW>): New.
24309         (arm_load_exclusivesi, arm_load_exclusivedi): New.
24310         (arm_store_exclusive<QHSD>): New.
24312 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
24314         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
24315         reload patterns if -mvsx-scalar-memory.
24317         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
24318         generated, even -mno-vsx-scalar-double was used.
24319         (vsx_xscvdpsp_scalar): Likewise.
24320         (vsx_xscvspdp_scalar2): Likewise.
24322 2012-01-09  Tom de Vries  <tom@codesourcery.com>
24323             Andrew Pinski  <apinski@cavium.com>
24325         PR debug/51471
24326         * reorg.c (fill_slots_from_thread): Don't speculate
24327         frame-related insns.
24329 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
24331         * sched-int.h (bb_note): Move to...
24332         * basic-block.h: ...here.
24333         * haifa-sched.c (bb_note): Move to...
24334         * cfgrtl.c: ...here.
24335         * function.c (next_block_for_reg): New function.
24336         (move_insn_for_shrink_wrap): Likewise.
24337         (prepare_shrink_wrap): Rewrite to use the above.
24339 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
24341         * gimple.c (is_gimple_non_addressable): Remove.
24342         * gimple.h: Remove is_gimple_non_addressable.
24343         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
24344         is_gimple_non_addressable.
24345         * trans-mem.c (expand_assign_tm): Same.
24347 2012-01-09  Richard Guenther  <rguenther@suse.de>
24349         PR tree-optimization/51775
24350         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
24351         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
24353 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
24355         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
24356         tuning parameters.
24357         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
24359 2012-01-09  Richard Guenther  <rguenther@suse.de>
24361         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
24363 2012-01-08  Jan Hubicka  <jh@suse.cz>
24365         PR tree-optimize/51680
24366         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
24367         on when known_vals needs to be computed; cleanup.
24369 2012-01-08  Jan Hubicka  <jh@suse.cz>
24371         PR tree-optimize/51694
24372         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
24374 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
24376         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
24377         for -std=c++98 and -std=c++11 too.
24379 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
24381         * cfgloop.c (cancel_loop): Add free() of bbs array.
24383 2012-01-07  Jan Hubicka  <jh@suse.cz>
24385         PR tree-optimization/51600
24386         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
24387         that benefits small functions.
24389 2012-01-07  Jan Hubicka  <jh@suse.cz>
24391         * ipa-inline.c (want_inline_small_function_p): Fix formating.
24393 2012-01-07  Jan Hubicka  <jh@suse.cz>
24395         PR tree-optimization/51680
24396         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
24397         whose inlining reduce unit size.
24399 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
24401         PR bootstrap/51725
24402         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
24403         Add canonical node to containing_mem chain after the non-canonical
24404         one, even if there weren't any locs to propagate.
24405         (remove_useless_values): Keep only canonical values.
24406         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
24407         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
24408         canonicalize mem_chain elements that are not discarded.
24410 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
24412         PR target/47333
24413         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
24414         before emitting functions.
24416         PR gcov-profile/50127
24417         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
24418         clear_aux_for_blocks.
24420 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
24422         PR debug/51746
24423         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
24425 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
24427         * c-decl.c (ext_block): Moved up.
24428         (collect_all_refs, for_each_global_decl): Take ext_block into account.
24430 2012-01-06  Han Shen  <shenhan@google.com>
24432         Translate built-in include paths for sysroot.
24433         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
24434         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
24436         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
24437         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
24439         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
24440         control whether sysroot should be prepended to gxx include dir.
24442         * configure: Regenerate.
24444 2012-01-06  Torvald Riegel  <triegel@redhat.com>
24446         PR rtl-optimization/51771
24447         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
24448         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
24450 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
24452         PR tree-optimization/51315
24453         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
24454         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
24456 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
24458         PR target/51681
24459         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
24460         for shrp pattern.  Correctly handle and fixup shift variable.
24461         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
24463 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
24465         PR debug/51762
24466         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
24467         note when !ACCUMULATE_OUTGOING_ARGS.
24469 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
24471         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
24472         condition.
24473         (extract_range_from_unary_expr_1): Avoid useless computations.
24475 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
24477         PR rtl-optimization/51767
24478         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
24479         of jump_block and add an extra edge for degenerated asm gotos.
24481         PR middle-end/51768
24482         * stmt.c (check_unique_operand_names): Don't ICE during error
24483         reporting if i is from labels chain.
24485         PR middle-end/44777
24486         * profile.c (branch_prob): Split bbs that have exit edge
24487         and need a fake entry edge too.
24489 2012-01-05  Jan Hubicka  <jh@suse.cz>
24491         PR middle-end/49710
24492         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
24493         unlooping loops.
24495 2012-01-05  Richard Guenther  <rguenther@suse.de>
24497         PR lto/50490
24498         * tree-streamer-out.c (write_ts_optimization): New function.
24499         (streamer_write_tree_body): Call it.
24500         * tree-streamer-in.c (lto_input_ts_optimization): New function.
24501         (streamer_read_tree_body): Call it.
24502         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
24504 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
24506         PR middle-end/51761
24507         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
24508         * gimplify.c (gimplify_cleanup_point_expr): Save and set
24509         in_cleanup_point_expr before gimplify_stmt call and restore it
24510         afterwards.
24511         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
24512         in_cleanup_point_expr is false.
24514 2012-01-05  Richard Guenther  <rguenther@suse.de>
24516         PR middle-end/51764
24517         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
24518         to c.opt.
24519         * toplev.c (process_options): Reject combining mudflap and LTO.
24520         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
24522 2012-01-05  Richard Guenther  <rguenther@suse.de>
24524         PR tree-optimization/51760
24525         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
24526         not VARYING.
24527         (bit_value_unop): Handle UNDEFINED operands.
24528         (bit_value_binop): Likewise.
24530 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
24532         * config/avr/avr.c (avr_replace_prefix): Remove.
24533         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
24534         (avr_asm_function_rodata_section): Ditto.
24535         (avr_asm_select_section): Ditto.
24537 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24539         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
24540         insertion.
24542 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
24544         PR bootstrap/51648
24545         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
24546         calls that have any non-fake successor edges.
24548         PR debug/51746
24549         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
24551 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24553         PR tree-optimization/51624
24554         * tree-sra.c (build_ref_for_model): When replicating a chain of
24555         COMPONENT_REFs, stop as soon as the offset would become negative.
24557 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
24559         PR debug/51695
24560         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
24561         in .debug_loc on the floor.
24563 2012-01-04  Andrew Pinski  <apinski@cavium.com>
24565         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
24567 2012-01-04  Andrew Pinski  <apinski@cavium.com>
24568             Adam Nemet  <anemet@caviumnetworks.com>
24570         * config/mips/mips.md (size): Add SI and DI.
24571         (SIZE): New mode attribute.
24572         (U): New code attribute.
24573         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
24574         (mips_lbux_<mode>): Delete.
24575         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
24576         (mips_lhx): Use gen_mips_lhx_extsi.
24577         (mips_lhx_<mode>): Delete.
24578         (mips_lwx): Delete.
24579         (mips_l<size>x): New expand.
24580         (mips_lwx_<mode>): Delete.
24581         (mips_l<GPR:size>x_<P:mode>): New pattern.
24582         (*mips_lw<u>x_<P:mode>_ext): Likewise.
24583         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
24584         * config/mips/mips.c (mips_lx_address_p): New function.
24585         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
24586         (dsp64): New availability predicate.
24587         (mips_builtins): Add an entry for __builtin_mips_ldx.
24588         * config/mips/mips.h (ISA_HAS_LBX): New define.
24589         (ISA_HAS_LBUX): Likewise.
24590         (ISA_HAS_LHX): Likewise.
24591         (ISA_HAS_LHUX): Likewise.
24592         (ISA_HAS_LWX): Likewise.
24593         (ISA_HAS_LWUX): Likewise.
24594         (ISA_HAS_LDX): Likewise.
24595         * doc/extend.texi (__builtin_mips_ldx): Document.
24597 2012-01-04  Tristan Gingold  <gingold@adacore.com>
24599         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
24600         when long pointers are used.
24601         * config.build (*-*-*vms*): Handle all OpenVMS targets.
24602         (alpha64-dec-*vms*, alpha*-dec-*vms*)
24603         (ia64-hp-*vms*): Remove.
24604         * config/vms/xm-vms64.h: Delete.
24606 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
24608         PR middle-end/51472
24609         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
24611 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
24613         * opts.c (finish_options): Remove duplicate sorry.
24615 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
24617         PR middle-end/51696
24618         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
24619         correctly.
24621 2012-01-04  Richard Guenther  <rguenther@suse.de>
24623         PR middle-end/51750
24624         * tree.c (size_low_cst): New function.
24625         * tree.h (size_low_cst): Declare.
24626         * fold-const.c (fold_comparison): Use it to extract the low
24627         part of the POINTER_PLUS_EXPR offset.
24629 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
24631         Fix clearing ZERO_REG
24632         * config/avr/avr.md (cc): Add alternative "ldi".
24633         (movqi_insn): Use it in cc attribute.
24634         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
24635         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
24636         (output_reload_insisf): Use ZERO_REG to pre-clear register.
24638 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24640         * configure: Regenerate.
24642 2012-01-04  Richard Guenther  <rguenther@suse.de>
24644         PR tree-optimization/49651
24645         * tree-ssa-structalias.c (type_can_have_subvars): New function.
24646         (var_can_have_subvars): Use it.
24647         (get_constraint_for_1): Only consider subfields if there can be any.
24649 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
24651         PR bootstrap/51725
24652         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
24653         to its new canonical_cselib_val and the cselib_val was in
24654         first_containing_mem chain, but the canonical_cselib_val was not,
24655         add the latter into the chain.
24656         (cselib_invalidate_mem): Compare canonical_cselib_val of
24657         addr_list chain elt with v.
24659         PR pch/51722
24660         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
24661         dwarf2out_undef): Allocate e.info using ggc_strdup instead
24662         of xstrdup.
24663         (output_macinfo_op): Don't ggc_strdup fd->filename.
24664         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
24665         then ggc_strdup it.  Don't free inc->info or cur->info.
24666         (output_macinfo): Don't free ref->info or file->info.
24668 2012-01-03  Ira Rosen  <irar@il.ibm.com>
24670         PR tree-optimization/51269
24671         * tree-vect-loop-manip.c (set_prologue_iterations): Make
24672         first_niters a pointer.
24673         (slpeel_tree_peel_loop_to_edge): Likewise.
24674         (vect_do_peeling_for_loop_bound): Update call to
24675         slpeel_tree_peel_loop_to_edge.
24676         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
24677         here.  Remove it from the parameters list.
24678         (vect_do_peeling_for_alignment): Update calls and compute
24679         wide_prolog_niters.
24681 2012-01-03  Richard Guenther  <rguenther@suse.de>
24683         PR tree-optimization/51070
24684         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
24685         Properly handle calls.
24687 2012-01-03  Richard Guenther  <rguenther@suse.de>
24689         PR tree-optimization/51692
24690         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
24691         the LHS of allocation stmts.
24693 2012-01-03  Olivier Hainque  <hainque@adacore.com>
24695         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
24697 2012-01-03  Olivier Hainque  <hainque@adacore.com>
24699         * collect2.c (main): In AIX specific computations for vector
24700         insertions, use CONST_CAST2 to cast from char ** to const char **.
24702 2012-01-03  Richard Guenther  <rguenther@suse.de>
24704         PR debug/51650
24705         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
24706         the context of a limbo DIE when it does not already exist.
24708 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
24710         PR tree-optimization/51719
24711         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
24712         but direct call is, clear direct call's lhs and don't add fallthrough
24713         edge from dcall_bb to join_bb and PHIs.
24715 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24717         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
24718         the instructions emitted by the pattern.
24719         ("*TDC_insn_<mode>"): Add comment.
24721 2012-01-03  Richard Guenther  <rguenther@suse.de>
24723         PR middle-end/51730
24724         * fold-const.c (fold_comparison): Properly canonicalize
24725         tree offset and HOST_WIDE_INT bit position.
24727 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
24729         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
24730         operands for extzv pattern.
24732 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
24734         PR bootstrap/51725
24735         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
24736         on mem_elt first.
24738 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
24740         * doc/invoke.texi (-flto and related options): Copy-edit.
24742 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
24744         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
24746 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
24748         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
24749         New patterns.
24751 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
24753         * expr.h (move_by_pieces_ninsns): Declare.
24754         * expr.c (move_by_pieces_ninsns): Make external.
24755         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
24756         (mips_store_by_pieces_p): Likewise.
24757         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
24758         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
24759         * config/mips/mips.c (mips_move_by_pieces_p): New function.
24760         (mips_store_by_pieces_p): Likewise.
24762 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
24764         * passes.c (register_one_dump_file): Free full_name.
24766         * reload1.c (reload): Don't allocate reg_max_ref_width here.
24767         (calculate_elim_costs_all_insns): Free offsets_at and
24768         offsets_known_at at the end and clear the pointers.
24770 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
24772         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
24773         this option introduced in r180739.
24775 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
24777         PR target/51345
24778         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
24779         (tmake_file target=avr): Add avr/t-multilib.
24781         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
24782         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
24783         * config/avr/genmultilib.awk: New file.
24784         * config/avr/t-multilib: New auto-generated file.
24785         * config/avr/multilib.h: New auto-generated file.
24786         * config/avr/t-avr (AVR_MCUS): New variable.
24787         (genopt.sh): Use it.
24788         (s-mlib): Depend on t-multilib.
24789         (t-multilib, multilib.h): New dependencies.
24790         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
24791         (MULTILIB_OPTIONS): Remove.
24792         (MULTILIB_MATCHES): Remove.
24793         (MULTILIB_DIRNAMES): Remove.
24794         (MULTILIB_EXCEPTIONS): Remove:
24795         * config/avr/genopt.sh: Don't use hard coded file name;
24796         pass AVR_MCUS from t-avr instead.
24798 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
24800         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
24802 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
24804         Implement light-weight DImode support.
24805         * config/avr/avr-dimode.md: New file.
24806         * config/avr/avr.md: Include it.
24807         (adjust_len): Add plus64, compare64.
24808         (HIDI): Remove code iterator.
24809         (code_stdname): New code attribute.
24810         (rotx, rotsmode): Remove DI.
24811         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
24812         as code iterator.
24813         * config/avr/avr-protos.h (avr_have_dimode): New.
24814         (avr_out_plus64, avr_out_compare64): New.
24815         * config/avr/avr.c (avr_out_compare): Handle DImode.
24816         (avr_have_dimode): New variable definition and initialization.
24817         (avr_out_compare64, avr_out_plus64): New functions.
24818         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
24819         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
24820         (avr_compare_pattern): Skip DImode comparisons.
24822 2012-01-02  Revital Eres  <revital.eres@linaro.org>
24824         * ddg.c (def_has_ccmode_p): New function.
24825         (add_cross_iteration_register_deps,
24826         create_ddg_dep_from_intra_loop_link): Call it.
24828 2012-01-02  Richard Guenther  <rguenther@suse.de>
24830         PR other/51679
24831         * invoke.texi (fassociative-math): Remove spurious paranthesis.
24833 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
24835         * gcc.c (process_command): Update copyright notice dates.
24836         * gcov.c (print_version): Likewise.
24837         * gcov-dump.c (print_version): Likewise.
24838         * mips-tfile.c (main): Likewise.
24839         * mips-tdump.c (main): Likewise.
24841 2012-01-01  Ira Rosen  <irar@il.ibm.com>
24843         PR tree-optimization/51704
24844         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
24845         a use is inside the basic block or loop before accessing its vect info.
24847 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
24849         PR rtl-optimization/51069
24850         * cfgloopmanip.c (remove_path): Removing path making irreducible
24851         region unconditional makes BB part of the region.
24853 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
24855         PR tree-optimization/51683
24856         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
24857         calls with side-effects.
24858         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
24860 Copyright (C) 2012 Free Software Foundation, Inc.
24862 Copying and distribution of this file, with or without modification,
24863 are permitted in any medium without royalty provided the copyright
24864 notice and this notice are preserved.