OSDN Git Service

6c084c88ffb5f9fa6fcbb8a8c90993ccab3e6246
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2
3        PR target/50106
4        * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
5         reg size from 1-3.
6
7 2011-10-20  Richard Guenther  <rguenther@suse.de>
8
9         * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
10         and rotates to the set of expensive operations.
11
12 2011-10-19  David S. Miller  <davem@davemloft.net>
13
14         * config/sparc/sparc.c (sparc_expand_move): Use
15         can_create_pseudo_p.
16         (sparc_emit_set_const32): Likewise.
17         (sparc_emit_set_const64_longway): Likewise.
18         (sparc_emit_set_const64): Likewise.
19         (sparc_legitimize_pic_address): Likewise.
20         (memory_ok_for_ldd): Likewise.
21
22 2011-10-20  Dehao Chen  <dehao@google.com>
23
24         * profile.c (compute_branch_probabilities): Compute and dump the
25         overlap between the static estimation and the instrumentation profile.
26         (OVERLAP_BASE): New macro.
27         (compute_frequency_overlap): New function
28
29 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
30
31         * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
32         d->op1 instead of d->op0 for the second vpshufb.
33         (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
34         (ix86_expand_vec_perm_const): If mask indicates two operands are
35         needed, but both are the same and expanding them as d.op0 == d.op1
36         failed, retry with d.op0 != d.op1.
37         (ix86_expand_vec_perm_builtin): Likewise.  Handle sorry printing
38         also for d.nelt == 32.
39
40         PR middle-end/50754
41         * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
42         VEC_PERM_EXPR.
43
44 2011-10-19  Bernd Schmidt  <bernds@codesourcery.com>
45
46         * regrename.h: New file.
47         * regrename.c: Include it.  Also include "emit-rtl.h".
48         (struct du_head, struct du_chain, du_head_p DEF_VEC and
49         DEF_VEC_ALLOC_P): Move to regrename.h.
50         (do_replace): Remove declaration.
51         (insn_rr): New variable.
52         (cur_operand): New static variable.
53         (regrename_chain_from_id): Renamed from chain_from_id and no longer
54         static.  All callers changed.
55         (record_operand_use): New static function.
56         (scan_rtx_reg): Use it.
57         (find_best_rename_reg): New function, broken out of rename_chains.
58         (rename_chains): Use it.  Don't update chain regno and nregs here, ...
59         (regrename_do_replace): ... do it here instead.  Renamed from
60         do_replace, and no longer static.  All callers changed.
61         (regrename_analyze): No longer static.  New arg bb_mask.
62         All callers changed.  If bb_mask is nonzero, use it to limit the
63         number of basic blocks we analyze.  If we failed to analyze a block,
64         clear insn operand data.
65         (record_out_operands): New arg insn_info.  Update cur_operand if it is
66         nonnull.
67         (build_def_use): If insn_rr is nonnull, pass an insn_info to
68         record_out_operands, and update cur_operand here as well.
69         (regrename_init, regrename_finish): New functions.
70         (regrename_optimize): Use them.
71         * Makefile.in (regrename.o): Adjust dependencies.
72
73 2011-10-19  Tom de Vries  <tom@codesourcery.com>
74
75         PR tree-optimization/50769
76         * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
77         unconditionally.  Handle case that phi_vuse2 is not an SSA_NAME.  Add
78         dummy argument .MEM to phi when increasing number of arguments of phi by
79         redirecting edges to the block with phi.
80
81 2011-10-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
82
83         PR bootstrap/50777
84         * configure.ac: Save and restore CXXFLAGS around
85         gcc_AC_CHECK_DECLS uses.
86         Check for madvise() declaration with g++ if --enable-build-with-cxx.
87         * configure: Regenerate.
88         * config.in: Regenerate.
89         * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
90
91 2011-10-19  Alexandre Oliva  <aoliva@redhat.com>
92
93         PR debug/49310
94         * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
95         (variable_part): Replace offset with union.
96         (enum onepart_enum, onepart_enum_t): New.
97         (variable_def): Drop cur_loc_changed, add onepart.
98         (value_chain_def, const_value_chain): Remove.
99         (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
100         (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
101         (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
102         (value_chain_pool, value_chains): Remove.
103         (dropped_values): New.
104         (struct parm_reg): Only if HAVE_window_save.
105         (vt_stack_adjustments): Don't record register arguments.
106         (dv_as_rtx): New.
107         (dv_onepart_p): Return a onepart_enum_t.
108         (onepart_pool): New.
109         (dv_pool): Remove.
110         (dv_from_rtx): New.
111         (variable_htab_free): Release onepart aux data.  Reset flags.
112         (value_chain_htab_hash, value_chain_htab_eq): Remove.
113         (unshare_variable): Use onepart field.  Propagate onepart aux
114         data or offset.  Drop cur_loc_changed.
115         (val_store): Cope with NULL insn.  Rephrase dump output.  Check
116         for unsuitable locs.  Add FIXME on using cselib locs.
117         (val_reset): Remove FIXME of unfounded concerns.
118         (val_resolve): Check for unsuitable locs.  Add FIXME on using
119         cselib locs.
120         (variable_union): Use onepart field, adjust access to offset.
121         (NO_LOC_P): New.
122         (VALUE_CHANGED, DECL_CHANGED): Update doc.
123         (set_dv_changed): Clear NO_LOC_P when changed.
124         (find_loc_in_1pdv): Use onepart field.
125         (intersect_loc_chains): Likewise.
126         (unsuitable_loc): New.
127         (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
128         (add_value_chain, add_value_chains): Remove.
129         (add_cselib_value_chains, remove_value_chain): Likewise.
130         (remove_value_chains, remove_cselib_value_chains): Likewise.
131         (canonicalize_loc_order_check): Use onepart.  Drop cur_loc_changed.
132         (canonicalize_values_star, canonicalize_vars_star): Use onepart.
133         (variable_merge_over_cur): Likewise.  Adjust access to offset.
134         Drop cur_loc_changed.
135         (variable_merge_over_src): Use onepart field.
136         (remove_duplicate_values): Likewise.
137         (variable_post_merge_new_vals): Likewise.
138         (find_mem_expr_in_1pdv): Likewise.
139         (dataflow_set_preserve_mem_locs): Likewise.  Drop cur_loc_changed
140         and value chains.
141         (dataflow_set_remove_mem_locs): Likewise.  Use VAR_LOC_FROM.
142         (variable_different_p): Use onepart field.  Move onepart test out
143         of the loop.
144         (argument_reg_set): Drop.
145         (add_uses, add_stores): Preserve but do not record in dynamic
146         tables equivalences for ENTRY_VALUEs and CFA_based addresses.
147         Avoid unsuitable address expressions.
148         (EXPR_DEPTH): Unlimit.
149         (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
150         (prepare_call_arguments): Use DECL_RTL_IF_SET.
151         (dump_var): Adjust access to offset.
152         (variable_from_dropped, recover_dropped_1paux): New.
153         (variable_was_changed): Drop cur_loc_changed.  Use onepart.
154         Preserve onepart aux in empty_var.  Recover empty_var and onepart
155         aux from dropped_values.
156         (find_variable_location_part): Special-case onepart.  Adjust
157         access to offset.
158         (set_slot_part): Use onepart.  Drop cur_loc_changed.  Adjust
159         access to offset.  Initialize onepaux.  Drop value chains.
160         (delete_slot_part): Drop value chains.  Use VAR_LOC_FROM.
161         (VEC (variable, heap), VEC (rtx, stack)): Define.
162         (expand_loc_callback_data): Drop dummy, cur_loc_changed,
163         ignore_cur_loc.  Add expanding, pending, depth.
164         (loc_exp_dep_alloc, loc_exp_dep_clear): New.
165         (loc_exp_dep_insert, loc_exp_dep_set): New.
166         (notify_dependents_of_resolved_value): New.
167         (update_depth, vt_expand_var_loc_chain): New.
168         (vt_expand_loc_callback): Revamped.
169         (resolve_expansions_pending_recursion): New.
170         (INIT_ELCD, FINI_ELCD): New.
171         (vt_expand_loc): Use the new macros above.  Drop ignore_cur_loc
172         parameter, adjust all callers.
173         (vt_expand_loc_dummy): Drop.
174         (vt_expand_1pvar): New.
175         (emit_note_insn_var_location): Operate on non-debug decls only.
176         Revamp multi-part cur_loc recomputation and one-part expansion.
177         Drop cur_loc_changed.  Adjust access to offset.
178         (VEC (variable, heap)): Drop.
179         (changed_variables_stack, changed_values_stack): Drop.
180         (check_changed_vars_0, check_changed_vars_1): Remove.
181         (check_changed_vars_2, check_changed_vars_3): Remove.
182         (values_to_stack, remove_value_from_changed_variables): New.
183         (notify_dependents_of_changed_value, process_changed_values): New.
184         (emit_notes_for_changes): Revamp onepart updates.
185         (emit_notes_for_differences_1): Use onepart.  Drop cur_loc_changed
186         and value chains.  Propagate onepaux.  Recover empty_var and onepaux
187         from dropped_values.
188         (emit_notes_for_differences_2): Drop value chains.
189         (emit_notes_in_bb): Adjust.
190         (vt_emit_notes): Drop value chains, changed_variables_stack.
191         Initialize and release dropped_values.
192         (create_entry_value): Revamp.
193         (vt_add_function_parameter): Use new interface.
194         (note_register_arguments): Remove.
195         (vt_initialize): Drop value chains and register arguments.
196         (vt_finalize): Drop value chains.  Release windowed_parm_regs only
197         if HAVE_window_save.
198         * rtl.h: Document various pass-local uses of RTL flags.
199         * tree.h (DECL_RTL_KNOWN_SET): New.
200         * doc/invoke.texi (param max-vartrack-expr-depth): Update
201         description and default.
202
203 2011-10-19  Georg-Johann Lay  <avr@gjlay.de>
204
205         PR target/50447
206         * config/avr/avr.md (cc): New alternative out_plus_noclobber.
207         (adjust_len): Ditto.
208         (addhi3): Don't pipe through short; use gen_int_mode instead.
209         Prior to reload, expand to gen_addhi3_clobber.
210         (*addhi3): Use avr_out_plus_noclobber if applicable, use
211         out_plus_noclobber in cc and adjust_len attribute.
212         (addhi3_clobber): 2 new RTL peepholes.
213         (addhi3_clobber): New insn.
214         * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
215         * config/avr/avr.c (avr_out_plus_noclobber): New function.
216         (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
217         (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
218         Set cc0 to set_zn for adiw on 16-bit values.
219         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
220         (expand_epilogue): No need to add 0 to frame_pointer_rtx.
221
222 2011-10-19  Richard Guenther  <rguenther@suse.de>
223
224         PR middle-end/50780
225         * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
226         the condition is properly gimple before using it.
227         * tree-eh (stmt_could_throw_1_p): Properly extract the
228         operation type from comparisons.
229
230 2011-10-19  Roland Stigge  <stigge@antcom.de>
231
232         PR translation/48638
233         * plugin.c (add_new_plugin): Fix typo in fatal_error message.
234
235 2011-10-19  Roland Stigge  <stigge@antcom.de>
236
237         PR translation/49517
238         * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
239
240 2011-10-19  Richard Guenther  <rguenther@suse.de>
241
242         PR middle-end/50768
243         * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
244
245 2011-10-19  Andrey Belevantsev  <abel@ispras.ru>
246
247         PR rtl-optimization/50340
248         * sel-sched-ir.c (update_target_availability): LHS register
249         availability is not known if the unavailable LHS of the other
250         expression is a different register.
251
252 2011-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
253
254         PR target/50310
255         * config/spu/spu.c (spu_emit_vector_compare): Support unordered
256         floating-point comparisons.
257
258 2011-10-19  Jan Hubicka  <jh@suse.cz>
259
260         * cgraphunit.c (handle_alias_pairs): Also handle wekref with destination
261         declared.
262         (output_weakrefs): New function.
263         * varpool.c (varpool_create_variable_alias): Handle external aliases.
264
265 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
266
267         * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
268         second argument instead of mode.
269
270 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
271
272         * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
273         mode SUBREG of operands[0] as target.
274         (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
275         (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
276         (expand_vec_perm_1): Handle identity and some broadcast
277         permutations.
278         (expand_vec_perm_interleave2): Handle also 32-byte modes, using
279         vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
280         For d->testing_p return true earlier to avoid creating more GC
281         garbage.
282         (expand_vec_perm_vpermq_perm_1): New function.
283         (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
284         earlier to avoid creating more GC garbage.  Fix handling of
285         V16HImode.  Avoid some SUBREGs in SET_DEST.
286         (expand_vec_perm_broadcast_1): Return false for 32-byte integer
287         vector modes.
288         (expand_vec_perm_vpshufb4_vpermq2): New function.
289         (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
290         and expand_vec_perm_vpshufb4_vpermq2.
291
292 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
293
294         * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
295         before exiting.
296
297 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
298
299         PR tree-optimization/50717
300
301         * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
302         parameter.  Calculate 'type' from stmt.
303         (convert_mult_to_widen): Update call the is_widening_mult_p.
304         (convert_plusminus_to_widen): Likewise.
305
306 2011-10-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
307
308         * config/spu/spu.c (struct machine_function): New data structure.
309         (spu_init_machine_status): New function.
310         (spu_option_override): Install it.
311         (get_pic_reg): Set and use cfun->machine->pic_reg.
312         (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
313         (need_to_save_reg): Use cfun->machine->pic_reg instead of
314         checking crtl->uses_pic_offset_table.
315         (spu_expand_prologue): Likewise.
316
317 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
318
319         PR tree-optimization/50735
320         * function.c (gimplify_parameters): Use create_tmp_var instead of
321         create_tmp_reg.  If parm is not TREE_ADDRESSABLE and type is complex
322         or vector type, set DECL_GIMPLE_REG_P.
323
324 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
325
326         * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
327         * config/arm/arm.opt: Add 'native' processor_type and
328         arm_arch enum values.
329         * config/arm/arm.h (host_detect_local_cpu): New prototype.
330         (EXTRA_SPEC_FUNCTIONS): New define.
331         (MCPU_MTUNE_NATIVE_SPECS): New define.
332         (DRIVER_SELF_SPECS): New define.
333         * config/arm/driver-arm.c: New file.
334         * config/arm/x-arm: New file.
335         * doc/invoke.texi (ARM Options): Document -mcpu=native,
336         -mtune=native and -march=native.
337
338 2011-10-18  Alexander Monakov  <amonakov@ispras.ru>
339
340         PR rtl-optimization/50205
341         * sel-sched.c (count_occurrences_1): Simplify on the assumption that
342         p->x is a register.  Forbid substitution when the same register is
343         found in a different mode.
344         (count_occurrences_equiv): Assert that 'what' is a register.
345
346 2011-10-18  Richard Guenther  <rguenther@suse.de>
347
348         PR tree-optimization/50767
349         * tree-ssa-pre.c (create_expression_by_pieces): Update the
350         folded statement.
351
352 2011-10-18  Julian Brown  <julian@codesourcery.com>
353
354         * config/arm/arm.c (arm_block_move_unaligned_straight)
355         (arm_adjust_block_mem, arm_block_move_unaligned_loop)
356         (arm_movmemqi_unaligned): New.
357         (arm_gen_movmemqi): Support unaligned block copies.
358
359 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
360
361         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
362         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
363         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
364         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
365         (op_code_prio): Likewise.
366         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
367         * optabs.c (optab_for_tree_code): Handle
368         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
369         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
370         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
371         * genopinit.c (optabs): Initialize the new optabs.
372         * expr.c (expand_expr_real_2): Handle
373         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
374         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
375         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
376         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
377         VEC_WIDEN_LSHIFT_LO_EXPR): New.
378         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
379         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
380         vect_recog_widen_shift_pattern.
381         (vect_handle_widen_mult_by_const): Rename...
382         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
383         Add a new argument, update documentation.
384         (vect_recog_widen_mult_pattern): Assume that only second
385         operand can be constant.  Update call to
386         vect_handle_widen_op_by_const.
387         (vect_recog_over_widening_pattern): Fix typo.
388         (vect_recog_widen_shift_pattern): New.
389         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
390         widening shifts.
391         (supportable_widening_operation): Likewise.
392         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
393         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
394         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
395         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
396         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
397         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
398         Likewise.
399         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
400         New.
401         * config/arm/iterators.md (V_innermode): New.
402         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
403         for widening shift.
404
405 2011-10-18  Richard Guenther  <rguenther@suse.de>
406
407         * tree-ssa-alias.h (struct pt_solution): Remove
408         vars_contains_restrict member.
409         (pt_solutions_same_restrict_base): Remove.
410         (pt_solution_set): Adjust.
411         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
412         vars_contains_restrict handling.
413         (dump_points_to_solution): Likewise.
414         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
415         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
416         field.
417         (new_var_info): Do not initialize it.
418         (ipa_escaped_pt): Adjust.
419         (make_constraint_from_restrict): Make the tag global.
420         (make_constraint_from_global_restrict): New function.
421         (make_constraint_from_heapvar): Remove.
422         (create_variable_info_for): Do not make restrict vars point
423         to NONLOCAL.
424         (intra_create_variable_infos): Likewise.
425         (find_what_var_points_to): Remove vars_contains_restrict handling.
426         (pt_solution_set): Adjust.
427         (pt_solution_ior_into): Likewise.
428         (pt_solutions_same_restrict_base): Remove.
429         (compute_points_to_sets): Do not test is_restrict_var.
430         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
431         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
432
433 2011-10-18  Tom de Vries  <tom@codesourcery.com>
434
435         PR tree-optimization/50672
436         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
437         factored out of ...
438         (mark_virtual_phi_result_for_renaming): Use
439         mark_virtual_operand_for_renaming.
440         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
441         * tree-ssa-tail-merge.c (release_last_vdef): New function.
442         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
443         deleted basic block.
444         (tail_merge_optimize): Add argument to call to purge_bbs.
445
446 2011-10-18  Richard Guenther  <rguenther@suse.de>
447
448         PR middle-end/50716
449         * expr.c (get_object_or_type_alignment): New function.
450         (expand_assignment): Use it.
451         (expand_expr_real_1): Likewise.
452
453 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
454
455         PR bootstrap/50760
456         * input.c (dump_line_table_statistics): Use long, not size_t.
457
458 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
459
460         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
461
462 2011-10-17  Simon Baldwin  <simonb@google.com>
463             Ian Lance Taylor  <iant@google.com>
464
465         * configure.ac: Add --with-native-system-header-dir.  Set and
466         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
467         when setting target_header_dir.
468         * config.gcc: Always set native_system_header_dir.
469         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
470         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
471         use i386/t-djgpp.
472         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
473         native_system_header_dir.
474         (spu-*-elf*): Set native_system_header_dir.
475         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
476         @NATIVE_SYSTEM_HEADER_DIR@.
477         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
478         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
479         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
480         STANDARD_INCLUDE_COMPONENT.
481         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
482         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
483         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
484         STANDARD_INCLUDE_COMPONENT.
485         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
486         * config/i386/t-mingw-w32: Likewise.
487         * config/i386/t-mingw-w64: Likewise.
488         * config/spu/t-spu-elf: Likewise.
489         * config/i386/t-djgpp: Remove.
490         * config/t-gnu: Remove.
491         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
492         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
493         STANDARD_INCLUDE_COMPONENT.
494         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
495         * config/spu/spu-elf.h: Likewise.
496         * config/vms/xm-vms.h: Likewise.
497         * config/gnu.h: Likewise.
498         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
499         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
500         NATIVE_SYSTME_HEADER_COMPONENT.
501         * doc/install.texi (Configuration): Document
502         --with-native-system-header-dir.  Mention it in the documentation
503         for --with-sysroot and --with-build-sysroot.
504         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
505         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
506         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
507         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
508         * doc/fragments.texi (Target Fragment): Don't document
509         NATIVE_SYSTEM_HEADER_DIR.
510         * configure, doc/tm.texi: Rebuild.
511
512 2011-10-17  Richard Henderson  <rth@redhat.com>
513
514         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
515         is the constraint.
516
517         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
518         patterns.
519         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
520         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
521
522 2011-10-17  David S. Miller  <davem@davemloft.net>
523
524         * config/sparc/sparc-modes.def: Add single entry vector modes for
525         DImode and SImode.
526         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
527         mode iterators.
528         (mov<V32:mode>): Revert back to plain SFmode pattern.
529         (*movsf_insn): Likewise.
530         (mov<V64:mode>): Revert back to plain DFmode pattern.
531         (*movdf_insn_sp32): Likewise.
532         (*movdf_insn_sp32_v9): Likewise.
533         (*movdf_insn_sp64): Likewise.
534         (V64 mode splitters) Likewise.
535         (addsi3): Remove VIS alternatives.
536         (subsi3): Likewise.
537         (and<V64I:mode>3): Revert to DImode only pattern.
538         (and<V64I:mode>3_sp32): Likewise.
539         (*and<V64I:mode>3_sp64): Likewise.
540         (and<V32I:mode>3): Likewise.
541         (*and_not_<V64I:mode>_sp32): Likewise.
542         (*and_not_<V64I:mode>_sp64): Likewise.
543         (*and_not_<V32I:mode>): Likewise.
544         (ior<V64I:mode>3): Likewise.
545         (*ior<V64I:mode>3_sp32): Likewise.
546         (*ior<V64I:mode>3_sp64): Likewise.
547         (ior<V32I:mode>3): Likewise.
548         (*or_not_<V64I:mode>_sp32): Likewise.
549         (*or_not_<V64I:mode>_sp64): Likewise.
550         (*or_not_<V32I:mode>): Likewise.
551         (xor<V64I:mode>3): Likewise.
552         (*xor<V64I:mode>3_sp32): Likewise.
553         (*xor<V64I:mode>3_sp64): Likewise.
554         (xor<V32I:mode>3): Likewise.
555         (V64I mode splitters): Likewise.
556         (*xor_not_<V64I:mode>_sp32): Likewise.
557         (*xor_not_<V64I:mode>_sp64): Likewise.
558         (*xor_not_<V32I:mode>): Likewise.
559         (one_cmpl<V64I:mode>2): Likewise.
560         (*one_cmpl<V64I:mode>2_sp32): Likewise.
561         (*one_cmpl<V64I:mode>2_sp64): Likewise.
562         (one_cmpl<V32I:mode>2): Likewise.
563         (VM32, VM64, VMALL): New mode iterators.
564         (vbits, vconstr, vfptype): New mode attributes.
565         (mov<VMALL:mode>): New expander.
566         (*mov<VM32:mode>_insn): New insn.
567         (*mov<VM64:mode>_insn_sp64): New insn.
568         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
569         specifically for the register to memory case.
570         (vec_init<mode>): New expander.
571         (VADDSUB): New mode iterator.
572         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
573         with...
574         (<plusminus_insn><mode>3): New consolidated pattern.
575         (VL): New mode iterator for logical operations.
576         (vlsuf): New more attribute.
577         (vlop): New code iterator.
578         (vlinsn, vlninsn): New code attributes.
579         (<code><mode>3): New insn to non-negated vector logical ops.
580         (*not_<code><mode>3): Likewise for negated variants.
581         (*nand<mode>_vis): New insn.
582         (vlnotop): New code iterator.
583         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
584         (one_cmpl<mode>2): New insn.
585         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
586         (bshuffle<VM64:mode>_vis): Likewise.
587         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
588         (fp<plusminus_insn>64_vis): Use V1DI mode.
589         (VASS mode iterator): Use V1SI not SI mode.
590         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
591         single-entry vector mode changes.
592         (sparc_expand_builtin): Likewise.
593         (sparc_expand_vector_init): New function.
594         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
595
596 2011-10-17  Kai Tietz  <ktietz@redhat.com>
597
598         * fold-const.c (simple_operand_p_2): New function.
599         (fold_truthop): Rename to
600         (fold_truth_andor_1): function name.
601         Additionally remove branching creation for logical and/or.
602         (fold_truth_andor): Handle branching creation for logical and/or here.
603
604 2011-10-17  Andi Kleen  <ak@linux.intel.com>
605
606         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
607
608 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
609
610         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
611         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
612         (adjust_len): Add alternative "call".
613         (isa, enabled): New insn attributes.
614         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
615         mcu_mega attribute.
616         (*sbrx_branch<mode>): Ditto.
617         (*sbrx_and_branch<mode>): Ditto.
618         (*sbix_branch): Ditto.
619         (*sbix_branch_bit7): Ditto.
620         (*sbix_branch_tmp): Ditto.
621         (*sbix_branch_tmp_bit7): Ditto.
622         (jump): Ditto.
623         (negsi2): Use attribute "isa" instead of assembler dialect.
624         (extendhisi2): Ditto.
625         (call_insn, call_value_insn): Set adjust_len attribute.
626         (indirect_jump): Indent to coding rules.
627         (call_prologue_saves): Use isa attribute instead of mcu_mega.
628         (epilogue_restores): Ditto.  Fix setting of SP as described in the
629         RTX pattern.
630         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
631         and *indirect_jump_avr6.
632         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
633         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
634         (*tablejump_rjmp, *tablejump_lib): Remove.
635         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
636
637 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
638
639         PR c++/50757
640         * doc/invoke.texi ([Wnonnull]): Update.
641
642 2011-10-17  Richard Henderson  <rth@redhat.com>
643
644         PR 50746
645         * optabs.c (expand_vec_perm_expr): Fix indexing error.
646
647 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
648
649         * configure.ac: Display `yes' if the SystemTap header has been
650         found.
651         * configure: Regenerate.
652
653 2011-10-08  Andi Kleen  <ak@linux.intel.com>
654
655         PR other/50636
656         * config.in, configure: Regenerate.
657         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
658         * ggc-page.c (USING_MADVISE): Add.
659         (page_entry): Add discarded field.
660         (alloc_page): Check for discarded pages.
661         (release_pages): Add USING_MADVISE branch.
662
663 2011-10-17  Richard Guenther  <rguenther@suse.de>
664
665         PR tree-optimization/50729
666         * tree-vrp.c (extract_range_from_unary_expr_1): Remove
667         redundant test.
668         (simplify_conversion_using_ranges): Properly test the
669         intermediate result.
670
671 2011-10-15  Tom Tromey  <tromey@redhat.com>
672             Dodji Seketeli  <dodji@redhat.com>
673
674         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
675         * ggc-none.c (ggc_round_alloc_size): New public stub function.
676         * ggc-page.c (ggc_alloced_size_order_for_request): New static
677         function.  Factorized from ggc_internal_alloc_stat.
678         (ggc_round_alloc_size): New public function.  Uses
679         ggc_alloced_size_order_for_request.
680         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
681         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
682         from ggc_internal_alloc_zone_stat.
683         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
684         * toplev.c (general_init): Initialize
685         line_table->alloced_size_for_request.
686
687 2011-10-15  Tom Tromey  <tromey@redhat.com>
688             Dodji Seketeli  <dodji@redhat.com>
689
690         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New
691         macros.
692         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
693         new counters.
694         (dump_line_table_statistics): Define new function.
695         * input.h (dump_line_table_statistics): Declare new function.
696         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
697
698 2011-10-15  Tom Tromey  <tromey@redhat.com>
699             Dodji Seketeli  <dodji@redhat.com>
700
701         * doc/cppopts.texi: Document -fdebug-cpp.
702         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor
703         options.
704
705 2011-10-15  Tom Tromey  <tromey@redhat.com>
706             Dodji Seketeli  <dodji@redhat.com>
707
708         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
709         location parameter.
710         * diagnostic.c (diagnostic_report_current_module): Add a location
711         parameter to the function definition.  Use it instead of
712         input_location.  Resolve the virtual location rather than just
713         looking up its map and risking to touch a resulting macro map.
714         (default_diagnostic_starter): Pass the relevant diagnostic
715         location to diagnostic_report_current_module.
716         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
717         (virt_loc_aware_diagnostic_finalizer): Likewise.
718         (diagnostic_report_current_function): Pass the
719         relevant location to diagnostic_report_current_module.
720         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
721         new function.
722         * toplev.c (general_init): By default, use the new
723         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
724         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
725
726 2011-10-15  Tom Tromey  <tromey@redhat.com>
727             Dodji Seketeli  <dodji@redhat.com>
728
729         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
730         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
731         preprocessor related options.
732
733 2011-10-15  Tom Tromey  <tromey@redhat>
734             Dodji Seketeli  <dodji@redhat.com>
735
736         * input.h (struct expanded_location): Move to libcpp/line-map.h.
737         (LOCATION_COLUMN): New accessor
738         (in_system_header_at): Use linemap_location_in_system_header_p.
739         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
740         touching the internals of struct line_map.  Use the public API.
741         instead.
742         (diagnostic_report_diagnostic): Don't use relational operator '<'
743         on virtual locations.  Use linemap_location_before_p instead.
744         * input.c (expand_location): Adjust to expand to the tokens'
745         spelling location when macro location tracking is on.
746
747
748 2011-10-08  Andi Kleen  <ak@linux.intel.com>
749
750         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
751
752 2011-10-13  Andi Kleen  <ak@linux.intel.com>
753
754         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
755
756 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
757
758         PR tree-optimization/50727
759         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
760         DEF_STMT to the list of statements to be replaced by the
761         pattern statements.
762
763 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
764
765         PR rtl-optimization/50615
766         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
767
768 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
769
770         PR tree-optimization/50596
771         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
772         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
773         vect_recog_bool_pattern.
774         (check_bool_pattern, adjust_bool_pattern_cast,
775         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
776
777 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
778
779         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
780         treat the first load of the node as the first element in its
781         interleaving chain.
782         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
783         necessary and possible.
784         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
785         in basic blocks.  Keep all the loads for further permutation check.
786         Use the new argument to determine if there is a permutation.  Update
787         the recursive calls.
788         (vect_supported_load_permutation_p): Allow subchains of interleaving
789         chains in basic block vectorization.
790         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
791         Check load permutation based on the new parameter.
792         (vect_schedule_slp_instance): Don't start from the first element in
793         interleaving chain unless the loads are permuted.
794
795 2011-10-15  Jan Hubicka  <jh@suse.cz>
796
797         PR target/48668
798         PR target/50689
799         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
800         after function body.
801
802 2011-10-15  Richard Henderson  <rth@redhat.com>
803
804         * tree-vect-slp.c: Include langhooks.h.
805         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
806         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
807         mask creation for VEC_PERM_EXPR.
808         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
809         not the builtin.
810         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
811         * Makefile.in (tree-vect-slp.o): Update dependency.
812         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
813
814 2011-10-15  Alan Modra  <amodra@gmail.com>
815
816         PR bootstrap/50738
817         * ifcvt.c (dead_or_predicable): Revert accidental commit with
818         HAVE_simple_return test.
819
820 2011-10-15  Alan Modra  <amodra@gmail.com>
821
822         * ifcvt.c (dead_or_predicable): Disable if-conversion when
823         doing so is likely to kill a shrink-wrapping opportunity.
824
825         PR rtl-optimization/49941
826         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
827
828         * rtl.h (set_return_jump_label): Declare.
829         * function.c (set_return_jump_label): New function, extracted..
830         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
831         another instance to set return jump_label.
832         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
833         * reorg.c (find_end_label): Likewise.
834
835 2011-10-14  David S. Miller  <davem@davemloft.net>
836
837         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
838         with a more complete cpp test.
839         * config/sparc/linux64.h: Likewise.
840         * config/sparc/linux.h: Likewise.
841         * config/sparc/sparc.opt (sparc_debug): New target variable.
842         (mdebug): New target option.
843         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
844         TARGET_DEBUG_OPTIONS): New defines.
845         * config/sparc/sparc.c (debug_target_flag_bits,
846         debug_target_flags): New functions.
847         (sparc_option_override): Add name strings back to cpu_table[].
848         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
849         out the target flags before and after override processing as well
850         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
851         cpu is at least v9.
852
853 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
854
855         PR target/49263
856         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
857         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
858         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
859         and instruction commutative.
860         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
861         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
862         tstsi_t_zero_extract_subreg_xor_little,
863         tstsi_t_zero_extract_subreg_xor_big): New insns.
864         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
865         asm output.
866         (*andsi_compact): Reorder alternatives so that K08 is considered first.
867
868 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
869
870         PR target/50354
871         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
872         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
873
874 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
875
876         * invoke.texi (AVR Options): Avoid \leq{}.
877
878 2011-10-14  Kai Tietz  <ktietz@redhat.com>
879
880         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
881         transformation the operands have compatible types.
882
883 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
884
885         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
886         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
887         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
888         mode iterator and any_extend code iterator.
889         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
890         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
891         also for TARGET_SSE4_1 using pmuldq insn.
892         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
893         (sse2_sse4_1): New code attr.
894         (udot_prodv4si): Macroize using any_extend code iterator.
895         (<s>dot_prodv8si): New expander.
896
897 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
898
899         * config/i386/i386.c (atom_cost): Changed cost for loading
900         QImode using movzbl.
901
902 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
903
904         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
905         change on October 11th, 2011.
906
907 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
908
909         * config/i386/sse.md (vec_interleave_high<mode>,
910         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
911         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
912         (ix86_expand_vec_perm_builtin_1): Call it.
913
914 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
915
916         Fix thinko from r179765
917         * config/avr/avr.c (avr_option_override): Don't override
918         flag_omit_frame_pointer if not actually needed.
919
920 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
921
922         PR target/46278
923         * doc/invoke.texi (AVR Options): Document -mstrict-X.
924
925         * config/avr/avr.opt (-mstrict-X): New option.
926         (avr_strict_X): New variable reflecting -mstrict-X.
927         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
928         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
929         (avr_legitimate_address_p): Pass outer_code to
930         avr_reg_ok_for_addr_p and use that function in case PLUS.
931         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
932         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
933         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
934
935 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
936
937         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
938         of VI_128.
939
940         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
941         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
942         Use <sseinsnmode> instead of TI in mode attr.
943
944 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
945
946         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
947         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
948         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
949         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
950
951 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
952
953         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
954         (arm_output_strex): Support strexd.
955         (arm_output_it): New helper to output it in Thumb2 mode only.
956         (arm_output_sync_loop): Support DI mode.  Change comment to
957         not support const_int.
958         (arm_expand_sync): Support DI mode.
959         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
960         and LDREXD.
961         * config/arm/iterators.md (NARROW): move from sync.md.
962         (QHSD): New iterator for all current ARM integer modes.
963         (SIDI): New iterator for SI and DI modes only.
964         * config/arm/sync.md (sync_predtab): New mode_attr.
965         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
966         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
967         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
968         (sync_nandsi): Fold into sync_nand<mode>.
969         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
970         (sync_new_nandsi): Fold into sync_new_nand<mode>.
971         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
972         (sync_old_nandsi): Fold into sync_old_nand<mode>.
973         (sync_compare_and_swap<mode>): Support SI & DI.
974         (sync_lock_test_and_set<mode>): Likewise.
975         (sync_<sync_optab><mode>): Likewise.
976         (sync_nand<mode>): Likewise.
977         (sync_new_<sync_optab><mode>): Likewise.
978         (sync_new_nand<mode>): Likewise.
979         (sync_old_<sync_optab><mode>): Likewise.
980         (sync_old_nand<mode>): Likewise.
981         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
982         (arm_sync_lock_test_and_setsi): Likewise.
983         (arm_sync_new_<sync_optab>si): Likewise.
984         (arm_sync_new_nandsi): Likewise.
985         (arm_sync_old_<sync_optab>si): Likewise.
986         (arm_sync_old_nandsi): Likewise.
987         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
988         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
989         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
990         (arm_sync_new_nand<mode> NARROW): Likewise.
991         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
992         (arm_sync_old_nand<mode> NARROW): Likewise.
993
994 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
995
996         PR target/48126
997         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
998
999 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
1000
1001         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
1002
1003 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
1004
1005         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
1006
1007 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
1008
1009         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
1010         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
1011
1012 2011-10-14  Richard Guenther  <rguenther@suse.de>
1013
1014         PR tree-optimization/50723
1015         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
1016
1017 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1018
1019         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
1020         objc/objc-map.c.
1021
1022 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
1023
1024         PR c++/17212
1025         * doc/invoke.texi ([Wformat-zero-length]): Update.
1026
1027 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
1028
1029         PR bootstrap/50699
1030         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
1031         build for powerpc targets.  (darwin_patch_builtins): Only build for
1032         powerpc targets.
1033
1034 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
1035
1036         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
1037         (avx_cvtdq2pd256_2): ... this.
1038         (sseunpackfltmode): New mode attr.
1039         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
1040         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
1041         using VI2_AVX2 iterator.
1042         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
1043
1044 2011-10-13  David S. Miller  <davem@davemloft.net>
1045
1046         * config/sparc/sparc.md (plusminus): New code iterator.
1047         (plusminus_insn): New code attr.
1048         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
1049         using plusminus and plusminus_insn.
1050         (fpadd64_vis, fpsub64_vis): Likewise.
1051
1052 2011-10-13  Richard Henderson  <rth@redhat.com>
1053
1054         * doc/md.texi (vec_perm): Document fallback to byte permutation.
1055         * genopinit.c (optabs): Add vec_perm_const.
1056         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
1057         Reject non-vector modes.  Allow fallback to byte permutation.
1058         (expand_vec_perm_expr_1): Split out from ...
1059         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
1060         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
1061         * tree-vect-generic.c (lower_vec_perm): Update for name change.
1062
1063 2011-10-13  Richard Henderson  <rth@redhat.com>
1064
1065         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
1066
1067         * config/rs6000/spu.md (vec_permv16qi): New pattern.
1068
1069         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
1070         * config/i386/i386-protos.h: Update.
1071         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
1072         (vec_perm_const<VEC_PERM_CONST>): New expander.
1073
1074         * optabs.c (expand_vector_broadcast): New.
1075         (expand_binop): Expand scalar shifts of vectors to vector shifts
1076         of vectors, if the former isn't supported.
1077         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
1078         here; always simplify to scalar shift of vector if possible.
1079
1080         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
1081         test for vector splat.
1082
1083 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
1084
1085         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
1086
1087 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
1088             Richard Guenther  <rguenther@suse.de>
1089
1090         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
1091         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
1092
1093 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
1094
1095         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
1096         * config/i386/i386.c (ix86_build_const_vector): Handle
1097         also V32QI, V16QI, V16HI and V8HI modes.
1098         (emit_reduc_half): New function.
1099         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
1100         Use emit_reduc_half helper function.
1101
1102 2011-10-13  Lawrence Crowl  <crowl@google.com>
1103             Diego Novillo  <dnovillo@google.com>
1104
1105         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
1106         (input_function): ... here.
1107         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
1108         (output_function): ... here.
1109
1110 2011-10-13  Gabriel Charette  <gchare@google.com>
1111             Diego Novillo  <dnovillo@google.com>
1112
1113         * streamer-hooks.h (struct streamer_hooks): Add hooks
1114         input_location and output_location.
1115         * lto-streamer-in.c (lto_input_location): Use
1116         streamer_hooks.input_location, if set.
1117         * lto-streamer-out.c (lto_output_location): Use
1118         streamer_hooks.output_location, if set.
1119
1120 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
1121
1122         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
1123         * config/sparc/sparc.opt (mfix-at697f): New option.
1124         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1125         (sparc_reorg): New function.
1126
1127 2011-10-13  Richard Guenther  <rguenther@suse.de>
1128
1129         PR tree-optimization/50712
1130         * ipa-split.c (split_function): Always re-gimplify parameters
1131         when they are not gimple vals before passing them.  Properly
1132         check for type compatibility.
1133
1134 2011-10-13  Tom de Vries  <tom@codesourcery.com>
1135
1136         * function.c (gimplify_parameters): Set number of arguments of call to
1137         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
1138
1139 2011-10-13  Tom de Vries  <tom@codesourcery.com>
1140
1141         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
1142         for static const strings.
1143         * varasm.c (build_constant_desc): Generate the memory location of the
1144         constant using gen_const_mem.
1145
1146 2011-10-13  Richard Guenther  <rguenther@suse.de>
1147
1148         PR tree-optimization/50698
1149         * tree-data-ref.c (split_constant_offset_1): Also process
1150         offsets of &MEM.
1151
1152 2011-10-12  David S. Miller  <davem@davemloft.net>
1153
1154         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
1155         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
1156         unspecs.
1157         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
1158         of a vec_concat.
1159         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
1160         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
1161         Reimplement as unspecs and remove inaccurate comments.
1162         (vis3_shift_patname): New code attr.
1163         (<vis3_shift_insn><vbits>_vis): Rename to
1164         "v<vis3_shift_patname><mode>3".
1165         (vis3_addsub_ss_patname): New code attr.
1166         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
1167         "<vis3_addsub_ss_patname><mode>3".
1168         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
1169         accommodate pattern name changes.
1170
1171         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
1172         to zero when assembler lacks support for such instructions.
1173         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
1174         and MASK_FMAF in defaults when assembler lacks necessary support.
1175
1176 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
1177
1178         * config/i386/sse.md (vec_unpacks_lo_<mode>,
1179         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
1180         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
1181         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
1182         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
1183
1184         * config/i386/sse.md (vec_avx2): New mode_attr.
1185         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
1186         (mul<mode>3): ... this.
1187
1188         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
1189         * config/i386/i386.c (ix86_expand_vec_perm): Handle
1190         V16QImode and V32QImode for TARGET_AVX2.
1191         (MAX_VECT_LEN): Increase to 32.
1192         (expand_vec_perm_blend): Add support for 32-byte integer
1193         vectors with TARGET_AVX2.
1194         (valid_perm_using_mode_p): New function.
1195         (expand_vec_perm_pshufb): Add support for 32-byte integer
1196         vectors with TARGET_AVX2.
1197         (expand_vec_perm_vpshufb2_vpermq): New function.
1198         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
1199         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
1200         with TARGET_AVX2.
1201         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
1202         and expand_vec_perm_vpshufb2_vpermq_even_odd.
1203         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
1204         32-byte integer vector modes.
1205         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
1206         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
1207         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
1208         4 new operands.
1209         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
1210         match_dup, instead add 4 new operands and require they have
1211         right cross-lane values.
1212         (avx2_permv4di): Change into define_expand.
1213         (avx2_permv4di_1): New instruction.
1214         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
1215         for "xm" constrained operand.
1216         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
1217
1218         * config/i386/sse.md (avx2_gathersi<mode>,
1219         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
1220         match_scratch, change memory_operand to register_operand,
1221         add (mem:BLK (scratch)) use.
1222         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
1223         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
1224         add earlyclobber to the output operand and match_scratch,
1225         add (mem:BLK (scratch)) use, change the other mem to match_operand.
1226         Use %p6 instead of %c6 in the pattern.
1227         * config/i386/i386.c (ix86_expand_builtin): Adjust for
1228         operand 2 being a Pmode register_operand instead of memory_operand.
1229
1230 2011-10-12  Kai Tietz  <ktietz@redhat.com>
1231
1232         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
1233
1234 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
1235
1236         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
1237
1238 2011-10-12  Richard Guenther  <rguenther@suse.de>
1239
1240         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
1241         of the first store we visit in a basic-block.
1242         (get_continuation_for_phi): Search for a candidate VUSE that
1243         might dominates all others.  Do pairwise disambiguation against
1244         that candidate.
1245
1246 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
1247
1248         PR tree-optimization/50189
1249         * tree-vrp.c (extract_range_from_assert): Use the type of
1250         the variable, not the limit.
1251
1252 2011-10-12  Richard Guenther  <rguenther@suse.de>
1253
1254         PR tree-optimization/50700
1255         * tree-object-size.c (addr_object_size): Simplify and treat
1256         MEM_REF bases consistently.
1257
1258 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
1259
1260         * function.c (prepare_shrink_wrap, bb_active_p): New function.
1261         (thread_prologue_and_epilogue_insns): Use bb_active_p.
1262         Call prepare_shrink_wrap, then recompute bb_active_p for the
1263         last block.
1264
1265 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
1266
1267         PR c/50565
1268         * convert.c (convert_to_integer): Do not narrow operands of
1269         pointer subtraction.
1270
1271 2011-10-12  Nick Clifton  <nickc@redhat.com>
1272
1273         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
1274         emit a .eabi_attribute assembler directive, possibly with a
1275         comment attached.
1276         * config/arm/arm.c (arm_file_start): Use the new macro.
1277         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
1278
1279 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
1280
1281         PR target/49939
1282         * config/avr/avr.md (*movqi): Rename to movqi_insn.
1283         (*call_insn): Rename to call_insn.
1284         (*call_value_insn): Rename to call_value_insn.
1285         * config/avr/avr.c (avr_2word_insn_p): New static function.
1286         (jump_over_one_insn_p): Use it.
1287
1288 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
1289
1290         * expr.h (copy_blkmode_to_reg): Declare.
1291         * expr.c (copy_blkmode_to_reg): New function.
1292         (expand_assignment): Don't expand register RESULT_DECLs before
1293         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
1294         RESULT_DECL register.
1295         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
1296         * stmt.c (expand_return): Move BLKmode-to-register code into
1297         copy_blkmode_to_reg.
1298
1299 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1300
1301         PR target/49965
1302         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
1303         (mov<F:mode>cc): Likewise.
1304
1305 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1306
1307         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
1308
1309 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1310
1311         * tree.h (built_in_decls): Delete old interface with two parallel
1312         arrays to hold standard builtin declarations, and replace it with
1313         a function based interface that can support creating builtins on
1314         the fly in the future.  Change all uses, and poison the old
1315         names.  Make sure 0 is not a legitimate builtin index.
1316         (implicit_built_in_decls): Ditto.
1317         (built_in_info): Ditto.
1318         (BUILTIN_VALID_P): Ditto.
1319         (builtin_decl_explicit): Ditto.
1320         (builtin_decl_implicit): Ditto.
1321         (set_builtin_decl): Ditto.
1322         (set_builtin_decl_implicit_p): Ditto.
1323         (builtin_decl_explicit_p): Ditto.
1324         (builtin_decl_implicit_p): Ditto.
1325         * tree-complex.c (expand_complex_libcall): Ditto.
1326         * tree-loop-distribution.c (generate_memset_zero): Ditto.
1327         * tree-ssa-strlen.c (get_string_length): Ditto.
1328         (handle_builtin_strcpy): Ditto.
1329         (handle_builtin_strcat): Ditto.
1330         * tree.c (iterative_hash_expr): Ditto.
1331         (local_define_builtin): Ditto.
1332         (build_common_builtin_nodes): Ditto.
1333         * builtins.c (built_in_decls): Ditto.
1334         (implicit_built_in_decls): Ditto.
1335         (built_in_info): Ditto
1336         (expand_builtin_classify_type): Ditto.
1337         (mathfn_built_in_1): Ditto.
1338         (expand_builtin_cexpi): Ditto.
1339         (expand_builtin_mempcpy_args): Ditto.
1340         (expand_builtin_stpcpy): Ditto.
1341         (gimplify_va_arg_expr): Ditto.
1342         (expand_builtin_sync_operation): Ditto.
1343         (build_builtin_expect_predicate): Ditto.
1344         (fold_builtin_memory_op): Ditto.
1345         (fold_builtin_strcpy): Ditto.
1346         (fold_builtin_stpcpy): Ditto.
1347         (fold_builtin_strncpy): Ditto.
1348         (fold_builtin_interclass_mathfn): Ditto.
1349         (fold_builtin_classify): Ditto.
1350         (fold_builtin_2): Ditto.
1351         (fold_builtin_strstr): Ditto.
1352         (fold_builtin_strrchr): Ditto.
1353         (fold_builtin_strpbrk): Ditto.
1354         (fold_builtin_strcat): Ditto.
1355         (fold_builtin_strncat): Ditto.
1356         (fold_builtin_strcspn): Ditto.
1357         (fold_builtin_fputs): Ditto.
1358         (fold_builtin_sprintf): Ditto.
1359         (fold_builtin_snprintf): Ditto.
1360         (expand_builtin_memory_chk): Ditto.
1361         (fold_builtin_memory_chk): Ditto.
1362         (fold_builtin_stxcpy_chk): Ditto.
1363         (fold_builtin_strncpy_chk): Ditto.
1364         (fold_builtin_strcat_chk): Ditto.
1365         (fold_builtin_strncat_chk): Ditto.
1366         (fold_builtin_sprintf_chk_1): Ditto.
1367         (fold_builtin_snprintf_chk_1): Ditto.
1368         (fold_builtin_printf): Ditto.
1369         (fold_builtin_fprintf): Ditto.
1370         (fold_call_stmt): Ditto.
1371         (set_builtin_user_assembler_name): Ditto.
1372         * tree-emutls.c (emutls_common_1): Ditto.
1373         * omp-low.c (scan_omp): Ditto.
1374         (lower_rec_input_clauses): Ditto.
1375         (lower_reduction_clauses): Ditto.
1376         (expand_parallel_call): Ditto.
1377         (expand_task_call): Ditto.
1378         (maybe_catch_exception): Ditto.
1379         (optimize_omp_library_calls): Ditto.
1380         (expand_omp_for_generic): Ditto.
1381         (expand_omp_for_static_nochunk): Ditto.
1382         (expand_omp_for_static_chunk): Ditto.
1383         (expand_omp_sections): Ditto.
1384         (expand_omp_atomic_fetch_op): Ditto.
1385         (expand_omp_atomic_pipeline): Ditto.
1386         (expand_omp_atomic_mutex): Ditto.
1387         (lower_omp_single_simple): Ditto.
1388         (lower_omp_single_copy): Ditto.
1389         (lower_omp_master): Ditto.
1390         (lower_omp_ordered): Ditto.
1391         (lower_omp_critical): Ditto.
1392         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
1393         * builtins.c (DEF_BUILTIN_STUB): Ditto.
1394         (BUILT_IN_NONE): Ditto.
1395         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
1396         * gimple-low.c (lower_function_body): Ditto.
1397         (lower_builtin_setjmp): Ditto.
1398         * c-decl.c (merge_decls): Ditto.
1399         * tree-eh.c (lower_resx): Ditto.
1400         (lower_resx): Ditto.
1401         (lower_eh_dispatch): Ditto.
1402         * function (gimplify_parameters): Ditto.
1403         * c-typeck.c (build_function_call_vec): Ditto.
1404         * gimplify.c (build_stack_save_restore): Ditto.
1405         (gimplify_vla_decl): Ditto.
1406         (gimplify_modify_expr_to_memcpy): Ditto.
1407         (gimplify_modify_expr_to_memset): Ditto.
1408         (gimplify_variable_sized_compare): Ditto.
1409         (gimplify_function_tree): Ditto.
1410         * calls.c (emit_call_1): Ditto.
1411         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
1412         * tree-nested.c (convert_nl_goto_reference): Ditto.
1413         (convert_tramp_reference_op): Ditto.
1414         (finalize_nesting_tree_1): Ditto.
1415         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1416         (tree_ssa_prefetch_arrays): Ditto.
1417         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
1418         * system.h (built_in_decls): Ditto.
1419         (implicit_built_in_decls): Ditto.
1420         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1421         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
1422         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
1423         (ix86_veclibabi_svml): Ditto.
1424         (ix86_veclibabi_acml): Ditto.
1425         * config/vms/vms.c (vms_patch_builtins): Ditto.
1426         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
1427         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
1428         (rs6000_builtin_vectorized_libmass): Ditto.
1429         (rs6000_init_builtins): Ditto.
1430         * config/darwin.c (darwin_override_options): Ditto.
1431         (darwin_patch_builtin): Ditto.
1432         (darwin_rename_builtins): Ditto.
1433         * config/pa/pa.c (pa_init_builtins): Ditto.
1434
1435 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1436
1437         * tree.h (copy_ref_info): Expose existing function.
1438         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
1439         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
1440
1441 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
1442
1443         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
1444         prototype.
1445         (avr_regno_mode_code_ok_for_base_p): New prototype.
1446         * config/avr/avr.h (BASE_REG_CLASS): Remove.
1447         (REGNO_OK_FOR_BASE_P): Remove.
1448         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
1449         (REG_OK_FOR_BASE_STRICT_P): Remove.
1450         (MODE_CODE_BASE_REG_CLASS): New define.
1451         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
1452         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
1453         (avr_regno_mode_code_ok_for_base_p): New function.
1454         (avr_reg_ok_for_addr_p): New static function.
1455         (avr_legitimate_address_p): Use it.  Beautify.
1456
1457 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
1458
1459         PR target/50447
1460         * config/avr/avr.md (cc): Add out_plus attribute alternative.
1461         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
1462         avr_out_plus for all CONST_INT addends.
1463         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
1464         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
1465         CC_OUT_PLUS.
1466         (avr_out_plus_1): Change prototype and report effect on cc0.
1467         (avr_out_plus): Ditto.
1468         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
1469
1470 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1471
1472         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
1473         the extra break.
1474
1475 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1476
1477         * doc/invoke.texi: Document new warning.
1478         * common.opt (Wvector-operation-performance): Define new warning.
1479         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
1480         vector operation.
1481         (exapnd_vector_parallel): Warn about expanded vector operation.
1482         (lower_vec_shuffle): Warn about expanded vector operation.
1483         * c-typeck.c (c_build_vec_perm_expr): Store correct location
1484         when creating VEC_PERM_EXPR.
1485
1486 2011-10-11  Richard Guenther  <rguenther@suse.de>
1487
1488         PR tree-optimization/50204
1489         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
1490         two argument handling from ...
1491         (get_continuation_for_phi): ... here.  Handle arbitrary number
1492         of PHI args.
1493
1494 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
1495
1496         * modulo-sched.c: Fix comment typo.  Mention the possibility
1497         of using scheduling windows of II+1 cycles.
1498
1499 2011-10-11  Tristan Gingold  <gingold@adacore.com>
1500
1501         * doc/invoke.texi (C Dialect Options): Document
1502         -fallow-parameterless-variadic-functions.
1503         * c-parser.c (c_parser_parms_list_declarator): Handle it.
1504
1505 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1506
1507         * config/avr/avr.c (avr_option_override): Set
1508         flag_omit_frame_pointer to 0 if frame pointer is needed for unwinding.
1509
1510 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
1511
1512         PR bootstrap/50665
1513         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
1514         optab_index to enum direct_optab_index.
1515         (vec_perm_optab): Update.
1516
1517 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
1518
1519         * config/cris/cris.c (cris_preferred_reload_class): New function.
1520         (TARGET_PREFERRED_RELOAD_CLASS): Define.
1521         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
1522
1523 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1524
1525         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
1526         !AVR_HAVE_JMP_CALL.
1527         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
1528         (*tablejump_enh, *tablejump): Remove insns.
1529         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
1530         EIJMP for indirect jump.  Use LPM Z+ where available.
1531
1532 2011-10-10  Richard Henderson  <rth@redhat.com>
1533
1534         * doc/md.texi (vec_perm_const): Fix typo in cindex.
1535
1536 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
1537             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
1538
1539         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
1540
1541 2011-10-10  Richard Guenther  <rguenther@suse.de>
1542
1543         PR middle-end/50389
1544         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1545         mark symbols for renaming.  Append the VUSE to all statements
1546         that possibly can have one.
1547
1548 2011-10-10  Richard Guenther  <rguenther@suse.de>
1549
1550         * ipa-split.c (pass_split_functions): Add verification TODOs.
1551         (pass_feedback_split_functions): Likewise.
1552
1553 2011-10-10  Richard Guenther  <rguenther@suse.de>
1554
1555         PR middle-end/50195
1556         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
1557         only when optimizing.
1558
1559 2011-10-10  Nick Clifton  <nickc@redhat.com>
1560
1561         PR middle-end/49801
1562         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
1563         df_get_live_out instead of accessing the bitmaps directly.
1564         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
1565         df_live_add_problem and df_analyze.
1566
1567 2011-10-10  Michael Matz  <matz@suse.de>
1568
1569         PR middle-end/50638
1570         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
1571
1572 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1573
1574         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
1575         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
1576         (node_sched_params): Remove first_reg_move and nreg_moves.
1577         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
1578         (update_node_sched_params): Move up file.
1579         (print_node_sched_params): Print the stage.  Don't dump info related
1580         to first_reg_move and nreg_moves.
1581         (set_columns_for_row): New function.
1582         (set_columns_for_ps): Move up file and use set_columns_for_row.
1583         (schedule_reg_move): New function.
1584         (schedule_reg_moves): Call extend_node_sched_params and
1585         schedule_reg_move.  Extend size of uses bitmap.  Initialize
1586         num_consecutive_stages.  Return false if a move could not be
1587         scheduled.
1588         (apply_reg_moves): Don't emit moves here.
1589         (permute_partial_schedule): Handle register moves.
1590         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
1591         to the same stage-count test as ddg nodes.
1592         (generate_prolog_epilog): Update calls accordingly.
1593         (sms_schedule): Allow move-scheduling to add a new first stage.
1594
1595 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1596
1597         * modulo-sched.c (ps_insn): Adjust comment.
1598         (ps_reg_move_info): New structure.
1599         (partial_schedule): Add reg_moves field.
1600         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
1601         (node_sched_params): Turn first_reg_move into an identifier.
1602         (ps_reg_move): New function.
1603         (ps_rtl_insn): Cope with register moves.
1604         (ps_first_note): Adjust comment and assert that the instruction
1605         isn't a register move.
1606         (node_sched_params): Replace with...
1607         (node_sched_param_vec): ...this vector.
1608         (set_node_sched_params): Adjust accordingly.
1609         (print_node_sched_params): Take a partial schedule instead of a ddg.
1610         Use ps_rtl_insn and ps_reg_move.
1611         (generate_reg_moves): Rename to...
1612         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
1613         move in the partial schedule, but don't emit it here.  Don't perform
1614         register substitutions here either.
1615         (apply_reg_moves): New function.
1616         (duplicate_insns_of_cycles): Use register indices directly,
1617         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
1618         (sms_schedule): Call schedule_reg_moves before committing to
1619         a partial schedule.   Try the next ii if the schedule fails.
1620         Use apply_reg_moves instead of generate_reg_moves.  Adjust
1621         call to print_node_sched_params.  Free node_sched_param_vec
1622         instead of node_sched_params.
1623         (create_partial_schedule): Initialize reg_moves.
1624         (free_partial_schedule): Free reg_moves.
1625
1626 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1627
1628         * modulo-sched.c (ps_insn): Replace node field with an identifier.
1629         (SCHED_ASAP): Replace with..
1630         (NODE_ASAP): ...this macro.
1631         (SCHED_PARAMS): New macro.
1632         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
1633         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
1634         (node_sched_params): Remove asap.
1635         (ps_rtl_insn, ps_first_note): New functions.
1636         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
1637         asap values.
1638         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
1639         (generate_reg_moves): Pass ids to the SCHED_* macros.
1640         (update_node_sched_params): Take a ps insn identifier rather than
1641         a node as parameter.  Use ps_rtl_insn.
1642         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
1643         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
1644         (optimize_sc): Update for above field and SCHED_* macro changes.
1645         Update calls to try_scheduling_node_in_cycle and
1646         update_node_sched_params.
1647         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
1648         macro changes.  Use ps_rtl_insn and ps_first_note.
1649         (sms_schedule): Pass ids to the SCHED_* macros.
1650         (get_sched_window): Adjust for above field and SCHED_* macro changes.
1651         Use NODE_ASAP instead of SCHED_ASAP.
1652         (try_scheduling_node_in_cycle): Remove node parameter.  Update
1653         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
1654         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
1655         (ps_insert_empty_row): Adjust for above field changes.
1656         (compute_split_row): Use ids rather than nodes.
1657         (verify_partial_schedule): Adjust for above field changes.
1658         (print_partial_schedule): Use ps_rtl_insn.
1659         (create_ps_insn): Take an id rather than a node.
1660         (ps_insn_find_column): Adjust for above field changes.
1661         Use ps_rtl_insn.
1662         (ps_insn_advance_column): Adjust for above field changes.
1663         (add_node_to_ps): Remove node parameter.  Update call to
1664         create_ps_insn.
1665         (ps_has_conflicts): Use ps_rtl_insn.
1666         (ps_add_node_check_conflicts): Replace node parameter than an id.
1667
1668 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1669
1670         * modulo-sched.c (undo_replace_buff_elem): Delete.
1671         (generate_reg_moves): Don't build and return an undo list.
1672         (free_undo_replace_buff): Delete.
1673         (sms_schedule): Adjust call to generate_reg_moves.
1674         Don't call free_undo_replace_buff.
1675
1676 2011-10-10  Matthias Klose <doko@ubuntu.com>
1677
1678         * common/config/m32c: Remove empty directory.
1679
1680 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1681
1682         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
1683
1684 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1685
1686         PR target/50652
1687         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
1688         atmega164a to 0x100.
1689
1690 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
1691
1692         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
1693         the replacement if the conversion to the LHS type is not useless.
1694
1695 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
1696
1697         PR tree-optimization/50635
1698         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
1699         DEF_STMT to the list of statements to be replaced by the
1700         pattern statements.
1701         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
1702
1703 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
1704
1705         * system.h: Commit forgotten hunk in previous patch.
1706         (OUTPUT_ADDR_CONST_EXTRA): Poison.
1707
1708 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1709
1710         PR libobjc/50428
1711         * doc/objc.texi (Garbage Collection): Updated example to protect
1712         +initialize against execution in subclasses.
1713
1714 2011-10-07  Richard Henderson  <rth@redhat.com>
1715
1716         * doc/extend.texi (__builtin_shuffle): Improve the description to
1717         include the modulus of the selector.  Mention OpenCL.
1718         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
1719
1720         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
1721         * genopinit.c (optabs): Rename vshuffle to vec_perm.
1722         * c-typeck.c (c_build_vec_perm_expr): Rename from
1723         c_build_vec_shuffle_expr.  Update for name changes.
1724         * optabs.c (expand_vec_perm_expr_p): Rename from
1725         expand_vec_shuffle_expr_p.
1726         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
1727         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
1728         (vec_perm_optab): Rename from vshuffle_optab.
1729         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
1730         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
1731         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
1732
1733         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
1734         ix86_expand_vshuffle.
1735         * config/i386/i386-protos.h: Update.
1736         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
1737         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
1738
1739 2011-10-07  Richard Henderson  <rth@redhat.com>
1740
1741         * config/i386/predicates.md (avx2_pblendw_operand): New.
1742         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
1743         (avx2_pblendw, *avx2_pblendw): New expander and insn.
1744
1745 2011-10-07  Richard Henderson  <rth@redhat.com>
1746
1747         * config/i386/i386.c (bdesc_args): Update code for
1748         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
1749         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
1750         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
1751         * config/i386/sse.md (mode iterator V16): Add V2TI.
1752         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
1753         (mode attr ssse3_avx2): Add V2TI.
1754         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
1755
1756 2011-10-07  David S. Miller  <davem@davemloft.net>
1757
1758         PR 50655
1759         * configure.ac: Add .register directives to VIS3 test.
1760         * configure: Regenerate.
1761
1762 2011-10-07  Richard Henderson  <rth@redhat.com>
1763
1764         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
1765
1766 2011-10-07  Richard Henderson  <rth@redhat.com>
1767
1768         PR 49752
1769         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
1770
1771 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
1772
1773         * config/arm/predicates.md (shift_amount_operand): Remove constant
1774         range check.
1775         (shift_operator): Check range of constants for all shift operators.
1776
1777 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1778
1779         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
1780         Load GOT pointer for non-pic builds.
1781         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
1782         (s390_emit_call): Likewise.
1783
1784 2011-10-07  Tom de Vries  <tom@codesourcery.com>
1785
1786         PR middle-end/50527
1787         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
1788         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
1789         throw.
1790         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
1791         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
1792         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1793         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1794         * tree-ssa-ccp.c (evaluate_stmt): Set align for
1795         BUILT_IN_ALLOCA_WITH_ALIGN.
1796         (fold_builtin_alloca_for_var): Rename to ...
1797         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
1798         BUILT_IN_ALLOCA_WITH_ALIGN argument.
1799         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
1800         fold_builtin_alloca_with_align.
1801         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1802         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
1803         DEF_BUILTIN_STUB.
1804         * ipa-pure-const.c (special_builtin_state): Handle
1805         BUILT_IN_ALLOCA_WITH_ALIGN.
1806         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
1807         (call_may_clobber_ref_p_1): Same.
1808         * function.c (gimplify_parameters): Lower vla to
1809         BUILT_IN_ALLOCA_WITH_ALIGN.
1810         * gimplify.c (gimplify_vla_decl): Same.
1811         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1812         * tree-mudflap.c (mf_xform_statements): Same.
1813         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1814         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
1815         * varasm.c (incorporeal_function_p): Same.
1816         * tree-object-size.c (alloc_object_size): Same.
1817         * gimple.c (gimple_build_call_from_tree): Same.
1818
1819 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
1820
1821         * function.c (frame_required_for_rtx): Remove function.
1822         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
1823         changed.  Compute a set of mentioned registers and compare against
1824         the new arg rather than calling frame_required_for_rtx.
1825         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
1826         reg set.  Convert the unconverted_simple_returns mechanism to store
1827         jump insns rather than their basic blocks.  Also check the
1828         orig_entry_edge destination for new blocks.
1829
1830 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
1831
1832         PR tree-optimization/50650
1833         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
1834         call vect_is_simple_cond here, instead fail if cond_expr isn't
1835         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
1836         for cond_expr's first operand.
1837         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
1838         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
1839
1840 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1841
1842         * config/s390/s390.md (DWH, dwh): New mode macros.
1843         ("umulsidi3"): Extend to support "umulditi3" as well.
1844
1845 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
1846             H.J. Lu  <hongjiu.lu@intel.com>
1847
1848         PR target/50603
1849         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
1850         integer PLUS RTX to a register to improve address combine.
1851
1852 2011-10-06  Richard Henderson  <rth@redhat.com>
1853
1854         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
1855         parameter; use it to decide whether to merge two notes.
1856         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
1857         for the deallocation case as well.
1858
1859 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
1860
1861         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
1862         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
1863         * doc/tm.texi: Regenerate.
1864         * target.def (output_addr_const_extra): Use
1865         hook_bool_FILEptr_rtx_false.
1866         * targhooks.c (default_asm_output_addr_const_extra): Remove.
1867         * targhooks.h (default_asm_output_addr_const_extra): Remove.
1868         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
1869         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
1870
1871 2011-10-06  David S. Miller  <davem@davemloft.net>
1872
1873         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
1874         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
1875         SI mode 64-bit code gen case explicitly zero-extend and truncate.
1876         (*popcount<mode>_sp64): Split up into...
1877         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
1878         SImode case use truncate.
1879         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
1880         subtract so the compiler can optimize it.
1881         (SIDI): Remove unused mode iterator.
1882
1883 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1884
1885         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
1886         on the orig_entry_edge. Don't account for it in prologue_clobbered.
1887
1888 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1889
1890         PR tree-optimization/50596
1891         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
1892         (NUM_PATTERNS): Change to 6.
1893         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
1894         function.
1895         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
1896         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
1897         if it already has one, and don't set STMT_VINFO_VECTYPE in it
1898         if it is already set.
1899         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
1900         COND_EXPR in pattern stmts.
1901         (vect_is_simple_cond): No longer static.
1902
1903 2001-10-06  Richard Henderson  <rth@redhat.com>
1904
1905         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
1906         * config/i386/sse.md (sseshuffint): Remove.
1907         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
1908         (VSHUFFLE_AVX2): New mode iterator.
1909         (vshuffle<mode>): Use it.
1910         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
1911
1912         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
1913         for vector_all_ones_operand.
1914         (ix86_expand_int_vcond): Distinguish between comparison mode
1915         and data mode.  Allow them to differ.
1916         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
1917
1918 2001-10-06  Richard Henderson  <rth@redhat.com>
1919
1920         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
1921         mask operand.  Tidy the code.
1922
1923 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1924
1925         * tree-vect-patterns.c (vect_pattern_recog_1): Use
1926         vect_recog_func_ptr typedef for the first argument.
1927         (vect_pattern_recog): Rename vect_recog_func_ptr variable
1928         to vect_recog_func, use vect_recog_func_ptr typedef for it.
1929
1930         PR tree-optimization/49279
1931         * tree-ssa-structalias.c (find_func_aliases): Don't handle
1932         CAST_RESTRICT.
1933         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
1934         restrict propagation.
1935         * tree-ssa.c (useless_type_conversion_p): Don't return false
1936         if TYPE_RESTRICT differs.
1937
1938 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1939
1940         * function.c (thread_prologue_and_epilogue_insns): Build a vector
1941         of unconverted simple return blocks rather than trying to
1942         recompute them later based on bb_flags bitmap tests.
1943
1944 2011-10-06  Michael Matz  <matz@suse.de>
1945
1946         * tree-flow.h (get_var_ann): Don't declare.
1947         * tree-flow-inline.h (get_var_ann): Remove.
1948         (set_is_used): Use var_ann, not get_var_ann.
1949         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
1950         * tree-profile.c (gimple_gen_edge_profiler): Call
1951         find_referenced_var_in.
1952         (gimple_gen_interval_profiler): Ditto.
1953         (gimple_gen_pow2_profiler): Ditto.
1954         (gimple_gen_one_value_profiler): Ditto.
1955         (gimple_gen_average_profiler): Ditto.
1956         (gimple_gen_ior_profiler): Ditto.
1957         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
1958         (gimple_gen_ic_func_profiler): Call add_referenced_var.
1959         * tree-mudflap.c (execute_mudflap_function_ops): Call
1960         add_referenced_var.
1961
1962 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1963
1964         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
1965         don't set SSA_NAME_DEF_STMT that has been already set by
1966         gimple_build_assign_with_ops.
1967         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
1968         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
1969         Likewise.
1970
1971         * tree.h (avoid_folding_inline_builtin): New prototype.
1972         * builtins.c (avoid_folding_inline_builtin): No longer static.
1973         * gimple-fold.c (gimple_fold_builtin): Give up if
1974         avoid_folding_inline_builtin returns true.
1975
1976 2011-10-06  Richard Guenther  <rguenther@suse.de>
1977
1978         * tree-vect-generic.c (vector_element): Look at previous
1979         generated results.
1980
1981 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
1982
1983         PR target/39950
1984         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
1985         __powerpc__, __PPC__, __unix__.
1986
1987 2011-10-06  Michael Matz  <matz@suse.de>
1988
1989         * i386/i386.opt (recip_mask, recip_mask_explicit,
1990         x_recip_mask_explicit): New variables and cl_target member.
1991         (mrecip=): New option.
1992         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
1993         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
1994         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
1995         TARGET_RECIP_VEC_SQRT): New tests.
1996         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
1997         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
1998         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
1999         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
2000         * i386/i386.c (ix86_option_override_internal): Set recip_mask
2001         for -mrecip and -mrecip=options.
2002         (ix86_function_specific_save): Save recip_mask_explicit.
2003         (ix86_function_specific_restore): Restore recip_mask_explicit.
2004
2005         * doc/invoke.texi (ix86 Options): Document the new option.
2006
2007 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
2008
2009         PR target/49049
2010         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
2011
2012 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
2013
2014         PR target/50305
2015         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
2016         output of a previous pass through legitimize_reload_address.
2017         Do not attempt to optimize addresses if the base register is
2018         equivalent to a constant.
2019
2020 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2021
2022         * function.c (thread_prologue_and_epilogue_insns): Mark
2023         last_bb_active as possibly unused.  It is unused for targets which
2024         do neither have "return" nor "simple_return" expanders.
2025
2026 2011-10-06  Richard Guenther  <rguenther@suse.de>
2027
2028         * fold-const.c (fold_ternary_loc): Also fold non-constant
2029         vector CONSTRUCTORs.  Make more efficient.
2030         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
2031         (cprop_into_stmt): Don't propagate into virtual operands.
2032         (optimize_stmt): Really dump original statement.
2033
2034 2011-10-06  Nick Clifton  <nickc@redhat.com>
2035
2036         * config/rx/rx.md (smin3): Revert previous delta.
2037
2038 2011-10-06  Richard Guenther  <rguenther@suse.de>
2039
2040         PR tree-optimization/38884
2041         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
2042         reads from aggregate SSA names.
2043
2044 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
2045
2046         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
2047         argument, truncate it at the beginning instead of allocating there
2048         and freeing at the end.
2049         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
2050         pass its address to vect_pattern_recog_1.
2051
2052 2011-10-05  David S. Miller  <davem@davemloft.net>
2053
2054         * config/sparc/sparc.opt (POPC): New option.
2055         * doc/invoke.texi: Document it.
2056         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
2057         default on Niagara-2 and later.
2058         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2059         * config/sparc/sparc.md (SIDI): New mode iterator.
2060         (ffsdi2): Delete commented out pattern and comments.
2061         (popcount<mode>2, clz<mode>2): New expanders.
2062         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
2063         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
2064
2065 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
2066
2067         PR middle-end/50607
2068         * c-tree.h (c_expr_t): New typedef for struct c_expr.
2069         (C_EXPR_APPEND): New macro.
2070         * c-parser.c (c_parser_get_builtin_args): Preserve
2071         original_tree_code of c_expr structure.
2072         (c_parser_postfix_expression): Adjust to the new function.
2073
2074 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
2075
2076         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
2077         if profiling after the prologue.
2078
2079 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
2080
2081         PR tree-optimization/50613
2082         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
2083         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
2084         and if it is neither that not SSA_NAME, give up.
2085
2086 2011-10-05  Richard Henderson  <rth@redhat.com>
2087
2088         * tree-vect-generic.c (vector_element): Never fail.  Use
2089         build_zero_cst.  Tidy up type references.
2090         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
2091         code duplication.  Do update_stmt here ...
2092         (expand_vector_operations_1): ... not here.
2093
2094         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
2095         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
2096         duplication.  Handle V2DI without SSE4.1.
2097         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
2098         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
2099
2100 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
2101
2102         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
2103         of "found".  Simplify return value calculation.
2104         (distance_agu_use): Ditto.
2105
2106 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
2107
2108         PR bootstrap/50621
2109         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
2110         if the function was not shrink-wrapped.
2111         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
2112         to an insn.
2113         * function.c (thread_prologue_and_epilogue_insns): Make sure the
2114         shrink_wrapped flag is set even if there is no dump file.
2115
2116 2011-10-05  DJ Delorie  <dj@redhat.com>
2117             Nick Clifton  <nickc@redhat.com>
2118
2119         * config/rx/rx.opt (mpid): Define.
2120         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
2121         (MULTILIB_DIRNAMES): Add pid.
2122         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
2123         (rx_num_interrupt_regs): New variable.
2124         (rx_gp_base_regnum): New function.  Returns the number of the
2125         small data area register.
2126         (rx_pid_base_regnum): New function.  Returns the number of the pid
2127         base register.
2128         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
2129         (rx_pid_data_operand): New function.  Returns whether an object is
2130         in the position independent data area.
2131         (rx_legitimize_address): New function.  Puts undecided PID
2132         objects in the PID data area.
2133         (rx_is_legitimate_address): Add support for PID operands.
2134         (rx_print_operand_address): Likewise.
2135         (rx_print_operand): Likewise.
2136         (rx_maybe_pidify_operand): New function.  Determine if an operand
2137         is suitable for PID addressing.
2138         (rx_gen_move_template): Add PID support.
2139         (rx_conditional_register_usage): Likewise.
2140         (rx_option_override): Initialise rx_num_interrupt_regs.
2141         (rx_is_legitimate_constant): Add support for PID constants.
2142         (TARGET_LEGITIMIZE_ADDRESS): Define.
2143         * config/rx/constraints.md (Rpid): Define.
2144         (Rpda): Define.
2145         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
2146         (tablejump): Add PID support.
2147         (mov<>): Likewise.
2148         (mov<>_internal): Likewise.
2149         (addsi3): Convert to an expander.  Add PID support.
2150         (pid_addr): New pattern.
2151         * config/rx/rx.h (CPP_SPEC): Define.
2152         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
2153         (CASE_VECTOR_PC_RELATIVE): Define.
2154         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
2155         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
2156         * doc/invoke.texi (RX Options): Document -mpid command line option.
2157
2158 2011-10-05  Richard Guenther  <rguenther@suse.de>
2159
2160         PR tree-optimization/38885
2161         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
2162         from constants.
2163
2164 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
2165
2166         * doc/invoke.texi (-fshrink-wrap): Document.
2167         * opts.c (default_options_table): Add it.
2168         * common.opt (fshrink-wrap): Add.
2169         * function.c (emit_return_into_block): Remove useless declaration.
2170         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
2171         requires_stack_frame_p, gen_return_pattern): New static functions.
2172         (emit_return_into_block): New arg simple_p.  All callers changed.
2173         Use gen_return_pattern.
2174         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
2175         * config/i386/i386.md (return): Expand into a simple_return.
2176         (simple_return): New expander):
2177         (simple_return_internal, simple_return_internal_long,
2178         simple_return_pop_internal_long, simple_return_indirect_internal):
2179         Renamed from return_internal, return_internal_long,
2180         return_pop_internal_long and return_indirect_internal; changed to use
2181         simple_return.
2182         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
2183         simple returns.
2184         (ix86_pad_returns): Likewise.
2185         * function.h (struct rtl_data): Add member shrink_wrapped.
2186         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
2187         are not jumps or sibcalls can't be compared.
2188
2189 2011-10-05  Richard Guenther  <rguenther@suse.de>
2190
2191         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
2192         vector type.
2193         (simplify_unary_expression): Handle BIT_FIELD_REFs.
2194         (try_to_simplify): Handle BIT_FIELD_REFs.
2195
2196 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
2197
2198         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
2199         * config/avr/avr.c (avr_out_addto_sp): New function.
2200         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
2201         * config/avr/avr.md (adjust_len): Add "addto_sp".
2202         (*movhi_sp): Remove insn.
2203         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
2204
2205 2011-10-05  Richard Guenther  <rguenther@suse.de>
2206
2207         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
2208         with an embedded expression valueize and fold that as well.
2209         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
2210         results from gimple_fold_stmt_to_constant_1.
2211
2212 2011-10-05  Nick Clifton  <nickc@redhat.com>
2213
2214         * config/rx/rx.md (tablejump): Add missing label.
2215         (adddi3_internal): Mark operand 0 as early-clobbered.
2216         (smaxsi3): Revert previous delta.
2217         (adc_internal): Fix whitespace in generated asm.
2218         (adc_flags): Likewise.
2219
2220 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2221
2222         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
2223         with the new widening_optab_handler.
2224
2225 2011-10-05  Richard Guenther  <rguenther@suse.de>
2226
2227         PR tree-optimization/50609
2228         * gimple-fold.c (fold_array_ctor_reference): Also handle
2229         vector typed constructors.
2230         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
2231         for vector typed constructors.
2232
2233 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
2234
2235         * config/i386/i386.c (ix86_emit_binop): New static function.
2236         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
2237         instructions.
2238         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
2239
2240 2011-10-04  David S. Miller  <davem@davemloft.net>
2241
2242         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
2243         UNSPEC_XMUL): New unspecs.
2244         (muldi3_v8plus): Use output_v8plus_mult.
2245         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
2246         New VIS 3.0 combiner patterns.
2247         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
2248         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
2249         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
2250         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
2251         builtins patterns.
2252         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
2253         (output_v8plus_mult): New function.
2254         * config/sparc/sparc-protos.h: Declare it.
2255         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
2256         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
2257         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
2258         * doc/extend.texi: Document new builtins.
2259
2260 2011-10-04  Richard Henderson  <rth@redhat.com>
2261
2262         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
2263         Avoid save_expr unless two_arguments.
2264
2265 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
2266
2267         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
2268         * config/i386/mingw32.h (CPP_SPEC): Likewise.
2269
2270 2011-10-04  David S. Miller  <davem@davemloft.net>
2271
2272         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
2273         under Linux.
2274
2275 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
2276
2277         PR tree-optimization/50604
2278         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
2279         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
2280         last argument to memcpy has size_type_node type instead of ssizetype.
2281         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
2282         instead of TREE_TYPE (len) as type for newlen.
2283
2284         PR tree-optimization/50522
2285         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
2286         TYPE_RESTRICT.
2287         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
2288         unconditionally.
2289
2290         * fold-const.c (fold_unary_loc): Don't optimize
2291         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
2292         casting the inner pointer if it isn't TYPE_RESTRICT.
2293         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
2294         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
2295
2296 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
2297
2298         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
2299
2300 2011-10-04  Jan Hubicka  <jh@suse.cz>
2301
2302         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
2303         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
2304         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
2305         * lto-cgraph.c (order_base): New static var.
2306         (lto_output_node): Stream in order.
2307         (lto_output_varpool_node): Stream out order.
2308         (input_node): Stream in order.
2309         (input_varpool_node): Stream out order.
2310         (input_cgraph_1): Initialize order base; update call of
2311         lto_input_toplevel_asms.
2312
2313 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
2314
2315         PR target/50566
2316         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
2317         prototype.
2318         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
2319         from here...
2320         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
2321         function.  Log if avr_log.legitimize_reload_address.
2322
2323 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
2324
2325         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
2326
2327 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2328
2329         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
2330         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
2331
2332 2011-10-03  David S. Miller  <davem@davemloft.net>
2333
2334         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
2335         GSR_REG an input operand to UNSPEC instead of a parallel USE.
2336         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
2337         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
2338         Reference GSR_REG in DI mode, simplify convoluted expressions by using
2339         zero_extract.
2340         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
2341
2342 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
2343
2344         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
2345
2346 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
2347             Ian Lance Taylor  <iant@google.com>
2348
2349         * godump.c (go_output_typedef): Support printing enum values that
2350         don't fit in a signed HOST_WIDE_INT.
2351
2352 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
2353
2354         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
2355         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2356         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2357         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
2358
2359 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
2360
2361         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
2362         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2363         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2364         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
2365
2366 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
2367
2368         PR target/49967
2369         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
2370         (gcc_cv_ld_static_option): Ditto.
2371         (gcc_cv_ld_dynamic_option): Ditto.
2372         * configure: Regenerate.
2373
2374 2011-10-03  David S. Miller  <davem@davemloft.net>
2375
2376         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
2377         and 'si' patterns which describe the GSR changes explicitly in the
2378         RTL using zero_extract.
2379         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
2380
2381         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
2382         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
2383
2384 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
2385
2386         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
2387         if given expression can be expanded by the target.
2388         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
2389         using target vector instructions.
2390         * optabs.h: New optab vshuffle.
2391         (expand_vec_shuffle_expr_p): New prototype.
2392         (expand_vec_shuffle_expr): New prototype.
2393         (vshuffle_optab): New optab.
2394         * genopinit.c: Adjust to support vecshuffle.
2395         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
2396         * expr.c (expand_expr_real_2): Adjust.
2397         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
2398         recognizing the cases of two and three arguments.
2399         (convert_arguments) (build_binary_op)
2400         (scalar_to_vector) (build_array_ref): Spurious whitespace.
2401         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
2402         * tree.def: New tree code VEC_SHUFFLE_EXPR.
2403         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
2404         * tree-vect-generic.c (vector_element): New function. Returns an
2405         element of the vector at the given position.
2406         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
2407         by the backend or expand an expression piecewise.
2408         (expand_vector_operations_1): Adjusted.
2409         (gate_expand_vector_operations_noop): New gate function.
2410         * Makefile.in (tree-vect-generic.o): New include.
2411         * gimple.c (get_gimple_rhs_num_ops): Adjust.
2412         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
2413         * passes.c: Move veclower down.
2414         * tree-pretty-print.c (dump_generic_node): Recognize
2415         VEC_SHUFFLE_EXPR as valid expression.
2416         * c-parser.c (c_parser_get_builtin_args): Helper function for the
2417         builtins with variable number of arguments.
2418         (c_parser_postfix_expression): Use a new helper function for
2419         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
2420         * tree-ssa-operands: Adjust.
2421         * c-family/c-common.c: New __builtin_shuffle keyword.
2422         * c-family/c-common.h: New __builtin_shuffle keyword.
2423         * gcc/doc/extend.texi: Adjust.
2424
2425         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
2426         between the vector and the type of the mask when shuffling.
2427         (vecshuffle<mode>): New expansion.
2428         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
2429         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
2430         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
2431
2432 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
2433
2434         PR tree-optimization/50587
2435         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
2436         arg0 is not a SSA_NAME.
2437
2438 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
2439
2440         * ipa-inline-analysis.c (MAX_TIME): Update comment.
2441
2442 2011-10-02  Richard Henderson  <rth@redhat.com>
2443             David S. Miller  <davem@davemloft.net>
2444
2445         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
2446         conditional insn type setting, we always emit a shift.
2447         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
2448         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
2449         * config/sparc/predicates.md (const_one_operand): Delete.
2450
2451 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
2452
2453         * invoke.texi (SPARC Options): Refer to GNU/Linux.
2454
2455 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
2456
2457         * config/mips/mips.c (mips_frame_barrier): New function.
2458         (mips_expand_prologue): Call it after allocating stack space.
2459         (mips_deallocate_stack): New function.
2460         (mips_expand_epilogue): Call mips_frame_barrier and
2461         mips_deallocate_stack.
2462
2463 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
2464
2465         PR target/49696
2466         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
2467         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
2468         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
2469
2470 2011-10-02  Jan Hubicka  <jh@suse.cz>
2471
2472         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
2473
2474         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
2475         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
2476         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
2477         functions are reachable when address is taken.
2478         * tree-sra.c (modify_function): Free dominance info.
2479
2480 2011-10-02  Jan Hubicka  <jh@suse.cz>
2481
2482         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
2483
2484         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
2485         (reset_inline_summary): New function.
2486         (compute_inline_parameters, inline_node_removal_hook,
2487         inline_edge_removal_hook): Use it.
2488         (inline_free_summary): Reset holders correctly.
2489         (inline_generate_summary): Free summary before computing it.
2490
2491 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
2492
2493         PR preprocessor/36819
2494         * incpath.c (merge_include_chains): Call free_path on
2495         heads[QUOTE] and tails[QUOTE].
2496
2497 2011-10-02  Jan Hubicka  <jh@suse.cz>
2498
2499         PR lto/47247
2500         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
2501         when resolution is already availbale from plugin.
2502         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
2503         * cgraph.c (ld_plugin_symbol_resolution): Add
2504         prevailing_def_ironly_exp.
2505         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
2506         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
2507         externally visible.
2508         * varasm.c (resolution_to_local_definition_p): Add
2509         LDPR_PREVAILING_DEF_IRONLY_EXP.
2510         (resolution_local_p): Likewise.
2511
2512 2011-10-01  David S. Miller  <davem@davemloft.net>
2513
2514         * config/sparc/sparc.opt (VIS3): New option.
2515         * doc/invoke.texi: Document it.
2516         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
2517         not capable of such instructions.
2518         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2519         to 0x300 when TARGET_VIS3.
2520         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
2521         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
2522         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
2523         (V64N8, VASS): New mode iterators.
2524         (vis3_shift, vis3_addsub_ss): New code iterators.
2525         (vbits, vconstr): New mode attributes.
2526         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
2527         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
2528         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
2529         fmean16_vis, fpadd64_vis, fpsub64_vis,
2530         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
2531         VIS 3.0 instruction patterns.
2532         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
2533         default when targetting capable cpus.  TARGET_VIS3 implies
2534         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
2535         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
2536         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
2537         is ignored.
2538         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
2539         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
2540         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
2541         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
2542         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
2543         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
2544         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
2545         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
2546         * doc/extend.texi: Document new VIS 3.0 builtins.
2547
2548 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
2549
2550         * ira-color.c (assign_hard_reg): Fix typo.
2551
2552 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
2553
2554         * doc/extend.texi: Add missing ','.
2555
2556 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2557
2558         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
2559         Enable -fmodulo-sched at -O2 and above.
2560         * config/c6x/c6x.md (doloop_end): New expander.
2561         (mvilc, sploop, spkernel, loop_end): New patterns.
2562         (loop_end with memory destination splitter): New.
2563         * config/c6x/c6x.c: Include "hw-doloop.h".
2564         (enum unitreqs): New.
2565         (unit_req_table): New typedef.
2566         (unit_reqs): New static variable.
2567         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
2568         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
2569         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
2570         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
2571         (struct c6x_sched_context): New member last_scheduled_iter0.
2572         (init_sched_state): Initialize it.
2573         (c6x_variable_issue): Update it.
2574         (sploop_max_uid_iter0): New static variable.
2575         (c6x_sched_reorder_1): Be careful about issuing sploop.
2576         (c6x_reorg): Call c6x_hwlooops before the final schedule.
2577
2578 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
2579
2580         PR target/50566
2581         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
2582         * config/avr/avr.c (avr_address_cost): Use it.
2583         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
2584         (avr_log_vadump): Unknown %-codes finish printing.
2585
2586 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
2587
2588         PR inline-asm/50571
2589         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
2590         input constraints allow mem and not reg, pass true instead of
2591         false as second argument to maybe_fold_reference.
2592
2593         PR tree-optimization/46309
2594         * fold-const.c (make_range, merge_ranges): Remove prototypes.
2595         (make_range_step): New function.
2596         (make_range): Use it.
2597         * tree.h (make_range_step): New prototypes.
2598         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
2599         * tree-ssa-reassoc.c: Include diagnostic-core.h.
2600         (struct range_entry): New type.
2601         (init_range_entry, range_entry_cmp, update_range_test,
2602         optimize_range_tests): New functions.
2603         (reassociate_bb): Call optimize_range_tests.
2604
2605 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
2606             Richard Guenther  <rguenther@suse.de>
2607
2608         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
2609         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
2610         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
2611         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
2612         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
2613         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
2614
2615 2011-09-30  Jan Beulich  <jbeulich@suse.com>
2616
2617         * lto-cgraph.c (output_cgraph): Remove processing of
2618         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
2619         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
2620         lto_input_toplevel_asms() instead.
2621         * lto-section-in.c (lto_section_name): Add "asm" entry.
2622         * lto-streamer-in.c (lto_input_toplevel_asms): New.
2623         * lto-streamer-out.c (lto_output_toplevel_asms): New.
2624         * lto-streamer.h (LTO_minor_version): Bump.
2625         (enum lto_section_type): Add LTO_section_asm.
2626         (struct lto_asm_header): New.
2627         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
2628         * tree-streamer.h (streamer_write_string_cst): Declare.
2629         * tree-streamer-out.c (write_string_cst): Rename to
2630         streamer_write_string_cst and make global. Handle incoming string
2631         being NULL.
2632         (streamer_write_tree_header): Adjust call to renamed function.
2633
2634 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2635
2636         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
2637         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
2638         modulo_last_stage): New static variables.
2639         (set_modulo_params, discard_delay_pairs_above): New functions.
2640         (struct delay_pair): New member stages.
2641         (htab_i2_traverse, htab_i1_traverse): New static functions.
2642         (record_delay_slot_pair): New arg stages.  All callers changed.
2643         Record it.
2644         (pair_delay): Take stages into account.
2645         (add_delay_dependencies): Don't do so for stage pairs.
2646         (struct sched_block_state): New member modulo_epilogue.
2647         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
2648         (unschedule_insns_until): Decrease modulo_insns_scheduled.
2649         Set HARD_DEP without using or.
2650         (resolve_dependencies): New static function.
2651         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
2652         If it is true, allow only insns with INSN_EXACT_TICK set.
2653         (schedule_block): Return bool, always true for normal scheduling,
2654         true or false depending on modulo scheduling success otherwise.
2655         Add bookkeeping for modulo scheduling, and call resolve_dependencies
2656         on everything left over after a modulo schedule.
2657         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
2658         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
2659         declarations.
2660         (set_modulo_params, discard_delay_pairs_above): Declare.
2661         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
2662         * doc/invoke.texi (--param): Document it.
2663
2664         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
2665         New arg modulo_scheduling.  All callers changed.  Move note handling
2666         code here from schedule_ebbs.
2667         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
2668         out of schedule_ebbs.
2669         (schedule_ebbs): Call them.  Remove note handling code moved to
2670         schedule_ebb.
2671         * sched-int.h (schedule_ebb, schedule_ebbs_init,
2672         schedule_ebbs_finish): Declare.
2673
2674 2011-09-30  Richard Guenther  <rguenther@suse.de>
2675
2676         PR middle-end/50574
2677         * tree-cfg.c (verify_gimple_comparison): Compare component
2678         mode sizes for vector comparisons.
2679
2680 2011-09-30  Revital Eres  <revital.eres@linaro.org>
2681
2682         * ddg.c (autoinc_var_is_used_p): New function.
2683         (create_ddg_dep_from_intra_loop_link,
2684         add_cross_iteration_register_deps): Call it.
2685         * ddg.h (autoinc_var_is_used_p): Declare.
2686         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
2687         (sms_schedule): Handle instructions with REG_INC.
2688
2689 2011-09-30  Revital Eres  <revital.eres@linaro.org>
2690
2691         * modulo-sched.c (generate_reg_moves): Skip instructions that
2692         do not set a register and verify no regmoves are created for
2693         !single_set instructions.
2694
2695 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2696
2697         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
2698         insns.
2699
2700 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2701
2702         PR target/50099
2703         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
2704         (qhs_zextenddi_op): New.
2705         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
2706         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
2707         Distinguish between ARM and Thumb2 states.
2708
2709 2011-09-30  David S. Miller  <davem@davemloft.net>
2710
2711         * config/sparc/sparc.opt (VIS2): New option.
2712         * doc/invoke.texi: Document it.
2713         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
2714         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
2715         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
2716         (define_attr type): New insn type 'edgen'.
2717         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
2718         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
2719         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
2720         patterns.
2721         * niagara.md: Handle edgen.
2722         * niagara2.md: Likewise.
2723         * ultra1_2.md: Likewise.
2724         * ultra3.md: Likewise.
2725         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2726         to 0x200 when TARGET_VIS2.
2727         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
2728         default when targetting capable cpus.  TARGET_VIS2 implies
2729         TARGET_VIS, clear and it when TARGET_FPU is disabled.
2730         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
2731         (sparc_expand_builtin): Fix predicate indexing when builtin returns
2732         void.
2733         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
2734         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
2735         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
2736         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
2737         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
2738         * doc/extend.texi: Document new VIS 2.0 builtins.
2739
2740 2011-09-29  Nick Clifton  <nickc@redhat.com>
2741             Bernd Schmidt  <bernds@codesourcery.com>
2742
2743         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
2744         * config/frv/frvend.c: Likewise.
2745         * config/frv/frv.c (frv_function_prologue): Move misplaced
2746         CALL_ARG_LOCATION notes back to their proper locations.
2747
2748 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
2749
2750         PR target/50566
2751         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
2752         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
2753         from avr_rtx_costs.
2754         (avr_legitimate_address_p): Use avr_edump to print log information
2755         filtered by avr_log.
2756         (extra_constraint_Q): Ditto.
2757         (avr_legitimize_address): Ditto.
2758         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
2759         (final_prescan_insn): Use avr_log.rtx_costs as filter.
2760
2761 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
2762
2763         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
2764         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
2765         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
2766         NEON vector and structure modes to be tied.
2767
2768 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2769
2770         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
2771         forward declaration.
2772         (remove_duplicate_close_phi): Detect and repair creation of
2773         duplicate close-phis for a containing loop.
2774
2775 2011-09-27   Andi Kleen <ak@linux.intel.com>
2776
2777         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
2778         /dev/urandom.  Add getpid call.
2779         (compare_debug_dump_opt_spec_function): Drop getpid call.
2780
2781 2011-09-26   Andi Kleen <ak@linux.intel.com>
2782
2783         * toplev.c (init_local_tick): Try reading random seed
2784         from /dev/urandom.
2785
2786 2011-09-26   Andi Kleen <ak@linux.intel.com>
2787
2788         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
2789         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
2790         Handle numerical random seed.
2791         * lto-streamer.h (lto_file_decl_data): Change id to
2792         unsigned HOST_WIDE_INT.
2793         * toplev.c (random_seed): Add.
2794         (init_random_seed): Change for numerical random seed.
2795         (get_random_seed): Return as HOST_WIDE_INT.
2796         (set_random_seed): Crc32 existing string.
2797         * toplev.h (get_random_seed): Change to numercal return.
2798         * tree.c (get_file_function_name): Remove CRC. Handle
2799         numerical random seed.
2800
2801 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
2802
2803         PR target/50566
2804         * config.gcc (extra_objs): Add avr-log.o for $target in:
2805         avr-*-rtems*, avr-*-*.
2806         * config/avr/t-avr (avr-log.o): New rule to compile...
2807         * config/avr/avr-log.c: ...this new file.
2808         * config/avr/avr.opt (mlog=): New option.
2809         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
2810         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
2811         (avr_log_set_avr_log): New prototype.
2812         (avr_log_t): New typedef.
2813         (avr_log): New declaration.
2814         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
2815
2816 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2817
2818         * expr.c (do_store_flag): Expand vector comparison by
2819         building an appropriate VEC_COND_EXPR.
2820         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
2821         (c_objc_common_truthvalue_conversion): Adjust.
2822         * tree-vect-generic.c (do_compare): Helper function.
2823         (expand_vector_comparison): Check if hardware supports
2824         vector comparison of the given type or expand vector piecewise.
2825         (expand_vector_operation): Treat comparison as binary
2826         operation of vector type.
2827         (expand_vector_operations_1): Adjust.
2828
2829 2011-09-29  Richard Guenther  <rguenther@suse.de>
2830
2831         * tree.c (build_opaque_vector_type): Make opaque vectors
2832         variant types of the corresponding non-opaque type.  Make
2833         sure to share opaque vector types properly.
2834
2835 2011-09-29  David S. Miller  <davem@davemloft.net>
2836
2837         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
2838         UNSPEC_ARRAY32): New unspec.
2839         (define_attr type): New type 'array'.
2840         (array{8,16,32}<P:mode>_vis): New patterns.
2841         * config/sparc/ultra1_2.md: Add reservations for 'array'.
2842         * config/sparc/ultra3.md: Likewise.
2843         * config/sparc/niagara.md: Likewise.
2844         * config/sparc/niagara2.md: Likewise.
2845         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
2846         array builtins.
2847         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
2848         __vis_array32): New.
2849         * doc/extend.texi: Document new VIS builtins.
2850
2851         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
2852         (VIS pixel-compare insn): Just use <gcond:name>.
2853
2854         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
2855         code iterator used, so just use <code>.  There are two mode iterators
2856         so explicitly use <GCM:gcm_name>.
2857
2858 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
2859
2860         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
2861         Darwin >= 9.
2862
2863 2011-09-28  David S. Miller  <davem@davemloft.net>
2864
2865         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
2866         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
2867         (UNSPEC_FCMP): New unspec.
2868         (gcond): New code iterator.
2869         (gcond_name): New code attr.
2870         (GCM): New mode iterator.
2871         (gcm_name): New mode attr.
2872         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
2873
2874 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
2875
2876         PR target/49486
2877         * config/sh/sh.md (negdi2): Move expansion into split to
2878         allow more combination options.  Add T_REG clobber.
2879         (abssi2): New expander.
2880         (*negdi2, *abssi2, *negabssi2): New insns.
2881         (cneg): Change from insn to insn_and_split.  Rename to
2882         negsi_cond.  Add alternative for non-SH4.
2883
2884 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
2885
2886         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
2887         (neon_move_hi_quad_<mode>): Likewise.
2888         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
2889
2890 2011-09-28  Nick Clifton  <nickc@redhat.com>
2891
2892         * config/rx/predicates.md (rx_minmax_operand): New predicate.
2893         Accepts immediates and a restricted subset of MEMs.
2894         * config/rx/rx.md (int_modes): New iterator.
2895         (smaxsi3, sminsi3): Delete and replace with...
2896         (smax<int_mode>3, smin<int_mode>3): New patterns.
2897         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
2898
2899 2011-09-28  Richard Guenther  <rguenther@suse.de>
2900
2901         PR middle-end/50460
2902         * fold-const.c (try_move_mult_to_index): Handle &a.array the
2903         same as &a.array[0].
2904
2905 2011-09-28  Kai Tietz  <ktietz@redhat.com>
2906
2907         * configure.ac: Add test for new section attribute
2908         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
2909         * config.in: Regenerated.
2910         * configure: Regenerated.
2911         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
2912         new section flag "e" for excluded sections, if supported.
2913         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
2914
2915 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2916
2917         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
2918         throughout file.
2919
2920 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2921
2922         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
2923         throughout file.
2924
2925 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
2926
2927         * output.h (SECTION_EXCLUDE): New macro.
2928         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
2929
2930 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
2931
2932         * fwprop.c (forward_propagate_and_simplify): After checking
2933         reg/subreg combinations, check whether the modes are the same.
2934
2935 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
2936             Richard Sandiford  <rdsandiford@googlemail.com>
2937
2938         * config/mips/mips.c (mips_add_cfa_restore): New function.
2939         (mips16e_save_restore_reg): Use it.
2940         (mips_restore_reg): Likewise.  Split double FPRs for
2941         REG_CFA_RESTORE notes.
2942
2943 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
2944
2945         PR middle-end/50386
2946         PR middle-end/50326
2947         * tree-sra.c (build_ref_for_model): Use the type of the field as
2948         the type of the COMPONENT_REF.
2949
2950 2011-09-27  Jeff Law  <law@redhat.com>
2951
2952         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
2953         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
2954         (find_if_case_1): Use the probability of the THEN clause when
2955         determining if speculation is profitable.
2956         (find_if_case_2): Similarly for the ELSE clause.
2957
2958 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
2959
2960         * common.opt: Add -foptimize-strlen option.
2961         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
2962         (tree-sssa-strlen.o): Add dependencies.
2963         * opts.c (default_options_table): Enable -foptimize-strlen
2964         by default at -O2 if not -Os.
2965         * passes.c (init_optimization_passes): Add pass_strlen
2966         after pass_object_sizes.
2967         * timevar.def (TV_TREE_STRLEN): New timevar.
2968         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
2969         * tree-pass.h (pass_strlen): Declare.
2970         * tree-ssa-strlen.c: New file.
2971         * c-decl.c (merge_decls): If compatible stpcpy prototype
2972         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
2973
2974 2011-09-27  Tom de Vries  <tom@codesourcery.com>
2975
2976         PR middle-end/43864
2977         * tree-ssa-tail-merge.c: New file.
2978         (struct same_succ_def): Define.
2979         (same_succ, const_same_succ): New typedef.
2980         (struct bb_cluster_def): Define.
2981         (bb_cluster, const_bb_cluster): New typedef.
2982         (struct aux_bb_info): Define.
2983         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
2984         (gvn_uses_equal): New function.
2985         (same_succ_print, same_succ_print_traverse, update_dep_bb)
2986         (stmt_update_dep_bb, local_def, same_succ_hash)
2987         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
2988         (same_succ_reset): New function.
2989         (same_succ_htab, same_succ_edge_flags)
2990         (deleted_bbs, deleted_bb_preds): New var.
2991         (debug_same_succ): New function.
2992         (worklist): New var.
2993         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
2994         (init_worklist, delete_worklist, delete_basic_block_same_succ)
2995         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
2996         (print_cluster, debug_cluster, update_rep_bb)
2997         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
2998         (all_clusters): New var.
2999         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
3000         (merge_clusters, set_cluster): New function.
3001         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
3002         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
3003         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
3004         (find_clusters_1, find_clusters): New function.
3005         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
3006         (update_bbs): New var.
3007         (apply_clusters): New function.
3008         (update_debug_stmt, update_debug_stmts): New function.
3009         (tail_merge_optimize): New function.
3010         tree-pass.h (tail_merge_optimize): Declare.
3011         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
3012         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
3013         (tree-ssa-tail-merge.o): New rule.
3014         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
3015         default at OPT_LEVELS_2_PLUS.
3016         * tree-ssa-sccvn.c (vn_valueize): Move to ...
3017         * tree-ssa-sccvn.h (vn_valueize): Here.
3018         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
3019         * common.opt (ftree-tail-merge): New switch.
3020         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
3021         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
3022         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
3023         (-ftree-tail-merge, max-tail-merge-comparisons)
3024         (max-tail-merge-iterations): New item.
3025
3026 2011-09-27  Jan Hubicka  <jh@suse.cz>
3027
3028         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
3029
3030 2011-09-27  Jan Hubicka  <jh@suse.cz>
3031
3032         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
3033         parameters passed by reference; handle loads from non-SSA scalars
3034         and update comments.
3035
3036 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
3037
3038         PR rtl-optimization/50249
3039         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
3040         instead of opnum and type.  All callers changed.  Remove useless
3041         declaration.
3042         Search forward for other reloads of the same type for the same operand
3043         using the same register; if any are found, return false.
3044         (reload_regs_reach_end_p): Same argument changes; all callers changed.
3045
3046 2011-09-27  Andi Kleen  <ak@linux.intel.com>
3047             Jan Hubicka  <jh@suse.cz>
3048
3049         * doc/invoke.texi (ffat-lto-objects): Document.
3050         * toplev.c (compile_file): Do not output assembly when doing slim lto;
3051         Output __gnu_slim_lto when doing slim lto.
3052         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
3053         (cgraph_optimize): Return early when doing slim lto.
3054         * opts.c (finish_options): Complain about lack of linker plugin
3055         when doing slim lto.
3056         * common.opt (ffat-lto-objects): New.
3057
3058 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
3059
3060         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
3061         between signed and unsigned.
3062
3063 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
3064
3065         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
3066         vectorization.
3067         (vectorizable_type_promotion): Likewise.
3068         (vect_analyze_stmt): Call vectorizable_type_demotion and
3069         vectorizable_type_promotion for basic blocks.
3070         (supportable_widening_operation): Don't assume loop vectorization.
3071         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
3072         basic blocks.  Update vectorization factor for basic block
3073         vectorization.
3074         (vect_analyze_slp_instance): Allow multiple types for basic block
3075         vectorization.  Recheck unrolling factor after construction of SLP
3076         instance.
3077
3078 2011-09-27  Richard Guenther  <rguenther@suse.de>
3079
3080         * tree-object-size.c (compute_object_sizes): Fix dumping of
3081         folded statement.
3082
3083 2011-09-27  Richard Guenther  <rguenther@suse.de>
3084
3085         PR tree-optimization/50363
3086         * tree-ssa-pre.c (create_expression_by_pieces): Handle
3087         pointer conversions in POINTER_PLUS_EXPRs properly.
3088
3089 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
3090
3091         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
3092         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
3093         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
3094         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
3095         that produce subreg moves.  Define using VQX iterators.
3096
3097 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
3098
3099         * config/avr/avr.md (ashrqi3): Split alternative "n"
3100         into its remaining parts C03, C04, C05, C06, C07 and describe
3101         impact in CC by attribute "cc" appropriately.
3102         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
3103         by digging RTX.
3104
3105 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
3106
3107         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
3108         from 3 x MAX_MACHINE_MODE.
3109         (CONSTM1_RTX): Define.
3110         * emit-rtl.c (const_tiny_rtx): Change into array of
3111         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
3112         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
3113         CONSTM1_RTX.
3114         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
3115         MODE_VECTOR_INT modes.
3116         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
3117         Optimize if one operand is CONSTM1_RTX.
3118         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
3119         into mask | x.
3120
3121 2011-09-26  David S. Miller  <davem@davemloft.net>
3122
3123         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
3124         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
3125         * config/sparc/visintrin.h: Update edge and pixel-compare
3126         intrinsics to return 'long' instead of 'int'.
3127         * doc/extend.texi: Update documentation to match.
3128         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
3129         flat, allow any instruction.  Otherwise, when V9 allow parallels
3130         which consist only of sets to registers outside of %o0 to %o5.
3131         (sparc_vis_init_builtins): Update VIS builtin types for edge
3132         and pixel-compare.
3133
3134         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
3135         is enabled, mark %gsr as global.
3136         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
3137         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
3138
3139         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
3140         which will now define __VIS and __VIS__ when -mvis is enabled.
3141         * config/sparc/t-sparc: Likewise.
3142         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
3143         and add t-sparc to tmake_file for all sparc targets.
3144         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
3145         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
3146
3147         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
3148         builtins for VIS vector addition and subtraction.
3149         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
3150         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
3151         __vis_fpsub32, __vis_fpsub32s): New.
3152         * doc/extend.texi: Document new VIS intrinsics.
3153
3154 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
3155
3156         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
3157         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
3158         EQ/NE comparisons against +/-1 in the case of unused-after,
3159         non-ld-regs target.
3160
3161 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
3162
3163         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
3164         gctx.into_ssa after push_gimplify_context.
3165
3166         * gimple.c (gimple_build_call_valist): New function.
3167         * gimple.h (gimple_build_call_valist): New prototype.
3168         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
3169         (update_gimple_call): Likewise.
3170         (update_call_from_tree): Use finish_update_gimple_call.
3171         * tree-ssa-propagate.h (update_gimple_call): New prototype.
3172
3173 2011-09-26  Richard Guenther  <rguenther@suse.de>
3174
3175         PR tree-optimization/50472
3176         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
3177         volatile references.
3178
3179 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
3180
3181         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
3182         * target.def: (addr_space_subset_p): Likewise.
3183
3184 2011-09-26  Tom de Vries  <tom@codesourcery.com>
3185
3186         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
3187         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
3188         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
3189         of new var.
3190
3191 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
3192
3193         PR target/50465
3194         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
3195         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
3196         output_reload_insisf.
3197         (adjust_len): Set default to "no".
3198         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
3199         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
3200         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
3201         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
3202         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
3203         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
3204         *lshrsi3_const): Set attribute "adjust_len".
3205         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
3206         (output_movsisf): Don't pass insn to output_reload_insisf.
3207         (adjust_insn_length): Handle new alternatives to adjust_len.
3208         Remove handling of ADJUST_LEN_YES.  Clean-up code.
3209
3210 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
3211
3212         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
3213         may_trap_p to detect loads that may trap of fault.
3214
3215 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
3216
3217         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
3218         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
3219         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
3220         prototype.
3221         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
3222         * config/avr/avr.c: Rename output_reload_insisf_1 to
3223         output_reload_in_const.
3224         (avr_popcount_each_byte): Handle SFmode, too.
3225         (output_reload_in_const): Change so it can handle HI loads, too.
3226         Use avr_popcount_each_byte to work out if scratch register must be
3227         created on the fly.
3228         (output_reload_inhi): Rewrite using output_reload_in_const and...
3229         (output_movhi): ...use it to print constants' loads.
3230         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
3231
3232 2011-09-25  David S. Miller  <davem@davemloft.net>
3233
3234         * config/sparc/constraints.md (C, P, Z): New constraints for
3235         const_doube, const_int, and const_vector "all ones" values.
3236         Make unused constraint letters comment match reality.
3237         * config/sparc/predicates.md (const_all_ones_operand,
3238         register_or_zero_or_all_ones_operand): New predicates.
3239         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
3240         as well as zero constants when VIS.
3241         (sparc_legitimate_constant_p): Likewise.
3242         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
3243         (movsf_insn): Likewise
3244         (movdi_insn_sp64): Add fone alternative.
3245         (movdf_insn_sp32_v9): Likewise.
3246         (movdf_insn_sp64): Likewise.
3247
3248         * configure.ac: Add feature check to make sure the assembler
3249         supports the FMAF, HPC, and VIS 3.0 instructions found on
3250         Niagara-3 and later cpus.
3251         * configure: Rebuild.
3252         * config.in: Likewise.
3253         * config/sparc/sparc.opt: New option '-mfmaf'.
3254         * config/sparc/sparc.md: Add float fused multiply-add patterns.
3255         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
3256         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
3257         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
3258         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
3259         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
3260         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
3261         disabled.
3262         (sparc_rtx_costs): Handle 'FMA'.
3263         * doc/invoke.texi: Document -mfmaf.
3264
3265 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
3266
3267         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
3268         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
3269         DECL_BY_REFERENCE parameters.
3270
3271 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
3272
3273         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
3274         if there is no outgoing edge.
3275
3276         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
3277         integral types.
3278
3279 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
3280
3281         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
3282         of vect_analyze_bb here.
3283         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
3284
3285 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
3286
3287         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
3288         Allow not simple iv if analyzing basic block.
3289         (create_data_ref): Update call to dr_analyze_innermost.
3290         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
3291         * tree-loop-distribution.c (generate_memset_zero): Likewise.
3292         * tree-predcom.c (find_looparound_phi): Likewise.
3293         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
3294
3295 2011-09-24  David S. Miller  <davem@davemloft.net>
3296
3297         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
3298         (SPARC_GSR_REG): Define.
3299         (FIXED_REGISTERS): Mark GSR as fixed.
3300         (CALL_USED_REGISTERS): Mark GSR as call used.
3301         (HARD_REGNO_NREGS): GSR is always 1 register.
3302         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
3303         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
3304         (REGISTER_NAMES): Add "%gsr".
3305         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
3306         (UNSPEC_WRGSR): New unspec.
3307         (GSR_REG): New constant.
3308         (type): Add new insn type 'gsr'.
3309         (fpack16_vis, fpackfix_vis, fpack32_vis,
3310         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
3311         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
3312         rdgsr_v8plus): New expanders and insns.
3313         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
3314         using patterns which show that this is a plus in addition to a
3315         modification of GSR_REG, instead of an unspec.
3316         * config/sparc/ultra1_2.md: Handle 'gsr'.
3317         * config/sparc/ultra3.md: Likewise.
3318         * config/sparc/niagara.md: Likewise.
3319         * config/sparc/niagara2.md: Likewise.
3320         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
3321         end of table.
3322         (sparc_option_override): Make -mvis imply -mv8plus.
3323         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
3324         for %gsr.
3325         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
3326         __builtin_vis_read_gsr.
3327         (sparc_expand_buildin): Handle builtins that take one argument and
3328         return void.
3329         (sparc_fold_builtin): Never fold writes to %gsr.
3330         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
3331         * doc/extend.texi: Document new VIS intrinsics.
3332
3333 2011-09-23  Jan Hubicka  <jh@suse.cz>
3334
3335         * ipa-inline-transform.c (inline_call): Add comment.
3336         * ipa-inline.h (inline_param_summary): New structure and vector.
3337         (struct inline_edge_summary): Add param field.
3338         * ipa-inline-analysis.c (CHANGED): New constant.
3339         (add_clause): Handle CHANGED and NOT_CONSTANT.
3340         (predicate_probability): New function.
3341         (dump_condition): Dump CHANGED predicate.
3342         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
3343         of unknown function wide invariant.
3344         (evaluate_conditions_for_edge): Handle change probabilities.
3345         (inline_edge_duplication_hook): Copy param summaries.
3346         (inline_edge_removal_hook): Free param summaries.
3347         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
3348         sizes; dump param summaries.
3349         (will_be_nonconstant_predicate): Use CHANGED predicate.
3350         (record_modified_bb_info): New structure.
3351         (record_modified): New function.
3352         (param_change_prob): New function.
3353         (estimate_function_body_sizes): Compute param summaries.
3354         (estimate_edge_size_and_time): Add probability argument.
3355         (estimate_node_size_and_time): Add inline_param_summary argument;
3356         handle predicate probabilities.
3357         (remap_predicate): Fix formating.
3358         (remap_edge_change_prob): New function.
3359         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
3360         (remap_edge_predicates): ... this one.
3361         (inline_merge_summary): Remap edge summaries; handle predicate
3362         probabilities; remove param summaries after we are done.
3363         (do_estimate_edge_time): Update.
3364         (do_estimate_edge_growth): Update.
3365         (read_inline_edge_summary): Read param info.
3366         (inline_read_summary): Fix formating.
3367         (write_inline_edge_summary): Write param summaries.
3368
3369 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
3370
3371         * config/i386/i386.c (ix86_print_operand): Handle %~.
3372         (ix86_print_operand_punct_valid_p): Return true also for '~'.
3373         * config/i386/sse.md (i128): New mode_attr.
3374         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
3375         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
3376         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
3377         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
3378         patterns, use "<sseinsnmode>" for "mode" attribute.
3379         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
3380         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
3381         %~128 in the patterns, use "OI" for "mode" attribute.
3382
3383 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3384
3385         PR target/50447
3386         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
3387         "tstsi", "compare".
3388         (*cmpqi_sign_extend): Use s8_operand.
3389         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
3390         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
3391         prototypes.
3392         (out_tsthi, out_tstsi): Remove prototypes.
3393         (avr_out_tsthi, avr_out_tstsi): New prototypes.
3394         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
3395         (avr_asm_len): Negative length now sets *plen to -length.
3396         (compare_sign_p): Return bool instead of int.
3397         (compare_diff_p, compare_eq_p): Ditto and make static.
3398         (avr_out_tsthi): New function.
3399         (avr_out_tstsi): New function.
3400         (avr_out_compare): New function.
3401         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
3402         ADJUST_LEN_COMPARE.
3403
3404 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3405
3406         PR target/50447
3407         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
3408         (addsi3): Rewrite using QI scratch register.  Adjust text
3409         peepholes using plus:SI.
3410         (*addsi3_zero_extend.hi): New insn.
3411         (*subsi3_zero_extend.hi): New insn.
3412         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
3413         (*subsi3_zero_extend): Ditto.
3414         (subsi3): Change predicate #2 to register_operand.
3415         * config/avr/avr-protos.h (avr_out_plus): New prototype.
3416         (avr_out_plus_1): New static function.
3417         (avr_out_plus): New function.
3418         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
3419
3420 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
3421
3422         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
3423         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
3424
3425 2011-09-23  Ian Lance Taylor  <iant@google.com>
3426
3427         * godump.c (go_define): Treat a single character in single quotes,
3428         or a string, as an operand.
3429
3430 2011-09-23  Martin Jambor  <mjambor@suse.cz>
3431
3432         * ipa-prop.h (jump_func_type): Updated comments.
3433         (ipa_known_type_data): New type.
3434         (ipa_jump_func): Use it to describe known type jump functions.
3435         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
3436         reflect the new known type jump function contents.
3437         (compute_known_type_jump_func): Likewise.
3438         (combine_known_type_and_ancestor_jfs): Likewise.
3439         (try_make_edge_direct_virtual_call): Likewise.
3440         (ipa_write_jump_function): Likewise.
3441         (ipa_read_jump_function): Likewise.
3442         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
3443         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
3444         (propagate_accross_jump_function): Likewise.
3445
3446 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3447
3448         PR target/50446
3449         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
3450         (rotlqi3_4): Turn insn into expander.
3451         (*rotlqi3): New insn.
3452         (rotlhi3, rotlsi3): Support rotate left/right by 1.
3453         (*rotlhi2.1, *rotlhi2.15): New insns.
3454         (*rotlsi2.1, *rotlsi2.31): New insns.
3455         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
3456
3457 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
3458
3459         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
3460
3461 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3462
3463         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
3464
3465 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3466
3467         * reload.c (find_reloads): Set operand_mode to Pmode for address
3468         operands consisting of just a CONST_INT.
3469
3470 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
3471
3472         PR target/50482
3473         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3474         blendv, force op_true to register if it doesn't satisfy
3475         nonimmediate_operand predicate.
3476
3477 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
3478
3479         PR middle-end/50113
3480         PR middle-end/50061
3481         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
3482         get the locate.where_pad value for register-only arguments.
3483         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
3484         (arm_pad_reg_upward): Handle null types.
3485
3486 2011-09-22  Jan Hubicka  <jh@suse.cz>
3487
3488         * ipa-inline-analysis.c: Fix overly long lines.
3489
3490 2011-09-22  Jan Hubicka  <jh@suse.cz>
3491
3492         * ipa-inline-transform.c (inline_call): Always update jump functions
3493         after inlining.
3494         * ipa-inline.c (ipa_inline): Likewise; do not call
3495         ipa_create_all_structures_for_iinln.
3496         (ipa_inline): Always free jump functions.
3497         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
3498         (remap_edge_predicates): Fix pasto.
3499         (inline_merge_summary): Remove nlined edge predicate; remove hack.
3500         (inline_analyze_function): Always initialize jump functions.
3501         (inline_generate_summary): Likewise.
3502         (inline_write_summary): Always write jump functions when ipa-cp
3503         is not doing that.
3504         (inline_read_summary): Always read jump functions when ipa-cp
3505         is not doing that.
3506         * ipa-prop.c (iinlining_processed_edges): Remove.
3507         (update_indirect_edges_after_inlining): Do not use
3508         iinlining_processed_edges; instead set param_index to -1.
3509         (propagate_info_to_inlined_callees): Only try to indirect inlining
3510         when asked to do so; update jump functions of indirect calls, too;
3511         remove jump functions of the inlined edge.
3512         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
3513         (ipa_create_all_structures_for_iinln): Remove.
3514         (ipa_free_all_structures_after_iinln): Do not free
3515         iinlining_processed_edges.
3516         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
3517
3518 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
3519
3520         * config/arm/predicates.md (expandable_comparison_operator): New
3521         predicate, extracted from...
3522         (arm_comparison_operator): ...here.
3523         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
3524         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
3525         (movdfcc): Use expandable_comparison_operator.
3526
3527 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
3528
3529         PR target/50447
3530         PR target/50465
3531         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
3532         (avr_popcount_each_byte): New prototype.
3533         * config/avr/avr.c (avr_popcount): New static function.
3534         (avr_popcount_each_byte): New function.
3535         (avr_out_bitop): New function.
3536         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
3537         avr_out_bitop.  Cleanup code.
3538         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
3539         (Ca4, Co4, Cx4): New constraints.
3540         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
3541         alternative.
3542         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
3543         (andsi3, iorsi3, xorsi3): Ditto.
3544         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
3545
3546 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
3547
3548         PR tree-optimization/50451
3549         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
3550         constant operands in reduction.
3551         (vect_get_slp_defs): Don't create vector operand for NULL scalar
3552         operand.
3553
3554 2011-09-22  David S. Miller  <davem@davemloft.net>
3555
3556         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
3557         fpack16, fpack32, fpackfix as const.
3558
3559         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
3560         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
3561         constants.  Use them everywhere.
3562
3563 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
3564
3565         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
3566         Added AND special case.  Adapted comments.
3567         (sh_rtx_costs): Added XOR and IOR case.
3568
3569 2011-09-21  Jan Hubicka  <jh@suse.cz>
3570
3571         * ipa-inline-analsis.c (compute_inline_parameters): Set
3572         cfun and current_function_decl.
3573
3574 2011-09-21  Jan Hubicka  <jh@suse.cz>
3575
3576         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
3577         handled components in parameter of builtin_constant_p.
3578         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
3579
3580 2011-09-21  Jan Hubicka  <jh@suse.cz>
3581
3582         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
3583         * ipa-inline.h (estimate_edge_time): Fix pasto.
3584         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
3585
3586 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
3587
3588         * config/i386/i386.c (ix86_expand_sse_movcc): Use
3589         blendvps, blendvpd and pblendvb if possible.
3590
3591 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
3592
3593         PR target/50464
3594         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
3595         operand 1 predicate to register_operand and operand 2 predicate
3596         to nonimmediate_operand.
3597         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3598         xop_pcmov, force op_true to register.  Also, force op_false to
3599         register if it doesn't satisfy nonimmediate_operand predicate.
3600
3601 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
3602
3603         * config/i386/bmi2intrin.h (_mulx_u64): New.
3604         (_mulx_u32): Ditto.
3605
3606 2011-09-21  Jan Hubicka  <jh@suse.cz>
3607
3608         PR tree-optimization/50433
3609         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
3610         Use get_base_address.
3611
3612 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
3613
3614         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
3615         nonimmediate_operand instead of register_operand predicate for operands
3616         1 and 2, force them into registers if expanding them as comparison.
3617         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
3618         V8HImode force into register just operand 1.
3619
3620 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
3621
3622         PR target/45099
3623         * config/avr/avr.c (avr_function_arg_advance): Change error to
3624         warning if a fixed register is needed as function argument.
3625
3626 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
3627
3628         PR target/50449
3629         PR target/50465
3630         * config/avr/avr.md (adjust_len): New insn attribute.
3631         (*reload_insi, *reload_insf): Use it.
3632         (*movsi, *movsf): Use new interface of output_movsisf.
3633         * config/avr/avr-protos.h (output_movsisf): Change prototype.
3634         * config/avr/avr.c (output_movsisf): Ditto.
3635         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
3636         lengths of insns *reload_insi, *reload_insf.
3637         (output_reload_insisf_1): New static function.
3638         (output_reload_insisf): Use it.
3639
3640 2011-09-21  David S. Miller  <davem@davemloft.net>
3641
3642         * config/sparc/sparc.c (def_builtin): Change from macro into function.
3643         (def_builtin_const): New.
3644         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
3645         other than alignaddr and falignaddr.
3646
3647         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
3648         UNSPEC_FCMPEQ): New unspec codes.
3649         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
3650         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
3651         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
3652         new pixel compare VIS patterns.
3653         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
3654         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
3655         __vis_fcmpeq16, __vis_fcmpeq32): New.
3656         * doc/extend.texi: Document new pixel compare VIS intrinsics.
3657
3658 2011-09-21  Tom de Vries  <tom@codesourcery.com>
3659
3660         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
3661
3662 2011-09-20  David S. Miller  <davem@davemloft.net>
3663
3664         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
3665         (aligneddrl<P:mode>_vis): New pattern.
3666         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3667         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
3668         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
3669         alignaddrl insn, and adjust edge operations for updated types.
3670         * config/sparc/visintrin.h: Likewise.
3671         * doc/extend.texi: Make typing in VIS documentation match reality.
3672
3673 2011-09-20  Terry Guo  <terry.guo@arm.com>
3674
3675         * config/arm/arm-arches.def: Add armv6s-m.
3676         * config/arm/arm-tables.opt: Regenerate.
3677
3678 2011-09-20  Wei Guozhi  <carrot@google.com>
3679
3680         PR rtl-optimization/49452
3681         * postreload.c (reload_combine): Invalidate use information when across
3682         volatile insn.
3683
3684 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
3685
3686         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
3687         Remove maintenance overhead.
3688         (haifa_sched_init, sched_finish): Update.
3689
3690 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
3691
3692         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
3693         to calculate unit, prefix_rep and prefix_data16 attributes.
3694         (*mov<mode>_internal): Ditto for unit attribute.
3695         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
3696         (*movv2sf_internal): Ditto.
3697         * config/i386/sse.md (VI1248_256): Remove mode iterator.
3698         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
3699         (*avx2_eq<mode>3): Ditto.
3700         (avx2_gt<mode>3): Ditto.
3701
3702 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
3703
3704         * config/i386/i386.md (maxmin): New code iterator.
3705         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
3706         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
3707         code iterator.
3708         (*avx2_<maxmin:code><mode>3): Macroize isn from
3709         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
3710         maxmin code iterator.
3711         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
3712         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
3713         <umaxmin:code>v16qi3.
3714
3715 2011-09-19  Alan Modra  <amodra@gmail.com>
3716             Michael Meissner  <meissner@linux.vnet.ibm.com>
3717
3718         PR target/50341
3719         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
3720         split the load of the indirect function's TOC from the call to
3721         prevent the compiler from moving the load of the new TOC above
3722         code that references the current function's TOC.
3723         (call_indirect_aix<ptrsize>_internal): Ditto.
3724         (call_indirect_aix<ptrsize>_nor11): Ditto.
3725         (call_indirect_aix<ptrsize>_internal2): Ditto.
3726         (call_value_indirect_aix<ptrsize>): Ditto.
3727         (call_value_indirect_aix<ptrsize>_internal): Ditto.
3728         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3729         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3730
3731 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
3732
3733         * config/i386/sse.md (*sse4_1_extractps): Change into
3734         define_insn_and_split, add =x 0 n and =x x n alternatives
3735         and split them after reload.
3736
3737 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
3738
3739         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
3740
3741 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
3742
3743         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
3744
3745 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
3746
3747         PR tree-optimization/50413
3748         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
3749         a basic block if one of its data-refs can't be analyzed.
3750
3751 2011-09-19  Paul Brook  <paul@codesourcery.com>
3752
3753         * config/arm/predicates.md (shift_amount_operand): Check constant
3754         shift count is in range.
3755         (const_shift_operand): Remove.
3756
3757 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
3758             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
3759
3760         PR target/50091
3761         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
3762         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
3763
3764 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
3765
3766         * config/i386/bmiintrin.h: Remove tmp.
3767         * config/i386/tbmintrin.h: Likewise.
3768
3769 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
3770
3771         PR tree-optimization/50414
3772         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
3773         MIN_EXPR.
3774
3775 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
3776
3777         PR tree-optimization/50412
3778         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
3779         acceses that require epilogue loop if vectorizing outer loop.
3780
3781 2011-09-17  David S. Miller  <davem@davemloft.net>
3782
3783         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
3784         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
3785         New unspecs.
3786         (define_attr type): New type 'edge'.
3787         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3788         edge32l_vis): New patterns.
3789         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
3790         * config/sparc/ultra3.md: Likewise.
3791         * config/sparc/niagara.md: Likewise.
3792         * config/sparc/niagara2.md: Likewise.
3793         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
3794         builtins for VIS edge instructions.
3795         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
3796         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
3797         intrinsics.
3798         (__v8qi, __v4qi): Make unsigned.
3799         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
3800         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
3801         __vis_fpack32): Fix types.
3802         * doc/extend.texi: Document new 'edge' VIS intrinsics.
3803
3804         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
3805         divide costs.
3806         (niagara3_costs): New.
3807         (sparc_option_override): Use it.
3808         * gcc/config/sparc/niagara2.md: Adjust with more accurate
3809         Niagara-3 reservations.
3810
3811 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
3812
3813         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
3814         (sse2_avx, sseinsnmode): Add V2TI.
3815         (REDUC_SMINMAX_MODE): New mode iterator.
3816         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
3817         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
3818         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
3819         (sse2_lshrv1ti3): Rename to...
3820         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
3821         iterator.  Move before umaxmin expanders.
3822         * config/i386/i386.h (VALID_AVX256_REG_MODE,
3823         SSE_REG_MODE_P): Accept V2TImode.
3824         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
3825         V16HImode, V8SImode and V4DImode.
3826
3827         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
3828         and V4DImode.
3829         (ix86_build_signbit_mask): Likewise.
3830         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
3831         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
3832         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
3833         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
3834         (<code><mode>3) ... this.
3835         (avx2_<code><mode>3 smaxmin expand): Rename to...
3836         (<code><mode>3) ... this.
3837         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
3838         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
3839         VI8_AVX2 mode iterator.
3840         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
3841         VI8_AVX2 mode iterator.
3842         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
3843         New expanders.
3844
3845 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
3846
3847         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
3848         throughout file.
3849
3850 2011-09-16  David S. Miller  <davem@davemloft.net>
3851
3852         * config/sparc/visintrin.h: New file.
3853         * config.gcc: Add it to extra_headers on sparc.
3854
3855 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
3856
3857         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
3858         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
3859         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
3860         reduc_smin_v4sf): Adjust callers.
3861         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
3862         New expanders.
3863
3864         * config/i386/sse.md (vec_extract_hi_<mode>,
3865         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
3866         vextracti128 instead of vextractf128 for -mavx2 and
3867         integer vectors.  For V4DFmode fix up mode attribute.
3868         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
3869         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
3870         instead of V8SF mode attribute.
3871         (avx2_extracti128): Change into define_expand.
3872         * config/i386/i386.c (ix86_expand_vector_extract): Handle
3873         32-byte vector modes if TARGET_AVX.
3874
3875 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
3876
3877         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
3878         (umulqi3_highpart, smulqi3_highpart): Ditto.
3879         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
3880         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
3881         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
3882
3883 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
3884
3885         PR target/50358
3886         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
3887         (*maddqi4, *maddqi4.const): New insns.
3888         (*msubqi4, *msubqi4.const): New insns.
3889         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
3890         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
3891         HImode by 1 in the case of multiplying with a CONST_INT.
3892         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
3893
3894 2011-09-15   Jan Hubicka  <jh@suse.cz>
3895
3896         PR lto/50430
3897         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
3898         error_mark_node in the DECL_INITIAL of vtable.
3899
3900 2011-09-15   Diego Novillo  <dnovillo@google.com>
3901
3902         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
3903         @SYSROOT_CFLAGS_FOR_TARGET@.
3904         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
3905         * configure: Regenerate.
3906         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
3907         Remove setting of GCC_UNDER_TEST.
3908
3909 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
3910
3911         * config/i386/i386.c (output_fp_compare): Return %v prefixed
3912         instruction mnemonics for TARGET_AVX.
3913
3914         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
3915         "type" attribute calculation.
3916         (*movdf_internal): Ditto.
3917         (*movsf_internal): Ditto.
3918
3919 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
3920
3921         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
3922
3923 2011-09-15  Jason Merrill  <jason@redhat.com>
3924
3925         PR c++/50361
3926         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
3927
3928 2011-09-15  Jan Hubicka  <jh@suse.cz>
3929
3930         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
3931         simplify obviously true clauses.
3932         (and_predicates, or_predicates): Add conditions parameter.
3933         (inline_duplication_hoook): Update.
3934         (mark_modified): New function.
3935         (unmodified_parm): New function.
3936         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
3937         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
3938         Use unmodified_parm.
3939         (estimate_function_body_sizes): Update.
3940         (remap_predicate): Update.
3941
3942 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
3943
3944         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
3945         read-after-read dependencies in basic block SLP.
3946
3947 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3948
3949         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
3950         throughout file.
3951
3952 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3953
3954         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
3955         throughout file.
3956
3957 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3958
3959         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
3960         throughout file.
3961
3962 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3963
3964         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
3965         throughout file.
3966         * config/rs6000/constraints.md: Likewise.
3967
3968 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3969
3970         * config/microblaze/microblaze.md: Use match_test rather than
3971         eq/ne symbol_ref throughout file.
3972
3973 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3974
3975         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
3976         throughout file.
3977
3978 2011-09-14  Tom de Vries  <tom@codesourcery.com>
3979
3980         PR middle-end/50251
3981         * explow.c (emit_stack_restore): Set crtl->need_drap if
3982         stack_restore is emitted.
3983
3984 2011-09-14  Julian Brown  <julian@codesourcery.com>
3985
3986         * config/arm/arm.c (arm_override_options): Add unaligned_access
3987         support.
3988         (arm_file_start): Emit attribute for unaligned access as appropriate.
3989         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
3990         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
3991         (insv, extzv): Add unaligned-access support.
3992         (extv): Change to expander. Likewise.
3993         (extzv_t1, extv_regsi): Add helpers.
3994         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
3995         (unaligned_storesi, unaligned_storehi): New.
3996         (*extv_reg): New (previous extv implementation).
3997         * config/arm/arm.opt (munaligned_access): Add option.
3998         * config/arm/constraints.md (Uw): New constraint.
3999         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
4000         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
4001         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
4002         volatile accesses when -fstrict-volatile-bitfields is in effect.
4003         (extract_bit_field_1): Likewise.
4004
4005 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
4006
4007         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
4008         a scalar integer before applying integer-only optimisations to
4009         inner arithmetic.
4010
4011 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
4012
4013         * config/mips/mips.c (mips_expand_epilogue): Generate a
4014         simple_return only if the return address is in r31.
4015
4016 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
4017
4018         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
4019         NULL for a jump that is a cc0 insn, pick the previous insn for
4020         move_before.
4021
4022 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
4023
4024         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
4025         throughout file.
4026
4027 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
4028
4029         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
4030         throughout file.
4031
4032 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
4033
4034         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
4035         symbol_ref throughout file.
4036
4037 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
4038
4039         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
4040         throughout file.
4041
4042 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
4043
4044         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
4045         throughout file.
4046
4047 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
4048
4049         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
4050         throughout file.
4051         * config/arm/neon.md: Likewise.
4052         * config/arm/vfp.md: Likewise.
4053         * config/arm/thumb2.md: Likewise.
4054         * config/arm/cortex-m4.md: Likewise.
4055
4056 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
4057
4058         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
4059         define_insn patterns for combine.
4060
4061 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
4062
4063         * reorg.c: Always define make_return_insns.
4064
4065 2011-09-13  Jan Hubicka  <jh@suse.cz>
4066
4067         PR other/49533
4068         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
4069
4070 2011-09-13  Jan Hubicka  <jh@suse.cz>
4071
4072         PR other/49533
4073         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
4074
4075 2011-09-13  Paul Brook  <paul@codesourcery.com>
4076
4077         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4078         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
4079         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
4080         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
4081         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
4082         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
4083         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
4084         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
4085         enabling unwind tables.
4086         (c6x_debug_unwind_info): New function.
4087         (TARGET_ARM_EABI_UNWINDER): Define.
4088         (TARGET_DEBUG_UNWIND_INFO): Define.
4089         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
4090         (TARGET_EXTRA_CFI_SECTION): Remove.
4091         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
4092         * ginclude/unwind-arm-common.h: New file.
4093
4094 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
4095
4096         PR target/50358
4097         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
4098         * config/avr/avr.md: (extend_s): New code attribute.
4099         (mul_r_d): New code attribute.
4100         (*maddqihi4, *umaddqihi4): New insns.
4101         (*msubqihi4, *umsubqihi4): New insns.
4102         (*usmaddqihi4, *sumaddqihi4): New insns.
4103         (*usmsubqihi4, *susubdqihi4): New insns.
4104         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
4105         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
4106         (*umsubqihi4.uconst.ashift): New insn-and-split.
4107         (*msubqihi4.sconst.ashift): New insn-and-split.
4108         (*sumaddqihi4.uconst): New insn-and-split.
4109         (*sumsubqihi4.uconst): New insn-and-split.
4110         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
4111         PLUS:HI and MINUS:HI.
4112
4113 2011-09-13  Revital Eres  <revital.eres@linaro.org>
4114
4115         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
4116         (optimize_sc): Adjust call to remove_node_from_ps.
4117         (sms_schedule): Add print info.
4118
4119 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
4120
4121         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
4122         flags specially.
4123
4124 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
4125
4126         PR bootstrap/50010
4127         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
4128         NOTE_INSN_CFI notes, with the exception of
4129         NOTE_INSN_SWITCH_TEXT_SECTIONS.
4130
4131 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
4132             Richard Sandiford  <rdsandiford@googlemail.com>
4133
4134         * config/mips/mips.c (mips_epilogue): New structure.
4135         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
4136         restoring registers.
4137         (mips_epilogue_emit_cfa_restores): New function.
4138         (mips_epilogue_set_cfa): Likewise.
4139         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
4140         the current CFA register from the stack, redefine the CFA in terms
4141         of the stack pointer.
4142         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
4143         to the epilogue instructions.
4144
4145 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
4146
4147         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
4148         argument.
4149         (mips16e_build_save_restore): Update accordingly.
4150
4151 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
4152
4153         PR rtl-optimization/50212
4154         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4155         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
4156
4157         PR debug/50299
4158         * calls.c (load_register_parameters): Use use_reg_mode instead
4159         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
4160         entry.
4161         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
4162         for stack CALL_INSN_FUNCTION_USAGE uses.
4163         * expr.h (use_reg_mode): New prototype.
4164         (use_reg): Changed into inline around use_reg_mode.
4165         * expr.c (use_reg): Renamed to...
4166         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
4167         mode to that mode instead of VOIDmode.
4168         * var-tracking.c (prepare_call_arguments): Don't track parameters
4169         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
4170         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
4171         EXPR_LIST mode.
4172
4173 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
4174
4175         PR target/43746
4176         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
4177         (progmem_section): New Variable.
4178         (avr_asm_init_sections): Initialize it.
4179         (TARGET_ASM_SELECT_SECTION): Define to...
4180         (avr_asm_select_section): ... this new Function.
4181         (avr_replace_prefix): New Function.
4182         (avr_asm_function_rodata_section): Use it.
4183         (avr_insert_attributes): Don't add section attribute for PROGMEM.
4184         (avr_section_type_flags): Use avr_progmem_p instead of section
4185         name to detect if object is in PROGMEM.
4186         (avr_asm_named_section): Set section name prefix for objects in
4187         PROGMEM.
4188
4189 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
4190
4191         PR bootstrap/50352
4192         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
4193         sprintf format string.
4194
4195 2011-09-12  Richard Guenther  <rguenther@suse.de>
4196
4197         PR tree-optimization/50343
4198         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
4199         that the reduction is over an SSA name before checking its definition.
4200
4201 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
4202
4203         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
4204         throughout file.
4205
4206 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
4207
4208         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
4209         throughout file.
4210         * config/mips/sb1.md: Likewise.
4211         * config/mips/predicates.md: Replace (match_test "!...")
4212         with (not (match_test "..."))
4213         * config/mips/constraints.md: Likewise.
4214
4215 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
4216
4217         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
4218         * config/arm/arm-tables.opt: Regenerate.
4219         * config/arm/arm-tune.md: Regenerate.
4220         * config/arm/arm.c (arm_file_start): Output .arch directive when
4221         user passes -mcpu=generic-*.
4222         (arm_issue_rate): Add genericv7a support.
4223         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
4224         (ASM_CPU_SPEC): New define.
4225         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
4226         * config/arm/semi.h (ASM_SPEC): Likewise.
4227         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
4228         and -mtune=generic-*.
4229
4230 2011-09-09  Richard Guenther  <rguenther@suse.de>
4231
4232         PR tree-optimization/50328
4233         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
4234         constant or default-def operand.
4235
4236 2011-09-09  Richard Guenther  <rguenther@suse.de>
4237
4238         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
4239         last statement.
4240
4241 2011-09-09  Richard Guenther  <rguenther@suse.de>
4242
4243         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
4244         instead of a statement.
4245         * gimple-fold.c (fold_stmt_inplace): Likewise.
4246         * sese.c (graphite_copy_stmts_from_block): Adjust.
4247         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
4248         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
4249         fold_stmt.
4250         (forward_propagate_addr_into_variable_array_index): Likewise.
4251         (forward_propagate_addr_expr_1): adjust.
4252         (associate_plusminus): Likewise.
4253         (ssa_forward_propagate_and_combine): Likewise.
4254         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
4255         (execute_cse_reciprocals): Likewise.
4256         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
4257
4258 2011-09-09  Nick Clifton  <nickc@redhat.com>
4259
4260         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
4261         Return a positive value to indicate that the bits at the
4262         bottom of the register should be cleared.
4263
4264 2011-09-09  Richard Guenther  <rguenther@suse.de>
4265
4266         * tree-ssa-operands.c (swap_tree_operands): Always adjust
4267         existing operand positions.
4268
4269 2011-09-09  Richard Guenther  <rguenther@suse.de>
4270
4271         PR middle-end/50333
4272         * tree-data-ref.c (split_constant_offset): Do not try to handle
4273         ternary ops.
4274
4275 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
4276
4277         PR tree-optimization/50318
4278         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
4279         typo in use of mult_rhs1 and mult_rhs2.
4280
4281 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
4282
4283         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
4284         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
4285
4286 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
4287
4288         * config/arm/arm.md (push_multi): Emit predicates.
4289         (push_fp_multi): Likewise.
4290         * config/arm/arm.c (vfp_output_fstmd): Likewise.
4291
4292 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
4293
4294         PR c++/33255 - Support -Wunused-local-typedefs warning
4295         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
4296         (pushdecl): Use the new record_locally_defined_typedef.
4297         (store_parm_decls): Allocate cfun->language.
4298         (finish_function): Use the new maybe_warn_unused_local_typedefs,
4299         and free cfun->language.
4300         (c_push_function_context): Allocate cfun->language here only if needed.
4301         (c_pop_function_context): Likewise, mark cfun->language
4302         for collection only when it should be done.
4303         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
4304         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
4305         maybe_record_local_typedef_use.
4306         * doc/invoke.texi: Update documentation for
4307         -Wunused-local-typedefs.
4308
4309 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
4310
4311         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
4312         (ix86_avoid_lea_for_add): Likewise.
4313         (ix86_avoid_lea_for_addr): Likewise.
4314         (ix86_split_lea_for_addr): Likewise.
4315
4316         * config/i386/i386.c (LEA_MAX_STALL): New.
4317         (increase_distance): Likewise.
4318         (insn_defines_reg): Likewise.
4319         (insn_uses_reg_mem): Likewise.
4320         (distance_non_agu_define_in_bb): Likewise.
4321         (distance_agu_use_in_bb): Likewise.
4322         (ix86_lea_outperforms): Likewise.
4323         (ix86_ok_to_clobber_flags): Likewise.
4324         (ix86_avoid_lea_for_add): Likewise.
4325         (ix86_avoid_lea_for_addr): Likewise.
4326         (ix86_split_lea_for_addr): Likewise.
4327         (distance_non_agu_define): Search in pred BBs added.
4328         (distance_agu_use): Search in succ BBs added.
4329         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
4330         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
4331         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
4332
4333         * config/i386/i386.md: Split added to transform non destructive
4334         add into move and add.
4335         (lea_1): transformed into insn_and_split to avoid AGU stalls.
4336         (lea<mode>_2): Likewise.
4337
4338 2011-09-08  Martin Jambor  <mjambor@suse.cz>
4339
4340         PR tree-optimization/50287
4341         * ipa-split.c (split_function): Do not create SSA names for
4342         non-gimple-registers.
4343
4344 2011-09-08  Richard Guenther  <rguenther@suse.de>
4345
4346         PR tree-optimization/19831
4347         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
4348         skip builtins with vdefs that do not really store something.
4349         (propagate_necessity): For calls to free that we can associate
4350         with an allocation function do not mark the freed pointer
4351         definition necessary.
4352         (eliminate_unnecessary_stmts): Remove a call to free if
4353         the associated call to an allocation function is not necessary.
4354
4355 2011-09-08  Richard Guenther  <rguenther@suse.de>
4356
4357         PR tree-optimization/19831
4358         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
4359         allocation functions as necessary.
4360
4361 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
4362
4363         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
4364         cut from ...
4365         (darwin_default_min_version): Amended to provide defaults
4366         for the cross directory case.
4367         (darwin_driver_init): call darwin_default_min_version unconditionally.
4368         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
4369         * config/darwin9.h: Likewise.
4370         * config/darwin10.h: Likewise.
4371         * config/rs6000/darwin7.h: Likewise.
4372
4373 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
4374
4375         PR target/50310
4376         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
4377         code early if TARGET_AVX.
4378         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
4379
4380 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
4381
4382         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
4383         duplicates.
4384
4385         PR target/50310
4386         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
4387         "mode" attribute computation.
4388
4389 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
4390
4391         * regrename.c (struct du_head): Make nregs signed.
4392         (closed_chains): Remove.
4393         (create_new_chain): Return the new chain.
4394         (chain_from_id): New static function.
4395         (dump_def_use_chain): Change argument to be an int, indicating
4396         the first ID to print.  All callers changed.
4397         (merge_overlapping_regs): Use chain_from_id.  Assert that
4398         chains don't conflict with themselves.
4399         (rename_chains): Take no argument.  Iterate over id_to_chain
4400         rather to find chains to rename.  Clear tick before the main loop.
4401         (struct incoming_reg_info): New struct.
4402         (struct bb_rename_info): New struct.
4403         (init_rename_info, set_incoming_from_chain, merge_chains): New
4404         static functions.
4405         (regrename_analyze): New static function, broken out of
4406         regrename_optimize.  Record and make use of open chain information
4407         at basic block boundaries, and merge chains where possible.
4408         (scan_rtx_reg): Make this_nregs signed.  Don't update
4409         closed_chains.
4410         (build_def_use): Return a bool to indicate success.  All callers
4411         changed.  Don't initialize global data here.
4412         (regrename_optimize): Move most code out of here into
4413         regrename_analyze.
4414         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
4415         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
4416         static inline functions.
4417         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
4418
4419         * bb-reorder.c (insert_section_boundary_note): Don't check
4420         optimize_function_for_speed_p.
4421         (gate_handle_partition_blocks): Do it here instead.
4422         (gate_handle_reorder_blocks): Move preliminary checks here ...
4423         (rest_of_handle_reorder_blocks): ... from here.
4424
4425 2011-09-07  Martin Jambor  <mjambor@suse.cz>
4426
4427         PR middle-end/50301
4428         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
4429         function index bounds.
4430         (perhaps_add_new_callers): Likewise.
4431
4432 2011-09-07  Martin Jambor  <mjambor@suse.cz>
4433
4434         PR tree-optimization/49911
4435         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
4436         enumerations to the corresponding plain integer type.
4437
4438 2011-09-07  Richard Guenther  <rguenther@suse.de>
4439
4440         PR tree-optimization/50319
4441         * tree-if-conv.c (set_bb_predicate): Assert we only set
4442         canonical predicates.
4443         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
4444         around canonical predicates.
4445         (predicate_bbs): Do not re-gimplify already canonical
4446         predicates.  Properly unshare them though.
4447         (find_phi_replacement_condition): Simplify.
4448
4449 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
4450
4451         PR target/49030
4452         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
4453         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
4454         reusing the old code from get_arm_condition_code.  Return ARM_NV
4455         for invalid comparison codes.
4456         (get_arm_condition_code): Redefine in terms of
4457         maybe_get_arm_condition_code.
4458         * config/arm/predicates.md (arm_comparison_operator): Use
4459         maybe_get_arm_condition_code.
4460
4461 2011-09-07  Richard Guenther  <rguenther@suse.de>
4462
4463         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
4464         Canonicalize negated predicates by swapping edges.
4465         (forward_propagate_into_cond): Likewise.
4466
4467 2011-09-07  Richard Guenther  <rguenther@suse.de>
4468
4469         PR tree-optimization/50213
4470         * tree-flow.h (simple_iv_increment_p): Declare.
4471         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
4472         POINTER_PLUS_EXPR.
4473         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
4474         not propagate simple IV counter increments.
4475
4476 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
4477             Iain Sandoe  <iains@gcc.gnu.org>
4478
4479         * config/rs6000/rs6000.c (compute_save_world_info): Test
4480         cfun->has_nonlocal_label to determine if the out-of-line save
4481         world call may be used.
4482
4483 2011-09-07  Nick Clifton  <nickc@redhat.com>
4484
4485         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
4486         label on the parallel part of the insn.
4487
4488 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
4489
4490         PR debug/50191
4491         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
4492         avoid_constant_pool_reference first instead of last.
4493
4494 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4495
4496         * doc/configfiles.texi (Configuration Files): Update documentation
4497         about tm_p.h and remove FIXME comment.
4498
4499 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
4500
4501         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
4502         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
4503
4504 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
4505
4506         * config/darwin10.h Remove duplicate LIB_SPEC.
4507
4508 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
4509
4510         PR middle-end/44382
4511         * target.def (reassociation_width): New hook.
4512
4513         * doc/tm.texi.in (reassociation_width): Likewise.
4514
4515         * doc/tm.texi (reassociation_width): Likewise.
4516
4517         * doc/invoke.texi (tree-reassoc-width): New param documented.
4518
4519         * hooks.h (hook_int_uint_mode_1): New default hook.
4520
4521         * hooks.c (hook_int_uint_mode_1): Likewise.
4522
4523         * config/i386/i386.h (ix86_tune_indices): Add
4524         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4525
4526         (TARGET_REASSOC_INT_TO_PARALLEL): New.
4527         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
4528
4529         * config/i386/i386.c (initial_ix86_tune_features): Add
4530         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4531
4532         (ix86_reassociation_width): New function.
4533
4534         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
4535
4536         * tree-ssa-reassoc.c (get_required_cycles): New function.
4537         (get_reassociation_width): Likewise.
4538         (swap_ops_for_binary_stmt): Likewise.
4539         (rewrite_expr_tree_parallel): Likewise.
4540
4541         (rewrite_expr_tree): Refactored.  Part of code moved into
4542         swap_ops_for_binary_stmt.
4543
4544         (reassociate_bb): Now checks reassociation width to be used and
4545         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
4546
4547 2011-09-06  Richard Guenther  <rguenther@suse.de>
4548
4549         PR tree-optimization/47025
4550         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
4551         uses nothing.
4552         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
4553         BUILT_IN_FREE.
4554         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
4555         definitely points to.
4556         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4557         BUILT_IN_VA_START doesn't let its va_list argument escape.
4558         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
4559         not make any previous stores necessary.
4560
4561 2011-09-06  Martin Jambor  <mjambor@suse.cz>
4562
4563         * ipa-inline.h (struct inline_summary): Move versionable flag...
4564         * cgraph.h (struct cgraph_local_info): ...here
4565         * ipa-cp.c (determine_versionability): Use the new versionable flag.
4566         (determine_versionability): Likewise.
4567         (ipcp_versionable_function_p): Likewise.
4568         (ipcp_generate_summary): Likewise.
4569         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
4570         versionable flag.
4571         (compute_inline_parameters): Do not clear the versionable flag.
4572         (inline_read_section): Do not stream the versionable flag.
4573         (inline_write_summary): Likewise.
4574         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
4575         (input_overwrite_node): Likewise.
4576
4577 2011-09-06  Richard Guenther  <rguenther@suse.de>
4578
4579         PR tree-optimization/48149
4580         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
4581         (vn_valueize): Move earlier.
4582         (valueize_expr): Use vn_valueize.
4583         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
4584         operands.
4585         (simplify_unary_expression): Simplify.
4586
4587 2011-09-06  Richard Guenther  <rguenther@suse.de>
4588
4589         PR tree-optimization/48317
4590         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
4591         trailing array.
4592         (sizeof_vn_nary_op): New inline function.
4593         (vn_nary_op_lookup_pieces): Adjust.
4594         (vn_nary_op_insert_pieces): Likewise.
4595         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
4596         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
4597         any number of operands.
4598         (vn_nary_length_from_stmt): New function.
4599         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
4600         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
4601         sized temporary.
4602         (vn_nary_op_lookup): Likewise.
4603         (vn_nary_op_lookup_stmt): Likewise.
4604         (vn_nary_op_insert_into): Likewise.
4605         (vn_nary_op_insert_stmt): Likewise.
4606         (visit_use): Handle CONSTRUCTOR as nary.
4607         * tree-ssa-pre.c (phi_translate_1): Adjust.
4608         (create_expression_by_pieces): Likewise.
4609         (compute_avail): Likewise.
4610
4611 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
4612
4613          * config/arm/arm.c (arm_preferred_simd_mode): Check
4614         TARGET_NEON_VECTORIZE_DOUBLE instead of
4615         TARGET_NEON_VECTORIZE_QUAD.
4616         (arm_autovectorize_vector_sizes): Likewise.
4617         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
4618         mask of mvectorize-with-neon-double.  Add RejectNegative.
4619         (mvectorize-with-neon-double): New.
4620
4621 2011-09-06  Richard Guenther  <rguenther@suse.de>
4622
4623         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
4624
4625 2011-09-06  Tom de Vries  <tom@codesourcery.com>
4626
4627         * recog.c (asm_labels_ok): New function.
4628         (check_asm_operands): Use asm_labels_ok.
4629
4630 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
4631
4632         PR target/49606
4633         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
4634         (PMODE_INSN): New macro.
4635         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
4636         (mips_got_load, mips_expand_synci_loop): Likewise.
4637         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
4638         cprestore patterns.
4639         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
4640         copygp_mips16 patterns.
4641         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
4642         and use_cprestore patterns.
4643         (mips_override_options): Check for incompatible -mabi and -mlong
4644         combinations.
4645         * config/mips/mips.md (unspec_got<mode>): Rename to...
4646         (unspec_got_<mode>): ...this.
4647         (copygp_mips16): Use the Pmode iterator.
4648         (potential_cprestore, cprestore, use_cprestore): Likewise.
4649         (clear_cache, indirect_jump): Use PMODE_INSN.
4650         (indirect_jump<mode>): Rename to...
4651         (indirect_jump_<mode>): ...this.
4652         (tablejump): Use PMODE_INSN.
4653         (tablejump<mode>): Rename to...
4654         (tablejump_<mode>): ...this.
4655         (exception_receiver): Handle restore_gp_si and restore_gp_di.
4656         (restore_gp): Use the Pmode iterator.
4657         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
4658         PMODE_INSN.
4659
4660 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
4661
4662         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
4663         Fix the type of the BIT_AND_EXPR.
4664
4665 2011-09-05  David S. Miller  <davem@davemloft.net>
4666
4667         * config.host: Add driver-sparc.o and sparc/x-sparc on
4668         native sparc*-*-linux* builds.
4669         * config/sparc/driver-sparc.c: Correct Linux strings.
4670         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
4671         * config/sparc/linux64.h: Likewise.
4672         * doc/invoke.texi: Document that Linux also supports
4673         -mcpu=native and -mtune=native on sparc.
4674
4675         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
4676         PROCESSOR_NIAGARA4): New.
4677         * config/sparc/sparc.opt: Handle new processor types.
4678         * config/sparc/sparc.md: Add to "cpu" attribute.
4679         * config/sparc/sparc.h (TARGET_CPU_niagara3,
4680         TARGET_CPU_niagara4): New, treat as niagara2.
4681         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
4682         * config/sparc/sol2.h: Likewise.
4683         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
4684         * config/sparc/sparc.c (sparc_option_override): Add
4685         niagara3 and niagara4 handling.
4686         (sparc32_initialize_trampoline): Likewise.
4687         (sparc64_initialize_trampoline): Likewise.
4688         (sparc_use_sched_lookahead): Likewise.
4689         (sparc_issue_rate): Likewise.
4690         (sparc_register_move_cost): Likewise.
4691         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
4692         and niagara4 as appropriate.
4693         * doc/invoke.texi: Document new processor types.
4694         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
4695         and --with-tune options.
4696
4697         * config/sparc/sol2-64.h: Move ...
4698         * config/sparc/default-64.h: ... to here.  Update comment.
4699         * config.gcc: Update Solaris sparc to use default-64.h, also
4700         prefix this header into the list on sparc64-*-linux.
4701         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
4702         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
4703         to MASK_HARD_QUAD.
4704
4705 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
4706
4707         PR target/50289
4708         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
4709         that contain global register variable.
4710
4711 2011-09-05  Richard Guenther  <rguenther@suse.de>
4712
4713         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
4714
4715 2011-09-05  Richard Guenther  <rguenther@suse.de>
4716
4717         * stor-layout.c (layout_type): Use size_binop for array size
4718         calculations.
4719
4720 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
4721
4722         * config/avr/avr.h (progmem_section): Remove Declaration.
4723         * config/avr/avr.c (progmem_section): Make static and rename to
4724         progmem_swtable_section.
4725         (avr_output_addr_vec_elt): No need to switch sections.
4726         (avr_asm_init_sections): Use output_section_asm_op as section
4727         callback for progmem_swtable_section.
4728         (avr_output_progmem_section_asm_op): Remove Function.
4729         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
4730         (avr_asm_function_rodata_section): New static Function.
4731         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
4732         alignment 2**1 for jump tables.
4733
4734 2011-09-04  Jan Hubicka  <jh@suse.cz>
4735
4736         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
4737         parameter is SSA name.
4738
4739 2011-09-04  Richard Guenther  <rguenther@suse.de>
4740
4741         Revert
4742         2011-08-31  Richard Guenther  <rguenther@suse.de>
4743
4744         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4745         special-casing.
4746
4747 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
4748
4749         PR debug/49901
4750         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
4751
4752 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
4753             Ira Rosen  <ira.rosen@linaro.org>
4754
4755         PR tree-optimization/50208
4756         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
4757         argument.  Check that def_stmt is inside the loop.
4758         (vect_recog_widen_mult_pattern): Update calls to
4759         vect_handle_widen_mult_by_cons.
4760         (vect_operation_fits_smaller_type): Check that def_stmt is
4761         inside the loop.
4762
4763 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
4764
4765         * tree-vectorizer.c (vect_print_dump_info): Print line
4766         number when dumping to a file.
4767         (vectorize_loops): Add new messages to dump file.
4768
4769 2011-09-03  Martin Jambor  <mjambor@suse.cz>
4770
4771         * ipa-prop.h (ipa_jump_func_t): New typedef.
4772         (struct ipa_edge_args): Removed field argument_count, field
4773         jump_functions turned into a vector.
4774         (ipa_set_cs_argument_count): Removed.
4775         (ipa_get_cs_argument_count): Updated to work on vectors.
4776         (ipa_get_ith_jump_func): Likewise.
4777         * ipa-prop.c (ipa_count_arguments): Removed.
4778         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
4779         jump functions.  Update caller.
4780         (compute_pass_through_member_ptrs): Likewise.
4781         (compute_cst_member_ptr_arguments): Likewise.
4782         (ipa_compute_jump_functions_for_edge): Get number of arguments from
4783         the statement, allocate vector.
4784         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
4785         (duplicate_ipa_jump_func_array): Removed.
4786         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
4787         (ipa_read_node_info): Allocate vector.
4788
4789 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4790
4791         PR middle-end/50232
4792         * config/pa/pa.md (return): Define "return" insn pattern.
4793         (epilogue): Use it when no epilogue is needed.
4794         * config/pa/pa.c (pa_can_use_return_insn): New function.
4795         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
4796
4797 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
4798
4799         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
4800         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
4801         Force at least BITS_PER_UNIT alignment on the new variable.
4802
4803 2011-09-02  Gary Funck <gary@intrepid.com>
4804
4805         * opts.c (print_specific_help): Fix off-by-one compare in
4806         assertion check.
4807         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4808         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
4809         Increase by +5 to allow for more languages.
4810         * optc-gen.awk: Generate #if that ensures that the number of
4811         languages is within the implementation-defined limit.
4812
4813 2011-09-02  Michael Matz  <matz@suse.de>
4814
4815         PR middle-end/50260
4816         * ipa-split.c (split_function): Call add_referenced_var.
4817
4818         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
4819         (cond_if_else_store_replacement_1): Ditto.
4820         * tree-ssa-pre.c (get_representative_for): Ditto.
4821         (create_expression_by_pieces): Ditto.
4822         (insert_into_preds_of_block): Ditto.
4823         * tree-sra.c (create_access_replacement): Ditto.
4824         (get_replaced_param_substitute): Ditto.
4825
4826 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
4827
4828         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
4829         automata_options.
4830         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
4831         (l1w, s1w, l2w, s2w): Define in the main automaton.
4832         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
4833         units.
4834         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
4835         (c6x_unit_names): Add the new units.
4836         (c6x_unit_codes): New static array.
4837         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
4838         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
4839         UNIT_QID_SIDE_OFFSET): New macros.
4840         (RESERVATION_S2): Adjust value.
4841         (c6x_option_override): Compute c6x_unit_codes.
4842         (assign_reservations): Take the unit_mask of the last instruction
4843         into account.  Detect floating point reservations by looking for
4844         the new units.  Don't assign reservations if the field is already
4845         nonzero.
4846         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
4847         (init_sched_state): Initialize it.
4848         (c6x_clear_sched_context): Free it.
4849         (insn_set_clock): Clear reservation.
4850         (prev_cycle_state): New static variable.
4851         (c6x_init_sched_context): Save it.
4852         (c6x_sched_init): Allocate space for it and clear it.
4853         (c6x_sched_dfa_pre_cycle_insn): New static function.
4854         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
4855         (c6x_variable_issue): Only record units in the unit_mask that
4856         were not set at the start of the cycle.
4857         (c6x_variable_issue): Compute and store the unit_mask from the
4858         current state.
4859         (reorg_split_calls): Ensure the new information remains correct.
4860         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
4861         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
4862         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
4863         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
4864         Add special reservations.
4865         * config/c6x/c6x-sched.md: Regenerate.
4866
4867 2011-09-02  Martin Jambor  <mjambor@suse.cz>
4868
4869         * ipa-prop.h (ipa_node_params): Removed fields
4870         called_with_var_arguments and node_versionable.
4871         (ipa_set_called_with_variable_arg): Removed.
4872         (ipa_is_called_with_var_arguments): Likewise.
4873         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
4874         (determine_versionability): Do not check for type attributes and va
4875         builtins.  Record versionability into inline summary.
4876         (initialize_node_lattices): Do not check
4877         ipa_is_called_with_var_arguments.
4878         (propagate_constants_accross_call): Likewise, ignore arguments we do
4879         not have PARM_DECLs for, set variable flag for parameters that were
4880         not passed a value.
4881         (create_specialized_node): Dump info that we cannot change signature.
4882         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
4883         number of arguments.
4884         (ipa_make_edge_direct_to_target): Likewise.
4885         (ipa_update_after_lto_read): Likewise.
4886         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
4887         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
4888         they were remapped.
4889
4890 2011-09-02  Richard Guenther  <rguenther@suse.de>
4891
4892         PR tree-optimization/27460
4893         PR middle-end/29269
4894         * doc/md.texi (vcond): Document.
4895         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
4896         optab with two modes.
4897         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
4898         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
4899         (vcond_optab): Adjust.
4900         (vcondu_optab): Likewise.
4901         (expand_vec_cond_expr_p): Adjust prototype.
4902         * optabs.c (get_vcond_icode): Adjust.
4903         (expand_vec_cond_expr_p): Likewise.
4904         (expand_vec_cond_expr): Likewise.
4905         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
4906         vector type.
4907         (vectorizable_condition): Allow differing types for comparison
4908         and result.
4909         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
4910         for the comparison.
4911         * config/i386/sse.md (vcond<mode>): Split to
4912         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
4913         vcond<V_128:mode><VI124_128:mode> and
4914         vcondu<V_128:mode><VI124_128:mode>.
4915         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
4916         (vconduv2di): Likewise.
4917         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
4918         (vcondu<mode>): Likewise.
4919         * config/ia64/vect.md (vcond<mode>): Likewise.
4920         (vcondu<mode>): Likewise.
4921         (vcondv2sf): Likewise.
4922         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
4923         * config/rs6000/paired.md (vcondv2sf): Likewise.
4924         * config/rs6000/vector.md (vcond<mode>): Likewise.
4925         (vcondu<mode>): Likewise.
4926         * config/spu/spu.md (vcond<mode>): Likewise.
4927         (vcondu<mode>): Likewise.
4928
4929 2011-09-02  Richard Guenther  <rguenther@suse.de>
4930
4931         * pretty-print.h (pp_unsigned_wide_integer): New.
4932         * tree-pretty-print.c (dump_generic_node): Print unsigned
4933         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
4934
4935 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
4936
4937         PR target/49987
4938         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
4939         valid CONST_VECTOR operands.
4940         (rs6000_expand_vector_init): Likewise.
4941
4942 2011-09-02  Martin Jambor  <mjambor@suse.cz>
4943
4944         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
4945         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
4946         BINFO_VTABLE.  Parameter delta removed, all callers updated.
4947         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
4948         BINFO_VTABLE.
4949         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
4950         all calls.
4951         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
4952         handling of thunk_delta.
4953         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
4954         (devirtualization_time_bonus): Do not handle thunk deltas.
4955         (ipcp_discover_new_direct_edges): Likewise.
4956         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4957         (try_make_edge_direct_simple_call): Likewise.
4958         (try_make_edge_direct_virtual_call): Likewise.
4959         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
4960         parameter set as unused.
4961         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
4962         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
4963         parameter set as unused.
4964         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
4965         (input_edge_opt_summary): Likewise.
4966         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
4967         BINFO_VIRTUALS at all.
4968         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
4969
4970 2011-09-02  Richard Guenther  <rguenther@suse.de>
4971
4972         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
4973         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
4974
4975 2011-08-31  Richard Guenther  <rguenther@suse.de>
4976
4977         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
4978         handling here, from ...
4979         (expand_expr_real_1): ... here.
4980         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
4981         and VEC_COND_EXPR.
4982         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
4983         a GIMPLE_TERNARY_RHS.
4984         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
4985         and VEC_COND_EXPR here ...
4986         (verify_gimple_assign_single): ... not here.
4987         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
4988         * tree-object-size.c (cond_expr_object_size): Adjust.
4989         (collect_object_sizes_for): Likewise.
4990         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
4991         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
4992         (ssa_forward_propagate_and_combine): Adjust.
4993         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
4994         as ternary.
4995         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
4996         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
4997         * tree-vect-stmt.c (vectorizable_condition): Likewise.
4998         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
4999         (extract_range_from_assignment): Likewise.
5000
5001 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
5002
5003         * config/i386/i386.md: Use (match_test ...) for attribute tests.
5004         * config/i386/mmx.md: Likewise.
5005         * config/i386/sse.md: Likewise.
5006         * config/i386/predicates.md (call_insn_operand): Use
5007         (not (match_test "...")) instead of (match_test "!...")
5008         * config/i386/constraints.md (w): Likewise.
5009
5010 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
5011
5012         * doc/md.texi: Describe the use of match_tests in attribute tests.
5013         * rtl.def (MATCH_TEST): Update commentary.
5014         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
5015         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
5016
5017 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
5018
5019         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
5020         (attr_string): Use copy_md_ptr_loc.
5021
5022 2011-08-31  Martin Jambor  <mjambor@suse.cz>
5023
5024         PR middle-end/49886
5025         * ipa-inline-analysis.c (compute_inline_parameters): Set
5026         can_change_signature of noes with typde attributes.
5027         * ipa-split.c (split_function): Do not skip any arguments if
5028         can_change_signature is set.
5029
5030 2011-08-31  Martin Jambor  <mjambor@suse.cz>
5031
5032         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
5033         check removed.
5034
5035 2011-08-31  Richard Guenther  <rguenther@suse.de>
5036
5037         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
5038         special-casing.
5039
5040 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
5041
5042         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
5043
5044 2011-08-31  Tom de Vries  <tom@codesourcery.com>
5045
5046         PR middle-end/43513
5047         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
5048         * tree-ssa-ccp.c (params.h): Include.
5049         (fold_builtin_alloca_for_var): New function.
5050         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
5051
5052 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
5053
5054         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5055         Handle FMA option.
5056
5057 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
5058
5059         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
5060         b3 and b4 unsigned.
5061
5062 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
5063
5064         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
5065         when code is SET.
5066
5067 2011-08-30  Richard Guenther  <rguenther@suse.de>
5068
5069         PR middle-end/48571
5070         * gimple.h (maybe_fold_offset_to_address): Remove.
5071         (maybe_fold_offset_to_reference): Likewise.
5072         (maybe_fold_stmt_addition): Likewise.
5073         (may_propagate_address_into_dereference): Likewise.
5074         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
5075         array references.
5076         * gimple-fold.c (canonicalize_constructor_val): Likewise.
5077         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
5078         addresses instead.
5079         (may_propagate_address_into_dereference): Remove.
5080         (maybe_fold_offset_to_array_ref): Likewise.
5081         (maybe_fold_offset_to_reference): Likewise.
5082         (maybe_fold_offset_to_address): Likewise.
5083         (maybe_fold_stmt_addition): Likewise.
5084         (fold_gimple_assign): Do not reconstruct array references but
5085         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
5086         MEM_REF addresses.
5087         (gimple_fold_stmt_to_constant_1): Likewise.
5088         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5089         * gimplify.c (gimplify_conversion): Likewise.
5090         (gimplify_expr): Likewise.
5091
5092 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
5093
5094         * config/i386/fmaintrin.h: New.
5095         * config.gcc: Add fmaintrin.h.
5096         * config/i386/i386.c
5097         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
5098         <IX86_BUILTIN_VFMADDSD3>: Likewise.
5099         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
5100         (*fmai_fmadd_<mode>): Likewise.
5101         (*fmai_fmsub_<mode>): Likewise.
5102         (*fmai_fnmadd_<mode>): Likewise.
5103         (*fmai_fnmsub_<mode>): Likewise.
5104         * config/i386/immintrin.h: Add fmaintrin.h.
5105
5106 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
5107
5108         * genautomata.c (NO_COMB_OPTION): New macro.
5109         (no_comb_flag): New static variable.
5110         (gen_automata_option): Handle NO_COMB_OPTION.
5111         (comb_vect_p): False if no_comb_flag.
5112         (add_vect): Move computation of min/max values.  Return early if
5113         no_comb_flag.
5114         * doc/md.texi (automata_option): Document no-comb-vect.
5115
5116         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
5117         "__x86.get_pc_thunk".
5118
5119         * bb-reorder.c (insert_section_boundary_note): Only do it if
5120         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
5121
5122 2011-08-30  Christian Bruel  <christian.bruel@st.com>
5123
5124         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
5125         flag_profile_use.
5126
5127 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
5128
5129         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
5130         to off.  Document switch.
5131         * doc/invoke.texi (-msave-toc-indirect): Ditto.
5132
5133 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
5134
5135         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
5136         conditionals and comments inside macro arguments.
5137
5138 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
5139             Richard Guenther  <rguenther@suse.de>
5140
5141         * tree.h (constant_boolean_node): Adjust prototype.
5142         * fold-const.c (fold_convert_loc): Move aggregate conversion
5143         leeway down.
5144         (constant_boolean_node): Make value parameter boolean, add
5145         vector type handling.
5146         (fold_unary_loc): Use constant_boolean_node.
5147         (fold_binary_loc): Preserve types properly when folding
5148         COMPLEX_EXPR <__real x, __imag x>.
5149         * gimplify.c (gimplify_expr): Handle vector comparison.
5150         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
5151         comparison.
5152         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
5153         comparisons.
5154
5155 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
5156
5157         PR middle-end/48722
5158         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
5159         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
5160         (verify_rtl_sharing): Likewise and verify_rtx_sharing
5161         in there too.
5162         (unshare_all_rtl_in_chain): For CALL_INSNs
5163         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
5164
5165 2011-08-29  Richard Guenther  <rguenther@suse.de>
5166
5167         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
5168         on the built ADDR_EXPR.
5169
5170 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
5171
5172         PR debug/50215
5173         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
5174         before adding ENTRY_VALUE to val->locs.
5175
5176 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
5177
5178         PR bootstrap/50218
5179         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
5180         comp.
5181
5182 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
5183
5184         * doc/rtl.texi (simple_return): Document.
5185         (parallel, PATTERN): Here too.
5186         * doc/md.texi (return): Mention it's allowed to expand to simple_return
5187         in some cases.
5188         (simple_return): Document standard pattern.
5189         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
5190         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
5191         * reorg.c (function_return_label, function_simple_return_label):
5192         New static variables, replacing...
5193         (end_of_function_label): ... this.
5194         (simplejump_or_return_p): New static function.
5195         (optimize_skip, steal_delay_list_from_fallthrough,
5196         fill_slots_from_thread): Use it.
5197         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
5198         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
5199         (find_end_label): Take a new arg which is one of the two return
5200         rtxs.  Depending on which, set either function_return_label or
5201         function_simple_return_label.  All callers changed.
5202         (make_return_insns): Make both kinds.
5203         (dbr_schedule): Adjust for two kinds of end labels.
5204         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
5205         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
5206         (gen_expand, gen_split): Use ANY_RETURN_P.
5207         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
5208         * rtl.def (SIMPLE_RETURN): New code.
5209         * ifcvt.c (find_if_case_1): Be more careful about
5210         redirecting jumps to the EXIT_BLOCK.
5211         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
5212         returnjump_p_1): Handle SIMPLE_RETURNs.
5213         * print-rtl.c (print_rtx): Likewise.
5214         * rtl.c (copy_rtx): Likewise.
5215         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
5216         * combine.c (simplify_set): Likewise.
5217         * resource.c (find_dead_or_set_registers, mark_set_resources):
5218         Likewise.
5219         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
5220         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
5221         (init_emit_regs): Initialize simple_return_rtx.
5222         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
5223         force_nonfallthru_and_redirect.
5224         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
5225         (GR_SIMPLE_RETURN): New enum value.
5226         (simple_return_rtx): New macro.
5227         * basic-block.h (force_nonfallthru_and_redirect): Adjust
5228         declaration.
5229         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
5230         argument.  All callers changed.  Be careful about what kinds of
5231         returnjumps to generate.
5232         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
5233         ix86_pad_short_function): Likewise.
5234         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
5235         of return.
5236         * config/mips/mips.md (any_return): New code_iterator.
5237         (optab): Add cases for return and simple_return.
5238         (return): Expand to a simple_return.
5239         (simple_return): New pattern.
5240         (*<optab>, *<optab>_internal for any_return): New patterns.
5241         (return_internal): Remove.
5242         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
5243         a simple_return_internal.
5244
5245 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
5246
5247         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
5248         (vec_extract_lo_<mode>): Prevent both operands in memory.
5249         (vec_extract_lo_v16hi): Ditto.
5250         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
5251
5252 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
5253
5254         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
5255         (*sse2_mulv4si3): Ditto.
5256         (mulv2di3): Ditto.
5257         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
5258         notes to REG_EQUAL.
5259
5260 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
5261
5262         PR target/50202
5263         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
5264         when all outputs are unused.
5265         (sse4_2_pcmpistr): Ditto.
5266
5267 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
5268
5269         * config/i386/i386.md (round<mode>2): New expander.
5270         * config/i386/i386.c (enum ix86_builtins): Add
5271         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
5272         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
5273         descriptions.
5274         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
5275         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
5276
5277 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
5278
5279         PR middle-end/50083
5280         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
5281         only when TARGET_C99_FUNCTIONS.
5282         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
5283         <BUILT_IN_RINT{,F,L}>: Ditto.
5284
5285 2011-08-26  Michael Matz  <matz@suse.de>
5286             Jakub Jelinek  <jakub@redhat.com>
5287
5288         PR lto/50165
5289         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
5290         don't call strlen twice, use memcpy.
5291
5292 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
5293
5294         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
5295         * config/i386/bmiintrin.h: Likewise.
5296         * config/i386/lzcntintrin.h: Likewise.
5297
5298         * config/i386/immintrin.h: Include <lzcntintrin.h>,
5299         <bmiintrin.h> and <bmi2intrin.h>.
5300
5301 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5302
5303         PR target/50166
5304         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
5305         * configure: Regenerate.
5306
5307 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
5308
5309         PR c/50179
5310         * c-typeck.c (c_process_expr_stmt): Skip over nops and
5311         call mark_exp_read even if exprv is ADDR_EXPR.
5312
5313 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
5314
5315         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
5316         to df_set_dead_notes_for_mw.
5317
5318 2011-08-26  Richard Guenther  <rguenther@suse.de>
5319
5320         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
5321
5322 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
5323             Tom de Vries  <tom@codesourcery.com>
5324
5325         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
5326         (struct ivopts_data): Add loop_single_exit_p field.
5327         (niter_for_exit): Change parameter desc_p into return value.  Return
5328         desc if desc->may_be_zero.  Free desc if unused.
5329         (niter_for_single_dom_exit): Change return type.
5330         (find_induction_variables): Handle changed return type of
5331         niter_for_single_dom_exit.  Dump may_be_zero.
5332         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
5333         (set_use_iv_cost): Add and handle comp parameter.
5334         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
5335         comp argument to set_use_iv_cost.
5336         (strip_wrap_conserving_type_conversions, expr_equal_p)
5337         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
5338         (may_eliminate_iv): Add comp parameter.  Handle new return type of
5339         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
5340         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
5341         and may_eliminate_iv.
5342         (rewrite_use_compare): Move call to iv_elimination_compare to ...
5343         (may_eliminate_iv): Here.
5344         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
5345
5346 2011-08-26  Tom de Vries  <tom@codesourcery.com>
5347
5348         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
5349         accessing TREE_TYPE.
5350
5351 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
5352
5353         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
5354         (*ior_scc_scc_cmp): Likewise
5355         (*and_scc_scc): Likewise.
5356         (*and_scc_scc_cmp): Likewise.
5357         (*and_scc_scc_nodom): Likewise.
5358         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
5359
5360 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
5361
5362         * rtlanal.c (nonzero_bits1): Handle CLRSB.
5363
5364 2011-08-26  Richard Guenther  <rguenther@suse.de>
5365
5366         * expr.c (string_constant): Handle &MEM_REF.
5367
5368 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
5369
5370         * config/arm/arm.c (struct four_ints): New type.
5371         (count_insns_for_constant): Delete function.
5372         (find_best_start): Delete function.
5373         (optimal_immediate_sequence): New function.
5374         (optimal_immediate_sequence_1): New function.
5375         (arm_gen_constant): Move constant splitting code to
5376         optimal_immediate_sequence.
5377         Rewrite constant negation/invertion code.
5378
5379 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
5380
5381         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
5382         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
5383         Remove prototype. Remove static function type.
5384         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
5385         Add arch attribute.
5386         * config/arm/constraints.md (Pj, PJ): New constraints.
5387
5388 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5389
5390         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
5391         ("cortex_a9_multiply_long"): New and use above.  Handle all
5392         long multiply cases.
5393         ("cortex_a9_multiply"): Handle smmul and smmulr.
5394         ("cortex_a9_mac"): Handle smmla.
5395
5396 2011-08-25  Richard Henderson  <rth@redhat.com>
5397
5398         PR 50132
5399         PR 49864
5400         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
5401         non-constant stack adjutment.
5402         * expr.c (find_args_size_adjust): Break out from ...
5403         (fixup_args_size_notes): ... here.
5404         * rtl.h (find_args_size_adjust): Declare.
5405
5406 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
5407
5408         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
5409         sse4 and sse4_noavx.
5410         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
5411         (*pushdf_rex64): Change Y2 register constraint to x.
5412         (*movdf_internal_rex64): Ditto.
5413         (*zero_extendsidi2_rex64): Ditto.
5414         (*movdi_internal): Change Y2 register constraint to x
5415         and update "isa" attribute.
5416         (*pushdf): Ditto.
5417         (*movdf internal): Ditto.
5418         (zero_extendsidi2_1): Ditto.
5419         (*truncdfdf_mixed): Ditto.
5420         (*truncxfdf2_mixed): Ditto.
5421         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
5422         register constraint to x.
5423         (*movv2sf_internal_rex64): Ditto.
5424         (*mov<mode>_internal): Change Y2 register constraint to x
5425         and add "isa" attribute.
5426         (*movv2sf_internal): Ditto.
5427         (*vec_extractv2si_1): Ditto.
5428         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
5429         constraints to x and update "isa" attribute.
5430         (*vec_interleave_highv2df): Change Y3 registerconstraint
5431         to x and update "isa" attribute.
5432         (*vec_interleave_lowv2df): Ditto.
5433         (*vec_concatv2df): Change Y2 register constraint to x and
5434         update "isa" attribute.
5435         (sse2_loadld): Ditto.
5436         (*vec_extractv2di_1): Ditto.
5437         (*vec_dupv4si): Ditto.
5438         (*vec_dupv2di): Ditto.
5439         (*vec_concatv4si): Ditto.
5440         (vec_concatv2di): Ditto.
5441         * config/i386/constraints.md (Y2): Remove.
5442         (Y3): Ditto.
5443         (Y4): Ditto.
5444
5445 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5446
5447         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
5448         dump_def_use_chain): Don't declare.
5449         (mark_conflict, create_new_chain): Move before users.
5450         (regrename_optimize): Move to near end of file.
5451
5452 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5453
5454         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
5455         (secondary_input_reload_class): Remove Prototype.
5456         * config/avr/avr.c (byte_immediate_operand): Remove Function.
5457         * config/avr/avr.md (setmemhi): Use u8_operand.
5458         (strlenhi): Use const0_rtx for comparison.
5459         * config/avr/avr.h (avr_reg_order): Remove Declaration.
5460
5461 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5462
5463         * config/avr/avr.c (reg_class_tab): Make local to
5464         avr_regno_reg_class.  Return smallest register class available.
5465
5466 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5467
5468         * config/avr/avr.c (STR_PREFIX_P): New Define.
5469         (avr_asm_declare_function_name): Use it.
5470         (avr_asm_named_section): Use it.
5471         (avr_section_type_flags): Use it.
5472
5473 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5474
5475         * doc/md.texi (automata_option): Document collapse-ndfa.
5476         * genautomata.c (COLLAPSE_OPTION): New macro.
5477         (collapse_flag): New static variable.
5478         (struct description): New member normal_decls_num.
5479         (struct automaton): New members advance_ainsn and collapse_ainsn.
5480         (gen_automata_option): Check for COLLAPSE_OPTION.
5481         (collapse_ndfa_insn_decl): New static variable.
5482         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
5483         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
5484         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
5485         necessary.  Use normal_decls_num rather than decls_num, remove
5486         test for special decls.
5487         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
5488         (make_automaton); Likewise.  Use the new advance_cycle_insn member
5489         of struct automaton.
5490         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
5491         is set.
5492         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
5493         transition.  Create the necessary transitions for it.
5494         (create_ainsns): Return void.  Take an automaton_t argument, and
5495         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
5496         callers changed.
5497         (COLLAPSE_NDFA_VALUE_NAME): New macro.
5498         (output_tables): Output code to define it.
5499         (output_internal_insn_code_evaluation): Output code to accept
5500         const0_rtx as collapse-ndfa transition.
5501         (output_default_latencies, output_print_reservation_func,
5502         output_print_description): Reorganize loops to use normal_decls_num
5503         as loop bound; remove special case for advance_cycle_insn_decl.
5504         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
5505         (check_automata_insn_issues): Check for collapse_ainsn.
5506         (expand_automate): Allocate sufficient space.  Initialize
5507         normal_decls_num.
5508
5509 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5510
5511         * config/avr/avr.md: Fix indentation from r177991.
5512
5513 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5514
5515         * regrename.c (struct du_head): Remove member terminated.
5516         (create_new_chain): Don't initialize it.
5517         (scan_rtx_reg): Don't set or test it, test the open_chains_set
5518         bitmap instead.
5519         (tick, this_tick): New global variables, moved out of
5520         regrename_optimize.
5521         (current_id, open_chains, closed_chains, open_chains_set,
5522         live_in_chains, live_hard_regs): Reorder declarations.
5523         (dump_def_use_chain): Move function earlier in the file.
5524         (rename_chains): New static function, broken out of
5525         regrename_optimize.
5526         (regrename_optimize): Use it.  Remove #if 0'ed code.
5527
5528 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5529
5530         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
5531
5532 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
5533
5534         PR target/50172
5535         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
5536
5537 2011-08-24  Richard Guenther  <rguenther@suse.de>
5538
5539         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
5540         ref in the basic-block case.  Move stripping array-refs
5541         to the place we create an access-function for it.  Remove
5542         bogus stripping down a MEM_REF to its base.
5543
5544 2011-08-24  Richard Guenther  <rguenther@suse.de>
5545
5546         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
5547         with -fno-strict-overflow.
5548
5549 2011-08-24  Richard Guenther  <rguenther@suse.de>
5550
5551         * tree-vectorizer.c (vect_print_dump_info): Avoid the
5552         file and location clutter when dumping to dump files.
5553
5554 2011-08-24  Simon Baldwin  <simonb@google.com>
5555
5556         * gengtype-state.c (write_state): Remove timestamped header line.
5557
5558 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
5559
5560         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
5561         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
5562         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
5563         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
5564         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
5565         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
5566         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
5567         rules.
5568         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
5569
5570 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
5571
5572         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
5573
5574 2011-08-24  Richard Guenther  <rguenther@suse.de>
5575
5576         PR tree-optimization/50067
5577         * tree-data-ref.c (dr_analyze_indices): Do not add an access
5578         function for a MEM_REF base that has no evolution in the loop
5579         nest or that is not analyzable.
5580
5581 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
5582
5583         * ira.c (ira_init_register_move_cost): Check small subclasses
5584         through ira_reg_class_max_nregs and ira_available_class_regs.
5585
5586 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
5587
5588         * config/i386/constraints.md (Yp): New register constraint.
5589         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
5590         Yp register constraint.
5591         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
5592         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
5593         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
5594
5595 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
5596
5597         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
5598
5599 2011-08-23  Mark Heffernan  <meheff@google.com>
5600
5601         PR middle-end/38509
5602         * common.opt (Wfree-nonheap-object): New option.
5603         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
5604         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
5605         to warning.
5606         (expand_builtin): Make warning conditional.
5607
5608 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
5609
5610         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
5611         (length_immediate): Handle imulx, ishiftx and rotatex.
5612         (imm_disp): Ditto.
5613         (isa): Add bmi2.
5614         (enabled): Handle bmi2.
5615         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
5616         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
5617         (*bmi2_umulditi3_1): New insn pattern.
5618         (*bmi2_umulsidi3_1): Ditto.
5619         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
5620         (*bmi2_ashl<mode>3_1): New insn pattern.
5621         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
5622         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
5623         (*bmi2_ashlsi3_1_zext): New insn pattern.
5624         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
5625         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
5626         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
5627         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
5628         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
5629         flags dependency.
5630         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
5631         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
5632         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
5633         flags dependency.
5634         (*bmi2_rorx<mode>3_1): New insn pattern.
5635         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
5636         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
5637         (*rotatert<mode>3_1 splitter): Ditto.
5638         (*bmi2_rorxsi3_1_zext): New insn pattern.
5639         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
5640         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
5641         (*rotatertsi3_1_zext splitter): Ditto.
5642
5643 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
5644
5645         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
5646         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
5647         (ix86_handle_option): Handle OPT_mbmi2 case.
5648         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
5649         (x86_64-*-*): Likewise.
5650         * config/i386/bmi2intrin.h: New file.
5651         * config/i386/cpuid.h (bit_BMI2): New.
5652         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5653         BMI2 feature.
5654         * config/i386/i386-c.c (ix86_target_macros_internal):
5655         Conditionally define __BMI2__.
5656         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
5657         Handle BMI2 option.
5658         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
5659         (print_reg): New code.
5660         (ix86_print_operand): Likewise.
5661         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5662         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5663         IX86_BUILTIN_PEXT64.
5664         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5665         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5666         IX86_BUILTIN_PEXT64.
5667         * config/i386/i386.h (TARGET_BMI2): New.
5668         * config/i386/i386.md (UNSPEC_PDEP): New.
5669         (UNSPEC_PEXT): Likewise.
5670         (*bmi2_bzhi_<mode>3): Likewise.
5671         (*bmi2_pdep_<mode>3): Likewise.
5672         (*bmi2_pext_<mode>3): Likewise.
5673         * config/i386/i386.opt (mbmi2): New.
5674         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
5675         is defined.
5676         * doc/extend.texi: Document BMI2 built-in functions.
5677         * doc/invoke.texi: Document -mbmi2.
5678
5679 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
5680
5681         PR middle-end/50161
5682         * simplify-rtx.c (simplify_const_unary_operation): If
5683         op is CONST_INT, don't look at op_mode, but use instead mode.
5684         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
5685         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
5686         operation and TRUNCATE/ZERO_EXTEND if needed.
5687         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
5688         Document that operand mode must be same as operation mode,
5689         or VOIDmode.
5690         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
5691         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
5692         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
5693         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
5694         use the mode of operand for the operation and add truncate
5695         or zero_extend around if needed.
5696         * config/c6x/c6x.md (ctzdi2): Likewise.
5697         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
5698
5699 2011-08-12  Michael Matz  <matz@suse.de>
5700
5701         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
5702         (gimple_expand_cfg): Merge alignment info for coalesced pointer
5703         SSA names.
5704
5705 2011-08-23  Richard Guenther  <rguenther@suse.de>
5706
5707         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
5708         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
5709         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
5710         from ...
5711         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
5712         (mem_refs_may_alias_p): Adjust.
5713         * tree-data-ref.h (dr_may_alias_p): Adjust.
5714         * tree-data-ref.c: Include tree-affine.h.
5715         (dr_analyze_indices): Do nothing for the non-loop case.
5716         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
5717         more cases in the non-loop case.
5718         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
5719         calls to dr_may_alias_p.
5720         (write_alias_graph_to_ascii_ecc): Likewise.
5721         (write_alias_graph_to_ascii_dot): Likewise.
5722         (build_alias_set_optimal_p): Likewise.
5723
5724 2011-08-23  Richard Guenther  <rguenther@suse.de>
5725
5726         PR tree-optimization/50162
5727         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
5728
5729 2011-08-23  Richard Guenther  <rguenther@suse.de>
5730
5731         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
5732         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
5733         (create_data_ref): Also dump access functions for the created data-ref.
5734
5735 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
5736             Kirill Yukhin  <kirill.yukhin@intel.com>
5737
5738         PR target/50155
5739         * config/i386/sse.md (VI_AVX2): New.
5740         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
5741         (*<plusminus_insn><mode>3): Ditto.
5742         (<sse2_avx2>_andnot<mode>3): Ditto.
5743         (*andnot<mode>3): Fix order of cond operands.
5744         Add asserts for correct TARGET_xxx.
5745         (*<any_logic:code><mode>3): Ditto.
5746
5747 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
5748
5749         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
5750         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
5751         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
5752         regclass argument type to reg_class_t. Change 'max' and 'v' vars
5753         and return types to unsigned char. Use reg_class_contents instead
5754         of class_contents.
5755         (TARGET_CLASS_MAX_NREGS): Define.
5756
5757 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
5758
5759         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
5760         to make computed_jump_p return true.
5761
5762 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5763
5764         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
5765         (PICFLAG_FOR_TARGET): Substitute.
5766         * aclocal.m4: Regenerate.
5767         * configure: Regenerate.
5768
5769 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
5770
5771         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
5772         after reading in the pch.
5773
5774 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
5775
5776         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
5777         * configure: Regenerated.
5778
5779 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
5780
5781         PR tree-optimization/50133
5782         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
5783         from stmt instead of some statement around gsi.
5784
5785         PR middle-end/50141
5786         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
5787         innerdecl is a VAR_DECL.
5788
5789 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5790
5791         * config/i386/avx2intrin.h: New file.
5792         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
5793         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
5794         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
5795         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
5796         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
5797         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
5798         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
5799         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
5800         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
5801         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
5802         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
5803         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
5804         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
5805         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
5806         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
5807         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
5808         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
5809         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
5810         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
5811         VOID_FTYPE_PV8SI_V8SI_V8SI,
5812         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
5813         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
5814         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
5815         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
5816         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
5817         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
5818         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
5819         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
5820         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
5821         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
5822         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
5823         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
5824         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
5825         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
5826         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
5827         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
5828         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
5829         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
5830         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
5831         V4DI_FTYPE_V4DI_INT_CONVERT,
5832         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
5833         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
5834         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5835         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5836         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5837         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5838         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5839         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5840         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5841         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5842         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5843         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5844         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5845         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5846         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5847         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5848         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5849         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5850         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5851         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5852         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5853         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5854         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5855         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5856         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5857         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5858         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5859         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5860         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5861         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5862         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5863         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5864         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5865         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5866         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5867         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5868         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5869         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5870         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5871         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5872         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5873         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5874         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5875         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5876         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5877         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5878         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5879         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5880         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5881         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5882         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5883         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5884         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5885         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5886         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5887         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5888         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5889         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5890         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5891         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
5892         IX86_BUILTIN_VBROADCASTSS_PS256,
5893         IX86_BUILTIN_VBROADCASTSD_PD256,
5894         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5895         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5896         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5897         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5898         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5899         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5900         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5901         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5902         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5903         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5904         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5905         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5906         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
5907         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5908         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5909         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5910         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5911         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
5912         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
5913         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
5914         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
5915         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
5916         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
5917         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
5918         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
5919         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
5920         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
5921         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5922         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5923         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5924         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
5925         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
5926         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5927         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5928         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5929         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5930         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5931         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5932         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5933         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5934         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5935         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5936         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5937         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5938         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5939         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5940         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5941         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5942         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5943         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5944         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5945         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5946         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5947         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5948         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5949         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5950         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5951         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5952         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5953         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5954         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5955         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5956         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5957         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5958         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5959         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5960         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5961         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5962         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5963         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5964         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5965         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5966         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5967         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5968         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5969         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5970         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5971         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5972         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5973         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5974         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5975         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5976         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5977         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5978         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5979         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5980         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5981         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5982         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5983         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
5984         IX86_BUILTIN_VBROADCASTSD_PD256,
5985         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5986         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5987         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5988         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5989         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5990         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5991         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5992         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5993         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5994         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5995         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5996         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5997         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5998         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
5999         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
6000         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
6001         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
6002         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
6003         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
6004         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
6005         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
6006         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
6007         IX86_BUILTIN_GATHERDIV8SI.
6008         (ix86_preferred_simd_mode): Support AVX2 modes.
6009         (ix86_expand_args_builtin): Support AVX2 builtins.
6010         (ix86_expand_special_args_builtin): Likewise.
6011         (ix86_expand_builtin): Likewise.
6012         * config/i386/i386.md (UNSPEC_VPERMSI): New.
6013         (UNSPEC_VPERMDF): Likewise.
6014         (UNSPEC_VPERMSF): Likewise.
6015         (UNSPEC_VPERMDI): Likewise.
6016         (UNSPEC_VPERMTI): Likewise.
6017         (UNSPEC_GATHER): Likewise.
6018         (ssemodesuffix): Extend.
6019         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
6020         is defined.
6021         * config/i386/predicates.md (const1248_operand): New.
6022         * config/i386/sse.md (VI1_AVX2): New mode iterator.
6023         (VI2_AVX2): Likewise.
6024         (VI4_AVX2): Likewise.
6025         (VI8_AVX2): Likewise.
6026         (VIMAX_AVX2): Likewise.
6027         (SSESCALARMODE): Likewise.
6028         (VI12_AVX2): Likewise.
6029         (VI24_AVX2): Likewise.
6030         (VI124_AVX2): Likewise.
6031         (VI248_AVX2): Likewise.
6032         (VI48_AVX2): Likewise.
6033         (VI4SD_AVX2): Likewise.
6034         (V48_AVX2): Likewise.
6035         (AVX256MODE2P): Likewise.
6036         (AVXMODE48P_DI): Likewise.
6037         (sse2_avx2): New mode attribute.
6038         (ssse3_avx2): Likewise.
6039         (sse4_1_avx2): Likewise.
6040         (avx_avx2): Likewise.
6041         (ssebytemode): Likewise.
6042         (AVXTOSSEMODE): Likewise.
6043         (AVXMODE48P_DI): Likewise.
6044         (gthrfirstp): Likewise.
6045         (gthrlastp): Likewise.
6046         (lshift): New code_iterator
6047         (lshift): New code attribute.
6048         (lshift): Likewise.
6049         (ssescalarmodesuffix): Update.
6050         (sseunpackmode): Likewise.
6051         (ssepackmode): Likewise.
6052         (avx2_vec_dupv4sf): New insn pattern.
6053         (avx2_vec_dupv8sf): Likewise.
6054         (avx2_interleave_highv4di): Likewise.
6055         (avx2_interleave_lowv4di): Likewise.
6056         (avx2_umulv4siv4di3): Likewise
6057         (*avx2_umulv4siv4di3): Likewise
6058         (avx2_pmaddwd): Likewise.
6059         (*avx2_pmaddwd): Likewise.
6060         (avx2_lshrqv4di3): Likewise.
6061         (avx2_lshlqv4di3): Likewise.
6062         (avx2_lshl<mode>3): Likewise.
6063         (avx2_<umaxmin:code><mode>3): Likewise.
6064         (*avx2_<umaxmin:code><mode>3): Likewise.
6065         (avx2_<smaxmin:code><mode>3): Likewise.
6066         (*avx2_<smaxmin:code><mode>3): Likewise.
6067         (avx2_eq<mode>3): Likewise.
6068         (*avx2_eq<mode>3): Likewise.
6069         (avx2_gt<mode>3): Likewise.
6070         (avx2_interleave_highv32qi): New.
6071         (avx2_interleave_lowv32qi): Likewise.
6072         (avx2_interleave_highv16hi): Likewise.
6073         (avx2_interleave_lowv16hi): Likewise.
6074         (avx2_interleave_highv8si): Likewise.
6075         (avx2_interleave_lowv8si): Likewise.
6076         (avx2_pshufd): Likewise.
6077         (avx2_pshufd_1): Likewise.
6078         (avx2_pshuflwv3): Likewise.
6079         (avx2_pshuflw_1): Likewise.
6080         (avx2_pshufhwv3): Likewise.
6081         (avx2_pshufhw_1): Likewise.
6082         (avx2_uavgv32qi3): Likewise.
6083         (*avx2_uavgv32qi3): Likewise.
6084         (avx2_uavgv16hi3): Likewise.
6085         (*avx2_uavgv16hi3): Likewise.
6086         (avx2_pmovmskb): Likewise.
6087         (avx2_phaddwv16hi3): Likewise.
6088         (avx2_phadddv8si3): Likewise.
6089         (avx2_phaddswv16hi3): Likewise.
6090         (avx2_phsubwv16hi3): Likewise.
6091         (avx2_phsubdv8si3): Likewise.
6092         (avx2_phsubswv16hi3): Likewise.
6093         (avx2_pmaddubsw256): Likewise.
6094         (avx2_umulhrswv16hi3): Likewise.
6095         (*avx2_umulhrswv16hi3): Likewise.
6096         (avx2_packusdw): Likewise.
6097         (avx2_pblendd<mode>): Likewise.
6098         (avx2_<code>v16qiv16hi2): Likewise.
6099         (avx2_<code>v8qiv8si2): Likewise.
6100         (avx2_<code>v8hiv8si2): Likewise.
6101         (avx2_<code>v4qiv4di2): Likewise.
6102         (avx2_<code>v4hiv4di2): Likewise.
6103         (avx2_<code>v4siv4di2): Likewise.
6104         (avx2_pbroadcast<mode>): Likewise.
6105         (avx2_permvarv8si): Likewise.
6106         (avx2_permv4df): Likewise.
6107         (avx2_permvarv8sf): Likewise.
6108         (avx2_permv4di): Likewise.
6109         (avx2_permv2ti): Likewise.
6110         (avx2_vec_dupv4df): Likewise.
6111         (avx2_vbroadcasti128_<mode>): Likewise.
6112         (avx2_vec_set_lo_v4di): Likewise.
6113         (avx2_vec_set_hi_v4di): Likewise.
6114         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
6115         (avx2_extracti128): Likewise.
6116         (avx2_inserti128): Likewise.
6117         (avx2_ashrvv8si): Likewise.
6118         (avx2_ashrvv4si): Likewise.
6119         (avx2_<lshift>vv8si): Likewise.
6120         (avx2_<lshift>v<mode>): Likewise.
6121         (avx2_<lshift>vv2di): Likewise.
6122         (avx2_gathersi<mode>): Likewise.
6123         (*avx2_gathersi<mode>): Likewise.
6124         (avx2_gatherdi<mode>): Likewise.
6125         (*avx2_gatherdi<mode>): Likewise.
6126         (avx2_gatherdi<mode>256): Likewise.
6127         (*avx2_gatherdi<mode>256): Likewise.
6128         (<plusminus_insn><mode>3): Use VI mode iterator.
6129         (*<plusminus_insn><mode>3): Use VI mode iterator.
6130         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
6131         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
6132         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
6133         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
6134         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
6135         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
6136         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
6137         Use VI2_AVX2 mode iterator.
6138         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
6139         Use VI2_AVX2 mode iterator.
6140         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
6141         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
6142         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
6143         Use VI4_AVX2 mode iterator.
6144         (ashr<mode>3): Use VI24_AVX2 mode iterator.
6145         (lshr<mode>3): Use VI248_AVX2 mode iterator.
6146         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
6147         Use VIMAX_AVX2 mode iterator.
6148         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
6149         Use VI mode iterator.
6150         (*andnot<mode>3): Update for AVX2.
6151         (*<any_logic:code><mode>3): Likewise.
6152         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
6153         Use VI1_AVX mode iterator.
6154         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
6155         Use VI2_AVX mode iterator.
6156         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
6157         Use VI1_AVX mode iterator.
6158         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
6159         Use VI8_AVX2 mode iterator.
6160         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
6161         Use VI1_AVX2 mode iterator.
6162         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
6163         Use VI124_AVX2 mode iterator.
6164         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
6165         Use SSESCALARMODE mode iterator.
6166         (abs<mode>2): Use VI124_AVX2 mode iterator.
6167         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
6168         Use VI8_AVX2 mode iterator.
6169         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
6170         Use VI1_AVX2 mode iterator.
6171         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
6172         Use VI1_AVX2 mode iterator.
6173         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
6174         Use VI2_AVX2 mode iterator.
6175         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
6176         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
6177         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
6178         avx_maskstore<ssemodesuffix><avxsizesuffix>.
6179         Use V48_AVX2 mode iterator.
6180         * doc/extend.texi: Document AVX2 built-in functions.
6181         * doc/invoke.texi: Document -mavx2.
6182
6183 2011-08-22  Matthias Klose <doko@debian.org>
6184
6185         Revert:
6186         2011-07-11  Arthur Loiret  <aloiret@debian.org>
6187                     Matthias Klose <doko@debian.org>
6188         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
6189         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
6190         convention.
6191         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
6192
6193 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
6194
6195         PR bootstrap/50146
6196         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
6197         to #ifndef HONOR_REG_ALLOC_ORDER block.
6198
6199 2011-08-21  Richard Henderson  <rth@redhat.com>
6200
6201         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
6202         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
6203         * resource.c (next_insn_no_annul): Likewise.
6204         (mark_set_resources): Likewise.
6205         * reorg.c (delete_from_delay_slot): Likewise.
6206         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
6207         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
6208
6209 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
6210
6211         * config/i386/i386.md (any_div): Remove.
6212         (sgnprefix): Update for removal.
6213         (u): Ditto.
6214
6215 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
6216
6217         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
6218         for ira_reg_class_max_nregs.  Increase pressure by 1.
6219         (mark_pseudo_regno_subword_dead): Use allocno class
6220         for ira_reg_class_max_nregs.
6221
6222 2011-08-20  Richard Henderson  <rth@redhat.com>
6223
6224         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
6225         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
6226         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
6227         config/c6x/ltf.c: Adjust include path for soft-fp.
6228
6229 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
6230
6231         PR other/46770
6232         * config.gcc (tm_file): Add initfini-array.h if
6233         .init_arrary/.fini_array are supported.
6234
6235         * crtstuff.c: Don't generate .ctors nor .dtors sections if
6236         USE_INITFINI_ARRAY is defined.
6237
6238         * output.h (default_elf_init_array_asm_out_constructor): New.
6239         (default_elf_fini_array_asm_out_destructor): Likewise.
6240         * varasm.c (elf_init_array_section): Likewise.
6241         (elf_fini_array_section): Likewise.
6242         (get_elf_initfini_array_priority_section): Likewise.
6243         (default_elf_init_array_asm_out_constructor): Likewise.
6244         (default_elf_fini_array_asm_out_destructor): Likewise.
6245
6246         * config/initfini-array.h: New.
6247
6248 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
6249
6250         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
6251         OK for ST_REGS and FP_REGS before taking those classes into account.
6252
6253 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
6254
6255         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
6256         before checking for annulled branches.
6257
6258 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
6259
6260         * config/i386/i386.c (ix86_binary_operator_ok): Use
6261         satisfies_constraint_L.
6262
6263 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
6264             Michael Matz  <matz@suse.de>
6265
6266         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
6267         trunc (a + copysign (nextafter (0.5, 0.0), a)).
6268
6269 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
6270
6271         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6272         * doc/tm.texi: Regenerate.
6273         * targhooks.c (default_preferred_output_reload_class): Don't use
6274         PREFERRED_OUTPUT_RELOAD_CLASS macro.
6275         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
6276
6277 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
6278
6279         PR tree-optimization/48739
6280         * tree-ssa.c: Include cfgloop.h.
6281         (execute_update_addresses_taken): When updating ssa, if in loop closed
6282         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
6283         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
6284
6285 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
6286
6287         PR rtl-optimization/49936
6288         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
6289         for calculation of max register move costs.
6290
6291 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6292
6293         * c-parser.c (c_parser_postfix_expression): Convert operands of
6294         __builtin_complex to their semantic types.
6295
6296 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
6297
6298         PR middle-end/49721
6299         * explow.c (convert_memory_address_addr_space): Also permute the
6300         conversion and addition of constant for zero-extend.
6301
6302 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6303
6304         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
6305         * doc/extend.texi (__builtin_complex): Document.
6306
6307 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6308
6309         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
6310         beyond conversions.
6311         (convert_mult_to_widen): Convert constant inputs to the right type.
6312         (convert_plusminus_to_widen): Don't automatically reject inputs that
6313         are not an SSA_NAME.
6314         Convert constant inputs to the right type.
6315
6316 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6317
6318         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
6319         to the correct type.
6320
6321 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6322
6323         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
6324         unsigned inputs of different modes.
6325         (convert_plusminus_to_widen): Likewise.
6326
6327 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6328
6329         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
6330         'type'.
6331         Use 'type' from caller, not inferred from 'rhs'.
6332         Don't reject non-conversion statements. Do return lhs in this case.
6333         (is_widening_mult_p): Add new argument 'type'.
6334         Use 'type' from caller, not inferred from 'stmt'.
6335         Pass type to is_widening_mult_rhs_p.
6336         (convert_mult_to_widen): Pass type to is_widening_mult_p.
6337         (convert_plusminus_to_widen): Likewise.
6338
6339 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6340
6341         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
6342         Ensure the the larger type is the first operand.
6343
6344 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6345
6346         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
6347         unsupported unsigned multiplies to signed.
6348         (convert_plusminus_to_widen): Likewise.
6349
6350 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6351
6352         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
6353         conversion statement separating multiply-and-accumulate.
6354
6355 2011-08-19  Richard Guenther  <rguenther@suse.de>
6356
6357         PR tree-optimization/50067
6358         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
6359         offset only if we accounted for it.
6360
6361 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6362
6363         * config/arm/arm.md (maddhidi4): Remove '*' from name.
6364         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
6365         * optabs.c (find_widening_optab_handler_and_mode): New function.
6366         (expand_widen_pattern_expr): Use find_widening_optab_handler.
6367         (expand_binop_directly): Likewise.
6368         (expand_binop): Likewise.
6369         * optabs.h (find_widening_optab_handler): New macro define.
6370         (find_widening_optab_handler_and_mode): New prototype.
6371         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
6372         type precision rules.
6373         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
6374         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
6375         (is_widening_mult_rhs_p): Allow widening by more than one mode.
6376         Explicitly disallow mis-matched input types.
6377         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
6378         input types to fit the new handler.
6379         (convert_plusminus_to_widen): Likewise.
6380
6381 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6382
6383         * expr.c (expand_expr_real_2): Use widening_optab_handler.
6384         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
6385         (gen_insn): $N now means $a must be wider than $b, not consecutive.
6386         * optabs.c (widened_mode): New function.
6387         (expand_widen_pattern_expr): Use widening_optab_handler.
6388         (expand_binop_directly): Likewise.
6389         (expand_binop): Likewise.
6390         * optabs.h (widening_optab_handlers): New struct.
6391         (optab_d): New member, 'widening'.
6392         (widening_optab_handler): New function.
6393         (set_widening_optab_handler): New function.
6394         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
6395         widening_optab_handler.
6396         (convert_plusminus_to_widen): Likewise.
6397
6398 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6399
6400         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
6401         pedantic.
6402         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
6403         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
6404
6405 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6406
6407         * opth-gen.awk: Do not declare target save/restore structures and
6408         functions if IN_RTS defined.
6409
6410 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6411
6412         PR target/49437
6413         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
6414         when stack was realigned in interrupt handler prologue.
6415
6416 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
6417
6418         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
6419         (quals_from_declspecs): Assert _Noreturn not present.
6420         (grokdeclarator): Handle _Noreturn.
6421         (build_null_declspecs): Initialize noreturn_p.
6422         (declspecs_add_scspec): Handle RID_NORETURN.
6423         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
6424         (c_parser_attributes): Handle RID_NORETURN.
6425         * c-tree.h (struct c_declspecs): Add noreturn_p.
6426         * ginclude/stdnoreturn.h: New.
6427         * Makefile.in (USER_H): Add stdnoreturn.h.
6428
6429 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6430
6431         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
6432         (OPTION_MASK_ISA_AVX_UNSET): Update.
6433         (OPTION_MASK_ISA_AVX2_UNSET): New.
6434         (ix86_handle_option): Handle OPT_mavx2 case.
6435         * config/i386/cpuid.h (bit_AVX2): New.
6436         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6437         AVX2 feature.
6438         * config/i386/i386-c.c (ix86_target_macros_internal):
6439         Conditionally define __AVX2__.
6440         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
6441         Define "core-avx2" processor alias.  Handle avx2 option.
6442         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
6443         * config/i386/i386.h (TARGET_AVX2): New.
6444         * config/i386/i386.opt (mavx2): New.
6445         * doc/invoke.texi: Document -mavx2.
6446
6447 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
6448
6449         PR rtl-optimization/49890
6450         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
6451         subclasses of class which is superset of a pressure class.
6452
6453 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6454             Igor Zamyatin <igor.zamyatin@intel.com>
6455
6456         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
6457         with HOST_WIDE_INT for isa_flag.
6458         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
6459         isa variables.
6460
6461         * config/i386/i386.c (ix86_target_string): Replace int with
6462         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
6463         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
6464         (pta_flags): Removed.
6465         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
6466         (pta): Use HOST_WIDE_INT on flags.
6467         (builtin_isa): Use HOST_WIDE_INT on isa.
6468         (ix86_add_new_builtins): Likewise.
6469         (def_builtin): Use HOST_WIDE_INT on mask.
6470         (def_builtin_const): Likewise.
6471         (builtin_description): Likewise.
6472
6473         * config/i386/i386.opt (ix86_isa_flags): Replace int with
6474         HOST_WIDE_INT.
6475         (ix86_isa_flags_explicit): Likewise.
6476         (x_ix86_isa_flags_explicit): Likewise.
6477
6478 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
6479
6480         PR rtl-optimization/50107
6481         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
6482         (ira_hard_reg_in_set_p): New.
6483
6484         * ira-color.c (calculate_saved_nregs): New.
6485         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
6486         hard regs.
6487         (allocno_reload_assign, fast_allocation): Use
6488         ira_hard_reg_set_intersection_p instead of
6489         ira_hard_reg_not_in_set_p.
6490
6491         * ira.c (setup_reg_renumber): Use
6492         ira_hard_reg_set_intersection_p instead of
6493         ira_hard_reg_not_in_set_p.
6494         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
6495         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
6496
6497         * ira-costs.c (ira_tune_allocno_costs): Use
6498         ira_hard_reg_set_intersection_p instead of
6499         ira_hard_reg_not_in_set_p.
6500
6501 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6502             Igor Zamyatin <igor.zamyatin@intel.com>
6503
6504         * hwint.h (HOST_WIDE_INT_1): New.
6505
6506         * opt-functions.awk (switch_bit_fields): Initialize the
6507         host_wide_int field.
6508         (host_wide_int_var_name): New.
6509         (var_type_struct): Check and return HOST_WIDE_INT.
6510
6511         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
6512
6513         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
6514
6515         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
6516         check masks for HOST_WIDE_INT.
6517
6518         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
6519         (option_enabled): Likewise.
6520         (get_option_state): Likewise.
6521
6522         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
6523         to HOST_WIDE_INT.
6524
6525 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6526             Marc Glisse  <marc.glisse@normalesup.org>
6527
6528         PR libstdc++-v3/1773
6529         * target.def (decl_mangling_context): New C++ hook.
6530         * doc/tm.texi: Regenerate.
6531         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
6532         * config/sol2-protos.h: Group by source file.
6533         (solaris_cxx_decl_mangling_context): Declare.
6534         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
6535         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
6536         Use $<.
6537         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
6538         Add sol2-stubs.o to extra_objs.
6539
6540 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
6541
6542         PR target/50009
6543         * stor-layout.c (update_alignment_for_field): Don't ICE on
6544         packed flexible array members if ms_bitfield_layout_p.
6545
6546         PR target/50092
6547         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
6548         on the result before returning it.
6549
6550         PR debug/50017
6551         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
6552         is a debug stmt, use location of the first non-debug stmt after it.
6553
6554 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6555
6556         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
6557         (arm_size_rtx_costs): Likewise.
6558
6559 2011-08-18  Richard Guenther  <rguenther@suse.de>
6560
6561         * tree.h (tree_int_cst_msb): Remove.
6562         * tree.c (tree_int_cst_msb): Likewise.
6563         (tree_int_cst_sign_bit): Move from ...
6564         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
6565
6566 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6567
6568         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
6569         * doc/tm.texi: Regenerate.
6570         * target.def (rtx_costs): Add an opno parameter.
6571         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6572         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6573         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6574         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6575         * cse.c (COST_IN): Add an opno parameter.
6576         (notreg_cost): Likewise.  Update call to rtx_cost.
6577         (COST, fold_rtx): Update accordingly.
6578         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
6579         * expmed.c (emit_store_flag): Likewise.
6580         * optabs.c (avoid_expensive_constant): Add an opno parameter.
6581         Update call to rtx_cost.
6582         (expand_binop_directly, expand_binop): Likewise.
6583         (expand_twoval_binop, prepare_cmp_insn): Likewise.
6584         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
6585         (set_src_cost, get_full_set_src_cost): Update accordingly.
6586         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
6587         to target hook.
6588         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
6589         (default_adress_cost): Update calls to rtx_cost.
6590
6591         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
6592         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
6593         (arm_rtx_costs): Add an opno parameter.
6594         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
6595         adjust any recursive rtx-cost calls.
6596         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
6597         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6598         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6599         * config/cris/cris.c (cris_rtx_costs): Likewise.
6600         * config/frv/frv.c (frv_rtx_costs): Likewise.
6601         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6602         * config/i386/i386.c (ix86_rtx_costs): Likewise.
6603         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6604         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6605         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6606         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6607         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6608         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6609         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6610         * config/mep/mep.c (mep_rtx_cost): Likewise.
6611         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6612         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
6613         (mips_zero_extend_cost): Add an opno parameter.
6614         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6615         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
6616         to rtx_cost.
6617         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
6618         rtx-cost calls.
6619         * config/pa/pa.c (hppa_rtx_costs): Likewise.
6620         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6621         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
6622         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6623         (rs6000_debug_rtx_costs): Likewise.
6624         * config/s390/s390.c (s390_rtx_costs): Likewise.
6625         * config/score/score-protos.h (score_rtx_costs): Likewise.
6626         * config/score/score.c (score_rtx_costs): Likewise.
6627         * config/sh/sh.c (andcosts): Update call to rtx_cost.
6628         (sh_rtx_costs): Add an opno parameter.
6629         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6630         * config/spu/spu.c (spu_rtx_costs): Likewise.
6631         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6632         * config/v850/v850.c (v850_rtx_costs): Likewise.
6633         * config/vax/vax.c (vax_rtx_costs): Likewise.
6634         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6635
6636 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6637
6638         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
6639         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
6640         rtx_cost.
6641         * calls.c (precompute_register_parameters): Likewise.
6642         * combine.c (expand_compound_operation, make_extraction): Likewise.
6643         (force_to_mode, distribute_and_simplify_rtx): Likewise.
6644         * dse.c (find_shift_sequence): Likewise.
6645         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
6646         * expr.c (compress_float_constant): Likewise.
6647         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6648         * gcse.c (want_to_gcse_p): Likewise.
6649         * ifcvt.c (noce_try_sign_mask): Likewise.
6650         * loop-doloop.c (doloop_optimize): Likewise.
6651         * loop-invariant.c (create_new_invariant): Likewise.
6652         * optabs.c (avoid_expensive_constant): Likewise.
6653         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
6654         (try_replace_in_use, reload_cse_move2add): Likewise.
6655         * reload1.c (calculate_elim_costs_all_insns): Likewise.
6656         (note_reg_elim_costly): Likewise.
6657         * rtlanal.c (insn_rtx_cost): Likewise.
6658         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6659         * stmt.c (lshift_cheap_p): Likewise.
6660         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
6661         * config/avr/avr.c (final_prescan_insn): Likewise.
6662         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6663         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
6664
6665 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6666
6667         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
6668         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
6669         * cfgloopanal.c (seq_cost): Likewise.
6670         * loop-invariant.c (create_new_invariant): Likewise.
6671         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
6672         (reload_cse_move2add): Use get_full_set_rtx_cost.
6673
6674 2011-08-18  Richard Guenther  <rguenther@suse.de>
6675
6676         * expr.c (get_inner_reference): Fix typo in last change.
6677
6678 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
6679             Joseph Myers  <joseph@codesourcery.com>
6680
6681         PR tree-optimization/49963
6682         * hwint.c (absu_hwi): Define.
6683         * hwint.h (absu_hwi): Declare.
6684         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
6685         of abs_hwi.
6686         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6687         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6688
6689 2011-08-18  Richard Guenther  <rguenther@suse.de>
6690
6691         * expr.c (get_inner_reference): Sign-extend the constant
6692         twos-complement offset before doing arbitrary precision
6693         arithmetic on it.
6694         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
6695         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
6696         to get_constraint_for_ptr_offset.
6697
6698 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6699
6700         PR target/50068
6701         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
6702
6703 2011-08-17  Richard Guenther  <rguenther@suse.de>
6704
6705         * tree.h (convert_to_ptrofftype_loc): New function.
6706         (convert_to_ptrofftype): Define.
6707         * builtins.c (expand_builtin_bzero): Use size_type_node.
6708         (fold_builtin_bzero): Likewise.
6709         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
6710         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
6711         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
6712         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
6713         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
6714         * fold-const.c (build_range_check): Negate using the original type.
6715         (fold_unary_loc): Use fold_build_pointer_plus_loc.
6716         * gimple-fold.c (gimple_adjust_this_by_delta): Use
6717         convert_to_ptrofftype.
6718         * gimplify.c (gimplify_self_mod_expr): Likewise.
6719         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
6720         (graphite_create_new_loop_guard): Likewise.
6721         * graphite-sese-to-poly.c (my_long_long): Remove.
6722         (scop_ivs_can_be_represented): Adjust.
6723         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
6724         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
6725         * tree-loop-distribution.c (build_size_arg_loc): Use
6726         size_type_node.
6727         (generate_memset_zero): Simplify.
6728         * tree-mudflap.c: Use fold_convert, not convert.
6729         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
6730         its own type.
6731         (determine_offset): Likewise for DR_STEP.
6732         (valid_initializer_p): Likewise.
6733         * tree-profile.c (prepare_instrumented_value): Convert the pointer
6734         to an integer type of same size.
6735         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
6736         to sizetype without need.
6737         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6738         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
6739         * tree-ssa-loop-manip.c (create_iv): Likewise.
6740         (determine_exit_conditions): Adjust comment.
6741         * tree-ssa-pre.c (create_expression_by_pieces): Use
6742         convert_to_ptrofftype.
6743         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
6744         * varasm.c (array_size_for_constructor): Compute using double_ints.
6745
6746 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6747
6748         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
6749         when generating an integer result where possible.  Short-cut
6750         comparison against 0 also for QImode.
6751
6752 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6753
6754         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
6755         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
6756         prototype.
6757         * config/spu/spu.c (spu_legitimize_reload_address): New function.
6758         (spu_legitimate_address_p): Do not check displacement if the base
6759         is an eliminable stack register.
6760
6761 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
6762
6763         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
6764         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6765         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
6766         m32c_preferred_output_reload_class): Remove.
6767         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
6768         Change rclass argument and return types to reg_class_t. Use
6769         reg_class_subset_p instead of class_sizes.
6770         (m32c_preferred_output_reload_class): Make static. Change rclass
6771         argument and return types to reg_class_t.
6772         (TARGET_PREFERRED_RELOAD_CLASS,
6773         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6774
6775 2011-08-16  Kai Tietz  <ktietz@redhat.com>
6776
6777         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
6778
6779 2011-08-16  Richard GUenther  <rguenther@suse.de>
6780
6781         PR tree-optimization/50082
6782         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
6783         warnings here, instead of ...
6784         (ssa_forward_propagate_and_combine): ... here.
6785         (forward_propagate_into_comparison_1): Adjust.
6786         (forward_propagate_into_comparison): Likewise.
6787         (forward_propagate_into_gimple_cond): Likewise.
6788         (forward_propagate_into_cond): Likewise.
6789
6790 2011-08-16  Andreas Schwab  <schwab@redhat.com>
6791
6792         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
6793         instead of ggc_alloc_zone_vec_rtvec_def.
6794
6795 2011-08-16  Richard Guenther  <rguenther@suse.de>
6796
6797         * tree.h (ptrofftype_p): New helper function.
6798         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
6799         offset verification.
6800         (verify_gimple_assign_binary): Likewise.
6801         * tree.c (build2_stat): Likewise.
6802         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
6803         (reset_evolution_in_loop): Likewise.
6804         * tree-chrec.h (build_polynomial_chrec): Likewise.
6805
6806 2011-08-16  Liang Wang  <lwang1@marvell.com>
6807
6808         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
6809         ggc_alloc_zone_vec_rtvec_def.
6810
6811 2011-08-16  Richard Guenther  <rguenther@suse.de>
6812
6813         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
6814         helper factored out from ...
6815         (extract_range_from_binary_expr_1): ... here.  Re-structure
6816         to not glob handling too different tree codes.
6817
6818 2011-08-15  Richard Henderson  <rth@redhat.com>
6819
6820         PR middle-end/50006
6821         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
6822         setting out to include allocate_stack named pattern as well.
6823         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
6824         * stmt.c (expand_stack_restore): Likewise.
6825
6826 2011-08-15  Richard Guenther  <rguenther@suse.de>
6827
6828         PR middle-end/50082
6829         * fold-const.c (maybe_canonicalize_comparison_1): Properly
6830         convert the modified operand to the other operand type.
6831         (fold_comparison): Call maybe_canonicalize_comparison_1 with
6832         useless conversions stripped from comparison operands.
6833
6834 2011-08-15  Richard Guenther  <rguenther@suse.de>
6835
6836         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
6837         (extract_range_from_unary_expr_1): Restructure.
6838
6839 2011-08-15  Richard Guenther  <rguenther@suse.de>
6840
6841         PR tree-optimization/50058
6842         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
6843         copy matching.
6844
6845 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6846
6847         PR target/50022
6848         * config/arm/arm.c (output_move_double): Add 2 parameters
6849         to count the number of insns emitted and whether to emit or not.
6850         Use the flag to decide when to emit and count number of instructions
6851         that will be emitted.
6852         Handle case where output_move_double might be called for calculating
6853         lengths with an invalid constant.
6854         (arm_count_output_move_double_insns): Define.
6855         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
6856         (output_move_double): Adjust prototype.
6857         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
6858         output_move_double.
6859         ("*movdi_vfp_cortexa8"): Likewise and add attribute
6860         for ce_count.
6861         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
6862         ("*movdf_soft_insn"): Likewise.
6863         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
6864         ("*cirrus_thumb2_movdi"): Likewise.
6865         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
6866         ("*cirrus_movdf_hard_insn"): Likewise.
6867         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
6868         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
6869         ("mov<mode>_internal VMMX"): Likewise.
6870         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
6871
6872 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
6873
6874         * config/i386/i386.c (ix86_expand_round_sse4): New function.
6875         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
6876         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
6877         for TARGET_ROUND.
6878
6879         (rint<mode>2): Simplify TARGET_ROUND check.
6880         (floor<mode>2): Ditto.
6881         (ceil<mode>2): Ditto.
6882         (btrunc<mode>2): Ditto.
6883
6884 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
6885
6886         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
6887         as mmix_preferred_output_reload_class.
6888
6889 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
6890
6891         * PR target/49903
6892         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
6893         (branch_unspec): New insn.
6894         (branch): Beauty farm.
6895         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
6896         to be IF_THEN_ELSE.
6897         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
6898         New static functions.
6899         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
6900         Use CONST_INT_P.  Beauty.
6901
6902 2011-08-12  Richard Henderson  <rth@redhat.com>
6903
6904         PR rtl-opt/49994
6905         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
6906         * sched-deps.c (init_deps): Clear it.
6907         (deps_analyze_insn): Consume it.
6908         (sched_analyze_insn): Fill it.
6909
6910 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6911
6912         PR target/48328
6913         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
6914         for tbh instructions.
6915
6916 2011-08-12  Diego Novillo  <dnovillo@google.com>
6917
6918         * data-streamer.h (streamer_write_zero): Rename from output_zero.
6919         (streamer_write_uhwi): Rename from lto_output_uleb128.
6920         (streamer_write_hwi): Rename from output_sleb128.
6921         (streamer_write_string): Rename from lto_output_string.
6922         (streamer_string_index): Rename from lto_string_index.
6923         (streamer_write_string_with_length): Rename from
6924         lto_output_string_with_length.
6925         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
6926         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
6927         (streamer_read_string): Rename from lto_input_string.
6928         (streamer_read_indexed_string): Rename from input_string_internal.
6929         (streamer_read_uhwi): Rename from lto_input_uleb128.
6930         (streamer_read_hwi): Rename from lto_input_sleb128.
6931         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
6932         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
6933         (streamer_write_enum): Rename from lto_output_enum.
6934         (streamer_read_enum): Rename from lto_input_enum.
6935         (streamer_write_record_start): Rename from output_record_start.
6936         (streamer_read_record_start): Rename from input_record_start.
6937         (streamer_write_bitpack): Rename from lto_output_bitpack.
6938         (streamer_read_bitpack): Rename from lto_input_bitpack.
6939         (streamer_write_char_stream): Rename from lto_output_1_stream.
6940         (streamer_read_uchar): Rename from lto_input_1_unsigned.
6941         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
6942         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
6943         (streamer_read_string_cst): Rename from input_string_cst.
6944         (streamer_read_chain): Rename from lto_input_chain.
6945         (streamer_alloc_tree): Rename from lto_materialize_tree.
6946         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
6947         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
6948         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
6949         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
6950         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
6951         (streamer_write_chain): Rename from lto_output_chain.
6952         (streamer_write_tree_header): Rename from lto_output_tree_header.
6953         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
6954         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
6955         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
6956         (streamer_write_builtin): Rename from lto_output_builtin_tree.
6957         (streamer_check_handled_ts_structures): Rename from
6958         check_handled_ts_structures.
6959         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
6960         (streamer_tree_cache_insert_at): Rename from
6961         lto_streamer_cache_insert_at.
6962         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
6963         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
6964         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
6965         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
6966         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
6967         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
6968         (write_identifier): Rename from output_identifier.
6969         (write_ts_common_tree_pointers): Rename from
6970         lto_output_ts_common_tree_pointers.
6971         (write_ts_vector_tree_pointers): Rename from
6972         lto_output_ts_vector_tree_pointers.
6973         (write_ts_complex_tree_pointers): Rename from
6974         lto_output_ts_complex_tree_pointers.
6975         (write_ts_decl_minimal_tree_pointers): Rename from
6976         lto_output_ts_decl_minimal_tree_pointers.
6977         (write_ts_decl_common_tree_pointers): Rename from
6978         lto_output_ts_decl_common_tree_pointers.
6979         (write_ts_decl_non_common_tree_pointers): Rename from
6980         lto_output_ts_decl_non_common_tree_pointers.
6981         (write_ts_decl_with_vis_tree_pointers): Rename from
6982         lto_output_ts_decl_with_vis_tree_pointers.
6983         (write_ts_field_decl_tree_pointers): Rename from
6984         lto_output_ts_field_decl_tree_pointers.
6985         (write_ts_function_decl_tree_pointers): Rename from
6986         lto_output_ts_function_decl_tree_pointers.
6987         (write_ts_type_common_tree_pointers): Rename from
6988         lto_output_ts_type_common_tree_pointers.
6989         (write_ts_type_non_common_tree_pointers): Rename from
6990         lto_output_ts_type_non_common_tree_pointers.
6991         (write_ts_list_tree_pointers): Rename from
6992         lto_output_ts_list_tree_pointers.
6993         (write_ts_vec_tree_pointers): Rename from
6994         lto_output_ts_vec_tree_pointers.
6995         (write_ts_exp_tree_pointers): Rename from
6996         lto_output_ts_exp_tree_pointers.
6997         (write_ts_block_tree_pointers): Rename from
6998         lto_output_ts_block_tree_pointers.
6999         (write_ts_binfo_tree_pointers): Rename from
7000         lto_output_ts_binfo_tree_pointers.
7001         (write_ts_constructor_tree_pointers): Rename from
7002         lto_output_ts_constructor_tree_pointers.
7003         (write_ts_target_option): Rename from lto_output_ts_target_option.
7004         (write_ts_translation_unit_decl_tree_pointers): Rename from
7005         lto_output_ts_translation_unit_decl_tree_pointers.
7006         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
7007         Rename from lto_streamer_cache_add_to_node_array.
7008         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
7009         (record_common_node): Rename from lto_record_common_node.
7010
7011         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
7012         declarations.
7013         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
7014         function.
7015         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
7016         unused function.
7017         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
7018         (ipa-reference.o): Likewise.
7019         * lto-section-out.c: Include data-streamer.h.
7020         * ipa-reference.c: Include data-streamer.h.
7021
7022 2011-08-12  Nick Clifton  <nickc@redhat.com>
7023
7024         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
7025         * doc/md.texi (cmpstrn): Note that the comparison stops if both
7026         fetched bytes are zero.
7027         (cmpstr): Likewise.
7028         (cmpmem): Note that the comparison does not stop if both of the
7029         fetched bytes are zero.
7030
7031 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
7032
7033         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
7034         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
7035         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
7036         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
7037         to integer_type_node.
7038         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
7039         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
7040         * builtins.c (expand_builtin_in): Ditto.
7041         (mathfn_built_in_1): Ditto.
7042         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
7043         BUILT_IN_IFLOOR.
7044         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
7045         BUILT_IN_IROUND.
7046         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
7047         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
7048         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
7049
7050 2011-08-12  Richard Guenther  <rguenther@suse.de>
7051
7052         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
7053
7054 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
7055
7056         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
7057
7058 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
7059
7060         * config/arm/arm.c (get_label_padding): New function.
7061         (create_fix_barrier, arm_reorg): Use it.
7062
7063 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
7064
7065         PR target/49781
7066         * config/i386/i386.md (*lea_5_zext): New.
7067         (*lea_6_zext): Ditto.
7068         * config/i386/predicates.md (const_32bit_mask): New predicate.
7069         (lea_address_operand): Reject AND.
7070         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
7071         const_32bit_mask immediate.
7072         (ix86_print_operand_address): Handle AND.
7073         (memory_address_length): Ditto.
7074
7075 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
7076             Brian Hackett  <bhackett1024@gmail.com>
7077
7078         * plugin.def: Add event for finish_decl.
7079         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
7080         * c-decl.c (finish_decl): Invoke callbacks on above event.
7081         * doc/plugins.texi: Document above event.
7082
7083 2011-08-11  Richard Guenther  <rguenther@suse.de>
7084
7085         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
7086         lookups, make looking through aggregate copies stronger.
7087
7088 2011-08-11  Richard Henderson  <rth@redhat.com>
7089
7090         PR bootstrap/50018
7091         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
7092
7093 2011-08-11  Richard Guenther  <rguenther@suse.de>
7094
7095         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
7096         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
7097         (vrp_visit_stmt): Likewise.
7098
7099 2011-08-11  Richard Guenther  <rguenther@suse.de>
7100
7101         PR middle-end/50040
7102         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
7103         load of the other piece with TREE_NO_WARNING.
7104         * tree-flow.h (warn_uninit): Adjust prototype.
7105         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
7106         the base variable and the expression that is used separately.
7107         Properly query all TREE_NO_WARNING flags.
7108         (struct walk_data): Remove.
7109         (warn_uninitialized_var): Likewise.
7110         (warn_uninitialized_vars): Do not walk gimple pieces but simply
7111         look at all SSA uses of the statement.  Handle unused memory
7112         separately.
7113         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
7114
7115 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
7116
7117         * config/rx/rx.md (movsicc): Allow register to register transfers.
7118         (*movsicc): Likewise.
7119         (*stcc): Restrict this pattern to EQ and NE compares.
7120         (*stcc_reg): New pattern.  Works for any comparison but only for
7121         register transfers.
7122
7123 2011-08-11   Diego Novillo  <dnovillo@google.com>
7124
7125         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
7126         Call stream_write_tree instead of output_record_start.
7127         (lto_output_ts_binfo_tree_pointers): Likewise.
7128
7129         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
7130         Convert it to a macro.
7131         (stream_read_tree): Likewise.
7132
7133         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
7134         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
7135
7136         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
7137         and tree_read_bitfields.
7138         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
7139         (lto_write_tree): Call it.
7140         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
7141         * streamer-hooks.h (struct streamer_hooks): Remove fields
7142         name, is_streamable and alloc_tree. Update all users.
7143         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
7144         (lto_materialize_tree): ... here.
7145         Handle CALL_EXPR codes.
7146         Remove call to lto_streamer_cache_append.
7147         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
7148         * tree-streamer.h (tree_read_bitfields): Declare.
7149
7150         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
7151         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
7152         * tree-streamer.h (stream_read_tree): New.  Replace all calls
7153         to lto_input_tree with it.
7154         (stream_write_tree): New.  Replace all calls to lto_output_tree,
7155         lto_output_tree_ref and lto_output_tree_or_ref with it.
7156         * lto-streamer-in.c (lto_read_tree): Inline code from
7157         lto_streamer_read_tree.
7158         (lto_input_tree): Move from tree-streamer-in.c.
7159         * lto-streamer-out.c (lto_output_tree_ref): Make static.
7160         Remove handling of NULL values for EXPR.
7161         Do not handle EXPRs that are not indexable.
7162         (lto_write_tree): Move from tree-streamer-out.c.
7163         Inline lto_streamer_write_tree.
7164         (lto_output_tree): Move from tree-streamer-out.c.
7165         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
7166         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
7167         (lto_preload_common_nodes): Likewise.
7168         Remove assertions and adjustments for nodes
7169         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
7170         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
7171         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
7172         * lto-streamer.h (lto_input_tree): Declare.
7173         (lto_output_tree_ref): Remove.
7174         * streamer-hooks.h (struct streamer_hooks): Remove fields
7175         preload_common_nodes, indexable_with_decls_p,
7176         pack_value_fields, unpack_value_fields and output_tree_header.
7177         Update all users.
7178         * tree-streamer-in.c (lto_materialize_tree): Make extern.
7179         (lto_input_tree_pointers): Likewise.
7180         (lto_read_tree): Move to lto-streamer-in.c.
7181         (lto_input_integer_cst): Make extern.
7182         (lto_get_pickled_tree): Likewise.
7183         (lto_get_builtin_tree): Likewise.
7184         (lto_input_tree): Move to lto-streamer-in.c.
7185         * tree-streamer-out.c (pack_value_fields): Make extern.
7186         (lto_output_tree_or_ref): Remove.  Replace all callers with
7187         calls to stream_write_tree.
7188         (lto_output_builtin_tree): Make extern.
7189         (lto_streamer_write_tree): Inline into lto_write_tree.
7190         (lto_output_tree_pointers): Make extern.
7191         (lto_output_tree_header): Likewise.
7192         (lto_output_integer_cst): Likewise.
7193         (lto_write_tree): Move to lto-streamer-out.c.
7194         (lto_output_tree): Likewise.
7195         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
7196         (preload_common_nodes): Likewise.
7197         (lto_streamer_cache_create): Call it.
7198         * tree-streamer.h: Include streamer-hooks.h.
7199         (stream_write_tree): New.
7200         (stream_read_tree): New.
7201         (lto_input_tree): Remove.
7202         (lto_materialize_tree): Declare.
7203         (lto_input_tree_pointers): Declare.
7204         (lto_get_pickled_tree): Declare.
7205         (lto_get_builtin_tree): Declare.
7206         (lto_input_integer_cst): Declare.
7207         (lto_output_tree_header): Declare.
7208         (pack_value_fields): Declare.
7209         (lto_output_tree_pointers): Declare.
7210         (lto_output_integer_cst): Declare.
7211         (lto_output_builtin_tree): Declare.
7212
7213 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
7214
7215         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
7216         only if producer writes to the register given by regno.
7217
7218 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
7219             Alexander Monakov  <amonakov@ispras.ru>
7220
7221         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
7222         (sched_get_condition_with_rev_uncached): ... this.  Factor out
7223         condition caching logic into ...
7224         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
7225         attempt to use cache for instructions with zero luid.
7226         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
7227         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
7228
7229 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
7230
7231         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
7232         get_seqno_for_a_jump.  Update the caller.
7233         (get_seqno_by_succs): New.  Use it ...
7234         (get_seqno_for_a_jump): ... here to find a seqno if looking at
7235         predecessors was not sufficient.
7236         (get_seqno_by_preds): Include head in iteration range, exclude insn.
7237
7238 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
7239
7240         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
7241
7242 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
7243
7244         * sel-sched-ir.h (register_unavailable_p): Declare.
7245         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
7246         (set_unavailable_target_for_expr): ... here to properly test
7247         availability of a register.
7248         (speculate_expr): Ditto.
7249         * sel-sched.c (substitute_reg_in_expr): Ditto.
7250         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
7251
7252 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
7253
7254         * sel-sched.c (verify_target_availability): Fix usage of
7255         hard_regno_nregs.
7256
7257 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
7258
7259         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
7260         recognized by cannot_copy_insn_p hook and volatile instructions.
7261
7262 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
7263
7264         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
7265
7266 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
7267
7268         * doc/md.texi (define_bypass): Say that the instruction names can
7269         be filename-style globs.
7270         * Makefile.in (FNMATCH_H): Define.
7271         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
7272         * genattrtab.c: Include fnmatch.h.
7273         (bypass_list): Change field name from "insn" to "pattern".
7274         (gen_bypass_1): Update accordingly.
7275         (process_bypasses): Use fnmatch to check for matches between
7276         insn reservations and define_bypasses.
7277         * genautomata.c: Include fnmatch.h.
7278         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
7279         and out_pattern respectively.
7280         (gen_bypass, insert_bypass): Update accordingly.
7281         (for_each_matching_insn, process_bypass_2, process_bypass_1)
7282         (process_bypass): New functions.
7283         (process_decls): Use process_bypass.  Update after field name changes.
7284
7285 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
7286
7287         PR target/49687
7288         * config/avr/avr.md (smulqi3_highpart): New insn.
7289         (umulqi3_highpart): New insn.
7290         (*subqi3.ashiftrt7): New insn.
7291         (smulhi3_highpart): New expander.
7292         (umulhi3_highpart): Nex expander.
7293         (*smulhi3_highpart_call): New insn.
7294         (*umulhi3_highpart_call): New insn.
7295         (extend_u): New code attribute.
7296         (extend_prefix): Rename code attribute to extend_su.
7297         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
7298         widening QI/HI multiply.
7299
7300 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
7301
7302         PR tree-optimization/50039
7303         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
7304         that DEF_STMT has a stmt_vec_info.
7305
7306 2011-08-10  Richard Guenther  <rguenther@suse.de>
7307
7308         * tree.h (can_trust_pointer_alignment): Remove.
7309         * builtins.c (can_trust_pointer_alignment): Remove.
7310
7311 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7312
7313         * c-typeck.c (scalar_to_vector): New function. Try scalar to
7314         vector conversion.
7315         (stv_conv): New enum for scalar_to_vector return type.
7316         (build_binary_op): Adjust.
7317         * doc/extend.texi: Description of scalar to vector expansion.
7318
7319 2011-08-10  Richard Guenther  <rguenther@suse.de>
7320
7321         * tree.h (get_pointer_alignment): Remove max-align argument.
7322         (get_object_alignment): Likewise.
7323         * builtins.c (get_object_alignment_1): Adjust.
7324         (get_object_alignment): Remove max-align argument.
7325         (get_pointer_alignment): Likewise.
7326         (expand_builtin_strlen): Adjust.
7327         (expand_builtin_memcpy): Likewise.
7328         (expand_builtin_mempcpy_args): Likewise.
7329         (expand_builtin_strncpy): Likewise.
7330         (expand_builtin_memset_args): Likewise.
7331         (expand_builtin_memcmp): Likewise.
7332         (expand_builtin_strcmp): Likewise.
7333         (expand_builtin_strncmp): Likewise.
7334         (get_builtin_sync_mem): Likewise.
7335         (fold_builtin_memset): Likewise.
7336         (fold_builtin_memory_op): Likewise.
7337         (expand_builtin_memory_chk): Likewise.
7338         * emit-rtl.c (get_mem_align_offset): Likewise.
7339         (set_mem_attributes_minus_bitpos): Likewise.
7340         * expr.c (expand_assignment): Likewise.
7341         (expand_expr_real_1): Likewise.
7342         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
7343         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
7344         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
7345         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
7346         * value-prof.c (gimple_stringops_transform): Likewise.
7347
7348 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
7349
7350         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
7351         * doc/tm.texi: Regenerate.
7352
7353 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
7354
7355         PR target/29560
7356         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
7357         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
7358         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
7359         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
7360         shift target is unused.
7361
7362 2011-08-10  Richard Guenther  <rguenther@suse.de>
7363
7364         PR tree-optimization/49937
7365         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
7366         using get_object_alignment_1.
7367
7368 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
7369
7370         * config/i386/i386.c (ix86_emit_i387_round): New function.
7371         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
7372         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
7373         Use ix86_emit_i387_round to expand round function for i387 math.
7374         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
7375         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
7376
7377 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7378
7379         * config/sync.c: Move to ../libgcc.
7380         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
7381         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
7382         Remove.
7383
7384 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
7385
7386         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
7387         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
7388         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
7389         Change 'from' and 'to' arguments type to reg_class_t.
7390         (TARGET_REGISTER_MOVE_COST): Define.
7391
7392 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
7393
7394         PR target/50026
7395         Revert:
7396         PR rtl-optimization/49990
7397         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7398         ignore classes which can not change mode.
7399         (find_costs_and_classes): Ditto.
7400
7401 2011-08-09  Richard Guenther  <rguenther@suse.de>
7402
7403         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
7404         information for ranges with only negative values.
7405         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
7406         BIT_AND_EXPR handling to handle ranges with negative values.
7407
7408 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
7409
7410         * config/i386/i386.c: Remove traling spaces.
7411         * config/i386/sse.md: Likewise.
7412         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
7413         (*fma_fmsub_<mode>): Likewise.
7414         (*fma_fnmadd_<mode>): Likewise.
7415         (*fma_fnmsub_<mode>): Likewise.
7416
7417 2011-08-09  Nick Clifton  <nickc@redhat.com>
7418
7419         * config/rx/rx.md: Disable extender peepholes at -O3.
7420
7421 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
7422
7423         PR target/49781
7424         * config/i386/i386.md (reload_noff_load): New.
7425         (reload_noff_store): Ditto.
7426         * config/i386/i386.c (ix86_secondary_reload): Use
7427         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
7428         double-word moves from/to non-offsetable addresses instead of
7429         generating XMM temporary.
7430
7431 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
7432
7433         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
7434
7435 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
7436
7437         PR tree-optimization/50014
7438         * tree-vect-loop.c (vectorizable_reduction): Get def type before
7439         calling vect_get_vec_def_for_stmt_copy ().
7440
7441 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
7442
7443         PR rtl-optimization/49990
7444         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7445         ignore classes which can not change mode.
7446         (find_costs_and_classes): Ditto.
7447
7448 2011-08-08  Richard Henderson  <rth@redhat.com>
7449
7450         PR middle-end/49990
7451         * config/i386/i386.c (ix86_expand_prologue): Call
7452         for SEH target gen_prologue_use instead of gen_blockage
7453         at prologue's end.
7454
7455 2011-08-08  Martin Jambor  <mjambor@suse.cz>
7456
7457         PR middle-end/49923
7458         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
7459         memory alignment.
7460
7461 2011-08-08   Diego Novillo  <dnovillo@google.com>
7462
7463         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
7464         (DATA_STREAMER_H): New.
7465         (GIMPLE_STREAMER_H): New.
7466         (TREE_STREAMER_H): New.
7467         (STREAMER_HOOKS_H): New.
7468         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
7469         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
7470         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
7471         (data-streamer.o): New.
7472         (data-streamer-in.o): New.
7473         (data-streamer-out.o): New.
7474         (gimple-streamer-in.o): New.
7475         (gimple-streamer-out.o): New.
7476         (streamer-hooks.o): New.
7477         (tree-streamer.o): New.
7478         (tree-streamer-in.o): New.
7479         (tree-streamer-out.o): New.
7480         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7481         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
7482         GIMPLE_STREAMER_H and TREE_STREAMER_H.
7483         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
7484         GIMPLE_STREAMER_H and TREE_STREAMER_H.
7485         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
7486         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7487         (ipa-inline-analysis.o): Likewise.
7488         (ipa-pure-const.o): Likewise.
7489         * data-streamer-in.c: New.
7490         * data-streamer-out.c: New.
7491         * data-streamer.c: New.
7492         * data-streamer.h: New.
7493         * gimple-streamer-in.c: New.
7494         * gimple-streamer-out.c: New.
7495         * gimple-streamer.h: New.
7496         * ipa-inline-analysis.c: Include data-streamer.h.
7497         * ipa-prop.c: Include data-streamer.h.
7498         * ipa-pure-const.c: Include data-streamer.h.
7499         * lto-cgraph.c: Include data-streamer.h.
7500         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
7501         (lto_input_widest_uint_uleb128): Likewise.
7502         (lto_input_sleb128): Likewise.
7503         (bp_unpack_var_len_unsigned): Likewise.
7504         (bp_unpack_var_len_int): Likewise.
7505         * lto-section-out.c (lto_output_uleb128_stream): Move to
7506         data-streamer-out.c.
7507         (lto_output_widest_uint_uleb128_stream): Likewise.
7508         (lto_output_sleb128_stream): Likewise.
7509         (bp_pack_var_len_unsigned): Likewise.
7510         (bp_pack_var_len_int): Likewise.
7511         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
7512         (struct string_slot): Remove.  Update all users.
7513         (lto_tag_check_set): Make extern.
7514         (lto_tag_check_range): Move to lto-streamer.h.
7515         (lto_tag_check): Likewise.
7516         (hash_string_slot_node): Remove.  Update all users.
7517         (eq_string_slot_node): Remove.  Update all users.
7518         (string_for_index): Move to data-streamer-in.c
7519         (input_string_internal): Likewise.
7520         (input_string_cst): Move to tree-streamer-in.c.
7521         (input_identifier): Likewise.
7522         (lto_input_string): Move to data-streamer-in.c
7523         (input_record_start): Move to data-streamer.h
7524         (canon_file_name): Use new definition of struct string_slot
7525         from data-streamer.h.  Set S_SLOT.LEN.
7526         (lto_input_location): Make extern.
7527         (lto_input_chain): Move to tree-streamer-in.c.
7528         (lto_init_eh): Make extern.
7529         (input_phi): Move to gimple-streamer-in.c.
7530         (input_gimple_stmt): Likewise.
7531         (input_bb): Likewise.
7532         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
7533         (unpack_ts_real_cst_value_fields): Likewise.
7534         (unpack_ts_fixed_cst_value_fields): Likewise.
7535         (unpack_ts_decl_common_value_fields): Likewise.
7536         (unpack_ts_decl_wrtl_value_fields): Likewise.
7537         (unpack_ts_decl_with_vis_value_fields): Likewise.
7538         (unpack_ts_function_decl_value_fields): Likewise.
7539         (unpack_ts_type_common_value_fields): Likewise.
7540         (unpack_ts_block_value_fields): Likewise.
7541         (unpack_ts_translation_unit_decl_value_fields): Likewise.
7542         (unpack_value_fields): Likewise.
7543         (lto_materialize_tree): Likewise.
7544         (lto_input_ts_common_tree_pointers): Likewise.
7545         (lto_input_ts_vector_tree_pointers): Likewise.
7546         (lto_input_ts_complex_tree_pointers): Likewise.
7547         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
7548         (lto_input_ts_decl_common_tree_pointers): Likewise.
7549         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
7550         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
7551         (lto_input_ts_field_decl_tree_pointers): Likewise.
7552         (lto_input_ts_function_decl_tree_pointers): Likewise.
7553         (lto_input_ts_type_common_tree_pointers): Likewise.
7554         (lto_input_ts_type_non_common_tree_pointers): Likewise.
7555         (lto_input_ts_list_tree_pointers): Likewise.
7556         (lto_input_ts_vec_tree_pointers): Likewise.
7557         (lto_input_ts_exp_tree_pointers): Likewise.
7558         (lto_input_ts_block_tree_pointers): Likewise.
7559         (lto_input_ts_binfo_tree_pointers): Likewise.
7560         (lto_input_ts_constructor_tree_pointers): Likewise.
7561         (lto_input_ts_target_option): Likewise.
7562         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
7563         (lto_input_tree_pointers): Likewise.
7564         (lto_get_pickled_tree): Likewise.
7565         (lto_get_builtin_tree): Likewise.
7566         (lto_read_tree): Likewise.
7567         (lto_input_integer_cst): Likewise.
7568         (lto_input_tree): Likewise.
7569         * lto-streamer-out.c: Include data-streamer.h,
7570         gimple-streamer.h and streamer-hooks.h.
7571         (struct string_slot): Move to data-streamer.h.
7572         (hash_string_slot_node): Likewise.
7573         (eq_string_slot_node): Likewise.
7574         (lto_string_index): Move to data-streamer-out.c.
7575         (lto_output_string_with_length): Likewise.
7576         (lto_output_string): Likewise.
7577         (output_string_cst): Move to tree-streamer-out.c.
7578         (output_identifier): Likewise.
7579         (output_zero): Move to data-streamer-out.c
7580         (output_uleb128): Likewise.
7581         (output_sleb128): Likewise.
7582         (output_record_start): Move to data-streamer.h
7583         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
7584         (pack_ts_real_cst_value_fields): Likewise.
7585         (pack_ts_fixed_cst_value_fields): Likewise.
7586         (pack_ts_decl_common_value_fields): Likewise.
7587         (pack_ts_decl_wrtl_value_fields): Likewise.
7588         (pack_ts_decl_with_vis_value_fields): Likewise.
7589         (pack_ts_function_decl_value_fields): Likewise.
7590         (pack_ts_type_common_value_fields): Likewise.
7591         (pack_ts_block_value_fields): Likewise.
7592         (pack_ts_translation_unit_decl_value_fields): Likewise.
7593         (pack_value_fields): Likewise.
7594         (lto_output_chain): Likewise.
7595         (lto_output_ts_common_tree_pointers): Likewise.
7596         (lto_output_ts_vector_tree_pointers): Likewise.
7597         (lto_output_ts_complex_tree_pointers): Likewise.
7598         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
7599         (lto_output_ts_decl_common_tree_pointers): Likewise.
7600         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
7601         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
7602         (lto_output_ts_field_decl_tree_pointers): Likewise.
7603         (lto_output_ts_function_decl_tree_pointers): Likewise.
7604         (lto_output_ts_type_common_tree_pointers): Likewise.
7605         (lto_output_ts_type_non_common_tree_pointers): Likewise.
7606         (lto_output_ts_list_tree_pointers): Likewise.
7607         (lto_output_ts_vec_tree_pointers): Likewise.
7608         (lto_output_ts_exp_tree_pointers): Likewise.
7609         (lto_output_ts_block_tree_pointers): Likewise.
7610         (lto_output_ts_binfo_tree_pointers): Likewise.
7611         (lto_output_ts_constructor_tree_pointers): Likewise.
7612         (lto_output_ts_target_option): Likewise.
7613         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
7614         (lto_output_tree_pointers): Likewise.
7615         (lto_output_tree_header): Likewise.
7616         (lto_output_builtin_tree): Likewise.
7617         (lto_write_tree): Likewise.
7618         (lto_output_integer_cst): Likewise.
7619         (lto_output_tree): Likewise.
7620         (output_phi): Move to gimple-streamer-out.c.
7621         (output_gimple_stmt): Likewise.
7622         (output_bb): Likewise.
7623         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
7624         (streamer_hooks): Move to streamer-hooks.c.
7625         (check_handled_ts_structures): Move to tree-streamer.c
7626         (lto_streamer_cache_add_to_node_array): Likewise.
7627         (lto_streamer_cache_insert_1): Likewise.
7628         (lto_streamer_cache_insert): Likewise.
7629         (lto_streamer_cache_insert_at): Likewise.
7630         (lto_streamer_cache_append): Likewise.
7631         (lto_streamer_cache_lookup): Likewise.
7632         (lto_streamer_cache_get): Likewise.
7633         (lto_record_common_node): Likewise.
7634         (lto_preload_common_nodes): Likewise.
7635         (lto_streamer_cache_create): Likewise.
7636         (lto_streamer_cache_delete): Likewise.
7637         (streamer_hooks_init): Move to streamer-hooks.c.
7638         * lto-streamer.h: Include diagnostic.h
7639         (struct output_block, struct lto_input_block,
7640         struct data_in, struct bitpack_d): Remove forward declarations.
7641         (struct bitpack_d): Move to data-streamer.h.
7642         (struct lto_streamer_cache_d): Move to tree-streamer.h.
7643         (struct streamer_hooks): Move to streamer-hooks.h.
7644         (bp_pack_var_len_unsigned): Move to data-streamer.h.
7645         (bp_pack_var_len_int): Likewise.
7646         (bp_unpack_var_len_unsigned): Likewise.
7647         (bp_unpack_var_len_int): Likewise.
7648         (lto_input_location): Declare.
7649         (lto_tag_check_set): Declare.
7650         (lto_init_eh): Declare.
7651         (lto_output_tree_ref): Declare.
7652         (lto_output_location): Declare.
7653         (bitpack_create): Move to data-streamer.h.
7654         (bp_pack_value): Likewise.
7655         (lto_output_bitpack): Likewise.
7656         (lto_input_bitpack): Likewise.
7657         (bp_unpack_value): Likewise.
7658         (lto_output_1_stream): Likewise.
7659         (lto_input_1_unsigned): Likewise.
7660         (lto_output_int_in_range): Likewise.
7661         (lto_input_int_in_range): Likewise.
7662         (bp_pack_int_in_range): Likewise.
7663         (bp_unpack_int_in_range): Likewise.
7664         (lto_output_enum): Likewise.
7665         (lto_input_enum): Likewise.
7666         (bp_pack_enum): Likewise.
7667         (bp_unpack_enum): Likewise.
7668         * streamer-hooks.c: New.
7669         * streamer-hooks.h: New.
7670         * tree-streamer-in.c: New.
7671         * tree-streamer-out.c: New.
7672         * tree-streamer.c: New.
7673         * tree-streamer.h: New.
7674
7675 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7676
7677         * gthr-posix95.h: Remove.
7678         * gthr.h [_PTHREADS95]: Remove.
7679         * configure.ac (enable_threads): Remove posix95.
7680         * configure: Regenerate.
7681         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
7682
7683 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
7684
7685         PR target/49781
7686         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
7687         SImode addresses.
7688         (ix86_print_operand_address): Handle zero-extended addresses.
7689         (memory_address_length): Add length of addr32 prefix for
7690         zero-extended addresses.
7691         (ix86_secondary_reload): Handle moves to/from double-word general
7692         registers from/to zero-extended addresses.
7693         * config/i386/predicates.md (lea_address_operand): Reject
7694         zero-extended operands.
7695
7696 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
7697
7698         PR other/48007
7699         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
7700
7701         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
7702         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
7703
7704         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
7705         (_Unwind_Context_Reg_Val): Likewise.
7706         (_Unwind_Get_Unwind_Word): Likewise.
7707         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
7708         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
7709         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
7710         for EXTENDED_CONTEXT_BIT.
7711         (__frame_state_for): Likewise.
7712         (uw_init_context_1): Likewise.
7713         (_Unwind_GetGR): Updated.
7714         (_Unwind_SetGR): Likewise.
7715         (_Unwind_GetGRPtr): Likewise.
7716         (_Unwind_SetGRPtr): Likewise.
7717         (_Unwind_SetGRValue): Likewise.
7718         (_Unwind_GRByValue): Likewise.
7719         (uw_install_context_1): Likewise.
7720
7721         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
7722         ASSUME_EXTENDED_UNWIND_CONTEXT.
7723         * doc/tm.texi: Regenerated.
7724
7725 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7726
7727         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
7728
7729 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7730
7731         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
7732         Linux/GNU-specific.
7733         (DEC Alpha Options, -mtune): Likewise.
7734         (MIPS Options, -march): native is supported on IRIX.
7735
7736 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7737
7738         * config/sparc/driver-sparc.c: New file.
7739         * config/sparc/x-sparc: New file.
7740         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
7741         * config/sparc/sparc.opt (native): New value for enum processor_type.
7742         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
7743         * config/sparc/sparc.c (sparc_option_override): Abort if
7744         PROCESSOR_NATIVE gets here.
7745         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
7746         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
7747         DRIVER_SELF_SPECS): Define.
7748         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
7749         (SPARC Options, -mtune): Likewise.
7750         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
7751         Substitute result.
7752         * configure: Regenerate.
7753         * Makefile.in (EXTRA_GCC_LIBS): Set.
7754         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
7755         (cpp$(exeext)): Likewise.
7756
7757 2011-08-08  Richard Guenther  <rguenther@suse.de>
7758
7759         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
7760         split out from ...
7761         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
7762         by composition.
7763
7764 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
7765
7766         PR tree-optimization/50005
7767         * ipa-inline-analysis (remap_predicate): Add cast to
7768         silence signed/unsigned comparison warning.
7769
7770 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
7771
7772         * modulo-sched.c (get_sched_window): Use a table for the debug output.
7773         Print the current ii.
7774         (sms_schedule_by_order): Reduce whitespace in dump line.
7775
7776 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
7777
7778         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
7779         and one loop for successors.  Fix upper bound of memory range.
7780
7781 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7782
7783         PR target/50001
7784         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
7785         (TARGET_INSTANTIATE_DECLS): New define.
7786
7787 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
7788             Mikael Morin   <mikael.morin@sfr.fr>
7789
7790         * Makefile.in (INCLUDES_FOR_TARGET): New.
7791         (LIBGCC2_CFLAGS): Use it.
7792         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
7793
7794 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7795
7796         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
7797         frame->save_regs_using_mov calculation.
7798
7799 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7800
7801         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
7802         * config/i386/sse.md (castmode): New mode attribute.
7803         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
7804         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
7805
7806 2011-08-05  Jan Hubicka  <jh@suse.cz>
7807
7808         PR middle-end/49494
7809         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
7810
7811 2011-08-05  Jan Hubicka  <jh@suse.cz>
7812
7813         PR middle-end/49500
7814         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
7815         handle aliases.
7816         (create_emultls_var):New function.
7817         (ipa_lower_emutls): Handle aliases correctly.
7818
7819 2011-08-05  Jan Hubicka  <jh@suse.cz>
7820
7821         PR middle-end/49735
7822         * ipa-inline.c (recursive_inlining): Look through aliases.
7823
7824 2011-08-05  Jason Merrill  <jason@redhat.com>
7825
7826         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
7827         declarations to beginning of function.
7828
7829 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
7830
7831         PR rtl-optimization/49900
7832         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
7833         ensure basic blocks stay in the same order.
7834
7835 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
7836
7837         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
7838         store_bit_field.
7839         (s390_expand_atomic): Same.
7840
7841 2011-08-05  Richard Henderson  <rth@redhat.com>
7842
7843         PR rtl-opt/49977
7844         * dwarf2cfi.c (scan_insn_after): Split out of ...
7845         (scan_trace): ... here.  Correctly place notes wrt sequences.
7846
7847 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
7848             Richard Henderson  <rth@redhat.com>
7849
7850         PR rtl-opt/49982
7851         * expr.c (fixup_args_size_notes): Look through no-op moves.
7852
7853 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7854
7855         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
7856         of "m" for operand 0.  Add type and mode attribute.
7857         (*pushxf_nointeger"): Use "<" constraint for operand 0.
7858         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
7859         constraint instead of "o" for opreand 1.
7860         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
7861         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
7862         operand 0, alternative 4.
7863         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
7864
7865 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7866
7867         * config/i386/predicates.md (lea_address_operand): Rename from
7868         no_seg_address_operand.
7869         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
7870         (*lea_1_zext): Ditto.
7871         (*lea_2): Ditto.
7872         (*lea_2_zext): Ditto.
7873
7874 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7875
7876         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
7877         parts.base and parts.index.
7878         * config/i386/predicates.md (aligned_operand): Ditto.
7879         (cmpxchg8b_pic_memory_operand): Ditto.
7880
7881 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7882
7883         * config/soft-fp: Move to ../libgcc.
7884         * Makefile.in (SFP_MACHINE): Remove.
7885         (libgcc-support): Remove $(SFP_MACHINE) dependency.
7886         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
7887         * config/arm/t-arm-softfp: Move to
7888         ../libgcc/config/arm/t-softfp.
7889         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
7890         * config/c6x/t-c6x-softfp: Remove.
7891         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
7892         * config/i386/t-fprules-softfp: Move to
7893         ../libgcc/config/t-softfp-tf.
7894         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
7895         * config/ia64/t-fprules-softfp: Remove.
7896         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
7897         * config/lm32/t-fprules-softfp: Remove.
7898         * config/moxie/sfp-machine.h: Remove.
7899         * config/moxie/t-moxie-softfp: Remove.
7900         * config/rs6000/darwin-ldouble-format: Move to
7901         ../libgcc/config/rs6000/ibm-ldouble-format.
7902         * config/rs6000/darwin-ldouble.c: Move to
7903         ../libgcc/config/rs6000/ibm-ldouble.c
7904         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
7905         * config/rs6000/libgcc-ppc64.ver: Likewise.
7906         * config/rs6000/sfp-machine.h: Likewise.
7907         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
7908         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
7909         (LIB2FUNCS_EXTRA): Remove.
7910         (TARGET_LIBGCC2_CFLAGS): Remove.
7911         * config/rs6000/t-aix52: Likewise
7912         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7913         $(srcdir)/config/rs6000/darwin-ldouble.c.
7914         (SHLIB_MAPFILES): Remove.
7915         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
7916         $(srcdir)/config/rs6000/darwin-ldouble.c.
7917         * config/rs6000/t-fprules-softfp: Move to
7918         ../libgcc/config/t-softfp-sfdf.
7919         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
7920         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
7921         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
7922         $(srcdir)/config/rs6000/darwin-ldouble.c.
7923         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
7924         * config/score/t-score-softfp: Remove.
7925         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
7926         soft-fp/t-softfp from tmake_file.
7927         (arm*-*-uclinux*): Likewise.
7928         (arm*-*-ecos-elf): Likewise.
7929         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
7930         (arm*-*-rtems*): Likewise.
7931         (arm*-*-elf): Likewise.
7932         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
7933         tmake_file.
7934         (moxie-*-uclinux*): Likewise.
7935         (moxie-*-rtems*): Likewise.
7936         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
7937         tmake_file.
7938         (lm32-*-rtems*): Likewise.
7939         (lm32-*-uclinux*): Likewise.
7940         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
7941         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7942         (powerpc-*-linux*, powerpc64-*-linux*): Remove
7943         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7944         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
7945         tmake_file.
7946         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
7947         tmake_file.
7948         (tic6x-*-uclinux): Likewise.
7949         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
7950         soft-fp/t-softfp from tmake_file.
7951         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
7952         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
7953         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
7954         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7955         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
7956
7957 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7958
7959         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
7960         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
7961         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
7962         TPBIT, TPBIT_FUNCS.
7963         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
7964         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
7965         Remove.
7966         * config/arm/t-vxworks: Likewise.
7967         * config/arm/t-wince-pe: Likewise.
7968         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
7969         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7970         * config/bfin/t-bfin-elf: Likewise.
7971         * config/bfin/t-bfin-linux: Likewise.
7972         * config/bfin/t-bfin-uclinux: Likewise.
7973         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
7974         Remove.
7975         * config/fr30/t-fr30: Likewise.
7976         * config/frv/t-frv: Likewise.
7977         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
7978         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7979         * config/m32c/t-m32c: Likewise.
7980         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
7981         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7982         * config/mcore/t-mcore: Likewise.
7983         * config/mep/t-mep: Likewise.
7984         * config/microblaze/t-microblaze: Likewise.
7985         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
7986         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7987         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
7988         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7989         * config/mn10300/t-linux: Remove.
7990         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7991         * config/pdp11/t-pdp11: Likewise.
7992         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
7993         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
7994         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7995         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
7996         * config/rs6000/t-aix52: Likewise.
7997         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7998         $(srcdir)/config/rs6000/ppc64-fp.c.
7999         * config/rs6000/t-fprules-fpbit: Remove.
8000         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
8001         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8002         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
8003         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8004         * config/sparc/t-elf: Likewise.
8005         * config/sparc/t-leon: Likewise.
8006         * config/sparc/t-leon3: Likewise.
8007         * config/spu/t-spu-elf: Likewise.
8008         (DPBIT_FUNCS): Remove.
8009         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
8010         * config/v850/t-v850: Likewise.
8011         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
8012         (avr-*-*): Likewise.
8013         (h8300-*-rtems*): Set libgcc_tm_file.
8014         (h8300-*-elf*): Likewise.
8015         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
8016         tmake_file.
8017         (powerpc-*-eabisim*): Likewise.
8018         (powerpc-*-elf*): Likewise.
8019         (powerpc-*-eabialtivec*): Likewise.
8020         (powerpc-xilinx-eabi*): Likewise.
8021         (powerpc-*-eabi*): Likewise.
8022         (powerpc-*-rtems*): Likewise.
8023         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
8024         (powerpcle-*-elf*): Likewise.
8025         (powerpcle-*-eabisim*): Likewise.
8026         (powerpcle-*-eabi*): Likewise.
8027         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
8028         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
8029         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
8030         Remove.
8031
8032 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8033
8034         * Makefile.in (UNWIND_H): Remove.
8035         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
8036         ../libgcc/Makefile.in.
8037         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
8038         (LIBUNWINDDEP): Remove.
8039         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
8040         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
8041         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
8042         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
8043         Don't copy $(UNWIND_H).
8044         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
8045         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
8046         * aclocal.m4: Regenerate.
8047         * configure: Regenerate.
8048         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
8049         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
8050         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
8051         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
8052         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
8053         * config/arm/libunwind.S, config/arm/pr-support.c,
8054         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
8055         ../libgcc/config/arm.
8056         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
8057         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
8058         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
8059         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
8060         ($(T)frvend$(objext)): Likewise.
8061         * config/ia64/t-glibc (LIB2ADDEH): Remove.
8062         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
8063         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
8064         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
8065         ../libgcc/config/ia64.
8066         * config/ia64/t-hpux (LIB2ADDEH): Remove.
8067         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
8068         * config/ia64/t-vms (LIB2ADDEH): Remove.
8069         * config/ia64/vms.h (UNW_IVMS_MODE,
8070         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
8071         * config/picochip/t-picochip (LIB2ADDEH): Remove.
8072         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
8073         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
8074         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
8075         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
8076         $(srcdir)/../libgcc to refer to unwinder sources.
8077         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
8078         * config/t-darwin (LIB2ADDEH): Remove.
8079         * config/t-freebsd (LIB2ADDEH): Remove.
8080         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
8081         * config/t-libunwind-elf: Move to ../libgcc/config.
8082         * config/t-linux (LIB2ADDEH): Remove.
8083         * config/t-sol2 (LIB2ADDEH): Remove.
8084         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
8085         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
8086
8087 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
8088
8089         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
8090
8091         * doc/invoke.texi: Document core-avx-i.
8092
8093 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8094
8095         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
8096
8097 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
8098
8099         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
8100         result of multiple results reduction when extracting the final
8101         value using scalar code.
8102
8103 2011-08-05  Richard Guenther  <rguenther@suse.de>
8104
8105         PR tree-optimization/49984
8106         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
8107
8108 2011-08-05  Richard Guenther  <rguenther@suse.de>
8109
8110         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
8111         return true for constant integer ranges.
8112         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
8113         BIT_IOR_EXPR handling.
8114
8115 2011-08-04  Kai Tietz  <ktietz@redhat.com>
8116
8117         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
8118         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
8119
8120 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
8121
8122         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
8123         pattern def statement, and its access macro.
8124         (NUM_PATTERNS): Set to 5.
8125         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8126         pattern def statement.
8127         (vect_transform_loop): Likewise.
8128         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
8129         function vect_recog_over_widening_pattern ().
8130         (vect_operation_fits_smaller_type): New function.
8131         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
8132         Likewise.
8133         (vect_pattern_recog_1): Move the code that marks pattern
8134         statements to vect_mark_pattern_stmts (), and call it.  Update
8135         documentation.
8136         * tree-vect-stmts.c (vect_supportable_shift): New function.
8137         (vect_analyze_stmt): Handle pattern def statement.
8138         (new_stmt_vec_info): Initialize pattern def statement.
8139
8140 2011-08-04  Richard Henderson  <rth@redhat.com>
8141
8142         PR target/49964
8143         * config/i386/i386.c (ix86_expand_call): Don't create nested
8144         PARALLELs for TARGET_VZEROUPPER.
8145         (ix86_split_call_vzeroupper): Fix extraction of the original call.
8146         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
8147         recognize nested PARALLELs.
8148         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
8149         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
8150         *sibcall_value_pop_vzeroupper): Likewise.
8151
8152 2011-08-04  Richard Henderson  <rth@redhat.com>
8153
8154         PR middle-end/49968
8155         * calls.c (expand_call): Use fixup_args_size_notes for
8156         emit_stack_restore.
8157         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
8158         in non-standard modes.
8159
8160 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
8161
8162         * gcc.c (self_spec): New variable.
8163         (static_specs): Add self_spec.
8164         (main): Call do_self_spec on "self_spec" specs after reading
8165         user specs files.  Move compare_debug handling right after that.
8166
8167 2011-08-04  Richard Guenther  <rguenther@suse.de>
8168
8169         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
8170         (value_range_nonnegative_p): New function.
8171         (ssa_name_nonnegative_p): Use it.
8172         (value_range_constant_singleton): New function.
8173         (op_with_constant_singleton_value_range): Use it.
8174         (extract_range_from_binary_expr_1): New function, split out from ...
8175         (extract_range_from_binary_expr): ... this.  Remove fallback
8176         constant folding done here.
8177
8178 2011-08-04  Richard Guenther  <rguenther@suse.de>
8179
8180         PR tree-optimization/49806
8181         * tree-vrp.c (op_with_boolean_value_range_p): New function.
8182         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
8183         a new statement for a final conversion to bool.
8184
8185 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
8186
8187         * gengtype-state.c: Include "bconfig.h" if
8188         GENERATOR_FILE is defined, "config.h" otherwise.
8189         * gengtype.c: Likewise.
8190         * gengtype-lex.l: Likewise.
8191         * gengtype-parse.c: Likewise.
8192         * Makefile.in (gengtype-lex.o-warn): New variable.
8193         (plugin_resourcesdir): Likewise.
8194         (plugin_bindir): Likewise.
8195         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
8196         (MOSTLYCLEANFILES): Add gengtype$(exeext).
8197         (native): Depend on gengtype$(exeext) is $enable_plugin
8198         is set to "yes".
8199         (gtype.state): Depend on s-gtype. Use temporary file.
8200         (gengtype-lex.o): New rule.
8201         (gengtype-parse.o): Likewise.
8202         (gengtype-state.o): Likewise.
8203         (gengtype$(exeext)): Likewise.
8204         (install-gengtype): Likewise.
8205         (gengtype.o): Likewise.
8206         (build/gengtype.o): Depend on version.h.
8207         (build/gengtype-state): Depend on double-int.h, version.h,
8208         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
8209         (install-plugin): Depend on install-gengtype.
8210
8211 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
8212
8213         PR middle-end/49905
8214         * tree.h (init_attributes): New prototype.
8215         * attribs.c (init_attributes): No longer static.
8216
8217 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8218
8219         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
8220         maybe_suffix.
8221
8222 2011-08-03   David Li  <davidxl@google.com>
8223
8224         * tree-optimize.c (execute_fixup_cfg): Fix up entry
8225         outgoing edge counts after inlining.
8226
8227 2011-08-03   David Li  <davidxl@google.com>
8228
8229         * profile.c (compute_branch_probabilities): Compute
8230         function frequency after profile annotation.
8231
8232 2011-08-04  Alan Modra  <amodra@gmail.com>
8233
8234         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
8235         use_backchain_to_restore_sp initialisation.
8236         (rs6000_legitimate_offset_address_p): Simplify offset test.
8237
8238 2011-08-03  Richard Henderson  <rth@redhat.com>
8239
8240         * config/spu/spu.md: Use define_c_enum instead of define_constants.
8241         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
8242         (UNSPECV_NOP): New.
8243
8244 2011-08-03  Richard Henderson  <rth@redhat.com>
8245
8246         PR target/34888
8247         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
8248
8249 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
8250
8251         PR tree-optimization/49948
8252         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
8253
8254 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
8255
8256         * config/m32c/m32c.c (class_sizes): Remove.
8257         (reduce_class): Change arguments and return type to reg_class_t.
8258         Change type cc var to HARD_REG_SET. Change type best var to
8259         reg_class_t. Change type best_size var to unsigned int. Remove
8260         initialization class_sizes var. Use reg_class_size array instead
8261         of class_sizes. Use reg_class_contents array instead
8262         of class_contents.
8263
8264 2011-08-03  Richard Guenther  <rguenther@suse.de>
8265
8266         PR middle-end/49958
8267         * fold-const.c (fold_binary_loc): Only associate
8268         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
8269         overflow wraps.
8270
8271 2011-08-03  Alan Modra  <amodra@gmail.com>
8272
8273         PR rtl-optimization/49941
8274         * jump.c (mark_jump_label): Comment.
8275         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
8276         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
8277         (mark_used_flags): Don't mark RETURN.
8278
8279 2011-08-03  Richard Guenther  <rguenther@suse.de>
8280
8281         PR tree-optimization/49938
8282         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
8283         deal with a POLYNOMIAL_CHREC.
8284
8285 2011-08-03  Revital Eres  <revital.eres@linaro.org>
8286
8287         * modulo-sched.c (calculate_stage_count,
8288         calculate_must_precede_follow, get_sched_window,
8289         try_scheduling_node_in_cycle, remove_node_from_ps): Add
8290         declaration.
8291         (update_node_sched_params, set_must_precede_follow, optimize_sc):
8292         New functions.
8293         (reset_sched_times): Call update_node_sched_params.
8294         (sms_schedule): Call optimize_sc.
8295         (get_sched_window): Change function arguments.
8296         (sms_schedule_by_order): Update call to get_sched_window.
8297         Call set_must_precede_follow.
8298         (calculate_stage_count): Add function argument.
8299
8300 2011-08-02  Richard Henderson  <rth@redhat.com>
8301
8302         PR target/49864
8303         PR target/49879
8304         * reg-notes.def (REG_ARGS_SIZE): New.
8305         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
8306         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
8307         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
8308         different stack levels.
8309         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
8310         (maybe_move_args_size_note): New.
8311         (combine_stack_adjustments_for_block): Use it.
8312         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
8313         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
8314         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
8315         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
8316         (cur_cfa): New.
8317         (queued_args_size): Remove.
8318         (add_cfi_args_size): Assert size is non-negative.
8319         (stack_adjust_offset, dwarf2out_args_size): Remove.
8320         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
8321         (notice_args_size, notice_eh_throw): New.
8322         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
8323         (dwarf2out_frame_debug_adjust_cfa): Likewise.
8324         (dwarf2out_frame_debug_cfa_offset): Likewise.
8325         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
8326         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
8327         (change_cfi_row): Don't emit args_size.
8328         (maybe_record_trace_start_abnormal): Split out from ...
8329         (maybe_record_trace_start): Here.  Set args_size_undefined.
8330         (create_trace_edges): Update to match.
8331         (scan_trace): Handle REG_ARGS_SIZE.
8332         (connect_traces): Connect args_size between EH insns.
8333         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
8334         * explow.c (suppress_reg_args_size): New.
8335         (adjust_stack_1): Split out from ...
8336         (adjust_stack): ... here.
8337         (anti_adjust_stack): Use it.
8338         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
8339         * expr.c (mem_autoinc_base): New.
8340         (fixup_args_size_notes): New.
8341         (emit_single_push_insn_1): Rename from emit_single_push_insn.
8342         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
8343         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
8344         * reload1.c (reload_as_needed): Likewise.
8345         * rtl.h (fixup_args_size_notes): Declare.
8346
8347 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
8348
8349         PR bootstrap/49914
8350         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
8351         of abs.
8352         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
8353         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
8354
8355 2011-08-02  Richard Henderson  <rth@redhat.com>
8356
8357         * config/h8300/h8300.c (push, pop): Return the insn.
8358         (h8300_swap_into_er6): Generate correct unwind info.
8359         (h8300_swap_out_of_er6): Likewise.
8360         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
8361         complex cfa expression.
8362         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8363
8364 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
8365
8366         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8367
8368 2011-08-02  Richard Henderson  <rth@redhat.com>
8369
8370         PR target/49878
8371         * config/h8300/h8300.c (h8300_move_ok): New.
8372         * config/h8300/h8300-protos.h: Declare it.
8373         * config/h8300/h8300.md (P): New mode iterator.
8374         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
8375         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
8376         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
8377         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
8378         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
8379         and pushqi1_h8300hs_normal; use PRE_MODIFY and
8380         register_no_sp_elim_operand.
8381         (*pushhi1_h8300hs_<P>): Similarly.
8382         (pushqi1, pushhi1, pushhi1_h8300): Remove.
8383         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
8384
8385 2011-08-02  Richard Henderson  <rth@redhat.com>
8386
8387         PR target/49881
8388         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
8389
8390 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
8391
8392         * c-parser.c (enum c_parser_prec): New enum, moved from within
8393         c_parser_binary_expression.
8394         (c_parser_binary_expression): Add PREC argument.  Stop parsing
8395         if operator has lower or equal precedence than PREC.
8396         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
8397         callers.
8398         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
8399         Adjust c_finish_omp_atomic caller.
8400         (c_parser_omp_taskyield): New function.
8401         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
8402         (c_parser_omp_clause_name): Handle final and mergeable clauses.
8403         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
8404         functions.
8405         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
8406         and PRAGMA_OMP_CLAUSE_MERGEABLE.
8407         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
8408         (c_parser_omp_clause_reduction): Handle min and max.
8409         * c-typeck.c (c_finish_omp_clauses): Don't complain about
8410         const qualified predetermined vars in firstprivate clause.
8411         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8412         Handle MIN_EXPR and MAX_EXPR.
8413         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
8414         and OMP_CLAUSE_MERGEABLE.
8415         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
8416         and OMP_ATOMIC_CAPTURE_NEW.
8417         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
8418         OMP_CLAUSE_MERGEABLE.
8419         (omp_clause_code_name): Likewise.
8420         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8421         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
8422         and OMP_CLAUSE_MERGEABLE.
8423         (OMP_CLAUSE_FINAL_EXPR): Define.
8424         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
8425         OMP_CLAUSE_MERGEABLE.
8426         (expand_task_call): Likewise.
8427         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
8428         (expand_omp_atomic_fetch_op): Handle cases where old or new
8429         value is needed afterwards.
8430         (expand_omp_atomic): Call expand_omp_atomic_load resp.
8431         expand_omp_atomic_store.
8432         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
8433         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
8434         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8435         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8436         * tree-nested.c (convert_nonlocal_omp_clauses,
8437         convert_local_omp_clauses): Likewise.
8438         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
8439         OMP_ATOMIC_CAPTURE_NEW): New.
8440         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
8441         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
8442         New inlines.
8443         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
8444         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
8445         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8446
8447 2011-08-02  Kai Tietz  <ktietz@redhat.com>
8448
8449         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
8450         boolean-type.
8451         (ssa_forward_propagate_and_combine): Interprete result of
8452         forward_propagate_comparison.
8453         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
8454         boolean-typed operands for comparisons.
8455
8456 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
8457
8458         * config/avr/libgcc.S: Gather related function in the
8459         same input section.
8460         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
8461         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
8462         references.
8463         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
8464         __udivmodsi4, __divmodsi4, __prologue_saves__,
8465         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
8466         __do_copy_data, __do_clear_bss, __do_global_ctors,
8467         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
8468
8469 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
8470
8471         PR target/47766
8472         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
8473         (stack_protect_test): The pattern compares ptr_mode value.
8474
8475 2011-08-02  Alan Modra  <amodra@gmail.com>
8476
8477         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
8478         note for save_LR_around_toc_setup sequence.
8479
8480 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8481
8482         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
8483
8484 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
8485             Joseph Myers  <joseph@codesourcery.com>
8486
8487         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
8488         * hwint.c: Include diagnostic-core.h.
8489         (abs_hwi): New.
8490         (gcd): Moved here...
8491         (pos_mul_hwi): New.
8492         (mul_hwi): New.
8493         (least_common_multiple): Moved here...
8494         * hwint.h (gcd): ... from here.
8495         (least_common_multiple): ... from here.
8496         (HOST_WIDE_INT_MIN): New.
8497         (HOST_WIDE_INT_MAX): New.
8498         (abs_hwi): Declared.
8499         (gcd): Declared.
8500         (pos_mul_hwi): Declared.
8501         (mul_hwi): Declared.
8502         (least_common_multiple): Declared.
8503         * omega.c (check_pos_mul): Removed.
8504         (check_mul): Removed.
8505         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
8506         mul_hwi instead of check_mul.
8507
8508 2011-08-01  Richard Henderson  <rth@redhat.com>
8509
8510         PR target/49881
8511         * config/avr/avr.h (PUSH_ROUNDING): New.
8512         * config/avr/avr.md (pushqi1): Rename from *pushqi.
8513         (*pushhi, *pushsi, *pushsf): Remove.
8514         (MPUSH): New mode iterator.
8515         (push<MPUSH>1): New expander.
8516
8517 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
8518
8519         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
8520         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
8521         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
8522         mmix_preferred_output_reload_class): Remove.
8523         * config/mmix/mmix.c (mmix_preferred_reload_class,
8524         mmix_preferred_output_reload_class): Make static. Change rclass
8525         argument and return type to reg_class_t.
8526         (TARGET_PREFERRED_RELOAD_CLASS,
8527         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8528
8529 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
8530
8531         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
8532         handling.
8533
8534 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8535
8536         PR target/47766
8537         * config/i386/i386.md (PTR): New.
8538         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
8539         (stack_protect_test): Likewise.
8540         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
8541         (stack_tls_protect_set_<mode>): Likewise.
8542         (stack_tls_protect_test_<mode>): Likewise.
8543
8544 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
8545
8546         PR target/49927
8547         * config/i386/i386.c (ix86_address_subreg_operand): New.
8548         (ix86_decompose_address): Use ix86_address_subreg_operand.
8549         (ix86_legitimate_address_p): Do not assert that subregs satisfy
8550         register_no_elim_operand in DImode.
8551
8552 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
8553
8554         PR tree-optimization/49926
8555         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
8556         in a chain doesn't have uses both inside and outside the loop.
8557
8558 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
8559
8560         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
8561         * config/avr/avr-devices.c (avr_mcu_types): Use it.
8562         * config/avr/avr-mcus.def (AVR_MCU): Use it.
8563         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
8564         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
8565         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
8566         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
8567         to detect if XJMP must not be skipped.
8568
8569 2011-08-02  Alan Modra  <amodra@gmail.com>
8570
8571         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
8572         Delete.
8573         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
8574         (rs6000_emit_prologue): Don't prematurely return when
8575         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
8576         save_toc_in_prologue case.
8577         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
8578         calls_alloca.
8579
8580 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
8581
8582         * config/avr/avr-devices.c: Delete SVN property svn:executable.
8583         * config/avr/predicates.md: Ditto.
8584         * config/avr/driver-avr.c: Ditto.
8585         * config/avr/genopt.sh: Set SVN property svn:executable to *.
8586
8587 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8588
8589         * calls.c (emit_library_call_value_1): Declare size only if
8590         BLOCK_REG_PADDING is defined.
8591
8592 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
8593
8594         PR target/49547
8595         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
8596         (x86_64-*-*): Likewise.
8597         * config/i386/i386.opt (mlzcnt): New.
8598         * config/i386/abmintrin.h: File removed.
8599         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
8600         * config/i386/lzcntintrin.h: ... here.  New file.
8601         (__lzcnt): Rename to ...
8602         (__lzcnt32): ... this.
8603         * config/i386/bmiintrin.h (head): Update copyright year.
8604         (__lzcnt_u16): Removed.
8605         (__lzcnt_u32): Likewise.
8606         (__lzcnt_u64): Likewise.
8607         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
8608         is defined, remove abmintrin.h.
8609         * config/i386/cpuid.h (bit_LZCNT): New.
8610         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8611         LZCNT feature.
8612         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8613         __LZCNT__ if needed.
8614         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
8615         (ix86_option_override_internal): Handle LZCNT option.
8616         (ix86_valid_target_attribute_inner_p): Likewise.
8617         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
8618         * config/i386/i386.h (TARGET_LZCNT): New.
8619         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
8620         * config/i386/i386.md (clz<mode>2): Update insn constraint.
8621         (clz<mode>2_lzcnt): Likewise.
8622         * doc/invoke.texi: Mention -mlzcnt option.
8623         * doc/extend.texi: Likewise.
8624
8625 2011-08-01  Julian Brown  <julian@codesourcery.com>
8626
8627         * configure.ac (fixed-point): Add ARM support.
8628         * configure: Regenerate.
8629         * config/arm/arm.c (arm_fixed_mode_set): New struct.
8630         (arm_set_fixed_optab_libfunc): New.
8631         (arm_set_fixed_conv_libfunc): New.
8632         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
8633         ARM-specific names.
8634         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
8635         return values in SImode.
8636         (arm_return_in_msb): Return fixed-point types in the msb.
8637         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
8638         upwards.
8639         (arm_scalar_mode_supported_p): Support fixed-point modes.
8640         (arm_vector_mode_supported_p): Support vector fixed-point modes.
8641         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
8642         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
8643         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
8644         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
8645         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
8646         New mode iterators.
8647         (qaddsub_suf): New mode attribute.
8648         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
8649         vector modes.
8650         * config/arm/predicates.md (sat_shift_operator): New predicate.
8651         * config/arm/arm-fixed.md: New.
8652         * config/arm/arm.md: Include arm-fixed.md.
8653         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
8654
8655 2011-08-01  Julian Brown  <julian@codesourcery.com>
8656
8657         * calls.c (emit_library_call_value_1): Support padding for libcall
8658         arguments and return values.
8659         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
8660         downwards in big-endian mode.
8661
8662 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8663
8664         PR debug/49887
8665         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
8666         * config/sol2-protos.h: Likewise.
8667         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
8668         solaris_code_end.
8669         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
8670         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
8671         solaris_file_end.
8672         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
8673
8674 2011-08-01  Julian Brown  <julian@codesourcery.com>
8675
8676         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
8677
8678 2011-08-01  Julian Brown  <julian@codesourcery.com>
8679
8680         * final.c (output_addr_const): Print fixed-point constants as
8681         decimal not hex.
8682
8683 2011-08-01  Richard Guenther  <rguenther@suse.de>
8684
8685         * stor-layout.c (initialize_sizetypes): Properly sign-extend
8686         bitsiztype TYPE_MAX_VALUE.
8687
8688 2011-08-01  Julian Brown  <julian@codesourcery.com>
8689
8690         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
8691         comparison helpers.
8692
8693 2011-07-31  Richard Henderson  <rth@redhat.com>
8694
8695         * config/h8300/crti.asm: Add flags to .section directive.
8696         * config/h8300/crtn.asm: Likewise.
8697
8698 2011-07-31  Richard Henderson  <rth@redhat.com>
8699
8700         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
8701         * tree.c (build_common_tree_nodes): Likewise.
8702
8703 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
8704
8705         PR target/49880
8706         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
8707         (divsi3_i1): Likewise.
8708
8709 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8710
8711         PR tree-optimization/49749
8712         * tree-ssa-reassoc.c (get_rank): New forward declaration.
8713         (PHI_LOOP_BIAS): New macro.
8714         (phi_rank): New function.
8715         (loop_carried_phi): Likewise.
8716         (propagate_rank): Likewise.
8717         (get_rank): Add calls to phi_rank and propagate_rank.
8718
8719 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8720
8721         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
8722         of TARGET_64BIT.
8723         (PTRDIFF_TYPE): Likewise.
8724
8725 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
8726
8727         PR target/49920
8728         * config/i386/i386.md (strset): Do not expand strset_singleop
8729         when %eax or $edi are fixed.
8730         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
8731         (*strsetsi_1): Ditto.
8732         (*strsethi_1): Ditto.
8733         (*strsetqi_1): Ditto.
8734         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
8735         (*rep_stossi): Ditto.
8736         (*rep_stosqi): Ditto.
8737         (*strlenqi_1): Ditto.
8738         (cmpstrnsi): Also fail when %ecx is fixed.
8739         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
8740         (*cmpstrnqi_1): Ditto.
8741         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
8742         (*strmovsi_1): Ditto.
8743         (*strmovhi_1): Ditto.
8744         (*strmovqi_1): Ditto.
8745         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
8746         (*rep_movsi): Ditto.
8747         (*rep_movqi): Ditto.
8748
8749 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
8750
8751         PR target/47908
8752         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
8753         Disable instruction scheduling for non-ColdFire targets.
8754         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8755
8756 2011-07-31  Revital Eres  <revital.eres@linaro.org>
8757
8758         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
8759         of anti-dep edge from a branch.
8760         (add_cross_iteration_register_deps): Create anti-dep edge from
8761         a branch.
8762
8763 2011-07-31  Revital Eres  <revital.eres@linaro.org>
8764
8765         * modulo-sched.c: Change comment.
8766         (reset_sched_times): Fix print message.
8767         (print_partial_schedule): Add print info.
8768
8769 2011-07-31  Tom de Vries  <tom@codesourcery.com>
8770
8771         PR middle-end/43513
8772         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
8773         get_object_alignment and TYPE_ALIGN.
8774
8775 2011-07-30  Tom de Vries  <tom@codesourcery.com>
8776
8777         PR middle-end/43513
8778         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
8779         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
8780
8781 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8782
8783         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
8784         <sys/sbd.h>.
8785         (cpu_types): New array.
8786         (cputype): New function.
8787         (host_detect_local_cpu): Only define buf, f if !__sgi__.
8788         Use scaninvent instead of /proc/cpuinfo if __sgi__.
8789         * config.host: Also use driver-native.o, mips/x-native on
8790         mips-sgi-irix*.
8791         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
8792         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
8793         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
8794
8795 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
8796
8797         PR middle-end/49897
8798         PR middle-end/49898
8799         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
8800         in nested parallel and outer is a gimple_reg, mark it as addressable
8801         and set its bit in task_shared_vars bitmap too.
8802
8803 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
8804
8805         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
8806
8807 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8808
8809         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
8810         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
8811         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
8812         AMASK_LOCKPFTCHOK): Define.
8813         (host_detect_local_cpu): Remove buf, f, cpu_names.
8814         Define cpu_types, implver, amask.
8815         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
8816         native CPU.
8817         * config.host: Also use driver-alpha.o, alpha/x-alpha on
8818         alpha*-dec-osf*.
8819         * config/alpha/osf5.h [__alpha__ || __alpha]
8820         (host_detect_local_cpu): Declare.
8821         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
8822         (DRIVER_SELF_SPECS): Define.
8823
8824 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
8825
8826         PR target/47715
8827         * config/i386/i386.md (*load_tp_x32): New.
8828         (*load_tp_x32_zext): Ditto.
8829         (*add_tp_x32): Ditto.
8830         (*add_tp_x32_zext): Ditto.
8831         (*load_tp_<mode>): Disable for TARGET_X32 targets.
8832         (*add_tp_<mode>): Ditto.
8833         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
8834         ptr_mode and convert to Pmode if needed.
8835
8836 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
8837
8838         PR target/49687
8839         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
8840         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
8841         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
8842         Add X to register footprint: Clobber r26/r27.
8843
8844 2011-07-29  Richard Guenther  <rguenther@suse.de>
8845
8846         * builtins.c (fold_builtin_signbit): Build the comparison
8847         with a proper type.
8848
8849 2011-07-29  Richard Guenther  <rguenther@suse.de>
8850
8851         PR tree-optimization/49893
8852         * tree-predcom.c (suitable_reference_p): Volatile references
8853         are not suitable.
8854
8855 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
8856
8857         PR target/49313
8858         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8859         (__ctzsi2): Result for 0 may be undefined.
8860         (__ctzhi2): Result for 0 may be undefined.
8861         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8862         (__popcountsi2): Ditto. And don't clobber r26.
8863         (__popcountdi2): Ditto. And don't clobber r27.
8864         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8865         (parityhi2): New expand.
8866         (paritysi2): New expand.
8867         (popcounthi2): New expand.
8868         (popcountsi2): New expand.
8869         (clzhi2): New expand.
8870         (clzsi2): New expand.
8871         (ctzhi2): New expand.
8872         (ctzsi2): New expand.
8873         (ffshi2): New expand.
8874         (ffssi2): New expand.
8875         (copysignsf3): New insn.
8876         (bswapsi2): New expand.
8877         (*parityhi2.libgcc): New insn.
8878         (*parityqihi2.libgcc): New insn.
8879         (*paritysihi2.libgcc): New insn.
8880         (*popcounthi2.libgcc): New insn.
8881         (*popcountsi2.libgcc): New insn.
8882         (*popcountqi2.libgcc): New insn.
8883         (*popcountqihi2.libgcc): New insn-and-split.
8884         (*clzhi2.libgcc): New insn.
8885         (*clzsihi2.libgcc): New insn.
8886         (*ctzhi2.libgcc): New insn.
8887         (*ctzsihi2.libgcc): New insn.
8888         (*ffshi2.libgcc): New insn.
8889         (*ffssihi2.libgcc): New insn.
8890         (*bswapsi2.libgcc): New insn.
8891
8892 2011-07-29  Richard Guenther  <rguenther@suse.de>
8893
8894         * tree-vrp.c (get_value_range): Only set parameter default
8895         definitions to varying, leave others at undefined.
8896         (extract_range_from_binary_expr): Fix undefined handling.
8897         (vrp_visit_phi_node): Handle merged undefined state.
8898
8899 2011-07-29  Wei Guozhi  <carrot@google.com>
8900
8901         PR rtl-optimization/49799
8902         * combine.c (make_compound_operation): Check if the bit field is valid
8903         before change it to bit field extraction.
8904
8905 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
8906
8907         PR rtl-optimization/49891
8908         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
8909         newly created returnjumps.
8910
8911 2011-07-28  DJ Delorie  <dj@redhat.com>
8912
8913         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
8914         local frame in a naked function, and produce a suitable error for
8915         that specific case.
8916
8917         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
8918         registers to be reloaded in HI classes when the target is HI.
8919
8920 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8921
8922         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
8923         bound_one, bound_two.
8924
8925 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8926
8927         PR middle-end/48648
8928         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
8929         CLAST assignments.
8930         (translate_clast): Same.
8931         (translate_clast_assignment): New.
8932
8933 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8934
8935         PR tree-optimization/49876
8936         * sese.c (rename_uses): Do not return false on gloog_error: set
8937         the new_expr to integer_zero_node and continue code generation.
8938         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
8939
8940 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
8941
8942         PR debug/49846
8943         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
8944         arguments also check if they aren't initialized with a MODE_INT
8945         mode of the same size.
8946
8947 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
8948
8949         * expr.c (get_bit_range): Handle *MEM_REF's.
8950
8951 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
8952
8953         * rtlanal.c (tablejump_p): False for returns.
8954         * reorg.c (first_active_target_insn): New static function.
8955         (find_end_label): Set JUMP_LABEL for a new returnjump.
8956         (optimize_skip, get_jump_flags, rare_destination,
8957         mostly_true_jump, get_branch_condition,
8958         steal_delay_list_from_target, own_thread_p,
8959         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
8960         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
8961         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
8962         * jump.c (delete_related_insns): Likewise.
8963         (jump_to_label_p): New function.
8964         (redirect_target): New static function.
8965         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
8966         (redirect_jump_1): Assert that the new label is nonnull.
8967         (redirect_jump): Likewise.
8968         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
8969         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
8970         exit block.
8971         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
8972         changed.  Ensure that the right label is passed to redirect_jump.
8973         * function.c (emit_return_into_block,
8974         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
8975         ret_rtx in their JUMP_LABEL.
8976         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
8977         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
8978         pass ret_rtx as label.
8979         * cfglayout.c (fixup_reorder_chain): Use
8980         force_nonfallthru_and_redirect rather than force_nonfallthru.
8981         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
8982         * rtl.h (ANY_RETURN_P): New macro.
8983         (jump_to_label_p): Declare.
8984         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
8985         JUMP_LABELs.
8986         (mark_target_live_regs): Likewise.
8987         * basic-block.h (force_nonfallthru_and_redirect): Declare.
8988         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
8989         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
8990         alpha_tablejump_best_label): Remove functions.
8991         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
8992         alpha_tablejump_best_label): Remove declarations.
8993         * config/sh/sh.c (barrier_align, split_branches): Adjust for
8994         ret_rtx in JUMP_LABELs.
8995         * config/arm/arm.c (is_jump_table): Likewise.
8996
8997 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8998
8999         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
9000         special predicate.  Remove explicit mode checks.
9001
9002 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
9003
9004         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
9005         DW_AT_data_member_location containing just DW_OP_plus_uconst.
9006
9007         PR debug/49871
9008         * dwarf2out.c (size_of_die, value_format, output_die): Use
9009         DW_FORM_udata instead of DW_FORM_data[48] for
9010         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
9011
9012 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
9013
9014         * config/i386/i386.md (*tls_global_dynamic_64): Update
9015         length attribute.
9016
9017 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
9018
9019         PR target/47715
9020         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
9021         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
9022         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
9023         (tls_dynamic_gnu2_64): Ditto.
9024         (*tls_dynamic_gnu2_lea_64): Ditto.
9025         (*tls_dynamic_gnu2_call_64): Ditto.
9026         (*tls_dynamic_gnu2_combine_64): Ditto.
9027
9028 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
9029
9030         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
9031
9032 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
9033
9034         PR target/47364
9035         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
9036
9037 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9038
9039         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
9040         before the core constraints. Adjust attributes.
9041         ("*thumb2_movdf_vfp"): Likewise.
9042
9043 2011-07-28  Kai Tietz  <ktietz@redhat.com>
9044
9045         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
9046         (simplify_truth_ops_using_ranges): Likewise.
9047         (build_assert_expr_for): Likewise.
9048         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
9049         and handle BIT_NOT_EXPR for truth-operation.
9050
9051 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
9052
9053         PR target/49313
9054         Undo r176835 from trunk
9055         2011-07-27  Georg-Johann Lay
9056
9057 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
9058
9059         PR target/49687
9060         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
9061         Add _muluhisi3, _mulshisi3, _usmulhisi3.
9062         * config/avr/libgcc.S (__mulsi3): Rewrite.
9063         (__mulhisi3): Rewrite.
9064         (__umulhisi3): Rewrite.
9065         (__usmulhisi3): New.
9066         (__muluhisi3): New.
9067         (__mulshisi3): New.
9068         (__mulohisi3): New.
9069         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
9070         declare.
9071         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
9072         (pseudo_register_or_const_int_operand): New.
9073         (combine_pseudo_register_operand): New.
9074         (u16_operand): New.
9075         (s16_operand): New.
9076         (o16_operand): New.
9077         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
9078         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
9079         (any_extend, any_extend2): New code iterators.
9080         (extend_prefix): New code attribute.
9081         (mulsi3): Rewrite. Turn insn to expander.
9082         (mulhisi3): Ditto.
9083         (umulhisi3): Ditto.
9084         (usmulhisi3): New expander.
9085         (*mulsi3): New insn-and-split.
9086         (mulu<mode>si3): New insn-and-split.
9087         (muls<mode>si3): New insn-and-split.
9088         (mulohisi3): New insn-and-split.
9089         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
9090         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
9091         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
9092         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
9093         insn-and-split.
9094         (*mulsi3_call): Rewrite.
9095         (*mulhisi3_call): Rewrite.
9096         (*umulhisi3_call): Rewrite.
9097         (*usmulhisi3_call): New insn.
9098         (*muluhisi3_call): New insn.
9099         (*mulshisi3_call): New insn.
9100         (*mulohisi3_call): New insn.
9101         (extendqihi2): Use combine_pseudo_register_operand as predicate
9102         for operand 1.
9103         (extendqisi2): Ditto.
9104         (zero_extendqihi2): Ditto.
9105         (zero_extendqisi2): Ditto.
9106         (zero_extendhisi2): Ditto.
9107         (extendhisi2): Ditto. Don't early-clobber operand 0.
9108
9109 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
9110
9111         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
9112
9113 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
9114
9115         PR tree-optimization/49471
9116         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
9117         iv only when the largest type is unsigned.  Do not call
9118         lang_hooks.types.type_for_size.
9119
9120 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
9121
9122         PR middle-end/45450
9123         * graphite-poly.c (apply_poly_transforms): Disable legality check
9124         after an openscop read.
9125
9126 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
9127
9128         PR middle-end/47691
9129         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
9130         copy_bb_and_scalar_dependences.
9131         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
9132         (graphite_copy_stmts_from_block): Update call to rename_uses.
9133         (copy_bb_and_scalar_dependences): Update call to
9134         graphite_copy_stmts_from_block.
9135         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
9136
9137 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
9138
9139         PR target/49313
9140         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
9141         (__ctzsi2): Result for 0 may be undefined.
9142         (__ctzhi2): Result for 0 may be undefined.
9143         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
9144         (__popcountsi2): Ditto. And don't clobber r26.
9145         (__popcountdi2): Ditto. And don't clobber r27.
9146         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
9147         (parityhi2): New expand.
9148         (paritysi2): New expand.
9149         (popcounthi2): New expand.
9150         (popcountsi2): New expand.
9151         (clzhi2): New expand.
9152         (clzsi2): New expand.
9153         (ctzhi2): New expand.
9154         (ctzsi2): New expand.
9155         (ffshi2): New expand.
9156         (ffssi2): New expand.
9157         (copysignsf3): New insn.
9158         (bswapsi2): New expand.
9159         (*parityhi2.libgcc): New insn.
9160         (*parityqihi2.libgcc): New insn.
9161         (*paritysihi2.libgcc): New insn.
9162         (*popcounthi2.libgcc): New insn.
9163         (*popcountsi2.libgcc): New insn.
9164         (*popcountqi2.libgcc): New insn.
9165         (*popcountqihi2.libgcc): New insn-and-split.
9166         (*clzhi2.libgcc): New insn.
9167         (*clzsihi2.libgcc): New insn.
9168         (*ctzhi2.libgcc): New insn.
9169         (*ctzsihi2.libgcc): New insn.
9170         (*ffshi2.libgcc): New insn.
9171         (*ffssihi2.libgcc): New insn.
9172         (*bswapsi2.libgcc): New insn.
9173
9174 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
9175
9176         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
9177         the mode of symbolic_opreand RTXes.
9178
9179 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
9180
9181         * config/i386/predicates.md (x86_64_movabs_operand): Return false
9182         for pic_32bit_operand RTXes.
9183         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
9184         in DImode.
9185
9186 2011-07-27  Kai Tietz  <ktietz@redhat.com>
9187
9188         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
9189         for 32-bit, too.
9190         (ix86_handle_abi_attribute): Allow function attributes
9191         ms_abi/sysv_abi in 32-bit mode, too.
9192         * doc/extend.texi: Adjust attribute documentation.
9193
9194         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
9195         expression handling.
9196         (and_var_with_comparison_1): Likewise.
9197
9198 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
9199
9200         * params.h (ALLOW_STORE_DATA_RACES): New.
9201         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
9202         * Makefile.in (expr.o): Depend on PARAMS_H.
9203         * machmode.h (get_best_mode): Add argument.
9204         * fold-const.c (optimize_bit_field_compare): Add argument to
9205         get_best_mode.
9206         (fold_truthop): Same.
9207         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
9208         * expr.c (emit_group_store): Same.
9209         (copy_blkmode_from_reg): Same.
9210         (write_complex_part): Same.
9211         (optimize_bitfield_assignment_op): Add argument.
9212         Add argument to get_best_mode.
9213         (get_bit_range): New.
9214         (expand_assignment): Calculate maxbits and pass it down accordingly.
9215         (store_field): New argument.
9216         (expand_expr_real_2): New argument to store_field.  Include params.h.
9217         * expr.h (store_bit_field): New argument.
9218         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
9219         into account maxbits.
9220         * calls.c (store_unaligned_arguments_into_pseudos): New argument
9221         to store_bit_field.
9222         * expmed.c (store_bit_field_1): New argument.  Use it.
9223         (store_bit_field): Same.
9224         (store_fixed_bit_field): Same.
9225         (store_split_bit_field): Same.
9226         (extract_bit_field_1): Pass new argument to get_best_mode.
9227         (extract_bit_field): Same.
9228         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
9229         * doc/invoke.texi: Document parameter allow-store-data-races.
9230
9231 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
9232
9233         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
9234
9235 2011-07-27  Kai Tietz  <ktietz@redhat.com>
9236
9237         * tree-vrp.c (extract_range_from_binary_expr): Remove
9238         TRUTH-binary cases and add new bitwise-cases.
9239         (extract_range_from_assignment): Likewise.
9240         (register_edge_assert_for_1): Likeiwise.
9241         (register_edge_assert_for): Likewise.
9242         (simplify_truth_ops_using_ranges): Likewise.
9243         (simplify_stmt_using_ranges): Likewise.
9244
9245 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
9246
9247         PR target/47372
9248         * config/i386/i386.c (ix86_delegitimize_address): Call
9249         simplify_gen_subreg for PIC with mode of x only if modes of
9250         x and orig_x are different.
9251
9252 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
9253
9254         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
9255         to GC allocated copy of the string.
9256         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
9257         before .debug_line, not after it.
9258
9259 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
9260
9261         PR middle-end/47046
9262         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
9263         evolution_function_is_affine_p on CHREC_RIGHT.
9264
9265 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
9266
9267         * tree-data-ref.c (max_stmt_executions_tree): Do not call
9268         lang_hooks.types.type_for_size.
9269
9270 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
9271
9272         PR middle-end/47653
9273         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
9274         loops using wrapping semantics.
9275
9276 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
9277
9278         PR middle-end/48805
9279         * tree-scalar-evolution.c (instantiate_scev_r): Return
9280         chrec_dont_know for ADDR_EXPR.
9281
9282 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
9283             H.J. Lu  <hongjiu.lu@intel.com>
9284
9285         PR target/47369
9286         PR target/49853
9287         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
9288         if legitimize_tls_address returned operand in wrong mode. Allow
9289         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
9290         if legitimize_pic_address returned operand in wrong mode.
9291
9292 2011-07-26  Martin Jambor  <mjambor@suse.cz>
9293
9294         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
9295         return false for invariants.
9296
9297 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
9298
9299         * config/i386/i386.md (add->lea splitter): Implement using SWI
9300         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
9301         (add->lea zext splitter): Change operand 2 predicate to
9302         x86_64_nonmemory_operand.
9303
9304 2011-07-26  Richard Guenther  <rguenther@suse.de>
9305
9306         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
9307         frequency makes everything hot.
9308
9309 2011-07-26  Richard Guenther  <rguenther@suse.de>
9310
9311         PR tree-optimization/49840
9312         * tree-vrp.c (range_fits_type_p): Properly handle full
9313         double-int precision.
9314
9315 2011-07-26  Martin Jambor  <mjambor@suse.cz>
9316
9317         PR bootstrap/49786
9318         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
9319         counts.
9320         (update_specialized_profile): Likewise.
9321
9322 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
9323             H.J. Lu  <hongjiu.lu@intel.com>
9324
9325         PR target/47381
9326         PR target/49832
9327         PR target/49833
9328         * config/i386/i386.md (i): Change SImode attribute to "e".
9329         (g): Change SImode attribute to "rme".
9330         (di): Change SImode attribute to "nF".
9331         (general_operand): Change SImode attribute to x86_64_general_operand.
9332         (general_szext_operand): Change SImode attribute to
9333         x86_64_szext_general_operand.
9334         (immediate_operand): Change SImode attribute to
9335         x86_64_immediate_operand.
9336         (nonmemory_operand): Change SImode attribute to
9337         x86_64_nonmemory_operand.
9338         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
9339         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
9340         (*lea_1): Use SWI48 mode iterator.
9341         (*lea_1_zext): New insn pattern.
9342         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
9343         (*bt<mode>): Ditto.
9344         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
9345         Update operand constraints.
9346         (addsi_1_zext): Ditto.
9347         (*add<mode>2): Ditto.
9348         (*addsi_3_zext): Ditto.
9349         (*subsi_1_zext): Ditto.
9350         (*subsi_2_zext): Ditto.
9351         (*subsi_3_zext): Ditto.
9352         (*addsi3_carry_zext): Ditto.
9353         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
9354         (*mulsi3_1_zext): Ditto.
9355         (*andsi_1): Ditto.
9356         (*andsi_1_zext): Ditto.
9357         (*andsi_2_zext): Ditto.
9358         (*<any_or:code>si_1_zext): Ditto.
9359         (*<any_or:code>si_2_zext): Ditto.
9360         (*test<mode>_1): Use <general_operand> predicate for operand 1.
9361         (*and<mode>_2): Ditto.
9362         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
9363         (add->lea splitter): Check operand modes in insn constraint.  Extend
9364         operands less than SImode wide to SImode.
9365         (add->lea zext splitter): Do not extend input operands to DImode.
9366         (*lea_general_1): Handle only QImode and HImode operands.
9367         (*lea_general_2): Ditto.
9368         (*lea_general_3): Ditto.
9369         (*lea_general_1_zext): Remove.
9370         (*lea_general_2_zext): Ditto.
9371         (*lea_general_3_zext): Ditto.
9372         (*lea_general_4): Check operand modes in insn constraint.  Extend
9373         operands less than SImode wide to SImode.
9374         (ashift->lea splitter): Ditto.
9375         * config/i386/i386.c (ix86_print_operand_address): Print address
9376         registers with 'q' modifier on 64bit targets.
9377         * config/i386/predicates.md (pic_32bit_opreand): Define as special
9378         predicate.  Reject non-SI and non-DI modes.
9379
9380 2011-07-25  Andrew Pinski  <apinski@cavium.com>
9381
9382         PR tree-opt/49671
9383         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
9384         TREE_THIS_NOTRAP into the inner most MEM_REF.
9385         Always copy TREE_THIS_VOLATILE.
9386         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
9387         arguments are not volatile references.
9388
9389 2011-07-25  Richard Henderson  <rth@redhat.com>
9390
9391         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
9392         * final.c (final_scan_insn): Don't test for it.
9393         (rest_of_clean_state): Likewise.
9394
9395 2011-07-25  Richard Henderson  <rth@redhat.com>
9396
9397         PR debug/49841
9398         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
9399         (emit_frame_save): Likewise.
9400         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
9401         insn onto a dummy blockage insn after the join label.
9402
9403 2011-07-25  Richard Henderson  <rth@redhat.com>
9404
9405         * dwarf2cfi.c (dw_trace_info): Add ID member.
9406         (get_trace_index): Remove.  Change users to use ID member.
9407         (before_next_cfi_note): New.
9408         (connect_traces): Remove unreachable traces before the main loop.
9409         Look across one trace and generate remember/restore_state if needed.
9410
9411 2011-07-25  Richard Henderson  <rth@redhat.com>
9412
9413         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
9414
9415 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
9416
9417         * genattr.c (write_upcase, gen_attr <enum definition writing>):
9418         Move to ...
9419         * genattr-common.c ... here.
9420         (main): Call gen_attr.
9421         * optc-gen.awk: Make generated program include insn-attr-common.h .
9422         * Makefile.in (oprions.o): Depend on insn-attr-common.h
9423
9424 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
9425
9426         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9427         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9428         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
9429         m32c_print_operand, m32c_print_operand_address): Remove.
9430         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
9431         Change return type to bool. Change argument type to bool.
9432         (m32c_print_operand, m32c_print_operand_address): Make static.
9433         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9434         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9435
9436 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9437
9438         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
9439         attributes): Document mmap.
9440
9441 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
9442
9443         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9444         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9445         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
9446         mmix_print_operand, mmix_print_operand_address): Remove.
9447         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
9448         Change return type to bool. Change argument type to bool.
9449         (mmix_print_operand, mmix_print_operand_address): Make static.
9450         (mmix_intval, mmix_output_condition): Change 'x' argument type
9451         to const_rtx.
9452         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9453         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9454
9455 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
9456
9457         PR target/39386
9458         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
9459         shift counter for x << x and x >> x shifts.
9460
9461 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9462
9463         PR target/47124
9464         * config.gcc: Reject *-*-solaris2 configuration.
9465
9466 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
9467
9468         PR tree-optimization/49809
9469         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
9470         gimple_get_lhs instead of gimple_assign_lhs.
9471
9472 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9473
9474         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
9475
9476 2011-07-25  Richard Guenther  <rguenther@suse.de>
9477
9478         PR tree-optimization/49822
9479         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9480         more.  Make sure to preserve stmts with side-effects.  Properly
9481         handle virtual defs, follow a longer def chain.
9482
9483 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
9484
9485         PR plugins/45348
9486         PR plugins/48425
9487         PR plugins/46577
9488         * Makefile.in: Do not flatten c-family directory when installing
9489         plugin headers.
9490
9491 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
9492
9493         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
9494         original nodes if we are dealing with virtual clones.
9495
9496 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
9497
9498         * common/config/c6x/c6x-common.c: New file.
9499
9500 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
9501
9502         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
9503
9504 2011-07-25  Richard Guenther  <rguenther@suse.de>
9505
9506         PR tree-optimization/49715
9507         * tree-vrp.c: Include expr.h and optabs.h.
9508         (range_fits_type_): New function.
9509         (simplify_float_conversion_using_ranges): Likewise.
9510         (simplify_stmt_using_ranges): Call it.
9511         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
9512         * optabs.c (can_float_p): Export.
9513         * optabs.h (can_float_p): Declare.
9514
9515 2011-07-25  Richard Guenther  <rguenther@suse.de>
9516
9517         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
9518         (get_value_range): For out-of-range SSA names or names created
9519         after propagation return a read-only varying range.
9520         (dump_all_value_ranges): Adjust.
9521         (vrp_initialize): Likewise.
9522         (vrp_finalize): Likewise.
9523
9524 2011-07-24  Richard Henderson  <rth@redhat.com>
9525
9526         PR debug/49831
9527         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
9528         them entirely.
9529
9530 2011-07-24  Richard Henderson  <rth@redhat.com>
9531
9532         PR debug/49825
9533         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
9534         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
9535
9536 2011-07-24  Richard Henderson  <rth@redhat.com>
9537
9538         PR debug/49827
9539         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
9540
9541 2011-07-24  Richard Henderson  <rth@redhat.com>
9542
9543         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
9544         Zero args_size for abnormal edges.  Adjust all callers.
9545
9546 2011-07-24  Richard Henderson  <rth@redhat.com>
9547
9548         PR debug/49825
9549         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
9550
9551 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9552
9553         PR bootstrap/49835
9554         * collect2.c (demangle_flag): Removed.
9555
9556 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
9557
9558         * configure.ac (demangler_in_ld): Default to yes.
9559         * configure: Regenerated.
9560         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
9561         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
9562         --no-demangle options straight through to ld.  When
9563         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
9564         way that has the intended effect on Windows.
9565
9566 2011-07-23  Richard Henderson  <rth@redhat.com>
9567
9568         * dwarf2cfi.c: Include basic-block.h.
9569         (dw_label_info): Remove.
9570         (trace_work_list, trace_index): New.
9571         (remember_row, emit_cfa_remember): Remove.
9572         (dw_trace_info_hash, dw_trace_info_eq): New.
9573         (get_trace_index, get_trace_info): New.
9574         (save_point_p): New.
9575         (free_cfi_row): Remove.
9576         (add_cfi): Do not emit DW_CFA_remember_state.
9577         (cfa_row_equal_p): New.
9578         (barrier_args_size): Remove.
9579         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
9580         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
9581         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
9582         (dwarf2out_cfi_begin_epilogue): Remove.
9583         (dwarf2out_frame_debug_restore_state): Remove.
9584         (connect_traces, create_pseudo_cfg): New.
9585         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
9586         * Makefile.in (dwarf2cfi.o): Update.
9587
9588 2011-07-23  Richard Henderson  <rth@redhat.com>
9589
9590         * dwarf2cfi.c (dw_trace_info): New.
9591         (dw_label_info): New.
9592         (cie_return_save): New.
9593         (cur_trace): New.
9594         (queued_args_size): Rename from args_size.  Update all users.
9595         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
9596         (def_cfa_1): Use cur_trace instead of cfa_*.
9597         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
9598         (clobbers_queued_reg_save, reg_saved_in): Likewise.
9599         (dwarf2out_frame_debug_expr): Likewise.
9600         (create_cie_data): Split out from ...
9601         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
9602
9603 2011-07-23  Richard Henderson  <rth@redhat.com>
9604
9605         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
9606         Update all users to match.
9607         (execute_dwarf2_frame): Free reg_saved_in_data.
9608
9609 2011-07-23  Richard Henderson  <rth@redhat.com>
9610
9611         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
9612         (queued_reg_saves): Don't GTY.  Change to a VEC.
9613         (queue_reg_save): Update to match.
9614         (dwarf2out_flush_queued_reg_saves): Likewise.
9615         (clobbers_queued_reg_save): Likewise.
9616         (reg_saved_in): Likewise.
9617         (execute_dwarf2_frame): Free queued_reg_saves.
9618
9619 2011-07-23  Richard Henderson  <rth@redhat.com>
9620
9621         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
9622
9623 2011-07-23  Richard Henderson  <rth@redhat.com>
9624
9625         * dwarf2cfi.c (add_cfi_args_size): Split out from...
9626         (dwarf2out_args_size): ... here.
9627         (add_cfi_restore): Split out from ...
9628         (dwarf2out_frame_debug_cfa_restore): ... here.
9629         (def_cfa_0): Split out from ...
9630         (def_cfa_1): ... here.
9631         (cfi_oprnd_equal_p, cfi_equal_p): New.
9632         (change_cfi_row): New.
9633         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
9634         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
9635         (output_cfis): Remove.
9636         * dwarf2out.c (output_fde): Simplify output_cfi loop.
9637         (dwarf2out_switch_text_section): Don't call output_cfis.
9638         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
9639         * dwarf2out.h: Update decls.
9640         (enum dw_val_class): Add dw_val_class_none.
9641
9642 2011-07-23  Richard Henderson  <rth@redhat.com>
9643
9644         * dwarf2cfi.c (update_row_reg_save): New.
9645         (dwarf2out_frame_debug_cfa_expression): Use it.
9646         (dwarf2out_frame_debug_cfa_restore): Likewise.
9647         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
9648
9649 2011-07-23  Richard Henderson  <rth@redhat.com>
9650
9651         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
9652
9653 2011-07-23  Richard Henderson  <rth@redhat.com>
9654
9655         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
9656         (cie_cfi_row): New.
9657         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
9658         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
9659         (cur_row, remember_row): New.
9660         (def_cfa_1): Use cur_row instead of the old_* variables.
9661         (dwarf2out_frame_debug_restore_state): Similarly.
9662         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
9663         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
9664         (dwarf2out_frame_debug_adjust_cfa): Likewise.
9665         (dwarf2out_frame_debug_cfa_offset): Likewise.
9666         (dwarf2out_frame_debug_expr): Likewise.
9667         (execute_dwarf2_frame): Set up cur_row.
9668         * dwarf2out.h (struct cfa_loc): Mark for GTY.
9669
9670 2011-07-23  Richard Henderson  <rth@redhat.com>
9671
9672         * basic-block.h (EDGE_PRESERVE): New.
9673         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
9674         * bb-reorder.c: Include except.h.
9675         (fix_up_crossing_landing_pad): New.
9676         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
9677         landing pads in the right partition.  Duplicate as necessary.
9678         (partition_hot_cold_basic_blocks): Fix up DF info after
9679         duplicating landing pads.
9680         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
9681         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
9682         is set properly.  Validate that EH edges are not CROSSING.
9683         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
9684         (dw2_build_landing_pads): ... here.
9685         (convert_to_eh_region_ranges): Remove code to fixup crossing
9686         landing pads.
9687         * except.h (expand_dw2_landing_pad_for_region): Declare.
9688         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
9689
9690 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
9691
9692         PR target/49816
9693         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
9694
9695 2011-07-22  Jason Merrill  <jason@redhat.com>
9696
9697         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
9698
9699 2011-07-22  Richard Henderson  <rth@redhat.com>
9700
9701         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
9702
9703 2011-07-22  Richard Henderson  <rth@redhat.com>
9704
9705         * jump.c (maybe_propagate_label_ref): Split out of...
9706         (mark_all_labels): ... here.  Do not attempt label_ref
9707         propagation while in cfglayout mode.
9708
9709 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
9710
9711         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
9712         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
9713         (dwarf_attr_name): Handle DW_AT_GNU_macros.
9714         (dwarf2out_define): If the vector is empty and
9715         lineno is 0, emit a dummy entry first.
9716         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
9717         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
9718         optimize_macinfo_range): New functions.
9719         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
9720         mergeable, optimize longer strings using
9721         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
9722         optimize longer sequences of define/undef ops from headers
9723         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
9724         emit a section headers.
9725         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
9726         and macinfo_section_label to DEBUG_MACRO_SECTION
9727         resp. DEBUG_MACRO_SECTION_LABEL.
9728         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
9729         instead of DW_AT_macro_info.
9730
9731         PR other/32998
9732         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
9733         options.
9734         * dwarf2out.c: Include opts.h.
9735         (dchar_p): New typedef.  Define heap VEC for it.
9736         (producer_string): New variable.
9737         (gen_producer_string): New function.
9738         (gen_compile_unit_die): Use it.
9739         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
9740         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
9741         * doc/invoke.texi: Document -grecord-gcc-switches and
9742         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
9743         to -frecord-gcc-switches description.
9744
9745 2011-07-22  Jason Merrill  <jason@redhat.com>
9746
9747         PR c++/30112
9748         * c-decl.c (c_linkage_bindings): Define.
9749
9750 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
9751
9752         PR debug/49815
9753         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
9754
9755 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
9756
9757         * config/i386/i386.c (ix86_option_override_internal): Disallow
9758         MS ABI in x32 mode.
9759         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
9760         only for TARGET_LP64.
9761         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
9762
9763 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
9764
9765         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
9766         avoid warnings when GCC is built with a C++ compiler.
9767
9768 2011-07-22  Martin Jambor  <mjambor@suse.cz>
9769
9770         PR lto/49796
9771         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
9772         if decl node is in another partition, call cgraph_get_node only once.
9773
9774 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
9775
9776         * config.gcc (x86_64-*-linux*): Set
9777         default_gnu_indirect_function to yes.
9778
9779 2011-07-22  Richard Guenther  <rguenther@suse.de>
9780
9781         PR tree-optimization/45819
9782         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
9783         preserve volatile and notrap flags.
9784
9785 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9786             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9787
9788         PR bootstrap/49794
9789         * configure.ac: Test AM_ICONV with CXX.
9790         * configure: Regenerate.
9791         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
9792
9793 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9794
9795         PR bootstrap/49797
9796         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
9797         (set_cloog_options): Use it.
9798
9799 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
9800
9801         PR c++/49756
9802         * gcc.c (main): Call stack_limit_increase (64MB).
9803         * toplev.c (toplev_main): Likewise.
9804
9805 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9806
9807         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
9808         instead of force_reg.
9809
9810 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9811
9812         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
9813         needed and use force_reg after convert.
9814         (ix86_expand_call): Likewise.
9815         (ix86_expand_special_args_builtin): Likewise.
9816         (ix86_expand_builtin): Likewise.
9817
9818 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9819
9820         PR middle-end/47654
9821         PR middle-end/49649
9822         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
9823         in parameter.  Initialize v1 and v2 based on the values returned
9824         by clast_name_to_lb_ub.
9825         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
9826         values.
9827         (type_for_clast_bin): Same.
9828         (type_for_clast_expr): Same.
9829         (type_for_clast_eq): Update calls to type_for_clast_expr.
9830         (type_for_clast_for): Same.
9831         (build_iv_mapping): Same.
9832         * graphite-ppl.h (value_min): New.
9833
9834 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9835
9836         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
9837         types whenever possible.
9838
9839 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9840
9841         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
9842         and ub fields.
9843         (new_clast_name_index): Add lb and ub parameters.
9844         (free_clast_name_index): New.
9845         (clast_name_to_lb_ub): New.
9846         (save_clast_name_index): Add lb and ub parameters.
9847         (compute_bounds_for_param): New.
9848         (type_for_level): Removed.
9849         (type_for_clast_for): Removed level parameter.  Do not call
9850         type_for_level.
9851         (graphite_create_new_loop): Store the lb and ub for the clast_name
9852         of the iterator of the loop that has been generated.
9853         (graphite_create_new_loop_guard): Remove parameter level.
9854         (create_params_index): Store the lb and ub of each parameter.
9855         (gloog): Use free_clast_name_index.  Pass to create_params_index
9856         the current scop.
9857
9858 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9859
9860         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
9861         (max_precision_type): Inline max_signed_precision_type.
9862         (type_for_clast_red): Use max_precision_type.
9863         (type_for_clast_bin): Same.
9864         (type_for_clast_for): Same.
9865
9866 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9867
9868         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
9869         type_for_interval.
9870         (gcc_type_for_value): Renamed type_for_value.
9871         (gcc_type_for_clast_term): Renamed type_for_clast_term.
9872         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
9873         (gcc_type_for_clast_red): Renamed type_for_clast_red.
9874         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
9875         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
9876         (graphite_translate_clast_equation): Update calls.
9877         (compute_type_for_level): Renamed type_for_level.
9878         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
9879         (build_iv_mapping): Update calls.
9880         (graphite_create_new_loop_guard): Same.
9881
9882 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9883
9884         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
9885         comment.
9886
9887 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9888
9889         * graphite-clast-to-gimple.c (struct ivs_params): New.
9890         (clast_name_to_gcc): Use ivs_params to pass around parameters.
9891         (clast_to_gcc_expression): Same.
9892         (clast_to_gcc_expression_red): Same.
9893         (gcc_type_for_clast_term): Same.
9894         (gcc_type_for_clast_expr): Same.
9895         (gcc_type_for_clast_red): Same.
9896         (gcc_type_for_clast_bin): Same.
9897         (gcc_type_for_clast_eq): Same.
9898         (graphite_translate_clast_equation): Same.
9899         (graphite_create_guard_cond_expr): Same.
9900         (graphite_create_new_guard): Same.
9901         (graphite_create_new_loop): Same.
9902         (build_iv_mapping): Same.
9903         (translate_clast_user): Same.
9904         (graphite_create_new_loop_guard): Same.
9905         (translate_clast): Same.
9906         (translate_clast_for_loop): Same.
9907         (translate_clast_for): Same.
9908         (translate_clast_guard): Same.
9909         (initialize_cloog_names): Fix typo.
9910         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
9911
9912 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9913
9914         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
9915         (new_clast_name_index): Add level parameter.
9916         (clast_name_to_level): New.
9917         (save_clast_name_index): Add level parameter.
9918         (newivs_to_depth_to_newiv): Removed.
9919         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
9920         (graphite_create_new_loop): Add level parameter.  Pass level to
9921         save_clast_name_index.
9922         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
9923         (create_params_index): Pass level to save_clast_name_index.
9924
9925 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9926
9927         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
9928         recompute type, lb, and ub.  Get them from...
9929         (graphite_create_new_loop_guard): ...here.  Pass in parameter
9930         pointers to type, lb, and ub.
9931         (translate_clast_for_loop): Update function calls.
9932         (translate_clast_for): Same.
9933
9934 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9935
9936         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
9937         psct_dynamic_dim.
9938         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
9939         (gcc_type_for_iv_of_clast_loop): Update use of level.
9940         (gloog): Start counting nesting level from 0.
9941         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
9942         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
9943         psct_dynamic_dim on level.
9944
9945 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9946
9947         * config/i386/i386.c (ix86_legitimize_address): Convert to
9948         Pmode if needed.
9949
9950 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9951
9952         * config/i386/i386.c (function_value_64): Always return pointers
9953         in Pmode.
9954         (ix86_promote_function_mode): New.
9955         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
9956
9957 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9958
9959         PR tree-optimization/49749
9960         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
9961         remove no-longer-used maxrank variable.
9962
9963 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
9964
9965         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
9966
9967 2011-07-21  Jason Merrill  <jason@redhat.com>
9968
9969         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
9970         * recog.h (struct insn_data_d): Check it instead of
9971         HAVE_DESIGNATED_INITIALIZERS.
9972         * genoutput.c (output_insn_data): Likewise.
9973
9974 2011-07-21  Richard Guenther  <rguenther@suse.de>
9975
9976         PR tree-optimization/49770
9977         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
9978         valueized any operand.  Renamed from ...
9979         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
9980         (valueize_shared_reference_ops_from_ref): Return whether we
9981         valueized any operand.
9982         (vn_reference_lookup): Only when we valueized any operand
9983         use the valueized reference for alias analysis.  Do not preserve
9984         the original reference tree in this case.
9985
9986 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
9987
9988         * config/i386/i386.c (ix86_decompose_address): Reject all but
9989         register operands and subregs of DImode hard registers in index.
9990
9991 2011-07-21  Kai Tietz  <ktietz@redhat.com>
9992
9993         * fold-const.c (fold_unary_loc): Preserve indirect
9994         comparison cast to none-boolean type.
9995         * tree-ssa.c (useless_type_conversion_p): Preserve cast
9996         from/to boolean-type.
9997         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
9998         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
9999         * tree-cfg.c (verify_gimple_comparison): Check result
10000         type of comparison expression.
10001         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
10002         of condition result and disallow type-cast sinking into comparison.
10003
10004 2011-07-21  Richard Guenther  <rguenther@suse.de>
10005
10006         * tree-ssa-forwprop.c (combine_conversions): Return whether
10007         we have to run cfg-cleanup.  Properly remove dead stmts.
10008         (ssa_forward_propagate_and_combine): Adjust.
10009
10010 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
10011
10012         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
10013
10014 2011-07-21  Kai Tietz  <ktietz@redhat.com>
10015
10016         * tree-ssa-propagate.c (substitute_and_fold): Use
10017         do_dce flag to deside, if BB's statements are scanned
10018         in last to first, or first to last order.
10019
10020 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
10021
10022         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
10023
10024 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
10025             Uros Bizjak  <ubizjak@gmail.com>
10026             Richard Henderson  <rth@redhat.com>
10027
10028         * config/i386/constraints.md (w): New.
10029
10030         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
10031         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
10032
10033         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
10034         instead of TARGET_64BIT.
10035
10036         * config/i386/i386.md (indirect_jump): Replace
10037         nonimmediate_operand with indirect_branch_operand.
10038         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
10039         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
10040         Convert operand 0 to Pmode for x32 if not PIC.
10041         (*tablejump_1): Replace nonimmediate_operand with
10042         indirect_branch_operand.  Replace constraint "m" with "w".
10043         (*call_vzeroupper): Replace constraint "m" with "w".
10044         (*call): Likewise.
10045         (*call_rex64_ms_sysv_vzeroupper): Likewise.
10046         (*call_rex64_ms_sysv): Likewise.
10047         (*call_value_vzeroupper): Likewise.
10048         (*call_value): Likewise.
10049         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
10050         (*call_value_rex64_ms_sysv): Likewise.
10051         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
10052
10053         * config/i386/predicates.md (indirect_branch_operand): New.
10054         (call_insn_operand): Support x32.
10055
10056 2011-07-20  Michael Eager  <eager@eagercon.com>
10057
10058         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
10059
10060 2011-07-20  Richard Henderson  <rth@redhat.com>
10061
10062         * cfg.c (dump_bb_info): Dump basic_block->flags.
10063         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
10064
10065 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
10066
10067         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10068         of DImode hard registers in index.
10069         (ix86_legitimate_address_p): Allow subregs of base and index to span
10070         more than a word.  Assert that subregs of base and index satisfy
10071         register_no_elim_operand predicates.  Reject addresses where
10072         base and index have different modes.
10073
10074 2011-07-20  Robert Millan  <rmh@gnu.org>
10075
10076         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
10077
10078 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10079
10080         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
10081         removing now-unnecessary assignment.
10082
10083 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10084
10085         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
10086         memory address space to the type's address space.
10087
10088 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
10089
10090         PR target/36467
10091         PR target/49687
10092         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
10093         and expand appropriately if there is a CONST_INT in operand2.
10094         (usmulqihi3): New insn.
10095         (*sumulqihi3): New insn.
10096         (*osmulqihi3): New insn.
10097         (*oumulqihi3): New insn.
10098         (*muluqihi3.uconst): New insn_and_split.
10099         (*muluqihi3.sconst): New insn_and_split.
10100         (*mulsqihi3.sconst): New insn_and_split.
10101         (*mulsqihi3.uconst): New insn_and_split.
10102         (*mulsqihi3.oconst): New insn_and_split.
10103         (*ashifthi3.signx.const): New insn_and_split.
10104         (*ashifthi3.signx.const7): New insn_and_split.
10105         (*ashifthi3.zerox.const): New insn_and_split.
10106         (mulsqihi3): New insn.
10107         (muluqihi3): New insn.
10108         (muloqihi3): New insn.
10109         * config/avr/predicates.md (const_2_to_7_operand): New.
10110         (const_2_to_6_operand): New.
10111         (u8_operand): New.
10112         (s8_operand): New.
10113         (o8_operand): New.
10114         (s9_operand): New.
10115         (register_or_s9_operand): New.
10116
10117 2011-07-20  Kai Tietz  <ktietz@redhat.com>
10118
10119         * builtins.c (fold_builtin_expect): See through the cast
10120         from truthvalue_type_node to long.
10121
10122 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
10123
10124         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
10125         where we can use them from the standard and altivec instruction
10126         sets, instead of always using the 3 operand VSX forms that require
10127         the destination to overlap one of the inputs.
10128         (vsx_fms*): Ditto.
10129         (vsx_fnma*): Ditto.
10130         (vsx_fnms*): Ditto.
10131
10132         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
10133         for DF types.
10134         (fmsdf4_fpr): Ditto.
10135         (nfmadf4_fpr): Ditto.
10136         (nfmsdf4_fpr): Ditto.
10137
10138 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
10139
10140         * genrecog.c (make_insn_sequence): Correct position numbering
10141         when filtering out match_scratch and match_dup.
10142
10143 2011-07-20  Richard Guenther  <rguenther@suse.de>
10144
10145         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
10146         against already removed statements.
10147         (forward_propagate_into_comparison): Remove dead defining stmts.
10148         (forward_propagate_into_gimple_cond): Likewise.
10149         (forward_propagate_into_cond): Simplify.
10150         (ssa_forward_propagate_and_combine): Handle changed cfg from
10151         forward_propagate_into_comparison.
10152         * tree-ssa-phiopt.c (conditional_replacement): Use proper
10153         locations for newly built statements.
10154
10155 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
10156
10157         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
10158
10159 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10160
10161         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
10162         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
10163
10164 2011-07-20  Richard Guenther  <rguenther@suse.de>
10165
10166         PR middle-end/18908
10167         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
10168         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
10169         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
10170
10171 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
10172
10173         * config/frv/frv.c (frv_register_move_cost): Define explicitly
10174         costs for subclasses of GR_REGS.
10175
10176 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
10177
10178         PR target/49780
10179         * config/i386/predicates.md (no_seg_addres_operand): No more special.
10180         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10181         of DImode hard registers in base.
10182         (ix86_legitimate_address_p): Allow SImode and DImode base and index
10183         registers.
10184
10185 2011-07-20  Richard Guenther  <rguenther@suse.de>
10186
10187         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
10188         (unify_nodes): Deal with that.
10189         (solve_graph): Likewise.
10190
10191 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
10192
10193         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
10194         canonicalize left operand from ZERO_EXTEND to AND.
10195
10196 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
10197
10198         * target.def (class_max_nregs): New hook.
10199         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
10200         * doc/tm.texi: Regenerate.
10201         * targhooks.c (default_class_max_nregs): New function.
10202         * targhooks.h (default_class_max_nregs): Declare.
10203         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
10204         x_ira_reg_class_min_nregs arrays to unsigned char.
10205         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
10206         hook instead of CLASS_MAX_NREGS macro.
10207         * reginfo.c (restore_register_info): Ditto.
10208         * ira-conflicts.c (process_regs_for_copy): Use
10209         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
10210         Change type rclass and aclass vars to reg_class_t.
10211         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
10212         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
10213         reg_class_t.
10214         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
10215         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
10216
10217         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
10218         * config/i386/i386.c (ix86_class_max_nregs): New function.
10219         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
10220         instead of CLASS_MAX_NREGS macro.
10221         (TARGET_CLASS_MAX_NREGS): Define.
10222         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
10223         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
10224         * config/avr/avr.c (class_max_nregs): Remove function.
10225         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
10226         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
10227         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
10228         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
10229         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
10230         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
10231         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
10232         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
10233         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
10234         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
10235         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
10236         * config/score/score.h (CLASS_MAX_NREGS): Remove.
10237         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
10238         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
10239         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
10240
10241 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
10242
10243         * cif-code.def (OVERWRITABLE): Fix typo and move around.
10244         (TARGET_OPTIMIZATION_MISMATCH): Delete.
10245         (EH_PERSONALITY): Fix typo.
10246         (NON_CALL_EXCEPTIONS): Fix message.
10247         (OPTIMIZATION_MISMATCH): Adjust message.
10248         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
10249
10250 2011-07-19  Ian Lance Taylor  <iant@google.com>
10251
10252         * doc/install.texi (Configuration): Document
10253         --enable-build-poststage1-with-cxx.
10254
10255 2011-07-19  Robert Millan  <rmh@gnu.org>
10256
10257         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
10258         (GLIBC_DYNAMIC_LINKER): Remove.
10259
10260         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
10261         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
10262         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
10263         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
10264         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
10265         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
10266
10267         * config/mips/linux.h: Remove everything except for ...
10268         (GLIBC_DYNAMIC_LINKER): ... this macro.
10269
10270         * config/mips/linux64.h: Remove everything except for ...
10271         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
10272         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
10273         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
10274         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
10275         (GNU_USER_LINK_EMULATIONN32): New macros.
10276
10277         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
10278         Use the new headers.
10279
10280 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10281
10282         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
10283         Add offset_known_p and size_known_p fields.
10284         (MEM_OFFSET_KNOWN_P): Update accordingly.
10285         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
10286         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
10287         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
10288         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
10289         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
10290         (init_emit_regs): Likewise.
10291
10292 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10293
10294         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
10295         (MEM_OFFSET): Change from returning an rtx to returning a
10296         HOST_WIDE_INT.
10297         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
10298         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
10299         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10300         (clear_mem_offset): Declare.
10301         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
10302         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
10303         MEM_OFFSET to get a HOST_WIDE_INT offset.
10304         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
10305         (adjust_offset_for_component_ref): Take a bool "known_p"
10306         parameter and a HOST_WIDE_INT "offset" parameter.
10307         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
10308         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
10309         than an rtx.  Use clear_mem_offset to clear the offset.
10310         * cfgcleanup.c (merge_memattrs): Likewise.
10311         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
10312         * function.c (assign_parm_find_stack_rtl): Likewise.
10313         (assign_parm_setup_stack): Likewise.
10314         * print-rtl.c (print_rtx): Likewise.
10315         * reload.c (find_reloads_subreg_address): Likewise.
10316         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10317         * var-tracking.c (INT_MEM_OFFSET): Likewise.
10318         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10319         (get_mem_align_offset): Likewise.
10320         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10321         (clear_mem_offset): New function.
10322         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
10323         offset rather than an rtx.  Assume both the expressio and offset
10324         are available.
10325         (r10k_needs_protection_p_1): Update accordingly, checking the
10326         expression and offset availability here instead.
10327
10328 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10329
10330         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
10331         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
10332         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
10333         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
10334         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10335         (clear_mem_size): Declare.
10336         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10337         (clear_mem_size): New function.
10338         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
10339         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
10340         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
10341         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
10342         to clear the size.
10343         (nonoverlapping_memrefs_p): Likewise.
10344         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
10345         (expand_builtin_init_trampoline): Likewise.
10346         * calls.c (compute_argument_addresses): Likewise.
10347         * cfgcleanup.c (merge_memattrs): Likewise.
10348         * dce.c (find_call_stack_args): Likewise.
10349         * dse.c (record_store, scan_insn): Likewise.
10350         * dwarf2out.c (dw_sra_loc_expr): Likewise.
10351         * expr.c (emit_block_move_hints): Likewise.
10352         * function.c (assign_parm_find_stack_rtl): Likewise.
10353         * print-rtl.c (print_rtx): Likewise.
10354         * reload.c (find_reloads_subreg_address): Likewise.
10355         * rtlanal.c (may_trap_p_1): Likewise.
10356         * var-tracking.c (track_expr_p): Likewise.
10357         * varasm.c (assemble_trampoline_template): Likewise.
10358         * config/arm/arm.c (arm_print_operand): Likewise.
10359         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
10360         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
10361         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
10362         (expand_constant_setmem_prologue): Likewise.
10363         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
10364         * config/rs6000/rs6000.c (expand_block_move): Likewise.
10365         (adjacent_mem_locations): Likewise.
10366         * config/s390/s390.c (s390_expand_setmem): Likewise.
10367         (s390_expand_insv): Likewise.
10368         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
10369         (*extendqi<mode>2_short_displ): Likewise.
10370         * config/sh/sh.c (expand_block_move): Likewise.
10371         * config/sh/sh.md (extv, extzv): Likewise.
10372
10373 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10374
10375         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
10376         (mem_attrs_htab_eq): ...here.
10377         (find_mem_attrs): Replace with...
10378         (set_mem_attrs): ...this function.  Take a mem_attrs structure
10379         rather than individual fields.
10380         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10381         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10382         (set_mem_size, change_address, adjust_address_1, offset_address)
10383         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10384         Update accordingly.
10385
10386 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10387
10388         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
10389         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
10390         Provide a dummy definition of MEM_ADDR_SPACE for generators.
10391         (target_rtl): Add x_mode_mem_attrs.
10392         (mode_mem_attrs): New macro.
10393         (get_mem_attrs): New function.
10394         * emit-rtl.c (get_mem_attrs): Rename to...
10395         (find_mem_attrs): ...this.
10396         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10397         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10398         (set_mem_size, change_address, adjust_address_1, offset_address)
10399         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10400         Update accordingly.
10401         (init_emit_regs): Initialize mode_mem_attrs.
10402
10403 2011-07-19  Richard Guenther  <rguenther@suse.de>
10404
10405         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
10406         TRUTH_*_EXPR handling.
10407         * tree-ssa-operands.c (get_expr_operands): Likewise.
10408         * tree-ssa-pre.c (fully_constant_expression): Likewise.
10409         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
10410         Likewise.
10411         (is_and_or_or): Likewise.
10412         (is_norm_cond_subset_of): Likewise.
10413
10414 2011-07-19  Richard Guenther  <rguenther@suse.de>
10415
10416         * tree.h (fold_build_pointer_plus_loc): New helper function.
10417         (fold_build_pointer_plus_hwi_loc): Likewise.
10418         (fold_build_pointer_plus): Define.
10419         (fold_build_pointer_plus_hwi): Likewise.
10420         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
10421         (fold_builtin_memory_op): Likewise.
10422         (fold_builtin_stpcpy): Likewise.
10423         (fold_builtin_memchr): Likewise.
10424         (fold_builtin_strstr): Likewise.
10425         (fold_builtin_strchr): Likewise.
10426         (fold_builtin_strrchr): Likewise.
10427         (fold_builtin_strpbrk): Likewise.
10428         (fold_builtin_strcat): Likewise.
10429         (expand_builtin_memory_chk): Likewise.
10430         (fold_builtin_memory_chk): Likewise.
10431         * c-typeck.c (build_unary_op): Likewise.
10432         * cgraphunit.c (thunk_adjust): Likewise.
10433         * fold-const.c (build_range_check): Likewise.
10434         (fold_binary_loc): Likewise.
10435         * omp-low.c (extract_omp_for_data): Likewise.
10436         (expand_omp_for_generic): Likewise.
10437         (expand_omp_for_static_nochunk): Likewise.
10438         (expand_omp_for_static_chunk): Likewise.
10439         * tree-affine.c (add_elt_to_tree): Likewise.
10440         * tree-data-ref.c (split_constant_offset_1): Likewise.
10441         * tree-loop-distribution.c (generate_memset_zero): Likewise.
10442         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
10443         * tree-predcom.c (ref_at_iteration): Likewise.
10444         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
10445         (add_to_parts): Likewise.
10446         (create_mem_ref): Likewise.
10447         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10448         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
10449         (number_of_iterations_le): Likewise.
10450         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
10451         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
10452         (vect_create_addr_base_for_vector_ref): Likewise.
10453         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
10454         (vect_create_cond_for_alias_checks): Likewise.
10455         * tree-vrp.c (extract_range_from_assert): Likewise.
10456         * config/alpha/alpha.c (alpha_va_start): Likewise.
10457         (alpha_gimplify_va_arg_1): Likewise.
10458         * config/i386/i386.c (ix86_va_start): Likewise.
10459         (ix86_gimplify_va_arg): Likewise.
10460         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
10461         * config/mep/mep.c (mep_expand_va_start): Likewise.
10462         (mep_gimplify_va_arg_expr): Likewise.
10463         * config/mips/mips.c (mips_va_start): Likewise.
10464         (mips_gimplify_va_arg_expr): Likewise.
10465         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10466         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
10467         (rs6000_gimplify_va_arg): Likewise.
10468         * config/s390/s390.c (s390_va_start): Likewise.
10469         (s390_gimplify_va_arg): Likewise.
10470         * config/sh/sh.c (sh_va_start): Likewise.
10471         (sh_gimplify_va_arg_expr): Likewise.
10472         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
10473         * config/spu/spu.c (spu_va_start): Likewise.
10474         (spu_gimplify_va_arg_expr): Likewise.
10475         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
10476         Likewise.
10477         (xstormy16_gimplify_va_arg_expr): Likewise.
10478         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
10479         (xtensa_gimplify_va_arg_expr): Likewise.
10480
10481 2011-07-19  Richard Guenther  <rguenther@suse.de>
10482
10483         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
10484         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
10485         handling.
10486
10487         PR middle-end/18908
10488         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
10489         result of BIT_*_EXPR to bitfield precision.
10490
10491 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
10492
10493         PR tree-optimization/49742
10494         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
10495         as a potential write.
10496
10497 2011-07-19  Richard Guenther  <rguenther@suse.de>
10498
10499         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
10500         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
10501         (forward_propagate_comparison): Simplify, remove obsolete code.
10502
10503 2011-07-19  Richard Guenther  <rguenther@suse.de>
10504
10505         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
10506         BIT_XOR_EXPR, same as the RTL expander does.
10507         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
10508         (verify_gimple_assign_unary): Likewise.
10509         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
10510         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
10511         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
10512
10513 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
10514
10515         PR tree-optimization/49768
10516         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
10517         if offset is smaller than bitoffset, but offset+size is bigger
10518         than bitoffset.
10519
10520 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
10521
10522         PR tree-optimization/49771
10523         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
10524         zero step, set segment length to the size of the data-ref's type.
10525
10526 2011-07-18  Martin Jambor  <mjambor@suse.cz>
10527
10528         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
10529         comments.
10530         (ipcp_values_pool): Declare.
10531         (ipcp_sources_pool): Likewise.
10532         (ipcp_lattice): Changed to forward declaration.
10533         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
10534         cannot_devirtualize.
10535         (ipa_node_params): New fields descriptors, lattices, known_vals,
10536         clone_for_all_contexts and node dead, removed fields params and
10537         count_scale.
10538         (ipa_set_param_count): Removed.
10539         (ipa_get_param_count): Made to work with descriptors vector.
10540         (ipa_get_param): Updated.
10541         (ipa_param_cannot_devirtualize_p): Removed.
10542         (ipa_param_types_vec_empty): Likewise.
10543         (ipa_set_param_used): New function.
10544         (ipa_get_param_used): Updated to use descriptors vector.
10545         (ipa_func_list): Removed.
10546         (ipa_init_func_list): Removed declaration.
10547         (ipa_push_func_to_list_1): Likewise.
10548         (ipa_pop_func_from_list): Likewise.
10549         (ipa_push_func_to_list): Removed.
10550         (ipa_lattice_from_jfunc): Remove declaration.
10551         (ipa_get_jf_pass_through_result): Declare.
10552         (ipa_get_jf_ancestor_result): Likewise.
10553         (ipa_value_from_jfunc): Likewise.
10554         (ipa_get_lattice): Update.
10555         (ipa_lat_is_single_const): New function.
10556         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
10557         (ipa_init_func_list): Likewise.
10558         (ipa_pop_func_from_list): Likewise.
10559         (ipa_get_param_decl_index): Fix coding style.
10560         (count_formal_params): Removed.
10561         (count_formal_params_1): Renamed to count_formal_params.
10562         (ipa_populate_param_decls): Update to use descriptors vector.
10563         (ipa_initialize_node_params): Likewise.
10564         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
10565         (ipa_analyze_params_uses): Likewise.
10566         (ipa_free_node_params_substructures): Likewise and free also lattices
10567         and known values.
10568         (duplicate_array): Removed.
10569         (ipa_edge_duplication_hook): Add the new edge to the list of edge
10570         clones.
10571         (ipa_node_duplication_hook): Update to use new lattices.
10572         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
10573         (ipa_free_all_structures_after_iinln): Likewise.
10574         (ipa_write_node_info): Update to use new lattices.
10575         (ipa_read_node_info): Likewise.
10576         (ipa_get_jf_pass_through_result): New function.
10577         (ipa_get_jf_ancestor_result): Likewise.
10578         (ipa_value_from_jfunc): Likewise.
10579         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
10580         * ipa-cp.c: Reimplemented.
10581         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
10582         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
10583         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
10584         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
10585         * doc/invoke.texi (devirt-type-list-size): Removed description.
10586         (ipa-cp-value-list-size): Added description.
10587
10588 2011-07-18  Richard Henderson  <rth@redhat.com>
10589
10590         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
10591         before calling create_basic_block.
10592
10593 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
10594
10595         PR middle-end/49675
10596         * tree.c (build_common_builtin_nodes): Register
10597         __builtin_return_address, __cyg_profile_func_enter
10598         and __cyg_profile_func_exit.
10599
10600 2011-07-18  Richard Henderson  <rth@redhat.com>
10601
10602         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
10603         (add_labels_and_missing_jumps): ... here.
10604         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
10605
10606 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
10607
10608         PR target/47744
10609         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10610         of DImode hard registers in PLUS address chains.
10611
10612 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10613
10614         PR bootstrap/49769
10615         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
10616         (alpha*-*-freebsd*): Likewise.
10617         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10618         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10619         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
10620         crtprec80.o, crtfastmath.o to extra_parts for all targets.
10621         (ia64*-*-elf*): Remove extra_parts.
10622         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
10623         (sparc64-*-linux*): Likewise.
10624         (sparc64-*-freebsd*): Likewise.
10625
10626         Revert:
10627         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
10628         (ia64*-*-linux*): Likewise.
10629         (mips64*-*-linux*): Likewise.
10630         (mips*-*-linux*): Likewise.
10631
10632 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
10633
10634         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
10635
10636 2011-07-18  Richard Guenther  <rguenther@suse.de>
10637
10638         * gimplify.c (gimplify_expr): Use input_location, not saved_location
10639         when building new trees.
10640
10641 2011-07-18  Richard Guenther  <rguenther@suse.de>
10642
10643         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
10644         expansion result to bitfield precision if required.
10645
10646 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10647
10648         * config.gcc (i[3456x]86-*-netware*): Remove.
10649
10650         * gthr-nks.h: Remove.
10651         * configure.ac (enable_threads): Remove nks.
10652         * configure: Regenerate.
10653
10654         * config/i386/i386.c (ix86_encode_section_info): Remove netware
10655         reference.
10656         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
10657         <netware.h> reference.
10658
10659         * config/i386/netware-libgcc.c,
10660         gcc/config/i386/netware-libgcc.def,
10661         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
10662         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
10663         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
10664         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
10665
10666         * doc/extend.texi (Function Attributes,
10667         callee_pop_aggregate_return): Remove i?86-netware reference.
10668         * doc/install.texi (Configuration, --enable-threads): Remove nks.
10669
10670 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10671
10672         PR target/49746
10673         Revert:
10674         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10675
10676         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
10677         patterns.
10678
10679 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
10680
10681         PR middle-end/49732
10682         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
10683
10684 2011-07-16  Matthias Klose  <doko@ubuntu.com>
10685
10686         * doc/install.texi: Document --enable-static-libjava.
10687
10688 2011-07-15  Richard Henderson  <rth@redhat.com>
10689
10690         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10691         Replace all three arguments by returning a VEC of edges.
10692         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
10693         pointers and counts.
10694         (fix_edges_for_rarely_executed_code): Merge ...
10695         (rest_of_handle_partition_blocks): ... into...
10696         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
10697         any work was performed.
10698         (pass_partition_blocks): Clear todo_flags_finish.
10699
10700 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
10701             Jakub Jelinek  <jakub@redhat.com>
10702             Jonathan Wakely  <jwakely.gcc@gmail.com>
10703
10704         PR libstdc++/49745
10705         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
10706         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
10707
10708 2011-07-15  Jason Merrill  <jason@redhat.com>
10709
10710         PR testsuite/49741
10711         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
10712         rather than --tool_opts.
10713
10714 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
10715
10716         * doc/plugins.texi (Building GCC plugins): gengtype needs its
10717         corresponding gtype.state.
10718
10719 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10720
10721         PR target/49723
10722         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
10723
10724 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
10725
10726         PR target/48220
10727         * doc/md.texi (Standard Names): Document window_save.
10728         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
10729         expand_debug_expr and expand_debug_source_expr.  If the target has
10730         a window_save instruction, adjust the ENTRY_VALUE_EXP.
10731         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
10732         SSA_NAME_VAR is a parameter.
10733         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
10734         * var-tracking.c (parm_reg_t): New type and associated vector type.
10735         (windowed_parm_regs): New variable.
10736         (adjust_insn): If the target has a window_save instruction and this
10737         is the instruction, make its effect on parameter registers explicit.
10738         (next_non_note_insn_var_location): New function.
10739         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
10740         (vt_add_function_parameter): If the target has a window_save insn,
10741         adjust the incoming RTL and record that in windowed_parm_regs.
10742         (vt_finalize): Free windowed_parm_regs.
10743
10744 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
10745
10746         * doc/invoke.texi (C6X Options): New section.
10747         * doc/md.texi (TI C6X family): New section.
10748         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
10749         tic6x-*-uclinux.
10750         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
10751         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
10752         Provide C6X definitions.
10753         * config/c6x/c6x.md: New file.
10754         * config/c6x/constraints.md: New file.
10755         * config/c6x/predicates.md: New file.
10756         * config/c6x/c6x-sched.md.in: New file.
10757         * config/c6x/c6x-sched.md: New file.
10758         * config/c6x/gensched.sh: New file.
10759         * config/c6x/c6x-mult.md.in: New file.
10760         * config/c6x/genmult.sh: New file.
10761         * config/c6x/c6x-mult.md: New file.
10762         * config/c6x/sync.md: New file.
10763         * config/c6x/c6x-protos.h: New file.
10764         * config/c6x/sfp-machine.h: New file.
10765         * config/c6x/c6x.c: New file.
10766         * config/c6x/c6x.h: New file.
10767         * config/c6x/crti.s: New file.
10768         * config/c6x/crtn.s: New file.
10769         * config/c6x/lib1funcs.asm: New file.
10770         * config/c6x/c6x-modes.def: New file.
10771         * config/c6x/genopt.sh: New file.
10772         * config/c6x/c6x.opt: New file.
10773         * config/c6x/c6x-tables.opt: New file.
10774         * config/c6x/c6x-opts.h: New file.
10775         * config/c6x/c6x-isas.def: New file.
10776         * config/c6x/elf.h: New file.
10777         * config/c6x/elf-common.h: New file.
10778         * config/c6x/uclinux-elf.h: New file.
10779         * config/c6x/t-c6x: New file.
10780         * config/c6x/t-c6x-elf: New file.
10781         * config/c6x/t-c6x-uclinux: New file.
10782         * config/c6x/t-c6x-softfp: New file.
10783         * config/c6x/gtd.c: New file.
10784         * config/c6x/gtf.c: New file.
10785         * config/c6x/ltd.c: New file.
10786         * config/c6x/ltf.c: New file.
10787         * config/c6x/ged.c: New file.
10788         * config/c6x/gef.c: New file.
10789         * config/c6x/led.c: New file.
10790         * config/c6x/lef.c: New file.
10791         * config/c6x/eqd.c: New file.
10792         * config/c6x/eqf.c: New file.
10793         * config/c6x/libgcc-c6xeabi.ver: New file.
10794
10795         Revert
10796         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
10797         PR rtl-optimization/11320
10798         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
10799         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
10800         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
10801         current_sched_info->compute_jump_reg_dependencies. Record which
10802         registers are used and which registers are set by the jump.
10803         Clear deps->reg_conditional_sets after a barrier.
10804         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
10805         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
10806         (init_deps): Initialize reg_conditional_sets.
10807         (free_deps): Clear reg_conditional_sets.
10808         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
10809         Mark registers live on entry of the fallthrough block and conditionally
10810         set as set by the jump. Mark registers live on entry of non-fallthrough
10811         blocks as used by the jump.
10812         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
10813         Mark new parameters as unused.
10814
10815 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
10816
10817         PR tree-opt/49309
10818         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
10819         Use fold_build2_loc instead of build2.
10820         Use the correct type for the new tree.
10821
10822 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10823
10824         PR rtl-optimization/11320
10825         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
10826         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
10827
10828 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
10829
10830         PR target/49487
10831         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
10832         of REG.
10833         (*rotw<mode>): Use const_int_operand for operand2.
10834         Use match_scatch for operand3.
10835         (*rotb<mode>): Ditto
10836         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
10837
10838 2011-07-14  Richard Guenther  <rguenther@suse.de>
10839
10840         PR tree-optimization/49651
10841         * tree-ssa-structalias.c (get_constraint_for_1): Properly
10842         handle dereferences with subvariables.
10843
10844 2011-07-14  Richard Guenther  <rguenther@suse.de>
10845
10846         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
10847         (fold_stmt_1): Do it here directly on gimple and as a first thing.
10848
10849 2011-07-14  Richard Guenther  <rguenther@suse.de>
10850
10851         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
10852         not bool_var when folding bool_var != 1 or bool_var == 0.
10853
10854 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10855
10856         * haifa-sched.c (schedule_insns): Remove outdated comment.
10857         (schedule_block): When computing a known value for TODO_SPEC,
10858         just set it rather than using logical operations.
10859         (try_ready): Likewise.  Use a local variable rather than a
10860         pointer to TODO_SPEC.  Reorder an if statement to move the
10861         easy case to the then block.
10862         * sched-deps.c (dep_spec_p): New static function.
10863         (update_dep): Use it to decide whether to call
10864         change_spec_dep_to_hard.
10865         (get_back_and_forw_lists): Use it.
10866         (sd_resolve_dep): Likewise.
10867         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
10868         (haifa_note_mem_dep): Likewise.
10869         (check_dep): Likewise.
10870         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
10871         (sched_free_deps): Free in two passes.
10872
10873 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
10874
10875         PR middle-end/49736
10876         * expr.c (all_zeros_p): Undo bogus part of last change.
10877
10878 2011-07-14  Matthias Klose <doko@ubuntu.com>
10879
10880         * doc/extend.texi (optimize attribute): Fix typo.
10881
10882 2011-07-14  Richard Guenther  <rguenther@suse.de>
10883
10884         * gimplify.c (gimplify_expr): Only do required conversions.
10885
10886 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
10887
10888         PR target/43746
10889         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
10890         i.e. use default_elf_select_section.
10891         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
10892         (READONLY_DATA_SECTION_ASM_OP): Remove.
10893         (TARGET_ASM_NAMED_SECTION): Move from here...
10894         * config/avr/avr.c: ...to here.
10895         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
10896         (avr_asm_named_section): Make static.
10897
10898 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10899
10900         PR bootstrap/49739
10901         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
10902         and crtfastmath.o for Linux/x86.
10903
10904 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10905
10906         * haifa-sched.c: Include "hashtab.h"
10907         (sched_no_dce): New global variable.
10908         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
10909         SHADOW_P): New macros.
10910         (last_clock_var, cycle_issued_insns): Move declarations.
10911         (must_backtrack): New static variable.
10912         (struct delay_pair): New structure.
10913         (delay_htab, delay_htab_i2): New static variables.
10914         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
10915         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
10916         functions.
10917         (dep_cost_1): If delay pairs exist, try to look up the insns and
10918         use the correct pair delay if we find them.
10919         (rank-for_schedule): Tweak priority for insns that must be scheduled
10920         soon to avoid backtracking.
10921         (queue_insn): Detect conditions which force backtracking.
10922         (ready_add): Likewise.
10923         (struct sched_block_state): Add member shadows_only_p.
10924         (struct haifa_save_data): New structure.
10925         (backtrack_queue): New static variable.
10926         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
10927         unschedule_insns_until, restore_last_backtrack_point,
10928         free_topmost_backtrack_point, free_backtrack_queue,
10929         estimate_insn_tick, estimate_shadow_tick): New functions.
10930         (prune_ready_list): New arg shadows_only_p.  All callers changed.
10931         If true, remove everything that isn't SHADOW_P.  Look up delay
10932         pairs and estimate ticks to avoid scheduling the first insn too early.
10933         (verify_shadows): New function.
10934         (schedule_block): Add machinery to enable backtracking.
10935         (sched_init): Take sched_no_dce into account when setting
10936         DF_LR_RUN_DCE.
10937         (free_delay_pairs): New function.
10938         (init_h_i_d): Initialize INSN_EXACT_TICK.
10939         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
10940         * sched-deps.c (sd_unresolve_dep): New function.
10941         * sched-int. (struct haifa_sched_info): New fields save_state
10942         and restore_state.
10943         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
10944         feeds_backtrack_insn and shadow_p.
10945         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
10946         (sched_no_dce): Declare variable.
10947         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
10948         sd_unresolve_dep): Declare functions.
10949         * modulo-sched.c (sms_sched_info): Clear the two new fields.
10950         * sched-rgn.c (rgn_const_sched_info): Likewise.
10951         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10952         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
10953         (ebb_sched_info): Add them for the two new fields.
10954         (add_deps_for_risky_insns): Call add_delay_dependencies.
10955
10956 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10957
10958         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
10959         Rename -mr11.
10960         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
10961         (rs6000_call_indirect_aix): Ditto.
10962         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
10963         (call_indirect_aix<ptrsize>_internal): Ditto.
10964         (call_indirect_aix<ptrsize>_nor11): Ditto.
10965         (call_indirect_aix<ptrsize>_internal2): Ditto.
10966         (call_value_indirect_aix<ptrsize>): Ditto.
10967         (call_value_indirect_aix<ptrsize>_internal): Ditto.
10968         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10969         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10970         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
10971
10972 2011-07-13  Jason Merrill  <jason@redhat.com>
10973
10974         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
10975
10976 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10977
10978         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
10979         * config/spu/spu.md ("clrsb<mode>2"): New expander.
10980
10981 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
10982
10983         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
10984         * configure: Regenerate.
10985
10986 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10987
10988         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
10989         (asm_file_start): Remove.
10990         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
10991         free_bb_for_insn around code that modifies insns before
10992         restarting df analysis.
10993
10994 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10995
10996         PR target/49541
10997         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
10998         (LINK_SPEC): ... here.
10999
11000 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
11001
11002         * haifa-sched.c (struct sched_block_state): New.
11003         (schedule_block): Move some local variables into such a structure.
11004
11005 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11006
11007         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
11008         * config/i386/t-crtpc: Remove.
11009         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
11010         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
11011         tmake_file.
11012         (x86_64-*-darwin*): Likewise.
11013         (i[34567]86-*-linux*): Likewise.
11014         (x86_64-*-linux*): Likewise.
11015
11016         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
11017         Handle -mpc32, -mpc64, -mpc80.
11018
11019 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11020
11021         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
11022         * config/alpha/t-crtfm: Remove.
11023         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
11024         * config/i386/t-crtfm: Remove.
11025         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
11026         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
11027         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
11028         * config/sparc/t-crtfm: Remove.
11029
11030         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
11031         (alpha*-*-freebsd*): Likewise.
11032         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
11033         (x86_64-*-darwin*): Likewise.
11034         (i[34567]86-*-linux*): Likewise.
11035         (x86_64-*-linux*): Likewise.
11036         (x86_64-*-mingw*): Likewise.
11037         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
11038         (ia64*-*-freebsd*): Likewise.
11039         (ia64*-*-linux*): Likewise.
11040         (mips64*-*-linux*): Likewise.
11041         (mips*-*-linux*): Likewise.
11042         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
11043         (sparc64-*-linux*): Likewise.
11044         (sparc64-*-freebsd*): Likewise.
11045
11046 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11047
11048         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
11049         * config/darwin-crt3.c: Move to ../libgcc/config.
11050         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
11051         ($(T)crt3$(objext)): Remove.
11052         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
11053         ($(T)crt2$(objext)): Remove.
11054         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
11055         (powerpc64-*-darwin*): Likewise.
11056
11057 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
11058
11059         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
11060
11061         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
11062         (addsi_1_zext): This.
11063
11064 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
11065
11066         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
11067         * doc/tm.texi: Regenerate.
11068         * target.def (mergeable_rodata_prefix): New defhookpod.
11069         * varasm.c (mergeable_string_section, mergeable_constant_section):
11070         Use it. Allocate name with alloca.
11071
11072 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
11073
11074         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
11075
11076 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
11077
11078         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
11079         overlap check.
11080
11081 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
11082
11083         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
11084         (count_type_elements): Delete.
11085         (complete_ctor_at_level_p): Declare.
11086         * expr.c (flexible_array_member_p): New function, split out from...
11087         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
11088         parameter with for_ctor_p.  When for_ctor_p is true, return the
11089         number of elements that should appear in the top-level constructor,
11090         otherwise return an estimate of the number of scalars.
11091         (categorize_ctor_elements): Replace p_must_clear with p_complete.
11092         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
11093         (complete_ctor_at_level_p): New function, borrowing union logic
11094         from old categorize_ctor_elements_1.
11095         (mostly_zeros_p): Return true if the constructor is not complete.
11096         (all_zeros_p): Update call to categorize_ctor_elements.
11097         * gimplify.c (gimplify_init_constructor): Update call to
11098         categorize_ctor_elements.  Don't call count_type_elements.
11099         Unconditionally prevent clearing for variable-sized types,
11100         otherwise rely on categorize_ctor_elements to detect
11101         incomplete initializers.
11102
11103 2011-07-13  Richard Guenther  <rguenther@suse.de>
11104
11105         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
11106         the final type is integral.
11107
11108 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
11109
11110         * sched-int.h (struct _dep): Add member cost.
11111         (DEP_COST, UNKNOWN_DEP_COST): New macros.
11112         * sched-deps.c (init_dep_1): Initialize DEP_COST.
11113         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
11114         (sched_change_pattern): Reset it for dependent insns.
11115
11116 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11117
11118         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
11119         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
11120         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
11121         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
11122         (CRT0_S, MCRT0_S): Remove.
11123         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
11124         Remove.
11125         (s-crt0): Remove.
11126         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
11127
11128 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
11129
11130         * cse.c (insert_with_costs): Put semi-colon after empty loop body
11131         on the next line.
11132         * emit-rtl.c (push_to_sequence): Likewise.
11133         * haifa-sched.c (max_issue): Likewise.
11134         * matrix-reorg.c (add_allocation_site): Likewise.
11135         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
11136         * reload.c (alternative_allows_const_pool_ref): Likewise.
11137         * sched-rgn.c (rgn_add_block): Likewise.
11138         (rgn_fix_recovery_cfg): Likewise.
11139         * tree.c (attribute_list_contained): Likewise.
11140
11141 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
11142
11143         * config/i386/i386.c: Tidy processor feature bitmasks.
11144         (m_P4_NOCONA): New.
11145
11146 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
11147
11148         PR rtl-opt/49474
11149         * cprop.c (find_implicit_sets): Correct the condition.
11150
11151 2011-07-12  Richard Henderson  <rth@redhat.com>
11152
11153         PR target/49713
11154         * dwarf2out.h (dwarf_frame_regnum): Remove.
11155         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
11156         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
11157         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
11158         (execute_dwarf2_frame): Initialize them.
11159         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
11160         users of the macros with the variables.
11161         (expand_builtin_dwarf_sp_column): Revert last change.
11162         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
11163         result of DWARF_FRAME_REGNUM into a local variable.
11164
11165 2011-07-12  Richard Henderson  <rth@redhat.com>
11166
11167         PR target/49714
11168         * config/i386/i386.c (x86_output_mi_thunk): Use
11169         machopic_indirect_call_target instead of machopic_indirection_name
11170         directly.
11171
11172 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
11173             Eric Botcazou  <ebotcazou@adacore.com>
11174
11175         * prefix.h: Wrap up in extern "C" block.
11176
11177 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
11178
11179         AMD bdver2 Enablement
11180         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
11181         (case ${target}): Add bdver2.
11182         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11183         -march=native recognize bdver2 processors.
11184         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11185         bdver2 def_and_undef
11186         * config/i386/i386.c (struct processor_costs bdver2_cost): New
11187         bdver2 cost table.
11188         (m_BDVER2): New definition.
11189         (m_AMD_MULTIPLE): Includes m_BDVER2.
11190         (initial_ix86_tune_features): Add bdver2 tuning.
11191         (processor_target_table): Add bdver2 entry.
11192         (static const char *const cpu_names): Add bdver2 entry.
11193         (ix86_option_override_internal): Add bdver2 instruction sets.
11194         (ix86_issue_rate): Add bdver2.
11195         (ix86_adjust_cost): Add bdver2.
11196         (has_dispatch): Add bdver2.
11197         * config/i386/i386.h (TARGET_BDVER2): New definition.
11198         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
11199         (enum processor_type): Add PROCESSOR_BDVER2.
11200         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
11201         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
11202         description.
11203
11204 2011-07-12  Richard Henderson  <rth@redhat.com>
11205
11206         PR target/49714
11207         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
11208         destination address in memory on some paths.
11209
11210 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
11211
11212         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
11213         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
11214         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
11215         * function.c (locate_and_pad_parm): Take it into account.
11216         * target.def (function_arg_round_boundary): New hook.
11217         * targhooks.c (default_function_arg_round_boundary): New function.
11218         * targhooks.h (default_function_arg_round_boundary): Declare.
11219         * doc/tm.texi: Regenerate.
11220
11221 2011-07-12  Richard Guenther  <rguenther@suse.de>
11222
11223         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
11224         Do not perform no-op changes.
11225
11226 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
11227
11228         * config/arm/predicates.md (neon_struct_operand): Make a normal
11229         predicate.
11230         (neon_struct_or_register_operand): New predicate.
11231         * config/arm/neon.md (movmisalign<mode>): Replace predicates
11232         with neon_struct_or_register_operand.
11233         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
11234         neon_struct_operand instead of memory_operand.
11235
11236 2011-07-12  Martin Jambor  <mjambor@suse.cz>
11237
11238         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
11239         * cgraph.c (cgraph_get_node_or_alias): Removed.
11240         (change_decl_assembler_name): Changed all calls to
11241         cgraph_get_node_or_alias to a call to cgraph_get_node.
11242         (cgraph_make_decl_local): Likewise.
11243         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
11244         * varasm.c (default_binds_local_p_1): Likewise.
11245         (decl_binds_to_current_def_p): Likewise.
11246
11247 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
11248
11249         PR tree-optimization/49712
11250         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
11251
11252 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
11253
11254         * genautomata.c (add_arc): Return void.  All callers changed.
11255         (make_automaton): Remove dead code.
11256
11257 2011-07-11  Richard Henderson  <rth@redhat.com>
11258
11259         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
11260         (DW_FRAME_POINTER_REGNUM): New.
11261         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
11262         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
11263         (dwf_regno): New.
11264         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
11265         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
11266         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
11267         Use it.
11268         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
11269         * dwarf2out.h (dwarf_frame_regnum): New.
11270         (struct cfa_loc): Document the domain of the reg member.
11271
11272 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
11273
11274         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
11275         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
11276
11277 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
11278
11279         PR debug/49676
11280         * dwarf2out.c (int_shift_loc_descriptor): New function.
11281         (int_loc_descriptor): If shorter, emit i as
11282         (i >> shift), shift, DW_OP_shl for suitable shift value.
11283         Similarly, try to optimize large negative values using
11284         DW_OP_neg of a positive value if shorter.
11285         (size_of_int_shift_loc_descriptor): New function.
11286         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
11287         changes.
11288         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
11289         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
11290         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
11291         is shorter.
11292         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
11293         addend as added DW_OP_plus if it is shorter.
11294
11295 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11296
11297         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
11298         (DTORS_SECTION_ASM_OP): Define.
11299
11300 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11301
11302         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
11303         * config/t-dfprules: Move to ../libgcc/config.
11304         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
11305         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
11306         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
11307         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
11308         Likewise.
11309         (i[34567]86-*-cygwin*): Likewise.
11310         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
11311         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
11312         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
11313         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
11314         D64PBIT_FUNCS, D128PBIT_FUNCS.
11315
11316 2011-07-11  Richard Guenther  <rguenther@suse.de>
11317
11318         * tree-vrp.c (simplify_conversion_using_ranges): Manually
11319         translate the source value-range through the conversion chain.
11320
11321 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
11322
11323         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
11324
11325 2011-07-11  Arthur Loiret  <aloiret@debian.org>
11326
11327         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
11328         a bi-arch compiler defaulting to 31-bit. In this case:
11329         (tmake_file): Add s390/t-linux64.
11330         * doc/install.texi: Add s390-linux to the list of targets supporting
11331         --enable-targets=all.
11332
11333 2011-07-11  Arthur Loiret  <aloiret@debian.org>
11334             Matthias Klose <doko@debian.org>
11335
11336         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
11337         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
11338         (tm_file): Add mips/linux64.h.
11339         (tmake_file): Add mips/t-linux64.
11340         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
11341         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
11342         instead of hardcoded mabi=n32.
11343         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
11344         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
11345         convention.
11346
11347 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11348
11349         * passes.c (init_optimization_passes): Add invariant motion pass
11350         after induction variable optimization.
11351
11352 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
11353
11354         PR target/39633
11355         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
11356         offsets 1..5 set cc0 in a usable way.
11357
11358 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
11359
11360         * tree.h (call_expr_arg): Remove.
11361         (call_expr_argp): Likewise.
11362
11363 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
11364
11365         * config/sparc/sparc.md (save_register_window_1): Rename to...
11366         (window_save): ...this.
11367         * config/sparc/sparc.c (emit_save_register_window): Rename to...
11368         (emit_window_save): ...this.
11369         (sparc_expand_prologue): Adjust to above renaming.
11370
11371 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
11372
11373         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
11374         of movabs for x32.
11375
11376 2011-07-10  Richard Henderson  <rth@redhat.com>
11377
11378         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
11379         run final, instead of emitting text directly.
11380
11381 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
11382
11383         * config/i386/i386.c (ix86_option_override_internal): Turn on
11384         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
11385         small PIC models for TARGET_X32.
11386
11387 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
11388
11389         PR target/49684
11390         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
11391         $(LIBGCC2_CFLAGS).
11392
11393         PR bootstrap/49680
11394         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
11395         stray notes and debug insns by using prev_nonnote_nondebug_insn
11396         instead of PREV_INSN.
11397
11398 2011-07-09  Richard Henderson  <rth@redhat.com>
11399
11400         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
11401         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
11402         * dwarf2out.c: ... here.
11403         (output_all_cfis): Remove.
11404         (dwarf2out_switch_text_section): Use output_cfis directly.
11405         (size_of_locs): Export.
11406         (output_loc_sequence, output_loc_sequence_raw): Export.
11407         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
11408         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
11409         output_cfa_loc_raw): Move to ...
11410         * dwarfcfi.c: ... here.
11411         * dwarf2out.h: Update decls.
11412
11413 2011-07-09  Richard Henderson  <rth@redhat.com>
11414
11415         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
11416         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
11417         * dwarf2cfi.c: ... here.
11418         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
11419         (DWARF_ROUND, DWARF_CIE_ID): Remove.
11420         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
11421         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
11422         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
11423
11424 2011-07-09  Richard Henderson  <rth@redhat.com>
11425
11426         * dwarf2cfi.c (cie_return_save): New.
11427         (queue_reg_save): Use compare_reg_or_pc.
11428         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
11429         (dwarf2out_frame_debug_expr): Likewise.
11430         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
11431         (initial_return_save): Likewise.
11432         (execute_dwarf2_frame): Save and restore initial return save from
11433         the cie to the fde.
11434         * config/mips/mips.c (mips_frame_set): Remove special case for
11435         DWARF_FRAME_RETURN_COLUMN.
11436
11437 2011-07-09  Richard Henderson  <rth@redhat.com>
11438
11439         * dwarf2cfi.c (lookup_cfa): Remove.
11440         (execute_dwarf2_frame): Assert queues are empty on entry.
11441         Setup initial cfa directly, not via lookup_cfa.
11442         Don't clear args_size state here.
11443
11444 2011-07-09  Richard Henderson  <rth@redhat.com>
11445
11446         * dwarf2cfi.c (add_cfi_vec): New.
11447         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
11448         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
11449         (execute_dwarf2_frame): Set add_cfi_vec.
11450
11451 2011-07-09  Richard Henderson  <rth@redhat.com>
11452
11453         * defaults.h (ASM_COMMENT_START): Move here...
11454         * dwarf2asm.c: ... from here.
11455         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
11456         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
11457         * varasm.c: Likewise.
11458
11459 2011-07-09  Richard Henderson  <rth@redhat.com>
11460
11461         PR debug/49686
11462         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
11463         (create_cfi_notes): ... do it here instead.
11464
11465 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
11466
11467         PR debug/49676
11468         * dwarf2out.c (size_of_int_loc_descriptor): New function.
11469         (address_of_int_loc_descriptor): Use it.
11470         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
11471
11472 2011-07-09  Richard Henderson  <rth@redhat.com>
11473
11474         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
11475         (prologue, epilogue): New.
11476         (return, *rts): New.
11477         (blockage, setd, seti): New.
11478         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11479         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
11480         (pdp11_saved_regno): New.
11481         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
11482         generate rtl instead of text.
11483         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
11484         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
11485         * config/pdp11/pdp11-protos.h: Update.
11486
11487 2011-07-09  Richard Henderson  <rth@redhat.com>
11488
11489         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
11490         try to insert an rtl prologue here.
11491         (rs6000_output_function_epilogue): Similarly.
11492         * config/rs6000/rs6000.md (prologue): Emit a barrier to
11493         satisfy !TARGET_SCHED_PROLOG.
11494         (epilogue, sibcall_epilogue): Likewise.
11495
11496 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
11497
11498         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
11499         (FP_REG_P): Delete.
11500         (IN_OR_GLOBAL_P): Likewise.
11501
11502 2011-07-08  Jason Merrill  <jason@redhat.com>
11503
11504         PR c++/45437
11505         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
11506         compound assignment.
11507
11508         * cgraph.c (cgraph_add_to_same_comdat_group): New.
11509         * cgraph.h: Declare it.
11510         * ipa.c (function_and_variable_visibility): Make sure thunks
11511         have the right visibility.
11512
11513 2011-07-08  Richard Henderson  <rth@redhat.com>
11514
11515         PR bootstrap/49680
11516         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
11517         any tablejump vector.
11518
11519         PR bootstrap/49680
11520         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
11521         end of the prologue.
11522
11523 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
11524
11525         PR target/49621
11526         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
11527         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
11528         * config/rs6000/vector.md (vector_select_<mode>,
11529         vector_select_<mode>_uns): Change second operand of NE to
11530         CONST0_RTX (<MODE>mode) instead of const0_rtx.
11531         * config/rs6000/altivec.md (*altivec_vsel<mode>,
11532         *altivec_vsel<mode>_uns): Expect second operand of NE to be
11533         zero_constant of the corresponding vector mode.
11534         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
11535         Likewise.
11536
11537 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
11538
11539         * graphite-dependences.c (build_alias_set_powerset): Remove
11540         continue from loop, add one more assert.
11541
11542 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
11543
11544         PR target/46779
11545         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
11546         In particular, allow 8-bit values in r28 and r29.
11547         (avr_hard_regno_scratch_ok): Disallow any register that might be
11548         part of the frame pointer.
11549         (avr_hard_regno_rename_ok): Same.
11550         (avr_legitimate_address_p): Don't allow SUBREGs.
11551
11552 2011-07-08  Julian Brown  <julian@codesourcery.com>
11553
11554         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
11555         big-endian mode.
11556         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
11557         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
11558         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
11559         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
11560         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
11561         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
11562         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
11563         registers in big-endian mode.
11564
11565 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
11566
11567         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
11568         in terms of another.
11569         (write_attr_value): Write a cast if necessary.
11570
11571         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
11572         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
11573         (REG_WORDS_BIG_ENDIAN): Document.
11574         * doc/tm.texi: Regenerate.
11575         * reload.c (operands_match_p): Take it into account.
11576         (reload_adjust_reg_for_mode): Likewise.
11577         * rtlanal.c (subreg_get_info): Likewise.
11578
11579 2011-07-08  Richard Guenther  <rguenther@suse.de>
11580
11581         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
11582         folding.
11583
11584 2011-07-08  Kai Tietz  <ktietz@redhat.com>
11585
11586         * fold-const.c (fold_truth_andor): Factored out truth_andor
11587         label from fold_binary as function.
11588         (fold_binary_loc): Replace truth_andor lable
11589         by function fold_truth_andor.
11590
11591 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
11592
11593         PR middle-end/49519
11594         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
11595         check if address is stored in register. If so - give up.
11596         (check_sibcall_argument_overlap_1): Do not perform check of
11597         overlapping when it is call to address.
11598
11599 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
11600
11601         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
11602         of magic '31'.
11603
11604 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
11605
11606         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
11607         GET_MODE_BITSIZE where appropriate.
11608         (widen_leading, expand_parity, expand_ctz, expand_ffs,
11609         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
11610         expand_float, expand_fix): Likewise.
11611         * expr.c (convert_move, convert_modes, expand_expr_real_2,
11612         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
11613         * stor-layout.c (get_mode_bounds): Likewise.
11614         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
11615         Likewise.
11616         * convert.c (convert_to_integer): Likewise.
11617         * expmed.c (expand_shift_1): Likewise.
11618
11619         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
11620         a bitsize.
11621
11622         * optabs.c (expand_binop): Tighten conditions for doubleword
11623         expansions.
11624         (widen_bswap): Assert that mode bitsize and precision are the same.
11625         * stor-layout.c (get_best_mode): Skip modes that have lower
11626         precision than bitsize.
11627         * recog.c (simplify_while_replacing): Assert that bitsize and
11628         precision are the same.
11629
11630 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11631
11632         * Makefile.in (LIBGCOV): Remove.
11633         (libgcc.mvars): Remove LIBGCOV.
11634         * libgov.c: Move to ../libgcc.
11635
11636 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11637
11638         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
11639
11640 2011-07-08  Martin Jambor  <mjambor@suse.cz>
11641
11642         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
11643         is too big for total scalarization.
11644
11645 2011-07-07  Richard Henderson  <rth@redhat.com>
11646
11647         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
11648         (DBX_DEBUGGING_INFO): Undef.
11649
11650 2011-07-07  Richard Henderson  <rth@redhat.com>
11651
11652         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
11653         Handle some opcodes specially for debugging.
11654         * print-rtl.c: Include dwarf2out.h
11655         (print_rtx): Handle NOTE_INSN_CFI.
11656         * Makefile.in (print-rtl.o): Update.
11657
11658 2011-07-07  Richard Henderson  <rth@redhat.com>
11659
11660         * tree-pass.h (pass_dwarf2_frame): Declare.
11661         * passes.c (init_optimization_passes): Add it.
11662         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
11663         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
11664         make static, do not call add_cfis_to_fde.
11665         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
11666         dwarf2out_frame_init): Merge into...
11667         (execute_dwarf2_frame): ... here.  New function.
11668         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
11669         saved_do_cfi_asm to a tri-state variable.
11670         (gate_dwarf2_frame, pass_dwarf2_frame): New.
11671         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
11672         if it has yet to be done.  Don't call dwarf2cfi_function_init.
11673         * dwarf2out.h, debug.h: Update decls.
11674         * final.c (final_start_function): Don't call
11675         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
11676         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
11677         * toplev.c (lang_dependent_init): Likewise.
11678
11679 2011-07-07  Richard Henderson  <rth@redhat.com>
11680
11681         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
11682         FDE_TABLE_INCREMENT): Replace with...
11683         (fde_vec): ... this, a new vector.
11684         (current_fde): Remove.  Replace all users with cfun->fde.
11685         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
11686         (size_of_aranges, dwarf2out_finish): Likewise.
11687         (dwarf2out_alloc_current_fde): Break out from ...
11688         (dwarf2out_begin_prologue): ... here.
11689         (dwarf2out_frame_init): Remove.
11690         * dwarf2cfi.c: Update all users of current_fde.
11691         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
11692         * dwarf2out.h: Update decls.
11693         (dw_fde_node): Add fde_index member.
11694         * function.h (struct function): Add fde member.
11695
11696 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11697             Richard Henderson  <rth@redhat.com>
11698
11699         * dwarf2cfi.c (add_cfi): Remove.
11700         (dwarf2out_cfi_label): Remove force argument.  Only generate the
11701         label name.
11702         (add_fde_cfi): Simplify the different code paths.
11703         (add_cie_cfi): New.
11704         (old_cfa, old_cfa_remember): New.
11705         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
11706         (last_reg_save_label): Remove.
11707         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
11708         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11709         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11710         dwarf2out_frame_debug_cfa_expression,
11711         dwarf2out_frame_debug_cfa_restore,
11712         dwarf2out_frame_debug_cfa_window_save,
11713         dwarf2out_frame_debug_expr): Remove label parameter.
11714         (cfi_label_required_p, add_cfis_to_fde): New.
11715         (dwarf2out_frame_debug_after_prologue): New.
11716         (dwarf2cfi_frame_init): Initialize old_cfa.
11717         (dwarf2out_frame_debug_restore_state): Likewise.
11718         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
11719         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
11720         * final.c (final_start_function): Call
11721         dwarf2out_frame_debug_after_prologue.
11722
11723 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11724             Richard Henderson  <rth@redhat.com>
11725
11726         * dwarf2cfi.c (cfi_insn): New.
11727         (dwarf2out_cfi_label): Don't emit cfi label here.
11728         (add_fde_cfi): Create a NOTE_INSN_CFI.
11729         (dwarf2out_frame_debug): Setup cfi_insn.
11730         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
11731         (dwarf2out_cfi_begin_epilogue): Make static.
11732         (dwarf2out_frame_debug_restore_state): Make static.
11733         * dwarf2out.c (output_cfi_directive): Make static.
11734         (dwarf2out_emit_cfi): New.
11735         * dwarf2out.h: Update.
11736         * final.c (final): Remove CFI notes.
11737         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
11738         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
11739         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
11740         * insn-notes.def (NOTE_INSN_CFI): New.
11741         (NOTE_INSN_CFI_LABEL): New.
11742         * rtl.h (union rtunion_def): Add rt_cfi member.
11743         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
11744
11745 2011-07-07  Richard Henderson  <rth@redhat.com>
11746
11747         * dwarf2cfi.c: New file.
11748         * Makefile.in (OBJS): Add it.
11749         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
11750         * gengtype.c (open_base_files): Include dwarf2out.h.
11751         * coretypes.h (enum var_init_status): Move from ...
11752         * rtl.h: ... here.
11753         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
11754         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
11755         expand_builtin_dwarf_sp_column, init_return_column_size,
11756         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
11757         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
11758         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
11759         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
11760         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
11761         compute_barrier_args_size, dwarf2out_args_size,
11762         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
11763         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
11764         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
11765         queue_reg_save, dwarf2out_flush_queued_reg_saves,
11766         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
11767         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11768         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11769         dwarf2out_frame_debug_cfa_expression,
11770         dwarf2out_frame_debug_cfa_restore,
11771         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
11772         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
11773         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
11774         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
11775         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
11776         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
11777         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
11778         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
11779         dw_loc_descr_node): Move to dwarf2out.h.
11780         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
11781         mem_loc_descriptor): Export.
11782         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
11783         (dwarf2out_frame_init): Extract CIE generation code to
11784         dwarf2cfi_frame_init.
11785
11786 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
11787
11788         PR target/49660
11789         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
11790         MASK_V8PLUS, remove commented out flag and reorder.
11791
11792 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11793
11794         PR c/49644
11795         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
11796         one non-complex and one complex argument, call c_save_expr on both
11797         operands.
11798
11799 2011-07-07  Martin Jambor  <mjambor@suse.cz>
11800
11801         PR middle-end/49495
11802         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
11803         (verify_cgraph_node): Some functinality moved to
11804         verify_edge_corresponds_to_fndecl, call it.
11805
11806 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11807
11808         * config.gcc (*local*): Remove.
11809         * doc/install-old.texi: Don't mention local configurations.
11810
11811 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11812
11813         PR debug/49522
11814         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
11815         referencing debug insns that have been reset.
11816         (dead_debug_insert_before): Don't assert reg is non-NULL,
11817         instead return immediately if it is NULL.
11818
11819 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11820
11821         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
11822
11823 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11824
11825         * hw-doloop.c: New file.
11826         * hw-doloop.h: New file.
11827         * Makefile.in (OBJS): Add hw-doloop.o.
11828         (hw-doloop.o): New rule.
11829         ($(obj_out_file)): Add hw-doloop.h dependency.
11830         * config/bfin/bfin.c: Include "hw-doloop.h".
11831         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
11832         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
11833         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
11834         type changed to hwloop_info.  Return bool, true if the loop was
11835         successfully optimized.  Remove code that was moved to
11836         hw-doloop.c, and adjust other parts.
11837         (hwloop_fail): New static function, containing parts that used
11838         to be in bfin_optimize_loop.
11839         (bfin_discover_loop, bfin_discover_loops, free_loops,
11840         bfin_reorder_loops): Remove.
11841         (hwloop_pattern_reg): New static function.
11842         (bfin_doloop_hooks): New variable.
11843         (bfin_reorg_loops): Remove most code, call reorg_loops.
11844         * config/bfin/bfin.md (doloop_end splitter): Also enable if
11845         loop counter is a memory_operand.
11846
11847 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11848
11849         * config.gcc: Support --with-multilib-list for x86 Linux targets.
11850
11851         * configure.ac: Mention x86-64 for --with-multilib-list.
11852         * configure: Regenerated.
11853
11854         * config/i386/gnu-user64.h (SPEC_64): Support x32.
11855         (SPEC_32): Likewise.
11856         (ASM_SPEC): Likewise.
11857         (LINK_SPEC): Likewise.
11858         (TARGET_THREAD_SSP_OFFSET): Likewise.
11859         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
11860         (SPEC_X32): New.
11861
11862         * config/i386/i386.h (TARGET_X32): New.
11863         (TARGET_LP64): New.
11864         (LONG_TYPE_SIZE): Likewise.
11865         (POINTER_SIZE): Likewise.
11866         (POINTERS_EXTEND_UNSIGNED): Likewise.
11867         (OPT_ARCH64): Support x32.
11868         (OPT_ARCH32): Likewise.
11869
11870         * config/i386/i386.opt (mx32): New.
11871
11872         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
11873         (GLIBC_DYNAMIC_LINKERX32): Likewise.
11874         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
11875         (GLIBC_DYNAMIC_LINKERX32): Likewise.
11876
11877         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
11878         (BIONIC_DYNAMIC_LINKERX32): Likewise.
11879         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
11880
11881         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
11882
11883         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
11884
11885         * doc/invoke.texi: Document -mx32.
11886
11887 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
11888
11889         * doc/invoke.texi (mwords-little-endian): Deprecate.
11890         * config/arm/arm.opt (mwords-little-endian): Likewise.
11891         * config/arm/arm.c (arm_option_override): Warn about the deprecation
11892         of -mwords-little-endian.
11893
11894 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
11895
11896         * reload1.c (choose_reload_regs): Use mode sizes to check whether
11897         an old reload register completely defines the required value.
11898
11899 2011-07-07  Richard Guenther  <rguenther@suse.de>
11900
11901         * fold-const.c (fold_unary_loc): Do not strip sign-changes
11902         for NEGATE_EXPR.
11903
11904 2011-07-07  Richard Guenther  <rguenther@suse.de>
11905
11906         * tree-vrp.c (simplify_conversion_using_ranges): New function.
11907         (simplify_stmt_using_ranges): Call it.
11908
11909 2011-07-07  Kai Tietz  <ktietz@redhat.com>
11910
11911         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
11912         (lookup_logical_inverted_value): Likewise.
11913         (simplify_bitwise_binary_1): Likewise.
11914         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
11915
11916 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11917
11918         * gcc.c (%[Spec]): Don't document.
11919         (struct spec_list): Update comment.
11920         (do_spec_1): Don't handle %[Spec].
11921         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
11922
11923 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11924
11925         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
11926         default based on TARGET_ASM_NAMED_SECTION.
11927         * common/common-target.def (have_named_sections): Default to true.
11928         * common/config/default-common.c: Don't include tm.h.
11929         * common/config/picochip/picochip-common.c
11930         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
11931         * common/config/m32c/m32c-common.c: Remove.
11932         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
11933         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11934         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11935         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11936         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11937         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11938         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11939
11940 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11941
11942         PR middle-end/49640
11943         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
11944         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
11945
11946 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11947
11948         PR libmudflap/49550
11949         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
11950
11951 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11952
11953         PR target/39150
11954         * configure.ac (gcc_cv_as_hidden): Also accept
11955         x86_64-*-solaris2.1[0-9]*.
11956         (gcc_cv_as_cfi_directive): Likewise.
11957         (gcc_cv_as_comdat_group_group): Likewise.
11958         (set_have_as_tls): Likewise.
11959         * configure: Regenerate.
11960         * config.gcc (i[34567]86-*-solaris2*): Also handle
11961         x86_64-*-solaris2.1[0-9]*.
11962         * config.host (i[34567]86-*-solaris2*): Likewise.
11963         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
11964         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
11965         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
11966         (TARGET_LD_EMULATION): Use it.
11967         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
11968         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
11969         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
11970         (ASM_CPU64_DEFAULT_SPEC): Define.
11971         (ASM_CPU_SPEC): Use %(asm_cpu_default).
11972         (ASM_SPEC): Redefine.
11973         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
11974         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
11975         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
11976         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
11977         configuration.
11978         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
11979
11980 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11981
11982         * config/sol2.h (ASM_SPEC): Split into ...
11983         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
11984         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
11985         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
11986         (ASM_SPEC): Use ASM_SPEC_BASE.
11987         * config/sparc/sol2.h (ASM_SPEC): Redefine.
11988
11989 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
11990
11991         * config/avr/avr.md (*reload_insi): Change predicate #1 to
11992         const_int_operand.  Ditto for peep2 producing this insn.
11993         Add argument to output_reload_insisf call.
11994         (*movsi,*movsf): Add argument to output_movsisf call.
11995         (*reload_insf): New insn and new peep2 to produce it.
11996         * config/avr/avr-protos.h (output_movsisf): Change prototype.
11997         (output_reload_insisf): Change prototype.
11998         * config/avr/avr.c (avr_asm_len): New function.
11999         (output_reload_insisf): Rewrite.
12000         (output_movsisf): Change prototype.  output_reload_insisf for
12001         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
12002         (adjust_insn_length): Add argument to output_movsisf and
12003         output_reload_insisf call.
12004
12005 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
12006
12007         * emit-rtl.c (paradoxical_subreg_p): New function.
12008         * rtl.h (paradoxical_subreg_p): Declare.
12009         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
12010         apply_distributive_law, simplify_comparison, simplify_set): Use it.
12011         * cse.c (record_jump_cond, cse_insn): Likewise.
12012         * expr.c (force_operand): Likewise.
12013         * rtlanal.c (num_sign_bit_copies1): Likewise.
12014         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
12015         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
12016         (push_reload): Use precision to check for paradoxical subregs.
12017         * expmed.c (extract_bit_field_1): Likewise.
12018
12019         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
12020         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
12021         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
12022         simplify_set, simplify_logical, expand_compound_operation,
12023         make_extraction, force_to_mode, if_then_else_cond, extended_count,
12024         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
12025         record_value_for_reg): Likewise.
12026         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
12027         * simplify-rtx. c (simplify_unary_operation_1,
12028         simplify_binary_operation_1, simplify_const_relational_operation):
12029         Likewise.
12030
12031         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
12032         instead of GET_MODE_BITSIZE where appropriate.
12033         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
12034         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
12035         init_num_sign_bit_copies_in_rep): Likewise.
12036         * cse.c (fold_rtx, cse_insn): Likewise.
12037         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
12038         * simplify-rtx.c (simplify_unary_operation_1,
12039         simplify_const_unary_operation, simplify_binary_operation_1,
12040         simplify_const_binary_operation, simplify_ternary_operation,
12041         simplify_const_relational_operation, simplify_subreg): Likewise.
12042         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
12043         simplify_if_then_else, simplify_set, expand_compound_operation,
12044         expand_field_assignment, make_extraction, if_then_else_cond,
12045         make_compound_operation, force_to_mode, make_field_assignment,
12046         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
12047         extended_count, try_widen_shift_mode, simplify_shift_const_1,
12048         simplify_comparison, record_promoted_value, simplify_compare_const,
12049         record_dead_and_set_regs_1): Likewise.
12050
12051         Revert:
12052         * simplify-rtx.c (simplify_const_binary_operation): Use the
12053         shift_truncation_mask hook instead of performing modulo by width.
12054         Compare against mode precision, not bitsize.
12055         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
12056         Use shift_truncation_mask instead of constructing the value manually.
12057
12058 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
12059
12060         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
12061         declaration.
12062         (rs6000_save_toc_in_prologue_p): Ditto.
12063
12064         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
12065         up the static chain (r11) during indirect function calls.
12066         (-msave-toc-indirect): New undocumented debug switch.
12067
12068         * config/rs6000/rs6000.c (struct machine_function): Add
12069         save_toc_in_prologue field to note whether the prologue needs to
12070         save the TOC value in the reserved stack location.
12071         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
12072         to save the TOC in the prologue, do so.
12073         (rs6000_trampoline_init): Don't allow creating AIX style
12074         trampolines if -mno-r11 is in effect.
12075         (rs6000_call_indirect_aix): New function to create AIX style
12076         indirect calls, adding support for -mno-r11 to suppress loading
12077         the static chain, and saving the TOC in the prologue instead of
12078         the call body.
12079         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
12080         TOC in the prologue.
12081
12082         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
12083         register numbers.
12084         (TOC_REGNUM): Ditto.
12085         (STATIC_CHAIN_REGNUM): Ditto.
12086         (ARG_POINTER_REGNUM): Ditto.
12087         (SFP_REGNO): Delete, unused.
12088         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
12089         function descriptor offsets.
12090         (TOC_SAVE_OFFSET_64BIT): Ditto.
12091         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
12092         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
12093         (AIX_FUNC_DESC_SC_32BIT): Ditto.
12094         (AIX_FUNC_DESC_SC_64BIT): Ditto.
12095         (ptrload): New mode attribute for the appropriate load of a pointer.
12096         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
12097         (call_indirect_aix64): Ditto.
12098         (call_value_indirect_aix32): Ditto.
12099         (call_value_indirect_aix64): Ditto.
12100         (call_indirect_nonlocal_aix32_internal): Ditto.
12101         (call_indirect_nonlocal_aix32): Ditto.
12102         (call_indirect_nonlocal_aix64_internal): Ditto.
12103         (call_indirect_nonlocal_aix64): Ditto.
12104         (call): Rewrite AIX indirect function calls.  Add support for
12105         eliminating the static chain, and for moving the save of the TOC
12106         to the function prologue.
12107         (call_value): Ditto.
12108         (call_indirect_aix<ptrsize>): Ditto.
12109         (call_indirect_aix<ptrsize>_internal): Ditto.
12110         (call_indirect_aix<ptrsize>_internal2): Ditto.
12111         (call_indirect_aix<ptrsize>_nor11): Ditto.
12112         (call_value_indirect_aix<ptrsize>): Ditto.
12113         (call_value_indirect_aix<ptrsize>_internal): Ditto.
12114         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
12115         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
12116         (call_nonlocal_aix32): Relocate in the rs6000.md file.
12117         (call_nonlocal_aix64): Ditto.
12118
12119         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
12120         -mno-r11 documentation.
12121
12122 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
12123
12124         PR other/49658
12125         * doc/extend.texi (Compound Literals): Fix typo.
12126
12127 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
12128
12129         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
12130
12131 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
12132
12133         * configure.ac (plugin-version.h): Generate
12134         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
12135         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
12136         macros.
12137
12138         * configure: Regenerate.
12139
12140         * doc/plugins.texi (Building GCC plugins): Mention
12141         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
12142
12143 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
12144
12145         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
12146         * combine.c (make_extraction, gen_lowpart_or_truncate,
12147         apply_distributive_law, simplify_comparison,
12148         reg_truncated_to_mode, record_truncated_value): Use it.
12149         * cse.c (notreg_cost): Likewise.
12150         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
12151         * expr.c (convert_move, convert_modes): Likewise.
12152         * optabs.c (expand_binop, expand_unop): Likewise.
12153         * postreload.c (move2add_last_label): Likewise.
12154         * regmove.c (optimize_reg_copy_3): Likewise.
12155         * rtlhooks.c (gen_lowpart_general): Likewise.
12156         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12157
12158 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
12159
12160         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
12161
12162 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
12163
12164         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
12165         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
12166         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
12167         (simplify_const_unary_operation, simplify_binary_operation_1,
12168         simplify_const_binary_operation, simplify_const_relational_operation):
12169         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
12170         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
12171         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
12172         simplify_shift_const_1, simplify_comparison): Likewise.
12173         * expr.c (convert_modes): Likewise.
12174         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
12175         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
12176         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
12177
12178         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
12179
12180 2011-07-06  Richard Guenther  <rguenther@suse.de>
12181
12182         PR tree-optimization/49645
12183         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
12184         register variables.
12185         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
12186         in type qualification here ...
12187         (copy_reference_ops_from_ref): ... not here.
12188         (vn_reference_lookup_3): ... or here.
12189         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
12190         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
12191
12192 2011-07-06  Ian Lance Taylor  <iant@google.com>
12193
12194         * doc/install.texi (Configuration): It's
12195         --enable-gnu-indirect-function, not --enable-indirect-function.
12196
12197 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
12198
12199         * simplify-rtx.c (simplify_const_binary_operation): Use the
12200         shift_truncation_mask hook instead of performing modulo by width.
12201         Compare against mode precision, not bitsize.
12202         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
12203         Use shift_truncation_mask instead of constructing the value manually.
12204
12205 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
12206
12207         PR middle-end/47383
12208         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
12209         address computation and convert to address_mode if needed.
12210
12211 2011-07-06  Richard Guenther  <rguenther@suse.de>
12212
12213         * tree.c (build_common_tree_nodes_2): Merge with
12214         build_common_tree_nodes.
12215         * tree.h (build_common_tree_nodes): Adjust prototype.
12216         (build_common_tree_nodes_2): Remove.
12217         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
12218         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
12219
12220 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
12221
12222         PR tree-optimization/49618
12223         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
12224         t recurse on the decl.
12225         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
12226         return true if expr isn't known to be defined in current
12227         TU or some other LTO partition.
12228
12229 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
12230
12231         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
12232         override CASE_VALUES_THRESHOLD.
12233
12234         * stmt.c (toplevel): Include params.h.
12235         (case_values_threshold): Use the --param case-values-threshold
12236         value if non-zero, otherwise use machine dependent value.
12237         (expand_case): Use case_values_threshold.
12238
12239         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
12240
12241         * doc/invoke.texi (--param case-values-threshold): Document.
12242
12243 2011-07-05  Richard Henderson  <rth@redhat.com>
12244
12245         * dwarf2out.c (dwarf2out_cfi_label): Make static.
12246         (dwarf2out_flush_queued_reg_saves): Make static.
12247         (dwarf2out_reg_save): Remove.
12248         (dwarf2out_return_save): Remove.
12249         (dwarf2out_return_reg): Remove.
12250         (dwarf2out_reg_save_reg): Remove.
12251         (dwarf2out_def_cfa): Merge into ...
12252         (dwarf2out_frame_init): ... here.
12253         * dwarf2out.h, tree.h: Remove declarations as necessary.
12254
12255 2011-07-05  Richard Henderson  <rth@redhat.com>
12256
12257         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
12258         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12259         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
12260         the alloc insn.
12261
12262         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
12263         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
12264         (process_epilogue): Don't call dwarf2out_def_cfa.
12265
12266         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
12267         indicate the return address save.
12268         (process_cfa_register): Likewise.
12269
12270         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
12271         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
12272
12273         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
12274         for ar.pfs save at alloc insn.
12275
12276 2011-07-05  Richard Henderson  <rth@redhat.com>
12277
12278         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
12279         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12280         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
12281         stack pointer save.
12282         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
12283         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
12284         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
12285         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
12286
12287 2011-07-05  Richard Henderson  <rth@redhat.com>
12288
12289         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
12290         VUNSPEC_* constants here instead of via define_constants.
12291         (VUNSPEC_PEM): New constant.
12292         (procedure_entry_mask): New insn.
12293         (prologue): New expander.
12294         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
12295         (vax_expand_prologue): Rename from vax_output_function_prologue;
12296         emit rtl instead of text.
12297         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
12298         (print_operand): Add 'x' prefix.
12299
12300 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
12301
12302         PR middle-end/47715
12303         * calls.c (precompute_register_parameters): Promote the function
12304         argument before checking non-legitimate constant.
12305
12306 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12307
12308         PR tree-optimization/47654
12309         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
12310         (lst_do_strip_mine_loop): Return an int.
12311         (lst_do_strip_mine): Same.
12312         (scop_do_strip_mine): Same.
12313         (scop_do_block): Loop blocking should strip-mine at least two loops.
12314         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
12315         (scop_do_interchange): Same.
12316         * graphite-poly.h (scop_do_interchange): Update declaration.
12317         (scop_do_strip_mine): Same.
12318
12319 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12320
12321         * graphite-clast-to-gimple.c (precision_for_value): Removed.
12322         (precision_for_interval): Removed.
12323         (gcc_type_for_interval): Use mpz_sizeinbase.
12324
12325 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12326
12327         * graphite-ppl.h (value_max): Correct computation of max.
12328
12329 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12330
12331         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
12332
12333 2011-07-05  Richard Guenther  <rguenther@suse.de>
12334
12335         * c-decl.c (c_init_decl_processing): Defer building common
12336         tree nodes to c_common_nodes_and_builtins.
12337
12338 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
12339
12340         PR tree-optimization/49580
12341         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12342         the loop's number of iterations.
12343         * tree-parloops.c (transform_to_exit_first_loop): Add the
12344         handling of the loop's number of iterations before the call
12345         to gimple_duplicate_sese_tail.
12346         Insert the stmt caclculating the new rhs of the loop's
12347         condition stmt to the preheader instead of iters_bb.
12348
12349 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
12350
12351         PR rtl-optimization/47449
12352         * fwprop.c (forward_propagate_subreg): Don't propagate hard
12353         register nor zero/sign extended hard register.
12354
12355 2011-07-05  Richard Guenther  <rguenther@suse.de>
12356
12357         PR tree-optimization/49518
12358         PR tree-optimization/49628
12359         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
12360         irrelevant and invariant data-references.
12361         (vect_analyze_data_ref_access): For invariant loads clear the
12362         group association.
12363
12364 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
12365
12366         PR rtl-optimization/49619
12367         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
12368         pass VOIDmode as op0_mode to recursive call, and return temp even
12369         when different from tor, just if it is not IOR of the original
12370         PLUS arguments.
12371
12372         PR rtl-optimization/49472
12373         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
12374         negating MULT, negate the second operand instead of first.
12375         (simplify_binary_operation_1) <case MULT>: If one operand is
12376         a NEG and the other is MULT, don't attempt to optimize by negation
12377         of the MULT operand if it only moves the NEG operation around.
12378
12379         PR debug/49602
12380         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
12381         get_current_def return value if it can't be trusted to be
12382         the current value of the variable in the current bb.
12383
12384 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
12385
12386         PR target/49600
12387         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
12388         general register to memory for !TARGET_INTER_UNIT_MOVES.
12389
12390 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12391
12392         PR target/44643
12393         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
12394         instead of TREE_READONLY.
12395
12396 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12397
12398         * doc/extend.texi (AVR Built-in Functions): Update documentation
12399         of __builtin_avr_fmul*.
12400         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
12401         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
12402         * config/avr/avr.md (fmul): Rename to fmul_insn.
12403         (fmuls): Rename to fmuls_insn.
12404         (fmulsu): Rename to fmulsu_insn.
12405         (fmul,fmuls,fmulsu): New expander.
12406         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
12407         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
12408         * config/avr/libgcc.S (__fmul): New function.
12409         (__fmuls): New function.
12410         (__fmulsu,__fmulsu_exit): New function.
12411
12412 2011-07-04  Richard Guenther  <rguenther@suse.de>
12413
12414         PR tree-optimization/49615
12415         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
12416         basic-block index check.
12417
12418 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12419
12420         * longlong.h (count_leading_zeros, count_trailing_zeros,
12421         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
12422         resp. 64.
12423
12424 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
12425
12426         PR tree-optimization/49610
12427         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
12428         a basic block.
12429
12430 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12431             Olivier Hainque  <hainque@adacore.com>
12432             Nicolas Setton  <setton@adacore.com>
12433
12434         * tree.h (TYPE_ARTIFICIAL): New flag.
12435         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
12436         the DIE of the type if it is artificial.
12437         (gen_array_type_die): Likewise.
12438         (gen_enumeration_type_die): Likewise.
12439         (gen_struct_or_union_type_die): Likewise.
12440         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
12441         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
12442
12443 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
12444
12445         * tree-object-size.c (pass_through_call): Handle
12446         BUILT_IN_ASSUME_ALIGNED.
12447
12448 2011-07-01  Martin Jambor  <mjambor@suse.cz>
12449
12450         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
12451
12452 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
12453
12454         PR middle-end/48016
12455         * explow.c (update_nonlocal_goto_save_area): Use proper mode
12456         for stack save area.
12457         * function.c (expand_function_start): Likewise.
12458
12459 2011-07-01  Richard Guenther  <rguenther@suse.de>
12460
12461         PR middle-end/49596
12462         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
12463         may have unknown refs.
12464
12465 2011-07-01  Kai Tietz  <ktietz@redhat.com>
12466
12467         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
12468
12469 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12470
12471         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
12472         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
12473         (Specific, mips-sgi-irix6): Likewise.
12474
12475 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12476
12477         PR libmudflap/49549
12478         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
12479
12480 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
12481
12482         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
12483         [idx]= and [idx1 ... idx2]= before initializers if needed for
12484         array initializers.
12485
12486 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
12487
12488         * config.gcc (score-*-elf): Remove score7.o.
12489         * config/score/t-score-elf: Likewise.
12490         * config/score/score.c: Merge score7 to score.c and
12491         remove forwarding functions.
12492         * config/score/score7.c: Deleted.
12493         * config/score/score7.h: Deleted.
12494
12495 2011-07-01  Richard Guenther  <rguenther@suse.de>
12496
12497         PR tree-optimization/49603
12498         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
12499
12500 2011-06-30  Martin Jambor  <mjambor@suse.cz>
12501
12502         * tree-sra.c (struct access): Rename total_scalarization to
12503         grp_total_scalarization
12504         (completely_scalarize_var): New function.
12505         (sort_and_splice_var_accesses): Set total_scalarization in the
12506         representative access.
12507         (analyze_access_subtree): Propagate total scalarization accross the
12508         tree, no holes in totally scalarized trees, simplify coverage
12509         computation.
12510         (analyze_all_variable_accesses): Call completely_scalarize_var instead
12511         of completely_scalarize_record.
12512
12513 2011-06-30  Richard Henderson  <rth@redhat.com>
12514
12515         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
12516         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
12517         * config/i386/i386.c: Don't include dwarf2out.h.
12518         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
12519         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
12520         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
12521         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
12522         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
12523
12524 2011-06-30  Richard Henderson  <rth@redhat.com>
12525
12526         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
12527         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12528         * final.c (final_scan_insn): Look for it, and invoke
12529         dwarf2out_frame_debug before the insn if found.
12530
12531 2011-06-30  Richard Henderson  <rth@redhat.com>
12532
12533         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
12534         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
12535
12536 2011-06-30  Richard Henderson  <rth@redhat.com>
12537
12538         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
12539         Define a vector of this type.
12540         (regs_saved_in_regs): Use a VEC.
12541         (num_regs_saved_in_regs): Remove.
12542         (compare_reg_or_pc): New.
12543         (record_reg_saved_in_reg): Split out from...
12544         (dwarf2out_flush_queued_reg_saves): ... here.
12545         (clobbers_queued_reg_save): Update for VEC.
12546         (reg_saved_in): Likewise.
12547         (dwarf2out_frame_debug_init): Likewise.
12548         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
12549         (dwarf2out_frame_debug_cfa_register): Likewise.
12550
12551 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12552
12553         PR tree-optimization/49572
12554         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
12555         type of the RHS instead of that of the LHS for the expression type.
12556
12557 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12558
12559         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
12560         unconditionally.
12561
12562 2011-06-30  Richard Guenther  <rguenther@suse.de>
12563
12564         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
12565         * tree-ssa-structalias.c (create_variable_info_for): Do not
12566         add initial constraints for non-var-decls.  Properly handle
12567         globals in other ltrans partitions.
12568         (intra_create_variable_infos): Manually create constraints for
12569         the fake no-alias parameter.
12570         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
12571         and assert there are no clones.
12572
12573 2011-06-30  Richard Guenther  <rguenther@suse.de>
12574
12575         PR tree-optimization/46787
12576         * tree-data-ref.c (dr_address_invariant_p): Remove.
12577         (find_data_references_in_stmt): Invariant accesses are ok now.
12578         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
12579         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12580         invariant loads.
12581
12582 2011-06-30  Martin Jambor  <mjambor@suse.cz>
12583
12584         PR tree-optimization/49094
12585         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
12586         (build_accesses_from_assign): Use it.
12587
12588 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
12589
12590         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12591         handling of BUILT_IN_ASSUME_ALIGNED.
12592
12593         PR debug/49364
12594         * dwarf2out.c (output_abbrev_section): Don't return early
12595         if abbrev_die_table_in_use is 1.
12596         (dwarf2out_finish): Instead don't call output_abbrev_section
12597         nor emit abbrev_section_label in that case.
12598
12599 2011-06-30  Nick Clifton  <nickc@redhat.com>
12600
12601         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
12602         for the V850E.
12603
12604 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
12605
12606         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12607         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
12608
12609 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
12610
12611         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
12612         both pattern and original statements if necessary.
12613         (vect_transform_loop): Likewise.
12614         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
12615         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
12616         Mark the pattern statement only if the original statement doesn't
12617         have its own uses.
12618         (process_use): Call vect_mark_relevant with additional parameter.
12619         (vect_mark_stmts_to_be_vectorized): Likewise.
12620         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
12621         (vect_analyze_stmt): Handle both pattern and original statements
12622         if necessary.
12623         (vect_transform_stmt): Don't store vectorized pattern statement
12624         in the original statement.
12625         (vect_is_simple_use_1): Use related pattern statement only if the
12626         original statement is irrelevant.
12627         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
12628
12629 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
12630
12631         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
12632         option.
12633         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
12634         entry.
12635         (TARGET_AVX128_OPTIMAL): New definition.
12636         * config/i386/i386.c (initial_ix86_tune_features): Initialize
12637         X86_TUNE_AVX128_OPTIMAL entry.
12638         (ix86_option_override_internal): Enable the generation
12639         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
12640         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
12641         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
12642
12643 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12644
12645         PR tree-optimization/49539
12646         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
12647         names by means of stmt_references_abnormal_ssa_name.
12648         (associate_plusminus): Call can_propagate_from before propagating
12649         from definition statements.
12650         (ssa_forward_propagate_and_combine): Remove superfluous newline.
12651
12652 2011-06-29  Richard Guenther  <rguenther@suse.de>
12653
12654         * doc/invoke.texi: Document -scev dump modifier.
12655         * tree-pass.h (TDF_SCEV): New dump flag.
12656         * tree-dump.c (dump_option_value_in): Add scev.
12657         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
12658         * tree-scalar-evolution.c: Likewise.
12659
12660 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
12661
12662         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
12663         (cxa_type_match): Correct declaration.
12664         (__gnu_unwind_pr_common): Reconstruct additional indirection
12665         when __cxa_type_match returns succeeded_with_ptr_to_base.
12666
12667 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12668
12669         PR rtl-optimization/49114
12670         * reload.c (struct replacement): Remove SUBREG_LOC member.
12671         (push_reload): Do not set it.
12672         (push_replacement): Likewise.
12673         (subst_reload): Remove dead code.
12674         (copy_replacements): Remove assertion.
12675         (copy_replacements_1): Do not handle SUBREG_LOC.
12676         (move_replacements): Likewise.
12677         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
12678         Detect subregs via recursive descent instead of via SUBREG_LOC.
12679
12680 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12681
12682         * config/avr/avr.c (avr_encode_section_info): Dispatch to
12683         default_encode_section_info.
12684
12685 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
12686
12687         PR tree-optimization/49545
12688         * builtins.c (get_object_alignment_1): Update function comment.
12689         Do not use DECL_ALIGN for functions, but test
12690         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
12691         * fold-const.c (get_pointer_modulus_and_residue): Don't check
12692         for functions here.
12693         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
12694
12695 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
12696
12697         PR debug/49567
12698         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
12699         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
12700
12701 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12702
12703         PR target/34734
12704         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
12705         about uninitialized data attributed 'progmem' from here...
12706         (avr_encode_section_info): ...to this new function.
12707         (TARGET_ENCODE_SECTION_INFO): New define.
12708         (avr_section_type_flags): For data in ".progmem.data", remove
12709         section flag SECTION_WRITE.
12710
12711 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12712
12713         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
12714         _xmulhisi3_exit.
12715         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
12716         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
12717         (__umulhisi3): Ditto.
12718         * config/avr/avr.md (mulhisi3): New insn expender.
12719         (umulhisi3): New insn expender.
12720         (*mulhisi3_call): New insn.
12721         (*umulhisi3_call): New insn.
12722
12723 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12724
12725         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
12726
12727 2011-06-28  Richard Henderson  <rth@redhat.com>
12728
12729         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
12730         all code and arguments that handled pushes.  Update all callers.
12731
12732 2011-06-28  Richard Henderson  <rth@redhat.com>
12733
12734         * config/arm/arm.c (arm_output_function_prologue): Don't call
12735         thumb1_output_function_prologue.
12736         (arm_expand_prologue): Avoid dead store.
12737         (number_of_first_bit_set): Use ctz_hwi.
12738         (thumb1_emit_multi_reg_push): New.
12739         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
12740         to emit the entire prologue as rtl.
12741         (thumb1_output_interwork): Split out from
12742         thumb1_output_function_prologue.
12743         (thumb1_output_function_prologue): Remove.
12744         (arm_attr_length_push_multi): Handle thumb1.
12745         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
12746         (prologue_thumb1_interwork): New.
12747         (*push_multi): Allow thumb1; use push_mult_memory_operand.
12748         * config/arm/predicates.md (push_mult_memory_operand): New.
12749
12750 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
12751
12752         * config/sparc/sync.md (*stbar): Delete.
12753         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
12754
12755 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
12756
12757         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
12758
12759 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12760
12761         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
12762         (TARGET_64BIT_DEFAULT): Define.
12763         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
12764         of tm_file.
12765         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
12766
12767 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12768
12769         * common.opt (in_lto_p): New Variable entry.
12770         * flags.h (in_lto_p): Move to common.opt.
12771         * gcc.c: Include params.h.
12772         (set_option_handlers): Also use common_handle_option and
12773         target_handle_option.
12774         (main): Call global_init_params, finish_params and init_options_struct.
12775         * opts.c (debug_type_names): Move from toplev.c.
12776         (print_filtered_help): Access quiet_flag through opts pointer.
12777         (common_handle_option): Return early in the driver for some options.
12778         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
12779         opts pointer.
12780         * toplev.c (in_lto_p): Move to common.opt.
12781         (debug_type_names): Move to opts.c.
12782         * Makefile.in (OBJS): Remove opts.o.
12783         (OBJS-libcommon-target): Add opts.o.
12784         (gcc.o): Update dependencies.
12785
12786 2011-06-28  Kai Tietz  <ktietz@redhat.com>
12787
12788         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
12789
12790 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12791
12792         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
12793         with '=' constraint modifier.
12794         (*divdf3_vfp): Likewise.
12795         ("*mulsf3_vfp"): Likewise.
12796         ("*muldf3_vfp"): Likewise.
12797         ("*mulsf3negsf_vfp"): Likewise.
12798         ("*muldf3negdf_vfp"): Likewise.
12799
12800 2011-06-28  Nick Clifton  <nickc@redhat.com>
12801
12802         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
12803         relaxation when performing an incremental link.
12804
12805 2011-06-28  Kai Tietz  <ktietz@redhat.com>
12806
12807         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
12808         within BB from last to first.
12809
12810 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12811
12812         * genattr-common.c: New.  Based on genattr.c.
12813         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
12814         (MOSTLYCLEANFILES): Add insn-attr-common.h.
12815         (opts.o): Update dependencies.
12816         (.PRECIOUS): Add insn-attr-common.h.
12817         (simple_rtl_generated_h): Add insn-attr-common.h.
12818         (build/genattr-common.o): New.
12819         (genprogrtl): Add attr-common.
12820         * genattr.c (main): Include insn-attr-common.h.  Don't generate
12821         definitions of DELAY_SLOTS or INSN_SCHEDULING.
12822         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
12823
12824 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
12825
12826         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
12827         avr-*-* and avr-*-rtems* targets.
12828
12829         * config/avr/elf.h: New file.
12830         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
12831         (TARGET_ASM_SELECT_SECTION): Define.
12832         (INIT_SECTION_ASM_OP): Undefine.
12833         (FINI_SECTION_ASM_OP): Undefine.
12834         (READONLY_DATA_SECTION_ASM_OP): Undefine.
12835         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
12836         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
12837         * config/avr/avr.h:
12838         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
12839         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
12840         (MAX_OFILE_ALIGNMENT): Move to elf.h.
12841         (STRING_LIMIT): Move to elf.h.
12842         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
12843         (ASM_DECLARE_OBJECT_NAME): Remove.
12844         (ESCAPES): Remove.
12845         (ASM_OUTPUT_SKIP): Remove.
12846         (DWARF2_DEBUGGING_INFO): Remove.
12847         (OBJECT_FORMAT_ELF): Remove.
12848         (USER_LABEL_PREFIX): Remove.
12849         (ASM_OUTPUT_EXTERNAL): Remove.
12850         (ASM_OUTPUT_ASCII): Remove.
12851         (TYPE_ASM_OP): Remove.
12852         (SIZE_ASM_OP): Remove.
12853         (WEAK_ASM_OP): Remove.
12854         (STRING_ASM_OP): Remove.
12855         (SET_ASM_OP): Remove.
12856         (ASM_WEAKEN_LABEL): Remove.
12857         (TYPE_OPERAND_FMT): Remove.
12858         (ASM_DECLARE_FUNCTION_SIZE): Remove.
12859         (ASM_FINISH_DECLARE_OBJECT): Remove.
12860         (NO_DOLLAR_IN_LABEL): Remove.
12861         (ASM_GENERATE_INTERNAL_LABEL): Remove.
12862         (ASM_OUTPUT_CASE_LABEL): Remove.
12863         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
12864         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
12865         (gas_output_ascii): Remove.
12866         (gas_output_limited_string): Remove.
12867         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12868         * config/avr/avr-protos.h
12869         (gas_output_ascii): Remove prototye.
12870         (gas_output_limited_string): Remove prototype.
12871
12872 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
12873
12874         PR target/48637
12875         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
12876         asm operands.
12877
12878 2011-06-27  Jan Hubicka  <jh@suse.cz>
12879
12880         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
12881         node instead of references in node.
12882
12883 2011-06-27  Richard Henderson  <rth@redhat.com>
12884
12885         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
12886         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
12887         inside ifdef.
12888
12889 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
12890
12891         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
12892
12893         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
12894         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
12895         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
12896         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
12897         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
12898         (evaluate_stmt, execute_fold_all_builtins): Handle
12899         BUILT_IN_ASSUME_ALIGNED.
12900         * tree-ssa-dce.c (propagate_necessity): Likewise.
12901         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12902         call_may_clobber_ref_p_1): Likewise.
12903         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
12904         (expand_builtin_assume_aligned): New function.
12905         * doc/extend.texi (__builtin_assume_aligned): Document.
12906
12907         PR debug/49544
12908         * cselib.c (promote_debug_loc): If cselib_preserve_constants
12909         and l has two DEBUG_INSN owned locs instead of just one, adjust
12910         the second location's setting_insn too.
12911
12912 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12913
12914         PR libmudflap/38738
12915         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
12916
12917 2011-06-27  Nick Clifton  <nickc@redhat.com>
12918
12919         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
12920         bit position of highest bit set into a count of the high zero bits.
12921
12922 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12923
12924         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
12925
12926 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12927
12928         PR lto/48492
12929         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
12930         to a NULL parent.
12931
12932 2011-06-27  Richard Guenther  <rguenther@suse.de>
12933
12934         PR tree-optimization/49394
12935         * passes.c (execute_one_pass): Restore current_pass after
12936         applying IPA transforms.
12937
12938 2011-06-27  Kai Tietz  <ktietz@redhat.com>
12939
12940         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
12941         out of type precision after operation.
12942         (find_bswap): Take for limit value the integer auto-promotion
12943         into account.
12944
12945 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12946
12947         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
12948         forward scan as well.
12949
12950 2011-06-27  Tristan Gingold  <gingold@adacore.com>
12951
12952         PR target/44241
12953         * config/vms/vms-protos.h: New file.
12954         * config/vms/vms-crtlmap.map: New file.
12955         * config/vms/vms.c: New file.
12956         * config/vms/make-crtlmap.awk: New file.
12957         * config/vms/vms-crtl.h: File removed.
12958         * config/vms/vms-crtl-64.h: File removed.
12959         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
12960         * config/alpha/vms64.h: Do not include vms-crtl-64.h
12961         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
12962         clear some builtins on VMS.  Calls vms_patch_builtins.
12963         (avms_asm_output_external): Remove.
12964         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
12965         (struct crtl_name_spec): Remove
12966         (DO_CTRL_NAMES): Remove.
12967         * config/ia64/vms.h (struct crtl_name_spec): Remove
12968         (DO_CTRL_NAMES): Remove.
12969         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
12970         clear some builtins on VMS.  Calls vms_patch_builtins.
12971         (ia64_asm_output_external): Remove DO_CRTL_NAME.
12972         * config/ia64/vms64.h: Do not include vms-crtl-64.h
12973         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
12974
12975 2011-06-27  Tristan Gingold  <gingold@adacore.com>
12976
12977         * config/alpha/alpha.c (alpha_end_function): Always generate .end
12978         directive on VMS.
12979
12980 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12981
12982         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
12983         the function receives nonlocal gotos.
12984
12985 2011-06-27  Richard Guenther  <rguenther@suse.de>
12986
12987         PR tree-optimization/49536
12988         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
12989         For non-scalar inner types use a scalar type according to
12990         the scalar inner mode.
12991
12992 2011-06-27  Richard Guenther  <rguenther@suse.de>
12993
12994         PR tree-optimization/49365
12995         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
12996
12997 2011-06-27  Richard Guenther  <rguenther@suse.de>
12998
12999         PR tree-optimization/49169
13000         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
13001         the alignment of function decls.
13002
13003 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
13004
13005         PR target/47997
13006         * config/darwin.c (darwin_mergeable_string_section): Place string
13007         constants in '.cstring' rather than '.const' when CF/NSStrings are
13008         active.
13009
13010 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
13011
13012         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
13013         (emit_save_register_window): Likewise.
13014         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
13015         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
13016         Swap back %o7/%i7 in register naming.
13017
13018 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
13019
13020         PR driver/49371
13021         * config/darwin.c (darwin_override_options): Improve warning when
13022         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
13023         is given with fpie/fPIE.
13024         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
13025         * config/darwin9.h (PIE_SPEC): New.
13026
13027 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
13028
13029         * timevar.c (timevar_print): Increase width for display of timevar
13030         name.
13031
13032 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
13033
13034         PR c++/46400
13035         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
13036         instead of TYPE_CHAIN for chain_next for types.
13037
13038 2011-06-24  Richard Henderson  <rth@redhat.com>
13039
13040         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
13041         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
13042         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
13043         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
13044         (sparc_flat_expand_prologue): Emit individual instructions
13045         instead of one of the above.
13046
13047 2011-06-24  Easwaran Raman  <eraman@google.com>
13048
13049         PR rtl-optimization/49429
13050         PR target/49454
13051         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
13052         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
13053         used to copy y into x.
13054         * calls.c (initialize_argument_information): Mark
13055         an argument addressable if it is passed by invisible reference.
13056         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
13057         if it is passed by reference.
13058
13059 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13060
13061         PR rtl-optimization/49504
13062         * rtlanal.c (nonzero_bits1): Properly handle addition or
13063         subtraction of a pointer in Pmode if pointers extend unsigned.
13064         (num_sign_bit_copies1): Likewise.
13065
13066 2011-06-24  Martin Jambor  <mjambor@suse.cz>
13067
13068         PR tree-optimizations/49516
13069         * tree-sra.c (sra_modify_assign): Choose the safe path for
13070         aggregate copies if we also did scalar replacements.
13071
13072 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13073
13074         PR target/49335
13075         * config/arm/predicates.md (add_operator): New.
13076         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
13077
13078 2011-06-24  Andi Kleen  <ak@linux.intel.com>
13079
13080         * tree-sra.c (type_internals_preclude_sra_p): Add msg
13081         parameter. Split up ifs and report reason in *msg.
13082         (reject): Add.
13083         (find_var_candiate): Add msg variable.
13084         Split up ifs and report reason to reject.
13085         (find_param_candidates): Add msg variable.
13086         Pass msg to type_internals_preclude_sra_p.
13087
13088 2011-06-23  Jeff Law  <law@redhat.com>
13089
13090         PR middle-end/48770
13091         * reload.h (reload): Change to return a bool.
13092         * ira.c (ira): If requested by reload, run a fast DCE pass after
13093         reload has completed.  Fix comment typo.
13094         * reload1.c (need_dce): New file scoped static.
13095         (reload): Set reload_completed here.  Return whether or not a DCE
13096         pass after reload is needed.
13097         (delete_dead_insn): Set need_dce as needed.
13098
13099         PR middle-end/49465
13100         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
13101         to detect threading through joiner block.  If there was already
13102         an edge to the new target, then do not change the PHI nodes.
13103
13104 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
13105
13106         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
13107         get_pointer_alignment to see if base isn't sufficiently aligned.
13108
13109 2011-06-23  Jan Hubicka  <jh@suse.cz>
13110
13111         PR tree-optimize/49373
13112         * tree-pass.h (all_late_ipa_passes): Declare.
13113         * cgraphunit.c (init_lowered_empty_function): Fix properties.
13114         (cgraph_optimize): Execute late passes; remove unreachable funcions
13115         after materialization.
13116         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
13117         LTOing.
13118         * passes.c (all_late_ipa_passes): Declare.
13119         (dump_passes, register_pass): Handle late ipa passes.
13120         (init_optimization_passes): Move ipa_pta to late passes; schedule
13121         fixup_cfg at beggining of all_passes.
13122         (apply_ipa_transforms): New function.
13123         (execute_one_pass): When doing simple ipa pass, apply all transforms.
13124
13125 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
13126
13127         * params.c: Include common/common-target.h.  Don't include tm.h.
13128         (lang_independent_params): Move from toplev.c.
13129         (global_init_params): New.
13130         * params.h (global_init_params): Declare.
13131         * target.def (default_params): Move to common-target.def.
13132         * toplev.c (lang_independent_options): Remove.
13133         (lang_independent_params): Move to params.c.
13134         (general_init): Use global_init_params.
13135         * common/common-target.def (option_default_params): Move from
13136         target.def.
13137         * common/config/ia64/ia64-common.c: Include params.h.
13138         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13139         from ia64.c.
13140         * common/config/rs6000/rs6000-common.c: Include params.h.
13141         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13142         from rs6000.c.
13143         * common/config/sh/sh-common.c: Include params.h.
13144         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13145         from sh.c.
13146         * common/config/spu/spu-common.c: Include params.h.
13147         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
13148         from spu.c.
13149         * config/ia64/ia64.c (ia64_option_default_params,
13150         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
13151         * config/rs6000/rs6000.c (rs6000_option_default_params,
13152         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
13153         * config/sh/sh.c (sh_option_default_params,
13154         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
13155         * config/spu/spu.c (spu_option_default_params,
13156         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
13157         * Makefile.in (OBJS): Remove params.o.
13158         (OBJS-libcommon-target): Add params.o.
13159         (params.o, $(common_out_object_file)): Update dependencies.
13160         * doc/tm.texi: Regenerate.
13161
13162 2011-06-23  Alan Modra  <amodra@gmail.com>
13163
13164         PR bootstrap/49383
13165         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
13166         invocation for 2011-06-09 changes.
13167
13168 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
13169
13170         PR libgomp/49490
13171         * omp-low.c (expand_omp_for_static_nochunk): Only
13172         use n ceil/ nthreads size for the first n % nthreads threads in the
13173         team instead of all threads except for the last few ones which
13174         get less work or none at all.
13175
13176         PR debug/49496
13177         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
13178         uses.
13179
13180 2011-06-22  Richard Guenther  <rguenther@suse.de>
13181
13182         PR tree-optimization/49493
13183         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
13184         Refer to the alias target of variables.
13185         (associate_varinfo_to_alias_1): Remove.
13186         (ipa_pta_execute): Do not associate aliases with anything.
13187         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
13188         (cgraph_function_node): Likewise.
13189         (cgraph_function_or_thunk_node): Likewise.
13190         (varpool_variable_node): Likewise.
13191
13192 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
13193
13194         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
13195         * config.gcc (arm*-*-linux*): Default to gnu tls.
13196         (arm*-*-*): Add --with-tls option.
13197         (all_defaults): Add 'tls'.
13198
13199 2011-06-22  Richard Henderson  <rth@redhat.com>
13200
13201         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
13202         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
13203         (dwarf2out_frame_debug_cfa_window_save): Rename from
13204         dwarf2out_window_save; make static.
13205         * tree.h (dwarf2out_window_save): Don't declare.
13206
13207         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
13208         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
13209         (emit_save_register_window): Rename from gen_save_register_window;
13210         emit the insn and add REG_CFA_* notes.
13211         (sparc_expand_prologue): Update to match.
13212         * config/sparc/sparc.md (save_register_window_1): Simplify from
13213         save_register_window<P:mode>.
13214
13215 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13216
13217         PR target/49497
13218         * config/i386/i386.md (*lea_general_2): Always allow SImode.
13219         (*lea_general_2_zext): Likewise.
13220         (imul to lea peepholes): Use const359_operand and check
13221         TARGET_PARTIAL_REG_STALL.
13222
13223         * config/i386/predicates.md (const359_operand): New.
13224
13225 2011-06-22  Michael Matz  <matz@suse.de>
13226
13227         * cgraphunit.c (assemble_thunk): Use correct return type.
13228
13229 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
13230             Dmitry Melnik  <dm@ispras.ru>
13231
13232         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
13233         (neon_output_shift_immediate): Ditto.
13234         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
13235         prototype.
13236         (neon_output_shift_immediate): Ditto.
13237         * config/arm/neon.md (vashl<mode>3): Modified constraint.
13238         (vashr<mode>3_imm): New insn pattern.
13239         (vlshr<mode>3_imm): Ditto.
13240         (vashr<mode>3): Modified constraint.
13241         (vlshr<mode>3): Ditto.
13242         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
13243         predicate.
13244         (imm_for_neon_rshift_operand): Ditto.
13245         (imm_lshift_or_reg_neon): Ditto.
13246         (imm_rshift_or_reg_neon): Ditto.
13247
13248         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
13249
13250 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
13251
13252         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
13253         builtin calls even if likelyvalue is not CONSTANT.
13254         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
13255         Return get_value_for_expr of first operand
13256         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
13257         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13258         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
13259         their non-checking counterparts.
13260         (call_may_clobber_ref_p_1): Likewise.
13261         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
13262         like their non-checking counterparts.
13263         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13264         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
13265         like their non-checking counterparts.
13266         (find_func_clobbers): Likewise.
13267         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
13268         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
13269
13270         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
13271         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
13272         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
13273         of base type reference as argument.
13274         (resolve_addr_in_expr): Likewise.  Fix keep computation.
13275         (convert_descriptor_to_signed): Renamed to...
13276         (convert_descriptor_to_mode): ... this.  For wider types convert to
13277         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
13278         (typed_binop): New function.
13279         (scompare_loc_descriptor, ucompare_loc_descriptor,
13280         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
13281         default to unsigned type instead of signed.
13282
13283         PR debug/47858
13284         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
13285         (gimple_build_debug_source_bind_stat): New prototype.
13286         (gimple_build_debug_source_bind): Define.
13287         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
13288         gimple_debug_source_bind_get_value,
13289         gimple_debug_source_bind_get_value_ptr,
13290         gimple_debug_source_bind_set_var,
13291         gimple_debug_source_bind_set_value): New inlines.
13292         * gimple.c (gimple_build_debug_source_bind_stat): New function.
13293         * gimple-pretty-print.c (dump_gimple_debug): Handle
13294         GIMPLE_DEBUG_SOURCE_BIND.
13295         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
13296         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13297         * tree-parloops.c (eliminate_local_variables,
13298         separate_decls_in_region): Likewise.
13299         (separate_decls_in_region_debug): Renamed from
13300         separate_decls_in_region_debug_bind.  Handle
13301         gimple_debug_source_bind_p.
13302         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
13303         prototypes.
13304         (DECL_HAS_DEBUG_ARGS_P): Define.
13305         (struct tree_function_decl): Add has_debug_args_flag field.
13306         * tree.c (debug_args_for_decl): New variable.
13307         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
13308         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
13309         (rewrite_debug_stmt_uses): New function.
13310         (rewrite_stmt): Use it to rewrite debug stmt uses.
13311         * rtl.def (DEBUG_PARAMETER_REF): New.
13312         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
13313         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
13314         DEBUG_PARAMETER_REF.
13315         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
13316         * print-rtl.c (print_rtx): Likewise.
13317         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
13318         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
13319         debug stmts in the first bb.
13320         * tree-inline.c (remap_ssa_name): If remapping default def
13321         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
13322         a source bind debug stmt.
13323         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
13324         (maybe_move_debug_stmts_to_successors): Likewise.
13325         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
13326         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
13327         debug args vector from old_decl to new_decl.
13328         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
13329         or modified parameters, add debug bind stmts before call
13330         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
13331         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
13332         on DECL_DEBUG_EXPRs from debug args vector.
13333         (expand_debug_source_expr): New function.
13334         (expand_debug_locations): Use it for source bind insns.
13335         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
13336         * var-tracking.c (prepare_call_arguments): Add debug args
13337         to call_arguments if any.
13338         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
13339         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
13340         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
13341         (get_ref_die_offset, parameter_ref_descriptor): New functions.
13342         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
13343         (gen_subprogram_die): Handle parameters identified by
13344         DEBUG_PARAMETER_REF.
13345
13346 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
13347
13348         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
13349         * doc/install.texi (Configuration): Document --with-tls.
13350         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
13351         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
13352         (arm_tls_descseq_addr): New.
13353         (legitimize_tls_address): Add tlsdesc support.
13354         (arm_cannot_copy_insn_p): Check for tlscall.
13355         (arm_emit_tls_decoration): Likewise.
13356         * config/arm/arm.h (TARGET_GNU2_TLS): New.
13357         (OPTION_DEFAULT_SPECS): Add with-tls support.
13358         * config/arm/arm.md (R1_REGNUM): Define.
13359         (tlscall): New.
13360         * config/arm/arm.opt (tls_type): New enumeration type and values.
13361         (mtls-dialect): New switch.
13362         * config/arm/arm-opts.h (enum tls_type): New.
13363
13364 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13365
13366         * attribs.c (register_attribute): Added assert to check that all
13367         attribute specs are registered with a name that is not empty and
13368         does not start with '_'.
13369         (decl_attributes): Avoid the lookup of the "naked" attribute spec
13370         if the function has no attributes.
13371         * tree.c (is_attribute_with_length_p): Removed.
13372         (is_attribute_p): Removed.
13373         (private_is_attribute_p): New.
13374         (private_lookup_attribute): New.
13375         (lookup_attribute): Removed.
13376         (lookup_ident_attribute): New.
13377         (remove_attribute): Require the first argument to be in the form
13378         'text', not '__text__'.  Updated asserts.
13379         (merge_attributes): Use lookup_ident_attributes instead of
13380         lookup_attribute.
13381         (merge_dllimport_decl_attributes): Use remove_attribute.
13382         (attribute_list_contained): Likewise.
13383         (attribute_list_equal): Immediately return 1 if the arguments are
13384         identical pointers.
13385         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
13386         'int'.  Require the first argument to be in the form 'text', not
13387         '__text__'.  Require the second argument to be an identifier.
13388         (lookup_attribute): Made inline.  Require the first argument to be
13389         in the form 'text', not '__text__'.
13390         (private_is_attribute_p, private_lookup_attribute): New.
13391         Updated comments.
13392
13393 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
13394
13395         * builtins.c: Add sync_ or SYNC__ to builtin names.
13396         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
13397         * omp-low.c: Add sync_ or SYNC__ to builtin names.
13398
13399 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
13400
13401         PR target/33049
13402         * config/avr/avr.md (extzv): New expander.
13403         (*extzv): New insn.
13404         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
13405         * config/avr/constraints.md (C04): New constraint.
13406         * doc/md.texi (Machine Constraints): Document it.
13407
13408 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
13409
13410         PR middle-end/49489
13411         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
13412         unsignedp argument instead of 1 for clrsb_optab.
13413         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
13414         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
13415         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
13416         * optabs.c (widen_leading): Call widen_operand and expand_unop
13417         with 0 as unsignedp argument instead of 1 for clrsb_optab.
13418         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
13419
13420 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
13421
13422         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
13423
13424 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
13425
13426         * gensupport.c (add_define_attr): New static function.
13427         (is_predicable): Allow multi-alternative lists for the "predicable"
13428         attribute.
13429         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
13430         (process_one_cond_exec): Call alter_attrs_for_insn.
13431         * doc/md.texi (Defining Attributes): Mention some standard names.
13432         (Conditional Execution): Update documentation for "predicable".
13433
13434         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
13435         __builtin_clrsbll): Document.
13436         * doc/rtl.texi (clrsb): New entry.
13437         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
13438         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
13439         (expand_unop): Handle clrsb_optab.
13440         (init_optabs): Initialize it.
13441         * optabs.h (enum optab_index): New entry OTI_clrsb.
13442         (clrsb_optab): Define.
13443         * genopinit.c (optabs): Add an entry for it.
13444         * builtins.c (expand_builtin): Handle clrsb builtin functions.
13445         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
13446         BUILT_IN_CLRSBLL): New.
13447         * rtl.def (CLRSB): New code.
13448         * dwarf2out.c (mem_loc_descriptor): Handle it.
13449         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13450         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
13451         and popcount.
13452         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
13453         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
13454         (__ctzDI2): Move declaration.
13455         * config/bfin/bfin.md (clrsbsi2): New expander.
13456         (signbitssi2): Use the CLRSB rtx.
13457         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
13458         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
13459
13460 2011-06-21  Richard Guenther  <rguenther@suse.de>
13461
13462         * ipa-inline-transform.c (inline_transform): Fix previous change.
13463
13464 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
13465
13466         PR tree-optimization/49478
13467         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
13468         with constant operand.
13469
13470 2011-06-21  Richard Guenther  <rguenther@suse.de>
13471
13472         * ipa-inline-transform.c (inline_transform): Fix typo.
13473
13474 2011-06-21  Richard Guenther  <rguenther@suse.de>
13475
13476         PR tree-optimization/49483
13477         * tree-vect-stmts.c (vectorizable_assignment): Also handle
13478         VIEW_CONVERT_EXPR conversions.
13479
13480 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
13481
13482         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
13483         * config/avr/avr-tables.opt: New file (generated).
13484         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
13485         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
13486         avr-mcus.def.
13487         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
13488         (avr_option_override): Don't process -mmcu= argument here.  Set
13489         avr_current_device using avr_mcu_index.
13490         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
13491         * config/avr/avr.opt (mmcu=): Use Enum.
13492         * config/avr/t-avr (avr-devices.o): Update dependencies.
13493         ($(srcdir)/config/avr/avr-tables.opt): New.
13494         * target.def (help): Remove.
13495         * doc/tm.texi.in (TARGET_HELP): Remove.
13496         * doc/tm.texi: Regenerate.
13497         * opts.c: Don't include target.h.
13498         (common_handle_option): Don't call targetm.help.
13499         * system.h (TARGET_HELP): Poison.
13500         * Makefile.in (opts.o): Update dependencies.
13501
13502 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13503
13504         * config/usegld.h: New file.
13505         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
13506         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
13507         (LIB_SPEC): Likewise.  Search /lib.
13508         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
13509         (RDYNAMIC_SPEC): Handle GNU ld.
13510         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
13511         Define.
13512         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
13513         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
13514         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
13515         (STACK_CHECK_STATIC_BUILTIN): Define.
13516         * config/sol2.opt (compat-bsd): Remove.
13517         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
13518         * config/sol2-bi.h: New file.
13519         * config/sol2-gld.h: Remove.
13520         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
13521         (NO_DBX_BNSYM_ENSYM): Remove.
13522         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13523         (STACK_CHECK_STATIC_BUILTIN): Remove.
13524         Test USE_GLD instead of TARGET_GNU_LD.
13525         * config/i386/sol2-10.h: Rename to ...
13526         * config/i386/sol2-bi.h .. this.
13527         (SUBTARGET_EXTRA_SPECS): Redefine.
13528         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
13529         (MULTILIB_DEFAULTS): Remove.
13530         (DEFAULT_ARCH32_P): Define.
13531         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
13532         (ARCH64_SUBDIR): Define.
13533         Test USE_GLD instead of TARGET_GNU_LD.
13534         (I386_EMULATION): Rename to ...
13535         (ARCH32_EMULATION): ... this.
13536         (X86_64_EMULATION): Rename to ...
13537         (ARCH64_EMULATION): ... this.
13538         (TARGET_LD_EMULATION): Remove.
13539         (LINK_ARCH_SPEC): Remove.
13540         * config/i386/sol2-gas.h: Remove.
13541         * config/i386/t-sol2-10: Rename to ...
13542         * config/i386/t-sol2-64: ... this.
13543         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
13544         (AS_SPARC64_FLAG): Define.
13545         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
13546         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
13547         depending on TARGET_CPU_DEFAULT.
13548         (CPP_CPU_SPEC): Redefine.
13549         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
13550         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
13551         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
13552         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
13553         ASM_ARCH_DEFAULT_SPEC): Redefine.
13554         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13555         LINK_ARCH_DEFAULT_SPEC.
13556         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
13557         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
13558         (ARCH64_SUBDIR): Define.
13559         (LINK_ARCH64_SPEC): Redefine.
13560         (CC1_SPEC): Redefine.
13561         (OPTION_DEFAULT_SPECS): Redefine.
13562         (MULTILIB_DEFAULTS): Define.
13563         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
13564         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
13565         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
13566         (NO_DBX_BNSYM_ENSYM): Remove.
13567         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13568         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
13569         (TARGET_ASM_NAMED_SECTION): Likewise.
13570         (STACK_CHECK_STATIC_BUILTIN): Remove.
13571         * config/sparc/sol2-bi.h: Remove.
13572         * config/sparc/sol2-gas-bi.h: Remove.
13573         * config/sparc/sol2-gas.h: Remove.
13574         * config/sparc/sol2-gld-bi.h: Remove.
13575         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
13576         common parts ...
13577         (*-*-solaris2*): ... here.
13578
13579 2011-06-21  Christian Bruel  <christian.bruel@st.com>
13580
13581         PR other/43564
13582         * ipa-inline.c (can_inline_edge_p): Check
13583         !DECL_DISREGARD_INLINE_LIMITS.
13584
13585 2011-06-21  Christian Bruel  <christian.bruel@st.com>
13586
13587         PR middle-end/49139
13588         * cgraphunit.c (process_function_and_variable_attributes): warn when
13589         always_inline functions that are not inline.
13590         * ipa-inline-transform.c (inline_transform): Always call
13591         optimize_inline.
13592         * tree-inline.c (tree_inlinable_function_p): Use error instead
13593         of sorry.
13594         (expand_call_inline): Likewise.
13595
13596 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
13597
13598         * Makefile.in (dg_target_exps): Set.
13599         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
13600         instead of 7, try to divide it more evenly.
13601
13602 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
13603
13604         PR target/49089
13605         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
13606         (avx256_split_unaligned_store): New definition.
13607         (ix86_option_override_internal): Enable avx256 unaligned load/store
13608         splitting only when avx256_split_unaligned_load/store is set.
13609
13610 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
13611
13612         * regrename.c (scan_rtx_reg): Handle the case where we write to an
13613         open chain in a smaller mode without failing the entire block.
13614
13615 2011-06-21  Alan Modra  <amodra@gmail.com>
13616
13617         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
13618         CONST high part large-toc address.
13619         (rs6000_tls_referenced_p): Make static.
13620         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
13621
13622 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13623
13624         PR target/49385
13625         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
13626         one of the operands is a register.
13627
13628 2011-06-20  Kai Tietz  <ktietz@redhat.com>
13629
13630         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
13631         operations in combination with binary and.
13632
13633 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
13634
13635         * regrename.c (do_replace): Don't update notes.
13636
13637 2011-06-20  Alan Modra  <amodra@gmail.com>
13638
13639         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
13640         of toc-relative address in CONST.
13641         (rs6000_delegitimize_address): Recognize changed address.
13642         (rs6000_legitimize_reload_address): Likewise.
13643         (rs6000_emit_move): Don't force these constants to memory.
13644         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
13645         toc-relative address in CONST.
13646         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
13647         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
13648
13649 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13650
13651         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
13652         (count_trailing_zeros): Likewise.
13653
13654 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13655
13656         PR other/49325
13657         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
13658         .init_array can be used with .ctors on targets.
13659         * configure: Regenerated.
13660
13661 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
13662
13663         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
13664         if the element type is volatile.
13665
13666 2011-06-18  Jan Hubicka  <jh@suse.cz>
13667
13668         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
13669         extra name aliases.
13670         (lto_symtab_resolve_can_prevail_p): Likewise.
13671         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
13672         * cgraphbuild.c (record_reference): Remove extra body alias code.
13673         (mark_load): Likewise.
13674         (mark_store): Likewise.
13675         * cgraph.h (varpool_node): Remove extra_name filed;
13676         add alias_of and extraname_alias.
13677         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
13678         (varpool_alias_aliased_node): New inline function.
13679         (varpool_variable_node): New function.
13680         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
13681         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
13682         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
13683         (input_varpool_node): Likewise.
13684         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
13685         (varpool_externally_visible_p): Remove extra body alias code.
13686         (function_and_variable_visibility): Likewise.
13687         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
13688         (ipa_pta_execute): Use it.
13689         * varpool.c (varpool_remove_node): Remove extra name alias code.
13690         (varpool_mark_needed_node): Likewise.
13691         (varpool_analyze_pending_decls): Analyze aliases.
13692         (assemble_aliases): New functoin.
13693         (varpool_assemble_decl): Use it.
13694         (varpool_create_variable_alias): New function.
13695         (varpool_extra_name_alias): Rewrite.
13696         (varpool_for_node_and_aliases): New function.
13697
13698 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
13699
13700         PR target/49411
13701         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
13702         last_arg_constant and last argument doesn't match its predicate,
13703         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
13704         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
13705         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
13706         spelling of error message.
13707         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
13708         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
13709         const_0_to_255_operand instead of const_int_operand.
13710
13711         Revert:
13712         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13713
13714         * config/i386/sse.md (blendbits): Remove mode attribute.
13715         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13716         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13717         Check integer value of operand 3 in insn constraint.
13718
13719 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
13720
13721         PR rtl-optimization/48542
13722         * reload.c (find_equiv_reg): Stop looking when finding a
13723         setjmp-type call.
13724         * reload1.c (reload_as_needed): Invalidate all reload
13725         registers when crossing a setjmp-type call.
13726
13727 2011-06-16  Jeff Law  <law@redhat.com>
13728
13729         * tree-ssa-threadupdate.c (struct redirection_data): New field
13730         intermediate_edge.
13731         (THREAD_TARGET2): Define.
13732         (redirection_data_eq): Also check that the intermediate edge is equal.
13733         (lookup_redirection_data): Drop useless argument.  Extract the
13734         outgoing_edge and intermediate edge from E.  Callers updated.
13735         (copy_phi_args, update_destination_phis): New functions.
13736         (fix_duplicate_block_edges): Likewise.
13737         (create_edge_and_update_destination_phis): Duplicate all the edges
13738         hung off e->aux.  Use copy_phi_args.
13739         (create_duplicates): Use fix_duplicate_block_edges.
13740         (fixup_template_block): Likewise.
13741         (redirect_edges): If necessary, redirect the joiner block's incoming
13742         edge to the duplicate of the joiner block.
13743         (thread_block): Don't muck up loops when threading through a joiner
13744         block.
13745         (thread_through_loop_header): Handle threading through a joiner block.
13746         (mark_threaded_blocks, register_jump_thread): Likewise.
13747         * tree-flow.h (register_jump_thread): Add new argument.  Callers
13748         updated.
13749         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
13750         (thread_across_edge): Handle threading through a joiner block.
13751
13752 2011-06-16  Martin Jambor  <mjambor@suse.cz>
13753
13754         PR tree-optimization/49343
13755         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
13756         calculate offset, provide 2nd operand for the new COMPONENT_REF.
13757
13758 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
13759
13760         * config/darwin-protos.h (machopic_select_rtx_section): Move to
13761         inside RTX_CODE ifdef.
13762
13763 2011-06-16  Tom de Vries  <tom@codesourcery.com>
13764
13765         PR target/45098
13766         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
13767         Disallow NULL pointer for pointer arithmetic.
13768
13769 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13770
13771         PR target/49398
13772         Revert.
13773         2011-06-10  Wei Guozhi  <carrot@google.com>
13774
13775         PR target/45335
13776         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13777         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13778         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13779         related peephole2.
13780         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13781         related peephole2.
13782         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13783         (arm_legitimate_ldrd_p): New prototype.
13784         (arm_output_ldrd): New prototype.
13785         * config/arm/arm.c (arm_check_ldrd_operands): New function.
13786         (arm_legitimate_ldrd_p): New function.
13787         (arm_output_ldrd): New function.
13788
13789 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
13790
13791         PR middle-end/46500
13792         * doc/tm.texi.in: Update Copyright date.
13793         * doc/tm.texi: Regenerate.
13794         * targhooks.c (default_setup_incoming_varargs): Replace
13795         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13796         (default_pretend_outgoing_varargs_named): Likewise.
13797         (hook_pass_by_reference_must_pass_in_stack): Likewise.
13798         (hook_callee_copies_named): Likewise.
13799         (default_function_arg_advance): Likewise.
13800         (default_function_arg): Likewise.
13801         (default_function_incoming_arg): Likewise.
13802         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13803         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13804         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13805         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13806         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13807         * targhooks.h (default_setup_incoming_varargs): Likewise.
13808         (default_pretend_outgoing_varargs_named): Likewise.
13809         (hook_pass_by_reference_must_pass_in_stack): Likewise.
13810         (hook_callee_copies_named): Likewise.
13811         (default_function_arg_advance): Likewise.
13812         (default_function_arg): Likewise.
13813         (default_function_incoming_arg): Likewise.
13814         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13815         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13816         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13817         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13818         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13819         * target.def (pass_by_reference): Likewise.
13820         (setup_incoming_varargs, strict_argument_naming): Likewise.
13821         (pretend_outgoing_varargs_named, callee_copies): Likewise.
13822         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
13823         (function_incoming_arg): Likewise.
13824         * target.h: Don't include "tm.h" .
13825         (cumulative_args_t): New typedef.
13826         [GCC_TM_H] (get_cumulative_args): New static inline function.
13827         [GCC_TM_H] (pack_cumulative_args): Likewise.
13828         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
13829         argument type with cumulative_args_t.
13830         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
13831         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
13832         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
13833         (frv_arg_partial_bytes, frv_function_arg): Likewise.
13834         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
13835         (frv_function_arg_1): Likewise.
13836         * config/s390/s390.c (s390_pass_by_reference): Likewise.
13837         (s390_function_arg_advance, s390_function_arg): Likewise.
13838         * config/m32c/m32c.c (m32c_function_arg): Likewise.
13839         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
13840         (m32c_strict_argument_naming): Likewise.
13841         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
13842         (spu_function_arg_advance): Likewise.
13843         (spu_setup_incoming_varargs): Likewise.  Make static.
13844         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
13845         Remove prototype.
13846         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
13847         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13848         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
13849         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
13850         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
13851         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
13852         (mep_pass_by_reference, mep_function_arg): Likewise.
13853         (mep_function_arg_advance): Likewise.
13854         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13855         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
13856         (m32r_function_arg, m32r_function_arg_advance): Likewise.
13857         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
13858         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
13859         (ix86_function_arg, ix86_pass_by_reference): Likewise.
13860         (ix86_setup_incoming_varargs): Likewise.
13861         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
13862         (sh_strict_argument_naming): Likewise.
13863         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
13864         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
13865         (sh_function_arg_advance, sh_function_arg): Likewise.
13866         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
13867         (pdp11_function_arg_advance): Likewise.
13868         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
13869         Likewise.
13870         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
13871         * config/avr/avr.c (avr_function_arg): Likewise.
13872         (avr_function_arg_advance): Likewise.
13873         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13874         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
13875         (xtensa_function_arg_1): Likewise.
13876         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
13877         Likewise.
13878         (xstormy16_function_arg): Likewise.
13879         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
13880         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13881         (fr30_function_arg_advance): Likewise.
13882         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13883         (lm32_function_arg, lm32_function_arg_advance): Likewise.
13884         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
13885         (moxie_function_arg, moxie_function_arg_advance): Likewise.
13886         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
13887         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
13888         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
13889         (cris_function_arg, cris_function_incoming_arg): Likewise.
13890         (cris_function_arg_advance, cris_function_arg_1): Likewise.
13891         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
13892         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
13893         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
13894         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
13895         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
13896         (mn10300_arg_partial_bytes): Likewise.
13897         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
13898         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
13899         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
13900         (ia64_function_arg_1): Likewise.
13901         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
13902         (m68k_function_arg): Likewise.
13903         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
13904         (rs6000_function_arg, setup_incoming_varargs): Likewise.
13905         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
13906         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
13907         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
13908         (picochip_arg_advance): Likewise.
13909         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
13910         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
13911         (mcore_function_arg_advance): Likewise.
13912         * config/score/score.c (score_pass_by_reference): Likewise.
13913         (score_function_arg_advance): Likewise.
13914         (score_arg_partial_bytes): Likewise.  Make static.
13915         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
13916         * config/arm/arm.c (arm_arg_partial_bytes): Replace
13917         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13918         (arm_function_arg, arm_function_arg_advance): Likewise.
13919         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
13920         * config/pa/pa.c (pa_pass_by_reference): Likewise.
13921         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
13922         (pa_function_arg): Likewise.
13923         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
13924         (mips_function_arg, mips_function_arg_advance): Likewise.
13925         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
13926         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
13927         * config/vax/vax.c (vax_function_arg): Likewise.
13928         (vax_function_arg_advance): Likewise.
13929         * config/h8300/h8300.c (h8300_function_arg): Likewise.
13930         (h8300_function_arg_advance): Likewise.
13931         * config/v850/v850.c (v850_pass_by_reference): Likewise.
13932         (v850_strict_argument_naming, v850_function_arg): Likewise.
13933         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
13934         (v850_setup_incoming_varargs): Likewise.
13935         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13936         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
13937         (mmix_function_arg, mmix_pass_by_reference): Likewise.
13938         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
13939         with const void *.
13940         * config/bfin/bfin.c (setup_incoming_varargs): Replace
13941         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13942         (bfin_function_arg_advance, bfin_function_arg): Likewise.
13943         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
13944         * calls.c (emit_call_1): Change type of args_so_far to
13945         cumulative_args_t.  Changed all callers.
13946         (initialize_argument_information): Likewise.
13947         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
13948         * dse.c (get_call_args): Likewise.
13949         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13950         * function.c (pass_by_reference, reference_callee_copied): Likewise.
13951         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
13952         New member args_so_far_v.  Changed all users.
13953         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
13954         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13955         * config/mips/mips.c (mips_output_args_xfer): Likewise.
13956         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13957         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13958         * config/microblaze/microblaze.c (microblaze_expand_prologue):
13959         Likewise.
13960         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
13961         m32r_pass_by_reference.
13962
13963 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
13964
13965         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
13966         argument to be a VEC of statements.
13967         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
13968         assert that pattern statements have to have their vector type set.
13969         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
13970         Change the first argument to be a VEC of statements.  Update
13971         documentation.
13972         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
13973         (vect_handle_widen_mult_by_const): New function.
13974         (vect_recog_widen_mult_pattern):  Change the first argument to be a
13975         VEC of statements.  Update documentation.  Check that the constant is
13976         INTEGER_CST.  Support multiplication by a constant that fits an
13977         intermediate type - call vect_handle_widen_mult_by_const.
13978         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
13979         call.  Handle additional pattern statements if necessary.
13980
13981 2011-06-16  Nick Clifton  <nickc@redhat.com>
13982
13983         PR target/49427
13984         * config.gcc: Set cpu_type to v850 for any V850 architecture.
13985         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
13986         md_file, extra_modes, out_file and extra_options are these are all
13987         deduced from cpu_type.
13988
13989 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
13990
13991         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
13992         truncation mask to 63.
13993
13994 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
13995
13996         PR target/49313
13997         PR target/29524
13998         * longlong.h: Add AVR support:
13999         (count_leading_zeros): New macro.
14000         (count_trailing_zeros): New macro.
14001         (COUNT_LEADING_ZEROS_0): New macro.
14002         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
14003         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
14004         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
14005         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
14006         (LIB2FUNCS_EXCLUDE): Add _clz.
14007         * config/avr/libgcc.S (XCALL): Move up in file.
14008         (XJMP): New C Macro.
14009         (DEFUN): New asm macro.
14010         (ENDF): New asm macro.
14011         (__ffssi2): New function.
14012         (__ffshi2): New function.
14013         (__loop_ffsqi2): New function.
14014         (__ctzsi2): New function.
14015         (__ctzhi2): New function.
14016         (__clzdi2): New function.
14017         (__clzsi2): New function.
14018         (__clzhi2): New function.
14019         (__paritydi2): New function.
14020         (__paritysi2): New function.
14021         (__parityhi2): New function.
14022         (__parityqi2): New function.
14023         (__popcounthi2): New function.
14024         (__popcountsi2): New function.
14025         (__popcountdi2): New function.
14026         (__popcountqi2): New function.
14027         (__bswapsi2): New function.
14028         (__bswapdi2): New function.
14029         (__ashldi3): New function.
14030         (__ashrdi3): New function.
14031         (__lshrdi3): New function.
14032         Fix suspicous lines.
14033
14034 2011-06-16  Richard Guenther  <rguenther@suse.de>
14035
14036         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
14037         the same as x != 0.
14038         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
14039         to (bool) X & 1.
14040         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
14041         equality compares against zero for the lower bit.
14042
14043 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
14044
14045         PR tree-optimization/49419
14046         * tree-vrp.c (execute_vrp): Call init_range_assertions
14047         before estimate_numbers_of_iterations, call
14048         free_number_of_iterations_estimates before calling
14049         remove_range_assertions.
14050
14051 2011-06-16  Revital Eres  <revital.eres@linaro.org>
14052
14053         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
14054         (struct partial_schedule): Add rows_length field.
14055         (verify_partial_schedule): Check rows_length.
14056         (ps_insert_empty_row): Handle rows_length.
14057         (create_partial_schedule): Likewise.
14058         (free_partial_schedule): Likewise.
14059         (reset_partial_schedule): Likewise.
14060         (create_ps_insn): Remove rest_count argument.
14061         (remove_node_from_ps): Update rows_length.
14062         (add_node_to_ps): Update rows_length and call create_ps_insn
14063         without passing row_rest_count.
14064         (rotate_partial_schedule): Update rows_length.
14065
14066 2011-06-16  Revital Eres  <revital.eres@linaro.org>
14067
14068         * ddg.c (add_intra_loop_mem_dep): New function.
14069         (build_intra_loop_deps): Call it.
14070
14071 2011-06-13  Jeff Law  <law@redhat.com>
14072
14073         * df-problems.c (df_lr_local_compute): Manually CSE
14074         PIC_OFFSET_TABLE_REGNUM.
14075         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
14076         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
14077
14078 2011-06-13  Jan Hubicka  <jh@suse.cz>
14079
14080         * cgraphunit.c (handle_alias_pairs): New function.
14081         (cgraph_finalize_compilation_unit): Use it.
14082         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
14083         as externally visible.
14084
14085 2011-06-15  Richard Guenther  <rguenther@suse.de>
14086
14087         * expr.c (expand_expr_real_2): Reduce all integral types to
14088         bitfield precision.
14089         (expand_expr_real_1): Likewise.
14090
14091 2011-06-15  Martin Jambor  <mjambor@suse.cz>
14092
14093         PR tree-optimization/48613
14094         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
14095         ipa_node_params_vector is NULL.
14096
14097 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
14098
14099         PR debug/49382
14100         * dwarf2out.c (dw_loc_list_node): Add force field.
14101         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
14102         location in the list, even if it is modified before first real insn.
14103         (output_loc_list): Emit empty ranges with force flag set.
14104         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
14105
14106 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
14107
14108         PR target/49349
14109         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
14110         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
14111         above a fence.  Update comments.
14112         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
14113         placed just above it.  Do not allow NULL place_to_insert.
14114
14115 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
14116
14117         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
14118         (slpeel_tree_peel_loop_to_edge): Don't call
14119         remove_dead_stmts_from_loop.
14120         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
14121         remove irrelevant pattern statements.  For irrelevant statements
14122         check if it is the last statement of a detected pattern, use
14123         corresponding pattern statement instead.
14124         (destroy_loop_vec_info): No need to remove pattern statements,
14125         only free stmt_vec_info.
14126         (vect_transform_loop): For irrelevant statements check if it is
14127         the last statement of a detected pattern, use corresponding
14128         pattern statement instead.
14129         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
14130         pattern statements.  Set basic block for the new statement.
14131         (vect_pattern_recog): Update documentation.
14132         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
14133         operands of pattern statements.
14134         (vectorizable_call): Fix printing.  In case of a pattern statement
14135         use the lhs of the original statement when creating a dummy
14136         statement to replace the original call.
14137         (vect_analyze_stmt): For irrelevant statements check if it is
14138         the last statement of a detected pattern, use corresponding
14139         pattern statement instead.
14140         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
14141         statements use gsi of the original statement.
14142
14143 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
14144
14145         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
14146         common/common-target-def.h.
14147         * target.def (default_target_flags, handle_option,
14148         supports_split_stack, optimization_table, init_struct,
14149         except_unwind_info, unwind_tables_default, have_named_sections):
14150         Move to common/common-target.def.
14151         * target.h (enum opt_levels, struct default_options): Move to
14152         common/common-target.h.
14153         * targhooks.c (default_except_unwind_info,
14154         dwarf2_except_unwind_info, sjlj_except_unwind_info,
14155         default_target_handle_option, empty_optimization_table): Move to
14156         common/common-targhooks.c.
14157         * targhooks.h (default_except_unwind_info,
14158         dwarf2_except_unwind_info, sjlj_except_unwind_info,
14159         default_target_handle_option, empty_optimization_table): Move to
14160         common/common-targhooks.h.
14161         * common/common-target-def.h: Include common/common-targhooks.h.
14162         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
14163         defined.
14164         * common/common-target.def (handle_option, option_init_struct,
14165         option_optimization_table, default_target_flags,
14166         except_unwind_info, supports_split_stack, unwind_tables_default,
14167         have_named_sections): Move from target.def.
14168         (HOOK_PREFIX): Undefine at end of file.
14169         * common/common-target.h: Include input.h.
14170         (enum opt_levels, struct default_options): Move from target.h.
14171         * common/common-targhooks.c, common/common-targhooks.h: New.
14172         * config.gcc (target_has_targetm_common): Default to yes.
14173         (moxie*): Set target_has_targetm_common=no.
14174         (hppa*-*-*): Don't set target_has_targetm_common=yes.
14175         * doc/tm.texi: Regenerate.
14176         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
14177         (C_TARGET_DEF_H): Add common/common-targhooks.h.
14178         (GCC_OBJS): Remove vec.o.
14179         (OBJS): Remove hooks.o and vec.o.
14180         (OBJS-libcommon-target): Add vec.o, hooks.o and
14181         common/common-targhooks.o.
14182         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
14183         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
14184         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
14185         cfglayout.o, $(out_object_file), $(common_out_object_file)):
14186         Update dependencies.
14187         (common/common-targhooks.o): New.
14188         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
14189         * common/config/pa/pa-common.c: Include more headers.  Take
14190         copyright dates from pa.c.
14191         (pa_option_optimization_table, pa_handle_option,
14192         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
14193         TARGET_HANDLE_OPTION): Move from pa.c.
14194         * common/config/alpha/alpha-common.c,
14195         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
14196         common/config/bfin/bfin-common.c,
14197         common/config/cris/cris-common.c,
14198         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
14199         common/config/h8300/h8300-common.c,
14200         common/config/i386/i386-common.c,
14201         common/config/ia64/ia64-common.c,
14202         common/config/iq2000/iq2000-common.c,
14203         common/config/lm32/lm32-common.c,
14204         common/config/m32c/m32c-common.c,
14205         common/config/m32r/m32r-common.c,
14206         common/config/m68k/m68k-common.c,
14207         common/config/mcore/mcore-common.c,
14208         common/config/mep/mep-common.c,
14209         common/config/microblaze/microblaze-common.c,
14210         common/config/mips/mips-common.c,
14211         common/config/mmix/mmix-common.c,
14212         common/config/mn10300/mn10300-common.c,
14213         common/config/pdp11/pdp11-common.c,
14214         common/config/picochip/picochip-common.c,
14215         common/config/rs6000/rs6000-common.c,
14216         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
14217         common/config/score/score-common.c, common/config/sh/sh-common.c,
14218         common/config/sparc/sparc-common.c,
14219         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
14220         common/config/vax/vax-common.c,
14221         common/config/xstormy16/xstormy16-common.c,
14222         common/config/xtensa/xtensa-common.c: New.
14223         * config/alpha/alpha.c: Include common/common-target.h.
14224         (alpha_option_optimization_table, alpha_handle_option,
14225         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14226         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
14227         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
14228         * config/arm/arm.c (arm_option_optimization_table,
14229         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14230         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
14231         arm-common.c.
14232         * config/avr/avr.c (avr_option_optimization_table,
14233         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
14234         to avr-common.c.
14235         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
14236         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
14237         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
14238         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
14239         * config/cris/cris.c (cris_option_optimization_table,
14240         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14241         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
14242         cris-common.c.
14243         * config/fr30/fr30.c (fr30_option_optimization_table,
14244         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
14245         to fr30-common.c.
14246         * config/frv/frv.c (frv_option_optimization_table,
14247         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
14248         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
14249         * config/h8300/h8300.c (h8300_option_optimization_table,
14250         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14251         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
14252         * config/i386/i386-protos.h (ix86_handle_option): Declare.
14253         * config/i386/i386.c: Include common/common-target.h.
14254         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
14255         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
14256         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
14257         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
14258         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
14259         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
14260         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
14261         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
14262         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
14263         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
14264         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
14265         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
14266         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
14267         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
14268         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
14269         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
14270         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
14271         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
14272         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
14273         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
14274         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
14275         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
14276         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
14277         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
14278         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
14279         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
14280         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
14281         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
14282         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
14283         ix86_option_optimization_table, ix86_option_init_struct,
14284         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
14285         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14286         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
14287         i386-common.c.
14288         * config/i386/t-i386 (i386.o): Update dependencies.
14289         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
14290         * config/ia64/ia64.c (ia64_option_optimization_table,
14291         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14292         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14293         ia64_handle_option): Move to ia64-common.c.
14294         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
14295         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
14296         * config/lm32/lm32.c (lm32_option_optimization_table,
14297         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
14298         to lm32-common.c.
14299         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
14300         m32c-common.c.
14301         * config/m32r/m32r.c (m32r_option_optimization_table,
14302         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14303         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14304         m32r_handle_option): Move to m32r-common.c.
14305         (m32r_memory_move_cost): Remove comment referring to
14306         TARGET_HANDLE_OPTION.
14307         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
14308         Move to m68k-common.c.
14309         * config/mcore/mcore.c (mcore_option_optimization_table,
14310         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14311         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
14312         * config/mep/mep.c (mep_option_optimization_table,
14313         mep_handle_option, TARGET_HANDLE_OPTION,
14314         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
14315         Move to mep-common.c.
14316         * config/microblaze/microblaze.c
14317         (microblaze_option_optimization_table,
14318         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14319         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
14320         * config/mips/mips.c (mips_handle_option,
14321         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14322         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
14323         mips-common.c.
14324         * config/mmix/mmix.c (mmix_option_optimization_table,
14325         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14326         Move to mmix-common.c.
14327         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
14328         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
14329         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14330         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
14331         * config/pa/pa.c: Include common/common-target.h.
14332         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14333         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14334         pa_handle_option): Move to pa-common.c.
14335         (pa_option_override): Use targetm_common.except_unwind_info.
14336         (pa_asm_output_mi_thunk, pa_function_section): Use
14337         targetm_common.have_named_sections.
14338         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
14339         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14340         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14341         pdp11_handle_option, pdp11_option_init_struct): Move to
14342         pdp11-common.c.
14343         * config/picochip/picochip.c (picochip_option_optimization_table,
14344         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
14345         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
14346         * config/rs6000/rs6000.c: Include common/common-target.h.
14347         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
14348         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
14349         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
14350         rs6000_handle_option): Move to rs6000-common.c.
14351         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14352         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
14353         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14354         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
14355         * config/s390/s390.c (processor_flags_table,
14356         s390_option_optimization_table, s390_option_init_struct,
14357         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
14358         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14359         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
14360         * config/s390/s390.h (processor_flags_table): Declare.
14361         * config/score/score.c (score_option_optimization_table,
14362         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14363         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
14364         score_handle_option): Move to score-common.c.
14365         * config/sh/sh.c (sh_option_optimization_table,
14366         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14367         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14368         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
14369         * config/sparc/sparc.c: Include common/common-target.h.
14370         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14371         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
14372         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
14373         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
14374         spu_option_init_struct): Move to spu-common.c.
14375         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
14376         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
14377         * config/v850/v850.c (small_memory_physical_max,
14378         v850_handle_memory_optionn v850_handle_option,
14379         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14380         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
14381         v850-common.c.
14382         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
14383         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
14384         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14385         Move to xtensa-common.c.
14386         * cfglayout.c: Include common/common-target.h.
14387         (fixup_reorder_chain): Use targetm_common.have_named_sections.
14388         * cfgrtl.c: Include common/common-target.h.
14389         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
14390         targetm_common.have_named_sections.
14391         * dbxout.c: Include common/common-target.h.
14392         (dbxout_function_end): Use targetm_common.have_named_sections.
14393         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
14394         targetm_common.except_unwind_info.
14395         * dwarf2out.c: Include common/common-target.h.
14396         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
14397         dwarf2out_begin_prologue, dwarf2out_frame_init,
14398         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
14399         targetm_common.except_unwind_info.
14400         * except.c: Include common/common-target.h.
14401         (init_eh, finish_eh_generation,
14402         output_one_function_exception_table): Use
14403         targetm_common.except_unwind_info.
14404         (switch_to_exception_section): Use targetm_common.have_named_sections.
14405         * explow.c: Include common/common-target.h.
14406         * expr.c: Include common/common-target.h.
14407         (build_personality_function): Use targetm_common.except_unwind_info.
14408         * function.c: Include common/common-target.h.
14409         (expand_function_end): Use targetm_common.except_unwind_info.
14410         * haifa-sched.c: Include common/common-target.h.
14411         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
14412         * lto-opts.c: Include common/common-target.h instead of target.h.
14413         (lto_reissue_options): Use targetm_common.handle_option.
14414         * opts.c: Include common/common-target.h.
14415         (target_handle_option): Use targetm_common.handle_option.
14416         (init_options_struct): Update comment referring to
14417         targetm.target_option.optimization.  Use
14418         targetm_common.default_target_flags,
14419         targetm_common.unwind_tables_default and
14420         targetm_common.option_init_struct.
14421         (default_options_optimization): Use
14422         targetm_common.option_optimization_table.
14423         (finish_options): Use targetm_common.except_unwind_info,
14424         targetm_common.unwind_tables_default,
14425         targetm_common.have_named_sections and
14426         targetm_common.supports_split_stack.
14427         * toplev.c: Include common/common-target.h.
14428         (process_options): Use targetm_common.have_named_sections.
14429         * tree-tailcall.c: Include common/common-target.h.
14430         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
14431         * tree.c: Include common/common-target.h.
14432         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
14433         * varasm.c: Include common/common-target.h.
14434         (resolve_unique_section, hot_function_section,
14435         default_function_section): Use targetm_common.have_named_sections.
14436
14437 2011-06-14  Easwaran Raman  <eraman@google.com>
14438
14439         PR rtl-optimization/44194
14440         * dse.c: Include tree-flow.h
14441         (insn_info): Add new field non_frame_wild_read.
14442         (group_info): Add new fields escaped_n and escaped_p.
14443         (kill_on_calls): New variable.
14444         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
14445         (dse_step0): Initialize kill_on_calls.
14446         (can_escape): New function.
14447         (set_usage_bits): Add additional parameter; record information
14448         about escaped locations.
14449         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
14450         (dse_step2_nospill): Set kill_on_calls based on
14451         group->escaped_n and group->escaped_n.
14452         (add_wild_read): Refactor into...
14453         (reset_active_stores): ... New function, and
14454         (free_read_records): ... New function.
14455         (add_non_frame_wild_read): New function.
14456         (scan_insn): Call add_non_frame_wild_read on non-const calls.
14457         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
14458         (dse_step5_nospill): Call scan_reads_nospill for instructions
14459         marked as non_frame_wild_read.
14460         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
14461
14462 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
14463
14464         * common/common-target-def.h, common/common-target.def,
14465         common/common-target.h, common/config/default-common.c,
14466         common/config/pa/pa-common.c: New files.
14467         * Makefile.in (common_out_file, common_out_object_file,
14468         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
14469         (OBJS-libcommon-target): Include $(common_out_object_file).
14470         (prefix.o): Update dependencies.
14471         ($(common_out_object_file), common/common-target-hooks-def.h,
14472         s-common-target-hooks-def-h): New.
14473         (s-tm-texi): Also check timestamp on common-target.def.
14474         (build/genhooks.o): Update dependencies.
14475         * config.gcc (common_out_file, target_has_targetm_common): Define.
14476         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
14477         TARGET_ALWAYS_STRIP_DOTDOT.
14478         * configure.ac (common_out_object_file): Define.
14479         (common_out_file, common_out_object_file): Substitute.
14480         (common): Create directory.
14481         * configure: Regenerate.
14482         * doc/tm.texi.in (targetm_common): Document.
14483         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
14484         * doc/tm.texi: Regenerate.
14485         * genhooks.c (hook_array): Also include common/common-target.def.
14486         * prefix.c (tm.h): Don't include.
14487         (common/common-target.h): Include.
14488         (ALWAYS_STRIP_DOTDOT): Don't define.
14489         (update_path): Use targetm_common.always_strip_dotdot instead of
14490         ALWAYS_STRIP_DOTDOT.
14491         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
14492
14493 2011-06-14  David Li  <davidxl@google.com>
14494
14495         * passes.c (execute_function_todo): Remove TODO_dump_func.
14496         (execute_one_pass): Remove TODO_dump_func.
14497         (execute_function_dump): New function.
14498         * tree-vrp.c: Remove TODO_dump_func.
14499         * regrename.c: Remove TODO_dump_func.
14500         * fwprop.c: Remove TODO_dump_func.
14501         * tree-into-ssa.c: Remove TODO_dump_func.
14502         * tree-complex.c: Remove TODO_dump_func.
14503         * tracer.c: Remove TODO_dump_func.
14504         * tree-loop-distribution.c: Remove TODO_dump_func.
14505         * postreload-gcse.c: Remove TODO_dump_func.
14506         * postreload.c: Remove TODO_dump_func.
14507         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
14508         * tree-tailcall.c: Remove TODO_dump_func.
14509         * ipa-cp.c: Remove TODO_dump_func.
14510         * final.c: Remove TODO_dump_func.
14511         * tree-emutls.c: Remove TODO_dump_func.
14512         * omp-low.c: Remove TODO_dump_func.
14513         * tree-ssa-dse.c: Remove TODO_dump_func.
14514         * tree-ssa-uncprop.c: Remove TODO_dump_func.
14515         * auto-inc-dec.c: Remove TODO_dump_func.
14516         * reorg.c: Remove TODO_dump_func.
14517         * tree-ssa-copyrename.c: Remove TODO_dump_func.
14518         * tree-ssa-ccp.c: Remove TODO_dump_func.
14519         * compare-elim.c: Remove TODO_dump_func.
14520         * mode-switching.c: Remove TODO_dump_func.
14521         * modulo-sched.c: Remove TODO_dump_func.
14522         * tree-call-cdce.c: Remove TODO_dump_func.
14523         * cse.c: Remove TODO_dump_func.
14524         * web.c: Remove TODO_dump_func.
14525         * tree-stdarg.c: Remove TODO_dump_func.
14526         * lto-streamer-out.c: Remove TODO_dump_func.
14527         * tree-ssa-math-opts.c: Remove TODO_dump_func.
14528         * tree-ssa-dom.c: Remove TODO_dump_func.
14529         * tree-nrv.c: Remove TODO_dump_func.
14530         * loop-init.c: Remove TODO_dump_func.
14531         * gimple-low.c: Remove TODO_dump_func.
14532         * ipa-inline.c: Remove TODO_dump_func.
14533         * tree-ssa-sink.c: Remove TODO_dump_func.
14534         * jump.c: Remove TODO_dump_func.
14535         * ifcvt.c: Remove TODO_dump_func.
14536         * tree-ssa-loop.c: Remove TODO_dump_func.
14537         * recog.c: Remove TODO_dump_func.
14538         * dse.c: Remove TODO_dump_func.
14539         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
14540         * matrix-reorg.c: Remove TODO_dump_func.
14541         * tree-eh.c: Remove TODO_dump_func.
14542         * regmove.c: Remove TODO_dump_func.
14543         * function.c: Remove TODO_dump_func.
14544         * tree-vectorizer.c: Remove TODO_dump_func.
14545         * ipa-split.c: Remove TODO_dump_func.
14546         * gcse.c: Remove TODO_dump_func.
14547         * tree-if-conv.c: Remove TODO_dump_func.
14548         * init-regs.c: Remove TODO_dump_func.
14549         * tree-ssa-phiopt.c: Remove TODO_dump_func.
14550         * implicit-zee.c: Remove TODO_dump_func.
14551         * lower-subreg.c: Remove TODO_dump_func.
14552         * bt-load.c: Remove TODO_dump_func.
14553         * tree-dfa.c: Remove TODO_dump_func.
14554         * except.c: Remove TODO_dump_func.
14555         * emit-rtl.c: Remove TODO_dump_func.
14556         * store-motion.c: Remove TODO_dump_func.
14557         * cfgexpand.c: Remove TODO_dump_func.
14558         * tree-cfgcleanup.c: Remove TODO_dump_func.
14559         * cfgcleanup.c: Remove TODO_dump_func.
14560         * tree-ssa-pre.c: Remove TODO_dump_func.
14561         * tree-sra.c: Remove TODO_dump_func.
14562         * tree-mudflap.c: Remove TODO_dump_func.
14563         * tree-ssa-copy.c: Remove TODO_dump_func.
14564         * cfglayout.c: Remove TODO_dump_func.
14565         * tree-ssa-forwprop.c: Remove TODO_dump_func.
14566         * tree-ssa-dce.c: Remove TODO_dump_func.
14567         * ira.c: Remove TODO_dump_func.
14568         * tree-ssa.c: Remove TODO_dump_func.
14569         * integrate.c: Remove TODO_dump_func.
14570         * tree-optimize.c: Remove TODO_dump_func.
14571         * tree-ssa-phiprop.c: Remove TODO_dump_func.
14572         * tree-object-size.c: Remove TODO_dump_func.
14573         * combine.c: Remove TODO_dump_func.
14574         * bb-reorder.c: Remove TODO_dump_func.
14575         * cprop.c: Remove TODO_dump_func.
14576         * var-tracking.c: Remove TODO_dump_func.
14577         * tree-profile.c: Remove TODO_dump_func.
14578         * tree-vect-generic.c: Remove TODO_dump_func.
14579         * reg-stack.c: Remove TODO_dump_func.
14580         * sched-rgn.c: Remove TODO_dump_func.
14581         * tree-ssa-structalias.c: Remove TODO_dump_func.
14582         * tree-switch-conversion.c: Remove TODO_dump_func.
14583         * tree-cfg.c: Remove TODO_dump_func.
14584         * tree-ssa-reassoc.c: Remove TODO_dump_func.
14585         * combine-stack-adj.c: Remove TODO_dump_func.
14586         * dce.c: Remove TODO_dump_func.
14587         * tree-ssanames.c: Remove TODO_dump_func.
14588         * regcprop.c: Remove TODO_dump_func.
14589
14590 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14591
14592         PR middle-end/47364
14593         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
14594         and properly handle result not in Pmode.
14595
14596 2011-06-14  Robert Millan  <rmh@gnu.org>
14597
14598         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
14599         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
14600         `config/linux.h'.
14601
14602         * config/i386/kfreebsd-gnu64.h: New file.
14603         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
14604         with `i386/kfreebsd-gnu64.h'.
14605
14606         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
14607         (GNU_USER_LINK_EMULATION64): New macros.
14608         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
14609         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
14610         of hardcoding `elf_i386' and `elf_x86_64'.
14611
14612 2011-06-14  Nick Clifton  <nickc@redhat.com>
14613
14614         PR target/49403
14615         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
14616
14617         PR target/49402
14618         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
14619
14620 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
14621
14622         PR fortran/49103
14623         * tree.h (DECL_NONSHAREABLE): Define.
14624         (struct tree_decl_common): Change decl_common_unused to
14625         decl_nonshareable_flag.
14626         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
14627         Ignore vars with DECL_NONSHAREABLE bit set.
14628         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
14629         on stores to automatic aggregate vars.
14630
14631         PR rtl-optimization/49390
14632         Revert:
14633         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
14634
14635         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
14636         MEM_ALIAS_SET.
14637
14638 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
14639             Tom de Vries  <tom@codesourcery.com>
14640
14641         PR target/45098
14642         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
14643         Document changed semantics.
14644         (max_stmt_executions, max_stmt_executions_int): Declare.
14645         * tree-data-ref.c (estimated_loop_iterations)
14646         (estimated_loop_iterations_int): Move functions...
14647         * tree-ssa-loop-niter.c (estimated_loop_iterations)
14648         (estimated_loop_iterations_int): here.
14649         (record_estimate): Change nb_iterations_upper_bound and
14650         nb_iterations_estimate semantics.
14651         (max_stmt_executions, max_stmt_executions_int): New function.
14652         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
14653         (max_stmt_executions_tree): this.
14654         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
14655         estimated_loop_iterations_tree.
14656         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
14657         max_stmt_executions_int instead of estimated_loop_iterations_int.
14658         * predict.c (predict_loops): Idem.
14659         * tree-parloops.c (parallelize_loops): Idem.
14660         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
14661         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
14662         (init_omega_for_ddr_1): Idem.
14663         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
14664         (loop_prefetch_arrays): Idem
14665         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
14666         max_stmt_executions instead of estimated_loop_iterations.
14667         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
14668         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
14669         instead of nb_iterations_upper_bound.
14670
14671 2011-06-13  Jan Hubicka  <jh@suse.cz>
14672
14673         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
14674
14675 2011-06-14  Richard Henderson  <rth@redhat.com>
14676
14677         PR debug/48459
14678         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
14679         (based_loc_descr): Assert it's true.
14680         (compute_frame_pointer_to_fb_displacement): Set it, rather than
14681         aborting immediately.
14682
14683 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
14684             Mingfeng Wu  <mingfeng@faraday-tech.com>
14685
14686         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
14687
14688 2011-06-13  Jan Hubicka  <jh@suse.cz>
14689
14690         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
14691
14692 2011-06-13  Jan Hubicka  <jh@suse.cz>
14693
14694         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
14695         similarly to DECL_COMDAT.
14696         * cgraphunit.c (cgraph_analyze_function): Likewise.
14697         * ipa.c (function_and_variable_visibility): Likewise.
14698
14699 2011-06-13  Jan Hubicka  <jh@suse.cz>
14700
14701         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
14702         BINFO_VIRTUALS when streaming for ltrans unit.
14703
14704 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
14705
14706         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
14707         (movdi_internal64): Same.
14708
14709 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
14710
14711         PR target/44618
14712         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
14713         a set of similar patterns, where the MATCH_OPERAND for the function
14714         argument is replaced with individual references to hardware registers.
14715         (save_fpregs_<mode>): Ditto
14716         (restore_gpregs_<mode>): Ditto
14717         (return_and_restore_gpregs_<mode>): Ditto
14718         (return_and_restore_fpregs_<mode>): Ditto
14719         (return_and_restore_fpregs_aix_<mode>): Ditto
14720
14721 2011-06-13  Jan Hubicka  <jh@suse.cz>
14722
14723         * ipa-utils.c (postorder_stack): New structure.
14724         (ipa_reverse_postorder): Handle aliases.
14725
14726 2011-06-13  Jan Hubicka  <jh@suse.cz>
14727
14728         * ipa-inline.c (reset_edge_caches): Walk aliases.
14729         (update_caller_keys): Do not test inlinability of aliases.
14730         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
14731         (do_estimate_growth): Fix typo.
14732
14733 2011-06-13  Jan Hubicka  <jh@suse.cz>
14734
14735         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
14736         (can_remove_node_now_p): ... here; handle same comdat groups.
14737         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
14738         (inline_call): Update use of can_remove_node_now_p.
14739
14740 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
14741
14742         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
14743         condition to disallow non-identical memory locations.
14744         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
14745         preference to bit manipulation instructions.
14746
14747 2011-06-13  Jan Hubicka  <jh@suse.cz>
14748
14749         * cgraph.c (cgraph_for_node_thunks_and_aliases,
14750         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
14751         (nonremovable_p): New function.
14752         (cgraph_can_remove_if_no_direct_calls_p): New function.
14753         (used_from_object_file_p): New functoin.
14754         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
14755         references from aliases.
14756         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
14757         * ipa-inline.c (check_caller_edge): New function.
14758         (want_inline_function_called_once_p): Use it; accept aliases called
14759         once, too.
14760         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
14761
14762 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14763
14764         PR target/48454
14765         * config/arm/neon.md (vec_pack_trunc): Set the lengths
14766         correctly for the case with Quad vectors.
14767
14768 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
14769            Ira Rosen  <ira.rosen@linaro.org>
14770
14771         PR tree-optimization/49352
14772         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
14773         all, make sure loop_use_stmt after the loop is a def stmt of a used
14774         SSA_NAME that is the only one defined inside of the loop.  Don't
14775         check for COND_EXPR and GIMPLE_BINARY_RHS.
14776         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
14777         check_reduction is true.
14778
14779 2011-06-11  Jan Hubicka  <jh@suse.cz>
14780
14781         PR middle-end/49373
14782         * ipa.c (cgraph_externally_visible_p): Check resolution info.
14783
14784 2011-06-11  Jan Hubicka  <jh@suse.cz>
14785
14786         PR middle-end/48836
14787         * ipa-inline-transform.c: Include tree-pass.h
14788         (inline_transform): Set TODO_update_ssa_only_virtuals.
14789         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
14790
14791 2011-06-11  Jan Hubicka  <jh@suse.cz>
14792
14793         PR middle-end/49378
14794         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
14795         aliases and thunks.
14796
14797 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
14798
14799         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
14800         Take number of iterations to peel into account for equally frequent
14801         misalignment values.
14802
14803 2011-06-11  Jan Hubicka  <jh@suse.cz>
14804
14805         * lto-streamer-out.c (produce_symtab): Stream out the newly
14806         represented aliases.
14807
14808 2011-06-11  Jan Hubicka  <jh@suse.cz>
14809
14810         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
14811         varying args.
14812         (ipa_update_after_lto_read): Likewise.
14813         (ipa_write_node_info): Do not sream call_with_var_arguments.
14814         (ipa_read_node_info): Likewise.
14815
14816 2011-06-11  Jan Hubicka  <jh@suse.cz>
14817
14818         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
14819
14820 2011-06-11  Jan Hubicka  <jh@suse.cz>
14821
14822         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
14823         (lto_symtab_resolve_can_prevail_p): Likewise.
14824         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
14825         * cgraph.c (same_body_aliases_done): New global var.
14826         (cgraph_same_body_alias_1): Rename to ...
14827         (cgraph_create_function_alias): ... this one; reorg to new
14828         representation.
14829         (cgraph_same_body_alias): Use cgraph_create_function_alias;
14830         record references when asked to.
14831         (cgraph_add_thunk): Fix formating.
14832         (cgraph_get_node): Kill same body alias code.
14833         (cgraph_node_for_asm): Likewise.
14834         (cgraph_remove_same_body_alias): Remove.
14835         (cgraph_remove_node): Kill same body alias code.
14836         (cgraph_mark_address_taken_node): Mark also the aliased function
14837         as having address taken.
14838         (dump_cgraph_node): Dump same body aliases.
14839         (cgraph_for_node_thunks_and_aliases): Update for new alias
14840         representation.
14841         (cgraph_for_node_and_aliases): Likewise.
14842         * cgraph.h (same_body): Kll pointer.
14843         (same_body_alias): Update comment.
14844         (same_body_aliases_done): Declare.
14845         (cgraph_remove_same_body_alias): Remove declaration.
14846         (cgraph_create_function_alias): Declare.
14847         (cgraph_process_same_body_aliases): Declare.
14848         (cgraph_function_with_gimple_body_p): Check for alias.
14849         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
14850         (cgraph_alias_aliased_node): New function.
14851         (cgraph_function_node): Update for new aliases.
14852         (cgraph_function_or_thunk_node): Likewise.
14853         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
14854         (inline_call): Remove dead aliases.
14855         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
14856         name hack for same body aliases.
14857         (clone_of_p): Look through aliases.
14858         (verify_cgraph_node): Verify aliases.
14859         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
14860         (cgraph_process_same_body_aliases): New function.
14861         (process_function_and_variable_attributes): Disable weakref warning on
14862         alias.
14863         (cgraph_analyze_functions): Handle aliases.
14864         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
14865         (assemble_thunks): Rename to ...
14866         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
14867         (cgraph_expand_function): Remove alias output code.
14868         (cgraph_output_in_order): Skip aliases.
14869         (cgraph_preserve_function_body_p): Aliases don't need preserving.
14870         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
14871         (ipa_record_reference): Do not assert on alias references.
14872         (ipa_ref_has_aliases_p): New function.
14873         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
14874         (ipa_ref_has_aliases_p): Declare.
14875         * lto-cgraph.c (lto_output_node): Handle aliases.
14876         (input_node): Likewise.
14877         * lto-streamer-out.c (lto_output): Skip aliases.
14878         (produce_symtab): Kill same_body_alias code.
14879         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
14880         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
14881         * ipa-inline.c (update_caller_keys): Walk aliases.
14882         (inline_small_functions): Fix thinko in previous patch.
14883         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
14884         (function_and_variable_visibility): Do not walk same body aliases.
14885         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
14886         (ipa_pta_execute): Use it.
14887
14888 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14889
14890         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
14891         (*vec_dupv2df): Rename from vec_dupv2df.
14892         (vec_dupv2df): New expander.
14893
14894 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14895
14896         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
14897
14898 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14899
14900         * config/i386/i386.md: Use default value in "isa" attribute.
14901         * config/i386/sse.md: Ditto.
14902         * config/i386/mmx.md: Ditto.
14903
14904 2011-06-10  Wei Guozhi  <carrot@google.com>
14905
14906         PR target/45335
14907         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
14908         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
14909         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
14910         related peephole2.
14911         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
14912         related peephole2.
14913         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
14914         (arm_legitimate_ldrd_p): New prototype.
14915         (arm_output_ldrd): New prototype.
14916         * config/arm/arm.c (arm_check_ldrd_operands): New function.
14917         (arm_legitimate_ldrd_p): New function.
14918         (arm_output_ldrd): New function.
14919
14920 2011-06-10  David Li  <davidxl@google.com>
14921
14922         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14923         * passes.c (passr_eq): New function.
14924         (create_pass_tab): New function.
14925         (pass_traverse): New function.
14926         (dump_one_pass): New function.
14927         (dump_pass_list): New function.
14928         (dump_passes): New function.
14929
14930 2011-06-10  Jan Hubicka  <jh@suse.cz>
14931
14932         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
14933         setting the nothrow flag.
14934         * ipa-reference.c (propagate): Skip aliases.
14935         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
14936         (propagate_nothrow): Skip aliases; do not update cgraph.
14937         (local_pure_const): Do not update cgraph.
14938         * tree-profile.c (tree_profiling): Do fixup_cfg.
14939
14940 2011-06-10  Jan Hubicka  <jh@suse.cz>
14941
14942         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
14943         (cgraph_local_node_p): ... here; handle aliases.
14944         (has_addr_references_p): Break out from ...;
14945         (cgraph_remove_unreachable_nodes) ... here.
14946
14947 2011-06-10  Jan Hubicka  <jh@suse.cz>
14948
14949         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
14950         * common.opt (flag_inline_functions_called_once): Do not
14951         initialize to 1.
14952
14953 2011-06-10  Jan Hubicka  <jh@suse.cz>
14954
14955         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
14956         (ipcp_initialize_node_lattices): Do not deal with aliases;
14957         Do not try to propagate through thunks.
14958         (ipcp_change_tops_to_bottom): Do not deal with aliases.
14959
14960 2011-06-10  Jan Hubicka  <jh@suse.cz>
14961
14962         * ipa-prop.c (ipa_write_node_info): Stream jump functions
14963         for indirect calls.
14964         (ipa_read_node_info): Likewise.
14965
14966 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14967
14968         PR lto/49302
14969         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
14970         (build_and_insert_call): Likewise.
14971         (build_and_insert_ref): New.
14972         (gimple_expand_builtin_pow): Minor cleanup.
14973         (gimple_expand_builtin_cabs): New.
14974         (execute_cse_sincos): Add case for BUILT_IN_CABS.
14975
14976 2011-06-10  Jan Hubicka  <jh@suse.cz>
14977
14978         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
14979         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
14980         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
14981         (ipcp_propagate_stage): Skip aliases when propagating.
14982         (ipcp_need_redirect_p): Skip aliases.
14983         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
14984         collect_callers_of_node.
14985         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
14986         for aliases.
14987         (ipa_compute_jump_functions): Look through aliases.
14988
14989 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14990
14991         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
14992
14993 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14994
14995         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
14996         Adjust comments.
14997         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
14998
14999 2011-06-10  Jan Hubicka  <jh@suse.cz>
15000
15001         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
15002         Update call of gimple_get_virt_method_for_binfo.
15003         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
15004         refuse_thunks parameter.
15005         (gimple_fold_call): Update.
15006         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
15007
15008 2011-06-10  Jan Hubicka  <jh@suse.cz>
15009
15010         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
15011         (not_all_callers_have_enough_arguments_p): ... this one; turn into
15012         worker for cgraph_for_node_and_aliases.
15013         (convert_callers_for_node): Break out from ...
15014         (convert_callers): ... here.
15015         (modify_function): Use collect_callers_of_node.
15016         (ipa_early_sra): Use cgraph_for_node_and_aliases.
15017
15018 2011-06-10  Richard Guenther  <rguenther@suse.de>
15019
15020         PR tree-optimization/49361
15021         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
15022         when not already in gimple form.
15023
15024 2011-06-10  Richard Guenther  <rguenther@suse.de>
15025
15026         PR bootstrap/49344
15027         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
15028         FOR_EACH_PHI_OR_STMT_USE.
15029
15030 2011-06-10  Jan Hubicka  <jh@suse.cz>
15031
15032         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
15033         (clone_inlined_nodes): ... here.
15034         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
15035         to real destination prior inlining.
15036         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
15037         can_early_inline_edge_p, want_early_inline_function_p,
15038         want_early_inline_function_p, want_inline_small_function_p,
15039         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
15040         edge_badness, update_all_callee_keys, lookup_recursive_calls,
15041         add_new_edges_to_heap, inline_small_functions, flatten_function,
15042         inline_always_inline_functions, early_inline_small_functions): Use
15043         cgraph_function_or_thunk_node.
15044         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
15045         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
15046         (do_estimate_edge_growth_1): Break out from ...
15047         (do_estimate_growth) ... here; walk aliases.
15048         (inline_generate_summary): Skip aliases.
15049
15050 2011-06-10  Richard Guenther  <rguenther@suse.de>
15051
15052         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
15053         forward when combining, visit inserted stmts when a stmt was changed.
15054
15055 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
15056
15057         * tree.h (error_operand_p): Add.
15058         * dbxout.c (dbxout_type_fields): Use the latter.
15059         * c-decl.c (add_stmt): Likewise.
15060         * gimplify.c (omp_add_variable, omp_notice_variable,
15061         gimplify_scan_omp_clauses): Likewise.
15062
15063 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
15064
15065         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
15066         when a value is actually passed in regs.
15067
15068 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
15069             Laurent Rougé  <laurent.rouge@menta.fr>
15070
15071         * doc/invoke.texi (SPARC options): Add -mflat.
15072         * config/sparc/sparc.opt: Likewise.
15073         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
15074         (sparc_flat_expand_prologue): Declare.
15075         (sparc_flat_expand_epilogue): Likewise.
15076         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
15077         (CPP_ENDIAN_SPEC): Replace with...
15078         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
15079         (CPP_SPEC): Adjust to above change.
15080         (EXTRA_SPECS): Likewise.
15081         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
15082         (INCOMING_REGNO): Likewise.
15083         (OUTGOING_REGNO): Likewise.
15084         (LOCAL_REGNO): Likewise.
15085         (SETUP_FRAME_ADDRESSES): Likewise.
15086         (FIXED_REGISTERS): Set 0 for %fp.
15087         (CALL_USED_REGISTERS): Likewise.
15088         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
15089         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
15090         (RETURN_ADDR_REGNUM): Define.
15091         (RETURN_ADDR_RTX): Use it.
15092         (INCOMING_RETURN_ADDR_REGNUM): Define.
15093         (INCOMING_RETURN_ADDR_RTX): Use it.
15094         (DWARF_FRAME_RETURN_COLUMN): Likewise.
15095         (EH_RETURN_REGNUM): Define.
15096         (EH_RETURN_STACKADJ_RTX): Use it.
15097         (EH_RETURN_HANDLER_RTX): Delete.
15098         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
15099         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
15100         Delete.
15101         (struct machine_function): Add frame_size, apparent_frame_size,
15102         frame_base_reg, frame_base_offset, n_global_fp_regs and
15103         save_local_in_regs_p fields.
15104         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
15105         sparc_frame_base_offset, sparc_n_global_fp_regs,
15106         sparc_save_local_in_regs_p): New macros.
15107         (sparc_option_override): Error out if -fcall-saved-REG is specified
15108         for Out registers.
15109         (eligible_for_restore_insn): Fix formatting.
15110         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
15111         (eligible_for_sibcall_delay): Likewise.
15112         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
15113         (sparc_legitimate_address_p): Adjust to above change.
15114         (save_global_or_fp_reg_p): New predicate.
15115         (return_addr_reg_needed_p): Likewise.
15116         (save_local_or_in_reg_p): Likewise.
15117         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
15118         (SORR_SAVE, SORR_RESTORE): Delete.
15119         (sorr_pred_t): New typedef.
15120         (sorr_act_t): New enum.
15121         (save_or_restore_regs): Rename to...
15122         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
15123         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
15124         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
15125         mechanism.  Add CFI information for double-word saves in 32-bit mode.
15126         (emit_adjust_base_to_offset): New function extracted from...
15127         (emit_save_or_restore_regs): ...this.  Rename the rest to...
15128         (emit_save_or_restore_regs_global_fp_regs): ...this.
15129         (emit_save_or_restore_regs_local_in_regs): New function.
15130         (gen_create_flat_frame_[123]): New functions.
15131         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
15132         (sparc_flat_expand_prologue): New function.
15133         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
15134         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
15135         (sparc_flat_expand_epilogue): New function.
15136         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
15137         (output_return): Likewise.
15138         (output_sibcall): Likewise.
15139         (sparc_output_mi_thunk): Likewise.
15140         (sparc_frame_pointer_required): Likewise.
15141         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
15142         function optimization.
15143         * config/sparc/sparc.md (flat): New attribute.
15144         (prologue): Add TARGET_FLAT handling.
15145         (save_register_window): Disable if TARGET_FLAT.
15146         (create_flat_frame_[123]): New patterns.
15147         (epilogue): Add TARGET_FLAT handling.
15148         (sibcall_epilogue): Likewise.
15149         (eh_return): New expander.
15150         (eh_return_internal): New insn and splitter.
15151         (return_internal): Add TARGET_FLAT handling.
15152         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
15153         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
15154         (nonlocal_goto): Add TARGET_FLAT handling.
15155         * config/sparc/t-elf: Add -mflat multilib.
15156         * config/sparc/t-leon: Likewise.
15157
15158 2011-06-10  Jan Hubicka  <jh@suse.cz>
15159
15160         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
15161         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
15162         (self_recursive_p): Use cgraph_function_node.
15163         (propagate_pure_const): Likewise.
15164         (propagate_nothrow): Likewise.
15165         * ipa-reference.c (ipa_reference_get_not_read_global): Use
15166         cgraph_function_node.
15167         (propagate_bits): Likewise.
15168         (propagate): Likewise.
15169
15170 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15171             Richard Earnshaw  <rearnsha@arm.com>
15172
15173         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
15174         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
15175         (*thumb2_movdi_vfp): Delete.
15176         (*arm_movdi_vfp_cortexa8): Delete.
15177         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
15178         (*movdi_vfp_cortexa8): Likewise.
15179
15180 2011-06-10  Richard Guenther  <rguenther@suse.de>
15181
15182         * stor-layout.c (initialize_sizetypes): Give names to all
15183         sizetype kinds.
15184
15185 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
15186
15187         PR tree-optimization/49318
15188         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
15189         irrelevant pattern statements.
15190
15191 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
15192
15193         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
15194
15195         PR bootstrap/49354
15196         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
15197         to last assignment.
15198
15199 2011-06-09  Jan Hubicka  <jh@suse.cz>
15200
15201         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
15202         do not recompute reachable flag.
15203         (cgraph_finalize_function, cgraph_analyze_functions): Set
15204         redefined_extern_inline here.
15205
15206 2011-06-09  Jan Hubicka  <jh@suse.cz>
15207
15208         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
15209         (cgraph_only_called_directly_p): ... this one; bring offline.
15210         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
15211         varpool_used_from_object_file_p): Drop names from the declaratoin.
15212         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
15213         collect_callers_of_node): New.
15214         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
15215         (cgraph_edge_recursive_p): Use cgraph_function_node.
15216         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
15217         (cgraph_node_cannot_be_local_p_1): Break out from ...
15218         (cgraph_node_can_be_local_p): ... here; walk aliases.
15219         (cgraph_for_node_thunks_and_aliases): New function.
15220         (cgraph_for_node_and_aliases): New function.
15221         (cgraph_make_node_local_1): Break out from ...
15222         (cgraph_make_node_local) ... here; use
15223         cgraph_for_node_thunks_and_aliases.
15224         (cgraph_set_nothrow_flag_1): Break out from ...
15225         (cgraph_set_nothrow_flag) ... here;
15226         use cgraph_for_node_thunks_and_aliases.
15227         (cgraph_set_const_flag_1): Break out from ...
15228         (cgraph_set_const_flag) ... here;
15229         use cgraph_for_node_thunks_and_aliases.
15230         (cgraph_set_pure_flag_1): Break out from ...
15231         (cgraph_set_pure_flag) ... here;
15232         use cgraph_for_node_thunks_and_aliases.
15233         (cgraph_propagate_frequency_1): Break out from ...
15234         (cgraph_propagate_frequency) ... here; use
15235         cgraph_for_node_thunks_and_aliases.
15236         (cgraph_used_from_object_file_p): Do not care about aliases.
15237         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
15238         New functions.
15239         (collect_callers_of_node_1, collect_callers_of_node): New functions.
15240
15241 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
15242
15243         PR rtl-optimization/49154
15244         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
15245         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
15246         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
15247         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
15248         * config/cris/cris.h (cris_register_move_cost): Remove
15249         !TARGET_V32 code.  Tweak comments.
15250
15251 2011-06-09  Jan Hubicka  <jh@suse.cz>
15252
15253         * cgraphbuild.c (record_eh_tables): Mark personality function as having
15254         address taken.
15255
15256 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
15257
15258         PR rtl-optimization/49154
15259         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
15260         is a matching slot in the hashtable, assign it to classes_ptr.
15261
15262         PR rtl-optimization/49154
15263         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
15264         register classes.
15265         * doc/tm.texi: Regenerate.
15266
15267 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
15268
15269         PR target/49307
15270         * config/sh/sh.md (UNSPEC_CHKADD): New.
15271         (chk_guard_add): New define_insn_and_split.
15272         (symGOT_load): Use chk_guard_add instead of blockage.
15273
15274 2011-06-09  Kai Tietz  <ktietz@redhat.com>
15275
15276         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
15277
15278 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
15279
15280         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
15281
15282 2011-06-09  Wei Guozhi  <carrot@google.com>
15283
15284         PR target/46975
15285         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
15286         (peephole2 for conditional move): Generate 16 bit instructions.
15287
15288 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
15289
15290         * config/i386/i386.md (*movdi_internal_rex64): Merge
15291         alternatives 6 and 8.
15292
15293 2011-06-09  David Li  <davidxl@google.com>
15294
15295         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
15296         * passes.c (passr_eq): New function.
15297         (create_pass_tab): New function.
15298         (pass_traverse): New function.
15299         (dump_one_pass): New function.
15300         (dump_pass_list): New function.
15301         (dump_passes): New function.
15302
15303 2011-06-09  David Li  <davidxl@google.com>
15304
15305         * tree-complex.c (tree_lower_complex): Gate cleanup.
15306         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
15307         (execute_optimize_stdarg): Ditto.
15308         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
15309         (execute_cleanup_eh_1): Ditto.
15310         (execute_cleanup_eh): Ditto.
15311         * gcse.c (gate_rtl_pre): Ditto.
15312         (execute_rtl_pre): Ditto.
15313         * except.c (finish_eh_generation): Ditto.
15314         (convert_to_eh_region_ranges): Ditto.
15315         * cprop.c (one_cprop_pass): Ditto.
15316
15317 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
15318
15319         PR target/48673
15320         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
15321         in all basic blocks.
15322
15323 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15324
15325         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
15326         (HAVE_ENABLE_EXECUTE_STACK): Define.
15327         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
15328         (HAVE_ENABLE_EXECUTE_STACK): Define.
15329         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
15330         (HAVE_ENABLE_EXECUTE_STACK): Define.
15331         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
15332         (ENABLE_EXECUTE_STACK): Remove.
15333         (HAVE_ENABLE_EXECUTE_STACK): Define.
15334         [IN_LIBGCC2]: Don't include <windows.h>.
15335         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15336         (HAVE_ENABLE_EXECUTE_STACK): Define.
15337         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
15338         (HAVE_ENABLE_EXECUTE_STACK): Define.
15339         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
15340         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
15341         (HAVE_ENABLE_EXECUTE_STACK): Define.
15342         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
15343         (HAVE_ENABLE_EXECUTE_STACK): Define.
15344         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
15345         (HAVE_ENABLE_EXECUTE_STACK): Define.
15346         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15347         (HAVE_ENABLE_EXECUTE_STACK): Define.
15348         * config/alpha/alpha.c (alpha_trampoline_init): Test
15349         HAVE_ENABLE_EXECUTE_STACK.
15350         * config/i386/i386.c (ix86_trampoline_init): Likewise.
15351         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15352         (sparc64_initialize_trampoline): Likewise.
15353         * libgcc2.c [L_enable_execute_stack]: Remove.
15354         * system.h (ENABLE_EXECUTE_STACK): Poison.
15355         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
15356         * doc/tm.texi: Regenerate.
15357         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
15358
15359 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
15360
15361         PR middle-end/49308
15362         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
15363         variable.  After resetting and rescanning insn continue with previous
15364         statement.
15365
15366 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15367
15368         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
15369         (gcc_cv_ld_hidden): Likewise.
15370         * configure: Regenerate.
15371         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
15372         (ix86_stack_protect_fail): Mark unused.
15373         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
15374         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
15375         [TARGET_MACHO]: Don't define.
15376         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
15377         (TARGET_STACK_PROTECT_FAIL): Likewise.
15378         (rs6000_stack_protect_fail): Mark unused.
15379         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
15380         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
15381
15382 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15383
15384         * varasm.c (get_section): Print location of other conflict
15385         for section conflicts.
15386
15387 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15388
15389         * config/i386/driver-i386.c (host_detect_local_cpu):
15390         Add model 0x2d Intel CPU.
15391
15392 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15393
15394         * reginfo.c (global_regs_decl): Add.
15395         (globalize_reg): Add decl parameter. Compute location.  Pass location
15396         to warnings and add inform. Store decl in global_regs_decl.
15397         * rtl.h (globalize_reg): Update prototype.
15398         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
15399
15400 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
15401
15402         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
15403
15404 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15405
15406         PR target/49305
15407         * config/sh/predicates.md (general_movsrc_operand): Check
15408         mode for memory with indexed address for QI and HImode.
15409         (general_movdst_operand): Likewise.
15410
15411 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15412
15413         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
15414
15415 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
15416
15417         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
15418         (num_ssa_operands): Likewise.
15419         (op_iter_init_phiuse): Forward-declare.
15420         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
15421
15422 2011-06-08  Nick Clifton  <nickc@redhat.com>
15423
15424         * doc/invoke.texi (ARM Options): Update description of
15425         -mthumb-interwork.
15426
15427 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
15428
15429         * config/i386/driver-i386.c (host_detect_local_cpu): Support
15430         unknown Intel family 0x6 CPUs.
15431
15432 2011-06-08  Martin Jambor  <mjambor@suse.cz>
15433
15434         * tree-sra.c (mark_rw_status): Removed.
15435         (analyze_access_subtree): New parameter parent instead of
15436         mark_read and mark_write, propagate from that.
15437
15438 2011-06-08  Julian Brown  <julian@codesourcery.com>
15439
15440         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15441         for double-precision helper functions in hard-float mode if only
15442         single-precision arithmetic is supported in hardware.
15443
15444 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
15445
15446         PR rtl-optimization/49303
15447         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
15448         code_motion_path_driver returned 0 or 1.
15449         (sel_region_finish): Clear h_d_i_d.
15450
15451 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15452
15453         * config/sh/sh.c (prepare_move_operands): Set pic register
15454         appropriately for global and local dynamic tls models even
15455         if flag_pic is unset.
15456
15457 2011-06-07  Jason Merrill  <jason@redhat.com>
15458
15459         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
15460
15461 2011-06-07  Xinliang David Li  <davidxl@google.com>
15462         * passes.c (enable_disable_pass): Handle assembler name.
15463         (is_pass_explicitly_enabled_or_disabled): Ditto.
15464
15465 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15466
15467         PR tree-optimization/48497
15468         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
15469
15470 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15471
15472         PR tree-optimization/46728
15473         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
15474         to use gimple_val_nonnegative_real_p.
15475         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
15476         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
15477
15478 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
15479
15480         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
15481
15482 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
15483
15484         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
15485         constant vectors.
15486
15487 2011-06-07  Richard Guenther  <rguenther@suse.de>
15488
15489         * stor-layout.c (initialize_sizetypes): Initialize all
15490         sizetypes based on target definitions.
15491         (set_sizetype): Remove.
15492         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
15493         * tree.h (set_sizetype): Remove.
15494
15495 2011-06-07  Nick Clifton  <nickc@redhat.com>
15496
15497         * config.gcc: Unify V850 architecture options and add support for
15498         newer V850 architectures.
15499         * config/v850/t-v850e: Delete.
15500
15501 2011-06-07  Richard Guenther  <rguenther@suse.de>
15502
15503         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
15504         Call set_sizetype from here.
15505
15506 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
15507
15508         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
15509         (*maddhisi4tb, *maddhisi4tt): New define_insns.
15510
15511 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
15512             Andrew Stubbs  <ams@codesourcery.com>
15513
15514         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
15515         multiplies.
15516         * doc/md.texi (Canonicalization of Instructions): Document widening
15517         multiply canonicalization.
15518
15519 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
15520
15521         PR gcov-profile/49299
15522         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
15523
15524 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
15525
15526         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
15527         a pointer.
15528         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
15529         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
15530         vect_recog_pow_pattern): Likewise.
15531         (vect_pattern_recog_1): Remove declaration.
15532         (widened_name_p): Remove declaration.  Add new argument to specify
15533         whether to check that both types are either signed or unsigned.
15534         (vect_recog_widen_mult_pattern): Update documentation.  Handle
15535         unsigned patterns and multiplication by constants.
15536         (vect_pattern_recog_1): Update vect_recog_func references.  Use
15537         statement information from the statement returned from pattern
15538         detection functions.
15539         (vect_pattern_recog): Update vect_recog_func reference.
15540         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
15541         multiplication by a constant use the type of the other operand.
15542
15543 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
15544
15545         PR rtl-optimization/49145
15546         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
15547
15548 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
15549
15550         PR debug/49262
15551         * dwarf2out.c (native_encode_initializer): Decrement count in each
15552         iteration.
15553
15554         PR debug/49294
15555         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
15556         non-MODE_INT modes.
15557
15558         PR c++/49264
15559         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
15560         if stmt folded into nothing.
15561         * tree-inline.c (fold_marked_statements): If a builtin at the end of
15562         a bb folded into nothing, just update cgraph edges and move to next bb.
15563         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
15564         to be NULL.  Don't compute count and frequency if new_call is NULL.
15565
15566 2011-06-04  Diego Novillo  <dnovillo@google.com>
15567
15568         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
15569         (cgraph.o): Likewise.
15570         (cgraphunit.o): Likewise.
15571         * cgraphunit.c: Include lto-streamer.h
15572         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
15573         if LTO is enabled.
15574         * lto-streamer-in.c (unpack_value_fields): Call
15575         streamer_hooks.unpack_value_fields if set.
15576         (lto_materialize_tree): For unhandled nodes, first try to
15577         call lto_streamer_hooks.alloc_tree, if it exists.
15578         (lto_input_ts_decl_common_tree_pointers): Move reading of
15579         DECL_INITIAL to lto_streamer_read_tree.
15580         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
15581         (lto_streamer_read_tree): New.
15582         (lto_reader_init): Rename from lto_init_reader.
15583         Move initialization code to lto/lto.c.
15584         * lto-streamer-out.c (pack_value_fields): Call
15585         streamer_hooks.pack_value_fields if set.
15586         (lto_output_tree_ref): For tree nodes that are not normally indexable,
15587         call streamer_hooks.indexable_with_decls_p before giving up.
15588         (lto_output_ts_decl_common_tree_pointers): Move handling
15589         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
15590         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
15591         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
15592         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
15593         (lto_streamer_write_tree): New.
15594         (lto_output): Call lto_streamer_init directly.
15595         (lto_writer_init): Remove.
15596         * lto-streamer.c (streamer_hooks): New.
15597         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
15598         instead of lto_preload_common_nodes.
15599         (lto_is_streamable): Move from lto-streamer.h
15600         (lto_streamer_hooks_init): New.
15601         (streamer_hooks): New.
15602         (streamer_hooks_init): New.
15603         * lto-streamer.h (struct output_block): Forward declare.
15604         (struct lto_input_block): Likewise.
15605         (struct data_in): Likewise.
15606         (struct bitpack_d): Likewise.
15607         (struct streamer_hooks): Declare.
15608         (streamer_hooks): Declare.
15609         (lto_streamer_hooks_init): Declare.
15610         (lto_streamer_write_tree): Declare.
15611         (lto_streamer_read_tree): Declare.
15612         (streamer_hooks_init): Declare.
15613         (lto_is_streamable): Move to lto-streamer.c
15614
15615 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15616
15617         * longlong.h (smul_ppmm): The resulting register pair contains the
15618         higher order word first.
15619
15620 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15621
15622         PR tree-optimization/46728
15623         * builtins.c (powi_table): Remove.
15624         (powi_lookup_cost): Remove.
15625         (powi_cost): Remove.
15626         (expand_powi_1): Remove.
15627         (expand_powi): Remove.
15628         (expand_builtin_pow_root): Remove.
15629         (expand_builtin_pow): Remove.
15630         (expand_builtin_powi): Eliminate handling of constant exponent.
15631         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
15632
15633 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15634
15635         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
15636
15637 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15638
15639         * dce.c (reset_unmarked_insns_debug_uses): New.
15640         (delete_unmarked_insns): Skip debug insns.
15641         (prescan_insns_for_dce): Likewise.
15642         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
15643         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
15644         active reg can be found.
15645         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
15646         (convert_regs_1): Use it.
15647
15648 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15649
15650         * tree-pretty-print.c (dump_function_header): Add flags.
15651         Don't dump decl_uid with nouid.
15652         * tree-pretty-print.h (dump_function_header): Adjust.
15653         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
15654         * passes.c (pass_init_dump_file): Pass dump_flags on.
15655         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
15656
15657 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15658
15659         PR bootstrap/49270
15660         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
15661
15662 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
15663
15664         PR tree-optimization/49243
15665         * calls.c (setjmp_call_p): Also check if fndecl has the
15666         returns_twice attribute.
15667
15668 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15669
15670         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
15671         -ffast-math etc.
15672
15673 2011-06-06  Richard Henderson  <rth@redhat.com>
15674             Georg-Johann Lay  <avr@gjlay.de>
15675
15676         PR target/42210
15677         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
15678         New predicates.
15679         * config/avr/avr.md ("insv"): New insn expander.
15680         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
15681         "*insv.not.io", "*insv.reg"): New insns.
15682
15683 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
15684
15685         PR target/49285
15686         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
15687         to nonimmediate_operand from memory_operand for the operand that is to
15688         be forced to memory by the expander.  Lose the constraints.
15689
15690 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
15691
15692         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
15693         EH return when delayed branches are disabled.
15694
15695 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
15696
15697         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
15698         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
15699         calculation.
15700         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
15701         Simplify MODE_V1DF and MODE_V2SF handling.
15702         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
15703         Simplify MODE_SF handling.
15704
15705 2011-06-04  Jan Hubicka  <jh@suse.cz>
15706
15707         PR tree-optimization/48893
15708         PR tree-optimization/49091
15709         PR tree-optimization/49179
15710         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
15711         Bounds check.
15712
15713 2011-06-04  Jan Hubicka  <jh@suse.cz>
15714
15715         PR lto/48954
15716         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
15717         bitmaps.
15718
15719 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
15720
15721         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
15722
15723 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
15724
15725         PR target/49281
15726         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
15727         to be strictly smaller than 1 << shiftcount.
15728
15729 2011-06-04  Jan Hubicka  <jh@suse.cz>
15730
15731         PR tree-optimize/48929
15732         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
15733         of empty predicate.
15734
15735 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
15736
15737         PR debug/48333
15738         * calls.c (emit_call_1): Prefer the __builtin declaration of
15739         builtin functions.
15740
15741 2011-06-03   Diego Novillo  <dnovillo@google.com>
15742
15743         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
15744         (lto_input_tree_pointers): Likewise.
15745         * lto-streamer-out.c (pack_value_fields): Likewise.
15746         (lto_output_tree_pointers): Likewise.
15747         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
15748         and OPTIMIZATION_NODE.
15749
15750 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15751
15752         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
15753         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
15754         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
15755         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
15756         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
15757         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
15758         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
15759         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
15760         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
15761         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
15762         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
15763         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
15764         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
15765         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
15766         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
15767         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
15768         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
15769         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
15770         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
15771         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
15772         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
15773         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
15774         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
15775         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
15776         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
15777         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
15778         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
15779         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
15780         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
15781         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
15782         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
15783         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
15784         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
15785         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
15786         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
15787         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
15788         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
15789         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
15790         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
15791         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
15792         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
15793         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
15794         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
15795         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
15796         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
15797         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
15798         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
15799         * system.h (MD_UNWIND_SUPPORT): Poison.
15800         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
15801         * doc/tm.texi: Regenerate.
15802         * unwind-dw2.c: Include md-unwind-support.h instead of
15803         MD_UNWIND_SUPPORT.
15804         * config/ia64/unwind-ia64.c: Likewise.
15805         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
15806
15807 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
15808
15809         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
15810
15811 2011-06-03  Richard Henderson  <rth@redhat.com>
15812             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15813
15814         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
15815         (sigill_hdlr): Correct insn, insn size.
15816         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
15817
15818 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15819
15820         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
15821         t-slibgcc-dummy.
15822         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
15823         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
15824         * config/mips/t-iris: Remove.
15825         * config/mips/t-irix6: New file.
15826         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
15827
15828 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15829
15830         * Makefile.in (LIB2ADDEHDEP): Remove.
15831         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
15832         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
15833         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
15834         * config/t-darwin (LIB2ADDEHDEP): Remove.
15835         * config/t-freebsd (LIB2ADDEHDEP): Remove.
15836         * config/t-linux (LIB2ADDEHDEP): Remove.
15837
15838 2011-06-03  Diego Novillo  <dnovillo@google.com>
15839
15840         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
15841         (lto_register_var_decl_in_symtab): Likewise.
15842         (lto_register_function_decl_in_symtab): Likewise.
15843         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
15844         logic to uniquify_nodes.
15845
15846 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15847
15848         * config/alpha/t-osf5: Remove.
15849         * config/alpha/t-osf-pthread: Remove.
15850         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
15851         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
15852
15853 2011-06-03  Julian Brown  <julian@codesourcery.com>
15854
15855         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
15856         (strongarm1110): Use strongarm tuning.
15857         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
15858         * config/arm/arm.c (arm_strongarm_tune): New.
15859         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15860         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
15861         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
15862         setting, using previous defaults or 1 for Cortex-A5.
15863         (arm_option_override): Set max_insns_skipped from current tuning.
15864
15865 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
15866
15867         * doc/install.texi (Options specification): Document --with-specs.
15868
15869 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15870
15871         * config/arm/neon.md (orndi3_neon): Actually split it.
15872
15873 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
15874
15875         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
15876         * var-tracking.c (reverse_op): Limite recurse depth to 5.
15877
15878 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
15879
15880         PR debug/47590
15881         * target.def (delay_sched2, delay_vartrack): New.
15882         * doc/tm.texi.in: Update.
15883         * doc/tm.texi: Rebuild.
15884         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
15885         * var-tracking.c (gate_handle_var_tracking): Likewise.
15886         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
15887         (bfin_flag_var_tracking): Drop.
15888         (output_file_start): Don't save and override flag_var_tracking.
15889         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
15890         (bfin_reorg): Test original variables.
15891         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15892         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
15893         (ia64_flag_var_tracking): Drop.
15894         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15895         (ia64_file_start): Don't save and override flag_var_tracking.
15896         (ia64_override_options_after_change): Ditto
15897         flag_schedule_insns_after_reload.
15898         (ia64_reorg): Test original variables.
15899         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
15900         (picochip_flag_var_tracking): Drop.
15901         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15902         (picochip_option_override): Don't save and override
15903         flag_schedule_insns_after_reload.
15904         (picochip_asm_file_start): Ditto flag_var_tracking.
15905         (picochip_reorg): Test original variables.
15906         * config/spu/spu.c (spu_flag_var_tracking): Drop.
15907         (TARGET_DELAY_VARTRACK): Define.
15908         (spu_var_tracking): New.
15909         (spu_machine_dependent_reorg): Call it.
15910         (asm_file_start): Don't save and override flag_var_tracking.
15911
15912 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
15913
15914         PR target/49163
15915         * config/sh/predicates.md (general_movsrc_operand): Return 0
15916         for memory and memory subreg of which address is an invalid
15917         indexed address for QI and HImode.
15918         (general_movdst_operand): Likewise.
15919
15920 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15921
15922         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
15923         edges only, when there is a non-local label in the function.
15924         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
15925
15926 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
15927
15928         * config/i386/constraints.md (Y3): New register constraint.
15929         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
15930         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
15931         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
15932         *sse2_interleave_lowv2df.
15933
15934 2011-06-02  Julian Brown  <julian@codesourcery.com>
15935
15936         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
15937         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
15938         (arm_cortex_a5_tune): New.
15939
15940 2011-06-02  Julian Brown  <julian@codesourcery.com>
15941
15942         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
15943         * config/arm/arm.c (arm_default_branch_cost): New.
15944         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15945         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
15946         (arm_fa726_tune): Set branch_cost field using
15947         arm_default_branch_cost.
15948         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
15949         current_tune structure.
15950         * dojump.c (tm_p.h): Include file.
15951
15952 2011-06-02  Julian Brown  <julian@codesourcery.com>
15953
15954         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
15955         tuning.
15956         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
15957         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
15958         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
15959         field.
15960         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
15961         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
15962         (arm_fa726te_tune): Add prefer_constant_pool setting.
15963         (arm_v6t2_tune, arm_cortex_tune): New.
15964         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
15965         prefer_constant_pool setting.
15966
15967 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
15968
15969         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
15970         switch statement.
15971         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
15972         (*movdf_internal) <case 6,7,8>: Ditto.
15973
15974         * config/i386/constraints.md (Y4): New register constraint.
15975         * config/i386/sse.md (vec_set<mode>_0): Merge with
15976         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
15977         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
15978         *vec_extractv2di_1_sse.
15979         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
15980         and *vec_concatv2di_rex64_sse.
15981
15982 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
15983
15984         PR target/48807
15985         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
15986         of cgraph_local_info for null before attempting to use it.
15987
15988 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15989
15990         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
15991         (current_function_dynamic_alloc_count): Delete.
15992         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
15993         (expand_builtin_nonlocal_goto): Remove obsolete comment.
15994         (expand_builtin_update_setjmp_buf): Remove dead code.
15995         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
15996         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
15997         support.
15998         * function.c (instantiate_virtual_regs): Likewise.
15999         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
16000         for a block with a single abnormal incoming edge.
16001         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
16002         (SETJMP_VIA_SAVE_AREA): Delete.
16003         * config/sparc/sparc-protos.h (load_got_register): Declare.
16004         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
16005         (load_got_register): Make global.
16006         (sparc_frame_pointer_required): Add 'static'.
16007         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
16008         (sparc_builtin_setjmp_frame_value): New function.
16009         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
16010         (save_stack_nonlocal): New expander.
16011         (restore_stack_nonlocal): Likewise.
16012         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
16013         (nonlocal_goto_internal): New insn.
16014         (goto_handler_and_restore): Delete.
16015         (builtin_setjmp_setup): Likewise.
16016         (do_builtin_setjmp_setup): Likewise.
16017         (setjmp): Likewise.
16018         (builtin_setjmp_receiver): New expander.
16019
16020 2011-06-01  David Li  <davidxl@google.com>
16021
16022         PR middle-end/49261
16023         * tree-pretty-print.c (dump_function_header): Format cleanup.
16024
16025 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
16026
16027         PR target/49238
16028         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
16029         needed when original operands are used for msw_skip comparison.
16030
16031 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
16032
16033         PR debug/49250
16034         * var-tracking.c (add_uses, add_stores): Don't call
16035         cselib_subst_to_values on ENTRY_VALUE.
16036
16037 2011-06-01  Diego Novillo  <dnovillo@google.com>
16038
16039         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
16040         output_record_start with LTO_null instead of output_zero.
16041         (lto_output_ts_binfo_tree_pointers): Likewise.
16042         (lto_output_tree): Likewise.
16043         (output_eh_try_list): Likewise.
16044         (output_eh_region): Likewise.
16045         (output_eh_lp): Likewise.
16046         (output_eh_regions): Likewise.
16047         (output_bb): Likewise.
16048         (output_function): Likewise.
16049         (output_unreferenced_globals): Likewise.
16050         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
16051         instead of NUM_TREE_CODES.
16052         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
16053         (lto_output_int_in_range): Change << to >> when shifting VAL.
16054
16055 2011-06-01  Diego Novillo  <dnovillo@google.com>
16056
16057         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
16058         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
16059
16060 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
16061
16062         PR target/45074
16063         * optabs.h (valid_multiword_target_p): Declare.
16064         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
16065         doing multi-word operations.
16066         * optabs.c (expand_binop): Likewise.
16067         (expand_doubleword_bswap): Likewise.
16068         (expand_absneg_bit): Likewise.
16069         (expand_unop): Likewise.
16070         (expand_copysign_bit): Likewise.
16071         (multiword_target_p): New function.
16072
16073 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
16074
16075         PR rtl-optimization/48830
16076         PR rtl-optimization/48808
16077         PR rtl-optimization/48792
16078         * reload.c (push_reload): Check contains_reg_of_mode.
16079         * reload1.c (strip_paradoxical_subreg): New function.
16080         (gen_reload_chain_without_interm_reg_p): Use it to handle
16081         paradoxical subregs.
16082         (emit_output_reload_insns, gen_reload): Likewise.
16083
16084 2011-06-01  David Li  <davidxl@google.com>
16085
16086         * predict.c : Change pass name
16087         * ipa.c: Ditto.
16088         * dce.c: Ditto.
16089         * tree-profile.c: Ditto.
16090         * except.c: Ditto.
16091
16092 2011-06-01  David Li  <davidxl@google.com>
16093
16094         * tree-pretty-print.c (dump_function_header): New function.
16095         * final.c (rest_of_clean_state): Use header dumper.
16096         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
16097         * passes.c (pass_init_dump_file): Use header dumper.
16098
16099 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
16100
16101         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
16102         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
16103         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
16104         New functions.
16105         (mem_loc_descriptor): Use them.
16106
16107         * var-tracking.c (create_entry_value): New function.
16108         (vt_add_function_parameter): Use it.
16109
16110 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16111
16112         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
16113         Include <signal.h>, <ucontext.h>.
16114         (sigill_caught): Define.
16115         (sigill_hdlr): New function.
16116         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
16117         insns can be executed.
16118         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
16119         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
16120
16121 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16122
16123         * config/t-slibgcc-darwin: Move to ...
16124         * config/t-slibgcc-dummy: ... this.  Clarify comments.
16125         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
16126         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
16127         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
16128         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
16129         Remove i386/t-crtstuff from tmake_file.
16130         (i[34567]86-*-solaris2*): Remove t-svr4,
16131         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
16132         t-slibgcc-dummy.
16133         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
16134         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
16135         sparc/t-crtfm from tmake_file.
16136         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
16137         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
16138         Remove extra_parts.
16139         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
16140         * config/i386/t-nwld (SHLIB_LINK): Remove.
16141         * config/i386/t-rtems-i386: Rename to ...
16142         * config/i386/t-rtems: ... this.
16143         ($(T)crti.o, $(T)crtn.o): Remove.
16144         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
16145         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
16146         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
16147         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
16148         EXTRA_MULTILIB_PARTS): Remove.
16149         * config/sparc/t-sol2-64: Likewise.
16150         * config/sparc/t-sol2: Remove.
16151         * config/sparc/t-crtin: Remove.
16152         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
16153         * config/i386/gmon-sol2.c: Remove.
16154         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
16155         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
16156         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
16157         * config/i386/sol2-gc1.asm: Remove.
16158         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
16159         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
16160         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
16161         * config/t-slibgcc-sld: Remove.
16162
16163 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
16164
16165         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
16166         base_type_for_mode with op_mode instead of mode.
16167
16168 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
16169
16170         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
16171         Cortex-A15.
16172         * config/arm/arm-tune.md: Regenerate.
16173         * config/arm/arm-tables.opt: Regenerate.
16174         * config/arm/arm.c (FL_DIV): Rename...
16175         (FL_THUMB_DIV): ... to this.
16176         (FL_ARM_DIV): Define.
16177         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
16178         (arm_arch_hwdiv): Remove.
16179         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
16180         (arm_issue_rate): Add cortexr5.
16181         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
16182         __ARM_ARCH_EXT_IDIV__.
16183         (TARGET_IDIV): Define.
16184         (arm_arch_hwdiv): Remove.
16185         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
16186         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
16187         (divsi3, udivsi3): New patterns.
16188         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
16189         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
16190
16191 2011-06-01  Martin Jambor  <mjambor@suse.cz>
16192
16193         * ipa-utils.c (ipa_dfs_info): New field scc_no.
16194         * ipa-utils.c (searchc): Set scc_no.
16195
16196 2011-06-01  Martin Jambor  <mjambor@suse.cz>
16197
16198         * ipa-utils.c (searchc_env): New field allow_overwritable.
16199         (searchc): do not ignore edges to overwritable nodes if indicated
16200         by env->allow_overwritable.
16201         (ipa_reduced_postorder): Set env.allow_overwritable.
16202
16203 2011-06-01  Richard Guenther  <rguenther@suse.de>
16204
16205         * tree.c (free_lang_data): Do not reset boolean_type_node nor
16206         char_type_node.
16207         * lto-streamer.c (lto_record_common_node): Take node pointer,
16208         do not register types.
16209         (lto_preload_common_nodes): Explicitly skip preloading nodes
16210         that differ between frontends.
16211
16212 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
16213
16214         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
16215         NON_FLOAT_REGS.
16216
16217 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
16218
16219         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
16220         parameter value for dump. Dump cost on outermost call only.
16221         (rs6000_memory_move_cost): Dump cost on outermost call only.
16222
16223 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
16224
16225         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
16226         DW_OP_GNU_convert ops.
16227
16228         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
16229         cselib_preserve_constants.
16230         (cselib_lookup_1): If cselib_preserve_constants,
16231         a new VALUE is being created for REG and there is a VALUE for the
16232         same register in wider mode, add another loc with lowpart SUBREG of
16233         the wider VALUE.
16234         (cselib_subst_to_values): Handle ENTRY_VALUE.
16235         * var-tracking.c  (replace_expr_with_values): Return NULL for
16236         ENTRY_VALUE too.
16237         * dwarf2out.c (convert_descriptor_to_signed): New function.
16238         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
16239         instead of two shifts.
16240         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
16241         the right mode if needed.
16242         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
16243         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
16244         convert_descriptor_to_signed.
16245         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
16246         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
16247
16248         PR target/48688
16249         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
16250
16251 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
16252
16253         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
16254         of X87MODEI12 and SWI48x instead of SSEMODEI24.
16255         (SWI248x): New mode iterator, rename from X87MODEI.
16256         (X87MODEI): Remove mode iterator.
16257         (X87MODEI12): Ditto.
16258         (SSEMODEI24): Ditto.
16259
16260 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
16261
16262         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
16263         * doc/invoke.texi: Document max-vartrack-expr-depth.
16264         * var-tracking.c (EXPR_DEPTH): New.
16265         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
16266
16267 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
16268
16269         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
16270         * config/i386/sse.md: Add n to negated FMA pattern names.
16271
16272 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
16273
16274         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
16275
16276 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
16277
16278         * gengtype-state.c (read_state_params_structs): Initialize previous.
16279
16280 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
16281
16282         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
16283         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
16284
16285 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
16286
16287         * config/i386/i386.md (*movtf_internal): Avoid allocating general
16288         registers.  Penalize F*r->o alternative to prevent partial memory
16289         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
16290         CONST_DOUBLE immediates when optimizing function for size.  Do not move
16291         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16292         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
16293         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
16294         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
16295         alternatives.
16296         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
16297
16298         (fp_register_operand splitters): Use fp_register_operand
16299         constraint.  Do not use FP_REG_P in insn condition.
16300         (any_fp_register_operand splitters): Use any_fp_register_operand
16301         constraint.  Do not use ANY_FP_REG_P in insn condition.
16302
16303 2011-05-31  Jan Hubicka  <jh@suse.cz>
16304
16305         * cgraph.h (cgraph_inline_failed_t): Give enum a name
16306         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
16307         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
16308         (lto_output_edge): Use output_enum and var_len_unsigned.
16309         (lto_output_varpool_node): Likewise.
16310         (input_overwrite_node): Do not take resolution parameter;
16311         extract it from a bitpack.
16312         (input_node): Do not read resolution; use input_enum and
16313         var_len_unsigned.
16314         (input_varpool_node): Likewise.
16315         (input_edge): Likewise.
16316         (input_cgraph_1): Likewise.
16317
16318 2011-05-31  Richard Guenther  <rguenther@suse.de>
16319
16320         * gimple.c (gimple_register_canonical_type): Do not register
16321         any types via gimple_register_type.
16322
16323 2011-05-31  Jan Hubicka  <jh@suse.cz>
16324
16325         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
16326         of thunks.
16327
16328 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
16329
16330         PR rtl-optimization/49235
16331         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
16332         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
16333
16334 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
16335
16336         PR tree-optimization/49093
16337         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
16338         data references.
16339
16340 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
16341
16342         PR debug/49047
16343         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
16344         for concrete functions containing the code of cloned functions.
16345
16346 2011-05-31  Richard Guenther  <rguenther@suse.de>
16347
16348         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
16349         to ...
16350         (forward_propagate_into_comparison_1): ... this.
16351         (forward_propagate_comparison): Rename to ...
16352         (forward_propagate_into_comparison): ... this.  Split out
16353         real forward propagation code to ...
16354         (forward_propagate_comparison): ... this.
16355         (forward_propagate_into_gimple_cond): Remove looping.
16356         (forward_propagate_into_cond): Likewise.
16357         (simplify_not_neg_expr): Return whether we have done something.
16358         (simplify_gimple_switch): Likewise.
16359         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
16360         (ssa_forward_propagate_and_combine): ... this.  Re-structure
16361         to do a forward forward-propagation walk on BBs and a backward
16362         stmt combining walk on BBs.  Consistently re-scan changed statements.
16363         (pass_forwprop): Adjust.
16364
16365 2011-05-30  Ian Lance Taylor  <iant@google.com>
16366
16367         * godump.c (go_format_type): Correct length of name added to
16368         obstack for anonymous field.
16369
16370 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
16371
16372         PR target/49186
16373         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
16374         part of the second operand is 0.
16375
16376 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
16377
16378         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
16379         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
16380         to memory for !TARGET_MEMORY_MISMATCH_STALL.
16381         (*movdf_internal_rex64): Do not penalize F->r alternative.
16382         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
16383         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
16384         when optimizing function for size.  Do not move CONST_DOUBLEs
16385         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16386         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
16387         SUBREGs.  Do not check for MEM_P operands in the insn condition,
16388         check for ANY_FP_REGNO_P instead.
16389         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
16390         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
16391         function for speed.
16392         * config/i386/i386.c (ix86_option_override_internal): Do not
16393         set TARGET_INTEGER_DFMODE_MOVES here.
16394
16395 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16396
16397         PR target/49168
16398         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
16399
16400 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
16401
16402         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
16403         DW_TAG_rvalue_reference_type even for
16404         -gdwarf-4 -fno-debug-types-section.
16405
16406 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16407
16408         PR tree-optimization/46728
16409         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
16410         (build_and_insert_binop): New.
16411         (gimple_expand_builtin_pow): Reorder args for
16412         build_and_insert_call; use build_and_insert_binop; add more
16413         optimizations for fractional exponents.
16414
16415 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
16416
16417         PR bootstrap/49190
16418
16419         Revert:
16420         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16421
16422         * tree.h (struct tree_identifier): Inherit from tree_typed, not
16423         tree_common.
16424         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16425         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16426         TS_BASE instead of TS_COMMON.
16427         * varasm.c (assemble_name): Remove assert.
16428
16429 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
16430
16431         * config.gcc: Keep obselete list sorted.
16432
16433 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
16434             Eric Botcazou  <ebotcazou@adacore.com>
16435
16436         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
16437         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
16438         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
16439         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
16440         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
16441
16442 2011-05-30  Richard Guenther  <rguenther@suse.de>
16443
16444         * gimple.c (gimple_types_compatible_p_1): Compare record
16445         and union type members properly.
16446
16447 2011-05-30  Richard Guenther  <rguenther@suse.de>
16448
16449         PR tree-optimization/49210
16450         * ipa-split.c (split_function): Care for the case where the call
16451         result is not trivially convertible to the result holding variable.
16452
16453 2011-05-30  Richard Guenther  <rguenther@suse.de>
16454
16455         PR tree-optimization/49218
16456         * tree-vrp.c (adjust_range_with_scev): Properly check whether
16457         overflow occured.
16458
16459 2011-05-30  Richard Guenther  <rguenther@suse.de>
16460
16461         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
16462         New function split out from ...
16463         (forward_propagate_into_gimple_cond): ... here.  Adjust.
16464         (forward_propagate_into_cond): Likewise.
16465         (forward_propagate_comparison): Also propagate into
16466         comparisons on assignment RHS.  Change return value to
16467         behave similar to forward_propagate_into_cond.
16468         (tree_ssa_forward_propagate_single_use_vars): Handle
16469         strict-overflow warnings properly for forward_propagate_comparison.
16470
16471 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16472
16473         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
16474         from plugin linker.
16475         * configure: Regenerate.
16476
16477 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
16478
16479         PR tree-optimization/49199
16480         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
16481         non-reduction operands are either defined in the loop or by induction.
16482
16483 2011-05-29  Xinliang David Li  <davidxl@google.com>
16484
16485         * opts-global.c (handle_common_deferred_options): Handle new options.
16486         * passes.c (register_one_dump_file): Call register_pass_name.
16487         (execute_one_pass): Check explicit enable/disable flag.
16488         (passr_hash): New function.
16489         (passr_eq): Ditto.
16490         (register_pass_name): Ditto.
16491         (get_pass_by_name): Ditto.
16492         (pass_hash): Ditto.
16493         (pass_eq): Ditto.
16494         (enable_pass): Ditto.
16495         (disable_pass): Ditto.
16496         (is_pass_explicitly_enabled_or_disabled): Ditto.
16497
16498 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
16499
16500         * config/i386/i386.md (*movoi_internal_avx): Use
16501         standard_sse_constant_opcode for alternative 0.
16502         (*movti_internal_sse): Ditto.
16503         (*movti_internal_rex64): Use standard_sse_constant_opcode for
16504         alternative 2.
16505         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
16506         sselog1 type moves.
16507         (*movsi_internal): Ditto.
16508         (*movdi_internal): Ditto.  Add ssecvt type moves.
16509
16510 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
16511
16512         PR target/48830
16513         * rtlanal.c (simplify_subreg_regno): Adjust comment.
16514
16515 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
16516
16517         PR rtl-optimization/49095
16518         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
16519         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
16520
16521 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
16522
16523         PR target/43995
16524         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
16525         recurse_p argument.  Only follow register copies if it is set,
16526         and prevent mips_find_pic_call_symbol from recursing.
16527         (mips_find_pic_call_symbol): Add a recurse_p argument.
16528         Pass it to mips_pic_call_symbol_from_set.
16529         (mips_annotate_pic_calls): Update accordingly.
16530
16531 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
16532
16533         * emit-rtl.c (try_split): Use a loop to search for
16534         NOTE_INSN_CALL_ARG_LOCATIONs.
16535
16536 2011-05-29  Richard Guenther  <rguenther@suse.de>
16537
16538         PR tree-optimization/49217
16539         * ipa-pure-const.c (propagate_pure_const): Fix typos.
16540
16541 2011-05-28  Jan Hubicka  <jh@suse.cz>
16542
16543         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
16544         length.
16545         (string_slot_free): Remove
16546         (create_output_block): Initialize obstack.
16547         (destroy_output_block): Free obstack.
16548         (lto_string_index): Add PERSISTENT parameter; do not duplicate
16549         the string unless it needs to be added into the hash.
16550         (lto_output_string_with_length): Add persistent attribute;
16551         handle NULL strings.
16552         (lto_output_string): Add PERSISTENT parameter.
16553         (output_string_cst, output_identifier): Simplify.
16554         (lto_output_location_bitpack): Update.
16555         (lto_output_builtin_tree): Update.
16556         * lto-streamer.h (struct output_block): Add obstack.
16557         (lto_output_string, lto_output_string_with_length): Remove
16558         declarations; functions are static now.
16559
16560 2011-05-28  Jan Hubicka  <jh@suse.cz>
16561
16562         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
16563         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
16564         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
16565         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
16566         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
16567         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
16568         unpack_ts_decl_with_vis_value_fields,
16569         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
16570         lto_get_builtin_tree): Use enum and variable length i/o.
16571         * basic-block.h (profile_status_d): Add PROFILE_LAST.
16572         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
16573         New functions.
16574         (bp_pack_enum, bp_unpack_enum): New macros.
16575
16576 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16577
16578         * genrecog.c: Remove redundant forward declarations.
16579
16580 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16581
16582         * config.gcc: Deprecate mips*-*-openbsd*.
16583
16584 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16585
16586         PR bootstrap/49195
16587         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
16588         for match_op_dup.
16589
16590 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
16591
16592         PR middle-end/48981
16593         * gengtype.c (vec_prefix_type): New function.
16594         (note_def_vec): Use vec_prefix_type and change the length
16595         attribute to be based on the prefix.
16596         * vec.c: Include coretypes.h before vec.h.
16597         (struct vec_prefix): Remove.
16598         (vec_gc_p_reserve): Change the offsetof to sizeof.
16599         (vec_gc_p_reserve_exact): Likewise.
16600         (vec_heap_p_reserve): Likewise.
16601         (vec_heap_p_reserve_exact): Likewise.
16602         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
16603         (vec_stack_p_reserve): Change the offsetof to sizeof.
16604         (vec_stack_p_reserve_exact): Likewise.
16605         * vec.h (struct vec_prefix): New struct definition.
16606         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
16607         (VEC_T_GTY(T,B)): Likewise.
16608         (DEF_VEC_FUNC_P(T)): Use prefix field.
16609         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
16610         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
16611
16612 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16613
16614         PR tree-optimization/46728
16615         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
16616         (powi_as_mults): Add gimple_set_location.
16617         (build_and_insert_call): New.
16618         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
16619         0.5, 0.25, 0.75, 1./3., or 1./6.
16620
16621 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
16622
16623         * doc/contrib.texi: Update copyright years.
16624         (Contributors): Add Zdenek Sojka.
16625
16626 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
16627
16628         * c-decl.c (c_push_function_context): Copy the current statement
16629         list stack.
16630         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
16631         (finish_struct): Call building_stmt_list_p instead of checking
16632         cur_stmt_list.
16633         * c-parser.c (c_parser_postfix_expression): Likewise.
16634         * c-typeck.c (c_end_compound_stmt): Likewise.
16635         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
16636         * tree-iterator.c (stmt_list_cache): Change to a VEC.
16637         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
16638         (free_stmt_list): Likewise.
16639         * tree.h (struct tree_statement_list): Include typed_tree instead
16640         of tree_common.
16641         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
16642         as TS_TYPED instead of TS_COMMON.
16643
16644 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16645             Uros Bizjak  <ubizjak@gmail.com>
16646
16647         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
16648         (HAVE_AS_IX86_TLSGDPTL): Define.
16649         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
16650         (HAVE_AS_IX86_TLSLDMPLT): Define.
16651         * configure: Regenerate.
16652         * config.in: Regenerate.
16653         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
16654         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
16655         TARGET_SUN_TLS, use @tlsgdplt or @plt.
16656         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
16657         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
16658         @tlsldmplt or @plt.
16659         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
16660
16661 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
16662
16663         * sched-int.h (struct _haifa_deps_insn_data): New members cond
16664         and reverse_cond.
16665         (INSN_COND, INSN_REVERSE_COND): New macros.
16666         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
16667         once.
16668         (sched_get_condition_with_rev): Cache the results, and look them up
16669         if possible.
16670         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
16671         are clobbered by the current insn.
16672         * target.def (exposed_pipline): New sched data hook.
16673         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
16674         * doc/tm.texi: Regenerate.
16675
16676 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16677
16678         PR tree-optimization/49170
16679         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
16680         sincos or cexp.
16681
16682 2011-05-27  Richard Guenther  <rguenther@suse.de>
16683
16684         PR middle-end/49189
16685         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
16686         of comparisons.
16687
16688 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
16689
16690         * haifa-sched.c (sched_scan_info): Remove.
16691         (schedule_block): Call sched_extend_luids rather than sched_init_luids
16692         with NULL args.
16693         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
16694         Remove functions.
16695         (sched_scan): Remove.
16696         (sched_extend_luids): Renamed from luids_extend_insn and no longer
16697         static.  All callers changed.
16698         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
16699         static.  All callers changed.
16700         (sched_init_luids): Remove all arguments except the first.  All
16701         callers changed.  Don't use sched_scan.
16702         (haifa_init_h_i_d): Likewise.
16703         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
16704         manually rather than using sched_init_luids.  Likewise with
16705         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
16706         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
16707         rather than sched_init_luids with NULL args.
16708         * sel-sched-ir.c (new_insns): Remove variable.
16709         (sched_scan): New static function, previously in haifa-sched.c.  Remove
16710         all arguments but the first two; all callers changed.
16711         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
16712         rather than sched_init_luids.
16713         (sel_init_bbs): Remove second argument.  All callers changed.
16714         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
16715         with NULL arguments.
16716         (create_insn_rtx_from_pattern): Likewise.
16717         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
16718         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
16719         (sched_init_insn_luid, sched_extend_luids): Declare.
16720         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
16721         declarations.
16722
16723 2011-05-27  Richard Guenther  <rguenther@suse.de>
16724
16725         PR middle-end/49177
16726         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
16727         A CMP B ? (T) true : (T) false for non-integral types T again.
16728
16729 2011-05-27  Jan Hubicka  <jh@suse.cz>
16730
16731         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
16732         so 0 means NULL string.
16733         (lto_output_string_with_length): ... here.
16734         (lto_output_string, output_string_cst, output_identifier): Update
16735         handling of NULL strings.
16736         (lto_output_location_bitpack): New function.
16737         (lto_output_location): Use it.
16738         (lto_output_tree_ref): Use output_record_start.
16739         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
16740         len values.
16741         * lto-streamer-in.c (string_for_index): Break out from ...; offset
16742         values by 1.
16743         (input_string_internal): ... here;
16744         (input_string_cst, input_identifier, lto_input_string): Update handling
16745         of NULL strings.
16746         (lto_input_location_bitpack): New function
16747         (lto_input_location): Use it.
16748         (unpack_ts_type_common_value_fields): Pack align & alias in var len
16749         values.
16750         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
16751         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
16752         (bp_pack_value): Sanity check the value range.
16753         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
16754         New functions.
16755         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
16756         New functions.
16757
16758 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
16759
16760         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
16761         call_arg_location instructions down the floor.
16762
16763 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
16764
16765         PR rtl-optimization/49154
16766         * ira.c (setup_pressure_classes): Process class without sublcasses
16767         as a candidate for pressure classes.
16768
16769 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
16770
16771         PR rtl-optimization/48575
16772         * genrecog.c (position_type): New enum.
16773         (position): New structure.
16774         (decision): Use position structure instead of a string.
16775         (root_pos, peep2_insn_pos_list): New variables.
16776         (next_position, compare_positions): New functions.
16777         (new_decision): Use position structures instead of strings.
16778         (maybe_both_true): Likewise.
16779         (change_state): Likewise.
16780         (write_tree): Likewise.
16781         (make_insn_sequence): Likewise.
16782
16783 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16784
16785         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
16786         TS_BASE instead of TS_COMMON.
16787         (find_decls_types_r): Check for TS_TYPED structure before looking at
16788         TREE_TYPE.
16789         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
16790         Add chain field.
16791         (BLOCK_CHAIN): Use new chain field.
16792
16793 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
16794
16795         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
16796         moves expensive on Power7 also.
16797
16798 2011-05-26  Richard Guenther  <rguenther@suse.de>
16799
16800         * fold-const.c (fold_unary_loc): Remove bogus code.
16801
16802 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16803
16804         * tree.h (struct tree_identifier): Inherit from tree_typed, not
16805         tree_common.
16806         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16807         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16808         TS_BASE instead of TS_COMMON.
16809         * varasm.c (assemble_name): Remove assert.
16810
16811 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
16812
16813         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
16814         substituted first.
16815         * libgcc-std.ver: Delete file.
16816
16817 2011-05-26  Richard Guenther  <rguenther@suse.de>
16818
16819         PR tree-optimization/48702
16820         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
16821         only when we know the base address is within bounds.
16822         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
16823         assume the base address of TARGET_MEM_REFs is in bounds.
16824
16825 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16826
16827         PR target/49099
16828         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
16829         declaration in TARGET_SOLARIS.
16830
16831 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
16832
16833         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
16834         The instruction is then expanded explicitly.
16835         (supported_compare): Callable instruction.
16836         (compare): Likewise.
16837
16838 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
16839
16840         PR c++/49165
16841         * gimplify.c (shortcut_cond_r): Don't special case
16842         COND_EXPRs if they have void type on one of their arms.
16843
16844 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
16845
16846         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
16847         to reduce duplication, and to achieve a slightly more logical order
16848         of operations.
16849
16850 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
16851
16852         PR tree-optimization/49161
16853         * tree-vrp.c (struct case_info): New type.
16854         (compare_case_labels): Sort case_info structs instead of
16855         trees, and not primarily by CASE_LABEL uids but by
16856         label_for_block indexes.
16857         (find_switch_asserts): Put case labels into struct case_info
16858         array instead of TREE_VEC, adjust sorting, compare label_for_block
16859         values instead of CASE_LABELs.
16860
16861 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16862
16863         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
16864         ("orndi3_neon"): Likewise.
16865         ("bic<mode>3_neon"): Likewise.
16866
16867 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
16868
16869         PR tree-optimization/49038
16870         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
16871         Ensure at least one epilogue iteration if required by data
16872         accesses with gaps.
16873         * tree-vectorizer.h (struct _loop_vec_info): Add new field
16874         to mark loops that require peeling for gaps.
16875         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
16876         (vect_get_known_peeling_cost): Take peeling for gaps into
16877         account.
16878         (vect_transform_loop): Generate epilogue if required by data
16879         access with gaps.
16880         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
16881         loop as requiring an epilogue if there are gaps in the end of
16882         the strided group.
16883
16884 2011-05-25  Ian Lance Taylor  <iant@google.com>
16885
16886         * godump.c (go_format_type): Output the first field with a usable
16887         Go type, if any.
16888
16889 2011-05-25  Ian Lance Taylor  <iant@google.com>
16890
16891         * godump.c (go_format_type): Check for invalid type names, pointer
16892         target types, and struct field types.
16893
16894 2011-05-25  Jason Merrill  <jason@redhat.com>
16895
16896         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
16897
16898 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
16899
16900         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
16901
16902 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16903
16904         * config/i386/i386.md (*movqi_extv_1)): Put back
16905         "register_operand" check in "type" calculation.
16906         (*movqi_extzv_2): Likewise.
16907
16908 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16909
16910         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
16911
16912 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
16913
16914         PR bootstrap/49160
16915         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
16916         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
16917         __divxc3, __divtc3): Wrap definitions in #ifndef.
16918
16919 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16920
16921         PR target/49142
16922         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
16923         "register_operand" check and replace q_regs_operand with
16924         QIreg_operand in "type" calculation.
16925         (*movqi_extv_1): Likewise.
16926         (*movqi_extzv_2_rex64): Likewise.
16927         (*movqi_extzv_2): Likewise.
16928
16929         * config/i386/predicates.md (QIreg_operand): New.
16930
16931 2011-05-25  Richard Guenther  <rguenther@suse.de>
16932
16933         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16934         type-based offset disambiguation, streamline MEM_REF and
16935         TARGET_MEM_REF handling.
16936
16937 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16938
16939         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
16940         (bdesc_special_args): Add pause intrinsic.
16941
16942         * config/i386/i386.md (UNSPEC_PAUSE): New.
16943         (pause): Likewise.
16944         (*pause): Likewise.
16945         * config/i386/ia32intrin.h (__pause): Likewise.
16946
16947         * doc/extend.texi (X86 Built-in Functions): Add documentation for
16948         pause intrinsic.
16949
16950 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16951
16952         PR tree-optimization/46728
16953         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
16954         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
16955
16956 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
16957
16958         * tree.h (struct tree_exp): Inherit from struct tree_typed.
16959         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
16960         instead of TS_COMMON.
16961
16962 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
16963
16964         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
16965         LIBGCC2_GNU_PREFIX is defined.
16966         (__N): New macro.
16967         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
16968         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
16969         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
16970         __clz_tab): Define using __N.
16971         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
16972         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
16973         * target.def (libfunc_gnu_prefix): New hook.
16974         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
16975         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
16976         * doc/tm.texi: Regenerate.
16977         * system.h (LIBGCC2_GNU_PREFIX): Poison.
16978         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
16979         account.
16980         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
16981         (init_optabs): Likewise for the bswap libfuncs.
16982         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
16983         and divide.
16984         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
16985         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
16986         * libgcc-std.ver: Remove.
16987         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
16988         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
16989         libgcc-std.ver.
16990         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16991         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
16992         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
16993         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
16994         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
16995         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16996         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16997         * config/fixed-bit.h (FIXED_OP): Define differently depending on
16998         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
16999         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
17000
17001 2011-05-25  Jan Hubicka  <jh@suse.cz>
17002
17003         * lto-streamer-out.c (output_record_start): Use lto_output_enum
17004         (lto_output_tree): Use output_record_start.
17005         * lto-streamer-in.c (input_record_start): Use lto_input_enum
17006         (lto_get_pickled_tree): Use input_record_start.
17007         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
17008         (lto_value_range_error): New function.
17009         * lto-streamer.h (lto_value_range_error): Declare.
17010         (lto_output_int_in_range, lto_input_int_in_range): New functions.
17011         (lto_output_enum, lto_input_enum): New macros.
17012
17013 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
17014
17015         * common.opt (flag_stack_usage_info): New variable.
17016         (-Wstack-usage): New option.
17017         * doc/invoke.texi (Warning options): Document -Wstack-usage.
17018         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
17019         <OPT_fstack_usage>: Likewise.
17020         * toplev.c (output_stack_usage): Handle -Wstack-usage.
17021         * calls.c (expand_call): Test flag_stack_usage_info variable instead
17022         of flag_stack_usage.
17023         (emit_library_call_value_1): Likewise.
17024         * explow.c (allocate_dynamic_stack_space): Likewise.
17025         * function.c (instantiate_virtual_regs ): Likewise.
17026         (prepare_function_start): Likewise.
17027         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
17028         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
17029         * config/arm/arm.c (arm_expand_prologue): Likewise.
17030         (thumb1_expand_prologue): Likewise.
17031         * config/avr/avr.c (expand_prologue): Likewise.
17032         * config/i386/i386.c (ix86_expand_prologue): Likewise.
17033         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
17034         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
17035         * config/mips/mips.c (mips_expand_prologue): Likewise.
17036         * config/pa/pa.c (hppa_expand_prologue): Likewise.
17037         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
17038         * config/s390/s390.c (s390_emit_prologue): Likewise.
17039         * config/sh/sh.c (sh_expand_prologue): Likewise.
17040         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
17041         * config/spu/spu.c (spu_expand_prologue): Likewise.
17042
17043 2011-05-25  Richard Guenther  <rguenther@suse.de>
17044
17045         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
17046         (gimple_canonical_types_compatible_p): Likewise.
17047
17048 2011-05-25  Jan Hubicka  <jh@suse.cz>
17049
17050         PR middle-end/49062
17051         * ipa.c (function_and_variable_visibility): Only add to same
17052         comdat group list if DECL_ONE_ONLY.
17053
17054 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
17055
17056         PR rtl-optimization/49014
17057         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
17058
17059 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17060
17061         PR target/49128
17062         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
17063
17064 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
17065
17066         PR rtl-optimization/48757
17067         * ira-build.c (loop_with_eh_edge_p): Rename to
17068         loop_with_complex_edge_p, check edges on complexity, make function
17069         conditional.
17070         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
17071         conditional.
17072
17073 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
17074
17075         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
17076         force flag_ira_share_save_slots to 0.
17077
17078 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
17079
17080         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
17081         (vt_initialize): Set PROLOGUE_BB unconditionally.
17082         Add block comment about CFA_BASE_RTX machinery.
17083         Reset FP_CFA_OFFSET to -1 on all invalid paths.
17084         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
17085
17086 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
17087
17088         PR objc/48187
17089         * c-parser.c (c_parser_objc_class_instance_variables): More robust
17090         parsing of syntax error in ObjC instance variable lists.  In
17091         particular, avoid an infinite loop if there is a stray ']'.
17092         Updated error message.
17093
17094 2011-05-24  Ian Lance Taylor  <iant@google.com>
17095
17096         * godump.c (go_define): Don't accept a string immediately after
17097         another operand.
17098
17099 2011-05-24  Ian Lance Taylor  <iant@google.com>
17100
17101         * godump.c (struct godump_container): Add invalid_hash field.
17102         (go_format_type): Return false if type is found in invalid_hash.
17103         (go_output_typedef): Add invalid type to invalid_hash.
17104         (go_finish): Create and delete invalid_hash.
17105
17106 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17107
17108         PR tree-optimization/46728
17109         * tree-ssa-math-opts.c (powi_table): New.
17110         (powi_lookup_cost): New.
17111         (powi_cost): New.
17112         (powi_as_mults_1): New.
17113         (powi_as_mults): New.
17114         (gimple_expand_builtin_powi): New.
17115         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
17116         (gate_cse_sincos): Remove sincos/cexp restriction.
17117
17118 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17119
17120         PR target/3746
17121         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
17122         mips-tdump native.
17123         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
17124         * mips-tdump.c: Likewise.
17125
17126 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
17127
17128         PR target/49128
17129         * config/i386/driver-i386.c (host_detect_local_cpu): Always
17130         add -mno-XXX.  Handle FMA.
17131
17132 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
17133
17134         PR rtl-optimization/48633
17135         * ira-build.c (loop_with_eh_edge_p): New function.
17136         (mark_loops_for_removal): Use it.
17137
17138 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
17139
17140         PR rtl-optimization/48971
17141         * ira.c (setup_pressure_classes): Don't check register move cost
17142         for classes with one registers.  Don't add pressure class if there
17143         is a pressure class with the same available hard registers.
17144         Check contains_reg_of_mode.  Fix a typo in collecting
17145         temp_hard_regset.  Ignore hard registers not belonging to a class.
17146
17147 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
17148
17149         PR target/49133
17150         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
17151
17152 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
17153             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17154
17155         PR gcov-profile/48845
17156         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
17157
17158 2011-05-24  Richard Guenther  <rguenther@suse.de>
17159
17160         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
17161         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
17162         (gimple_types_compatible_p_1): Adjust.
17163         (iterative_hash_canonical_type): Do not bother about complete vs.
17164         incomplete types.
17165         (gimple_canonical_types_compatible_p): Likewise.
17166
17167 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17168
17169         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
17170
17171 2011-05-24  Richard Guenther  <rguenther@suse.de>
17172
17173         PR bootstrap/49078
17174         * gimple.c (gimple_register_canonical_type): Revert
17175         previous change.
17176         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
17177         does not for a tree for the case where it matters.  Cache
17178         pointer-type alias-sets.
17179
17180 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
17181
17182         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
17183         (OBJS): Remove options.o, opts-common.o and prefix.o.
17184         (OBJS-libcommon-target): New.
17185         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
17186         (BACKEND): Include libcommon-target.a.
17187         (MOSTLYCLEANFILES): Include libcommon-target.a.
17188         (libcommon-target.a): New.
17189         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
17190         prefix.o.
17191
17192 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
17193
17194         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
17195         parts of output shared with the driver.
17196         * optc-gen.awk: Don't generate parts of output not shared with the
17197         driver.
17198         * opth-gen.awk: Remove GCC_DRIVER conditionals.
17199         * doc/options.texi (SourcerInclude): Mention options-save.c.
17200         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
17201         (OBJS): Add options-save.o.
17202         (options-save.c, options-save.o): New.
17203         (options.o): Update dependencies.
17204         (gcc-options.o): Remove.
17205         (mostlyclean): Remove options-save.c.
17206
17207 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
17208
17209         PR debug/49032
17210         * dbxout.c: Include cgraph.h.
17211         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
17212         and without value expr, return NULL if no varpool node exists for
17213         it or if it is not needed.
17214         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
17215
17216         PR c/49120
17217         * c-decl.c (start_decl): Convert expr to void_type_node.
17218
17219 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
17220
17221         PR rtl-optimization/48826
17222         * emit-rtl.c (try_split): When splitting a call that is followed
17223         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
17224
17225 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
17226
17227         * cfgexpand.c (expand_debug_expr): For unused non-addressable
17228         parameters passed in memory prefer using DECL_INCOMING_RTL over
17229         the pseudos it will be copied into.
17230
17231 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
17232
17233         PR target/47315
17234         * config/i386/i386.c (ix86_option_override_internal): Save the
17235         initial options after checking vzeroupper.
17236
17237 2011-05-23  David Li  <davidxl@google.com>
17238
17239         PR tree-optimization/48988
17240         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
17241         Initialize has_valid_pred for each pred chain.
17242
17243 2011-05-23  Richard Guenther  <rguenther@suse.de>
17244
17245         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
17246         (iterative_hash_gimple_type): Always hash type names.
17247
17248 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
17249
17250         * c-typeck.c (build_function_call_vec): Tweak call to
17251         check_function_arguments.
17252
17253 2011-05-23  Richard Guenther  <rguenther@suse.de>
17254
17255         PR tree-optimization/49115
17256         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
17257         is not necessarily carried out, do not claim it kills the ref.
17258         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
17259
17260 2011-05-23  Richard Guenther  <rguenther@suse.de>
17261
17262         PR middle-end/15419
17263         * builtins.c (fold_builtin_memory_op): Be less restrictive about
17264         what pointer types we accept for folding.
17265
17266 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17267
17268         * gthr-gnat.c: Remove.
17269         * gthr-gnat.h: Remove.
17270         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
17271         * config/t-freebsd (LIB2ADDEH): Likewise.
17272         * config/t-linux (LIB2ADDEH): Likewise.
17273         * config/t-sol2 (LIB2ADDEH): Likewise.
17274         * config/ia64/t-vms (LIB2ADDEH): Likewise.
17275         * configure.ac (target_thread_file): Remove gnat handling.
17276         * configure: Regenerate.
17277         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
17278
17279 2011-05-23  Tristan Gingold  <gingold@adacore.com>
17280             Eric Botcazou  <ebotcazou@adacore.com>
17281
17282         * gcov.c (create_file_names): If no object directory is specified,
17283         keep the directory of the file.
17284
17285 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17286
17287         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
17288         * configure: Regenerate.
17289
17290 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
17291
17292         PR middle-end/48973
17293         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
17294         failed and the comparison has a single bit signed type, use
17295         constm1_rtx instead of const1_rtx for true value.
17296         (do_store_flag): If ops->type is single bit signed type, disable
17297         signel bit test optimization and pass -1 instead of 1 as last
17298         parameter to emit_store_flag_force.
17299
17300 2011-05-23  Tom de Vries  <tom@codesourcery.com>
17301
17302         PR target/45098
17303         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
17304         function.
17305         (infer_loop_bounds_from_undefined): Use new function.
17306
17307 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
17308
17309         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
17310         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
17311         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
17312         and -O0 otherwise.
17313         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
17314
17315 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17316
17317         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
17318         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
17319         returns true.
17320
17321 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
17322
17323         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
17324
17325 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17326
17327         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
17328         UNSPEC_MOVE_PIC pattern.
17329
17330 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17331
17332         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
17333         (sparc-*-rtems*): Likewise.
17334         (sparc64-*-elf*): Likewise.
17335         (sparc64-*-rtems*): Likewise.
17336         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
17337         * config/sparc/t-crtin: New file.
17338         * config/sparc/t-sol2 (crti.o): Delete rule.
17339         (crtn.o): Likewise.
17340         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
17341         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
17342         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
17343         (ENDFILE_SPEC): Add crtn.o.
17344
17345 2011-05-22  Tom de Vries  <tom@codesourcery.com>
17346
17347         PR middle-end/48689
17348         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
17349         CODE_CONTAINS_STRUCT (TS_COMMON).
17350
17351 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
17352
17353         PR middle-end/49029
17354         * expmed.c (extract_fixed_bit_field): Test whether target can be used
17355         only after deciding which mode to use.
17356
17357 2011-05-22  Tom de Vries  <tom@codesourcery.com>
17358
17359         PR target/45098
17360         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
17361         for call to get_shiftadd_cost.
17362
17363 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
17364
17365         PR target/49104
17366         * config/i386/cpuid.h (bit_MMXEXT): New define.
17367
17368 2011-05-22  Nick Clifton  <nickc@redhat.com>
17369
17370         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
17371         initialisation of non-existant args[2] element.  Use args[] array
17372         not arg[] array to pass arguments to build_function_type_list.
17373
17374 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
17375
17376         PR tree-optimization/49087
17377         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
17378
17379 2011-05-21  Jason Merrill  <jason@redhat.com>
17380
17381         PR c++/49092
17382         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
17383         static storage duration.
17384
17385 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
17386
17387         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
17388         frame pointer.
17389
17390 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
17391
17392         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
17393         false if there are call-saved registers here...
17394         (sparc_can_use_return_insn_p): ...but here instead.
17395         (save_or_restore_regs): Fix thinko.
17396         (sparc_expand_prologue): Use current_function_is_leaf.
17397         (sparc_frame_pointer_required): Likewise.
17398
17399 2011-05-21  Nick Clifton  <nickc@redhat.com>
17400
17401         PR target/49098
17402         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
17403
17404 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
17405
17406         * gengtype.c (walk_type): Implemented "atomic" GTY option.
17407         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
17408
17409 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
17410
17411         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
17412         * optc-gen.awk: Move common code to opt-read.awk.
17413         * opth-gen.awk: Likewise.
17414         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
17415
17416 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
17417
17418         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
17419
17420 2011-05-20  Tom de Vries  <tom@codesourcery.com>
17421
17422         PR target/45098
17423         * tree-ssa-loop-ivopts.c: Include expmed.h.
17424         (get_shiftadd_cost): New function.
17425         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
17426
17427 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
17428
17429         PR bootstrap/49086
17430         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
17431         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
17432
17433 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
17434
17435         * Makefile.in: Update comment referring to $(OBJS-common).
17436
17437 2011-05-20  Ian Lance Taylor  <iant@google.com>
17438
17439         * godump.c (go_output_typedef): Put enum constants in the macro
17440         hash table to avoid duplicate Go const definitions.
17441
17442 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
17443
17444         * Makefile.in (LIBDEPS): Add libcommon.a.
17445         (LIBS): Likewise.
17446         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
17447         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
17448         pretty-print.o and version.o.
17449         (OBJS-libcommon): New.
17450         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
17451         (BACKEND): Add libcommon.a.
17452         (MOSTLYCLEANFILES): Likewise.
17453         (libcommon.a): New.
17454         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
17455         (cpp$(exeext)): Likewise.
17456         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
17457         pretty-print.o and input.o.
17458         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
17459         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
17460         (errors.o): Remove.
17461         (mips-tfile): Don't explicitly use version.o.
17462         (mips-tdump): Likewise.
17463         (gcov.o): Depend on $(DIAGNOSTIC_H).
17464         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
17465         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
17466         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
17467         * gcov-dump.c: Include intl.h and diagnostic.h.
17468         (main): Initialize diagnostics.
17469         * gcov.c: Include diagnostic.h.
17470         (fnotice): Remove.
17471         (main): Initialize diagnostics.
17472         * lto-wrapper.c: Include diagnostic.h.
17473         (main): Initialize diagnostics.
17474
17475 2011-05-20  Michael Matz  <matz@suse.de>
17476
17477         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
17478
17479 2011-05-20  Michael Matz  <matz@suse.de>
17480             Richard Guenther  <rguenther@suse.de>
17481
17482         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
17483         use lto_streamer_cache_append directly instead of returning a VEC.
17484         (preload_common_node): Remove.
17485         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
17486         track seen nodes.
17487         (lto_streamer_cache_create): Call lto_preload_common_nodes.
17488
17489 2011-05-20  Richard Guenther  <rguenther@suse.de>
17490
17491         PR tree-optimization/49079
17492         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
17493         MEM_REFs correctly for the trailing array access detection.
17494         Special case constants the same way as decls for overall size
17495         constraining.
17496
17497 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
17498
17499         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
17500         argument expansion.
17501
17502 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
17503
17504         PR tree-optimization/49073
17505         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
17506         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
17507         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
17508
17509 2011-05-20  Richard Guenther  <rguenther@suse.de>
17510
17511         PR middle-end/48849
17512         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
17513         of pointer types the same way the middle-end does.
17514
17515 2011-05-20  Richard Guenther  <rguenther@suse.de>
17516
17517         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
17518         or pointer-to chains.  Delay all fixup to uniquify_nodes.
17519
17520 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
17521
17522         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
17523         (fma4_fmaddsub): Likewise
17524
17525 2011-05-19  Jan Hubicka  <jh@suse.cz>
17526
17527         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
17528         (GIMPLE_TYPE_PAIR_SIZE): New macro.
17529         (type_pair_cache): New static var.
17530         (lookup_type_pair): Use fixed sized custom hash; make inline.
17531         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
17532         calls of lookup_type_pair.
17533         (print_gimple_types_stats): Remove cache stats.
17534         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
17535         and gtc_ob.
17536
17537 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
17538
17539         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
17540         when TARGET_RDRND is active.
17541         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
17542         Generate dummy SImode target register when target is NULL.
17543
17544 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
17545
17546         * config/arm/arm-fpus.def: New.
17547         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
17548         arm-fpus.def.
17549         * config/arm/arm-tables.opt: Regenerate.
17550         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
17551         (arm_option_override): Don't decode FPU name to string here.
17552         * config/arm/arm.opt (mfpu=): Use Enum.
17553         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
17554         Update dependencies.
17555
17556 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
17557
17558         * collect2.c: Include diagnostic.h.
17559         (fatal_perror, fatal, error, fancy_abort): Remove.
17560         (main): Set progname.  Call xmalloc_set_program_name and
17561         diagnostic_initialize.
17562         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
17563         scan_libraries, resolve_lib_name): Call fatal_error instead of
17564         fatal and fatal_perror.
17565         * collect2.h (error, fatal, fatal_perror): Don't declare.
17566         * tlink.c: Include diagnostic-core.h.
17567         (recompile_files): Call fatal_error instead of fatal_perror.
17568         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
17569         pretty-print.o and input.o.
17570         (collect2.o, tlink.o): Update dependencies.
17571
17572 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17573
17574         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
17575
17576 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17577
17578         PR target/40483
17579         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
17580         COMDAT group syntax, both SPARC and x86 variants.
17581         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
17582         * configure: Regenerate.
17583         * config/sol2.h (TARGET_SOLARIS): Define.
17584         (PUSHSECTION_FORMAT): Remove.
17585         (SECTION_NAME_FORMAT): Define.
17586         * config/sol2.c: Include hashtab.h.
17587         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
17588         expansion, using SECTION_NAME_FORMAT.
17589         (solaris_comdat_htab): New variable.
17590         (struct comdat_entry): Define.
17591         (comdat_hash): New function.
17592         (comdat_eq): New function.
17593         (solaris_elf_asm_comdat_section): New function.
17594         (solaris_define_comdat_signature): New function.
17595         (solaris_code_end): New function.
17596         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
17597         (solaris_code_end): Declare.
17598         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
17599         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
17600         solaris_code_end.
17601         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
17602         Remove ATTRIBUTE_UNUSED.
17603         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
17604         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
17605         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
17606         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
17607         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
17608         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
17609         (PUSHSECTION_FORMAT): Remove.
17610         (SECTION_NAME_FORMAT): Redefine.
17611
17612 2011-05-19  Kai Tietz  <ktietz@redhat.com>
17613
17614         * tree-cfg.c (verify_gimple_assign_binary): Barf on
17615         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
17616         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
17617
17618 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
17619             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17620
17621         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
17622
17623 2011-05-19  Richard Guenther  <rguenther@suse.de>
17624
17625         PR middle-end/48985
17626         * tree-object-size.c (addr_object_size): If the pointed-to
17627         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
17628
17629 2011-05-19  Richard Guenther  <rguenther@suse.de>
17630
17631         * gimple.c (gimple_types_compatible_p_1): Compare names of
17632         the types themselves.
17633         (iterative_hash_gimple_type): And hash them that way.
17634         (gimple_register_type_1): If we register a main variant properly
17635         initialize the leader to ourselves.
17636
17637 2011-05-19  Tom de Vries  <tom@codesourcery.com>
17638
17639         PR target/45098
17640         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
17641         get_loop_invariant_expr_id.
17642         (get_loop_invariant_expr_id): Use get_expr_id.
17643         (parm_decl_cost): New function.
17644         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
17645         Improve bound cost estimation.  Use different inv_expr_id for elim and
17646         express cases.
17647
17648 2011-05-19  Tom de Vries  <tom@codesourcery.com>
17649
17650         PR target/45098
17651         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
17652         cost_base.cost == 0.
17653
17654 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
17655
17656         PR target/49002
17657         * config/i386/sse.md
17658         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
17659         load cast.
17660
17661 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
17662
17663         PR tree-optimization/49039
17664         * tree-vrp.c (extract_range_from_binary_expr): For
17665         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
17666         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
17667
17668 2011-05-18  Tom de Vries  <tom@codesourcery.com>
17669
17670         PR target/45098
17671         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
17672
17673 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
17674
17675         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
17676         (*tls_global_dynamic_64): Ditto.
17677         (*tls_local_dynamic_base_32_gnu): Ditto.
17678         (*tls_local_dynamic_base_64): Ditto.
17679         (tls_initial_exec_64_sun): Ditto.
17680
17681 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
17682
17683         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
17684         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
17685         bf592-none.
17686         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
17687         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
17688         * config/bfin/bfin.c (bfin_cpus): Add bf592.
17689         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
17690         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
17691         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
17692         * config/bfin/elf.h (LIB_SPEC): Add bf592.
17693
17694 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
17695
17696         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
17697         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
17698         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
17699         target_thread_pointer, arm_structure_size_boundary, struct
17700         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
17701         struct abi_name, arm_all_abis): Remove.
17702         (arm_option_override) Don't process most enumerated option values here.
17703         Don't process target_fpe_name here.  Work with integer not string for
17704         structure size boundary; use separate diagnostics for each case.
17705         * config/arm/arm.h (enum float_abi_type, enum
17706         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
17707         to arm-opts.h.
17708         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
17709         arm_structure_size_boundary): Remove.
17710         * config/arm/arm.opt (mabi=): Use Enum and Init.
17711         (arm_abi_type): New Enum and EnumValue entries.
17712         (mfloat-abi=): Use Enum and Init.
17713         (float_abi_type): New Enum and EnumValue entries.
17714         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
17715         (mfp16-format=): Use Enum and Init.
17716         (arm_fp16_format_type): New Enum and EnumValue entries.
17717         (mstructure-size-boundary=): Use UInteger and Init.
17718         (mtp=): Use Enum and Init.
17719         (arm_tp_type): New Enum and EnumValue entries.
17720
17721 2011-05-18  Richard Guenther  <rguenther@suse.de>
17722
17723         PR tree-optimization/49018
17724         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
17725         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
17726         gimple_has_side_effects.
17727
17728 2011-05-18  Richard Guenther  <rguenther@suse.de>
17729
17730         * gimple.c (gimple_register_type_1): New function, split out from ...
17731         (gimple_register_type): ... here.  Avoid infinite recursion.
17732
17733 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
17734
17735         PR tree-optimization/41881
17736         * tree-vectorizer.h (struct _loop_vec_info): Add new field
17737         reduction_chains along with a macro for its access.
17738         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
17739         (destroy_loop_vec_info): Free reduction chains.
17740         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
17741         (vect_is_slp_reduction): New function.
17742         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
17743         (vect_create_epilog_for_reduction): Support SLP reduction chains.
17744         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
17745         definition types for reduction chains.
17746         (vect_supported_load_permutation_p): Don't allow permutations for
17747         reduction chains.
17748         (vect_analyze_slp_instance): Support reduction chains.
17749         (vect_analyze_slp): Try to build SLP instance from reduction chains.
17750         (vect_get_constant_vectors):  Handle reduction chains.
17751         (vect_schedule_slp_instance): Mark the first statement of the
17752         reduction chain as reduction.
17753
17754 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
17755
17756         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
17757         names for group elements access.
17758         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
17759         reduction chains as well.  Remove data reference and interleaving
17760         related words from the fields names.
17761         * tree-vect-loop.c (vect_transform_loop): Use new names for group
17762         elements access.
17763         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
17764         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
17765         vect_update_interleaving_chain, vect_same_range_drs,
17766         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
17767         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
17768         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
17769         vect_analyze_group_access, vect_analyze_data_ref_access,
17770         vect_create_data_ref_ptr, vect_transform_strided_load,
17771         vect_record_strided_load_vectors): Likewise.
17772         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
17773         vect_model_load_cost, vectorizable_store, vectorizable_load,
17774         vect_remove_stores, new_stmt_vec_info): Likewise.
17775         * tree-vect-slp.c (vect_build_slp_tree,
17776         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
17777
17778 2011-05-18  Richard Guenther  <rguenther@suse.de>
17779
17780         PR middle-end/48989
17781         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
17782         operand verification.
17783         (verify_gimple_assign_binary): Likewise.
17784         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
17785         to non-1-precision BOOLEAN_TYPEs.
17786
17787 2011-05-18  Tom de Vries  <tom@codesourcery.com>
17788
17789         PR target/45098
17790         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
17791
17792 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
17793
17794         PR tree-optimization/49000
17795         * tree-ssa.c (execute_update_addresses_taken): Call
17796         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
17797         be rewritten and decl has been marked for renaming, reset
17798         the debug stmt.
17799
17800 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
17801
17802         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
17803         enum_opts_set when testing if attributes have set -mfpmath=.
17804
17805 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
17806
17807         * config/mips/mips.c (mips_handle_option): Remove unused variable.
17808
17809 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
17810
17811         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
17812         info->entry with 0
17813         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
17814         id.transform_lang_insert_block with NULL.
17815
17816 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
17817
17818         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
17819         (output_fp_compare): Change args 3 and 4 to bool.
17820         (ix86_expand_call): Change arg 6 to bool.
17821         (ix86_attr_length_immediate_default): Change arg 2 to bool.
17822         (ix86_attr_length_vex_default): Change arg 3 to bool.
17823         * config/i386/i386.md: Update all uses.
17824         * config/i386/i386.c: Ditto.
17825         (ix86_flags_dependent): Change return type to bool.
17826
17827 2011-05-17  Richard Guenther  <rguenther@suse.de>
17828
17829         * gimple.c (type_hash_pair_compare): Fix comparison.
17830
17831 2011-05-17  Richard Guenther  <rguenther@suse.de>
17832
17833         * gimple.c (iterative_hash_gimple_type): Simplify singleton
17834         case some more, fix final hash value of the non-singleton case.
17835
17836 2011-05-17  Richard Guenther  <rguenther@suse.de>
17837
17838         PR bootstrap/49013
17839         Revert
17840         2011-05-16  Richard Guenther  <rguenther@suse.de>
17841
17842         * gimple.c (gimple_types_compatible_p_1): Use names of the
17843         type itself, not its main variant.
17844         (iterative_hash_gimple_type): Likewise.
17845
17846 2011-05-17  Richard Guenther  <rguenther@suse.de>
17847
17848         * gimple.c (gimple_register_canonical_type): Use the main-variant
17849         leader for computing the canonical type.
17850
17851 2011-05-17  Nick Clifton  <nickc@redhat.com>
17852
17853         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
17854         moves.
17855
17856         * config/rx/rx.md: Add peephole to remove redundant extensions
17857         after loads.
17858         (bitset_in_memory): Use rx_restricted_mem_operand.
17859         (bitinvert_in_memory): Likewise.
17860         (bitclr_in_memory): Likewise.
17861
17862 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
17863             Nick Clifton  <nickc@redhat.com>
17864
17865         * config/rx/rx.md: Add peepholes to match a register move followed
17866         by a comparison of the moved register.  Replace these with an
17867         addition of zero that does both actions in one instruction.
17868
17869 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
17870
17871         PR target/48986
17872         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
17873         predicate to allow CONST_INT.
17874         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
17875
17876 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
17877
17878         * opts-common.c (opt_enum_arg_to_value): New.
17879         * opts.h (opt_enum_arg_to_value): Declare.
17880         * config/i386/i386.opt (fpmath): Remove.
17881         (mfpmath=): Use Enum, Init and Save.
17882         (fpmath_unit): New Enum and EnumValue entries.
17883         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
17884         name for function fpmath state.
17885         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
17886         * config/i386/i386.c: Include diagnostic.h.
17887         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
17888         (ix86_target_string): Take enum fpmath_unit value instead of string.
17889         (ix86_debug_options): Update call to ix86_target_string.
17890         (ix86_option_override_internal): Don't process fpmath strings here.
17891         (x86_function_specific_save, ix86_function_specific_restore):
17892         Don't handle fpmath state specially.
17893         (ix86_function_specific_print): Pass fpmath state to
17894         ix86_target_string instead of printing in this function.
17895         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
17896         Handle enum attributes.
17897         (IX86_ATTR_ENUM, ix86_opt_enum): New.
17898         (ix86_valid_target_attribute_tree): Update option_strings
17899         handling.  Handle fpmath as enum option.
17900         (ix86_can_inline_p): Update field names for function fpmath state.
17901         (ix86_expand_builtin): Update call to ix86_target_string.
17902         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
17903         (ix86_fpmath): Remove.
17904         * config/i386/t-i386 (i386.o): Update dependencies.
17905
17906 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
17907
17908         PR preprocessor/48677
17909         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
17910         from decoded_options[0], not from itself.
17911
17912 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
17913
17914         * config/i386/constraints.md (z): New constraint.
17915         * config/i386/i386.c (c): New mode attribute.
17916         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
17917         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
17918         constraint for operand 0.
17919         (*call_vzeroupper): Ditto.
17920         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
17921         (*call_rex64_ms_sysv_vzeroupper): Ditto.
17922         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
17923         Use "lzm" constraint for operand 0.
17924         (*call_pop_vzeroupper): Ditto.
17925         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
17926         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
17927         constraint for operand 0.
17928         (*sibcall_vzeroupper): Ditto.
17929         (*sibcall_rex64_ms_sysv): Ditto.
17930         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
17931         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
17932         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
17933         (*sibcall_pop_vzeroupper): Ditto.
17934         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
17935         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
17936         mode iterator.  Use "<c>zm" constraint for operand 1.
17937         (*call_value_vzeroupper): Ditto.
17938         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
17939         for operand 1.
17940         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
17941         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
17942         *call_value_pop_1.  Use "lzm" constraint for operand 1.
17943         (*call_value_pop_vzeroupper): Ditto.
17944         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
17945         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
17946         mode iterator.  Use "Uz" constraint for operand 1.
17947         (*sibcall_value_vzeroupper): Ditto.
17948         (*sibcall_value_rex64_ms_sysv): Ditto.
17949         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
17950         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
17951         constraint for operand 1.
17952         (*sibcall_value_pop_vzeroupper): Ditto.
17953         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
17954         and "z" constraint for operand 2.
17955         (*tls_global_dynamic_32_gnu): Ditto.
17956         (*tls_local_dynamic_base_32_gnu): Ditto.
17957         (*tls_local_dynamic_base_64): Ditto.
17958         (*tls_local_dynamic_32_once): Ditto.
17959         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
17960         Update all callers.
17961         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
17962
17963 2011-05-16  Richard Guenther  <rguenther@suse.de>
17964
17965         * gimple.c (gimple_types_compatible_p_1): Use names of the
17966         type itself, not its main variant.
17967         (iterative_hash_gimple_type): Likewise.
17968
17969 2011-05-16  Richard Guenther  <rguenther@suse.de>
17970
17971         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
17972         always visit pointer target and function result and argument types.
17973
17974 2011-05-16  Jason Merrill  <jason@redhat.com>
17975
17976         PR c++/48999
17977         * tree-inline.c (copy_statement_list): Put back recursion.
17978
17979 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
17980
17981         PR target/27663
17982         PR target/41076
17983         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
17984         * config/avr/avr.md ("*ior<mode>qi.byte0",
17985         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
17986
17987 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
17988
17989         PR target/45099
17990         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
17991         register is needed for a function argument.
17992
17993 2011-05-16  Richard Guenther  <rguenther@suse.de>
17994
17995         * gimple.c (struct type_hash_pair): New type.
17996         (type_hash_pair_compare): New function.
17997         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
17998
17999 2011-05-16  Revital Eres  <revital.eres@linaro.org>
18000
18001         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
18002
18003 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
18004
18005         * config/i386/i386.md (floating point move splitters): Fix
18006         usage of standard_80387_constant_p.
18007         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
18008
18009 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
18010
18011         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
18012
18013 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
18014
18015         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
18016         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
18017         (tree_ssa_lim_finalize): Likewise.
18018
18019 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
18020
18021         * config/i386/constraint.md (Yd, Yx): New register constraints.
18022         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
18023         Yd conditional register constraint.
18024         (*movtf_internal): Use standard_sse_constant_opcode.
18025         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
18026         Yx conditional register constraint.
18027         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
18028         Yd conditional register constraint.  Use standard_sse_constant_p to
18029         check for valid SSE constants and call standard_sse_constant_opcode to
18030         output SSE insn.
18031         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
18032         constants and call standard_sse_constant_opcode to output SSE insn.
18033         * config/i386/i386.c (ix86_option_ovverride_internal): Set
18034         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
18035         optimize_size is set.
18036         (standard_sse_constant_opcode): Output conditional AVX insn templates.
18037
18038 2011-05-14  Tobias Burnus  <burnus@net-b.de>
18039
18040         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
18041
18042 2011-05-13  Martin Jambor  <mjambor@suse.cz>
18043
18044         * ipa-prop.c (ipa_cst_from_jfunc): New function.
18045         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
18046         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
18047         (evaluate_conditions_for_ipcp_clone): Removed.
18048         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
18049         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
18050         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
18051
18052 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
18053
18054         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
18055         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
18056         lieu of MAY_HAVE_DEBUG_STMTS.
18057         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
18058         debug statements if !MAY_HAVE_DEBUG_STMTS.
18059
18060 2011-05-13  Martin Thuresson  <martint@google.com>
18061
18062         PR gcov-profile/47793
18063         * libgcov.c (gcov_exit): Support relative profile paths.
18064         * doc/invoke.texi (-fprofile-dir): Update for above change.
18065
18066 2011-05-13  Richard Guenther  <rguenther@suse.de>
18067
18068         * gimple.c (gimple_canonical_types_compatible_p): Do not use
18069         type-pair caching, do not compare hashes.
18070
18071 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
18072
18073         PR middle-end/48965
18074         * tree-cfg.c (edge_to_cases_cleanup): Return true.
18075         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
18076
18077 2011-05-13  Kai Tietz  <ktietz@redhat.com>
18078
18079         * gimplify.c (gimplify_expr): Make sure operand is boolified.
18080         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
18081         compatible type for TRUTH_NOT_EXPR.
18082
18083 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18084
18085         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
18086         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
18087         can_create_pseudo_p ().
18088
18089 2011-05-13  Richard Guenther  <rguenther@suse.de>
18090
18091         PR lto/48978
18092         * gimple.c (iterative_hash_gimple_type): Revert change in
18093         pointer target and function result and argument hashing.
18094
18095 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
18096
18097         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
18098         (*movxf_internal_nointeger): Ditto.
18099         (*movdf_internal_rex64): Ditto.
18100         (*movdf_internal): Ditto.
18101         (*movdf_internal_nointeger): Ditto.
18102         (*movsf_internal): Ditto.
18103         (sincos splitters): Use can_create_pseudo ().
18104
18105 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
18106
18107         * config/i386/i386-opts.h: New.
18108         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
18109         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
18110         ix86_section_threshold): Remove.
18111         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
18112         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
18113         OPT_mbranch_cost_.
18114         (ix86_option_override_internal): Don't decode strings for options
18115         other than -march=, -mtune= and -mfpmath=.  Don't allow for
18116         __attribute__ uses in remaining diagnostics for options with
18117         string arguments.  Don't check for integer arguments being negative.
18118         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
18119         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
18120         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
18121         ix86_branch_cost, ix86_section_threshold): Remove.
18122         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
18123         HeaderInclude.
18124         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
18125         but not Var.
18126         (masm=): Use Enum and Init.
18127         (asm_dialect): New Enum and EnumValue entries.
18128         (mbranch-cost=): Use UInteger.
18129         (mlarge-data-threshold=): Use UInteger and Init.
18130         (mcmodel=): Use Enum and Init.
18131         (cmodel): New Enum and EnumValue entries.
18132         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
18133         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
18134         mregparm=): Use UInteger.
18135         (mstringop-strategy=): Use Enum and Init.
18136         (stringop_alg): New Enum and EnumValue entries.
18137         (mtls-dialect=): Use Enum and Init.
18138         (tls_dialect): New Enum and EnumValue entries.
18139         (mabi=): Use Enum and Init.
18140         (calling_abi): New Enum and EnumValue entries.
18141         (mveclibabi=): Use Enum and Init.
18142         (ix86_veclibabi): New Enum and EnumValue entries.
18143
18144 2011-05-13  Nick Clifton  <nickc@redhat.com>
18145
18146         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
18147         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
18148
18149 2011-05-13  Kai Tietz  <ktietz@redhat.com>
18150
18151         PR middle-end/48984
18152         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
18153         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
18154         (gimple_boolify): Check for cast for boolean_type_node instead for
18155         BOOLEAN_TYPE.
18156
18157 2011-05-13  Richard Guenther  <rguenther@suse.de>
18158
18159         PR tree-optimization/48172
18160         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
18161         multiplying by number of iterations for equal step.
18162         (vect_create_cond_for_alias_checks): Likewise.
18163
18164 2011-05-13  Andreas Schwab  <schwab@redhat.com>
18165
18166         * configure.ac: Use AS_HELP_STRING throughout.
18167         * configure: Regenerate.
18168
18169 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
18170
18171         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
18172         (ix86_emit_restore_regs_using_mov): Likewise.
18173         (ix86_emit_restore_sse_regs_using_mov): Likewise.
18174
18175 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
18176
18177         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
18178         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
18179         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
18180         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
18181         RTX_OK_FOR_OLO10_P): ...here.
18182         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
18183         SYMBOLIC_CONST.
18184
18185 2011-05-12  Kai Tietz  <ktietz@redhat.com>
18186
18187         * gimplify.c (gimple_boolify): Re-boolify expression
18188         arguments even if expression type is of kind BOOLEAN_TYPE.
18189         (gimplify_boolean_expr): Removed.
18190         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
18191         and XOR. Additional take care that we keep expression's type.
18192         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
18193         of TRUTH_AND|OR|XOR_EXPR.
18194
18195 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
18196
18197         PR tree-optimization/48975
18198         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
18199         on all bbs here and free and clear ifc_bbs at the end.
18200
18201 2011-05-12  Richard Guenther  <rguenther@suse.de>
18202
18203         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
18204         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
18205         until after simple checks.
18206         (gimple_types_compatible_p): Likewise.
18207         (iterative_hash_gimple_type): Always hash pointer targets
18208         and function return and argument types.
18209         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
18210         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
18211         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
18212         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
18213         completely in the simple compare section.
18214         (gimple_register_canonical_type): Query the cache again after
18215         registering.
18216
18217 2011-05-12  Richard Guenther  <rguenther@suse.de>
18218
18219         PR tree-optimization/48172
18220         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
18221         the number of iterations from the segment size calculation.
18222         (vect_create_cond_for_alias_checks): Adjust.
18223
18224 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
18225
18226         PR debug/48967
18227         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
18228         if validate_subreg fails.
18229
18230 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
18231
18232         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
18233         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
18234         early.
18235
18236 2011-05-12  DJ Delorie  <dj@redhat.com>
18237
18238         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
18239         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
18240         created builtin into rx_builtins array.
18241         (rx_builtin_decl): New function.
18242         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
18243
18244 2011-05-12  DJ Delorie  <dj@redhat.com>
18245             Nick Clifton  <nickc@redhat.com>
18246
18247         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
18248         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
18249         (rx_is_legitimate_address): Add pre-decrement and post-increment
18250         addressing in HImode and QImode.  Fix test for out of range
18251         REG+INT addressing.
18252         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
18253         (rx_align_for_label): Test label before extracting its usage count.
18254         (rx_adjust_insn_lengths): Fix selection of insn codes.
18255         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
18256
18257 2011-05-11  Jason Merrill  <jason@redhat.com>
18258
18259         * tree.c (type_hash_canon): Use struct tree_type_non_common.
18260
18261 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
18262
18263         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
18264         reindent the subsequent block.
18265
18266 2011-05-11  Satoru Takabayashi  <satorux@google.com>
18267             Paul Pluzhnikov  <ppluzhnikov@google.com>
18268
18269         * doc/install.texi (Configuration): Document --with-linker-hash-style.
18270         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
18271         * config.in: Add LINKER_HASH_STYLE.
18272         * configure.ac: Add --with-linker-hash-style.
18273         * configure: Regenerate.
18274
18275 2011-05-11  Richard Guenther  <rguenther@suse.de>
18276
18277         PR middle-end/48964
18278         * gimple.c (iterative_hash_canonical_type): Fix typo.
18279
18280 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
18281
18282         * config/i386/i386.c (legitimize_tls_address)
18283         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
18284         expanders directly for TARGET_GNU2_TLS.  Determine pic and
18285         __tls_get_addr symbol reference here.  Update call to
18286         gen_tls_global_dynamic_{32,64} for added arguments.
18287         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
18288         expanders directly for TARGET_GNU2_TLS.  Determine
18289         __tls_get_addr symbol reference here.  Update call to
18290         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
18291         unique UNSPEC REG_EQUIV to libcall block.
18292         (ix86_tls_get_addr): Declare static.
18293         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
18294         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
18295         Do not determine pic and __tls_get_addr symbol reference here. Do not
18296         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
18297         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
18298         (tls_global_dynamic_64): Add operand 2.  Do not determine
18299         __tls_get_addr symbol reference here.  Do not call
18300         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
18301         (tls_local_dynamic_base64): Ditto for operand 1.
18302
18303 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
18304
18305         * function.c (expand_function_start): Initialize stack_check_probe_note
18306         only if the generic stack checking mechanism is used.
18307
18308 2011-05-11  Richard Guenther  <rguenther@suse.de>
18309
18310         PR tree-optimization/15256
18311         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
18312         (A & B) | C, combine (A op CST1) op CST2.
18313         (tree_ssa_forward_propagate_single_use_vars): Only bother to
18314         visit assigns that have uses.
18315
18316 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
18317
18318         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
18319         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
18320         (unpack_ts_type_common_value_fields): ...this.  Update comment.
18321         (unpack_value_fields): Adjust for renaming.
18322         (lto_input_ts_type_tree_pointers): Split into...
18323         (lto_input_ts_type_common_tree_pointer): ...this and...
18324         (lto_input_ts_type_non_common_tree_pointers): ...this.
18325         (lto_input_tree_pointers): Adjust for above split.
18326         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
18327         (pack_ts_type_common_value_fields): ...this.  Update comment.
18328         (lto_output_ts_type_tree_pointers): Split into...
18329         (lto_output_ts_type_common_tree_pointers): ...this and...
18330         (lto_output_ts_type_non_common_tree_pointers): ...this.
18331         (lto_output_tree_pointers): Adjust for above split.
18332         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
18333         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
18334         * stor-layout.c (vector_type_mode): Adjust location of mode field.
18335         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
18336         Define.
18337         (struct tree_type): Split into...
18338         (struct tree_type_common: ...this and...
18339         (struct tree_type_with_lang_specific): ...this and...
18340         (struct tree_type_non_common): ...this.  Adjust accessor macros
18341         accordingly.
18342         (TYPE_VALUES_RAW): Define.
18343         (union tree_node): Update for above changes.
18344         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
18345         TS_TYPE_NON_COMMON.
18346         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
18347         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
18348         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
18349         * treestructu.def (TS_TYPE): Remove.
18350         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
18351         Define.
18352
18353 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
18354
18355         PR debug/48159
18356         * tree-ssa.c (reset_debug_uses): New function.
18357         * tree-flow.h (reset_debug_uses): New prototype.
18358         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
18359         * tree-loop-distribution.c (generate_loops_for_partition): Call
18360         reset_debug_uses on the stmts that will be removed.  Keep around
18361         all debug stmts, don't count them as bits in partition bitmap.
18362         (generate_builtin): Don't count debug stmts or labels as bits in
18363         partition bitmap.
18364
18365 2011-05-11  Richard Guenther  <rguenther@suse.de>
18366
18367         * gimple.c (gimple_type_hash_1): Merge with ...
18368         (gimple_type_hash): ... this.
18369         (gtc_visit): Remove mode parameter and simplify accordingly.
18370         (gimple_types_compatible_p_1): Likewise.
18371         (gimple_types_compatible_p): Likewise.
18372         (iterative_hash_gimple_type): Likewise.
18373         (visit): Likewise.
18374         (gimple_type_eq): Adjust.
18375
18376 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18377
18378         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
18379         enters the branch create an anti edge in the opposite direction
18380         to prevent the creation of reg-moves.
18381         * modulo-sched.c: Adjust comment to reflect the fact we are
18382         scheduling closing branch.
18383         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
18384         (stage_count): New field in struct partial_schedule.
18385         (calculate_stage_count): New function.
18386         (normalize_sched_times): Rename to reset_sched_times and handle
18387         incrementing the sched time of the nodes by a constant value
18388         passed as parameter.
18389         (duplicate_insns_of_cycles): Skip closing branch.
18390         (sms_schedule_by_order): Schedule closing branch.
18391         (ps_insn_find_column): Handle closing branch.
18392         (sms_schedule): Call reset_sched_times and adjust the code to
18393         support scheduling of the closing branch.
18394         (ps_insert_empty_row): Update calls to normalize_sched_times
18395         and rotate_partial_schedule functions.
18396
18397 2011-05-11  Richard Guenther  <rguenther@suse.de>
18398
18399         PR middle-end/48953
18400         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
18401
18402 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
18403
18404         * opts.c (finish_options): Move warning settings from process_options.
18405         * toplev.c (process_options): Move warning settings to finish_options.
18406
18407 2011-05-11  Richard Guenther  <rguenther@suse.de>
18408
18409         PR tree-optimization/18041
18410         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
18411         (simplify_bitwise_binary): ... this.  Handle operand conversions
18412         by applying them to the result instead.
18413         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
18414
18415 2011-05-11  Richard Guenther  <rguenther@suse.de>
18416
18417         * gimple.c (gimple_canonical_types_compatible_p): Split out
18418         from gimple_types_compatible_p and friends.  Do not recurse
18419         to pointed-to types.
18420         (gimple_canonical_type_eq): Use it.
18421         (iterative_hash_canonical_type): Split out from
18422         iterative_hash_gimple_type and friends.  Do not recurse
18423         to pointed-to types.
18424         (gimple_canonical_type_hash): Use it, allocate the hash here.
18425
18426 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18427
18428         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
18429         recognizing doloop.
18430
18431 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18432
18433         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
18434         instead of PREV_INSN.
18435
18436 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18437
18438         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
18439         * loop-doloop.c (doloop_condition_get): Likewise.
18440         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
18441         (doloop_end): New.
18442         * config/arm/arm.md (*addsi3_compare0): Remove "*".
18443
18444 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
18445
18446         * tree.def (CASE_LABEL_EXPR): Add an operand.
18447         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
18448
18449 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18450
18451         * c-decl.c (c_override_global_bindings_to_false): Remove.
18452         (global_bindings_p): Don't check
18453         c_override_global_bindings_to_false.
18454         * c-tree.h (c_override_global_bindings_to_false): Remove.
18455         * c-typeck.c (composite_type): Don't set
18456         c_override_global_bindings_to_false.
18457
18458 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
18459
18460         PR target/48857, 48495
18461         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
18462         (VSX_MODE): Ditto.
18463         (VSX_MOVE_MODE): Ditto.
18464         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
18465         VSX vector types.  Add V2DImode.
18466         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
18467         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
18468         (MODES_TIEABLE_P): Ditto.
18469
18470         * config/rs6000/rs6000.c (rs6000_emit_move): Use
18471         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
18472         VSX_VECTOR_MODE.
18473         (init_cumulative_args): Ditto.
18474         (rs6000_function_arg_boundary): Ditto.
18475         (rs6000_function_arg_advance_1): Ditto.
18476         (rs6000_function_arg): Ditto.
18477         (rs6000_function_ok_for_sibcall): Ditto.
18478         (emit_frame_save): Ditto.
18479         (rs6000_function_value): Ditto.
18480         (rs6000_libcall_value): Ditto.
18481
18482 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18483
18484         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
18485         i386/darwin-lib.h to $libgcc_tm_file.
18486         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
18487
18488 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18489
18490         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
18491
18492 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18493
18494         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
18495         * config/rs6000/rs6000-tables.opt: New file (generated).
18496         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
18497         rs6000/rs6000-tables.opt to extra_options.
18498         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
18499         * config/rs6000/rs6000.c (rs6000_select): Remove.
18500         (processor_target_table): Move contents to rs6000-cpus.def.
18501         (darwin_rs6000_override_options): Check
18502         global_options_set.x_rs6000_cpu_index instead of
18503         rs6000_select[1].string.
18504         (rs6000_option_override_internal): Likewise.
18505         (rs6000_handle_option): Don't assert that global structures are in
18506         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
18507         (rs6000_default_cpu): New variable.
18508         (rs6000_file_start): Set it instead of local default_cpu.  Check
18509         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
18510         global_options_set.x_rs6000_tune_index instead of rs6000_select.
18511         (rs6000_darwin_file_start): Check rs6000_default_cpu and
18512         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
18513         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
18514         rs6000_select): Remove.
18515         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
18516         Remove.
18517         (mcpu=, mtune=): Use Var, Init, Enum and Save.
18518         * config/rs6000/t-rs6000
18519         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
18520         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18521         global_options_set.x_rs6000_cpu_index instead of
18522         rs6000_select[1].string.
18523         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18524         global_options_set.x_rs6000_cpu_index instead of
18525         rs6000_select[1].string.
18526
18527 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18528
18529         * config.gcc (libgcc_tm_file): Define instead of including files
18530         from ../../libgcc/config/ in tm_file.
18531         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
18532         * configure: Regenerate.
18533         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
18534         libgcc_tm.h, cs-libgcc_tm.h): New.
18535         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
18536         (clean): Remove libgcc_tm.h.
18537         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
18538         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
18539         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
18540
18541 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
18542
18543         PR target/48896
18544         * config/avr/avr.c (avr_ret_register): Return unsigned int
18545         instead of int.
18546         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
18547         it to avr_libcall_value.
18548         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
18549         expand_expr.
18550         (avr_expand_binop_builtin): Ditto.
18551         (avr_expand_unop_builtin): Ditto.
18552
18553 2011-05-10  DJ Delorie  <dj@redhat.com>
18554
18555         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
18556         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
18557         * config/rx/rx.c (rx_align_for_label): Add label and
18558         uses_threshold parameters.  Do not align when the label is not
18559         used enough.
18560         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
18561
18562 2011-05-10  Richard Guenther  <rguenther@suse.de>
18563
18564         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
18565         a series of conversions and apply foldings similar to what
18566         fold-const does.
18567         (tree_ssa_forward_propagate_single_use_vars): Call it.
18568
18569 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
18570
18571         PR tree-optimization/48611
18572         PR tree-optimization/48794
18573         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
18574         referenced from RESX or EH_DISPATCH arguments.
18575
18576         PR debug/48928
18577         * dfp.c (decimal_to_decnumber): Handle conversion from
18578         dconst{1,2,m1,half}.
18579
18580 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18581
18582         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
18583         for !flag_prefer_avx128.
18584         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
18585
18586 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
18587
18588         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
18589         (fold_ternary_loc): Use expr_location_or.
18590
18591 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
18592
18593         PR debug/48853
18594         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
18595         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
18596         Pmode and mem_mode is not VOIDmode.
18597
18598 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
18599
18600         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
18601         TYPE_QUAL_RESTRICT): Convert to enum.
18602
18603 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18604
18605         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
18606         (const_pow2_1_to_8_operand): Ditto.
18607         (const_pow2_1_to_128_operand): Ditto.
18608         (const_pow2_1_to_32768_operand): Ditto.
18609         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
18610         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
18611         in insn constraint to check integer value of operand 3.
18612         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
18613
18614         (PINSR_MODE): New mode iterator.
18615         (sse2p4_1): New mode attribute.
18616         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
18617         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
18618         iterator.  Use const_int_operand instead of
18619         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
18620         exact_log2 in insn constraint to check integer value of operand 3.
18621
18622 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18623
18624         * config/i386/sse.md (blendbits): Remove mode attribute.
18625         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
18626         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
18627         Check integer value of operand 3 in insn constraint.
18628
18629 2011-05-09  Richard Guenther  <rguenther@suse.de>
18630
18631         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
18632         for diagnostics.
18633         (lto_symtab_merge): Likewise.  Do not register types here.
18634         (lto_symtab_merge_decls_2): Likewise.
18635         (lto_symtab_merge_decls_1): Likewise.
18636         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
18637         * gimple.c (enum gtc_mode): Declare.
18638         (gimple_types_compatible_p): Make static.
18639
18640 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18641
18642         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
18643         temporary register to match Pmode.
18644
18645 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18646
18647         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
18648         and *vec_concatv4si_1_avx.
18649
18650 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18651
18652         PR rtl-optimization/48927
18653         * ira-conflicts.c (commutative_constraint_p): Use
18654         recog_data.alternative_enabled_p to disable alternatives where
18655         "enabled" attribute is false.
18656         (get_dup_num): Ditto.
18657         * ira-lives.c (single_reg_class): Ditto.
18658         (ira_implicitly_set_insn_hard_regs): Ditto.
18659
18660 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
18661
18662         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
18663         (dataflow_set_preserve_mem_locs): Likewise.
18664
18665 2011-05-09  Philipp Thomas  <pth@suse.de>
18666
18667         * config/mep/mep.c (mep_validate_vliw): Syntax description
18668         should not be translated.
18669
18670 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
18671
18672         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
18673         * config/mips/mips-tables.opt: New file (generated).
18674         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
18675         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
18676         MIPS_ARCH_OPTION_NATIVE): Define.
18677         * config/mips/mips.c (mips_cpu_info_table): Move contents to
18678         mips-cpus.def.
18679         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
18680         mips_parse_cpu): Remove.
18681         (mips_cpu_info_from_opt, mips_default_arch): New.
18682         (mips_handle_option): Don't assert that global structures are in
18683         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
18684         (mips_option_override): Use new variables and functions to set
18685         state of these options.  Use strcmp to check for individual CPU names.
18686         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
18687         definition.
18688         * config/mips/mips.opt (march=): Use ToLower and Enum.
18689         (mips): Use ToLower, Enum and Var.
18690         (mtune=): Use ToLower and Enum.
18691         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
18692
18693 2011-05-08  Jan Hubicka  <jh@suse.cz>
18694
18695         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
18696         Arrange type pairs to be UID ordered.
18697         (gimple_lookup_type_leader): Make inline.
18698
18699 2011-05-09  Nick Clifton  <nickc@redhat.com>
18700
18701         PR target/48899
18702         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
18703         PROCESSOR_DEFAULT.
18704
18705         PR target/48897
18706         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
18707         variable 's'.
18708
18709 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
18710
18711         * combine.c (simplify_comparison): Abstract out parts into...
18712         (simplify_compare_const): ... new function.
18713         (try_combine): Generalize parallel arithmetic/compare combining
18714         to call simplify_compare_const() and CANONICALIZE_COMPARE().
18715
18716 2011-05-08  Jan Hubicka  <jh@suse.cz>
18717
18718         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
18719         (cgraph_create_virtual_clone): Call hooks once virtual clone
18720         is finished.
18721         * cgraph.h (cgraph_clone_node): Update prototype.
18722         * ipa-cp.c (ipcp_estimate_growth): Use
18723         estimate_ipcp_clone_size_and_time.
18724         * ipa-inline-transform.c (clone_inlined_nodes): Update.
18725         * lto-cgraph.c (input_node): Update.
18726         * ipa-inline.c (recursive_inlining): Update.
18727         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
18728         (evaluate_conditions_for_known_args): Break out from ...
18729         (evaluate_conditions_for_edge): ... here.
18730         (evaluate_conditions_for_ipcp_clone): New function.
18731         (inline_node_duplication_hook): Update clone summary based
18732         on parameter map.
18733         (estimate_callee_size_and_time): Rename to ...
18734         (estimate_node_size_and_time): take NODE instead of EDGE;
18735         take POSSIBLE_TRUTHS as argument.
18736         (estimate_callee_size_and_time): Update.
18737         (estimate_ipcp_clone_size_and_time): New function.
18738         (do_estimate_edge_time): Update.
18739
18740 2011-05-08  Richard Guenther  <rguenther@suse.de>
18741
18742         PR middle-end/48908
18743         PR middle-end/48905
18744         * expmed.c (expand_shift_1): Compute adjusted constant shift
18745         amount manually.
18746
18747 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
18748
18749         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
18750
18751 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
18752
18753         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
18754
18755 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
18756
18757         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
18758
18759 2011-05-07  Jan Hubicka  <jh@suse.cz>
18760
18761         * ipa-inline-transform.c (inline_call): Account when program size
18762         decreases.
18763         * ipa-inline.c (relative_time_benefit): New function.
18764         (edge_badness): Reorganize to be power 2 based; fix thinko when
18765         computing badness for negative growth; update comments to match
18766         reality; better dumps.
18767
18768 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
18769
18770         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
18771         type to bool and adjust comment.
18772         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
18773         (fold_mathfn_compare): Remove calls to global_bindings_p.
18774         (fold_inf_compare): Likewise.
18775         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
18776         * c-tree.h (global_bindings_p): Adjust prototype.
18777         * c-decl.c (global_bindings_p): Return bool and simplify.
18778
18779 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
18780
18781         PR tree-optimization/48837
18782         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
18783         when accumulator transformation is performed.
18784
18785 2011-05-06  Jan Hubicka  <jh@suse.cz>
18786
18787         * i386.h (ix86_tune_indices): Add
18788         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
18789         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
18790         * i386.c (initial_ix86_tune_features): Add
18791         X86_SOFTARE_PREFETCHING_BENEFICIAL.
18792         (software_prefetching_beneficial_p): Remove predicate.
18793         (ix86_option_override_internal): Use new macro.
18794
18795 2011-05-06  Jan Hubicka  <jh@suse.cz>
18796
18797         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
18798
18799 2011-05-06  Jan Hubicka  <jh@suse.cz>
18800
18801         * cgraph.c (cgraph_add_thunk): Create real function node instead
18802         of alias node; finalize it and mark needed/reachale; arrange visibility
18803         to be right and add it into the corresponding same comdat group list.
18804         (dump_cgraph_node): Dump thunks.
18805         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
18806         cgraph_function_with_gimple_body_p,
18807         cgraph_first_function_with_gimple_body,
18808         cgraph_next_function_with_gimple_body): New functions.
18809         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
18810         New macros.
18811         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
18812         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18813         * cgraphunit.c (cgraph_finalize_function): Only look into possible
18814         devirtualization when optimizing.
18815         (verify_cgraph_node): Verify thunks.
18816         (cgraph_analyze_function): Analyze thunks.
18817         (cgraph_mark_functions_to_output): Output thunks only in combination
18818         with function they are assigned to.
18819         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
18820         alias into normal node.
18821         (assemble_thunks): New functoin.
18822         (cgraph_expand_function): Use it.
18823         * lto-cgraph.c (lto_output_node): Stream thunks.
18824         (input_overwrite_node): Stream in thunks.
18825         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
18826         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
18827         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
18828         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
18829         (inline_analyze_function): Do not care about thunk jump functions.
18830         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
18831         * ipa-prop.c (ipa_prop_write_jump_functions): Use
18832         cgraph_function_with_gimple_body_p.
18833         * passes.c (do_per_function_toporder): Use
18834         cgraph_function_with_gimple_body_p.
18835         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18836         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
18837         (function_called_by_processed_nodes_p): Likewise.
18838
18839 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
18840
18841         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
18842         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
18843         entries.
18844         (mabi=): Replace with separate entries for mabi=altivec,
18845         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
18846         mabi=ieeelongdouble and mabi=ibmlongdouble.
18847         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
18848         check for -mabi=spe without SPE ABI support here.
18849         (rs6000_handle_option): Replace OPT_mabi_ handling with
18850         OPT_mabi_altivec and OPT_mabi_spe handling.
18851
18852 2011-05-06  Cary Coutant  <ccoutant@google.com>
18853
18854         * dwarf2out.c (contains_subprogram_definition): New function.
18855         (should_move_die_to_comdat): Call it.
18856
18857 2011-05-06  Jeff Law  <law@redhat.com>
18858
18859         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
18860         remove_ctrl_stmt_and_useless_edges.
18861         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
18862         (fixup_template_block, thread_single_edge): Likewise.
18863         (mark_threaded_blocks): Use THREAD_TARGET.
18864
18865 2011-05-06  Alan Modra  <amodra@gmail.com>
18866
18867         PR target/48900
18868         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
18869         const0_rtx as the arg to the dummy __tls_get_addr libcall.
18870
18871 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
18872
18873         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
18874         constraint modifier to "r".
18875
18876 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
18877
18878         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
18879         fall through for OPT_mcmodel_.
18880
18881 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18882
18883         * config/s390/s390.c (s390_asm_trampoline_template): Comment
18884         instruction sizes.
18885         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
18886
18887 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18888
18889         PR target/47930
18890         * config/arm/arm.opt (marm): Document it.
18891         (mthumb): Reject negative variant.
18892
18893 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
18894
18895         PR target/48898
18896         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18897         Fix typo in "ccvt" variable name.
18898
18899 2011-05-06  Tristan Gingold  <gingold@adacore.com>
18900
18901         PR target/48895
18902         * config/vms/vms-ar.c (main): Remove cwd variable.
18903
18904 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
18905
18906         PR debug/48902
18907         * var-tracking.c (prepare_call_arguments): Move else before #endif.
18908
18909 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
18910
18911         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
18912         * gimplify.c (gimplify_switch_expr): Likewise.
18913         * omp-low.c (expand_omp_sections): Likewise.
18914         * tree-eh.c (lower_try_finally_switch): Likewise.
18915         (lower_eh_dispatch): Likewise.
18916         * tree.h (build_case_label): Declare.
18917         * tree.c (build_case_label): Define.
18918
18919 2011-05-05  Jason Merrill  <jason@redhat.com>
18920
18921         PR c++/40975
18922         * tree-inline.c (copy_tree_r): Use copy_statement_list.
18923         (copy_statement_list): Don't recurse.
18924         * stor-layout.c (copy_self_referential_tree_r): Don't allow
18925         STATEMENT_LIST.
18926
18927 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18928
18929         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
18930         through from -mfpu= handling.
18931         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
18932
18933 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
18934
18935         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
18936         POST_MODIFY.
18937
18938 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
18939
18940         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
18941         for 11.31.
18942         (hppa[12]*-*-hpux11*): Ditto.
18943         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
18944         * config/ia64/hpux-unix2003.h: New.
18945         * config/pa/pa-hpux1131.opt: New.
18946         * config/pa/pa-hpux1131.h: New.
18947         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
18948         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
18949         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
18950
18951 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
18952
18953         PR debug/48853
18954         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
18955         instead of mode as 3rd argument to recursive call.
18956         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
18957         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
18958         VOIDmode.
18959         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
18960         don't give up if mode is Pmode and mem_mode is not VOIDmode.
18961         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
18962         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
18963
18964 2011-05-05  Julian Brown  <julian@codesourcery.com>
18965
18966         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
18967         parenthesis in D-register case.
18968
18969 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18970
18971         * opt-functions.awk (var_type_struct): Handle Enum options.
18972         * optc-gen.awk: Don't check range of variables of character type.
18973         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
18974         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
18975         rs6000_sdata_name, rs6000_explicit_options): Remove.
18976         (rs6000_option_override_internal): Check for -malign-power here.
18977         Use global_options_set instead of rs6000_explicit_options.
18978         (rs6000_parse_fpu_option): Remove.
18979         (rs6000_handle_option): Access variables via opts and opts_set
18980         pointers.  Use error_at and warning_at.  Add fall-through
18981         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
18982         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
18983         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
18984         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
18985         here.  Don't use rs6000_parse_fpu_option.
18986         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
18987         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
18988         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
18989         (mrecip=): Use Var.
18990         (mspe): Use Var and Save.
18991         (mtraceback=): Use Enum and Var.
18992         (rs6000_traceback_type): New Enum and EnumValue entries.
18993         (mfloat-gprs=): Use Enum, Var and Save.
18994         (rs6000_float_gprs): New Enum and EnumValue entries.
18995         (mlong-double-): use Var and Save.
18996         (msched-costly-dep=, minsert-sched-nops=): Use Var.
18997         (malign-): Use Enum and Var.
18998         (rs6000_alignment_flags): New Enum and EnumValue entries.
18999         (mfpu=): Use Enum.
19000         (fpu_type_t): New Enum and EnumValue entries.
19001         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
19002         global_options_set instead of rs6000_explicit_options.
19003         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
19004         global_options_set instead of rs6000_explicit_options.
19005         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
19006         global_options_set instead of rs6000_explicit_options.
19007         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
19008         global_options_set instead of rs6000_explicit_options.
19009         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
19010         global_options_set instead of rs6000_explicit_options.
19011         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
19012         global_options_set instead of rs6000_explicit_options.
19013         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
19014         definition.
19015         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
19016         global_options_set instead of rs6000_explicit_options.
19017         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
19018         (rs6000_cmodel): New Enum and EnumValue entries.
19019         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
19020         global_options_set instead of rs6000_explicit_options.
19021         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
19022         (mtls-size=): Use Enum and Var.
19023         (rs6000_tls_size): New Enum and EnumValue entries.
19024
19025 2011-05-05  Michael Matz  <matz@suse.de>
19026
19027         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
19028         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
19029         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
19030         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
19031         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
19032         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
19033         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
19034         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
19035         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
19036         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
19037         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
19038         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
19039         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
19040         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
19041         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
19042         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
19043
19044 2011-05-05  Richard Guenther  <rguenther@suse.de>
19045
19046         * expmed.c (expand_variable_shift): Rename to ...
19047         (expand_shift_1): ... this.  Take an expanded shift amount.
19048         For rotates recurse directly not building trees for the shift amount.
19049         (expand_variable_shift): Wrap around expand_shift_1.
19050         (expand_shift): Adjust.
19051
19052 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
19053
19054         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
19055
19056 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
19057
19058         * tree.h (get_pending_sizes): Remove prototype.
19059         (put_pending_size): Likewise.
19060         (put_pending_sizes): Likewise.
19061         * stor-layout.c (pending_sizes): Delete.
19062         (get_pending_sizes): Likewise.
19063         (put_pending_size): Likewise.
19064         (put_pending_sizes): Likewise.
19065         (variable_size): Do not call put_pending_size and tidy up.
19066         * function.h (struct function): Remove dont_save_pending_sizes_p.
19067         * lto-streamer-in.c (input_function): Do not stream it.
19068         * lto-streamer-out.c (output_function): Likewise.
19069         * tree-inline.c (initialize_cfun): Do not copy it.
19070         * c-decl.c (store_parm_decls): Do not set it.
19071         * omp-low.c (create_task_copyfn): Likewise.
19072         * tree-optimize.c (tree_rest_of_compilation): Likewise.
19073
19074 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
19075
19076         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
19077         conditions.
19078         (*movdf_internal): Ditto.
19079         (*movdf_internal_nointeger): Ditto.
19080         (*movsf_internal): Ditto.
19081
19082 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
19083
19084         * c-decl.c (finish_decl): Don't call get_pending_sizes.
19085         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
19086         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
19087         (c_variable_size): Remove.
19088         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
19089         call put_pending_sizes.
19090         (get_parm_info): Add parameter expr.  Use it to set
19091         arg_info->pending_sizes.
19092         (store_parm_decls): Use arg_info->pending_sizes instead or calling
19093         get_pending_sizes.
19094         * c-parser.c (c_parser_parms_declarator): Update call to
19095         c_parser_parms_list_declarator.
19096         (c_parser_parms_list_declarator): Take parameter expr.  Update
19097         call to push_parm_decl.  Update recursive call.  Don't call
19098         get_pending_sizes.  Update calls to get_parm_info.
19099         (c_parser_objc_method_definition): Update calls to
19100         c_parser_objc_method_decl and objc_start_method_definition.
19101         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
19102         (c_parser_objc_method_decl): Add parameter expr.  Update call to
19103         grokparm.
19104         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
19105         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
19106         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
19107
19108 2011-05-05  Michael Hope  <michael.hope@linaro.org>
19109
19110         PR pch/45979
19111         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
19112         __ARM_EABI__ hosts.
19113
19114 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19115
19116         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
19117         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
19118         (spu_output_mi_thunk): New function.
19119
19120 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19121
19122         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
19123         targetm.asm_out.print_operand.
19124         * config/sol2.c: Include target.h.
19125
19126 2011-05-04  Jan Hubicka  <jh@suse.cz>
19127
19128         * ipa-inline.c (reset_edge_caches): New function.
19129         (update_caller_keys): Add check_inlinablity_for; do not
19130         reset edge caches; remove now unnecesary loop.
19131         (update_callee_keys): Add comments; reset node_growth_cache of callee.
19132         (update_all_callee_keys): Likewise.
19133         (inline_small_functions): Sanity check cache; update code
19134         recomputing it.
19135
19136 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
19137
19138         PR rtl-optimization/47612
19139         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
19140         as the last insn of the sequence to be moved.
19141
19142 2011-05-04  Tobias Burnus  <burnus@net-b.de>
19143
19144         PR fortran/48864
19145         * doc/invoke.texi (Ofast): Document that it
19146         enables Fortran's -fno-protect-parens.
19147
19148 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
19149
19150         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
19151
19152 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
19153
19154         * stor-layout.c (variable_size): Do not issue errors.
19155
19156 2011-05-04  Richard Guenther  <rguenther@suse.de>
19157
19158         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
19159         for array-ref indices.
19160         (tree_coverage_counter_addr): Likewise.
19161         (build_fn_info_type): Use size_int for index types.
19162         (build_gcov_info): Likewise.
19163
19164 2011-05-04  Richard Guenther  <rguenther@suse.de>
19165
19166         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
19167         to build_int_cst.
19168         * c-typeck.c (really_start_incremental_init): Use bitsize_int
19169         for constructor indices.
19170         (push_init_level): Likewise.
19171
19172 2011-05-04  Richard Guenther  <rguenther@suse.de>
19173
19174         * explow.c (promote_mode): Move variable declarations before code.
19175
19176 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
19177
19178         * tree.h (build_function_type_array): Declare.
19179         (build_varargs_function_type_array): Declare.
19180         (build_function_type_vec, build_varargs_function_type_vec): Define.
19181         * tree.c (build_function_type_array_1): New function.
19182         (build_function_type_array): New function.
19183         (build_varargs_function_type_array): New function.
19184
19185 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
19186
19187         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
19188         before setting STMT_VINFO_TYPE.
19189
19190 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19191
19192         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
19193         instead of spu_pass_by_reference.
19194
19195 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19196
19197         * calls.c (emit_library_call_value_1): Invoke
19198         promote_function_mode hook on libcall arguments.
19199         * explow.c (promote_function_mode, promote_mode): Handle TYPE
19200         argument being NULL.
19201         * targhooks.c (default_promote_function_mode): Lisewise.
19202         * config/s390/s390.c (s390_promote_function_mode): Likewise.
19203         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
19204
19205         * doc/tm.texi: Document that TYPE argument might be NULL.
19206
19207 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
19208
19209         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
19210
19211 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
19212
19213         From Bernd Schmidt
19214         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
19215
19216 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19217
19218         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
19219         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
19220         Move ...
19221         * mips-tfile.c: ... here.
19222         Don't include coretypes.h, tm.h, filenames.h.
19223         (saber_stop): Remove definition and all calls.
19224         [__SABER__]: Remove.
19225         (__LINE__): Remove default.
19226         (Size_t, Ptrdiff_t): Remove definitions.
19227         Replace by size_t, ptrdiff_t.
19228         [!MIPS_DEBUGGING_INFO]: Remove.
19229         (SHASH_SIZE, THASH_SIZE): Remove defaults.
19230         (progname): Add const.
19231         (STATIC): Remove.
19232         Replace all uses by static.
19233         (ALIGN_SYMTABLE_OFFSET): Remove default.
19234         * mips-tdump.c: Don't include coretypes.h, tm.h.
19235         Remove !MIPS_IS_STAB guard.
19236         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
19237         $(TM_H), filenames.h dependencies.
19238         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
19239
19240 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
19241
19242         From Jie Zhang
19243         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
19244         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
19245
19246 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
19247
19248         From Bernd Schmidt
19249         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
19250         account and save/restore RETS.
19251         (PROFILE_BEFORE_PROLOGUE): Define.
19252         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
19253         the push insn to use predecrement.
19254
19255 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
19256
19257         From Jie Zhang
19258         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
19259
19260 2011-05-04  Nick Clifton  <nickc@redhat.com>
19261
19262         * config/mn10300/mn10300.c: Include cfgloop.h.
19263         (DUMP): New macro.
19264         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
19265         Lcc or a FLcc insn into the instruction stream.
19266         (mn10300_block_contains_call): New function.  Returns true if the
19267         given basic block contains a CALL insn.
19268         (mn10300_loop_contains_call_insn): New function.  Returns true if
19269         the given loop contains a CALL insn.
19270         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
19271         to use the SETLB and Lcc or FLcc insns.
19272         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
19273         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
19274         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
19275         disable the SETLB optimization.
19276         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
19277         __SETLB__ or __NO_SETLB__.
19278         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
19279         (movsf_internal): Handle MDR register.
19280         (cmpsi): Make visible.
19281         (setlb): New pattern.
19282         (Lcc): New pattern.
19283         (FLcc): New pattern.
19284
19285 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
19286
19287         PR target/48860
19288         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
19289         for reg<->xmm moves.
19290         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
19291         (vec_concatv2di_rex64_sse): Ditto.
19292         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
19293         (*vec_extractv2di_1_rex64): Ditto.
19294
19295         Revert:
19296         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19297
19298         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19299         reg<->xmm moves.
19300         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
19301
19302 2011-05-04  Richard Guenther  <rguenther@suse.de>
19303
19304         * tree.h (int_const_binop): Remove notrunc argument.
19305         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
19306         create integer constants that are properly truncated.
19307         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
19308         (const_binop): Remove zero notrunc argument to int_const_binop.
19309         (size_binop_loc): Likewise.
19310         (fold_div_compare): Likewise.
19311         (maybe_canonicalize_comparison_1): Likewise.
19312         (fold_comparison): Likewise.
19313         (fold_binary_loc): Likewise.
19314         (multiple_of_p): Likewise.
19315         * expr.c (store_constructor): Likewise.
19316         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
19317         (maybe_fold_stmt_addition): Likewise.
19318         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
19319         * stor-layout.c (layout_type): Likewise.
19320         * tree-data-ref.c (tree_fold_divides_p): Likewise.
19321         * tree-sra.c (build_ref_for_offset): Likewise.
19322         (build_user_friendly_ref_for_offset): Likewise.
19323         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
19324         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19325         * tree-ssa-loop-niter.c (inverse): Likewise.
19326         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
19327         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
19328         * tree-switch-conversion.c (check_range): Likewise.
19329         (build_constructors): Likewise.
19330         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
19331         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
19332         (extract_range_from_assert): Likewise.
19333         (vrp_int_const_binop): Likewise.
19334         (extract_range_from_binary_expr): Likewise.
19335         (extract_range_from_unary_expr): Likewise.
19336         (check_array_ref): Likewise.
19337         (find_case_label_range): Likewise.
19338         (simplify_div_or_mod_using_ranges): Likewise.
19339         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
19340         comparing case labels for merging.
19341
19342 2011-05-03  Mark Wielaard  <mjw@redhat.com>
19343
19344         * dwarf2out.c (debug_str_hash_forced): Removed.
19345         (gen_label_for_indirect_string): Removed.
19346         (get_debug_string_label): Removed.
19347         (AT_string_form): Generate label directly.
19348         (output_indirect_string): Test indirect_string_node for
19349         DW_FORM_strp instead of checking label and refcount.
19350         (prune_indirect_string): Removed.
19351         (prune_unused_types): Don't check debug_str_hash_forced or
19352         call prune_indirect_string.
19353
19354 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
19355
19356         PR other/48093
19357         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
19358
19359 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
19360
19361         PR debug/47994
19362         PR debug/47919
19363         * combine.c (try_combine): Skip debug insns at m_split tests.
19364
19365 2011-04-26  Mark Wielaard  <mjw@redhat.com>
19366
19367         PR42288
19368         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
19369         when info_section_emitted.
19370
19371 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
19372
19373         * config/mips/mips-opts.h: New.
19374         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
19375         to mips-opts.h.
19376         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
19377         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
19378         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
19379         via opts pointer.
19380         * config/mips/mips.h (enum mips_code_readable_setting): Move to
19381         mips-opts.h.
19382         (mips_abi, mips_code_readable): Don't declare.
19383         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
19384         (mabi=): Use Enum and Var.
19385         (mips_abi): New Enum and EnumValue entries.
19386         (mcode-readable=): Use Enum and Var.
19387         (mips_code_readable_setting): New Enum and EnumValue entries.
19388         (mr10k-cache-barrier=): Use Enum and Var.
19389         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
19390
19391 2011-05-03  Jan Hubicka  <jh@suse.cz>
19392
19393         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
19394         replace hash by pointer map.
19395         (cgraph_node_set_element_def, cgraph_node_set_element,
19396         const_cgraph_node_set_element, varpool_node_set_element_def,
19397         varpool_node_set_element, const_varpool_node_set_element): Remove.
19398         (free_cgraph_node_set, free_varpool_node_set): New function.
19399         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
19400         * tree-emutls.c: Free varpool node set.
19401         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
19402         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19403         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
19404         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19405         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
19406         Move here from ipa.c; implement using pointer_map
19407         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
19408         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19409         debug_cgraph_node_set, varpool_node_set_new,
19410         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19411         dump_varpool_node_set, debug_varpool_node_set):
19412         Move to ipa-uitls.c.
19413         * passes.c (ipa_write_summaries): Update.
19414
19415 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19416
19417         From Mike Frysinger:
19418         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
19419         bf542/bf544/bf547/bf548/bf549.
19420
19421 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
19422
19423         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
19424
19425 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19426
19427         From Bernd Schmidt:
19428         * config/bfin/bfin.md (MOVCC): New mode_macro.
19429         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
19430         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
19431         comments from generated assembly.
19432
19433 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19434
19435         From Bernd Schmidt
19436         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
19437         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
19438         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
19439         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
19440         * config/bfin/lib1funcs.asm (___muldi3): New function.
19441
19442 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19443
19444         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
19445         build_function_type_list instead of build_function_type.
19446         Rearrange initialization of `args' to do so.
19447
19448 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19449
19450         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
19451         instead of build_function_type.
19452
19453 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19454
19455         * config/rs6000/rs6000.c (spe_init_builtins): Call
19456         build_function_type_list instead of build_function_type.
19457         (paired_init_builtins, altivec_init_builtins): Likewise.
19458         (builtin_function_type): Likewise.
19459
19460 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19461
19462         * config/sh/sh.c (sh_media_init_builtins): Call
19463         build_function_type_list instead of build_function_type.
19464
19465 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19466
19467         * config/sparc/sparc.c (sparc_file_end): Call
19468         build_function_type_list instead of build_function_type.
19469
19470 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19471
19472         * config/alpha/alpha.c (alpha_init_builtins): Call
19473         build_function_type_list instead of build_function_type.
19474
19475 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19476
19477         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
19478         build_function_type_list instead of build_function_type.
19479
19480 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19481
19482         * config/iq2000/i2000.c (iq2000_init_builtins): Call
19483         build_function_type_list instead of build_function_type.
19484         Delete `endlink' variable.
19485
19486 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19487
19488         * config/avr/avr.c (avr_init_builtins): Call
19489         build_function_type_list instead of build_function_type.
19490
19491 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19492
19493         * config/picochip/picochip.c (picochip_init_builtins): Call
19494         build_function_type_list instead of build_function_type.
19495         Delete `endlink' variable.
19496
19497 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19498
19499         * config/bfin/bfin.c (bfin_init_builtins): Call
19500         build_function_type_list instead of build_function_type.
19501
19502 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19503
19504         From Bernd Schmidt
19505         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
19506         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
19507
19508 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19509
19510         From Jie Zhang:
19511         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
19512         libbffastfp overrides libgcc when -mfast-fp.
19513
19514 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19515
19516         Originally from Bernd Schmidt
19517         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
19518         * config/bfin/bfin.c (override_options): Test it and error if
19519         TARGET_FDPIC.
19520
19521 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19522
19523         Originally From Bernd Schmidt
19524         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
19525         FD-PIC.
19526
19527 2011-05-03  Jeff Law  <law@redhat.com>
19528
19529         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
19530         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
19531         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
19532         than accessing AUX field directly.  Free the AUX field before
19533         clearing it.
19534         (thread_block, thread_through_loop_header): Likewise.
19535         (thread_single_edge, mark_threaded_blocks): Likewise.
19536         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
19537         (register_jump_thread): Do not attempt to thread to a NULL edge.
19538
19539 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
19540
19541         * function.c (init_function_start): Call decide_function_section.
19542         * varasm.c (decide_function_section): New function.
19543         (assemble_start_function): When not using
19544         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
19545         or first_function_block_is_cold.
19546         * rtl.h (decide_function_section): Declare.
19547
19548 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
19549             Jakub Jelinek  <jakub@redhat.com>
19550
19551         PR target/48774
19552         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
19553         only succeed if req_mode is the same as set_mode.
19554
19555 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
19556
19557         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
19558         * genemit.c (gen_exp): Handle RETURN.
19559         * emit-rtl.c (verify_rtx_sharing): Likewise.
19560         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
19561         * rtl.c (copy_rtx): RETURN is shared.
19562         * rtl.h (enum global_rtl_index): Add GR_RETURN.
19563         (ret_rtx): New.
19564         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
19565         * config/s390/s390.c (s390_emit_epilogue): Likewise.
19566         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
19567         * config/cris/cris.c (cris_expand_return): Likewise.
19568         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
19569         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
19570         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
19571         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
19572         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
19573         Likewise.
19574         * config/v850/v850.c (expand_epilogue): Likewise.
19575         * config/bfin/bfin.c (bfin_expand_call): Likewise.
19576         * config/arm/arm.md (epilogue): Likewise.
19577         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
19578         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
19579         variable to ret_reg.
19580
19581 2011-05-03  Richard Guenther  <rguenther@suse.de>
19582
19583         PR lto/48846
19584         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
19585         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
19586         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19587
19588 2011-05-03  Richard Guenther  <rguenther@suse.de>
19589
19590         * c-decl.c (grokdeclarator): Instead of looking at
19591         TREE_OVERFLOW check if the constant fits in the index type.
19592
19593 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19594
19595         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
19596         (vec_store_lanes<mode><mode>): Likewise.
19597
19598 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19599
19600         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
19601         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
19602         convert_optab_index values.
19603         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
19604         * genopinit.c (optabs): Initialize the new optabs.
19605         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
19606         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
19607         (expand_STORE_LANES): New functions.
19608         * tree.h (build_array_type_nelts): Declare.
19609         * tree.c (build_array_type_nelts): New function.
19610         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
19611         (vect_model_load_cost): Likewise.
19612         (vect_store_lanes_supported, vect_load_lanes_supported)
19613         (vect_record_strided_load_vectors): Declare.
19614         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
19615         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
19616         (vect_transform_strided_load): Split out statement recording into...
19617         (vect_record_strided_load_vectors): ...this new function.
19618         * tree-vect-stmts.c (create_vector_array, read_vector_array)
19619         (write_vector_array, create_array_ref): New functions.
19620         (vect_model_store_cost): Add store_lanes_p argument.
19621         (vect_model_load_cost): Add load_lanes_p argument.
19622         (vectorizable_store): Try to use store-lanes functions for
19623         interleaved stores.
19624         (vectorizable_load): Likewise load-lanes and loads.
19625         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
19626         to vect_model_store_cost.
19627         (vect_build_slp_tree): Likewise vect_model_load_cost.
19628
19629 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19630
19631         * hooks.h (hook_bool_mode_uhwi_false): Declare.
19632         * hooks.c (hook_bool_mode_uhwi_false): New function.
19633         * target.def (array_mode_supported_p): New hook.
19634         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
19635         * doc/tm.texi: Regenerate.
19636         * stor-layout.c (mode_for_array): New function.
19637         (layout_type): Use it.
19638         * config/arm/arm.c (arm_array_mode_supported_p): New function.
19639         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
19640
19641 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
19642
19643         PR target/48723
19644         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
19645         for -fstack-check if the size to allocate is negative.
19646
19647 2011-05-02  Lawrence Crowl  <crowl@google.com>
19648
19649         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
19650         (timevar_cond_start): New for starting a timer only when it is not
19651         already running.
19652         (timevar_cond_stop): New for stopping a timer when it was not already
19653         running.
19654
19655         * timevar.c (timevar_stop): Enable start/stop timers to start again.
19656         (timevar_cond_start): New as above.
19657         (timevar_cond_stop): New as above.
19658
19659         * timevar.def: Add start/stop timers for compiler phases,
19660         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
19661         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
19662         and TV_PHASE_FINALIZE.
19663         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
19664         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
19665         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
19666         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
19667         Make unused TV_OVERLOAD into a start/stop timer.
19668
19669         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
19670         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
19671         to indicate that they are start/stop timers.
19672
19673         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
19674         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
19675         Move initialization to do_compile.
19676         (do_compile): Add initialization from above.
19677         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
19678
19679         * c-decl.c (c_write_global_declarations): Add start/stop of
19680         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
19681
19682         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
19683         or TV_PARSE_INLINE, as appropriate.
19684         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
19685         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
19686
19687 2011-05-02  Jason Merrill  <jason@redhat.com>
19688
19689         PR c++/40975
19690         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
19691
19692 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
19693
19694         PR c/35445
19695         * c-decl.c (finish_decl): Only create a composite if the types are
19696         compatible.
19697
19698 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
19699
19700         * config/fr30/fr30-protos.h (Mmode): Don't define.
19701         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
19702         definition where used.
19703         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
19704         define.  Expand definitions where used.
19705         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
19706         Expand definitions where used.
19707         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
19708         rx_function_arg, rx_function_arg_advance,
19709         rx_function_arg_boundary): Expand definitions of those macros.
19710         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
19711         definition where used.
19712
19713 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19714
19715         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19716         reg<->xmm moves.
19717         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
19718         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
19719         with *movv2sf_internal_rex64_avx.
19720         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
19721         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
19722         Use %v prefix in insn mnemonic to handle TARGET_AVX.
19723         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
19724         "vex" in "prefix" attribute calculation.
19725         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
19726
19727 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
19728
19729         PR target/47951
19730         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
19731         inputs match the output.
19732
19733 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
19734
19735         PR target/47955
19736         * config/m68k/m68k.c (m68k_expand_prologue): Set
19737         current_function_static_stack_size.
19738
19739 2011-05-02   Jan Hubicka  <jh@suse.cz>
19740
19741         * lto-streamer.c (lto_streamer_cache_insert_1,
19742         lto_streamer_cache_lookup, lto_streamer_cache_create,
19743         lto_streamer_cache_delete): Use pointer map instead of hashtable.
19744         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
19745
19746 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
19747
19748         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
19749         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
19750         config/m68k/t-opts: New files.
19751         * config/m68k/m68k-tables.opt: New file (generated).
19752         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
19753         extra_options and m68k/t-opts to tmake_file.
19754         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
19755         (all_isas): Initialize using m68k-isas.def.
19756         (all_microarchs): Initialize using m68k-microarchs.def.
19757         (m68k_find_selection): Remove.
19758         (m68k_handle_option): Don't assert that global structures are in
19759         use.  Use error_at.  Access variables via opts pointer.  Don't
19760         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
19761         directly for -m68020-40 and -m68020-60.
19762         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
19763         m68k_tune_entry here.
19764         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
19765         to m68k-opts.h.
19766         (m68k_library_id_string): Remove declaration.
19767         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
19768         (m68k_library_id_string): New Variable.
19769         (march=, mcpu=, mtune=): Use Enum and Var.
19770
19771 2011-05-02  Richard Guenther  <rguenther@suse.de>
19772
19773         * varasm.c (output_constructor_regular_field): Compute zero-based
19774         index with double-ints.  Make sure to ICE instead of producing
19775         wrong code.
19776         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
19777         in asserts.  Properly use a signed type.
19778
19779 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19780
19781         * config/i386/sse.md (V): New mode iterator.
19782         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
19783         TARGET_SSE2.
19784         (V_256): Rename from AVX256MODE.
19785         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
19786         condition to all users.
19787         (VF1): Ditto.
19788         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
19789         condition to all users.
19790         (VF_128): Make V4SF mode unconditional.
19791         (VF_256): Rename from AVX256MODEF2P.
19792         (VI4F_128): Rename from SSEMODE4S.
19793         (VI8F_128): Rename from SSEMODE2D.
19794         (VI4F_256): Rename from AVX256MODE8P.
19795         (VI8F_256): Rename from AVX256MODE4P.
19796         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
19797         (ssescalarmodesuffix): Remove SF and DF modes.
19798         (SSEMODE124): Remove.
19799         (SSEMODE1248): Ditto.
19800         (SSEMODEF2P): Ditto.
19801         (AVXMODEF2P): Ditto.
19802         (AVXMODEFDP): Ditto.
19803         (AVXMODEFSP): Ditto.
19804         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
19805         unconditional.
19806         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
19807         unconditional.
19808         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
19809         xop_pcmov_<mode>256.  Use V mode iterator.
19810
19811         Adjust RTX patterns globally for renamed mode attributes.
19812
19813 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19814
19815         * haifa-sched.c (sched_emit_insn): Emit insn before first
19816         non-scheduled insn.  Inform back-end about new insn.  Add
19817         new insn to scheduled_insns list.
19818
19819 2011-05-02  Richard Guenther  <rguenther@suse.de>
19820
19821         PR tree-optimization/48822
19822         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
19823         (process_scc): Indicate which iteration we start.
19824
19825 2011-05-02  Jan Hubicka  <jh@suse.cz>
19826
19827         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
19828         (lto_section_overrun): New.
19829         * lto-section-out.c (append_block): Rename to ...
19830         (lto_append_block): ... this one; export.
19831         (lto_output_1_stream): Move lto lto-streamer.h
19832         (lto_output_data_stream): Update.
19833         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
19834         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
19835         functions.
19836
19837 2011-05-02  Richard Guenther  <rguenther@suse.de>
19838
19839         * tree.c (tree_code_counts): New global array.
19840         (record_node_allocation_statistics): Count individual tree codes.
19841         (dump_tree_statistics): Dump individual code stats.
19842
19843 2011-05-01  Jan Hubicka  <jh@suse.cz>
19844
19845         * ipa-inline.c (caller_growth_limits): Fix thinko when
19846         looking for largest stack frame.
19847         * ipa-inline.h (dump_inline_summary): Declare.
19848         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
19849         on stack usage.
19850         (dump_inline_summary): Export.
19851         (debug_inline_summary): Declare as DEBUG_FUNCTION.
19852
19853 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
19854
19855         * reginfo.c (memory_move_cost): Change rclass argument type form
19856         'enum reg_class' to reg_class_t.
19857         * reload.h (memory_move_cost): Update prototype.
19858         * postreload.c reload_cse_simplify_set): Change type dclass var to
19859         reg_class_t.
19860         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
19861         Update prototype.
19862         (ira_allocate_and_set_costs): Change aclass argument type form
19863         'enum reg_class' to reg_class_t.
19864         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
19865         Change aclass argument type to reg_class_t.
19866         (update_conflict_hard_reg_costs): Change type aclass and pref vars
19867         to reg_class_t.
19868         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
19869         memory_move_cost call.
19870
19871         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
19872         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
19873         Change type tmp var to reg_class_t.
19874
19875 2011-04-30  Jan Hubicka  <jh@suse.cz>
19876
19877         * ipa-inline.c (can_inline_edge_p): Disregard limits when
19878         inlining into function with flatten attribute.
19879         (want_inline_small_function_p): Be more realistic about inlining
19880         cold calls where callee size grows.
19881
19882 2011-04-30  Jan Hubicka  <jh@suse.cz>
19883
19884         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
19885         flags.
19886
19887 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
19888
19889         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
19890         PRINT_OPERAND_PUNCT_VALID_P): Remove.
19891         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
19892         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
19893         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19894         (print_operand): Rename to...
19895         (sparc_print_operand): ...this. Make static. Adjust
19896         sparc_print_operand function call.
19897         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
19898         functions.
19899
19900 2011-04-30  Jan Hubicka  <jh@suse.cz>
19901
19902         PR middle-end/48752
19903         * ipa-inline.c (early_inliner): Disable when doing late
19904         addition of function.
19905
19906 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
19907
19908         * dwarf2out.c (get_address_mode): New inline.
19909         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
19910         if not dwarf_strict emit
19911         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
19912         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
19913         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
19914         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
19915         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
19916         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
19917         mem_loc_descriptor callers.
19918         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
19919         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
19920         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
19921         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
19922         (base_types): New variable.
19923         (get_base_type_offset, calc_base_type_die_sizes,
19924         base_type_for_mode, mark_base_types, base_type_cmp,
19925         move_marked_base_types): New functions.
19926         (calc_die_sizes): Assert that die_offset is 0 or equal to
19927         next_die_offset.
19928         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
19929         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
19930         callers.  If not dwarf_strict, call mem_loc_descriptor even for
19931         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
19932         (gen_subprogram_die): Don't give up on call site parameters
19933         with non-integral or large integral modes.  Adjust
19934         mem_loc_descriptor callers.
19935         (prune_unused_types): Call prune_unused_types_mark on base_types
19936         vector entries.
19937         (resolve_addr): Call mark_base_types.
19938         (dwarf2out_finish): Call move_marked_base_types.
19939
19940         PR tree-optimization/48809
19941         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
19942         type.
19943         (gen_inbound_check): Don't compute index_expr - range_min in utype
19944         again, instead reuse SSA_NAME initialized in build_arrays.
19945         Remove two useless gsi_for_stmt calls.
19946
19947 2011-04-29  Jeff Law  <law@redhat.com>
19948
19949         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
19950
19951 2011-04-29  Martin Jambor  <mjambor@suse.cz>
19952
19953         * cgraph.h (cgraph_postorder): Remove declaration.
19954         * ipa-utils.h (ipa_free_postorder_info): Declare.
19955         (ipa_reverse_postorder): Likewise.
19956         * cgraphunit.c: Include ipa-utils.h.
19957         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
19958         * ipa-inline.c: Include ipa-utils.h.
19959         (ipa_inline): Update call to ipa_reverse_postorder.
19960         * ipa-pure-const.c (propagate_pure_const): Update call to
19961         ipa_reduced_postorder and ipa_print_order.  Call
19962         ipa_free_postorder_info to clean up.
19963         (propagate_nothrow): Likewise.
19964         * ipa-reference.c (propagate): Removed a useless call to
19965         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
19966         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
19967         * ipa.c: Include ipa-utils.h.
19968         (ipa_profile): Update call to ipa_reverse_postorder.
19969         (cgraph_postorder): Moved to...
19970         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
19971         (ipa_utils_print_order): Renamed to ipa_print_order.
19972         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
19973         comments.
19974         (ipa_free_postorder_info): New function.
19975         * passes.c: Include ipa-utils.h.
19976         (do_per_function_toporder): Update call to ipa_reverse_postorder.
19977         (ipa_write_summaries): Likewise.
19978         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
19979         (cgraphunit.o): Likewise.
19980         (ipa.o): Likewise.
19981         (ipa-inline.o): Likewise.
19982
19983 2011-04-29  Jan Hubicka  <jh@suse.cz>
19984
19985         * ipa-inline.h (clause_t): Turn into unsigned int.
19986         * ipa-inline-analysis.c (add_clause): Do more simplification.
19987         (and_predicates): Shortcut more cases.
19988         (predicates_equal_p): Move forward; check that clauses are properly
19989         ordered.
19990         (or_predicates): Shortcut more cases.
19991         (edge_execution_predicate): Rewrite as...
19992         (set_cond_stmt_execution_predicate): ... this function; handle
19993         __builtin_constant_p.
19994         (set_switch_stmt_execution_predicate): New .
19995         (compute_bb_predicates): New.
19996         (will_be_nonconstant_predicate): Update TODO.
19997         (estimate_function_body_sizes): Use compute_bb_predicates
19998         and free them later, always try to estimate if stmt is constant.
19999         (estimate_time_after_inlining, estimate_size_after_inlining):
20000         Gracefully handle optimized out edges.
20001         (read_predicate): Fix off by one error.
20002
20003 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
20004
20005         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
20006
20007 2011-04-27  Xinliang David Li  <davidxl@google.com>
20008
20009         * tree-profile.c (init_ic_make_global_vars): Set
20010         tls attribute on ic vars.
20011         * coverage.c (coverage_end_function): Initialize
20012         function_list with zero.
20013
20014 2011-04-29  Richard Guenther  <rguenther@suse.de>
20015
20016         * builtins.c (fold_builtin_classify_type): Use integer_type_node
20017         for the type of the result.
20018         (fold_builtin_isascii): Likewise.
20019         (fold_builtin_toascii): Use integer_type_node where appropriate.
20020         (fold_builtin_logb): Likewise.
20021         (fold_builtin_frexp): Likewise.
20022         (fold_builtin_strstr): Likewise.
20023         (fold_builtin_strpbrk): Likewise.
20024         (fold_builtin_fputs): Likewise.
20025         (fold_builtin_sprintf): Likewise.
20026         (fold_builtin_snprintf): Likewise.
20027         (fold_builtin_printf): Likewise.
20028         (do_mpfr_remquo): Use a proper type for the assigned constant.
20029         (do_mpfr_lgamma_r): Likewise.
20030         * dwarf2out.c (resolve_one_addr): Use size_int.
20031         * except.c (init_eh): Likewise.
20032         (assign_filter_values): Use integer_type_node for filter values.
20033         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
20034         indices.
20035         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
20036         for EH region numbers.
20037         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
20038         for the shift amount.
20039
20040 2011-04-29  Richard Guenther  <rguenther@suse.de>
20041
20042         * expr.h (expand_shift): Rename to ...
20043         (expand_variable_shift): ... this.
20044         (expand_shift): Take a constant shift amount.
20045         * expmed.c (expand_shift): Rename to ...
20046         (expand_variable_shift): ... this.
20047         (expand_shift): New wrapper around expand_variable_shift.
20048         * expr.c (convert_move, emit_group_load_1, emit_group_store,
20049         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
20050         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
20051         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
20052         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
20053         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
20054         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
20055         emit_store_flag_1, emit_store_flag): Likewise.
20056         * builtins.c (expand_builtin_signbit): Likewise.
20057         * calls.c (load_register_parameters): Likewise.
20058         * function.c (assign_parm_setup_block): Likewise.
20059         * lower-subreg.c (resolve_shift_zext): Likewise.
20060         * optabs.c (widen_bswap, expand_abs_nojump,
20061         expand_one_cmpl_abs_nojump, expand_float): Likewise.
20062         * spu/spu.c (spu_expand_extv): Likewise.
20063         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
20064
20065 2011-04-29  Richard Guenther  <rguenther@suse.de>
20066
20067         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
20068         for the remapped region number.
20069         * predict.c (build_predict_expr): Use integer_type_node for the
20070         predict kind.
20071         * fold-const.c (fold_binary_loc): Use integer_type_node for
20072         the shift amount.  Use a proper type for the PLUS_EXPR operand.
20073
20074 2011-04-29  Michael Matz  <matz@suse.de>
20075
20076         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
20077         other trees that just builtins.
20078         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
20079
20080 2011-04-29  Richard Guenther  <rguenther@suse.de>
20081
20082         * tree-nested.c (get_trampoline_type): Use size_int.
20083         (get_nl_goto_field): Likewise.
20084         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
20085         for all indexes.
20086         (lower_eh_constructs_2): Likewise.
20087         (lower_resx): Likewise.
20088         (lower_eh_dispatch): Likewise.
20089         * tree-mudflap.c (mf_build_string): Use size_int.
20090         (mudflap_register_call): Use integer_type_node for the flag.
20091         (mudflap_enqueue_constant): Use size_int.
20092         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
20093         instead of rebuilding it.
20094
20095 2011-04-29  Richard Guenther  <rguenther@suse.de>
20096
20097         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
20098         Handle OBJ_TYPE_REF.
20099         (find_func_aliases_for_call): Use it more consistently.
20100
20101 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
20102
20103         * haifa-sched.c (last_nondebug_scheduled_insn): New.
20104         (rank_for_schedule): Use it.
20105         (schedule_block): Set it.
20106
20107 2011-04-28  David Li  <davidxl@google.com>
20108
20109         * tree.c (crc32_string): Use crc32_byte.
20110         (crc32_byte): New function.
20111         * tree.h (crc32_byte): New function.
20112         * gcov.c (read_graph_file): Handle new cfg_cksum.
20113         (read_count_file): Ditto.
20114         * profile.c (instrument_values): Ditto.
20115         (get_exec_counts): Ditto.
20116         (read_profile_edge_counts): Ditto.
20117         (compute_branch_probabilities): Ditto.
20118         (compute_value_histograms): Ditto.
20119         (branch_prob): Ditto.
20120         (end_branch_prob): Ditto.
20121         * coverage.c (read_counts_file): Ditto.
20122         (get_coverage_counts): Ditto.
20123         (tree_coverage_counter_addr): Ditto.
20124         (coverage_checksum_string): Ditto.
20125         (coverage_begin_output): Ditto.
20126         (coverage_end_function): Ditto.
20127         (build_fn_info_type): Ditto.
20128         (build_fn_info_value): Ditto.
20129         * libgcov.c (gcov_exit): Ditto.
20130         * gcov-dump.c (tag_function): Ditto.
20131         (compute_checksum): Remove.
20132
20133 2011-04-29  Alan Modra  <amodra@gmail.com>
20134
20135         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20136         unspec plus offset.  Tidy macho code.
20137
20138 2011-04-29  Martin Jambor  <mjambor@suse.cz>
20139
20140         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
20141         node instead of a decl.  Update all callers.
20142         * cgraph.h: Update declaration.
20143
20144 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
20145
20146         PR tree-optimization/48765
20147         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
20148         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
20149         to indicate if loop aware SLP is being used.  Scan the statements
20150         and update the vectorization factor according to the type of
20151         vectorization before statement analysis.
20152         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
20153         pass it to vect_analyze_loop_operations.
20154         (vectorizable_reduction): Set number of copies to 1 in case of pure
20155         SLP statement.
20156         * tree-vect-stmts.c (vectorizable_conversion,
20157         vectorizable_assignment, vectorizable_shift,
20158         vectorizable_operation, vectorizable_type_demotion,
20159         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
20160         Likewise.
20161         (vectorizable_condition): Move the check that it is not SLP
20162         vectorization before the number of copies check.
20163         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
20164         to vectorize the loop using SLP.
20165
20166 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
20167
20168         PR middle-end/48597
20169         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
20170         inline asm.
20171
20172 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
20173
20174         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
20175         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
20176         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
20177         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
20178         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
20179         linux*.h headers.
20180         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
20181         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20182         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20183         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20184         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
20185         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
20186         REG_NAME.
20187         * config/i386/linux.h (REG_NAME): Don't define.
20188         * config/i386/linux64.h (REG_NAME): Don't define.
20189         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
20190         Undefine before defining.
20191
20192 2011-04-28  Jan Hubicka  <jh@suse.cz>
20193
20194         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
20195         nonconstant_names array.
20196         (estimate_function_body_sizes): Build nonconstant_names array; handle
20197         BUILT_IN_CONSTANT_P.
20198
20199 2011-04-28  Richard Guenther  <rguenther@suse.de>
20200
20201         PR bootstrap/48804
20202         Revert
20203         2011-04-28  Richard Guenther  <rguenther@suse.de>
20204
20205         * tree-ssa-structalias.c (solve_constraints): Build succ graph
20206         as late as possible.
20207
20208 2011-04-28  Richard Guenther  <rguenther@suse.de>
20209
20210         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
20211         (debug_constraint): Do it here.
20212         (dump_constraints): And here.
20213         (rewrite_constraints): And here.
20214         (dump_constraint_edge): Remove.
20215         (dump_constraint_graph): Rewrite to produce DOT output.
20216         (solve_constraints): Build succ graph as late as possible.
20217         Dump constraint graphs before and after solving.
20218
20219 2011-04-28  Richard Guenther  <rguenther@suse.de>
20220
20221         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20222         New function split out from ...
20223         (find_func_aliases): ... here.  Call it.
20224         (find_func_aliases_for_call): Likewise.
20225
20226 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20227
20228         * internal-fn.h (internal_fn_name_array): Declare.
20229         (internal_fn_flags_array): Likewise.
20230
20231 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
20232
20233         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
20234         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
20235         Move from sse.md.
20236         (ssemodefsuffix): Remove.
20237         (ssevecmodesuffix): New mode attribute.
20238         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
20239         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
20240         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
20241         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
20242         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
20243         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
20244         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
20245         ssemodesuffix mode attribute.
20246         (float splitters): Use ssevecmodesuffix mode attribute.
20247         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
20248         (sseinsmode): Rename from avxvecmode.
20249         (avxsizesuffix): Rename from avxmodesuffix.
20250         (sseintvecmode): Rename from avxpermvecmode.
20251         (ssedoublevecmode): Rename from ssedoublesizemode.
20252         (ssehalfvecmode): Rename from avxhalfvecmode.
20253         (ssescalarmode): Rename from avxscalarmode.
20254         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
20255         templates for ssemodesuffix mode attribute.
20256         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
20257         mode attribute.
20258
20259         Adjust RTX patterns globally for renamed mode attributes.
20260
20261 2011-04-27  Jan Hubcika  <jh@suse.cz>
20262
20263         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
20264         * ipa-inline-analysis.c: Include alloc-pool.h.
20265         (edge_predicate_pool): New.
20266         (trye_predicate_p): New function
20267         (false_predicate_p): New function.
20268         (add_clause): Sanity check that false clauses are "optimized";
20269         never add clauses to predicate that is already known to be false.
20270         (and_predicate): Use flase_predicate_p.
20271         (evaulate_predicate): Rename to ...
20272         (evaluate_predicate): ... this one; update all callers; assert
20273         that false is not listed among possible truths.
20274         (dump_predicate): Use true_predicate_p.
20275         (account_size_time): Use false_predicate_p.
20276         (evaulate_conditions_for_edge): Rename to ...
20277         (evaluate_conditions_for_edge) ... this one.
20278         (edge_set_predicate): New function.
20279         (inline_edge_duplication_hook): Duplicate edge predicates.
20280         (inline_edge_removal_hook): Free edge predicates.
20281         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
20282         (dump_inline_summary): Update.
20283         (estimate_function_body_sizes): Set edge predicates.
20284         (estimate_calls_size_and_time): Handle predicates.
20285         (estimate_callee_size_and_time): Update.
20286         (remap_predicate): Add toplev_predicate; update comment.
20287         (remap_edge_predicates): New function.
20288         (inline_merge_summary): Compute toplev predicate; update.
20289         (read_predicate): New function.
20290         (read_inline_edge_summary): Use it.
20291         (inline_read_section): Likewise.
20292         (write_predicate): New function.
20293         (write_inline_edge_summary): Use it.
20294         (inline_write_summary): Likewise.
20295         (inline_free_summary): Free alloc pool and edge summary vec.
20296
20297 2011-04-27  Richard Guenther  <rguenther@suse.de>
20298
20299         * tree-ssa-structalias.c (changed_count): Remove.
20300         (changed): Use a bitmap.
20301         (unify_nodes): Adjust.
20302         (do_sd_constraint): Likewise.
20303         (do_ds_constraint): Likewise.
20304         (do_complex_constraint): Likewise.
20305         (solve_graph): Likewise.
20306
20307 2011-04-27  Jan Hubicka  <jh@suse.cz>
20308
20309         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
20310
20311 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
20312
20313         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
20314         (avx_vperm2f128_*_operand): Ditto.
20315         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
20316         Use avx_vpermilp_parallel in insn condition.
20317         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
20318         Use avx_vperm2f128_parallel in insn condition.
20319
20320 2011-04-27  Richard Guenther  <rguenther@suse.de>
20321
20322         * Makefile.in (tree-ssa-structalias.o): Remove
20323         gt-tree-ssa-structalias.h dependency.
20324         (GTFILES): Remove tree-ssa-structalias.c.
20325         * tree.c (allocate_decl_uid): New function.
20326         (make_node_stat): Use it.
20327         (copy_node_stat): Likewise.
20328         * tree.h (allocate_decl_uid): Declare.
20329         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
20330         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
20331         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
20332         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
20333         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
20334         (struct heapvar_map): Likewise.
20335         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
20336         heapvar_insert): Likewise.
20337         (make_heapvar_for): Rename to ...
20338         (make_heapvar): ... this.  Simplify.
20339         (fake_var_decl_obstack): New global var.
20340         (build_fake_var_decl): New function.
20341         (make_constraint_from_heapvar): Adjust.
20342         (handle_lhs_call): Likewise.
20343         (create_function_info_for): Likewise.
20344         (intra_create_variable_infos): Likewise.
20345         (init_alias_vars): Allocate fake_var_decl_obstack.
20346         (init_alias_heapvars, delete_alias_heapvars): Remove.
20347         (compute_points_to_sets): Do not call init_alias_heapvars.
20348         (ipa_pta_execute): Likewise.
20349         (delete_points_to_sets): Free fake_var_decl_obstack.
20350
20351 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20352
20353         * config/spu/divmovti4.c (union qword_UTItype): New data type.
20354         (si_from_UTItype, si_to_UTItype): New functions.
20355         (__udivmodti4): Use them to implement type-punning.
20356         * config/spu/multi3.c (union qword_TItype): New data type.
20357         (si_from_TItype, si_to_TItype): New functions.
20358         (__multi3): Use them to implement type-punning.
20359
20360 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20361
20362         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
20363
20364 2011-04-27  Jan Hubicka  <jh@suse.cz>
20365
20366         * ipa-prop.c (function_insertion_hook_holder): New holder.
20367         (ipa_add_new_function): New function.
20368         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
20369         Register/deregister holder.
20370
20371 2011-04-27  Richard Guenther  <rguenther@suse.de>
20372
20373         PR tree-optimization/48772
20374         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
20375
20376 2011-04-27  Richard Guenther  <rguenther@suse.de>
20377
20378         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
20379         TARGET_MEM_REF handling.
20380
20381 2011-04-27  Nick Clifton  <nickc@redhat.com>
20382
20383         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
20384         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
20385         (REG_CLASS_NAMES): Likewise.
20386         (REG_CLASS_CONTENTS): Likewise.
20387         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
20388         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
20389         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
20390         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
20391         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
20392         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
20393         duplicate register classes.
20394         (frv_class_likely_spilled_p): Likewise.
20395         (frv_register_move_cost): Likewise.
20396
20397         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
20398         end of the regno_reg_class array.
20399
20400 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
20401
20402         PR c/48742
20403         * c-typeck.c (build_binary_op): Don't wrap arguments if
20404         int_operands is true.
20405
20406 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
20407
20408         PR target/48767
20409         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
20410         targetm.calls.must_pass_in_stack for void type.
20411
20412 2011-04-26  Jan Hubicka  <jh@suse.cz>
20413
20414         * cgraphbuild.c (build_cgraph_edges): Update call
20415         of cgraph_create_edge and cgraph_create_indirect_edge.
20416         * cgraph.c (cgraph_create_edge_including_clones,
20417         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
20418         cgraph_update_edges_for_call_stmt_node): Do not take nest
20419         argument; do not initialize call_stmt_size/time.
20420         (dump_cgraph_node): Do not dump nest.
20421         (cgraph_clone_edge): Do not take loop_nest argument;
20422         do not propagate it; do not clone call_stmt_size/time.
20423         (cgraph_clone_node): Likewise.
20424         (cgraph_create_virtual_clone): Update.
20425         * cgraph.h (struct cgraph_edge): Remove
20426         call_stmt_size/call_stmt_time/loop_nest.
20427         (cgraph_create_edge, cgraph_create_indirect_edge,
20428         cgraph_create_edge_including_clones, cgraph_clone_node): Update
20429         prototype.
20430         * tree-emutls.c (gen_emutls_addr): Update.
20431         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
20432         loop_nest; handle indirect calls, too.
20433         (clone_inlined_nodes): Do not care about updating inline summaries.
20434         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
20435         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
20436         stream call_stmt_size/call_stmt_time/loop_nest.
20437         * ipa-inline.c (edge_badness): Update.
20438         (ipa_inline): dump summaries after inlining.
20439         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
20440         New.
20441         (inline_edge_summary): New function.
20442         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
20443         (inline_edge_removal_hook): Handle edge summaries.
20444         (inline_edge_duplication_hook): New hook.
20445         (inline_summary_alloc): Alloc hooks.
20446         (initialize_growth_caches): Do not register removal hooks.
20447         (free_growth_caches); Do not free removal hook.
20448         (dump_inline_edge_summary): New function.
20449         (dump_inline_summary): Use it.
20450         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
20451         (inline_update_callee_summaries): New function.
20452         (inline_merge_summary): Use it.
20453         (do_estimate_edge_time, do_estimate_edge_growth): Update.
20454         (read_inline_edge_summary): New function.
20455         (inline_read_section): Use it.
20456         (write_inline_edge_summary): New function.
20457         (inline_write_summary): Use it.
20458         (inline_free_summary): Free edge new holders.
20459         * tree-inline.c (copy_bb): Update.
20460
20461 2011-04-26  Jason Merrill  <jason@redhat.com>
20462
20463         * tree-eh.c (lower_try_finally_switch): Create the label along with
20464         the CASE_LABEL_EXPR.
20465
20466 2011-04-26  David S. Miller  <davem@davemloft.net>
20467             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20468
20469         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
20470         * configure: Regenerate.
20471
20472 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
20473
20474         PR target/48258
20475         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
20476         reduction.
20477         (VEC_reduc): New code iterator and splitters for vector reduction.
20478         (VEC_reduc_name): Ditto.
20479         (VEC_reduc_rtx): Ditto.
20480         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
20481         (reduc_<VEC_reduc_name>_v4sf): Ditto.
20482
20483         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
20484         support for extracting SF on VSX.
20485
20486         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
20487         generating xscvspdp.
20488         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
20489         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
20490         double add, minimum, maximum vector reduction.
20491         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
20492         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
20493         optimize double vector reduction.
20494         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
20495
20496 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
20497
20498         * config/fr30/fr30.h (inhibit_libc): Don't define.
20499         * config/m32r/m32r-protos.h: Correct comment.
20500         * config/v850/v850.h (GHS_default_section_names,
20501         GHS_current_section_names): Use tree, not union tree_node *.
20502
20503 2011-04-26  Xinliang David Li  <davidxl@google.com>
20504
20505         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
20506         * c-family/c-opts.c (c_common_handle_option): Set
20507         warn_maybe_uninitialized.
20508         * opts.c (common_handle_option): Ditto.
20509         * common.opt:  New option.
20510         * tree-ssa.c (warn_uninit): Add one more parameter.
20511         (warn_uninitialized_var): Pass warning code.
20512         * tree-flow.h: Interface change.
20513
20514 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20515
20516         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
20517         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
20518         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
20519
20520 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20521
20522         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
20523         * config/mips/mips.opt (mmips-tfile): Remove.
20524
20525         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
20526         mips-tdump reference to ...
20527         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
20528         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
20529         reference by Tru64 UNIX.
20530
20531 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
20532
20533         PR debug/48768
20534         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
20535         is error_mark_node, set value to NULL.
20536
20537         PR tree-optimization/48734
20538         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
20539         if return value from maybe_fold_*_comparsions isn't something
20540         the code is prepared to handle.
20541
20542 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
20543
20544         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
20545         mode check.
20546         (ext_QIreg_nomode_operands): Remove.
20547         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
20548         (*andsi_1): Ditto.
20549         (*andhi_1): Ditto.
20550
20551 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
20552
20553         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
20554
20555 2011-04-26  Richard Guenther  <rguenther@suse.de>
20556
20557         * c-typeck.c (build_unary_op): Do not expand array-refs via
20558         pointer arithmetic.  Only adjust qualifiers for function types.
20559
20560 2011-04-26  Richard Guenther  <rguenther@suse.de>
20561
20562         PR middle-end/48694
20563         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
20564         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
20565         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
20566         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
20567
20568 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
20569
20570         * doc/extend.texi: Document __underlying_type.
20571
20572 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
20573
20574         * config/rs6000/titan.md (automata_option "progress"): Remove.
20575
20576 2011-04-25  Jeff Law  <law@redhat.com>
20577
20578         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
20579
20580 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
20581
20582         * system.h (ENUM_BITFIELD): Remove.
20583
20584 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
20585             Eric Botcazou  <ebotcazou@adacore.com>
20586
20587         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
20588         for STORE_FLAG_VALUE==-1 case.
20589
20590 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
20591
20592         PR target/43804
20593         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
20594         LEGITIMATE_PIC_OPERAND_P.
20595
20596 2011-04-24  Jan Hubicka  <jh@suse.cz>
20597
20598         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
20599         WPA hack.
20600         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
20601         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
20602         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
20603         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
20604         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
20605         Sanity check predicate length.
20606         (remap_predicate): Likewise; sanity check jump functions.
20607         (inline_read_section, inline_write_summary): Sanity check
20608         predicate length.
20609
20610 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
20611
20612         PR other/48748
20613         * doc/extend.texi (Type Traits): Document __is_standard_layout,
20614         __is_literal_type, and __is_trivial; update throughout about
20615         possibly cv-qualified void types.
20616
20617 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
20618
20619         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
20620         testsuite and make it version agnostic.
20621
20622 2011-04-22  Jan Hubicka  <jh@suse.cz>
20623
20624         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
20625
20626 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
20627
20628         PR c/48685
20629         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
20630         to VOID_TYPE even around MODIFY_EXPR.
20631
20632 2011-04-22  Mike Stump  <mikestump@comcast.net>
20633
20634         * gensupport.c (read_md_rtx): Fix typo in comment.
20635         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
20636         comment.
20637
20638 2011-04-22  Jan Hubicka  <jh@suse.cz>
20639
20640         * gengtype.c (open_base_files): Add ipa-inline.h include.
20641         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
20642         ipa-prop.c; update all uses.
20643         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
20644         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
20645         merge summary of inlined function into former caller.
20646         * ipa-inline.c (max_benefit): Remove.
20647         (edge_badness): Compensate for removal of benefits.
20648         (update_caller_keys): Use
20649         reset_node_growth_cache/reset_edge_growth_cache.
20650         (update_callee_keys): Likewise.
20651         (update_all_callee_keys): Likewise.
20652         (inline_small_functions): Do not collect max_benefit; do not reset
20653         estimated_growth; call free_growth_caches and initialize_growth_caches.
20654         * ipa-inline.h (struct condition, type clause_t, struct predicate,
20655         struct size_time_entry): New structures.
20656         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
20657         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
20658         and estimated_growth.
20659         (edge_growth_cache_entry): New structure.
20660         (node_growth_cache, edge_growth_cache): New global vars.
20661         (estimate_growth): Turn into inline.
20662         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
20663         initialize_growth_caches, free_growth_caches): Declare.
20664         (estimate_edge_growth): Rewrite.
20665         (estimate_edge_time): Implement as inline cache lookup.
20666         (reset_node_growth_cache, reset_edge_growth_cache): New inline
20667         functions.
20668         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
20669         (NUM_CONDITIONS): New constant.
20670         (predicate_conditions): New enum.
20671         (IS_NOT_CONSTANT): New constant.
20672         (edge_removal_hook_holder): New var.
20673         (node_growth_cache, edge_growth_cache): New global vars.
20674         (true_predicate, single_cond_predicate, false_predicate,
20675         not_inlined_predicate, add_condition, add_clause, and_predicates,
20676         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
20677         dump_clause, dump_predicate, account_size_time,
20678         evaulate_conditions_for_edge): New functions.
20679         (inline_summary_alloc): Move to heap.
20680         (inline_node_removal_hook): Clear condition and entry vectors.
20681         (inline_edge_removal_hook): New function.
20682         (initialize_growth_caches, free_growth_caches): New function.
20683         (dump_inline_summary): Update.
20684         (edge_execution_predicate): New function.
20685         (will_be_nonconstant_predicate): New function.
20686         (estimate_function_body_sizes): Compute BB and constantness predicates.
20687         (compute_inline_parameters): Do not clear estimated_growth.
20688         (estimate_edge_size_and_time): New function.
20689         (estimate_calls_size_and_time): New function.
20690         (estimate_callee_size_and_time): New function.
20691         (remap_predicate): New function.
20692         (inline_merge_summary): New function.
20693         (do_estimate_edge_time): New function based on...
20694         (estimate_edge_time): ... this one.
20695         (do_estimate_edge_growth): New function.
20696         (do_estimate_growth): New function based on....
20697         (estimate_growth): ... this one.
20698         (inline_analyze_function): Analyze after deciding on jump functions.
20699         (inline_read_section): New function.
20700         (inline_read_summary): Use it.
20701         (inline_write_summary): Write all the new data.
20702         * ipa-prop.c (ipa_get_param_decl_index): Export.
20703         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
20704         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
20705         Declare.
20706         (ipa_get_lattice): Move here from ipa-cp.c
20707         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
20708         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
20709         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
20710         cgraph_edge_inlinable_p): Remove.
20711         * cgraphunit.c: Include ipainline.h
20712         (cgraph_process_new_functions): Update call of
20713         compute_inline_parameters.
20714
20715 2011-04-22  Richard Guenther  <rguenther@suse.de>
20716
20717         * tree.c (build_int_cst): Properly create canonicalized integer
20718         constants.
20719         (build_int_cst_type): Remove scary comments.
20720
20721 2011-04-22  Xinliang David Li  <davidxl@google.com>
20722
20723         * toplev.c (process_options): Enable -Werror=coverage-mismatch
20724         by default when -Wno-error is not specified.
20725         * opts-global.c (decode_options): Remove call to
20726         control_warning_options.
20727
20728 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
20729
20730         PR tree-optimization/48717
20731         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
20732         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
20733
20734 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
20735
20736         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
20737         definition where used.
20738
20739 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
20740
20741         PR c/48716
20742         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
20743         TREE_STATIC variables declared inside of some OpenMP construct.
20744
20745 2011-04-22  Martin Jambor  <mjambor@suse.cz>
20746
20747         PR middle-end/48585
20748         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
20749
20750 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
20751
20752         PR c/36750
20753         * c-typeck.c (pop_init_level): Do not warn about initializing
20754         with ` = {0}'.
20755
20756 2011-04-22  Alan Modra  <amodra@gmail.com>
20757
20758         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
20759         when returning call_cookie.
20760         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
20761         pointers, to functions with no more vector args than the current
20762         function, and some non-local calls for ABI_V4.
20763         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
20764         sibcall_nonlocal_aix64): Combine to ..
20765         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
20766         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
20767         (sibcall_value_nonlocal_aix<mode>): ..likewise.
20768         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
20769         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
20770         operand.
20771         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
20772         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
20773         sibcall_value_symbolic_64): Delete.
20774
20775 2011-04-21  Xinliang David Li  <davidxl@google.com>
20776
20777         * cgraph.h: Remove pid.
20778         * cgraph.c: Remove pid.
20779         * value-prof.c (init_node_map): New function.
20780         (del_node_map): New function.
20781         (find_func_by_funcdef_no): New function.
20782         (gimple_ic_transform): Call new function.
20783         * cgraphunit.c (cgraph_finalize_function): Remove pid.
20784         * function.c (get_last_funcdef_no): New function.
20785         * function.h (get_last_funcdef_no): New function.
20786         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
20787         to libgcov function.
20788         (tree-profiling): Call node map init and delete function.
20789
20790 2011-04-21  Ian Lance Taylor  <iant@google.com>
20791
20792         * godump.c (go_format_type): Use exported Go name for anonymous
20793         field name.
20794
20795 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20796
20797         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
20798         Call builtin_function_type_list instead of builtin_function_type.
20799         (UNARY, BINARY, TRINARY, QUAD): Likewise.
20800
20801 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20802
20803         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
20804         build_function_type_list instead of build_function_type.
20805         Delete variable `endlink'.
20806
20807 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20808
20809         * config/s390/s390.c (s390_init_builtins): Call
20810         build_function_type_list instead of build_function_type.
20811
20812 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20813
20814         * config/ia64/ia64.c (ia64_init_builtins): Call
20815         build_function_type_list instead of builtin_function_type.
20816
20817 2011-04-21  Easwaran Raman  <eraman@google.com>
20818
20819         * cfgexpand.c (stack_var): Remove OFFSET...
20820         (add_stack_var): ...and its reference here...
20821         (expand_stack_vars): ...and here.
20822         (stack_var_cmp): Sort by descending order of size.
20823         (partition_stack_vars): Change heuristic.
20824         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
20825         (dump_stack_var_partition): Add newline after each partition.
20826
20827 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
20828             Jeff Law  <law@redhat.com>
20829
20830         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
20831         * gengtype.c (matching_file_name_substitute): Likewise.
20832
20833 2011-04-21  Richard Guenther  <rguenther@suse.de>
20834
20835         PR lto/48703
20836         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
20837
20838 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
20839
20840         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
20841
20842 2011-04-21  Richard Guenther  <rguenther@suse.de>
20843
20844         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
20845         file name.
20846
20847 2011-04-21  Richard Guenther  <rguenther@suse.de>
20848
20849         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
20850         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
20851         Use DECL_P, not SSA_VAR_P.
20852         (ptr_derefs_may_alias_p): Likewise.
20853         (ptr_deref_may_alias_ref_p_1): Likewise.
20854         (decl_refs_may_alias_p): Likewise.
20855         (refs_may_alias_p_1): Likewise.
20856         (ref_maybe_used_by_call_p_1): Likewise.
20857         (call_may_clobber_ref_p_1): Likewise.
20858         (indirect_ref_may_alias_decl_p): Assume indirect refrences
20859         are either MEM_REF or TARGET_MEM_REF.
20860         (indirect_refs_may_alias_p): Likewise.
20861         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
20862         for MEM_EXPR of indirect calls.
20863
20864 2011-04-21  Tristan Gingold  <gingold@adacore.com>
20865
20866         * vmsdbgout.c (write_srccorr): Compute file length from the string.
20867         (dst_file_info_struct): Remove flen field.
20868         (lookup_filename): Remove code that set flen field.
20869
20870 2011-04-21  Tristan Gingold  <gingold@adacore.com>
20871
20872         * config/ia64/ia64.c (ia64_start_function): Add a guard.
20873
20874 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
20875
20876         PR target/48708
20877         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
20878         vec_extract and vec_concat for non-SSE4_1 targets.
20879
20880 2011-04-21  Richard Guenther  <rguenther@suse.de>
20881
20882         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
20883         return statements.
20884
20885 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
20886
20887         * config/i386/cygming.h (union tree_node, TREE): Don't define or
20888         undefine.
20889         (FILE): Don't undefine.
20890
20891 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
20892
20893         * config/alpha/alpha.c (struct machine_function): Use rtx, not
20894         struct rtx_def *.
20895         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
20896         struct rtx_def *.
20897         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
20898         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
20899         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
20900         rtx_def *.
20901         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
20902         definitions where used.
20903         * config/microblaze/microblaze.h (struct microblaze_args): Use
20904         rtx, not struct rtx_def *.
20905         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
20906         rtx_def *.
20907         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
20908         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
20909         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
20910         not struct rtx_def *.
20911         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
20912         struct rtx_def *.
20913         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
20914         rtx_def *.
20915         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
20916
20917 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20918
20919         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
20920         operand_equal_p to compare DR_BASE_ADDRESSes.
20921         (vect_check_interleaving): Likewise.
20922
20923 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20924
20925         PR target/46329
20926         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
20927         for all Neon struct constants.
20928
20929 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20930
20931         * target.def (legitimate_constant_p): New hook.
20932         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
20933         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
20934         * doc/tm.texi: Regenerate.
20935         * hooks.h (hook_bool_mode_rtx_true): Declare.
20936         * hooks.c (hook_bool_mode_rtx_true): Define.
20937         * system.h (LEGITIMATE_CONSTANT_P): Poison.
20938         * calls.c (precompute_register_parameters): Replace uses of
20939         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
20940         (emit_library_call_value_1): Likewise.
20941         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
20942         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
20943         * ira-costs.c (scan_one_insn): Likewise.
20944         * recog.c (general_operand, immediate_operand): Likewise.
20945         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
20946         * reload1.c (init_eliminable_invariants): Likewise.
20947
20948         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
20949         mode argument.
20950         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
20951         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
20952         argument.
20953         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20954         * config/alpha/predicates.md (input_operand): Update call to
20955         alpha_legitimate_constant_p.
20956
20957         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
20958         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
20959         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
20960         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20961         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
20962         (arm_legitimate_constant_p): New functions.
20963         (arm_cannot_force_const_mem): Make static.
20964
20965         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
20966
20967         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
20968         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
20969         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
20970         instead of bfin_legitimate_constant_p.
20971         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
20972         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20973
20974         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
20975
20976         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
20977
20978         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
20979         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
20980         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20981         (frv_legitimate_constant_p): Make static.  Add a mode argument.
20982
20983         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
20984         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
20985         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
20986
20987         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
20988         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
20989         * config/i386/i386.c (legitimate_constant_p): Rename to...
20990         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
20991         argument.
20992         (ix86_cannot_force_const_mem): Update accordingly.
20993         (ix86_legitimate_address_p): Likewise.
20994         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20995         * config/i386/i386.md: Update commentary.
20996
20997         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
20998         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
20999         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21000         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
21001
21002         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
21003
21004         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
21005         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
21006         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21007         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
21008
21009         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
21010         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
21011         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
21012
21013         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
21014         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21015         (m32r_legitimate_constant_p): New function.
21016
21017         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
21018         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
21019         LEGITIMATE_CONSTANT_P.
21020         (LEGITIMATE_CONSTANT_P): Delete.
21021         * config/m68k/m68k.c (m68k_expand_prologue): Call
21022         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
21023         (m68k_legitimate_constant_p): New function.
21024         * config/m68k/m68k.md: Update comments.
21025
21026         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
21027         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21028         (mcore_legitimate_constant_p): New function.
21029
21030         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
21031         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
21032         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
21033         Add a mode argument.
21034         (mep_legitimate_address): Update accordingly.
21035         (TARGET_LEGITIMATE_CONSTANT_P): Define.
21036
21037         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
21038         Delete.
21039         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
21040         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
21041         static.  Check OP's mode for VOIDmode.
21042         (microblaze_legitimate_constant_p): New function.
21043         (TARGET_LEGITIMATE_CONSTANT_P): Define.
21044
21045         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
21046         * config/mips/mips.c (mips_legitimate_constant_p): New function.
21047         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
21048         (TARGET_LEGITIMATE_CONSTANT_P): Define.
21049         * config/mips/predicates.md: Update comments.
21050
21051         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
21052         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
21053         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21054         (mmix_legitimate_constant_p): Make static, return a bool, and take
21055         a mode argument.
21056         (mmix_print_operand_address): Update accordingly.
21057
21058         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
21059         Delete.
21060         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
21061         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
21062         static.  Add a mode argument.
21063         (TARGET_LEGITIMATE_CONSTANT_P): Define.
21064
21065         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
21066
21067         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
21068         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21069         (pa_legitimate_constant_p): New function.
21070
21071         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
21072
21073         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
21074         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21075         (pdp11_legitimate_constant_p): New function.
21076
21077         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
21078         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21079         (rs6000_legitimate_constant_p): New function.
21080
21081         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
21082         (rx_legitimate_constant_p): ...this.
21083         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
21084         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
21085         (rx_legitimate_constant_p): ...this.
21086         (TARGET_LEGITIMATE_CONSTANT_P): Define.
21087         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
21088
21089         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
21090         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
21091         * config/s390/s390.c (legitimate_constant_p): Rename to...
21092         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
21093         and add a mode argument.
21094         (TARGET_LEGITIMATE_CONSTANT_P): Define.
21095
21096         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
21097
21098         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
21099         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21100         (sh_legitimate_constant_p): New function.
21101
21102         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
21103         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
21104         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21105         (legitimate_constant_p): Rename to...
21106         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
21107         argument.
21108         (constant_address_p): Update accordingly.
21109
21110         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
21111         argument and return a bool.
21112         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
21113         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21114         (spu_legitimate_constant_p): Add a mode argument and return a bool.
21115         (spu_rtx_costs): Update accordingly.
21116         * config/spu/predicates.md (vec_imm_operand): Likewise.
21117
21118         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
21119
21120         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
21121         * config/v850/v850.c (v850_legitimate_constant_p): New function.
21122         (TARGET_LEGITIMATE_CONSTANT_P): Define.
21123
21124         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
21125         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
21126         * config/vax/vax.c (legitimate_constant_p): Likewise.
21127
21128         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
21129         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
21130         (xtensa_legitimate_constant_p): New function.
21131
21132 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
21133
21134         * target.def (cannot_force_const_mem): Add a mode argument.
21135         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
21136         * doc/tm.texi: Regenerate.
21137         * hooks.h (hook_bool_mode_rtx_false): Declare.
21138         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
21139         (hook_bool_mode_const_rtx_true): Likewise.
21140         (hook_bool_mode_rtx_false): New function.
21141         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
21142         to be non-VOID.  Update call to cannot_force_const_mem.
21143         (find_reloads): Update accordingly.
21144         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
21145         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
21146         argument.
21147         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
21148         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
21149         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
21150         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
21151         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
21152         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
21153         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
21154         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
21155         (m68k_cannot_force_const_mem): ...this new function.
21156         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
21157         argument.
21158         (mips_const_insns, mips_legitimize_const_move): Update calls.
21159         (mips_secondary_reload_class): Likewise.
21160         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
21161         (pa_cannot_force_const_mem): ...this new function.
21162         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
21163         (rs6000_cannot_force_const_mem): ...this new function.
21164         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
21165         argument.
21166         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
21167         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
21168         to...
21169         (xtensa_cannot_force_const_mem): ...this new function.
21170
21171 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
21172
21173         * config/mips/mips.c (mips16_build_function_stub): Call
21174         build_function_type_list instead of build_function_type.
21175         (mips16_build_call_stub): Likewise.
21176
21177 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
21178
21179         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
21180         instead of build_function_type.
21181
21182 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
21183
21184         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
21185         instead of build_function_type.
21186
21187 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
21188
21189         PR target/48678
21190         * config/i386/i386.md (insv): Change operand 0 constraint to
21191         "register_operand".  Change operand 1 and 2 constraint to
21192         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
21193         * config/i386/sse.md (sse4_1_pinsrb): Export.
21194         (sse2_pinsrw): Ditto.
21195         (sse4_1_pinsrd): Ditto.
21196         (sse4_1_pinsrq): Ditto.
21197         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
21198         * config/i386/i386.c (ix86_expand_pinsr): New.
21199
21200 2011-04-20  Easwaran Raman  <eraman@google.com>
21201
21202         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
21203         containing union type only with -fstrict-aliasing.
21204
21205 2011-04-20  Jim Meyering  <meyering@redhat.com>
21206
21207         Remove useless if-before-free tests.
21208         * calls.c (expand_call, save_area): Likewise.
21209         * cfgcleanup.c (try_forward_edges): Likewise.
21210         * collect2.c (collect_execute): Likewise.
21211         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
21212         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
21213         * coverage.c (coverage_checksum_string): Likewise.
21214         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
21215         * cselib.c (cselib_init): Likewise.
21216         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
21217         (df_set_clean_cfg): Likewise.
21218         * function.c (free_after_compilation): Likewise.
21219         * gcc.c (do_spec_1, main): Likewise.
21220         * gcov.c (create_file_names): Likewise.
21221         * gensupport.c (identify_predicable_attribute): Likewise.
21222         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
21223         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
21224         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
21225         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
21226         * ipa-pure-const.c (local_pure_const): Likewise.
21227         * ipa-reference.c (propagate): Likewise.
21228         * ira-costs.c (free_ira_costs): Likewise.
21229         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
21230         * matrix-reorg.c (mat_free): Likewise.
21231         * prefix.c (get_key_value): Likewise.
21232         * profile.c (compute_value_histograms): Likewise.
21233         * reload1.c (free_reg_equiv): Likewise.
21234         * sched-deps.c (free_deps): Likewise.
21235         * sel-sched-ir.c (fence_clear): Likewise.
21236         * sese.c (set_rename, if_region_set_false_region): Likewise.
21237         * tree-data-ref.c (free_rdg): Likewise.
21238         * tree-eh.c (lower_try_finally): Likewise.
21239         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
21240         * tree-ssa-live.c (delete_var_map): Likewise.
21241         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
21242         * tree-ssa-pre.c (phi_trans_add): Likewise.
21243
21244 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
21245
21246         PR tree-optimization/48611
21247         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
21248         beyond ERT_MUST_NOT_THROW region.
21249
21250 2011-04-20  Catherine Moore  <clm@codesourcery.com>
21251
21252         * config/mips/mips.opt (mfix-24k): New.
21253         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
21254         * config/mips/mips.md (length): Increase by 4 for stores if
21255         fixing 24K errata.
21256         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
21257         all noreorder if fixing 24K errata.
21258         * doc/invoke.texi: Document mfix-24k.
21259
21260 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
21261
21262         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
21263         quad-word modes, reduce to 9-bit index range when above 1016 limit.
21264
21265 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
21266
21267         * config/arm/arm.c (arm_gen_constant): Move movw support ....
21268         (const_ok_for_op): ... to here.
21269
21270 2011-04-20  Kai Tietz  <ktietz@redhat.com>
21271
21272         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
21273         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
21274
21275 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
21276
21277         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
21278
21279 2011-04-20  Richard Guenther  <rguenther@suse.de>
21280
21281         PR tree-optimization/47892
21282         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
21283         are if-convertible.
21284
21285 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
21286
21287         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
21288
21289 2011-04-20  Tristan Gingold  <gingold@adacore.com>
21290
21291         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
21292
21293 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
21294
21295         PR target/18145
21296
21297         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
21298         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
21299         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
21300         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
21301         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
21302
21303         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
21304         New prototype.
21305
21306         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
21307         (avr_asm_named_section, avr_asm_output_aligned_common,
21308         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
21309         New functions to update...
21310         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
21311         (avr_asm_init_sections): Overwrite section callbacks for
21312         data_section, bss_section.
21313         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
21314         from here to...
21315         (avr_file_end): ...here.
21316
21317 2011-04-20  Richard Guenther  <rguenther@suse.de>
21318
21319         PR middle-end/48695
21320         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
21321         objects and types here.  Adjust for their offset before comparing.
21322
21323 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
21324
21325         * tree-vect-stmts.c (vectorizable_store): Only chain one related
21326         statement per copy.
21327
21328 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
21329
21330         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
21331         (GIMPLE_H): Include $(INTERNAL_FN_H).
21332         (OBJS-common): Add internal-fn.o.
21333         (internal-fn.o): New rule.
21334         * internal-fn.def: New file.
21335         * internal-fn.h: Likewise.
21336         * internal-fn.c: Likewise.
21337         * gimple.h: Include internal-fn.h.
21338         (GF_CALL_INTERNAL): New gf_mask.
21339         (gimple_statement_call): Put fntype into a union with a new
21340         internal_fn field.
21341         (gimple_build_call_internal): Declare.
21342         (gimple_build_call_internal_vec): Likewise.
21343         (gimple_call_same_target_p): Likewise.
21344         (gimple_call_internal_p): New function.
21345         (gimple_call_internal_fn): Likewise.
21346         (gimple_call_fntype): Return null for internal calls.
21347         (gimple_call_set_fntype): Assert that the function is not internal.
21348         (gimple_call_set_fn): Likewise.
21349         (gimple_call_set_fndecl): Likewise.
21350         (gimple_call_set_internal_fn): New function.
21351         (gimple_call_addr_fndecl): Handle null functions.
21352         (gimple_call_return_type): Likewise null types.
21353         * gimple.c (gimple_build_call_internal_1): New function.
21354         (gimple_build_call_internal): Likewise.
21355         (gimple_build_call_internal_vec): Likewise.
21356         (gimple_call_same_target_p): Likewise.
21357         (gimple_call_flags): Handle calls to internal functions.
21358         (gimple_call_fnspec): New function.
21359         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
21360         (gimple_has_side_effects): Handle null functions.
21361         (gimple_rhs_has_side_effects): Likewise.
21362         (gimple_call_copy_skip_args): Handle calls to internal functions.
21363         * cfgexpand.c (expand_call_stmt): Likewise.
21364         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
21365         * gimple-fold.c (gimple_fold_call): Handle null functions.
21366         (gimple_fold_stmt_to_constant_1): Don't fold
21367         calls to internal functions.
21368         * gimple-low.c (gimple_check_call_args): Handle calls to internal
21369         functions.
21370         * gimple-pretty-print.c (dump_gimple_call): Likewise.
21371         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
21372         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
21373         (do_warn_unused_result): Likewise.
21374         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
21375         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
21376         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
21377         the target of a call.
21378         (initialize_hash_element): Update accordingly.
21379         (hashable_expr_equal_p): Use gimple_call_same_target_p.
21380         (iterative_hash_hashable_expr): Handle calls to internal functions.
21381         (print_expr_hash_elt): Likewise.
21382         * tree-ssa-pre.c (can_value_number_call): Likewise.
21383         (eliminate): Handle null functions.
21384         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
21385         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
21386         (find_func_aliases): Likewise.
21387         * value-prof.c (gimple_ic_transform): Likewise.
21388         (gimple_indirect_call_to_profile): Likewise.
21389         * lto-streamer-in.c (input_gimple_stmt): Likewise.
21390         * lto-streamer-out.c (output_gimple_stmt): Likewise.
21391
21392 2011-04-19  Jan Hubicka  <jh@suse.cz>
21393
21394         * ipa-inline-transform.c (save_inline_function_body): Add comments.
21395         * ipa-inline.c (inline_small_functions): Compute summaries first,
21396         populate heap later.
21397
21398 2011-04-19  Jan Hubicka  <jh@suse.cz>
21399
21400         * cgraph.h (save_inline_function_body): Remove.
21401         * ipa-inline-transform.c: New file, broke out of...
21402         * ipa-inline.c: ... this one; Update toplevel comment.
21403         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
21404         make global.
21405         (update_noncloned_frequencies): Move to ipa-inline-transform.c
21406         (cgraph_mark_inline_edge): Rename to inline_call; move to
21407         ipa-inline-transform.c.
21408         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
21409         move to ipa-inline-transform.c
21410         (recursive_inlining, inline_small_functions, flatten_function,
21411         ipa_inline, inline_always_inline_functions,
21412         early_inline_small_functions): Update.
21413         (inline_transform): Move to ipa-inline-transform.c.
21414         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
21415         Declare.
21416         * Makefile.in (ipa-inline-transform.o): New file.
21417         * cgraphunit.c (save_inline_function_body): Move to
21418         ipa-inline-transform.c
21419
21420 2011-04-19  DJ Delorie  <dj@redhat.com>
21421
21422         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
21423         registers if we already know there aren't any.
21424         (m32c_emit_epilogue): Don't emit a barrier here.
21425         (m32c_emit_eh_epilogue): Likewise.
21426         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
21427         operands at expand time.
21428         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
21429         int" wchar type.
21430         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
21431         duplicates.  Provide aliases instead.
21432         * config/m32c/prologue.md (eh_return): Emit a barrier here.
21433         (eh_epilogue): Add a "(return)" here as a hint to other parts of
21434         the compiler.
21435
21436 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
21437
21438         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
21439         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
21440         (general_or_i64_p, sparc_register_move_cost): New function.
21441
21442 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21443
21444         * doc/install.texi (Configuration, --enable-threads): Remove mach.
21445         Add lynx, mipssde.  Sort table.
21446
21447 2011-04-19  Xinliang David Li  <davidxl@google.com>
21448
21449         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
21450         not negative.
21451
21452 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
21453
21454         PR target/48678
21455         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
21456         is a SUBREG with non-MODE_INT mode inside of it.
21457
21458 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21459
21460         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
21461         also according to actual contants.
21462         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
21463         (gimple_fold_call): Use it.
21464         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
21465
21466 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21467
21468         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
21469         non-pointer assignments.
21470
21471 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21472
21473         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
21474         account anc_offset and otr_type from the indirect edge info.
21475         * ipa-prop.c (get_ancestor_addr_info): New function.
21476         (compute_complex_ancestor_jump_func): Assignment analysis moved to
21477         get_ancestor_addr_info, call it.
21478         (ipa_note_param_call): Do not initialize information about polymorphic
21479         calls, return the indirect call graph edge.  Remove the last
21480         parameter, adjust all callers.
21481         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
21482         parameters.  Initialize polymorphic information in the indirect edge.
21483
21484 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21485
21486         PR lto/48148
21487         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
21488         the types if they have different enumeration identifiers.
21489
21490 2011-04-19  Jan Hubicka  <jh@suse.cz>
21491
21492         * cgraph.h (cgraph_optimize_for_size_p): Declare.
21493         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
21494         * predict.c (cgraph_optimize_for_size_p): Break out from ...
21495         (optimize_function_for_size_p) ... here.
21496
21497 2011-04-19  Richard Guenther  <rguenther@suse.de>
21498
21499         PR lto/48207
21500         * tree.c (free_lang_data): Do not reset the decl-assembler-name
21501         langhook.
21502
21503 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21504
21505         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
21506         if DECL_NO_INLINE_WARNING_P is set on the function.
21507
21508 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
21509
21510         PR fortran/47976
21511         * reload1.c (inc_for_reload): Return void. All callers changed.
21512         (emit_input_reload_insns): Don't try to delete previous output
21513         reloads to a register, or record spill_reg_store for autoincs.
21514
21515 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
21516
21517         * gengtype.h: Updated copyright year.
21518         (struct input_file_st): Add inpisplugin field.
21519         (type_fileloc): New function.
21520         * gengtype.c
21521         (write_typed_struct_alloc_def): Add gcc_assert.
21522         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
21523         (write_typed_alloc_defns): Don't output for plugin files.
21524         (input_file_by_name): Clear inpisplugin field.
21525         (main): Set inpisplugin field for plugin files.
21526
21527 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
21528
21529         * gengtype-state.c (string_eq): New.
21530         (read_state): Use string_eq instead of strcmp when creating the
21531         state_ident_tab.
21532
21533 2011-04-19  Wei Guozhi  <carrot@google.com>
21534
21535         PR target/47855
21536         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
21537         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
21538         linkage.
21539         * config/arm/constraints.md (Uu): New constraint.
21540         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
21541
21542 2011-04-19  Tristan Gingold  <gingold@adacore.com>
21543
21544         * config.gcc (-*-*-*vms): Added.
21545         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
21546         definitions moved.
21547         * config/vms/vms-ld.c: New file.
21548         * config/vms/vms-ar.c: New file.
21549         * config/vms/t-vmsnative: New file.
21550
21551 2011-04-18  Xinliang David Li  <davidxl@google.com>
21552
21553         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
21554
21555 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
21556
21557         PR middle-end/48661
21558         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
21559         if TREE_TYPE (v) is non-NULL.
21560
21561         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
21562         gimple_get_virt_mehtod_for_binfo.
21563         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
21564         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
21565         callers.
21566         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
21567
21568 2011-04-18  Michael Matz  <matz@suse.de>
21569             Steve Ellcey  <sje@cup.hp.com>
21570
21571         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
21572         use its mode as source mode if it isn't VOIDmode.
21573
21574 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
21575
21576         * doc/passes.texi: Fill crossref nodes.
21577
21578 2011-04-18  Jim Meyering  <meyering@redhat.com>
21579
21580         Fix doubled-word typos in comments and strings
21581         * config/alpha/vms-unwind.h: s/for for/for/
21582         * config/arm/unwind-arm.h: Likewise.
21583         * config/microblaze/microblaze.c: Likewise.
21584         * config/sh/constraints.md: s/in in/in/
21585         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
21586
21587 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
21588
21589         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
21590         (AVX_FLOAT_MODE_P): Ditto.
21591         (AVX128_VEC_FLOAT_MODE_P): Ditto.
21592         (AVX256_VEC_FLOAT_MODE_P): Ditto.
21593         (AVX_VEC_FLOAT_MODE_P): Ditto.
21594         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
21595         (UNSPEC_MASKSTORE): Ditto.
21596         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
21597         Merge from <sse>_movmsk<ssemodesuffix> and
21598         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
21599         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
21600         iterator.
21601         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
21602         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
21603         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
21604
21605 2011-04-18  Jan Hubicka  <jh@suse.cz>
21606
21607         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
21608
21609         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
21610         (want_inline_function_called_once_p): Break out the logic from
21611         ipa_inline.
21612         (edge_badness): Ensure that profile is not misupdated.
21613         (lookup_recursive_calls): Prioritize by call frequencies.
21614         (inline_small_functions): Move program size estimates here;
21615         actually process whole queue even when unit growth has been
21616         met. (to properly compute inline_failed reasons and for the
21617         case unit size decrease.) Revisit comments on recursive inlining.
21618         (ipa_inline): Remove unit summary code; first inline hot calls
21619         of functions called once, cold calls next.
21620         (order, nnodes): Remove unused variables.
21621         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
21622         (GTFILES): Remove ipa-inline.c
21623         * sel-sched.c (fill_insns): Silence uninitialized var warning.
21624
21625 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
21626
21627         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
21628
21629 2011-04-18  Jie Zhang  <jie@codesourcery.com>
21630             Richard Earnshaw  <rearnsha@arm.com>
21631
21632         * arm.c (neon_builtin_type_bits): Remove.
21633         (typedef enum neon_builtin_mode): New.
21634         (T_MAX): Don't define.
21635         (typedef enum neon_builtin_datum): Remove bits, codes[],
21636         num_vars and base_fcode.  Add mode, code and fcode.
21637         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
21638         VAR10): Change accordingly.
21639         (neon_builtin_data[]): Change accordingly
21640         (arm_init_neon_builtins): Change accordingly.
21641         (neon_builtin_compare): Remove.
21642         (locate_neon_builtin_icode): Remove.
21643         (arm_expand_neon_builtin): Change accordingly.
21644
21645         * arm.h (enum arm_builtins): Move to ...
21646         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
21647
21648         * arm.c (arm_builtin_decl): Declare.
21649         (TARGET_BUILTIN_DECL): Define.
21650         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
21651         (arm_builtin_decls[]): New.
21652         (arm_init_neon_builtins): Store builtin declarations in
21653         arm_builtin_decls[].
21654         (arm_init_tls_builtins): Likewise.
21655         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
21656         (arm_builtin_decl): New.
21657
21658 2011-04-18  Richard Guenther  <rguenther@suse.de>
21659
21660         * tree.c (upper_bound_in_type): Build properly canonicalized
21661         INTEGER_CSTs.
21662         (lower_bound_in_type): Likewise.
21663
21664 2011-04-18  Richard Guenther  <rguenther@suse.de>
21665
21666         * gimple.h (gimple_call_addr_fndecl): New function.
21667         (gimple_call_fndecl): Use it.
21668         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
21669         for direct calls.
21670         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
21671         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
21672
21673 2011-04-18  Richard Guenther  <rguenther@suse.de>
21674
21675         PR middle-end/48650
21676         * tree.c (build_string): STRING_CST is now derived from tree_typed.
21677
21678 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
21679
21680         PR lto/48492
21681         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
21682         DECL_IN_CONSTANT_POOL without RTL.
21683
21684 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
21685             Ira Rosen  <ira.rosen@linaro.org>
21686
21687         PR target/48252
21688         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
21689         to match neon_vzip/vuzp/vtrn_internal.
21690         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
21691         outputs explicitly dependent on both inputs.
21692         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
21693
21694 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
21695
21696         PR tree-optimization/48616
21697         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
21698         whether the shift is by scalar or vector based on whether all SLP
21699         scalar stmts have the same rhs.
21700
21701 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
21702
21703         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
21704         memory operands.
21705
21706 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
21707
21708         PR target/43700
21709         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
21710         registers.
21711
21712 2011-04-17  Jan Hubicka  <jh@suse.cz>
21713
21714         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
21715         * cgrpahunit.c (cgraph_finalize_function): Do not set
21716         finalized_by_frontend.
21717         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21718         finalized_by_frontend.
21719
21720 2011-04-17  Jan Hubicka  <jh@suse.cz>
21721
21722         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
21723         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
21724         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
21725         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
21726         method.
21727         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
21728         gimple-fold.c
21729         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
21730
21731 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
21732
21733         PR lto/48538
21734         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
21735         is non-null before accessing it.
21736         (input_cgraph): Remove trailing spaces.
21737
21738 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21739
21740         * params.def (sms-min-sc): New param flag.
21741         * modulo-sched.c (sms_schedule): Use it.
21742         * doc/invoke.texi (sms-min-sc): Document it.
21743
21744 2011-04-17  Jan Hubicka  <jh@suse.cz>
21745
21746         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
21747         present, also set gimple_call_set_cannot_inline.
21748         * ipa-inline.c: Update toplevel comment.
21749         (MAX_TIME): Remove.
21750         (cgraph_clone_inlined_nodes): Fix linebreaks.
21751         (cgraph_check_inline_limits): Restructure to ...
21752         (caller_growth_limits): ... this one; be more tolerant
21753         on growth in nested inline chains; add explanatory comment;
21754         fix stack accounting thinko introduced by previous patch.
21755         (cgraph_default_inline_p): Remove.
21756         (report_inline_failed_reason): New function.
21757         (can_inline_edge_p): New function.
21758         (can_early_inline_edge_p): New function.
21759         (leaf_node_p): Move upwards in file.
21760         (want_early_inline_function_p): New function.
21761         (want_inline_small_function_p): New function.
21762         (want_inline_self_recursive_call_p): New function.
21763         (cgraph_edge_badness): Rename to ...
21764         (edge_badness) ... this one; fix linebreaks.
21765         (update_edge_key): Update call of edge_baddness; add
21766         detailed dump about queue updates.
21767         (update_caller_keys): Use can_inline_edge_p and
21768         want_inline_small_function_p.
21769         (cgraph_decide_recursive_inlining): Rename to...
21770         (recursive_inlining): Use can_inline_edge_p and
21771         want_inline_self_recursive_call_p; simplify and remove no longer
21772         valid FIXME.
21773         (cgraph_set_inline_failed): Remove.
21774         (add_new_edges_to_heap): Use can_inline_edge_p and
21775         want_inline_small_function_p.
21776         (cgraph_decide_inlining_of_small_functions): Rename to ...
21777         (inline_small_functions): ... this one; cleanup; use
21778         can/want predicates; cleanup debug ouput; work edges till fibheap
21779         is exhausted and do not stop once unit growth is reached; remove
21780         later loop processing remaining edges.
21781         (cgraph_flatten): Rename to ...
21782         (flatten_function): ... this one; use can_inline_edge_p
21783         and can_early_inline_edge_p predicates.
21784         (cgraph_decide_inlining): Rename to ...
21785         (ipa_inline): ... this one; remove unreachable nodes before
21786         inlining functions called once; simplify the pass.
21787         (cgraph_perform_always_inlining): Rename to ...
21788         (inline_always_inline_functions): ... this one; use
21789         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
21790         (cgraph_decide_inlining_incrementally): Rename to ...
21791         (early_inline_small_functions): ... this one; simplify
21792         using new predicates; cleanup; make dumps prettier.
21793         (cgraph_early_inlining): Rename to ...
21794         (early_inliner): newer inline regular functions into always-inlines;
21795         fix updating of call stmt summaries.
21796         (pass_early_inline): Update for new names.
21797         (inline_transform): Fix formating.
21798         (gate_cgraph_decide_inlining): Rename to ...
21799         (pass_ipa_inline): ... this one.
21800         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
21801         * ipa-inline-analysis.c (dump_inline_summary): Update.
21802         (compute_inline_parameters): Do not compute disregard_inline_limits;
21803         look for mismatching arguments.
21804         (estimate_growth): Fix handlig of non-trivial self recursion.
21805         (inline_read_summary): Do not read info->disregard_inline_limits.
21806         (inline_write_summary): Do not write info->disregard_inline_limits.
21807         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
21808         and move all checks into can_inline_edge_p predicate; re-enable code
21809         comparing optimization levels.
21810         (expand_call_inline): Do not test inline_forbidden_into_p.
21811         * Makefile.in (ipa-inline.o): Update arguments.
21812
21813 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21814
21815         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
21816
21817 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21818
21819         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
21820
21821 2011-04-17  Michael Matz  <matz@suse.de>
21822
21823         PR tree-optimization/48622
21824         PR lto/48645
21825         * ipa-inline-analysis.c (inline_read_summary): Read size/time
21826         in same order as they're written.
21827
21828 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21829
21830         * config/pa/predicates.md: Reorganize and simplify predicates.
21831         Eliminate duplicate code checks.
21832         (arith_operand): Rename to arith14_operand
21833         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
21834         * config/pa/pa.md: Use renamed operands.
21835         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
21836         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
21837         arith11_operand, adddi3_operand, indexed_memory_operand,
21838         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
21839         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
21840         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
21841         move_dest_operand, move_src_operand, prefetch_cc_operand,
21842         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
21843         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
21844         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
21845         div_operand, int5_operand, movb_comparison_operator,
21846         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
21847         arith_double_operand, ireg_operand, lhs_lshift_operand,
21848         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
21849         integer_store_memory_operand): Likewise.
21850         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
21851         (integer_store_memory_operand, read_only_operand,
21852         function_label_operand, borx_reg_operand,
21853         non_hard_reg_operand): Likewise.
21854         (eq_neq_comparison_operator): Delete unused operator.
21855         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
21856         function_label_operand.
21857         (emit_move_sequence): Likewise.
21858
21859 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
21860
21861         * config/i386/sse.md (sseunpackmode): New mode attribute.
21862         (ssepackmode): Ditto.
21863         (vec_pack_trunc_<mode>): Macroize expander from
21864         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
21865         (vec_unpacks_lo_<mode>): Macroize expander from
21866         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21867         (vec_unpacks_hi_<mode>): Macroize expander from
21868         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21869         (vec_unpacku_lo_<mode>): Macroize expander from
21870         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21871         (vec_unpacku_hi_<mode>): Macroize expander from
21872         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21873         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
21874         ix86_expand_sse4_unpack.
21875         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
21876
21877 2011-04-16  Jan Hubicka  <jh@suse.cz>
21878
21879         * cgraphbuild.c: Include ipa-inline.h.
21880         (reset_inline_failed): Use initialize_inline_failed.
21881         * cgraph.c: Include ipa-inline.h.
21882         (cgraph_create_node_1): Do not initialize estimated_growth.
21883         (initialize_inline_failed): More to ipa-inline-analysis.c
21884         (dump_cgraph_node): Do not dump inline flags.
21885         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
21886         and disregard_inline_limits flags.
21887         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
21888         time, size, estimated_growth.
21889         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
21890         Update.
21891         * cgraphunit.c (cgraph_decide_is_function_needed): Use
21892         DECL_DISREGARD_INLINE_LIMITS.
21893         (cgraph_analyze_function): Do not initialize
21894         node->local.disregard_inline_limits.
21895         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21896         inlinable, versionable and disregard_inline_limits.
21897         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
21898         cgraph_check_inline_limits, cgraph_default_inline_p,
21899         cgraph_edge_badness, update_caller_keys, update_callee_keys,
21900         add_new_edges_to_heap): Update.
21901         (cgraph_decide_inlining_of_small_function): Update; set
21902         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
21903         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
21904         cgraph_decide_inlining_incrementally): Update.
21905         * ipa-inline.h (inline_summary): Add inlinable, versionable,
21906         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
21907         time, size and estimated_growth parameters.
21908         (estimate_edge_growth): Update.
21909         (initialize_inline_failed): Declare.
21910         * ipa-split.c: Include ipa-inline.h
21911         (execute_split_functions): Update.
21912         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
21913         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
21914         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
21915         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
21916         estimated_growth to INT_MIN.
21917         (inline_node_duplication_hook): Likewise.
21918         (dump_inline_summary): Dump new fields.
21919         (compute_inline_parameters): Update.
21920         (estimate_edge_time, estimate_time_after_inlining,
21921         estimate_size_after_inlining, estimate_growth, inline_read_summary,
21922         inline_write_summary):
21923         (initialize_inline_failed): Move here from cgraph.c.
21924         * tree-sra.c: Include ipa-inline.h.
21925         (ipa_sra_preliminary_function_checks): Update.
21926         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
21927         ipa-inline.h.
21928
21929 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
21930
21931         * config/i386/sse.md (V16): New mode iterator.
21932         (VI1, VI8): Ditto.
21933         (AVXMODEQI, AVXMODEDI): Remove.
21934         (sse2, sse3): New mode attribute.
21935         (mov<mode>): Use V16 mode iterator.
21936         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
21937         (push<mode>1): Use V16 mode iterator.
21938         (movmisalign<mode>): Ditto.
21939         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21940         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
21941         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21942         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
21943         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
21944         avx_movdqu<avxmodesuffix>.
21945         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
21946         *avx_movdqu<avxmodesuffix>.
21947         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
21948         avx_lddqu<avxmodesuffix>.
21949         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
21950         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
21951         avx_movnt<AVXMODEDI:mode>.
21952         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
21953         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
21954
21955 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
21956
21957         PR target/48629
21958         * haifa-sched.c (prune_ready_list, schedule_block): Use
21959         sched_pressure_p rather than flag_sched_pressure.
21960
21961 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
21962
21963         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21964         cgraph_get_node instead of cgraph_get_create_node.
21965
21966 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
21967
21968         * cfgexpand.c (expand_debug_expr): Use
21969         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
21970
21971 2011-04-15  Michael Matz  <matz@suse.de>
21972
21973         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
21974         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
21975         * function.c (gimplify_parameters): Ditto.
21976         * gimplify.c (gimplify_vla_decl): Ditto.
21977
21978         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
21979         (gimple_call_set_alloca_for_var): New inline function.
21980         (gimple_call_alloca_for_var_p): Ditto.
21981         * gimple.c (gimple_build_call_from_tree): Remember
21982         CALL_ALLOCA_FOR_VAR_P state.
21983         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
21984
21985         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
21986         calls if they were for VLA objects.
21987
21988 2011-04-15  Martin Jambor  <mjambor@suse.cz>
21989
21990         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
21991         of ADR_EXPRs.
21992
21993 2011-04-15  Martin Jambor  <mjambor@suse.cz>
21994
21995         PR middle-end/48601
21996         * tree-emutls.c (lower_emutls_function_body): Call
21997         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
21998         result is non-NULL.
21999
22000 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
22001
22002         * c-decl.c (detect_field_duplicates): Call
22003         objc_detect_field_duplicates instead of objc_get_interface_ivars.
22004
22005 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
22006
22007         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
22008         * gimple.c (gimple_asm_clobbers_memory_p): Define.
22009         * ipa-pure-const.c (check_stmt): Call it.
22010         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
22011
22012 2011-04-15  Richard Guenther  <rguenther@suse.de>
22013
22014         PR tree-optimization/48290
22015         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
22016         Properly decide inhibiting propagation based on the valueized
22017         operand.  Do loop-closed SSA form preserving here ...
22018         (init_copy_prop): ... not here.
22019
22020 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
22021
22022         PR target/48612
22023         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
22024         (*ieee_smax<mode>3): Likewise.
22025
22026 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22027
22028         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
22029         Replace match_operand with match_dup for the third operand in
22030         these expanders.
22031
22032 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
22033
22034         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
22035         to track processing of conditionals.  Update all callers.
22036         (try_combine, simplify_if_then_else): Update.
22037
22038 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
22039
22040         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
22041         -fsched-pressure.
22042
22043 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
22044
22045         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
22046         instead of match_operand for operand 3.
22047
22048 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
22049
22050         * recog.h (insn_operand_data): Add an "allows_mem" field.
22051         * genoutput.c (output_operand_data): Initialize it.
22052         * optabs.c (maybe_legitimize_operand_same_code): New function.
22053         (maybe_legitimize_operand): Use it when matching the original
22054         op->value.
22055
22056 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
22057
22058         * gimplify.c: Fix issues in comments throughout.
22059         (voidify_wrapper_expr): Fix long line.
22060         (build_stack_save_restore): Likewise.
22061         (gimplify_loop_expr): Likewise.
22062         (gimplify_compound_lval): Likewise.
22063         (gimplify_init_ctor_eval): Likewise.
22064         (gimplify_modify_expr_rhs): Likewise.
22065         (omp_notice_threadprivate_variable): Likewise.
22066
22067 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
22068
22069         * cfgexpand.c (expand_call_stmt): Convert the function type to the
22070         original one if this is not a builtin function.
22071
22072 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
22073
22074         PR target/48605
22075         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
22076         offset it as needed based on top 2 bits in operands[3], change
22077         MEM mode to SFmode and mask those 2 bits away from operands[3].
22078
22079 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
22080
22081         * c-parser.c (c_parser_objc_protocol_definition): Updated for
22082         change from objc_declare_protocols() to objc_declare_protocol().
22083
22084 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
22085
22086         * config/i386/sse.md (sse4_1): New mode attribute.
22087         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
22088         avx_blend<ssemodesuffix><avxmodesuffix> and
22089         sse4_1_blend<ssemodesuffix> using VF mode iterator.
22090         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
22091         avx_blendv<ssemodesuffix><avxmodesuffix> and
22092         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
22093         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
22094         avx_dp<ssemodesuffix><avxmodesuffix> and
22095         sse4_1_dp<ssemodesuffix> using VF mode iterator.
22096         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
22097         (sse4_1_packusdw): Merge with *avx_packusdw.
22098         (sse4_1_pblendvb): Merge with *avx_pblendvb.
22099         (sse4_1_pblendw): Merge with *avx_pblendw.
22100         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
22101         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
22102         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
22103         VF mode iterator.
22104         (sse4_1_round<ssescalarmodesuffix>): Merge with
22105         *avx_round<ssescalarmodesuffix>.
22106         (aesenc): Merge with *avx_aesenc.
22107         (aesenclast): Merge with *avx_aesenclast.
22108         (aesdec): Merge with *avx_aesdec.
22109         (aesdeclast): Merge with *avx_aesdeclast.
22110         (pclmulqdq): Merge with *pclmulqdq.
22111         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
22112         New predicate.
22113         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
22114
22115 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
22116
22117         PR middle-end/48608
22118         * cfgexpand.c (get_decl_align_unit): Renamed to ...
22119         (align_local_variable): This.  Update DECL_ALIGN.
22120         (add_stack_var): Updated.
22121         (expand_one_stack_var): Likewise.
22122
22123 2011-04-14  Richard Guenther  <rguenther@suse.de>
22124
22125         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
22126         Remove.
22127         (dse_initialize_block_local_data, dse_leave_block,
22128         record_voperand_set, get_stmt_uid): Likewise.
22129         (dse_possible_dead_store_p): Allow any kind of killing stmt.
22130         (dse_optimize_stmt): Remove voperand set handling code.
22131         Simplify and improve to handle any kind of killing stmt.
22132         (dse_record_phi): Remove.
22133         (dse_enter_block): Simplify.
22134         (tree_ssa_dse): Likewise.
22135         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
22136
22137 2011-04-14  Jan Hubicka  <jh@suse.cz>
22138
22139         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
22140         * cgraph.h (struct inline_summary): Move to ipa-inline.h
22141         (cgraph_local_info): Remove inline_summary.
22142         * ipa-cp.c: Include ipa-inline.h.
22143         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
22144         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
22145         accesor.
22146         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
22147         (input_overwrite_node): Do not set inline summary.
22148         (input_node): Do not stream inline summary.
22149         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
22150         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
22151         growth; we do not have inline parameters computed for that anyway.
22152         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
22153         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
22154         (inline_summary_t): New type and VECtor.
22155         (debug_inline_summary, dump_inline_summaries): Declare.
22156         (inline_summary): Use VOCtor.
22157         (estimate_edge_growth): Kill hack computing call stmt size directly.
22158         * lto-section-in.c (lto_section_name): Add inline section.
22159         * ipa-inline-analysis.c: Include lto-streamer.h
22160         (node_removal_hook_holder, node_duplication_hook_holder): New holders
22161         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
22162         (inline_summary_vec): Define.
22163         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
22164         dump_inline_summaries): New functions.
22165         (estimate_function_body_sizes): Properly compute size/time of outgoing
22166         calls.
22167         (compute_inline_parameters): Alloc inline_summary; do not compute
22168         size/time of incomming calls.
22169         (estimate_edge_time): Avoid missing time summary hack.
22170         (inline_read_summary): Read inline summary info.
22171         (inline_write_summary): Write inline summary info.
22172         (inline_free_summary): Free all hooks and inline summary vector.
22173         * lto-streamer.h: Add LTO_section_inline_summary section.
22174         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
22175         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
22176
22177 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
22178
22179         * tree-vectorizer.h (vect_strided_store_supported): Add a
22180         HOST_WIDE_INT argument.
22181         (vect_strided_load_supported): Likewise.
22182         (vect_permute_store_chain): Return void.
22183         (vect_transform_strided_load): Likewise.
22184         (vect_permute_load_chain): Delete.
22185         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
22186         count argument.  Check that the count is a power of two.
22187         (vect_strided_load_supported): Likewise.
22188         (vect_permute_store_chain): Return void.  Update after above changes.
22189         Assert that the access is supported.
22190         (vect_permute_load_chain): Likewise.
22191         (vect_transform_strided_load): Return void.
22192         * tree-vect-stmts.c (vectorizable_store): Update calls after
22193         above interface changes.
22194         (vectorizable_load): Likewise.
22195         (vect_analyze_stmt): Don't check for strided powers of two here.
22196
22197 2011-04-14  Richard Guenther  <rguenther@suse.de>
22198
22199         PR tree-optimization/48590
22200         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22201         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
22202         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
22203         BUILT_IN_STACK_SAVE.
22204         * tree-ssa-dce.c (propagate_necessity): Handle
22205         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
22206
22207 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
22208
22209         * c-parser.c (c_parser_objc_class_declaration): Updated call to
22210         objc_declare_class.
22211
22212 2011-04-14  Richard Guenther  <rguenther@suse.de>
22213
22214         * tree.h (get_object_alignment_1): Declare.
22215         * builtins.c (get_object_alignment_1): Split out worker from ...
22216         (get_object_alignment): ... here.
22217         * fold-const.c (get_pointer_modulus_and_residue): Use
22218         get_object_alignment_1.
22219
22220 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
22221
22222         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
22223         type parameter.
22224         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
22225         parameter.  Generalise code to handle arrays as well as vectors.
22226         (vect_setup_realignment): Update accordingly.
22227         * tree-vect-stmts.c (vectorizable_store): Likewise.
22228         (vectorizable_load): Likewise.
22229
22230 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
22231
22232         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
22233         within the per-copy loop.
22234
22235 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
22236
22237         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
22238         in the dump file.
22239
22240 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
22241
22242         * doc/options.texi (Negative): Explicitly mention that the
22243         Negative chain must be circular.
22244
22245 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
22246
22247         * function.h (block_chainon): Declare.
22248         * function.c (block_chainon): Define.
22249
22250 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
22251             Eric Weddington  <eric.weddington@atmel.com>
22252             Georg-Johann Lay  <avr@gjlay.de>
22253
22254         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
22255         New Includes
22256         (avr_init_builtins, avr_expand_builtin,
22257         avr_expand_delay_cycles, avr_expand_unop_builtin,
22258         avr_expand_binop_builtin ): New functions.
22259         (avr_builtin_id): New enum
22260         (struct avr_builtin_description): New struct
22261         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
22262         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
22263
22264         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
22265         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
22266         UNSPECV_DELAY_CYCLES): new enumeration values
22267         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
22268         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
22269         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
22270         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
22271         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
22272         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
22273         "fmulsu"): New insns
22274
22275         * config/avr/avr-c.c: fix line endings
22276         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
22277         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
22278         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
22279         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
22280         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
22281
22282         * doc/extend.texi (AVR Built-in Functions): New node
22283         (Target Builtins): Add documentation of AVR
22284         built-in functions.
22285
22286 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
22287
22288         PR target/44643
22289         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
22290         alone. Error if non-const data has attribute progmem.
22291
22292 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22293
22294         * tree.h (struct tree_constructor): Include tree_typed instead of
22295         tree_common.
22296         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
22297         TS_TYPED instead of TS_COMMON.
22298
22299 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
22300
22301         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
22302         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
22303         (sse2_psadbw): Merge with *avx_psadbw.
22304         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
22305         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
22306         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
22307         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
22308         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
22309         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
22310         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
22311         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
22312         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
22313         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
22314         (ssse3_palignrti): Merge with *avx_palignrti.
22315
22316 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22317
22318         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
22319         * tree-ssanames.c (fini_ssanames): VEC_free it.
22320         (make_ssa_name_fn): Update for VECness of free_ssanames.
22321         (release_ssa_name, release_dead_ssa_names): Likewise.
22322         * tree.h (struct tree_ssa_name): Include tree_typed instead of
22323         tree_common.
22324         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
22325         TS_TYPED instead of TS_COMMON.
22326
22327 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22328
22329         * postreload-gcse.c (gcse_after_reload_main): Add calls to
22330         statistics_counter_event.
22331         * tree-ssa-copyrename.c (stats): Define.
22332         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
22333         statistics_counter_event.
22334         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
22335         (bswap_stats, widen_mul_stats): Define.
22336         (insert_reciprocals): Increment rdivs_inserted.
22337         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
22338         rfuncs_inserted.  Add calls to statistics_counter_event.
22339         (execute_cse_sincos_1): Increment inserted.
22340         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
22341         statistics_counter_event.
22342         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
22343         of bswap_stats.  Add calls to statistics_counter_event.
22344         (convert_mult_to_widen): Increment widen_mults_inserted.
22345         (convert_plusminus_to_widen): Increment maccs_inserted.
22346         (convert_mult_to_fma): Increment fmas_inserted.
22347         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
22348         calls to statistics_counter_event.
22349
22350 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
22351
22352         PR rtl-optimization/48455
22353         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
22354         `temp_costs->mem_cost'.
22355
22356 2011-04-13  Jan Hubicka  <jh@suse.cz>
22357
22358         * ipa-inline.h: New file.
22359         * ipa-inline-analysis.c: New file. Broken out of ...
22360         * ipa-inline.c: ... this file; update toplevel comment;
22361         include ipa-inline.h
22362         (inline_summary): Move to ipa-inline.h
22363         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
22364         ipa-inline-analysis.c.
22365         (cgraph_estimate_time_after_inlining): Rename to
22366         estiamte_time_after_inlining; move to ipa-inline-analysis.c
22367         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
22368         to estimate_edge_growth.
22369         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
22370         rename to estimate_size_after_inlining.
22371         (cgraph_mark_inline_edge): Update for new naming convention.
22372         (cgraph_check_inline_limits): Likewise.
22373         (cgraph_edge_badness): Likewise.
22374         (cgraph_decide_recursive_inlining): Likewise.
22375         (cgraph_decide_inlining_of_small_functions): Likewise.
22376         (cgraph_decide_inlining_incrementally): Likewise.
22377         (cgraph_estimate_growth): Rename to estimate_growth; move to
22378         ipa-inline-analysis.c.
22379         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
22380         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
22381         (compute_inline_parameters): Likewise.
22382         (compute_inline_parameters_for_current): Likewise.
22383         (pass_inline_parameters): Likewise.
22384         (inline_indirect_intraprocedural_analysis): Likewise.
22385         (analyze_function): Rename to inline_analyze_function; likewise.
22386         (add_new_function): Move to ipa-inline-analysis.c.
22387         (inline_generate_summary): Likewise.
22388         (inline_read_summary): Likewise.
22389         (inline_write_summary): Likewise.
22390         * Makefile.in (ipa-inline-analysis.c): New file.
22391
22392 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22393
22394         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
22395         * configure: Regenerate.
22396
22397 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22398
22399         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
22400         instead of tree_common.
22401         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
22402         Likewise.
22403         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
22404         TS_TYPED rather than TS_COMMON.
22405         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
22406
22407 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
22408
22409         PR target/45263
22410         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
22411         r20 around calls of __tablejump_elpm__
22412
22413 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
22414
22415         PR middle-end/48591
22416         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
22417         NULL.
22418         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
22419
22420 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
22421
22422         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
22423         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
22424         (cfi_vec): New typedef.
22425         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
22426         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
22427         (cie_cfi_vec): New static variable.
22428         (cie_cfi_head): Delete.
22429         (add_cfi): Accept a cfi_vec * as first argument. All callers and
22430         declaration changed. Use vector rather than list operations.
22431         (new_cfi): Don't initialize the dw_cfi_next field.
22432         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
22433         rather than list operations.
22434         (lookup_cfa): Use vector rather than list operations.
22435         (output_cfis): New argument upto. Accept a cfi_vec rather than
22436         a dw_cfi_ref list head as argument. All callers changed.
22437         Iterate over the vector using upto as a maximum index.
22438         (output_all_cfis): New static function.
22439         (output_fde): Use vector rather than list operations. Use the
22440         new upto argument for output_cfis rather than manipulating a
22441         list.
22442         (dwarf2out_begin_prologue): Change initializations to match
22443         new struct members.
22444         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
22445         from the vector length rather than searching for the end of a list.
22446         Use output_all_cfis.
22447         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
22448
22449 2011-04-13  Nick Clifton  <nickc@redhat.com>
22450
22451         * config/rx/rx.md (movmemsi): Do not use this pattern when
22452         volatile pointers are involved.
22453
22454 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
22455
22456         * config/i386/sse.md (pinsrbits): Remove.
22457         (sse2_packsswb): Merge with *avx_packsswb.
22458         (sse2_packssdw): Merge with *avx_packssdw.
22459         (sse2_packuswb): Merge with *avx_packuswb.
22460         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
22461         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
22462         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
22463         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
22464         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
22465         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
22466         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
22467         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
22468         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
22469         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
22470         (sse2_loadld): Merge with *avx_loadld.
22471         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
22472         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
22473         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
22474         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
22475         (vec_concatv2di): Merge with *vec_concatv2di_avx.
22476
22477 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
22478
22479         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
22480         calling TREE_CHAIN.
22481         * print-tree.c (print_node): Likewise.
22482         * tree-inline.c (copy_tree_r): Likewise.
22483         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
22484         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
22485         instead of TS_COMMON.
22486         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
22487         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
22488         (copy_node_stat): Zero TREE_CHAIN only if necessary.
22489         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
22490         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
22491         ...and these...
22492         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
22493         * tree.h: ...here.
22494         (TREE_CHAIN): Check for a TS_COMMON structure.
22495         (TREE_TYPE): Check for a TS_TYPED structure.
22496
22497 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
22498
22499         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
22500         cgraph_get_create_node instead of cgraph_node.
22501
22502 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22503
22504         * c-parser.c (c_parser_initelt): Updated call to
22505         objc_build_message_expr.
22506         (c_parser_postfix_expression): Likewise.
22507
22508 2011-04-12  Kai Tietz  <ktietz@redhat.com>
22509
22510         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
22511         MASK_MS_BITFIELD_LAYOUT bit.
22512
22513 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22514
22515         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
22516         assert it is always true.
22517         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
22518         moves.
22519
22520 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22521
22522         * c-parser.c (c_lex_one_token): Rewritten conditional used when
22523         compiling Objective-C to be more efficient.
22524
22525 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
22526
22527         * opts-common.c (decode_cmdline_options_to_array): Remove variable
22528         argv_copied.
22529
22530 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22531
22532         * recog.h, genoutput.c, optabs.c: Revert last patch.
22533
22534 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22535
22536         PR target/48090
22537         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
22538
22539 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22540
22541         * recog.h (insn_operand_data): Add an "allows_mem" field.
22542         * genoutput.c (output_operand_data): Initialize it.
22543         * optabs.c (maybe_legitimize_operand_same_code): New function.
22544         (maybe_legitimize_operand): Use it when matching the original
22545         op->value.
22546
22547 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22548
22549         * genpreds.c (process_define_predicate): Move most processing
22550         to gensupport.c.  Continue to validate the expression.
22551         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
22552         (process_define_predicate): Move processing to gensupport.c.
22553         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
22554         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
22555         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
22556         argument.
22557         (valid_predicate_name_p): New function, split out from old
22558         genpreds.c:process_define_predicate.
22559         (process_define_predicate): New function, combining code from
22560         old genpreds.c and genrecog.c functions.
22561         (process_rtx): Call it for DEFINE_PREDICATE and
22562         DEFINE_SPECIAL_PREDICATE.
22563
22564 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22565
22566         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
22567         size of a '%A' memory reference.
22568         (T_DREG, T_QREG): New neon_builtin_type_bits.
22569         (arm_init_neon_builtins): Assert that the load and store operands
22570         are neon_struct_operands.
22571         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
22572         (NEON_ARG_MEMORY): New builtin_arg.
22573         (neon_dereference_pointer): New function.
22574         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
22575         Handle NEON_ARG_MEMORY.
22576         (arm_expand_neon_builtin): Update after above interface changes.
22577         Use NEON_ARG_MEMORY for loads and stores.
22578         * config/arm/predicates.md (neon_struct_operand): New predicate.
22579         * config/arm/iterators.md (V_two_elem): Tweak formatting.
22580         (V_three_elem): Use BLKmode for accesses that have no associated mode.
22581         (V_four_elem): Tweak formatting.
22582         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
22583         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
22584         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
22585         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
22586         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
22587         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
22588         (neon_vst4<mode>): Replace pointer operand with a memory operand.
22589         Use %A in the output template.
22590         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
22591         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
22592         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
22593         the width of the memory access.  Remove post-increment.
22594         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
22595
22596 2011-04-12  Nick Clifton  <nickc@redhat.com>
22597
22598         * config/v850/v850.c (expand_prologue): Do not use the CALLT
22599         instruction for interrupt handlers if the target is the basic V850
22600         architecture.
22601         (expand_epilogue): Likewise.
22602
22603 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22604
22605         PR rtl-optimization/48549
22606         * combine.c (propagate_for_debug): Also stop after BB_END of
22607         this_basic_block.  Process LAST and just stop processing after it.
22608         (combine_instructions): If last_combined_insn has been deleted,
22609         set last_combined_insn to its PREV_INSN.
22610
22611 2011-04-12  Richard Guenther  <rguenther@suse.de>
22612
22613         PR tree-optimization/46076
22614         * gimple.h (struct gimple_statement_call): Add fntype field.
22615         (gimple_call_fntype): Adjust.
22616         (gimple_call_set_fntype): New function.
22617         * gimple.c (gimple_build_call_1): Set the call function type.
22618         * gimplify.c (gimplify_call_expr): Preserve the function
22619         type the frontend used for the call.
22620         (gimplify_modify_expr): Likewise.
22621         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
22622         function type.
22623         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
22624         function type.
22625         * tree-ssa.c (useless_type_conversion_p): Function pointer
22626         conversions are useless.
22627
22628 2011-04-12  Martin Jambor  <mjambor@suse.cz>
22629
22630         * cgraph.h (cgraph_node): Remove function declaration.
22631         (cgraph_create_node): Declare.
22632         (cgraph_get_create_node): Likewise.
22633         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
22634         Updated all callers.
22635         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
22636         the decl does not already exist.  Call cgraph_get_create_node instead
22637         of cgraph_node.
22638         (cgraph_get_create_node): New function.
22639         (cgraph_same_body_alias): Update comment.
22640         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
22641         assert it does not return NULL.
22642         (cgraph_update_edges_for_call_stmt): Likewise.
22643         (cgraph_clone_edge): Likewise.
22644         (cgraph_create_virtual_clone): Likewise.
22645         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
22646         instead of cgraph_node.
22647         (cgraph_add_new_function): Call cgraph_create_node or
22648         cgraph_get_create_node instead of cgraph_node.
22649         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
22650         instead of cgraph_node.
22651         (record_eh_tables): Likewise.
22652         (mark_address): Likewise.
22653         (mark_load): Likewise.
22654         (build_cgraph_edges): Call cgraph_get_create_node instead
22655         of cgraph_node.
22656         (rebuild_cgraph_edges): Likewise.
22657         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
22658         instead of cgraph_node.
22659         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
22660         cgraph_node.
22661         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
22662         cgraph_create_node instead of cgraph_node.
22663         * c-decl.c (finish_function): Call cgraph_get_create_node instead
22664         of cgraph_node.
22665         * lto-cgraph.c (input_node): Likewise.
22666         * lto-streamer-in.c (input_function): Likewise.
22667         * varasm.c (mark_decl_referenced): Likewise.
22668         (assemble_alias): Likewise.
22669
22670 2011-04-12  Martin Jambor  <mjambor@suse.cz>
22671
22672         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
22673         instead of cgraph_node and assert it does not return NULL.
22674         * lto-streamer-in.c (lto_read_body): Likewise.
22675         * omp-low.c (new_omp_context): Likewise.
22676         (create_task_copyfn): Likewise.
22677         * tree-emutls.c (lower_emutls_function_body): Likewise.
22678         * matrix-reorg.c (transform_allocation_sites): Likewise.
22679
22680 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22681
22682         PR c/48552
22683         * c-typeck.c (build_asm_expr): Error out on attempts to use
22684         void type outputs or inputs for constraints that allow reg or
22685         don't allow memory.
22686
22687 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
22688             Richard Earnshaw  <rearnsha@arm.com>
22689
22690         PR target/48250
22691         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
22692         to use sign-magnitude offsets. Reject unsupported unaligned
22693         cases. Add detailed description in comments.
22694         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
22695         condition from TARGET_32BIT to TARGET_ARM.
22696
22697 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
22698
22699         * tree.h (struct typed_tree): New.
22700         (struct tree_common): Include it instead of tree_base.
22701         (TREE_TYPE): Update for new location of type field.
22702         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
22703         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
22704         (union tree_node): Add typed field.
22705         * treestruct.def (TS_TYPED): New.
22706         * lto-streamer.c (check_handled_ts_structures): Handle it.
22707         * tree.c (MARK_TS_TYPED): New macro.
22708         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
22709
22710 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
22711
22712         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
22713         (force_nonfallthru): Do not alter the loop nest if no basic block
22714         was created.
22715
22716 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
22717
22718         * config/i386/sse.md (VI): New mode iterator.
22719         (SSEMODEI): Remove.
22720         (AVX256MODEI): Ditto.
22721         (AVXMODEF4P): Ditto.
22722         (avxvecpsmode): Ditto.
22723         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
22724         (sse2_andnot<mode>3): New expander.
22725         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
22726         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
22727         (<any_logic:code><mode>3): Use VI mode iterator.
22728         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
22729         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
22730         (*andnottf3): Handle AVX three-operand constraints.
22731         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
22732
22733 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22734             Robert Millan  <rmh@gnu.org>
22735
22736         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
22737         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
22738         GNU_USER_DYNAMIC_LINKER64): Define.
22739         (REG_NAME): Don't undefine.
22740         (MD_UNWIND_SUPPORT): Undefine.
22741         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
22742         (REG_NAME): Don't undefine.
22743         (MD_UNWIND_SUPPORT): Undefine.
22744         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
22745
22746 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22747
22748         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
22749         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
22750
22751 2011-04-11  Xinliang David Li  <davidxl@google.com>
22752
22753         * value-profile.c (check_ic_target): New function.
22754         (gimple_ic_transform): Sanity check indirect call target.
22755         * gimple-low.c (gimple_check_call_args): Interface change.
22756         (gimple_check_call_matching_types): New function.
22757         * tree-inline.c (tree_can_inline_p): Call new function.
22758
22759 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
22760
22761         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
22762         tree-pretty-print.h & realmpfr.h.
22763
22764 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
22765
22766         PR middle-end/48464
22767         * ira.c (setup_pressure_classes): Fix typo in loop condition.
22768         (setup_allocno_and_important_classes): Ditto.
22769
22770 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22771
22772         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
22773         GNU_USER_DYNAMIC_LINKER.
22774         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
22775         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22776         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
22777         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22778         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22779         GNU_USER_TARGET_OS_CPP_BUILTINS.
22780         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
22781         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22782         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22783         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22784         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
22785         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22786         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22787         GNU_USER_TARGET_OS_CPP_BUILTINS.
22788         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22789         GNU_USER_DYNAMIC_LINKER.
22790         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22791         GNU_USER_TARGET_OS_CPP_BUILTINS.
22792         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
22793         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22794         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
22795         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22796         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
22797         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
22798         GNU_USER_DYNAMIC_LINKER64): Remove.
22799         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
22800         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22801         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22802         GNU_USER_DYNAMIC_LINKER.
22803         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22804         GNU_USER_TARGET_OS_CPP_BUILTINS.
22805         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22806         GNU_USER_TARGET_OS_CPP_BUILTINS.
22807         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
22808         to GNU_USER_TARGET_OS_CPP_BUILTINS.
22809         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22810         GNU_USER_TARGET_OS_CPP_BUILTINS.
22811         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
22812         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
22813         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22814         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
22815         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22816         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22817         GNU_USER_DYNAMIC_LINKER.
22818         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22819         GNU_USER_TARGET_OS_CPP_BUILTINS.
22820         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
22821         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22822         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22823         GNU_USER_DYNAMIC_LINKER.
22824         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22825         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22826         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
22827         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22828         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22829         GNU_USER_DYNAMIC_LINKER.
22830         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
22831         GNU_USER_DYNAMIC_LINKERN32.
22832         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
22833         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
22834         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
22835         GNU_USER_DYNAMIC_LINKER32.
22836         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
22837         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22838         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22839         GNU_USER_DYNAMIC_LINKER.
22840         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22841         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22842         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
22843         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22844         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22845         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
22846         GNU_USER_DYNAMIC_LINKER32.
22847         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22848         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
22849         GNU_USER_DYNAMIC_LINKER.
22850         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
22851         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22852         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22853         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
22854         GNU_USER_DYNAMIC_LINKER64.
22855         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
22856         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22857         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22858         GNU_USER_DYNAMIC_LINKER.
22859         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
22860         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22861         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22862         GNU_USER_DYNAMIC_LINKER.
22863         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
22864         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22865         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22866         GNU_USER_DYNAMIC_LINKER32.
22867         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22868         GNU_USER_DYNAMIC_LINKER64.
22869         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22870         GNU_USER_DYNAMIC_LINKER64.
22871         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
22872         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22873         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
22874         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22875         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22876
22877 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22878
22879         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
22880         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
22881         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
22882         GNU_USER_DYNAMIC_LINKER.
22883         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22884         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
22885         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
22886         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
22887         GNU_USER_DYNAMIC_LINKER64.
22888         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22889         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
22890         GNU_USER_LINK_EMULATION.
22891         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
22892         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
22893         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
22894         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
22895         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
22896         CPP_SPEC, CC1_SPEC): Remove.
22897         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
22898         (GNU_USER_DYNAMIC_LINKER): Define.
22899         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
22900         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
22901         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
22902         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
22903         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
22904         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
22905         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22906         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
22907         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
22908         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
22909         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
22910         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
22911         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
22912         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
22913         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
22914         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22915         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22916         GNU_USER_DYNAMIC_LINKER.
22917         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22918         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22919         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22920         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22921         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22922         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22923         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
22924         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
22925         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
22926         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
22927
22928 2011-04-11  Kai Tietz  <ktietz@redhat.com>
22929
22930         PR target/9601
22931         PR target/11772
22932         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
22933         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
22934         comment.
22935         (ix86_is_msabi_thiscall): Removed.
22936         (ix86_is_type_thiscall): Likewise.
22937         (ix86_get_callcvt): New function.
22938         (ix86_comp_type_attributes): Simplify check.
22939         (ix86_function_regparm): Use ix86_get_callcvt for calling
22940         convention attribute checks.
22941         (ix86_return_pops_args): Likewise.
22942         (ix86_static_chain): Likewise.
22943         (x86_this_parameter): Likewise.
22944         (x86_output_mi_thunk): Likewise.
22945         (ix86_function_type_abi): Optimize check for types without attributes.
22946         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
22947         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
22948         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
22949         by flag-values.
22950         (IX86_BASE_CALLCVT): Helper macro.
22951         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
22952         Use ix86_get_callcvt for calling convention attribute checks and avoid
22953         symbol-decoration for stdcall in TARGET_RTD case.
22954         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
22955         Likewise.
22956         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
22957         for declaration.
22958
22959 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
22960
22961         * config/i386/sse.md (VI_128): New mode iterator.
22962         (VI12_128): Rename from SSEMODE12.
22963         (VI14_128): Rename from SSEMODE14.
22964         (VI124_128): New mode iterator.
22965         (VI24_128): Rename from SSEMODE248.
22966         (VI248_128): Rename from SSEMODE248.
22967         (SSEMODE124C8): Remove.
22968         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22969         (*sse2_<plusminus_insn><mode>3): Merge with
22970         *avx_<plusminus_insn><mode>3.
22971         (*mulv8hi3): Merge with *avx_mulv8hi3.
22972         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
22973         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
22974         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
22975         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
22976         (ashr<mode>3): Merge with *avx_ashr<mode>3.
22977         (lshr<mode>3): Merge with *avx_lshr<mode>3.
22978         (ashl<mode>3): Merge with *avx_ashl<mode>3.
22979         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
22980         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
22981         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22982         (*<smaxmin:code>v8hi3): Ditto.
22983         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
22984         (*<smaxmin:code>v16qi3): Ditto.
22985         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
22986         (*sse2_eq<mode>3): Ditto.
22987         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
22988         (*sse2_gt<mode>3): Ditto.
22989         (vcondv2di): Split out of vcond<mode>.
22990         (vconduv2di): Split out of vcondu<mode>.
22991
22992 2011-04-11  Richard Guenther  <rguenther@suse.de>
22993
22994         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
22995         before calling tree_low_cst.
22996
22997 2011-04-11  Richard Guenther  <rguenther@suse.de>
22998
22999         * stor-layout.c (layout_type): Compute all array index size operations
23000         in the original type.
23001         (initialize_sizetypes): Add comment.
23002         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
23003
23004 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
23005
23006         * common.opt (Tbss=, Tdata=, Ttext=): New options.
23007
23008 2011-04-11  Martin Jambor  <mjambor@suse.cz>
23009
23010         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
23011         of cgraph_node, handle NULL return value.
23012         (cgraph_global_info): Likewise.
23013         (cgraph_rtl_info): Likewise.
23014         * tree-inline.c (estimate_num_insns): Likewise.
23015         * gimplify.c (unshare_body): Likewise.
23016         (unvisit_body): Likewise.
23017         (gimplify_body): Likewise.
23018         * predict.c (optimize_function_for_size_p): Likewise.
23019         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23020         (call_may_clobber_ref_p_1): Likewise.
23021         * varasm.c (function_section_1): Likewise.
23022         (assemble_start_function): Likewise.
23023
23024 2011-04-11  Martin Jambor  <mjambor@suse.cz>
23025
23026         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
23027         of cgraph_node.
23028         * final.c (rest_of_clean_state): Likewise.
23029         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
23030         * passes.c (pass_init_dump_file): Likewise.
23031         (execute_all_ipa_transforms): Likewise.
23032         (function_called_by_processed_nodes_p): Likewise.
23033         * predict.c (maybe_hot_frequency_p): Likewise.
23034         (probably_never_executed_bb_p): Likewise.
23035         (compute_function_frequency): Likewise.
23036         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
23037         (unnest_nesting_tree_1): Likewise.
23038         (lower_nested_functions): Likewise.
23039         * tree-optimize.c (execute_fixup_cfg): Likewise.
23040         (tree_rest_of_compilation): Likewise.
23041         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
23042         * tree-sra.c (ipa_early_sra): Likewise.
23043         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
23044         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
23045         * ipa.c (record_cdtor_fn): Likewise.
23046         * ipa-inline.c (cgraph_early_inlining): Likewise.
23047         (compute_inline_parameters_for_current): Likewise.
23048         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
23049         * ipa-pure-const.c (local_pure_const): Likewise.
23050         * ipa-split.c (split_function): Likewise.
23051         (execute_split_functions): Likewise.
23052         * cgraphbuild.c (build_cgraph_edges): Likewise.
23053         (rebuild_cgraph_edges): Likewise.
23054         (cgraph_rebuild_references): Likewise.
23055         (remove_cgraph_callee_edges): Likewise.
23056         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
23057         (verify_cgraph_node): Likewise.
23058         (cgraph_analyze_functions): Likewise.
23059         (cgraph_preserve_function_body_p): Likewise.
23060         (save_inline_function_body): Likewise.
23061         (save_inline_function_body): Likewise.
23062         * tree-inline.c (copy_bb): Likewise.
23063         (optimize_inline_calls): Likewise.
23064
23065 2011-04-11  Martin Jambor  <mjambor@suse.cz>
23066
23067         PR tree-optimization/48195
23068         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
23069         ipa_check_create_edge_args.
23070         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
23071         ipa_check_create_edge_args.
23072         * ipa-inline.c (inline_generate_summary): Do not call
23073         ipa_check_create_node_params and ipa_check_create_edge_args.
23074         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
23075         ipa_check_create_edge_args.
23076
23077 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
23078
23079         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
23080         instead of loop.
23081         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
23082         * function.c (record_hard_reg_sets): Likewise.
23083         * ira.c (compute_regs_asm_clobbered): Likewise.
23084         * sched-deps.c (sched_analyze_1): Likewise.
23085         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
23086
23087 2011-04-09  Xinliang David Li  <davidxl@google.com>
23088
23089         PR tree-optimization/PR48484
23090         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
23091         has_valid_pred lazily
23092
23093 2011-04-09  Duncan Sands  <baldrick@free.fr>
23094
23095         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
23096
23097 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
23098
23099         * combine.c (combine_validate_cost): Adjust comments.  Set registered
23100         cost of I0 to zero at the end, if any.
23101
23102 2011-04-08  Xinliang David Li  <davidxl@google.com>
23103
23104         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
23105         to insane profile data.
23106
23107 2011-04-08  Xinliang David Li  <davidxl@google.com>
23108
23109         * ipa-cp.c (ipcp_update_profiling): Correct
23110          negative scale factor due to insane profile data.
23111
23112 2011-04-08  Xinliang David Li  <davidxl@google.com>
23113
23114         * final.c (dump_basic_block_info): New function.
23115         (final): Dump basic block.
23116         (final_scan_insn): Remove old dump.
23117
23118 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
23119
23120         PR target/47829
23121         * config.gcc (i386-*-freebsd): Disable unwind table generation for
23122         crtbegin/crtend.
23123
23124 2011-04-08  Michael Matz  <matz@suse.de>
23125
23126         PR middle-end/48389
23127         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
23128         functions.
23129         (rebuild_jump_labels): Call rebuild_jump_labels_1.
23130         * rtl.h (rebuild_jump_labels_chain): Declare.
23131         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
23132         insns inserted on edges.
23133
23134 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
23135
23136         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
23137         * config/arm/arm-arches.def: New.
23138         * config/arm/arm-opts.h: New.
23139         * config/arm/genopt.sh: New.
23140         * config/arm/arm-tables.opt: New (generated).
23141         * config/arm/arm.c (arm_handle_option, arm_target_help,
23142         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
23143         (all_architectures): Get most table contents from arm-arches.def.
23144         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
23145         arm_selected_tune here.
23146         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
23147         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
23148         (march=, mcpu=, mtune=): Use Enum and Var.
23149         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
23150         (arm.o): Update dependencies.
23151
23152 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
23153
23154         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
23155         of header_file.
23156         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
23157         (write_typed_alloc_defns): Likewise.
23158         (main): Calls write_typed_alloc_defns with output_header.
23159
23160 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
23161
23162         PR inline-asm/48435
23163         * ira-color.c (setup_profitable_hard_regs): Add comments.
23164         Don't take prohibited hard regs into account.
23165         (setup_conflict_profitable_regs): Rename to
23166         get_conflict_profitable_regs.
23167         (check_hard_reg_p): Check prohibited hard regs.
23168
23169 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
23170
23171         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
23172         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
23173         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
23174
23175 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23176
23177         PR target/48366
23178         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
23179         move from floating point to shift amount register.
23180         (emit_move_sequence): Remove secondary reload support for floating
23181         point to shift amount amount register copies.
23182         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
23183         amount register copies.
23184         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
23185         register, return false if mode isn't a scalar integer mode.
23186         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
23187
23188 2011-04-08  Richard Guenther  <rguenther@suse.de>
23189
23190         * gimple.c (gimple_call_flags): Remove kludge.
23191
23192 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
23193
23194         * sel-sched.c (sel_region_init): Move call to
23195         sel_setup_region_sched_flags after setup_current_loop_nest.
23196
23197 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
23198
23199         PR rtl-optimization/48272
23200         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
23201         init_insn_reg_pressure_info.  Adjust a caller.
23202         * sched-int.h (init_insn_reg_pressure_info): Declare.
23203         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
23204         when sched-pressure is enabled.
23205
23206 2011-04-08  Richard Guenther  <rguenther@suse.de>
23207
23208         * gimple.c (gimple_set_modified): Do not queue calls to
23209         MODIFIED_NORETURN_CALLS here ...
23210         * tree-ssa-operands.c (update_stmt_operands): ... but here.
23211
23212 2011-04-08  Richard Guenther  <rguenther@suse.de>
23213
23214         PR lto/48467
23215         * toplev.c (lang_dependent_init): Do not open asm_out_file
23216         in WPA mode, nor perform debug machinery initialization.
23217         (finalize): Do not unlink asm_out_file in WPA mode.
23218
23219 2011-04-08  Richard Guenther  <rguenther@suse.de>
23220
23221         * gimple.h (gimple_call_fntype): New function.
23222         (gimple_call_return_type): Use it.
23223         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
23224         * gimple-low.c (gimple_check_call_args): Likewise.
23225         * gimple.c (gimple_call_flags): Likewise.
23226         (gimple_call_arg_flags): Likewise.
23227         (gimple_call_return_flags): Likewise.
23228         * tree-cfg.c (verify_gimple_call): Likewise.
23229         (do_warn_unused_result): Likewise.
23230         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
23231         * value-prof.c (gimple_ic_transform): Fix fndecl check.
23232
23233 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
23234
23235         PR rtl-optimization/48235
23236         * sel-sched.c (code_motion_process_successors): Recompute the last
23237         insn in basic block if control flow changed.
23238         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
23239         Update condition for ilist_remove.
23240
23241 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
23242
23243         PR rtl-optimization/48302
23244         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
23245         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
23246         it to record added preheader blocks.
23247         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
23248         on to sel_add_loop_preheaders.
23249         (sel_region_init): Move call to setup_current_loop_nest after
23250         sel_init_bbs.
23251
23252 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
23253
23254         PR target/48273
23255         * cfgloop.h (loop_has_exit_edges): New helper.
23256         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
23257         non-clonable.
23258         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
23259         that have no exit edges.
23260
23261 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
23262
23263         PR rtl-optimization/48442
23264         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
23265         all callers.  Adjust assert.
23266
23267 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
23268
23269         PR tree-optimization/48377
23270         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
23271         is_packed to true even for types with smaller TYPE_ALIGN than
23272         TYPE_SIZE.
23273
23274 2011-04-08  Richard Guenther  <rguenther@suse.de>
23275
23276         PR bootstrap/48513
23277         * doc/tm.texi: Re-generate.
23278
23279 2011-04-08  Wei Guozhi  <carrot@google.com>
23280
23281         PR target/47855
23282         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
23283         * config/arm/arm.c (arm_attr_length_push_multi): New function.
23284         * config/arm/arm.md (*push_multi): Change the length computation to
23285         call a C function.
23286
23287 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
23288
23289         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
23290         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
23291         * doc/tm.texi: Regenerate.
23292         * system.h (ASM_OUTPUT_BSS): Poison.
23293         * varasm.c (asm_output_bss): Remove function.
23294         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
23295
23296         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
23297         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
23298         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
23299         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23300         Likewise.
23301         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23302         Likewise.
23303         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23304         Likewise.
23305         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
23306
23307 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
23308
23309         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
23310         EnumValue lines.
23311
23312 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
23313
23314         * config/m68k/m68k.c (m68k_handle_option): Don't handle
23315         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
23316         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
23317         OPT_mcpu32.
23318         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23319         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
23320         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
23321         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
23322         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
23323         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
23324         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23325         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
23326         options.  Don't map other m68k options manually.  Don't handle
23327         old-style options as canonical.
23328         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23329         * doc/install.texi (m68k-*-*): Document binutils version requirement.
23330
23331 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
23332
23333         * basic-block.h (force_nonfallthru): Move to...
23334         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
23335         (force_nonfallthru): ...here.
23336         * cfghooks.c (force_nonfallthru): New function.
23337         * cfgrtl.c (force_nonfallthru): Rename into...
23338         (rtl_force_nonfallthru): ...this.
23339         (commit_one_edge_insertion): Do not set AUX field.
23340         (commit_edge_insertions): Do not discover new basic blocks.
23341         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
23342         (cfg_layout_rtl_cfg_hooks): Likewise.
23343         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
23344         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
23345         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
23346
23347 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
23348
23349         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23350         Remove macros.
23351
23352 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
23353
23354         * config/i386/sse.md: Update copyright year.
23355         (avxcvtvecmode): Remove.
23356         (sse_movhlps): Merge with *avx_movhlps.
23357         (sse_movlhps): Merge with *avx_movlhps.
23358         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
23359         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
23360         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
23361         (sse_loadhps): Merge with *avx_loadhps.
23362         (sse_storelps): Merge with *avx_storelps.
23363         (sse_loadlps): Merge with *avx_loadlps.
23364         (sse_movss): Merge with *avx_movss.
23365         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
23366         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
23367         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
23368         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
23369         (vec_set<mode>_0): Ditto.
23370         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
23371         (sse4_1_insertps): Merge with *avx_insertps.
23372         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
23373         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
23374         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
23375         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
23376         (sse2_storehpd): Merge with *avx_storehpd.
23377         (sse2_loadhpd): Merge with *avx_loadhpd.
23378         (sse2_loadlpd): Merge with *avx_loadlpd.
23379         (sse2_movsd): Merge with *avx_movsd.
23380         (*vec_concatv2df): Merge with *vec_concatv2df.
23381
23382 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
23383
23384         PR debug/48343
23385         * combine.c (combine_instructions): Add last_combined_insn,
23386         update it if insn is after it, pass it to all try_combine calls.
23387         (try_combine): Add last_combined_insn parameter, pass it instead of
23388         i3 to propagate_for_debug.
23389
23390 2011-04-07  Nick Clifton  <nickc@redhat.com>
23391
23392         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
23393         to handle MDR <-> data register transfers.
23394         (movhi_internal): Likewise.
23395
23396 2011-04-07  Alan Modra  <amodra@gmail.com>
23397
23398         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
23399         previous stack info.
23400
23401 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23402
23403         PR target/43920
23404         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
23405         flow_find_cross_jump.  Swap variables to implement backward replacement.
23406         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
23407
23408 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23409
23410         PR target/43920
23411         * cfgcleanup.c (walk_to_nondebug_insn): New function.
23412         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
23413         and bb2.
23414         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
23415         src1 or src2.  Redirect edges to the last basic block.  Update
23416         frequency and count on multiple basic blocks in case of fallthru.
23417
23418 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23419
23420         PR target/43920
23421         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
23422         function.
23423         (old_insns_match_p): Change return type.  Replace return false/true
23424         with return dir_none/dir_both.  Use can_replace_by.
23425         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
23426         direction from dir_p.  Register replacement direction in dir, last_dir
23427         and afterlast_dir.  Handle new return type of old_insns_match_p using
23428         merge_dir.  Return replacement direction in dir_p.
23429         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
23430         return type of old_insns_match_p.
23431         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
23432         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
23433         flow_find_cross_jump.
23434         * basic-block.h (enum replace_direction): New type.
23435         (flow_find_cross_jump): Add parameter to declaration.
23436
23437 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
23438
23439         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
23440         (AVXMODEDCVTPS2DQ): Ditto.
23441         (VEC_FLOAT_MODE): Ditto.
23442         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
23443         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23444         (<any_logic:code><mode>3): Use VF mode iterator.
23445         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
23446         Use VF mode iterator.
23447         (copysign<mode>3): Use VF mode iterator.
23448         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
23449         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23450         (*<any_logic:code><MODEF:mode>3): Merge with
23451         *avx_<any_logic:code><MODEF:mode>3.
23452         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
23453         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
23454         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
23455         (avx_cvtdq2ps<avxmodesuffix>): Remove.
23456         (sse2_cvtdq2ps): Use %v modifier.
23457         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
23458         (avx_cvtps2dq<avxmodesuffix>): Remove.
23459         (sse2_cvtps2dq): Use %v modifier.
23460         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
23461         (avx_cvttps2dq<avxmodesuffix>): Remove.
23462         (sse2_cvttps2dq): Use %v modifier.
23463         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
23464         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
23465         (sse2_cvtsd2siq): Fix insn template.
23466         (sse2_cvtsd2siq_2): Ditto.
23467         (sse2_cvttsd2siq): Ditto.
23468         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
23469         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
23470
23471 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
23472
23473         * gcov-io.c: Use GCC Runtime Library Exception.
23474
23475 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
23476
23477         PR debug/48466
23478         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
23479         as base_reg whatever register reg has been eliminated to, instead
23480         of hardcoding STACK_POINTER_REGNUM.
23481
23482 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
23483
23484         * doc/tm.texi.in: Document C target hooks as separate from general
23485         target hooks.
23486         * doc/tm.texi: Regenerate.
23487         * genhooks.c (struct hook_desc): Add docname field.
23488         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
23489         docname field.
23490         (hook_array): Include c-target.def.
23491         (emit_documentation): Use docname field in output.
23492         (emit_init_macros): Take docname argument.  Only emit definitions
23493         for hooks matching docname.
23494         (main): Expect additional arguments in all cases.  Pass argument
23495         to emit_init_macros.
23496         * target.def: Move initial macro definitions and comments to
23497         target-hooks-macros.h.
23498         (gcc_targetcm): Move to c-family/c-target.def.
23499         * target.h (targetcm): Move declaration to c-family/c-target.h.
23500         * targhooks.c (default_handle_c_option): Move to
23501         c-family/c-opts.c.
23502         * targhooks.h (default_handle_c_option): Move declaration to
23503         c-family/c-common.h.
23504         * target-hooks-macros.h: New file.
23505         * config.gcc (target_has_targetcm): Define and use to add to
23506         c_target_objs and cxx_target_objs.
23507         * config/default-c.c: New file.
23508         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
23509         of target.h and target-def.h.
23510         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
23511         (darwin_objc_construct_string, darwin_cfstring_ref_p,
23512         darwin_check_cfstring_format_arg): Make static.
23513         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23514         TARGET_STRING_OBJECT_REF_TYPE_P,
23515         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
23516         * config/darwin-protos.h (darwin_objc_construct_string,
23517         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
23518         declare.
23519         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23520         TARGET_STRING_OBJECT_REF_TYPE_P,
23521         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
23522         * config/t-darwin (darwin-c.o): Update dependencies.
23523         * system.h (TARGET_HAS_TARGETCM): Poison.
23524         * Makefile.in (TARGET_H): Update.
23525         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
23526         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
23527         (default-c.o): New target.
23528         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
23529         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
23530         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
23531         c-target.def.
23532         (build/genhooks.o): Update dependencies.
23533
23534 2011-04-06  Richard Guenther  <rguenther@suse.de>
23535
23536         * ipa-inline.c (enum inlining_mode): Remove.
23537         (cgraph_flatten): Use some other token.
23538         (cgraph_edge_early_inlinable_p): New function, split out from ...
23539         (cgraph_perform_always_inlining): New function, split out from ...
23540         (cgraph_decide_inlining_incrementally): ... here.
23541         (cgraph_mark_inline_edge): Adjust.
23542         (cgraph_early_inlining): Re-structure.
23543         (pass_early_inline): Require SSA form.
23544
23545 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
23546             Julian Brown  <julian@codesourcery.com>
23547             Mark Shinwell  <shinwell@codesourcery.com>
23548
23549         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
23550         LO_REGS only for Thumb-1.
23551         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
23552         be used in short instructions when optimising for size on Thumb-2.
23553
23554 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23555
23556         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
23557         associated with user returns to be preserved.
23558
23559 2011-04-06  Tristan Gingold  <gingold@adacore.com>
23560
23561         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
23562         symbol_queue_size, DBXOUT_DECR_NESTING,
23563         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
23564         if XCOFF_DEBUGGING_INFO.
23565
23566 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
23567
23568         * config/i386/i386.md (attribute isa): New.
23569         (attribute enabled): New.
23570         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
23571         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
23572         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
23573         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
23574         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
23575         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23576         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
23577         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
23578
23579         * config/i386/sse.md (VF): New mode iterator.
23580         (VF1): Ditto.
23581         (VF2): Ditto.
23582         (VF_128): Ditto.
23583         (SSEMODEF4): Remove.
23584         (attribute sse): Handle V8SF and V4DF modes.
23585         (<absneg:code><mode>2): Use VF mode iterator.
23586         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
23587         mode iterator.
23588         (<plusminus_insn><mode>3): Use VF mode iterator.
23589         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
23590         Use VF mode iterator.
23591         (<sse>_vm<plusminus_insn><mode>3): Merge with
23592         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
23593         (mul<mode>3): Use VF mode iterator.
23594         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
23595         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
23596         mode iterator.
23597         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
23598         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
23599         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
23600         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
23601         mode iterator.
23602         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
23603         Use VF1 mode iterator.
23604         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
23605         (sqrt<VF2:mode>2): New expander.
23606         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
23607         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
23608         and sqrtv2df2.  Use VF mode iterator.
23609         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
23610         mode iterator.
23611         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
23612         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
23613         Use VF1 mode iterator.
23614         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
23615         (<smaxmin:code><mode>3): Use VF mode iterator.
23616         (*<smaxmin:code><mode>3_finite): Merge with
23617         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
23618         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23619         (<sse>_vm<smaxmin:code><mode>2): Merge with
23620         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
23621         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
23622         mode iterator.
23623         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
23624         mode iterator.
23625         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
23626         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
23627         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
23628         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
23629         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
23630         VF mode iterator.
23631         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
23632         Use VF_128 mode iterator.
23633         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
23634         mode iterator.
23635         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
23636         VF_128 mode iterator.
23637         (vcond<mode>): Use VF mode iterator.
23638         * config/i386/predicates.md (sse_comparison_operator): Merge with
23639         avx_comparison_float_operator.  Do not declare as special_predicate.
23640         * config/i386/i386.c (struct builtin_description): Update for renamed
23641         compare patterns.
23642         (ix86_expand_args_builtin): Ditto.
23643         (ix86_expand_sse_compare_mask): Ditto.
23644
23645 2011-04-06  Richard Guenther  <rguenther@suse.de>
23646
23647         * tree-inline.c (estimate_num_insns): For calls simply account
23648         for all passed arguments and a used return value.
23649
23650 2011-04-06  Richard Guenther  <rguenther@suse.de>
23651
23652         PR tree-optimization/47663
23653         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
23654         call_stmt_time fields.
23655         (cgraph_edge_inlinable_p): Declare.
23656         (cgraph_edge_recursive_p): New inline function.
23657         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
23658         (cgraph_clone_edge): Copy it.
23659         * ipa-inline.c (cgraph_estimate_edge_time): New function.
23660         Account for call stmt time.
23661         (cgraph_estimate_time_after_inlining): Take edge argument.
23662         (cgraph_estimate_edge_growth): Account call stmt size.
23663         (cgraph_estimate_size_after_inlining): Take edge argument.
23664         (cgraph_mark_inline_edge): Adjust.
23665         (cgraph_check_inline_limits): Likewise.
23666         (cgraph_recursive_inlining_p): Remove.
23667         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
23668         (cgraph_decide_recursive_inlining): Take edge argument and
23669         adjust.
23670         (cgraph_decide_inlining_of_small_functions): Do not avoid
23671         diags for recursive inlining here.
23672         (cgraph_flatten): Adjust.
23673         (cgraph_decide_inlining_incrementally): Likewise.
23674         (estimate_function_body_sizes): Remove call cost handling.
23675         (compute_inline_parameters): Initialize caller edge call costs.
23676         (cgraph_estimate_edge_growth): New function.
23677         (cgraph_estimate_growth): Use it.
23678         (cgraph_edge_badness): Likewise.
23679         (cgraph_check_inline_limits): Take an edge argument.
23680         (cgraph_decide_inlining_of_small_functions): Adjust.
23681         (cgraph_decide_inlining): Likewise.
23682         * tree-inline.c (estimate_num_insns): Only account for call
23683         return value if it is used.
23684         (expand_call_inline): Avoid diagnostics on recursive inline
23685         functions here.
23686         * lto-cgraph.c (lto_output_edge): Output edge call costs.
23687         (input_edge): Input edge call costs.
23688
23689 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23690
23691         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
23692
23693 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
23694
23695         * doc/invoke.texi (Spec Files): Fix typo.
23696
23697 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23698
23699         * profile.c (branch_prob): Move declaration of local variable.  Remove
23700         obsolete ??? comment.  Expand the location explicitly instead of using
23701         the LOCATION_FILE and LOCATION_LINE macros.
23702
23703 2011-04-06  Wei Guozhi  <carrot@google.com>
23704
23705         PR target/47855
23706         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
23707         (arm_cond_branch): Likewise.
23708         (arm_cond_branch_reversed): Likewise.
23709         (arm_jump): Likewise.
23710         (push_multi): Likewise.
23711         * config/arm/constraints.md (Py): New constraint.
23712
23713 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23714
23715         PR bootstrap/48471
23716         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
23717         Move these...
23718         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
23719         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
23720         #ifdef DBX_DEBUGGING_INFO.
23721
23722 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
23723
23724         PR bootstrap/48403
23725         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
23726         if old and new states differ.
23727
23728 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
23729
23730         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
23731         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
23732         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23733         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
23734         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
23735         mcfv4e): Use Alias.
23736         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
23737         ColdFire options to -mcpu= options.
23738
23739 2011-04-05  Jeff Law  <law@redhat.com>
23740
23741         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
23742         check if BB is a successor of LOOP->header and return
23743         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
23744
23745 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
23746
23747         * cprop.c (struct reg_use): Remove.
23748         (reg_use_table): Make an array of RTX.
23749         (find_used_regs, constprop_register, local_cprop_pass,
23750         bypass_block): Simplify users of reg_use_table.
23751         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
23752         on one of the uses found by find_used_regs.
23753
23754 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23755
23756         PR bootstrap/48469
23757         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
23758         declaration.
23759
23760 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23761
23762         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
23763         as an rtx.
23764         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
23765
23766 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
23767
23768         PR middle-end/48441
23769         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
23770
23771 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23772
23773         * combine.c: Include obstack.h.
23774         (struct insn_link): Define.
23775         (uid_log_links): Adjust type.
23776         (FOR_EACH_LOG_LINK): New macro.
23777         (insn_link_obstack): Declare.
23778         (alloc_insn_link): Define.
23779         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
23780         type of link variables.
23781         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
23782         (try_combine, record_promoted_values, distribute_notes): Likewise.
23783         (distribute_links): Likewise.  Tweak prototype.
23784         (clear_log_links): Delete.
23785         (adjust_for_new_dest): Call alloc_insn_link.
23786         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
23787
23788 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23789
23790         * gcse.c (modify_mem_list): Convert to an array of VECs.
23791         (canon_modify_mem_list, compute_transp): Tweak formatting.
23792         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
23793         (load_killed_in_block_p): Likewise.
23794         (record_last_mem_set_info): Likewise.
23795         (clear_modify_mem_tables): Likewise.
23796
23797 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23798
23799         PR middle-end/48461
23800         * function.c (emit_use_return_register_into_block): Only define if
23801         HAVE_return.
23802
23803 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
23804
23805         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
23806
23807 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
23808
23809         * config/rx/rx-opts.h: New.
23810         * config/rx/rx.c (rx_cpu_type): Remove.
23811         (rx_handle_option): Don't assert that global structures are in
23812         use.  Access variables via opts pointer.  Defer most handling of
23813         OPT_mint_register_.  Use error_at.
23814         (rx_option_override): Handle deferred OPT_mint_register_ here.
23815         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
23816         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
23817         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
23818         (rx_cpu_types): New Enum and EnumValue entries.
23819         (mint-register=): Use Defer and use Var accordingly.
23820
23821 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23822
23823         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
23824         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
23825         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
23826         Move these...
23827         (debug_free_queue, debug_nesting, symbol_queue_index):
23828         ...and these...
23829         * dbxout.c: ...to here.  Make static.
23830
23831 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23832
23833         * gcse.c (modify_pair): Define.  Define a VEC of it.
23834         (canon_modify_mem_list): Convert to an array of VECs.
23835         (free_insn_expr_list_list): Delete.
23836         (clear_modify_mem_tables): Call VEC_free instead.
23837         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
23838         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
23839         (canon_list_insert, compute_transp): Likewise.
23840
23841 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23842
23843         PR target/43920
23844         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
23845         for size.
23846
23847 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23848
23849         PR target/43920
23850         * function.c (emit_use_return_register_into_block): New function.
23851         (thread_prologue_and_epilogue_insns): Use
23852         emit_use_return_register_into_block.
23853
23854 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23855
23856         PR target/43920
23857         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
23858         insn.
23859
23860 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23861
23862         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
23863
23864 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
23865
23866         * config/arm/arm.md (define_constants for unspec): Replace with
23867         define_c_enum.
23868         (define_constants for unspecv): Replace with define_c_enum.
23869         * config/arm/neon.md (define_constants for unspec): Replace with
23870         define_c_enum.
23871
23872 2011-04-04  Richard Henderson  <rth@redhat.com>
23873
23874         PR bootstrap/48400
23875         * dwarf2out.c (output_line_info): Always emit line info from
23876         at least one section.
23877         (dwarf2out_init): Create text_section_line_info here ...
23878         (set_cur_line_info_table): ... not here.
23879
23880 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
23881
23882         PR target/48380
23883         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
23884         not called.
23885
23886         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
23887
23888 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
23889
23890         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
23891         (expr_equiv_p): Remove.
23892         (insert_set_in_table): Look at <dest, src> pair instead of expr.
23893         (hash_scan_set): Update call to insert_set_in_table.
23894         (dump_hash_table): Dump <dest, src> pair.
23895         (lookup_set): Simplify.  Lookup <dest, src> pair.
23896         (compute_transp): Remove, fold heavily simplified code into...
23897         (compute_local_properties): ...here.  Expect COMP and TRANSP
23898         unconditionally.
23899         (find_avail_set): Take set directly from struct expr.
23900         (find_bypass-set): Likewise.
23901         (bypass_block): Likewise.
23902         (cprop_insn): Likewise.  Remove redundant INSN_P test.
23903
23904         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
23905         checks on form of COND from find_implicit_sets to here.
23906         (find_implicit_sets): Cleanup control flow. Split critical edges
23907         if it exposes implicit sets.  Allocate/resize implicit_sets as
23908         necessary.
23909         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
23910         changed something.  Run df_analyze after find_implicit_sets if any
23911         edges were split.  Do not allocate implicit_sets here.
23912
23913         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
23914         (gcse_obstack): Renamed to cprop_obstack.
23915         (GNEW, GNEWVEC, GNEWVAR): Remove.
23916         (gmalloc): Remove.
23917         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
23918         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
23919         (gcse_alloc): Likewise, and rename to cprop_alloc.
23920         (alloc_gcse_men, free_gcse_mem): Remove.
23921         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
23922         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
23923         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
23924
23925         * cprop.c (oprs_not_set_p): Remove.
23926         (mark_set, mark_clobber): Remove.
23927         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
23928         (reg_not_set_p): New function.
23929         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
23930         (cprop_insn): Likewise.
23931         (cprop_jump): Use FOR_EACH_EDGE.
23932
23933 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
23934
23935         PR bootstrap/48403
23936         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
23937         (rank_for_schedule): Use scheduled_insns vector instead of
23938         last_scheduled_insn.
23939         (ok_for_early_queue_removal): Likewise.
23940         (queue_to_ready): Search forward in nonscheduled_insns_begin if
23941         we have a dbg_cnt.
23942         (choose_ready): Likewise.
23943         (commit_schedule): Use VEC_iterate.
23944         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
23945         a dbg_cnt, use it and ensure the first insn is in the ready list.
23946         (haifa_sched_init): Allocate scheduled_insns.
23947         (sched_extend_ready_list): Don't allocate it; reserve space.
23948         (haifa_sched_finish): Free it.
23949
23950 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
23951
23952         * optc-gen.awk: Always remove type from Variable entry before
23953         recording in var_seen.
23954
23955 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
23956
23957         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
23958         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
23959         call to tidy_fallthru_edges.
23960
23961 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
23962
23963         * doc/options.texi (ToLower): Document.
23964         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
23965         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
23966         * opts.h (cl_option): Add cl_tolower field.
23967         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
23968         arguments with lowercase strings.
23969         * config/rx/rx.opt (mcpu=): Add ToLower.
23970         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
23971         argument.
23972
23973 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
23974
23975         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
23976
23977 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
23978
23979         * config/vax/vax.c: Include reload.h.
23980
23981 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
23982
23983         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
23984         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23985         (sparc_preferred_reload_class): New function.
23986
23987 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
23988
23989         PR debug/48401
23990         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23991         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
23992
23993 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
23994
23995         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
23996         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
23997
23998 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
23999
24000         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
24001         (ASM_OUTPUT_ALIGNED_BSS): Define.
24002
24003 2011-04-03  Michael Matz  <matz@suse.de>
24004
24005         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
24006         and next_slot members.
24007         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
24008         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
24009         (lto_streamer_cache_append): Declare.
24010         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
24011         unsigned index, remove offset parameter, ensure that we append
24012         or update existing entries.
24013         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
24014         parameter, update next_slot for append.
24015         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
24016         parameter.
24017         (lto_streamer_cache_insert_at): Likewise.
24018         (lto_streamer_cache_append): New function.
24019         (lto_streamer_cache_lookup): Use unsigned index.
24020         (lto_streamer_cache_get): Likewise.
24021         (lto_record_common_node): Don't test tree_node_can_be_shared.
24022         (preload_common_node): Adjust call to lto_streamer_cache_insert.
24023         (lto_streamer_cache_delete): Don't free offsets member.
24024         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
24025         (lto_output_string_with_length): Use lto_output_data_stream.
24026         (lto_output_tree_header): Remove ix parameter, don't write it.
24027         (lto_output_builtin_tree): Likewise.
24028         (lto_write_tree): Adjust callers to above, don't track and write
24029         offset, write unsigned index.
24030         (output_unreferenced_globals): Don't emit all global vars.
24031         (write_global_references): Use unsigned indices.
24032         (lto_output_decl_state_refs): Likewise.
24033         (write_symbol): Likewise.
24034         * lto-streamer-in.c (lto_input_chain): Move earlier.
24035         (input_function): Use unsigned index.
24036         (input_alias_pairs): Don't read and then ignore all global vars.
24037         (lto_materialize_tree): Remove ix_p parameter, don't read index,
24038         don't pass it back, use lto_streamer_cache_append.
24039         (lto_register_var_decl_in_symtab): Use unsigned index.
24040         (lto_register_function_decl_in_symtab): Likewise.
24041         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
24042         index.
24043         (lto_get_builtin_tree): Don't read index, use
24044         lto_streamer_cache_append.
24045         (lto_read_tree): Adjust call to lto_materialize_tree.
24046
24047         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
24048         don't use function calls in arguments to MIN.
24049
24050         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
24051         twice.
24052
24053         * gimple.c (gimple_type_leader_entry): Mark deletable.
24054
24055 2011-04-03  Alan Modra  <amodra@gmail.com>
24056
24057         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
24058
24059 2011-04-03  Michael Matz  <matz@suse.de>
24060
24061         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
24062         an integer.
24063         * tree.h (tree_decl_non_common.vindex): Adjust comment.
24064
24065 2011-04-03  Michael Matz  <matz@suse.de>
24066
24067         * cgraphbuild.c (record_reference): Canonicalize constructor values.
24068         * gimple-fold.c (canonicalize_constructor_val): Accept being called
24069         without function context.
24070         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
24071         current_function_decl and cfun.
24072
24073 2011-04-03  Michael Matz  <matz@suse.de>
24074
24075         * tree.c (decl_init_priority_insert): Don't create entry for
24076         default priority.
24077         (decl_fini_priority_insert): Ditto.
24078         (fields_compatible_p, find_compatible_field): Remove.
24079         * tree.h (fields_compatible_p, find_compatible_field): Remove.
24080         * gimple.c (gimple_compare_field_offset): Adjust block comment.
24081
24082 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
24083
24084         * combine.c (try_combine): Remove useless local variable.
24085
24086 2011-04-03  Richard Guenther  <rguenther@suse.de>
24087             Ira Rosen  <ira.rosen@linaro.org>
24088
24089         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
24090         non-variable offsets and compare the remaining bases of the two
24091         accesses instead of looking for exact same data-ref.
24092
24093 2011-04-02  Kai Tietz  <ktietz@redhat.com>
24094
24095         PR target/48416
24096         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
24097
24098         * i386.c (ix86_is_msabi_thiscall): New helper function.
24099         (ix86_is_type_thiscall): New helper function.
24100         (ix86_comp_type_attributes): Handle thiscall for method-functions
24101         special.
24102         (init_cumulative_args): Likewise.
24103         (find_drap_reg): Likewise.
24104         (ix86_static_chain): Likewise.
24105         (x86_this_parameter): Likewise.
24106         (x86_output_mi_thunk): Likewise.
24107
24108 2011-04-01  Olivier Hainque  <hainque@adacore.com>
24109             Nicolas Setton  <setton@adacore.com>
24110             Eric Botcazou  <ebotcazou@adacore.com>
24111
24112         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
24113         (add_gnat_descriptive_type_attribute): New function.
24114         (gen_array_type_die): Call it.
24115         (gen_enumeration_type_die): Likewise.
24116         (gen_struct_or_union_type_die): Likewise.
24117         (modified_type_die): Likewise.
24118         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
24119         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
24120         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
24121
24122 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
24123
24124         PR bootstrap/48148
24125         * dwarf2out.c (resolve_addr): Don't call force_decl_die
24126         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
24127
24128         Revert:
24129         2011-03-17  Richard Guenther  <rguenther@suse.de>
24130
24131         PR bootstrap/48148
24132         * lto-cgraph.c (input_overwrite_node): Clear the abstract
24133         origin for decls in other ltrans units.
24134         (input_varpool_node): Likewise.
24135
24136 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
24137
24138         PR middle-end/48335
24139         * expr.c (expand_assignment): Handle all possibilities
24140         if TO_RTX is CONCAT.
24141         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
24142         (store_split_bit_field): If SUBREG_REG (op0) or
24143         op0 itself has smaller mode than word, return it
24144         for offset 0 and const0_rtx for out-of-bounds stores.
24145         If word is const0_rtx, skip it.
24146
24147 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
24148
24149         * config/h8300/h8300.c (print_operand_address): Rename to...
24150         (h8300_print_operand_address): ...this. Make static. Adjust comments.
24151         Call h8300_print_operand and h8300_print_operand_address instead of
24152         print_operand and print_operand_address. Declare.
24153         (print_operand): Renake to...
24154         (h8300_print_operand): ...this. Make static. Adjust comments.
24155         Call h8300_print_operand instead of print_operand. Declare.
24156         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
24157         (h8300_register_move_cost): Likewise.
24158         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
24159         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
24160         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
24161         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
24162         * config/h8300/h8300-protos.h (print_operand): Delete.
24163         (print_operand_address): Delete.
24164
24165 2011-04-01  Richard Henderson  <rth@redhat.com>
24166
24167         PR 48400
24168         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
24169         in strict mode before dwarf4.  Re-order tests to early out
24170         before switching sections.
24171
24172 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
24173
24174         * config/h8300/constraints.md: New file.
24175         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
24176         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
24177         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
24178         * config/h8300/predicates.md (bit_operand): Likewise.
24179         (incdec_operand): Use satisfies_constraint_M and
24180         satisfies_constraint_O.  Don't use C code block.
24181         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
24182         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
24183         (compute_mov_length): Use satisfies_constraint_G.
24184         (fix_bit_operand): Use satisfies_constraint_U.
24185         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
24186         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
24187         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
24188         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
24189         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
24190         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
24191         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24192         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
24193         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
24194         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
24195         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
24196         (EXTRA_MEMORY_CONSTRAINT): Delete.
24197
24198 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
24199             Michael Meissner  <meissner@linux.vnet.ibm.com>
24200
24201         PR target/48262
24202         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
24203         operands, as per the specifications.
24204
24205         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
24206         (vec_extract_evenv4sf): Ditto.
24207         (vec_extract_evenv8hi): Ditto.
24208         (vec_extract_evenv16qi): Ditto.
24209         (vec_extract_oddv4si): Ditto.
24210
24211 2011-03-31  Mark Wielaard  <mjw@redhat.com>
24212
24213         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
24214         high_pc attribute if the CU has no associated code. Only output
24215         DW_AT_entry_pc for CU if not generating strict dwarf and
24216         dwarf_version < 4.
24217
24218 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
24219
24220         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
24221         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
24222         out of ...
24223         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
24224         * final.c (final_start_function): Call the new function rather
24225         than using a NULL argument for dwarf2out_frame_debug.
24226
24227         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
24228         that contains the prologue.
24229
24230         * haifa-sched.c (queue_insn): New arg REASON.  All callers
24231         changed.  Print it in debugging output.
24232
24233         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
24234
24235         * sched-ebb.c (begin_schedule_ready): Remove second argument.
24236         Split most of the code into...
24237         (begin_move_insn): ... here.  New function.
24238         (ebb_sched_info): Add a pointer to it.
24239         * haifa-sched.c (scheduled_insns): New static variable.
24240         (sched_extend_ready_list): Allocate it.
24241         (schedule_block): Use it to record the order of scheduled insns.
24242         Perform RTL changes to move insns only after all scheduling
24243         decisions have been made.
24244         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
24245         begin_move_insn field.
24246         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
24247         * sched-int.h (struct haifa_sched_info): Remove second argument
24248         from begin_schedule_ready hook.  Add new member begin_move_insn.
24249         * sched-rgn.c (begin_schedule_ready): Remove second argument.
24250         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
24251
24252         * haifa-sched.c (prune_ready_list): New function, broken out of
24253         schedule_block.
24254         (schedule_block): Use it.
24255
24256 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24257
24258         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
24259
24260 2011-04-01  Kai Tietz  <ktietz@redhat.com>
24261
24262         * config.gcc (*-*-mingw*): Allow as option the
24263         posix threading model.
24264         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
24265         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
24266         definition.
24267         (CPP_SPEC): Add pthread/no-pthread handling.
24268         (LIB_SPEC): Likewise.
24269         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
24270         (LIB_SPEC): Likewise.
24271         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
24272         flag to pass -pthread option for shared libgcc build.
24273         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
24274         for shared libgcc build.
24275         * config/i386/t-mingw-pthread: New file.
24276         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
24277         New define to enable use of library pthread by default.
24278         * config/i386/mingw.opt (pthread): New driver option.
24279         (no-pthread): New driver option.
24280         * config/i386/cygming.opt: Make sure trailing empty line is retained.
24281         * config/i386/mingw-w64.opt: Likewise.
24282
24283 2011-04-01  Gary Funck  <gary@intrepid.com>
24284
24285         * c-decl.c (grokdeclarator): Fix formatting.
24286
24287 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
24288
24289         * expr.c (emit_block_move_via_movmem): Use n_generator_args
24290         instead of n_operands.
24291         (set_storage_via_setmem): Likewise.
24292         * optabs.c (maybe_gen_insn): Likewise.
24293         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
24294         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
24295         (mips_expand_builtin_direct): Likewise.
24296         * config/spu/spu.c (expand_builtin_args): Likewise.
24297
24298 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
24299
24300         * recog.h (insn_data_d): Add n_generator_args.
24301         * genoutput.c (data): Likewise.
24302         (output_insn_data): Print it.
24303         (max_opno, num_dups): Delete.
24304         (scan_operands): Just fill in "d->operand[...]".
24305         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
24306
24307 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
24308
24309         * gensupport.h (pattern_stats): New structure.
24310         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
24311         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
24312         (max_operand_1, max_operand_vec): Delete.
24313         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
24314
24315 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
24316
24317         * emit-rtl.c (emit_pattern_after_setloc): New function.
24318         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
24319         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
24320         (emit_pattern_after): New function.
24321         (emit_insn_after, emit_jump_insn_after): Call it.
24322         (emit_call_insn_after, emit_debug_insn_after): Likewise.
24323         (emit_pattern_before_setloc): New function.
24324         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
24325         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
24326         Likewise.
24327         (emit_pattern_before): New function.
24328         (emit_insn_before, emit_jump_insn_before): Call it.
24329         (emit_call_insn_before, emit_debug_insn_before): Likewise.
24330
24331 2011-03-31  Richard Henderson  <rth@redhat.com>
24332
24333         * dwarf2out.c (dw_separate_line_info_ref): Remove.
24334         (dw_separate_line_info_entry): Remove.
24335         (enum dw_line_info_opcode): New.
24336         (dw_line_info_entry): Use it.
24337         (dw_line_info_table, dw_line_info_table_p): New.
24338         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
24339         (line_info_table, line_info_label_num): Remove.
24340         (line_info_table_in_use): Remove.
24341         (separate_line_info_table): Remove.
24342         (separate_line_info_table_allocated): Remove.
24343         (separate_line_info_table_in_use): Remove.
24344         (LINE_INFO_TABLE_INCREMENT): Remove.
24345         (line_info_label_num): New.
24346         (cur_line_info_table): New.
24347         (text_section_line_info, cold_text_section_line_info): New.
24348         (separate_line_info): New.
24349         (SEPARATE_LINE_CODE_LABEL): Remove.
24350         (print_dwarf_line_table): Remove.
24351         (debug_dwarf): Don't dump it.
24352         (output_one_line_info_table): New.
24353         (output_line_info): Use it.
24354         (new_line_info_table): New.
24355         (set_cur_line_info_table): New.
24356         (dwarf2out_switch_text_section): Use it.
24357         (dwarf2out_begin_function): Likewise.
24358         (push_dw_line_info_entry): New.
24359         (dwarf2out_source_line): Rewrite for new line info tables.
24360         (dwarf2out_init): Remove dead initailizations.
24361
24362 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
24363
24364         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
24365         various flags.
24366         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
24367         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
24368         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
24369         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
24370         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
24371         * opt-functions.awk (flag_init, switch_bit_fields): New.
24372         (switch_flags): Don't handle flags moved to bit-fields.  Don't
24373         generate CL_MISSING_OK or CL_SAVE.
24374         * optc-gen.awk: Update to generate bit-field output as well as
24375         flags field.
24376         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
24377         bit-field instead of CL_REJECT_DRIVER flag.
24378         * opts-common.c (generate_canonical_option,
24379         decode_cmdline_option): Use bit-fields instead of CL_* flags.
24380         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
24381         instead of CL_REJECT_NEGATIVE flag.
24382         * toplev.c (print_switch_values): Use cl_report bit-field instead
24383         of CL_REPORT flag.
24384
24385 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
24386
24387         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
24388         a zero minimum index only if it is redundant.
24389
24390 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
24391
24392         PR rtl-optimization/48381
24393         * ira-color.c (assign_hard_reg): Use hard reg set intersection
24394         instead of ira_class_hard_reg_index for calculating conflicting
24395         hard registers.
24396
24397 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
24398
24399         * cprop.c: Clean up hash table building.
24400         (reg_avail_info): Remove.
24401         (oprs_available_p): Remove.
24402         (record_last_reg_set_info): Remove.
24403         (record_last_set_info): Remove.
24404         (reg_available_p): New function.
24405         (gcse_constant_p): Do not treat unfolded conditions as constants.
24406         (make_set_regs_unavailable): New function.
24407         (hash_scan_set): Simplify with new reg_available_p.
24408         (compute_hash_table_work): Traverse insns stream only once.
24409         Do not compute reg_avail_info. Traverse insns in reverse order.
24410         Record implicit sets after recording explicit sets from the block.
24411
24412 2011-03-31  Michael Matz  <matz@suse.de>
24413
24414         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
24415
24416 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
24417
24418         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
24419         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
24420         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24421         (h8300_mode_dependent_address_p): New function.
24422         (h8300_get_index): Make static.
24423
24424 2011-03-31  Jeff Law  <law@redhat.com>
24425
24426         * reload1.c (elimination_effects): Fix typo in recent change.
24427
24428         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
24429         typo potentially leading to null pointer dereference.
24430
24431         * caller-save.c (new_saved_hard_reg): Eliminate return value.
24432         (setup_save_areas): Corresponding changes to avoid useless
24433         assignments.
24434
24435         * jump.c (reversed_comparison_code_parts): Avoid successive return
24436         statements when REVERSE_CONDITION is defined.
24437
24438         * expr.c (expand_assignment): Avoid useless assignments.
24439         (expand_expr_real_1): Likewise.
24440         (expand_expr_real_2): Avoid useless statements.
24441
24442         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
24443
24444         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
24445
24446         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
24447         statements.
24448
24449         * stmt.c (expand_expr_stmt): Avoid useless assignment.
24450
24451 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
24452
24453         PR target/47109
24454         * doc/tm.texi.in (TARGET_VERSION): Remove.
24455         * doc/tm.texi: Regenerate.
24456         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
24457         * collect2.c (main): Don't use TARGET_VERSION.
24458         * mips-tdump.c (main): Don't use TARGET_VERSION.
24459         * mips-tfile.c (main): Don't use TARGET_VERSION.
24460         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
24461         * config/rs6000/vxworksae.h: Remove.
24462         * config/alpha/alpha.h (TARGET_VERSION): Remove.
24463         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
24464         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
24465         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
24466         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24467         * config/arm/arm.h (TARGET_VERSION): Remove.
24468         * config/arm/coff.h (TARGET_VERSION): Remove.
24469         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
24470         * config/arm/elf.h (TARGET_VERSION): Remove.
24471         * config/arm/freebsd.h (TARGET_VERSION): Remove.
24472         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
24473         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
24474         * config/arm/pe.h (TARGET_VERSION): Remove.
24475         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
24476         * config/arm/semi.h (TARGET_VERSION): Remove.
24477         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
24478         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
24479         * config/arm/vxworks.h (TARGET_VERSION): Remove.
24480         * config/avr/avr.h (TARGET_VERSION): Remove.
24481         * config/bfin/bfin.h (TARGET_VERSION): Remove.
24482         * config/fr30/fr30.h (TARGET_VERSION): Remove.
24483         * config/frv/frv.h (TARGET_VERSION): Remove.
24484         * config/h8300/h8300.h (TARGET_VERSION): Remove.
24485         * config/i386/cygwin.h (TARGET_VERSION): Remove.
24486         * config/i386/darwin.h (TARGET_VERSION): Remove.
24487         * config/i386/darwin64.h (TARGET_VERSION): Remove.
24488         * config/i386/djgpp.h (TARGET_VERSION): Remove.
24489         * config/i386/freebsd.h (TARGET_VERSION): Remove.
24490         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
24491         * config/i386/gnu.h (TARGET_VERSION): Remove.
24492         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
24493         * config/i386/i386elf.h (TARGET_VERSION): Remove.
24494         * config/i386/linux.h (TARGET_VERSION): Remove.
24495         * config/i386/linux64.h (TARGET_VERSION): Remove.
24496         * config/i386/lynx.h (TARGET_VERSION): Remove.
24497         * config/i386/mingw32.h (TARGET_VERSION): Remove.
24498         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
24499         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
24500         * config/i386/netware.h (TARGET_VERSION): Remove.
24501         * config/i386/nto.h (TARGET_VERSION): Remove.
24502         * config/i386/openbsd.h (TARGET_VERSION): Remove.
24503         * config/i386/vxworks.h (TARGET_VERSION): Remove.
24504         * config/ia64/elf.h (TARGET_VERSION): Remove.
24505         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
24506         * config/ia64/hpux.h (TARGET_VERSION): Remove.
24507         * config/ia64/linux.h (TARGET_VERSION): Remove.
24508         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24509         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
24510         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24511         * config/lm32/lm32.h (TARGET_VERSION): Remove.
24512         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
24513         * config/m32c/m32c.h (TARGET_VERSION): Remove.
24514         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
24515         * config/m32r/m32r.h (TARGET_VERSION): Remove.
24516         * config/m68k/linux.h (TARGET_VERSION): Remove.
24517         * config/m68k/m68k.h (TARGET_VERSION): Remove.
24518         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
24519         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
24520         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
24521         * config/mep/mep.h (TARGET_VERSION): Remove.
24522         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
24523         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24524         * config/mips/iris6.h (MACHINE_TYPE): Remove.
24525         * config/mips/linux.h (TARGET_VERSION): Remove.
24526         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
24527         * config/mips/vxworks.h (TARGET_VERSION): Remove.
24528         * config/mmix/mmix.h (TARGET_VERSION): Remove.
24529         * config/mn10300/linux.h (TARGET_VERSION): Remove.
24530         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
24531         * config/pa/pa.h (TARGET_VERSION): Remove.
24532         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
24533         * config/picochip/picochip.h (TARGET_VERSION): Remove.
24534         * config/rs6000/aix.h (TARGET_VERSION): Remove.
24535         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
24536         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
24537         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
24538         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
24539         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
24540         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
24541         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
24542         * config/rs6000/linux.h (TARGET_VERSION): Remove.
24543         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
24544         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
24545         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
24546         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
24547         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
24548         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
24549         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
24550         * config/s390/linux.h (TARGET_VERSION): Remove.
24551         * config/s390/s390.h (TARGET_VERSION): Remove.
24552         * config/s390/tpf.h (TARGET_VERSION): Remove.
24553         * config/score/score.h (TARGET_VERSION): Remove.
24554         * config/sh/linux.h (TARGET_VERSION): Remove.
24555         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
24556         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
24557         * config/sh/sh.h (TARGET_VERSION): Remove.
24558         * config/sh/sh64.h (TARGET_VERSION): Remove.
24559         * config/sh/superh.h (TARGET_VERSION): Remove.
24560         * config/sh/vxworks.h (TARGET_VERSION): Remove.
24561         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
24562         * config/sparc/linux.h (TARGET_VERSION): Remove.
24563         * config/sparc/linux64.h (TARGET_VERSION): Remove.
24564         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
24565         TARGET_NAME32, TARGET_NAME): Remove.
24566         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
24567         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
24568         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
24569         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
24570         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
24571         * config/spu/spu.h (TARGET_VERSION): Remove.
24572         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
24573         * config/v850/v850.h (TARGET_VERSION): Remove.
24574         * config/vax/linux.h (TARGET_VERSION): Remove.
24575         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
24576         * config/xtensa/elf.h (TARGET_VERSION): Remove.
24577         * config/xtensa/linux.h (TARGET_VERSION): Remove.
24578
24579 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
24580
24581         PR target/48142
24582         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
24583         frame-related from frame-unrelated adjustments to the stack pointer.
24584
24585 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
24586
24587         * common.opt (fdebug-types-section): Move earlier.
24588         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
24589
24590 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
24591
24592         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
24593         var.
24594
24595 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
24596
24597         * tree.h (CASE_CHAIN): Define.
24598         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
24599         (gimple_redirect_edge_and_branch): Likewise.
24600
24601 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24602
24603         PR middle-end/48367
24604         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
24605         calculation.
24606
24607 2011-03-30  Jeff Law  <law@redhat.com>
24608
24609         * PR bootstrap/48371
24610         * reload1.c (reload): Fix botch in last change.
24611
24612         * reload.h (struct reload): Fix typo introduced in last change.
24613
24614 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24615
24616         * config/arm/arm.opt (mhard-float, msoft-float): Mark
24617         Undocumented.  Remove help text.
24618         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
24619         -mhard-float.
24620
24621 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24622
24623         * doc/options.texi (NegativeAlias): Document.
24624         (Alias): Mention NegativeAlias.
24625         * opt-functions.awk: Handle NegativeAlias.
24626         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
24627         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
24628         * opts.h (CL_NEGATIVE_ALIAS): Define.
24629         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
24630         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
24631         OPT_mspe_.
24632         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
24633         Alias entries.
24634         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24635         mno-spe and mno-isel instead of mspe=no and -misel=no.
24636
24637 2011-03-29  Mark Wielaard  <mjw@redhat.com>
24638
24639         * common.opt (fdebug-types-section): New flag.
24640         * doc/invoke.texi: Document new -fno-debug-types-section flag.
24641         * dwarf2out.c (use_debug_types): New define.
24642         (struct die_struct): Mark die_id with GTY desc use_debug_types.
24643         (print_die): Guard output of type unit signatures using
24644         use_debug_types.
24645         (build_abbrev_table): Replace assert of dwarf_version >= 4
24646         with assert on use_debug_types.
24647         (size_of_die): Likewise.
24648         (unmark_dies): Likewise.
24649         (value_format): Decide AT_ref_external form on use_debug_types.
24650         (output_die): Replace dwarf_version version check guard with
24651         use_debug_types where appropriate.
24652         (modified_type_die): Likewise.
24653         (gen_reference_type_die): Likewise.
24654         (dwarf2out_start_source_file): Likewise.
24655         (dwarf2out_end_source_file): Likewise.
24656         (prune_unused_types_walk_attribs): Likewise.
24657         (dwarf2out_finish): Likewise.
24658
24659 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24660
24661         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
24662
24663 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24664
24665         PR rtl-optimization/48332
24666         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
24667         mode of input operand N and modeN to its actual mode.
24668
24669 2011-03-30  Jeff Law  <law@redhat.com>
24670
24671         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
24672         define accessor macro.
24673         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
24674         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
24675         (reg_equiv_init): Likewise.
24676         (reg_equivs_size): New variable.
24677         (reg_equiv_init_size): Remove.
24678         (allocate_initial_values): Move prototype to here from....
24679         * integrate.h (allocate_initial_values): Remove prototype.
24680         * integrate.c: Include reload.h.
24681         (allocate_initial_values): Corresponding changes.
24682         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
24683         (fix_reg_equiv_init, no_equiv): Corresponding changes.
24684         (update_equiv_regs): Corresponding changes.
24685         (ira): Corresponding changes.
24686         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
24687         (push_secondary_reload): Corresponding changes.
24688         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
24689         (make_memloc, find_reloads_address): Corresponding changes.
24690         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
24691         (find_reloads_address_1): Corresponding changes.
24692         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
24693         (refers_to_regno_for_reload_p): Corresponding changes.
24694         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
24695         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
24696         * reload1.c: Include ggc.h.
24697         (grow_reg_equivs): New function.
24698         (replace_pseudos_in, reload): Corresponding changes.
24699         (calculate_needs_all_insns, alter_regs): Corresponding changes.
24700         (eliminate_regs_1, elimination_effects): Corresponding changes.
24701         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
24702         (delete_output_reload): Likewise.
24703         * caller-save.c (mark_referenced_regs): Corresponding changes.
24704         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
24705         * frv/predicates.md (frv_load_operand): Corresponding changes.
24706         * microblaze/microblaze.c (double_memory_operand): Corresponding
24707         changes.
24708         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
24709         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
24710         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
24711         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
24712         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
24713         changes.
24714         * pa/pa.c (emit_move_sequence): Corresponding changes.
24715         * vax/vax.c (nonindexed_address_p): Corresponding changes.
24716
24717 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24718
24719         PR target/47551
24720         * config/arm/arm.c (coproc_secondary_reload_class): Handle
24721         structure modes.  Don't check neon_vector_mem_operand for
24722         vector or structure modes.
24723
24724 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24725             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24726
24727         PR target/43590
24728         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
24729         operand 1 and reshuffle the operands to match.
24730         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
24731
24732 2011-03-30  Christian Schüler  <cschueler@gmx.de>
24733
24734         PR driver/48208
24735         * config/c.opt (F): Added 'Driver' to -F option.
24736
24737         PR driver/48260
24738         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
24739           handler function.
24740         * config/darwin.opt: Added '-arch' option.
24741
24742 2011-03-30  Nick Clifton  <nickc@redhat.com>
24743
24744         * config/rx/rx.md: Add peepholes and patterns to combine
24745         extending loads and simple arithmetic instructions.
24746         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
24747         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
24748         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
24749         modes to use pre-decrement and post-increment addressing.
24750         (rx_is_restricted_memory_address): Add range checking of REG+INT
24751         addresses.
24752         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
24753         (rx_memory_move_cost): Adjust cost of stores.
24754         (rx_adjust_insn_length): New function.
24755
24756 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
24757
24758         PR c/48305
24759         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24760         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
24761         matching arg00/arg01 types.
24762
24763 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
24764
24765         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
24766         last_location to UNKNOWN_LOCATION.
24767
24768 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
24769
24770         PR target/48349
24771         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
24772         FLOAT_SSE_REGS.
24773
24774 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24775             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24776
24777         PR bootstrap/48337
24778         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
24779         Init(PROCESSOR_V7).
24780         (sparc_cpu): Likewise.
24781         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
24782         PROCESSOR_V7.
24783
24784 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24785
24786         PR target/48336
24787         PR middle-end/48342
24788         PR rtl-optimization/48345
24789         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
24790         hard regs for given mode from profitable regs when doing secondary
24791         allocation.
24792
24793 2011-03-29  Jeff Law  <law@redhat.com>
24794
24795         PR bootstrap/48327
24796         * tree-ssa-threadupdate.c (struct redirection_data): Remove
24797         do_not_duplicate field.
24798         (lookup_redirection_data): Corresponding changes.
24799         (create_duplicates): Always create a template block.
24800         (redirect_edges): Remove code which reused the original block
24801         when it was going to become unreachable code.
24802         (thread_block): Don't set do_not_duplicate field.
24803
24804 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
24805
24806         * lto-opts.c (register_user_option_p, lto_register_user_option):
24807         Make type argument unsigned.
24808         * lto-streamer.h (lto_register_user_option): Make type argument
24809         unsigned.
24810         * opth-gen.awk: Make CL_* macros unsigned.
24811         * opts-common.c (find_opt): Make lang_mask argument unsigned.
24812         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
24813         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
24814         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
24815         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
24816         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
24817         (find_opt): Make lang_mask argument unsigned.
24818
24819 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24820
24821         PR rtl-optimization/48331
24822         PR rtl-optimization/48334
24823         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
24824         for any used algorithm.
24825
24826 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24827
24828         * ira-conflicts.c (build_object_conflicts): Add unused attribute
24829         to parent_max.
24830
24831 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
24832
24833         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
24834         (alpha_option_override): Don't set alpha_sr_alias_set.
24835         (emit_frame_store_1): Use gen_frame_mem rather than calling
24836         set_mem_alias_set.
24837         (alpha_expand_epilogue): Ditto.
24838
24839 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
24840
24841         PR tree-optimization/48290
24842         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
24843         vectorization, check that relevant phis in the basic block after
24844         the inner loop are really inner loop's exit phis.
24845
24846 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
24847
24848         PR debug/48190
24849         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
24850         (cached_dw_loc_list_def): New structure.
24851         (cached_dw_loc_list): New typedef.
24852         (cached_dw_loc_list_table): New variable.
24853         (cached_dw_loc_list_table_hash): New function.
24854         (cached_dw_loc_list_table_eq): Likewise.
24855         (add_location_or_const_value_attribute): Take a bool cache_p.
24856         Cache the list when the parameter is true.
24857         (gen_formal_parameter_die): Update caller.
24858         (gen_variable_die): Likewise.
24859         (dwarf2out_finish): Likewise.
24860         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
24861         while generating debug info for the decl.
24862         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
24863         (dwarf2out_init): Initialize cached_dw_loc_list_table.
24864         (resolve_addr): Cache the result of resolving a chain of
24865         location lists.
24866
24867 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
24868
24869         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
24870         conflict object hard regset nodes have intersecting hard reg sets.
24871
24872         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
24873         after regstat_init_n_sets_and_refs.
24874
24875         * ira.c: Add more comments at the top.
24876         (setup_stack_reg_pressure_class, setup_pressure_classes):
24877         Add comments how we compute the register pressure classes.
24878         (setup_allocno_and_important_classes): Add more comments.
24879         (setup_class_translate_array, reorder_important_classes)
24880         (setup_reg_class_relations): Add comments.
24881
24882         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
24883         start of the file.
24884
24885         * ira-color.c: Add 2011 to the Copyright line.
24886         (assign_hard_reg):  Add more comments.
24887         (improve_allocation): Ditto.
24888
24889         * ira-costs.c: Add 2011 to the Copyright line.
24890         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
24891         comments.
24892         (setup_regno_cost_classes_by_mode): Ditto.
24893
24894         Initial patches from ira-improv branch:
24895
24896         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
24897
24898         * ira-build.c (ira_create_object): Remove initialization of
24899         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
24900         (ira_create_allocno): Remove initialization of
24901         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
24902         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
24903         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24904         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
24905         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
24906         Initialize ALLOCNO_ADD_DATA.
24907         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
24908         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
24909         ALLOCNO_REG.
24910         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
24911         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
24912
24913         * ira.c (ira_reallocate): Remove.
24914         (setup_pressure_classes): Call
24915         ira_init_register_move_cost_if_necessary.  Use
24916         ira_register_move_cost instead of ira_get_register_move_cost.
24917         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
24918         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
24919
24920         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
24921         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24922         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
24923         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
24924         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
24925         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
24926         Fix formatting.
24927         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
24928         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24929         (struct allocno_color_data): New.
24930         (allocno_color_data_t): New typedef.
24931         (allocno_color_data): New definition.
24932         (ALLOCNO_COLOR_DATA): New macro.
24933         (struct object_color_data): New.
24934         (object_color_data_t): New typedef.
24935         (object_color_data): New definition.
24936         (OBJECT_COLOR_DATA): New macro.
24937         (update_copy_costs, calculate_allocno_spill_cost): Call
24938         ira_init_register_move_cost_if_necessary.  Use
24939         ira_register_move_cost instead of ira_get_register_move_cost.
24940         (move_spill_restore, update_curr_costs): Ditto.
24941         (allocno_spill_priority): Make it inline.
24942         (color_pass): Allocate and free allocno_color_dat and object_color_data.
24943         (struct coalesce_data, coalesce_data_t): New.
24944         (allocno_coalesce_data): New definition.
24945         (ALLOCNO_COALESCE_DATA): New macro.
24946         (merge_allocnos, coalesced_allocno_conflict_p): Use
24947         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
24948         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
24949         (coalesce_allocnos): Ditto.
24950         (setup_coalesced_allocno_costs_and_nums): Ditto.
24951         (collect_spilled_coalesced_allocnos): Ditto.
24952         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
24953         (setup_slot_coalesced_allocno_live_ranges): Ditto.
24954         (coalesce_spill_slots): Ditto.
24955         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
24956         free allocno_coalesce_data.
24957
24958         * ira-conflicts.c: Fix formatting.
24959         (process_regs_for_copy): Call
24960         ira_init_register_move_cost_if_necessary.  Use
24961         ira_register_move_cost instead of ira_get_register_move_cost.
24962         (build_object_conflicts): Optimize.
24963
24964         * ira-costs.c (record_reg_classes): Optimize.  Call
24965         ira_init_register_move_cost_if_necessary.  Use
24966         ira_register_move_cost, ira_may_move_in_cost, and
24967         ira_may_move_out_cost instead of ira_get_register_move_cost and
24968         ira_get_may_move_cost.
24969         (record_address_regs): Ditto.
24970         (scan_one_insn): Optimize.
24971         (find_costs_and_classes): Optimize.
24972         (process_bb_node_for_hard_reg_moves): Call
24973         ira_init_register_move_cost_if_necessary.  Use
24974         ira_register_move_cost instead of ira_get_register_move_cost.
24975
24976         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
24977         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
24978         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
24979         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
24980         definitions.
24981         (ira_initiate_emit_data, ira_finish_emit_data)
24982         (create_new_allocno): New functions.
24983         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
24984         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
24985         Use ira_register_move_cost instead of ira_get_register_move_cost.
24986
24987         * ira-int.h: Fix some comments.
24988         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
24989         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24990         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
24991         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
24992         add_data.
24993         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
24994         bitfield after mode.  Make hard_regno a short int.  Make
24995         hard_regno short.  Remove first_coalesced_allocno and
24996         next_coalesced_allocno.  Move mem_optimized_dest_p,
24997         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
24998         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
24999         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
25000         temp, colorable_p.  Add new member add_data.
25001         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
25002         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
25003         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
25004         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
25005         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
25006         (ALLOCNO_ADD_DATA): New macro.
25007         (ira_emit_data_t): New typedef.
25008         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
25009         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
25010         from struct ira_allocno.
25011         (ALLOCNO_EMIT_DATA): New macro.
25012         (ira_allocno_emit_data, allocno_emit_reg): New.
25013         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
25014         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
25015         (OBJECT_ADD_DATA): New macro.
25016         (ira_reallocate): Remove.
25017         (ira_initiate_emit_data, ira_finish_emit_data): New.
25018         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
25019         (ira_init_register_move_cost_if_necessary): New.
25020         (ira_object_conflict_iter_next): Merge into
25021         ira_object_conflict_iter_cond.
25022         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
25023
25024         * ira-live.c (process_single_reg_class_operands): Call
25025         ira_init_register_move_cost_if_necessary.  Use
25026         ira_register_move_cost instead of ira_get_register_move_cost.
25027
25028         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
25029
25030         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
25031
25032         * ira-costs.c: Fix formatting.
25033         (cost_classes, cost_classes_num): Remove.
25034         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
25035         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
25036         (cost_classes_del, cost_classes_htab): New.
25037         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
25038         (initiate_regno_cost_classes, setup_cost_classes): New.
25039         (setup_regno_cost_classes_by_aclass): New.
25040         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
25041         (record_reg_classes): Use regno_cost_classes instead of
25042         cost_classes.  Move checking opposite operand up.
25043         (record_address_regs): Use regno_cost_classes
25044         instead of cost_classes.
25045         (scan_one_insn): Ditto.  Use always general register.
25046         (print_allocno_costs): Use regno_cost_classes instead of
25047         cost_classes.
25048         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
25049         (find_costs_and_classes): Set up cost classes for each registers.
25050         Use also their mode for this.  Use regno_cost_classes instead of
25051         cost_classes.
25052         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
25053         cost_classes.
25054         (free_ira_costs, ira_init_costs): Don't use cost_classes.
25055         (ira_costs, ira_set_pseudo_classes): Call
25056         initiate_regno_cost_classes and finish_regno_cost_classes.
25057
25058         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
25059
25060         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
25061
25062         * target.def (ira_cover_classes): Remove.
25063
25064         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
25065
25066         * doc/tm.texi.in: Ditto.
25067
25068         * ira-conflicts.c: Remove mentioning cover classes from the file.
25069         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
25070         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
25071
25072         * targhooks.c (default_ira_cover_classes): Remove.
25073
25074         * targhooks.h (default_ira_cover_classes): Ditto.
25075
25076         * haifa-sched.c: Remove mentioning cover classes from the file.
25077         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
25078         ira_pressure_classes and ira_pressure_classes_num instead of
25079         ira_reg_class_cover_size and ira_reg_class_cover.  Use
25080         sched_regno_pressure_class instead of sched_regno_cover_class.
25081         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
25082         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25083
25084         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
25085         classes from the file.
25086         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
25087         (struct object_hard_regs, struct object_hard_regs_node): New.
25088         (struct ira_object): New members profitable_hard_regs,
25089         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
25090         (struct ira_allocno): Rename cover_class to aclass.  Rename
25091         cover_class_cost and updated_cover_class_cost to class_cost and
25092         updated_class_cost.  Remove splay_removed_p and
25093         left_conflict_size.  Add new members colorable_p.
25094         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
25095         (ALLOCNO_COLORABLE_P): New macro.
25096         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
25097         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
25098         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
25099         (OBJECT_...): Rename parameter C to O.
25100         (OBJECT_PROFITABLE_HARD_REGS): New macro.
25101         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
25102         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
25103         (struct target_ira_int): New members x_ira_max_memory_move_cost,
25104         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
25105         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
25106         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
25107         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
25108         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
25109         x_ira_reg_class_subunion.
25110         (ira_max_memory_move_cost, ira_max_register_move_cost)
25111         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
25112         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
25113         (ira_important_class_nums, ira_reg_class_superunion): New macros.
25114         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
25115         (ira_reg_class_union): Rename to ira_reg_class_subunion.
25116         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
25117         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
25118         (ira_tune_allocno_costs_and_cover_classes): Rename to
25119         ira_tune_allocno_costs.
25120         (ira_debug_hard_regs_forest): New.
25121         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
25122         (ira_object_conflict_iter_next): Fix comments.
25123         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
25124         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
25125         cover_class to aclass.
25126         (ira_allocate_and_accumulate_costs): Ditto.
25127         (ira_allocate_and_set_or_copy_costs): Ditto.
25128
25129         * opts.c (decode_options): Remove ira_cover_class check.
25130
25131         * ira-color.c: Remove mentioning cover classes from the file.  Use
25132         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
25133         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
25134         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
25135         (splay-tree.h): Remove include.
25136         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
25137         before copy_freq_compare_func.
25138         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
25139         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
25140         New definitions.
25141         (hard_regs_roots, hard_regs_node_vec): Ditto.
25142         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
25143         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
25144         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
25145         (create_new_object_hard_regs_node): Ditto.
25146         (add_new_object_hard_regs_node_to_forest): Ditto.
25147         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
25148         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
25149         Ditto.
25150         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
25151         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
25152         (remove_unused_object_hard_regs_nodes): Ditto.
25153         (enumerate_object_hard_regs_nodes): Ditto.
25154         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
25155         (object_hard_regs_subnode_t): Ditto.
25156         (struct object_hard_regs_subnode): Ditto.
25157         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
25158         (setup_object_hard_regs_subnode_index): Ditto.
25159         (get_object_hard_regs_subnodes_num): Ditto.
25160         (form_object_hard_regs_nodes_forest): Ditto.
25161         (finish_object_hard_regs_nodes_tree): Ditto.
25162         (finish_object_hard_regs_nodes_forest): Ditto.
25163         (allocnos_have_intersected_live_ranges_p): Rename to
25164         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
25165         (pseudos_have_intersected_live_ranges_p): Rename to
25166         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
25167         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
25168         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
25169         (update_copy_costs): Remove assert.  Skip cost update if the hard
25170         reg does not belong the class.
25171         (assign_hard_reg): Process only profitable hard regs.
25172         (uncolorable_allocnos_num): Make it scalar.
25173         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
25174         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
25175         and ira_reg_class_max_nregs.
25176         (bucket_allocno_compare_func): Check frequency first.
25177         (sort_bucket): Add compare function as a parameter.
25178         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
25179         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
25180         (push_allocno_to_stack): Rewrite for checking new allocno
25181         colorability.
25182         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
25183         (push_only_colorable): Pass new parameter to sort_bucket.
25184         (push_allocno_to_spill): Remove.
25185         (allocno_spill_priority_compare): Make it inline and rewrite.
25186         (splay_tree_allocate, splay_tree_free): Remove.
25187         (allocno_spill_sort_compare): New function.
25188         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
25189         build and use splay tree.  Choose first allocno in uncolorable
25190         allocno bucket to spill.  Remove setting spill cost.
25191         (all_conflicting_hard_regs): Remove.
25192         (setup_allocno_available_regs_num): Check only profitable hard
25193         regs.  Print info about hard regs nodes.
25194         (setup_allocno_left_conflicts_size): Remove.
25195         (put_allocno_into_bucket): Don't call
25196         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
25197         (improve_allocation): New.
25198         (color_allocnos): Call setup_profitable_hard_regs,
25199         form_object_hard_regs_nodes_forest, improve_allocation,
25200         finish_object_hard_regs_nodes_forest.  Setup spill cost.
25201         (print_loop_title): Use pressure classes.
25202         (color_allocnso): Ditto.
25203         (do_coloring): Remove allocation and freeing splay_tree_node_pool
25204         and allocnos_for_spilling.
25205         (ira_sort_regnos_for_alter_reg): Don't setup members
25206         {first,next}_coalesced_allocno.
25207         (color): Remove allocating and freeing removed_splay_allocno_vec.
25208         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
25209         prohibited_class_mode_regs.
25210
25211         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
25212         formatting.
25213         (update_allocno_pressure_excess_length): Use pressure classes.
25214         (inc_register_pressure, dec_register_pressure): Check for pressure
25215         class.
25216         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
25217         pressure class.  Use ira_reg_class_nregs instead of
25218         ira_reg_class_max_nregs.
25219         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
25220         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
25221         (single_reg_class): Use ira_reg_class_nregs instead of
25222         ira_reg_class_max_nregs.
25223         (process_bb_node_lives): Use pressure classes.
25224
25225         * ira-emit.c: Remove mentioning cover classes from the file.  Use
25226         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
25227         (change_loop): Use pressure classes.
25228         (modify_move_list): Call ira_set_allocno_class instead of
25229         ira_set_allocno_cover_class.
25230
25231         * ira-build.c: Remove mentioning cover classes from the file.  Use
25232         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
25233         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
25234         ALLOCNO_UPDATED_CLASS_COST instead of
25235         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
25236         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
25237         (ira_create_allocno): Remove initialization of
25238         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
25239         ALLOCNO_COLORABLE_P.
25240         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
25241         Update conflict regs for the objects.
25242         (create_cap_allocno): Remove assert.  Don't propagate
25243         ALLOCNO_AVAILABLE_REGS_NUM.
25244         (ira_free_allocno_costs): New function.
25245         (finish_allocno): Change a part of code into call of
25246         ira_free_allocno_costs.
25247         (low_pressure_loop_node_p): Use pressure classes.
25248         (object_range_compare_func): Don't compare classes.
25249         (setup_min_max_conflict_allocno_ids): Ditto.
25250
25251         * loop-invariant.c: Remove mentioning cover classes from the file.
25252         Use ira_pressure_classes and ira_pressure_classes_num instead of
25253         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
25254         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
25255         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25256         Use reg_allocno_class instead of reg_cover_class.
25257         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
25258         STACK_REG_COVER_CLASS.
25259         (get_regno_cover_class): Rename to get_regno_pressure_class.
25260         (move_loop_invariants): Initialize and finalize regstat.
25261
25262         * ira.c: Remove mentioning cover classes from the file.  Add
25263         comments about coloring without cover classes.  Use ALLOCNO_CLASS
25264         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
25265         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
25266         setup_class_subset_and_memory_move_costs.
25267         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
25268         (setup_cover_and_important_classes): Rename to
25269         setup_allocno_and_important_classes.
25270         (setup_class_translate_array): New.
25271         (setup_class_translate): Call it for allocno and pressure classes.
25272         (cover_class_order): Rename to allocno_class_order.
25273         (comp_reg_classes_func): Use ira_allocno_class_translate instead
25274         of ira_class_translate.
25275         (reorder_important_classes): Set up ira_important_class_nums.
25276         (setup_reg_class_relations): Set up ira_reg_class_superunion.
25277         (print_class_cover): Rename to print_classes.  Add parameter.
25278         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
25279         Print pressure classes too.
25280         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
25281         setup_reg_subclasses.
25282         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25283         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25284         (setup_prohibited_class_mode_regs): Use
25285         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
25286         (clarify_prohibited_class_mode_regs): New function.
25287         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
25288         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
25289         (ira_init_once): Initialize them.
25290         (free_register_move_costs): Process them.
25291         (ira_init): Move calls of find_reg_classes and
25292         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
25293         Call clarify_prohibited_class_mode_regs.
25294         (ira_no_alloc_reg): Remove.
25295         (too_high_register_pressure_p): Use pressure classes.
25296
25297         * sched-deps.c: Remove mentioning cover classes from the file.
25298         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
25299         ira_pressure_classes and ira_pressure_classes_num instead of
25300         ira_reg_class_cover_size and ira_reg_class_cover.
25301         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
25302         sched_regno_pressure_class instead of sched_regno_cover_class.
25303         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
25304         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25305
25306         * ira.h: Add 2010 to Copyright.
25307         (ira_no_alloc_reg): Remove external.
25308         (struct target_ira): Rename x_ira_hard_regno_cover_class,
25309         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
25310         x_ira_class_translate to x_ira_hard_regno_allocno_class,
25311         x_ira_allocno_classes_num, x_ira_allocno_classes, and
25312         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
25313         x_ira_pressure_classes, x_ira_pressure_class_translate, and
25314         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
25315         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
25316         x_ira_no_alloc_regs.
25317         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25318         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
25319         ira_allocno_classes_num and ira_allocno_classes.
25320         (ira_class_translate): Rename to ira_allocno_class_translate.
25321         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
25322         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
25323         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25324         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
25325         (ira_no_alloc_regs): New.
25326
25327         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
25328         classes from the file.  Use ALLOCNO_CLASS instead of
25329         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
25330         ALLOCNO_COVER_CLASS_COST.
25331         (regno_cover_class): Rename to regno_aclass.
25332         (record_reg_classes): Use ira_reg_class_subunion instead of
25333         ira_reg_class_union.
25334         (record_address_regs): Check overflow.
25335         (scan_one_insn): Ditto.
25336         (print_allocno_costs): Print total mem cost fore regional allocation.
25337         (print_pseudo_costs): Use REG_N_REFS.
25338         (find_costs_and_classes): Use classes intersected with them on the
25339         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
25340         ira_reg_class_union.  Use ira_allocno_class_translate and
25341         regno_aclass instead of ira_class_translate and regno_cover_class.
25342         Modify code for finding regno_aclass.  Setup preferred classes for
25343         the next pass.
25344         (setup_allocno_cover_class_and_costs): Rename to
25345         setup_allocno_class_and_costs.  Use regno_aclass instead of
25346         regno_cover_class.  Use ira_set_allocno_class instead of
25347         ira_set_allocno_cover_class.
25348         (init_costs, finish_costs): Use regno_aclass instead of
25349         regno_cover_class.
25350         (ira_costs): Use setup_allocno_class_and_costs instead of
25351         setup_allocno_cover_class_and_costs.
25352         (ira_tune_allocno_costs_and_cover_classes): Rename to
25353         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
25354         by processing objects.  Use ira_reg_class_max_nregs instead of
25355         ira_reg_class_nregs.
25356
25357         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
25358
25359         * sched-int.h: Remove mentioning cover classes from the file.
25360         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
25361
25362         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
25363         classes from the file.
25364         (struct reg_pref): Rename coverclass into allocnoclass.
25365         (reg_cover_class): Rename to reg_allocno_class.
25366
25367         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
25368
25369         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
25370
25371         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
25372
25373         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
25374
25375         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
25376
25377         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
25378
25379         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
25380
25381         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
25382
25383         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
25384
25385         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
25386
25387         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
25388         (i386_ira_cover_classes): Ditto.
25389
25390         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
25391
25392         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
25393
25394         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
25395
25396         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
25397
25398         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
25399
25400         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
25401
25402         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
25403         (mips_ira_cover_classes): Ditto.
25404
25405         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
25406
25407         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
25408
25409         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
25410
25411         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
25412
25413         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
25414
25415         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
25416         (IRA_COVER_CLASSES_VSX): Ditto.
25417
25418         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
25419         (rs6000_ira_cover_classes): Ditto.
25420
25421         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
25422
25423         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
25424
25425         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
25426
25427         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
25428
25429         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
25430
25431         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
25432
25433         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
25434
25435         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
25436
25437         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
25438
25439         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
25440
25441 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
25442
25443         PR debug/48253
25444         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
25445         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
25446         dw_fde_unlikely_section_end_label, cold_in_std_section,
25447         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
25448         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
25449         fields.
25450         (output_fde): Use dw_fde_second_{begin,end} if second is
25451         true, otherwise dw_fde_{begin,end}.
25452         (output_call_frame_info): Test dw_fde_second_begin != NULL
25453         instead of dw_fde_switched_sections.
25454         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
25455         fields, initialize new fields.  Initialize in_std_section
25456         unconditionally from the first partition.
25457         (dwarf2out_end_epilogue): Don't override dw_fde_end when
25458         dw_fde_second_begin is non-NULL.
25459         (dwarf2out_switch_text_section): Stop initializing removed
25460         dw_fde_struct fields, initialize new fields, initialize
25461         also dw_fde_end here.  Set dw_fde_switch_cfi even when
25462         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
25463         (struct var_loc_list_def): Add last_before_switch field.
25464         (arange_table, arange_table_allocated, arange_table_in_use,
25465         ARANGE_TABLE_INCREMENT, add_arange): Removed.
25466         (size_of_aranges): Count !in_std_section and !second_in_std_section
25467         hunks in fdes, instead of looking at arange_table_in_use.
25468         (output_aranges): Add aranges_length argument, don't call
25469         size_of_aranges here.  Instead of using aranges_table*
25470         emit ranges for fdes when !in_std_section resp.
25471         !second_in_std_section.
25472         (dw_loc_list): Break ranges crossing section switch.
25473         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
25474         use dw_fde_second_end instead of dw_fde_end as end of last range.
25475         (gen_subprogram_die): Don't call add_arange.  Use
25476         dw_fde_{begin,end} for first partition and if switched
25477         section dw_fde_second_{begin,end} for the second.
25478         (var_location_switch_text_section_1,
25479         var_location_switch_text_section): New functions.
25480         (dwarf2out_begin_function): Initialize cold_text_section even
25481         when function_section () isn't text_section.
25482         (prune_unused_types): Don't walk arange_table.
25483         (dwarf2out_finish): Don't needlessly test
25484         flag_reorder_blocks_and_partition when testing cold_text_section_used.
25485         If info_section_emitted, call size_of_aranges and if it indicates
25486         non-empty .debug_aranges, call output_aranges with the computed
25487         size.  Stop using removed dw_fde_struct fields, use
25488         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
25489         for second.
25490
25491         PR debug/48203
25492         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
25493         create ENTRY_VALUE if incoming or address of incoming's MEM
25494         is a hard REG.
25495         * dwarf2out.c (mem_loc_descriptor): Don't emit
25496         DW_OP_GNU_entry_value of DW_OP_fbreg.
25497         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
25498         on ENTRY_VALUE is able to find the canonical parameter VALUE.
25499         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
25500         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
25501         ENTRY_VALUE_EXPs.
25502         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
25503         is a REG_P or MEM_P with REG_P address, compute hash directly
25504         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
25505         (preserve_only_constants): Don't clear VALUES forwaring
25506         ENTRY_VALUE to some other VALUE.
25507
25508 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
25509
25510         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
25511         instead of GEN_INT.
25512
25513 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25514
25515         * cfgexpand.c (expand_gimple_cond): Always set the source location and
25516         block before expanding the statement.
25517         (expand_gimple_stmt_1): Likewise.  Set them here...
25518         (expand_gimple_stmt): ...and not here.  Tidy.
25519         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
25520         unknown.
25521
25522 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
25523
25524         * Makefile.in: New rule for cprop.o.
25525         * gcse.c: Move constant/copy propagation to cprop.c.
25526         (compute_local_properties): Only handle expression tables.
25527         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
25528         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
25529         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
25530         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
25531         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
25532         compute_cprop_data, find_used_regs, try_replace_reg,
25533         find_avail_set, cprop_jump, constprop_register, cprop_insn,
25534         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
25535         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
25536         find_bypass_set, reg_killed_on_edge, bypass_block,
25537         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
25538         execute_rtl_cprop, pass_rtl_cprop): Move to...
25539         * cprop.c: ...here.  New file, constant/copy propagation for RTL
25540         moved from gcse.c to here with minor cleanups in duplicated code.
25541
25542 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
25543
25544         * config/i386/i386.c (flag_opts): Fix a typo in
25545         -mavx256-split-unaligned-store.
25546
25547 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
25548
25549         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
25550         LIBCALL_VALUE): Remove macros.
25551         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25552         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25553         (h8300_function_value, h8300_libcall_value,
25554         h8300_function_value_regno_p): New functions.
25555
25556 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
25557
25558         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
25559
25560 2011-03-28  Jeff Law  <law@redhat.com>
25561
25562         * tree-ssa-threadupdate.c (redirect_edges): Call
25563         create_edge_and_update_destination_phis as needed.
25564         (create_edge_and_update_destination_phis): Accept new BB argument.
25565         All callers updated.
25566         (thread_block): Do not update the profile when threading around
25567         intermediate blocks.
25568         (thread_single_edge): Likewise.
25569         (determine_bb_domination_status): If BB is not a successor of the
25570         loop header, return NONDOMINATING.
25571         (register_jump_thread): Note when we register a jump thread around
25572         an intermediate block.
25573         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
25574         (thread_across_edge): Use it.
25575
25576 2011-03-28  Tristan Gingold  <gingold@adacore.com>
25577
25578         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
25579         when for_return is 2.
25580
25581 2011-03-28  Jeff Law  <law@redhat.com>
25582
25583         * var-tracking.c (canonicalize_values_mark): Delete unused
25584         lhs assignment.
25585         (canonicalize_values_star, set_variable_part): Likewise.
25586         (clobber_variable_part, delete_variable_part): Likewise.
25587
25588 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
25589
25590         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
25591
25592 2011-03-28  Martin Jambor  <mjambor@suse.cz>
25593
25594         * tree-inline.c (expand_call_inline): Do not check that destination
25595         node is analyzed.
25596         (optimize_inline_calls): Assert that destination node is analyzed.
25597         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
25598         not call tree_lowering_passes.
25599         * cgraph.h (cgraph_analyze_function): Declare.
25600         * cgraphunit.c (cgraph_analyze_function): Make public.
25601
25602 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
25603
25604         * config/sparc/sparc-opts.h: New.
25605         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
25606         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
25607         (sparc_option_override): Store processor_type enumeration rather
25608         than string in cpu_default.  Remove name and enumeration from
25609         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
25610         without using sparc_select.  Use target_flags_explicit instead of
25611         fpu_option_set.
25612         * config/sparc/sparc.h (enum processor_type): Move to
25613         sparc-opts.h.
25614         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
25615         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
25616         HeaderInclude entry.
25617         (mcpu=, mtune=): Use Var and Enum.
25618         (sparc_processor_type): New Enum and EnumValue entries.
25619
25620 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25621             Iain Sandoe  <iains@gcc.gnu.org>
25622
25623         PR target/48245
25624         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
25625
25626 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25627
25628         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
25629         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
25630         Insert new statements at it in lieu of STMT.
25631         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
25632         * tree-vect-stmts.c (vectorizable_store): Likewise.
25633         (vectorizable_load): Likewise.
25634
25635 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
25636
25637         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
25638         (divtf3): Ditto.
25639         (multf3): Ditto.
25640         (subtf3): Ditto.
25641
25642 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25643
25644         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
25645         unaligned 256bit load/store.
25646         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
25647         (*avx_movdqu<avxmodesuffix>): Likewise.
25648
25649 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25650
25651         PR target/48288
25652         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
25653         * config/pa/pa.md (iordi3): Use new predicate in expander.
25654         (iorsi3): Likewise.
25655
25656 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
25657
25658         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
25659         FUNCTION_VALUE_REGNO_P): Remove macros.
25660         * config/mips/mips-protos.h (mips_function_value): Remove.
25661         * config/mips/mips.c (mips_function_value): Rename to...
25662         (mips_function_value_1): ... this. Make static.  Handle receiving
25663         the function type in 'fn_decl_or_type' argument.
25664         (mips_function_value, mips_libcall_value,
25665         mips_function_value_regno_p): New function.
25666         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25667         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25668
25669 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25670
25671         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
25672         and -mavx256-split-unaligned-store.
25673         (ix86_option_override_internal): Split 32-byte AVX unaligned
25674         load/store by default.
25675         (ix86_avx256_split_vector_move_misalign): New.
25676         (ix86_expand_vector_move_misalign): Use it.
25677
25678         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
25679         -mavx256-split-unaligned-store.
25680
25681         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
25682         256bit load/store.  Generate unaligned store on misaligned memory
25683         operand.
25684         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
25685         256bit load/store.
25686         (*avx_movdqu<avxmodesuffix>): Likewise.
25687
25688         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
25689         -mavx256-split-unaligned-store.
25690
25691 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
25692
25693         PR target/38598
25694         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
25695         Update commentary.
25696
25697 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
25698
25699         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
25700         opno arguments with an expand_operand.  Use create_input_operand.
25701         (mips_prepare_builtin_target): Delete.
25702         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
25703         functions.
25704         (mips_expand_builtin_direct): Use create_output_operand and
25705         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
25706         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
25707         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
25708
25709 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
25710
25711         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
25712         function.
25713         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25714
25715 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
25716
25717         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
25718         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
25719         basic blocks and call commit_edge_insertions directly.
25720         (fixup_abnormal_edges): Move from here to...
25721         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
25722         on the edges and return whether some have actually been inserted.
25723         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
25724         compensation code.
25725
25726 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
25727
25728         PR rtl-optimization/48144
25729         * sel-sched-ir.c (merge_history_vect): Factor out from ...
25730         (merge_expr_data): ... here.
25731         (av_set_intersect): Rename to av_set_code_motion_filter.
25732         Update all callers.  Call merge_history_vect when an expression
25733         is found in both sets.
25734         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
25735
25736 2011-03-26  Alan Modra  <amodra@gmail.com>
25737
25738         * config/rs6000/predicates.md (word_offset_memref_op): Handle
25739         cmodel medium addresses.
25740         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
25741         64-bit gpr loads and stores.
25742         (rs6000_secondary_reload_ppc64): New function.
25743         * config/rs6000/rs6000-protos.h: Declare it.
25744         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
25745
25746 2011-03-26  Alan Modra  <amodra@gmail.com>
25747
25748         PR target/47487
25749         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
25750         GNU Go in traceback table.
25751
25752 2011-03-25  Richard Henderson  <rth@redhat.com>
25753
25754         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
25755         if there are exactly 6 operands.
25756         (set_storage_via_setmem): Similarly.
25757
25758 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25759
25760         * collect2.c (write_c_file_stat): Handle backslash
25761         as right-hand directory separator.
25762         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
25763         checking just for slash.
25764         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
25765         instead of checking for trailing slash.
25766         * gcc.c (record_temp_file): Use filename_cmp instead
25767         of strcmp.
25768         (do_spec_1): Likewise.
25769         (replace_outfile_spec_function): Likewise.
25770         (is_directory): Use filename_ncmp instead of strncmp.
25771         (print_multilib_info): Likewise.
25772         * gcov.c (find_source): Use filename_cmp instead
25773         instead of strcmp.
25774         (make_gcov_file_name): Fix order of slash/backslash
25775         checks.
25776         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
25777         (add_standard_paths): Likewise.
25778         * mips-tfile.c (saber_stop): Handle backslash.
25779         * prefix.c (update_path): Use filename_ncmp instead of
25780         strncmp.
25781         * profile.c (output_location): Use filename_cmp instead
25782         of strcmp.
25783         * read-md.c (handle_toplevel_file): Handle backslash.
25784         * tlink.c (frob_extension):  Likewise.
25785         * tree-cfg.c (same_line_p): Use filename_cmp instead of
25786         strcmp.
25787         * tree-dump.c (dequeue_and_dump): Handle backslash.
25788         * tree.c (get_file_function_name): Likewise.
25789         * gengtype.c (read_input_list): Likewise.
25790         (get_file_realbasename): Likewise.
25791         (get_output_file_with_visibility): Use filename_cmp
25792         instead of strcmp.
25793
25794 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
25795
25796         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
25797         case to VFPv1.
25798
25799 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
25800
25801         * fold-const.c (expr_location_or): New function.
25802         (fold_truth_not_expr): Call it.
25803
25804 2011-03-25  Jeff Law  <law@redhat.com>
25805
25806         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
25807         va_end.
25808         * c-family/c-common.c (def_fn_type): Likewise.
25809         * emit-rtl.c (gen_rtvec): Likewise.
25810         * lto/lto-lang.c (def_fn_type): Likewise.
25811
25812 2011-03-25  Richard Guenther  <rguenther@suse.de>
25813
25814         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
25815         also generate copies.
25816         (fini_copy_prop): Handle constant values properly.
25817
25818 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
25819
25820         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
25821         mode size instead of bitsize with DWARF2_ADDR_SIZE.
25822         (hash_loc_operands, compare_loc_operands): Handle
25823         DW_OP_GNU_entry_value.
25824
25825 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25826
25827         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
25828         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
25829         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
25830         comment and use macro TARGET_64BIT_MS_ABI instead.
25831         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
25832         and change default behavior for 32-bit MS_ABI.
25833         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
25834         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
25835         32-bit, too.
25836         (ix86_cfun_abi): Likewise.
25837         (ix86_maybe_switch_abi): Adjust comment.
25838         (init_cumulative_args): Check for bit-ness in MS_ABI case.
25839         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
25840         instead of checking for SYSV_ABI.
25841         (ix86_nsaved_sseregs): Likewise.
25842         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
25843         to 16 bytes.
25844         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
25845         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
25846         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
25847         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
25848         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
25849
25850 2011-03-25  Richard Guenther  <rguenther@suse.de>
25851
25852         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
25853         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25854         (verify_gimple): Remove.
25855         * tree-cfg.c (verify_gimple_call): Merge verification
25856         from verify_stmts.
25857         (verify_gimple_phi): Merge verification from verify_stmts.
25858         (verify_gimple_label): New function.
25859         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
25860         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25861         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
25862         (verify_stmts): Rename to verify_gimple_in_cfg.
25863         (verify_gimple_in_cfg): New function.
25864         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
25865         * tree-ssa.c (verify_ssa): Likewise.
25866         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
25867
25868 2011-03-25  Richard Guenther  <rguenther@suse.de>
25869
25870         * passes.c (init_optimization_passes): Add FRE pass after
25871         early SRA.
25872
25873 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
25874             Andrew Stubbs  <ams@codesourcery.com>
25875
25876         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
25877         for Cortex-A8.
25878         (arm_movdi_vfp_cortexa8): New pattern.
25879         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
25880         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
25881         instructions when tuning for Cortex-A8.  Set attribute "arch".
25882         * config/arm/arm.md: Move include arm-tune.md up a bit.
25883         (define_attr "arch"): Add "onlya8" and "nota8" values.
25884         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
25885
25886 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
25887
25888         PR bootstrap/48282
25889         Revert:
25890         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25891
25892         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25893         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
25894         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25895         * passes.c (init_optimization_passes): Move
25896         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25897
25898 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25899
25900         * c-typeck.c (comptypes_internal): Replace target
25901         hook call of comp_type_attributes by version in tree.c file.
25902         * gimple.c (gimple_types_compatible_p_1): Likewise.
25903         * tree-ssa.c (useless_type_conversion_p): Likewise.
25904         * tree.c (build_type_attribute_qual_variant): Likewise.
25905         (attribute_value_equal): New static helper function.
25906         (comp_type_attributes): New function.
25907         (merge_attributes): Use attribute_value_equal for comparison.
25908         (attribute_list_contained): Likewise.
25909         * tree.h (comp_type_attributes): New prototype.
25910
25911 2011-03-25  Richard Guenther  <rguenther@suse.de>
25912
25913         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
25914         of complex types at -O0.
25915         (verify_gimple_assign_binary): Likewise.
25916         (verify_gimple_assign_ternary): Likewise.
25917
25918 2011-03-24  Mark Wielaard  <mjw@redhat.com>
25919
25920         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
25921         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
25922
25923 2011-03-24  Mark Wielaard  <mjw@redhat.com>
25924
25925         PR debug/48041
25926         * dwarf2out.c (output_abbrev_section): Only write table when
25927         abbrev_die_table_in_use > 1.
25928
25929 2011-02-24  Richard Henderson  <rth@redhat.com>
25930
25931         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
25932         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
25933         (alpha_expand_unaligned_load_words): Use extql.
25934         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
25935         (emit_insxl): Handle all modes for consistency.
25936
25937 2011-02-24  Richard Henderson  <rth@redhat.com>
25938
25939         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
25940         (alpha_expand_unaligned_load): Likewise.
25941         (alpha_expand_unaligned_store): Likewise.
25942         (alpha_expand_unaligned_load_words): Likewise.
25943         (alpha_expand_unaligned_store_words): Likewise.
25944         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
25945         (alpha_split_lock_test_and_set_12): Likewise.
25946         (print_operand, alpha_fold_builtin_extxx): Likewise.
25947         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
25948         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
25949         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
25950         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
25951         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
25952         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
25953         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
25954         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
25955         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
25956         (extwl, extll, extql): Similarly.
25957         (inswh, inslh, insqh): Similarly.
25958         (mskbl, mskwl, mskll, mskql): Similarly.
25959         (mskwh, msklh, mskqh): Similarly.
25960
25961 2011-02-24  Richard Henderson  <rth@redhat.com>
25962
25963         * config/alpha/alpha.md (attribute isa): Add er, ner.
25964         (attribute enabled): Handle them.
25965         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
25966
25967 2011-02-24  Richard Henderson  <rth@redhat.com>
25968
25969         * config/alpha/alpha.md (attribute isa): Add vms.
25970         (attribute enabled): Handle it.
25971         (*movsf): Merge *movsf_{nofix,fix,nofp}.
25972         (*movdf): Merge *movdf_{nofix,fix,nofp}.
25973         (*movtf): Rename from *movtf_internal for consistency.
25974         (*movsi): Merge with *movsi_nt_vms.
25975         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
25976         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
25977         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
25978         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
25979
25980 2011-02-24  Richard Henderson  <rth@redhat.com>
25981
25982         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
25983         (extendqisi2, extendhisi2): Likewise.
25984         (extendqidi2): Simplify BWX/non-BWX expansions.
25985         (extendhidi2): Similarly.
25986
25987 2011-02-24  Richard Henderson  <rth@redhat.com>
25988
25989         * config/alpha/alpha.md (attribute isa): New.
25990         (attribute enabled): New.
25991         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
25992         (zero_extendqisi2, zero_extendqidi2): Similarly.
25993         (zero_extendhisi2, zero_extendhidi2): Similarly.
25994         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
25995
25996 2011-02-24  Richard Henderson  <rth@redhat.com>
25997
25998         * config/alpha/predicates.md (input_operand): Revert last change;
25999         update comment to mention 32-bit VMS rather than Windows.
26000
26001 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
26002
26003         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
26004         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
26005         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
26006         * passes.c (init_optimization_passes): Move
26007         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
26008
26009 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
26010
26011         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
26012
26013 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
26014
26015         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
26016         correctly.
26017
26018 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
26019
26020         PR debug/48204
26021         * simplify-rtx.c (simplify_const_unary_operation): Call
26022         real_convert when changing mode class with FLOAT_EXTEND.
26023
26024 2011-03-24  Nick Clifton  <nickc@redhat.com>
26025
26026         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
26027         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
26028         * config/rx/rx.c (rx_option_override): Set align_jumps,
26029         align_loops and align_labels if not set by the user.
26030         (rx_align_for_label): New function.
26031         (rx_max_skip_for_label): New function.
26032         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
26033         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
26034         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
26035         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
26036         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
26037
26038 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
26039
26040         PR rtl-optimization/48263
26041         * optabs.c (expand_binop_directly): Reinstate convert_modes code
26042         and original commutative_p handling.  Use maybe_gen_insn.
26043
26044 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26045
26046         * reload.c (find_reloads_subreg_address): Add address_reloaded
26047         parameter and return true there if the full address has been
26048         reloaded.
26049         (find_reloads_toplev): Pass address_reloaded flag.
26050         (find_reloads_address_1): Don't use address_reloaded parameter.
26051
26052 2011-03-24  Jeff Law  <law@redhat.com>
26053
26054         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
26055         unused variable "ann".
26056         (remove_unused_locals): Likewise.
26057
26058         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
26059         statement.
26060
26061         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
26062         after it is freed.
26063
26064 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26065
26066         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
26067         for invalid symbolic addresses.
26068         (s390_secondary_reload): Don't use s390_check_symref_alignment for
26069         larl operands.
26070
26071 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
26072
26073         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
26074         the argument in calls to fold_truth_not_expr.
26075
26076 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
26077
26078         * tree.c (record_node_allocation_statistics): New function.
26079         (make_node_stat, copy_node_stat, build_string): Call it.
26080         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
26081         (build1_stat, build_omp_clause): Likewise.
26082
26083 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
26084
26085         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
26086         last commit.
26087
26088 2011-03-24  Richard Guenther  <rguenther@suse.de>
26089
26090         PR tree-optimization/48271
26091         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
26092         blocks that still exist.
26093
26094 2011-03-24  Richard Guenther  <rguenther@suse.de>
26095
26096         PR tree-optimization/48270
26097         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
26098         not free datarefs before ddrs.
26099
26100 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
26101
26102         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
26103         from the address built for a reference with variable offset.
26104
26105 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
26106
26107         PR target/48237
26108         * config/i386/i386.md (*movdf_internal_rex64): Do not split
26109         alternatives that can be handled with movq or movabsq insn.
26110         (*movdf_internal): Disable for !TARGET_64BIT.
26111         (*movdf_internal_nointeger): Ditto.
26112         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
26113
26114 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
26115
26116         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26117         (FUNCTION_ARG_ADVANCE): Likewise.
26118         * tm.texi.in: Change references to them to hook references.
26119         * tm.texi: Regenerate.
26120         * targhooks.c (default_function_arg): Eliminate check for target macro.
26121         (default_function_incoming_arg): Likewise.
26122         (default_function_arg_advance): Likewise.
26123         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26124         (function_arg_advance): Likewise.
26125         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26126
26127 2011-03-24  Richard Guenther  <rguenther@suse.de>
26128
26129         PR middle-end/48269
26130         * tree-object-size.c (addr_object_size): Do not double-account
26131         for MEM_REF offsets.
26132
26133 2011-03-24  Diego Novillo  <dnovillo@google.com>
26134
26135         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
26136         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
26137         (lto_input_data_block): Move from lto-opts.c.  Make extern.
26138         Update all users.
26139         (lto_input_string): Rename from input_string.  Make extern.
26140         Update all users.
26141         * lto-streamer-out.c (lto_output_string_with_length): Rename from
26142         output_string_with_length.
26143         Output 0 to indicate a non-NULL string.  Update all callers to
26144         not emit 0.
26145         (lto_output_string): Rename from output_string.  Make extern.
26146         Update all users.
26147         (lto_output_decl_state_streams): Make extern.
26148         (lto_output_decl_state_refs): Make extern.
26149         * lto-streamer.h (lto_input_string): Declare.
26150         (lto_input_data_block): Declare.
26151         (lto_output_string): Declare.
26152         (lto_output_string_with_length): Declare.
26153         (lto_output_decl_state_streams): Declare.
26154         (lto_output_decl_state_refs): Declare.
26155
26156 2011-03-24  Richard Guenther  <rguenther@suse.de>
26157
26158         PR tree-optimization/46562
26159         * tree.c (build_invariant_address): New function.
26160         * tree.h (build_invariant_address): Declare.
26161         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
26162         a renamed function moved ...
26163         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
26164         Take valueization callback parameter.
26165         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
26166         * gimple-fold.h: New file.
26167         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
26168         (ccp_fold, fold_const_aggregate_ref,
26169         fold_ctor_reference, fold_nonarray_ctor_reference,
26170         fold_array_ctor_reference, fold_string_cst_ctor_reference,
26171         get_base_constructor): Move ...
26172         * gimple-fold.c: ... here.
26173         (gimple_fold_stmt_to_constant_1): New function
26174         split out from ccp_fold.  Take a valueization callback parameter.
26175         Valueize all operands.
26176         (gimple_fold_stmt_to_constant): New wrapper function.
26177         (fold_const_aggregate_ref_1): New function split out from
26178         fold_const_aggregate_ref.  Take a valueization callback parameter.
26179         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
26180         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
26181         invariant POINTER_PLUS_EXPRs to invariant form.
26182         (vn_valueize): New function.
26183         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
26184         * tree-vrp.c (vrp_valueize): New function.
26185         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
26186         to fold statements to constants.
26187         * tree-ssa-pre.c (eliminate): Properly guard propagation of
26188         function declarations.
26189         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
26190         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
26191
26192 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
26193
26194         * config/h8300/predicates.md (jump_address_operand): Fix register
26195         mode check.
26196
26197 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
26198
26199         * doc/invoke.texi (max-stores-to-sink): Document.
26200         * params.h (MAX_STORES_TO_SINK): Define.
26201         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
26202         if either vectorization or if-conversion is disabled.
26203         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
26204         tree-vect-data-refs.c vect_equal_offsets.
26205         (dr_equal_offsets_p): New function.
26206         (find_data_references_in_bb): Remove static.
26207         * tree-data-ref.h (find_data_references_in_bb): Declare.
26208         (dr_equal_offsets_p): Likewise.
26209         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
26210         (vect_drs_dependent_in_basic_block): Update calls to
26211         vect_equal_offsets.
26212         (vect_check_interleaving): Likewise.
26213         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
26214         (cond_if_else_store_replacement): Rename to...
26215         (cond_if_else_store_replacement_1): ... this.  Change arguments and
26216         documentation.
26217         (cond_if_else_store_replacement): New function.
26218         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
26219         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
26220
26221 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
26222
26223         PR target/46934
26224         * config/arm/arm.md (casesi): Use the gen_int_mode() function
26225         to subtract lower bound instead of GEN_INT().
26226
26227 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
26228
26229         PR other/48179
26230         PR other/48221
26231         PR other/48234
26232         * doc/extend.texi (Alignment): Move section to match order in TOC.
26233         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
26234         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
26235
26236 2011-03-23  Jeff Law  <law@redhat.com>
26237
26238         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
26239         before removing the edge.
26240
26241         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
26242         it may have been freed by redirect_branch_edge or
26243         redirect_edge_succ_nodup.
26244
26245 2011-03-23  Richard Guenther  <rguenther@suse.de>
26246
26247         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
26248         (check_va_list_escapes): Likewise.
26249         (check_all_va_list_escapes): Likewise.
26250
26251 2011-03-23  Richard Guenther  <rguenther@suse.de>
26252
26253         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
26254         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
26255         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
26256         (alias.o): Likewise.
26257         (ipa-type-escape.o): Remove.
26258         (ipa-struct-reorg.o): Likewise.
26259         (GTFILES): Remove ipa-struct-reorg.c.
26260         * alias.c: Do not include ipa-type-escape.h.
26261         * tree-ssa-alias.c: Likewise.
26262         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
26263         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
26264         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
26265         and ipa-type-escape passes.
26266         * tree-pass.h (pass_ipa_type_escape): Remove.
26267         (pass_ipa_struct_reorg): Likewise.
26268         * ipa-struct-reorg.h: Remove.
26269         * ipa-struct-reorg.c: Likewise.
26270         * ipa-type-escape.h: Likewise.
26271         * ipa-type-escape.c: Likewise.
26272         * doc/invoke.texi (-fipa-struct-reorg): Remove.
26273         (--param struct-reorg-cold-struct-ratio): Likewise.
26274         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
26275         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
26276         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
26277
26278 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26279
26280         * config/s390/2084.md: Enable all insn reservations also for z9_ec
26281         cpu attribute value.
26282         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
26283         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
26284         * config/s390/s390.c (processor_flags_table): New constant array.
26285         (s390_handle_arch_option): Remove.
26286         (s390_handle_option): Remove s390_handle_arch_option invocations
26287         and OPT_mwarn_framesize_ handling.
26288         (s390_option_override): Remove s390_handle_arch_option invocation.
26289         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
26290         warnings.
26291         * config/s390/s390.md (cpu attribute): Add z9_ec value.
26292         * config/s390/s390.opt (s390_tune, s390_arch)
26293         (march=): Replace s390_arch_option enum and values with
26294         processor_type.  Set variable name to s390_arch.  Set
26295         initialization value.
26296         (mtune=): Replace s390_arch_option with processor_type.  Set
26297         variable name to s390_tune.  Set initialization value.
26298
26299 2011-03-23  Julian Brown  <julian@codesourcery.com>
26300
26301         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
26302         accesses which are not naturally aligned.
26303
26304 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
26305
26306         PR target/47553
26307         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
26308
26309 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
26310
26311         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
26312         parameter from "int" to "enum insn_code".
26313         (expand_operand_type): New enum.
26314         (expand_operand): New structure.
26315         (create_expand_operand): New function.
26316         (create_fixed_operand, create_output_operand): Likewise
26317         (create_input_operand, create_convert_operand_to): Likewise.
26318         (create_convert_operand_from, create_address_operand): Likewise.
26319         (create_integer_operand): Likewise.
26320         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
26321         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26322         (expand_insn, expand_jump_insn): Likewise.
26323         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
26324         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
26325         (expand_movstr, expand_builtin___clear_cache): Likewise.
26326         (expand_builtin_lock_release): Likewise.
26327         * explow.c (allocate_dynamic_stack_space): Likewise.
26328         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
26329         and use the default handling in that case.
26330         * expmed.c (check_predicate_volatile_ok): Delete.
26331         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
26332         (emit_cstore): Likewise.
26333         * expr.c (emit_block_move_via_movmem): Likewise.
26334         (set_storage_via_setmem, expand_assignment): Likewise.
26335         (emit_storent_insn, try_casesi): Likewise.
26336         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
26337         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
26338         (expand_vec_shift_expr, expand_binop_directly): Likewise.
26339         (expand_twoval_unop, expand_twoval_binop): Likewise.
26340         (expand_unop_direct, emit_indirect_jump): Likewise.
26341         (emit_conditional_move, vector_compare_rtx): Likewise.
26342         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
26343         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
26344         (expand_sync_lock_test_and_set): Likewise.
26345         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
26346         (emit_unop_insn): Likewise.
26347         (expand_copysign_absneg): Change icode to an insn_code.
26348         (create_convert_operand_from_type): New function.
26349         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
26350         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26351         (expand_insn, expand_jump_insn): Likewise.
26352         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
26353         than const_int_operand for operand 2.
26354
26355 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26356
26357         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
26358         if possible.
26359
26360 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26361
26362         * emit-rtl.c (emit_pattern_before_noloc): New function.
26363         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
26364         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
26365         (emit_pattern_after_noloc): New function.
26366         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
26367         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
26368
26369 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26370
26371         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
26372         (__ffsDI2): Likewise.
26373
26374 2011-03-22  Richard Henderson  <rth@redhat.com>
26375
26376         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
26377         of !TARGET_ABI_OPEN_VMS.
26378         (alpha_trampoline_init, alpha_start_function): Likewise.
26379         (alpha_expand_epilogue, alpha_file_start): Likewise.
26380         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
26381         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
26382         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
26383         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
26384         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
26385
26386 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26387
26388         * config/s390/s390-opts.h: New.
26389         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
26390         s390_arch_flags, s390_warn_framesize, s390_stack_size,
26391         s390_stack_guard): Remove.
26392         (s390_handle_arch_option): Return void.  Take enum
26393         s390_arch_option value instead of string and searching array.
26394         (s390_handle_option): Don't assert that global structures are in
26395         use.  Access variables via opts pointer.  Use error_at.  Don't use
26396         sscanf for -mstack-guard= or -mstack-size=.  Update call to
26397         s390_handle_arch_option.
26398         (s390_option_override): Update call to s390_handle_arch_option.
26399         (s390_emit_prologue): Use %d format for s390_stack_size in
26400         diagnostic.  Use %wd for HOST_WIDE_INT.
26401         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
26402         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
26403         * config/s390/s390.opt (config/s390/s390-opts.h): New
26404         HeaderInclude entry.
26405         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
26406         s390_arch_flags, s390_warn_framesize): New Variable entries.
26407         (s390_arch_option): New Enum and EnumValue entries.
26408         (march=): Use Enum instead of Var.
26409         (mstack-guard=, mstack-size=): Use UInteger and Var.
26410         (mtune=): Use Enum.
26411
26412 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26413
26414         * config/score/score.c (score_handle_option): Don't assert that
26415         global structures are in use.  Access target_flags via opts
26416         pointer.  Use value of -march= option to determine target_flags
26417         settings.
26418         * config/score/score.opt (march=): Use Enum.
26419         (score_arch): New Enum and EnumValue entries.
26420
26421 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26422
26423         * config/mep/mep.c (option_mtiny_specified): Remove.
26424         (mep_option_override): Move register handling for -mivc2 from
26425         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
26426         instead of option_mtiny_specified.
26427         (mep_handle_option): Access target_flags via opts pointer.  Don't
26428         assert that global structures are in use.  Defer part of -mivc2
26429         handling and move it to mep_option_override.
26430         * config/mep/mep.opt (IVC2): New Mask entry.
26431         (mivc2): Use Var and Defer instead of Mask.
26432
26433 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26434
26435         * config/v850/v850-opts.h: New.
26436         * config/v850/v850.c (small_memory): Replace with
26437         small_memory_physical_max array.  Make that array static const.
26438         (v850_handle_memory_option): Take integer value of argument.  Take
26439         gcc_options pointer, option text and location.  Return void.
26440         Update for changes to small memory structures.
26441         (v850_handle_option): Access target_flags via opts pointer.  Don't
26442         assert that global structures are in use.  Update calls to
26443         v850_handle_memory_option.
26444         (v850_encode_data_area): Update references to small memory settings.
26445         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
26446         (enum small_memory_type): Move to v850-opts.h.
26447         * config/v850/v850.opt (config/v850/v850-opts.h): New
26448         HeaderInclude entry.
26449         (small_memory_max): New Variable entry.
26450         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
26451         (mtda, mzda): Likewise.
26452
26453 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26454
26455         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
26456         pointer.  Don't assert that global structures are in use.
26457
26458 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26459
26460         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
26461         via opts pointer.  Don't assert that global structures are in use.
26462
26463 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26464
26465         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
26466         (munix=93): Use Var.
26467         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
26468         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
26469         * config/pa/pa-opts.h: New.
26470         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
26471         (pa_handle_option): Don't assert that global structures are in
26472         use.  Access target_flags via opts pointer.  Don't handle
26473         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
26474         OPT_munix_98 here.
26475         (pa_option_override): Handle deferred OPT_mfixed_range_.
26476
26477 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26478
26479         * config/mn10300/mn10300-opts.h: New.
26480         * config/mn10300/mn10300.c (mn10300_processor,
26481         mn10300_tune_string): Remove.
26482         (mn10300_handle_option): Don't assert that global structures are
26483         in use.  Access mn10300_processor via opts pointer.  Don't handle
26484         OPT_mtune_ here.
26485         * config/mn10300/mn10300.h (enum processor_type): Move to
26486         mn10300-opts.h.
26487         (mn10300_processor): Remove.
26488         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
26489         HeaderInclude entry.
26490         (mn10300_processor): New Variable entry.
26491         (mtune=): Use Var.
26492
26493 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26494
26495         * config/microblaze/microblaze.c: Don't include opts.h.
26496         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
26497         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
26498         (mno-clearbss): Use Var and Warn.
26499
26500 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26501
26502         * config/m32r/m32r-opts.h: New.
26503         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
26504         (m32r_handle_option): Don't assert that global structures are in
26505         use.  Access target_flags and m32r_cache_flush_func via opts
26506         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
26507         OPT_mno_flush_trap here.
26508         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
26509         include of m32r-opts.h.
26510         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
26511         HeaderInclude entry.
26512         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
26513         (mmodel=): Use Enum and Var.
26514         (m32r_model): New Enum and EnumValue entries.
26515         (mno-flush-trap): Use Var.
26516         (msdata=): Use Enum and Var.
26517         (m32r_sdata): New Enum and EnumValue entries.
26518
26519 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26520
26521         * config/m32c/m32c.c: Don't include opts.h.
26522         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
26523         m32c_handle_option): Remove.
26524         (m32c_option_override): Check global_options_set.x_target_memregs
26525         instead of target_memregs_set.
26526         * config/m32c/m32c.h (target_memregs): Remove.
26527         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
26528         variable.
26529
26530 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26531
26532         * config/iq2000/iq2000-opts.h: New.
26533         * config/iq2000/iq2000.c: Don't include opts.h.
26534         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
26535         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
26536         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
26537         HeaderInclude entry.
26538         (iq2000_tune): New Variable entry.
26539         (march=): Add comment.  Use Enum.
26540         (iq2000_arch): New Enum and EnumValue entries.
26541         (mcpu=): Use Enum and Var.
26542         (iq2000_tune): New Enum and EnumValue entries.
26543
26544 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26545
26546         * config/ia64/ia64-opts.h: New.
26547         * config/ia64/ia64.c (ia64_tune): Remove.
26548         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
26549         here.  Use error_at.
26550         (ia64_option_override): Handle deferred OPT_mfixed_range_.
26551         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
26552         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
26553         HeaderInclude entry.
26554         (ia64_tune): New Variable entry.
26555         (mfixed-range=): Use Defer and Var.
26556         (mtune=): Use Enum and Var.
26557         (ia64_tune): New Enum and EnumValue entries.
26558
26559 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26560
26561         * config/frv/frv-opts.h: New.
26562         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
26563         frv-opts.h.
26564         (frv_cpu_type): Remove.
26565         * config/frv/frv.c: Don't include opts.h.
26566         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
26567         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
26568         (frv_cpu_type): New Variable entry.
26569         (frv_cpu): New Enum and EnumValue entries.
26570
26571 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26572
26573         * config/cris/cris.c (cris_handle_option): Access target_flags via
26574         opts pointer.  Don't assert that global structures are in use.
26575         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
26576         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
26577
26578 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26579
26580         * config/bfin/bfin-opts.h: New.
26581         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
26582         bfin_si_revision, bfin_workarounds): Remove.
26583         (bfin_cpus): Make static const.
26584         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
26585         not bfin_lib_id_given.
26586         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
26587         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
26588         pointer. Use error_at.  Don't assert that global structures are in use.
26589         * config/bfin/bfin.h: Include bfin-opts.h.
26590         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
26591         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
26592         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
26593         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
26594         entries.
26595
26596 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26597
26598         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
26599         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
26600         or -msoft-float here.
26601         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
26602         -msoft-float and -mhard-float.
26603         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
26604         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26605         msoft-float.
26606         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
26607         -msoft-float.
26608         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
26609         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
26610         not mhard-float.
26611         (LIBGCC_SPEC): Don't handle -msoft-float.
26612         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
26613         -mhard-float.
26614         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26615         msoft-float.
26616         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
26617         -mfloat-abi=*, not -msoft-float and -mhard-float.
26618         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
26619         -msoft-float.
26620         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
26621         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
26622         mhard-float and msoft-float.
26623         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
26624         mfloat-abi=soft in comments, not mhard-float and msoft-float.
26625         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
26626         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
26627         mhard-float.
26628         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
26629         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
26630         msoft-float.
26631         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
26632         not mhard-float.
26633         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
26634         not msoft-float.
26635
26636 2011-03-22  Richard Henderson  <rth@redhat.com>
26637
26638         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
26639         TARGET_ABI_WINDOWS_NT.
26640         (alpha_output_function_end_prologue): Likewise.
26641         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
26642         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
26643         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
26644         (trap, *movsi_nt_vms): Likewise.
26645         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
26646         (*tablejump_osf_nt_internal): Remove.
26647         * config/alpha/predicates.md (input_operand): Only test Pmode.
26648
26649 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26650
26651         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
26652         via opts pointer.  Use error_at.  Don't assert that global
26653         structures are in use.
26654
26655 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26656
26657         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
26658         (ix86_handle_option): Access ix86_isa_flags and
26659         ix86_isa_flags_explicit via opts pointer.  Don't assert that
26660         global structures are in use.
26661         (ix86_function_specific_save, ix86_function_specific_restore):
26662         Update ix86_isa_flags_explicit field name.
26663         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
26664         (ix86_isa_flags_explicit): Rename TargetSave entry to
26665         x_ix86_isa_flags_explicit.
26666
26667 2011-03-22  Richard Henderson  <rth@redhat.com>
26668
26669         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
26670         (alpha_option_override, direct_return): Likewise.
26671         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
26672         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
26673         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
26674         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
26675         (alpha_expand_epilogue, alpha_end_function): Likewise.
26676         (alpha_init_libfuncs): Likewise.
26677         (struct machine_function): Remove unicosmk members.
26678         (print_operand) ['t']: Remove.
26679         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
26680         unicosmk_output_module_name, unicosmk_output_common,
26681         current_section_align, unicosmk_output_text_section_asm_op,
26682         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
26683         unicosmk_section_type_flags, unicosmk_unique_section,
26684         unicosmk_asm_named_section, unicosmk_insert_attributes,
26685         unicosmk_output_align, unicosmk_defer_case_vector,
26686         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
26687         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
26688         unicosmk_output_ssib, unicosmk_add_call_info_word,
26689         unicosmk_extern_head, unicosmk_output_default_externs,
26690         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
26691         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
26692         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
26693         * config/alpha/alpha-protos.h: Update.
26694         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
26695         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
26696         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
26697         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
26698         (*mulsi_se, mulvsi3): Likewise.
26699         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
26700         (*divmodsi_internal, call, call_value, realign): Likewise.
26701         (moddi3, umoddi3): Likewise; remove duplicate expander.
26702         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
26703         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
26704         (*movdi_nofix): Remove r/U alternative.
26705         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
26706         * config/alpha/constraints.md ("U"): Remove.
26707         * config/alpha/predicates.md (call_operand"): Don't test
26708         TARGET_ABI_UNICOSMK.
26709
26710 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26711
26712         * target.def (handle_option): Take gcc_options and
26713         cl_decoded_option pointers and location_t.
26714         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
26715         * doc/tm.texi: Regenerate.
26716         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
26717         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
26718         * lto-opts.c (lto_reissue_options): Generate option structure for
26719         targetm.handle_option call.
26720         * opts.c (target_handle_option): Update call to
26721         targetm.handle_option.  Remove assertions about values now passed
26722         down to hook.
26723         * targhooks.c (default_target_handle_option): New.
26724         * targhooks.h (default_target_handle_option): Declare.
26725         * config/alpha/alpha.c: Include opts.h.
26726         (alpha_handle_option): Update to new hook interface.
26727         * config/arm/arm.c: Include opts.h.
26728         (arm_handle_option): Update to new hook interface.
26729         * config/arm/t-arm (arm.o): Update dependencies.
26730         * config/bfin/bfin.c: Include opts.h.
26731         (bfin_handle_option): Update to new hook interface.
26732         * config/cris/cris.c: Include opts.h.
26733         (cris_handle_option): Update to new hook interface.
26734         * config/frv/frv.c: Include opts.h.
26735         (frv_handle_option): Update to new hook interface.
26736         * config/i386/i386.c: Include opts.h.
26737         (ix86_handle_option): Update to new hook interface.
26738         (ix86_valid_target_attribute_inner_p): Generate option structure
26739         for call to ix86_handle_option.
26740         * config/i386/t-i386 (i386.o): Update dependencies.
26741         * config/ia64/ia64.c: Include opts.h.
26742         (ia64_handle_option): Update to new hook interface.
26743         * config/ia64/t-ia64 (ia64.o): Update dependencies.
26744         * config/iq2000/iq2000.c: Include opts.h.
26745         (iq2000_handle_option): Update to new hook interface.
26746         * config/m32c/m32c.c: Include opts.h.
26747         (m32c_handle_option): Update to new hook interface.
26748         * config/m32r/m32r.c: Include opts.h.
26749         (m32r_handle_option): Update to new hook interface.
26750         * config/m68k/m68k.c: Include opts.h.
26751         (m68k_handle_option): Update to new hook interface.
26752         * config/mep/mep.c: Include opts.h.
26753         (mep_handle_option): Update to new hook interface.
26754         * config/microblaze/microblaze.c: Include opts.h.
26755         (microblaze_handle_option): Update to new hook interface.
26756         * config/mips/mips.c: Include opts.h.
26757         (mips_handle_option): Update to new hook interface.
26758         * config/mn10300/mn10300.c: Include opts.h.
26759         (mn10300_handle_option): Update to new hook interface.
26760         * config/pa/pa.c: Include opts.h.
26761         (pa_handle_option): Update to new hook interface.
26762         * config/pdp11/pdp11.c: Include opts.h.
26763         (pdp11_handle_option): Update to new hook interface.
26764         * config/rs6000/rs6000.c: Include opts.h.
26765         (rs6000_handle_option): Update to new hook interface.
26766         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
26767         * config/rx/rx.c: Include opts.h.
26768         (rx_handle_option): Update to new hook interface.
26769         * config/s390/s390.c: Include opts.h.
26770         (s390_handle_option): Update to new hook interface.
26771         * config/score/score.c: Include opts.h.
26772         (score_handle_option): Update to new hook interface.
26773         * config/sh/sh.c: Include opts.h.
26774         (sh_handle_option): Update to new hook interface.
26775         * config/sparc/sparc.c: Include opts.h.
26776         (sparc_handle_option): Update to new hook interface.
26777         * config/v850/v850.c: Include opts.h.
26778         (v850_handle_option): Update to new hook interface.
26779
26780 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26781
26782         * gcc.c (driver_unknown_option_callback): Only permit and save
26783         unknown -Wno- options.
26784         (driver_wrong_lang_callback): Save options directly instead of via
26785         driver_unknown_option_callback.
26786
26787 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
26788
26789         * combine.c (simplify_set): Try harder to find the best CC mode when
26790         simplifying a nested COMPARE on the RHS.
26791
26792 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26793
26794         * config/alpha/gnu.h: Remove.
26795         * config/arc: Remove directory.
26796         * config/arm/netbsd.h: Remove.
26797         * config/arm/t-pe: Remove.
26798         * config/crx: Remove directory.
26799         * config/i386/netbsd.h: Remove.
26800         * config/m68hc11: Remove directory.
26801         * config/m68k/uclinux-oldabi.h: Remove.
26802         * config/mcore/mcore-pe.h: Remove.
26803         * config/mcore/t-mcore-pe: Remove.
26804         * config/netbsd-aout.h: Remove.
26805         * config/rs6000/gnu.h: Remove.
26806         * config/sh/sh-symbian.h: Remove.
26807         * config/sh/symbian-base.c: Remove.
26808         * config/sh/symbian-c.c: Remove.
26809         * config/sh/symbian-cxx.c: Remove.
26810         * config/sh/symbian-post.h: Remove.
26811         * config/sh/symbian-pre.h: Remove.
26812         * config/sh/t-symbian: Remove.
26813         * config/svr3.h: Remove.
26814         * config/vax/netbsd.h: Remove.
26815         * config.build: Don't handle i[34567]86-*-pe.
26816         * config.gcc: Remove handling of deprecations for most deprecated
26817         targets.
26818         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
26819         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
26820         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
26821         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
26822         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
26823         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
26824         Remove cases.
26825         * config.host: Don't handle i[34567]86-*-pe.
26826         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
26827         (ASM_SPEC32): Don't handle -mcall-gnu.
26828         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
26829         -mcall-gnu.
26830         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
26831         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
26832         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
26833         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
26834         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
26835         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
26836         conditional on SYMBIAN.
26837         * configure.ac: Don't handle powerpc*-*-gnu*.
26838         * configure: Regenerate.
26839         * doc/extend.texi (interrupt attribute): Don't mention CRX.
26840         * doc/install-old.texi (m6811, m6812): Don't mention.
26841         * doc/install.texi (arc-*-elf*): Don't document multilib option.
26842         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
26843         (m68k-uclinuxoldabi): Don't mention.
26844         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
26845         Remove.
26846         (-mcall-gnu): Remove.
26847         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
26848         families): Remove constraint documentation.
26849
26850 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
26851
26852         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
26853         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
26854         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
26855
26856 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26857
26858         PR target/48226
26859         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
26860         vector when peeking at the next token for vector, don't expand the
26861         keywords.
26862
26863 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
26864
26865         * config/avr/avr-protos.h (expand_epilogue): Change prototype
26866         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
26867         * config/avr/avr.c (init_cumulative_args)
26868         (avr_function_arg_advance): Use it.
26869         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
26870         sibcall epilogues.
26871         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
26872         (avr_function_ok_for_sibcall): ...this new function.
26873         (avr_lookup_function_attribute1): New static Function.
26874         (avr_naked_function_p, interrupt_function_p)
26875         (signal_function_p, avr_OS_task_function_p)
26876         (avr_OS_main_function_p): Use it.
26877         * config/avr/avr.md ("sibcall", "sibcall_value")
26878         ("sibcall_epilogue"): New expander.
26879         ("*call_insn", "*call_value_insn"): New insn.
26880         ("call_insn", "call_value_insn"): Remove
26881         ("call", "call_value", "epilogue"): Change expander to handle
26882         sibling calls.
26883
26884 2011-03-21  Nick Clifton  <nickc@redhat.com>
26885
26886         * doc/invoke.texi (Overall Options): Move closing brace to end of
26887         options list.
26888         (Optimization Options): Add missing @gol.
26889         (Directory Options): Likewise.
26890         (i386 and x86-64 Options): Likewise.
26891         (RS6000 and PowerPC Options): Likewise.
26892         (i386 and x86-64 Windows Options): Likewise.
26893         (V850 Options): Add text missing from descriptions.
26894
26895 2011-03-22  Richard Henderson  <rth@redhat.com>
26896
26897         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
26898         (avr_incoming_return_addr_rtx): New.
26899         (emit_push_byte): New.
26900         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
26901         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
26902         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
26903         (emit_pop_byte): New.
26904         (expand_epilogue): Use it.  Pop frame pointer by bytes.
26905         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
26906         (INCOMING_RETURN_ADDR_RTX): New.
26907         (INCOMING_FRAME_SP_OFFSET): New.
26908         (ARG_POINTER_CFA_OFFSET): New.
26909         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
26910         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
26911         (pophi): Remove.
26912
26913         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
26914
26915 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26916
26917         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26918         (FUNCTION_ARG_ADVANCE): Likewise.
26919         * tm.texi.in: Change references to them to hook references.
26920         * tm.texi: Regenerate.
26921         * targhooks.c (default_function_arg): Eliminate check for target
26922         macro.
26923         (default_function_incoming_arg): Likewise.
26924         (default_function_arg_advance): Likewise.
26925         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26926         (function_arg_advance): Likewise.
26927         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26928
26929 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26930
26931         * tree.c (build_call_1): New function.
26932         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
26933
26934 2011-03-22  Richard Guenther  <rguenther@suse.de>
26935
26936         PR tree-optimization/48228
26937         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
26938         for single-arg PHIs.
26939
26940 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
26941
26942         PR rtl-optimization/48143
26943         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
26944         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
26945         sse2_cvtps2pd): Likewise.
26946
26947 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26948
26949         * recog.c (canonicalize_change_group): Use validate_unshare_change.
26950
26951 2011-03-22  Richard Guenther  <rguenther@suse.de>
26952
26953         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
26954         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
26955         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
26956         and REALIGN_LOAD_EXPR.
26957         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
26958         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
26959         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
26960         DOT_PROD_EXPR case ...
26961         (expand_expr_real_2): ... here.
26962         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
26963         and REALIGN_LOAD_EXPR.
26964         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
26965         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
26966         (vect_create_epilog_for_reduction): Likewise.
26967         (vectorizable_reduction): Likewise.
26968         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
26969         * tree-vect-stmts.c (vectorizable_load): Likewise.
26970
26971 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
26972
26973         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
26974
26975 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26976
26977         * config/s390/s390.c (s390_delegitimize_address): Fix offset
26978         handling for PLTOFF/GOTOFF.
26979
26980 2011-03-22  Nick Clifton  <nickc@redhat.com>
26981
26982         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
26983         trailing backslash from the end of the macro definition.
26984
26985 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26986
26987         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
26988         and PLT unspecs.
26989
26990 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
26991
26992         * expr.h (prepare_operand): Move to...
26993         * optabs.h (prepare_operand): ...here and change the insn code
26994         parameter from "int" to "enum insn_code".
26995         (insn_operand_matches): Declare.
26996         * expr.c (init_expr_target): Use insn_operand_matches.
26997         (compress_float_constant): Likewise.
26998         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
26999         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
27000         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
27001         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
27002         Likewise.
27003         (gen_cond_trap): Likewise.
27004         (prepare_operand): Likewise.  Change icode to an insn_code.
27005         (insn_operand_matches): New function.
27006         * reload.c (find_reloads_address_1): Use insn_operand_matches.
27007         * reload1.c (gen_reload): Likewise.
27008         * targhooks.c (default_secondary_reload): Likewise.
27009
27010 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
27011
27012         * config/alpha/alpha.md (unspec): New define_c_enum.
27013         (unspecv): Ditto.
27014
27015 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
27016
27017         PR debug/48214
27018         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
27019         between a call and its CALL_ARG_LOCATION note.
27020
27021 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
27022
27023         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
27024
27025 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
27026
27027         PR c/42544
27028         PR c/48197
27029         * c-common.c (shorten_compare): If primopN is first sign-extended
27030         to opN and then zero-extended to result type, set primopN to opN.
27031
27032 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
27033
27034         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
27035         for barrier handlers.
27036
27037 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
27038
27039         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
27040         UNSPEC constants to be in the unspec enumeration, and redefine
27041         all UNSPECV constants to be in the unspecv enumeration, so that
27042         dumps print which unspec/unspec_volatile this is.
27043         * config/rs6000/vector.md (UNSPEC_*): Ditto.
27044         * config/rs6000/paired.md (UNSPEC_*): Ditto.
27045         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
27046         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
27047         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
27048
27049         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
27050         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
27051         UNSPECV_LWSYNC, since these are used as unspec_volatile.
27052         * config/rs6000/sync.md (isync, lwsync): Ditto.
27053
27054 2011-03-21  Richard Guenther  <rguenther@suse.de>
27055
27056         * params.def (lto-min-partition): Fix typo.
27057
27058 2011-03-21  Richard Guenther  <rguenther@suse.de>
27059
27060         PR c/47939
27061         * c-decl.c (grokdeclarator): Drop to the main variant only
27062         for array types.  Drop flag_gen_aux_info check.
27063
27064 2011-03-21  Richard Guenther  <rguenther@suse.de>
27065
27066         PR translation/47911
27067         * params.def (lto-partitions): Fix typo.
27068         (lto-min-partition): Fix wording.
27069
27070 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
27071
27072         * config/rs6000/t-freebsd: Remove duplication from file.
27073
27074 2011-03-21  Richard Guenther  <rguenther@suse.de>
27075
27076         PR middle-end/47661
27077         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
27078
27079 2011-03-21  Richard Guenther  <rguenther@suse.de>
27080
27081         PR lto/48210
27082         * params.def (lto-partitions): Require at least 1 partition.
27083
27084 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27085
27086         * gthr-solaris.h: Remove.
27087         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
27088         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
27089         (LIB_SPEC): Likewise.
27090         * config/sol2.opt (threads): Remove.
27091         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
27092         (sparc*-*-solaris2*): Likewise.
27093         * configure.ac (enable_threads): Enable solaris support.
27094         * configure: Regenerate.
27095         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
27096         * doc/install.texi (Configuration, --enable-threads=lib): Remove
27097         solaris.
27098
27099 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27100
27101         * config.gcc: Obsolete *-*-solaris2.8*.
27102         * doc/install.texi (Specific, *-*-solaris2*): Document it.
27103
27104 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27105
27106         PR bootstrap/48135
27107         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
27108         reference.  Solaris 8 perl works.
27109
27110 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27111
27112         PR bootstrap/48135
27113         * doc/install.texi (Prerequisites): Move jar etc. up.
27114         Explain support library version requirements.
27115
27116 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27117
27118         PR bootstrap/48135
27119         * doc/install.texi (Prerequisites): Move Perl to build
27120         requirements.  Always necessary on Solaris 2 with Sun ld.
27121
27122 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27123
27124         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
27125         binutils 2.21.
27126         (Specific, i?86-*-solaris2.[89]): Likewise.
27127         (Specific, i?86-*-solaris2.10): Likewise.
27128         (Specific, mips-sgi-irix6): Likewise.
27129         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
27130         Update for binutils 2.21.
27131
27132 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27133
27134         * configure.ac (gcc_cv_lto_plugin): Fix typo.
27135         Allow -fuse-linker-plugin for non-default plugin linker.
27136         * configure: Regenerate.
27137
27138 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
27139
27140         PR bootstrap/48167
27141         * gengtype.c (files_rules): Added rule for cp/parser.h.
27142
27143 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
27144
27145         PR target/48213
27146         * config/s390/s390.c (s390_delegitimize_address): Don't call
27147         lowpart_subreg if orig_x has BLKmode.
27148
27149 2011-03-21  Kai Tietz  <ktietz@redhat.com>
27150
27151         PR target/12171
27152         * doc/plugins.texi: Adjust documentation for plugin register_callback.
27153         * tree.h (attribute_spec): Add new member affects_type_identity.
27154         * attribs.c (empty_attribute_table): Adjust attribute_spec
27155         initializers.
27156         * config/alpha/alpha.c: Likewise.
27157         * config/arc/arc.c: Likewise.
27158         * config/arm/arm.c: Likewise.
27159         * config/avr/avr.c: Likewise.
27160         * config/bfin/bfin.c: Likewise.
27161         * config/crx/crx.c: Likewise.
27162         * config/darwin.h: Likewise.
27163         * config/h8300/h8300.c: Likewise.
27164         * config/i386/cygming.h: Likewise.
27165         * config/i386/i386.c: Likewise.
27166         * config/ia64/ia64.c: Likewise.
27167         * config/m32c/m32c.c: Likewise.
27168         * config/m32r/m32r.c: Likewise.
27169         * config/m68hc11/m68hc11.c: Likewise.
27170         * config/m68k/m68k.c: Likewise.
27171         * config/mcore/mcore.c: Likewise.
27172         * config/mep/mep.c: Likewise.
27173         * config/microblaze/microblaze.c: Likewise.
27174         * config/mips/mips.c: Likewise.
27175         * config/rs6000/rs6000.c: Likewise.
27176         * config/rx/rx.c: Likewise.
27177         * config/sh/sh.c: Likewise.
27178         * config/sol2.h: Likewise.
27179         * config/sparc/sparc.c: Likewise.
27180         * config/spu/spu.c: Likewise.
27181         * config/stormy16/stormy16.c: Likewise.
27182         * config/v850/v850.c: Likewise.
27183
27184 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
27185
27186         * simplify-rtx.c (simplify_binary_operation_1): Handle
27187         (xor (and A B) C) case when B and C are both constants.
27188
27189 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
27190
27191         * tree-dfa.c (add_referenced_var): Fix typo in comment.
27192
27193 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
27194
27195         PR bootstrap/48168
27196         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
27197
27198 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
27199
27200         PR rtl-optimization/48156
27201         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
27202         assume df and df_lr are not NULL.
27203
27204 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27205
27206         PR debug/48023
27207         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
27208         between a call and its CALL_ARG_LOCATION note.
27209
27210 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
27211
27212         PR debug/48178
27213         * config/sh/sh.c (find_barrier): Don't emit a constant pool
27214         between a call and its corresponding CALL_ARG_LOCATION note.
27215
27216 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
27217
27218         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
27219         instead of loop. Use HARD_REGISTER_NUM_P predicate.
27220         * haifa-sched.c (setup_ref_regs): Ditto.
27221         * caller-save.c (add_used_regs_1): Ditto.
27222         * dse.c (look_for_hardregs): Ditto.
27223         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
27224         * sched-rgn.c (check_live_1): Ditto.
27225
27226 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
27227
27228         * c-decl.c (diagnose_mismatched_decls): Give an error for
27229         redefining a typedef with variably modified type.
27230
27231 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
27232
27233         * c-decl.c (grokfield): Don't allow typedefs for structures or
27234         unions with no tag by default.
27235         * doc/extend.texi (Unnamed Fields): Update.
27236
27237 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
27238
27239         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
27240         Rewrite using indirect functions.
27241         (lwp_slwpcb): Ditto.
27242         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
27243         (avx_vinsertf128<mode>): Ditto.
27244
27245 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27246
27247         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
27248         unspecs.
27249
27250 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27251
27252         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
27253         splitting between a call and its corresponding CALL_ARG_LOCATION note.
27254
27255 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
27256
27257         PR rtl-optimization/48170
27258         * gcse.c (hoist_code): Remove bogus asserts.
27259
27260 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
27261
27262         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
27263         computation for prologue/epilogue.
27264
27265 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27266
27267         * Makefile.in (check-consistency): Remove.
27268
27269 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
27270
27271         PR debug/48176
27272         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
27273         arange_table_in_use is 0, but either text_section_used or
27274         cold_text_section_used is true.  Don't call it if
27275         !info_section_emitted.
27276
27277 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
27278
27279         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
27280         FUNCTION_VALUE_REGNO_P): Remove.
27281         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
27282         Remove.
27283         * config/avr/avr.c (avr_ret_register): Make static inline.
27284         (avr_function_value_regno_p): New function.
27285         (avr_libcall_value): Make static. Add 'func' argument.
27286         (avr_function_value): Make static. Rename 'func' argument to
27287         'fn_decl_or_type', forward it to avr_libcall_value. Call
27288         avr_ret_register function instead of RET_REGISTER macro.
27289         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27290
27291 2011-03-18  Jason Merrill  <jason@redhat.com>
27292
27293         PR c++/23372
27294         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
27295
27296 2011-03-18  Richard Guenther  <rguenther@suse.de>
27297
27298         * doc/install.texi (--enable-gold): Remove.
27299         (--with-plugin-ld): Document.
27300         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
27301
27302 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
27303
27304         PR middle-end/47790
27305         * expr.c (optimize_bitfield_assignment_op): Revamp to work
27306         again after expansion changes.
27307
27308 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
27309
27310         * combine.c (try_combine): Do simplification only call of
27311         subst() on i2 even when i1 is present. Update comments.
27312
27313 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
27314
27315         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
27316         and UNSPEC_PCREL_SYMOFF.
27317
27318 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27319
27320         * config/s390/s390.md: Use define_c_enum for the unspec constant
27321         definitions.
27322
27323 2011-03-18  Richard Henderson  <rth@redhat.com>
27324             Jakub Jelinek  <jakub@redhat.com>
27325
27326         PR bootstrap/48161
27327         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
27328         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
27329
27330 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
27331
27332         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27333         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
27334         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
27335         Change return type to bool.
27336         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27337
27338 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27339
27340         PR debug/48163
27341         * var-tracking.c (prepare_call_arguments): If CALL target
27342         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
27343         pc instead of looking it up using cselib_lookup and use
27344         Pmode for it if x has VOIDmode.
27345         * dwarf2out.c (gen_subprogram_die): If also both first and
27346         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
27347
27348         PR debug/48163
27349         * function.c (assign_parms): For data.passed_pointer parms
27350         use MEM of data.entry_parm instead of data.entry_parm itself
27351         as DECL_INCOMING_RTL.
27352         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
27353         also when passed and declared mode is the same, DECL_RTL
27354         is a MEM with pseudo as address and DECL_INCOMING_RTL is
27355         a MEM too.
27356
27357 2011-03-16  Jeff Law  <law@redhat.com>
27358
27359         PR rtl-optimization/37273
27360         * ira-costs.c (scan_one_insn): Detect constants living in memory and
27361         handle them like argument loads from stack slots.  Do not double
27362         count memory for memory constants and argument loads from stack slots.
27363
27364 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27365
27366         PR debug/48160
27367         * var-tracking.c (prepare_call_arguments): Check SUBREG.
27368
27369 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27370
27371         PR target/48171
27372         * config/i386/i386.opt: Add Save to -mavx and -mfma.
27373
27374 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27375
27376         PR bootstrap/48153
27377         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
27378         if dwarf_strict.
27379         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
27380         Clear call_arg_locations and call_arg_loc_last always.
27381
27382         PR middle-end/48152
27383         * var-tracking.c (prepare_call_arguments): If argument needs to be
27384         passed by reference, adjust argtype and mode.
27385
27386 2011-03-17  Richard Guenther  <rguenther@suse.de>
27387
27388         PR middle-end/48134
27389         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
27390         a value make sure to fold the statement.
27391
27392 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
27393
27394         PR target/43872
27395         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
27396         return condition with !cfun->calls_alloca.
27397
27398 2011-03-17  Richard Guenther  <rguenther@suse.de>
27399
27400         PR bootstrap/48148
27401         * lto-cgraph.c (input_overwrite_node): Clear the abstract
27402         origin for decls in other ltrans units.
27403         (input_varpool_node): Likewise.
27404
27405 2011-03-17  Richard Guenther  <rguenther@suse.de>
27406
27407         PR middle-end/48165
27408         * tree-object-size.c (compute_object_offset): Properly return
27409         the offset operand of MEM_REFs as sizetype.
27410
27411 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27412
27413         PR rtl-optimization/48141
27414         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
27415         * dse.c: Include params.h.
27416         (active_local_stores_len): New variable.
27417         (add_wild_read, dse_step1): Clear it when setting active_local_stores
27418         to NULL.
27419         (record_store, check_mem_read_rtx): Decrease it when removing
27420         from the chain.
27421         (scan_insn): Likewise.  Increase it when adding to chain, if it
27422         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
27423         set active_local_stores to NULL before the addition.
27424         * Makefile.in (dse.o): Depend on $(PARAMS_H).
27425
27426         PR rtl-optimization/48141
27427         * dse.c (record_store): If no positions are needed in an insn
27428         that cannot be deleted, at least unchain it from active_local_stores.
27429
27430 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
27431
27432         PR debug/47510
27433         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
27434         (lookup_type_die_strip_naming_typedef): ... here.
27435         (get_context_die): Use it.
27436         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
27437         the anonymous struct named by the naming typedef.
27438
27439 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27440
27441         PR target/48154
27442         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
27443         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27444
27445 2011-03-16  Jeff Law  <law@redhat.com>
27446
27447         * tree-vrp.c (identify_jump_threads): Slightly simplify type
27448         check for operands of conditional.  Allow type to be a pointer.
27449
27450 2011-03-16  Richard Guenther  <rguenther@suse.de>
27451
27452         PR tree-optimization/48149
27453         * fold-const.c (fold_binary_loc): Fold
27454         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
27455
27456 2011-03-16  Richard Guenther  <rguenther@suse.de>
27457
27458         PR tree-optimization/26134
27459         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
27460         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
27461         (non_rewritable_mem_ref_base): Handle complex type component
27462         accesses, constrain offsets for vector and complex extracts
27463         more properly.
27464
27465 2011-03-16  Richard Guenther  <rguenther@suse.de>
27466
27467         PR tree-optimization/48146
27468         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
27469         operands avoiding the need for renaming.
27470
27471 2011-03-16  Richard Guenther  <rguenther@suse.de>
27472
27473         * gimple-fold.c (maybe_fold_reference): Open-code relevant
27474         constant folding.  Move MEM_REF canonicalization first.
27475         Rely on fold_const_aggregate_ref for initializer folding.
27476         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
27477
27478 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
27479
27480         PR middle-end/48136
27481         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
27482         arg0/arg1 or their arguments are always fold converted to matching
27483         types.
27484
27485         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
27486         to nargs.
27487
27488 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27489
27490         PR lto/46944
27491         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
27492         Handle in-tree gold.
27493         (ld_vers): Extract binutils version for gold.
27494         (gcc_cv_ld_hidden): Handle gold here.
27495         (gcc_cv_lto_plugin): Determine level of linker plugin support.
27496         * configure: Regenerate.
27497         * config.in: Regenerate.
27498         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
27499         -fuse-linker-plugin otherwise.
27500         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
27501         (LINK_COMMAND_SPEC): Use it.
27502         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
27503
27504 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
27505
27506         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
27507         * calls.c: Remove debug.h include.
27508         (emit_call_1): Don't call virtual_call_token debug hook.
27509         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
27510         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
27511         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
27512         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
27513         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
27514         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
27515         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
27516         dwarf2out_virtual_call): Remove.
27517         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
27518         copy_call_info and virtual_call hooks.
27519         (dwarf2out_init): Don't initialize vcall_insn_table,
27520         debug_dcall_section and debug_vcall_section.
27521         (prune_unused_types): Don't mark nodes from dcall_table.
27522         (dwarf2out_finish): Don't output dcall or vcall tables.
27523         * final.c (final_scan_insn): Don't call direct_call or
27524         virtual_call debug hooks.
27525         * debug.h (struct gcc_debug_hooks): Remove direct_call,
27526         virtual_call_token, copy_call_info and virtual_call hooks.
27527         (debug_nothing_uid): Remove prototype.
27528         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
27529         copy_call_info and virtual_call hooks.
27530         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27531         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
27532         * debug.c (do_nothing_debug_hooks): Likewise.
27533         (debug_nothing_uid): Remove.
27534         * doc/invoke.texi (-fenable-icf-debug): Remove.
27535         * common.opt (-fenable-icf-debug): Likewise.
27536
27537         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
27538         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
27539         call's MEM.  Handle functions returning aggregate through a hidden
27540         first pointer.  For virtual calls add clobbered pc to call arguments
27541         chain.
27542         * dwarf2out.c (gen_subprogram_die): Emit
27543         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
27544         can't be emitted.
27545
27546         PR debug/45882
27547         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
27548         * rtl.h (ENTRY_VALUE_EXP): Define.
27549         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
27550         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
27551         * print-rtl.c (print_rtx): Likewise.
27552         * gengtype.c (adjust_field_rtx_def): Likewise.
27553         * var-tracking.c (vt_add_function_parameter): Adjust
27554         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
27555         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
27556         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
27557         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
27558         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
27559
27560         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
27561         Call var_location debug hook even on CALL_INSNs.
27562         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
27563         * rtl.def (ENTRY_VALUE): New.
27564         * dwarf2out.c: Include cfglayout.h.
27565         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
27566         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
27567         (struct call_arg_loc_node): New type.
27568         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
27569         tail_call_site_count): New variables.
27570         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
27571         DW_TAG_GNU_call_site_parameter.
27572         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
27573         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
27574         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
27575         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
27576         and DW_AT_GNU_all_source_call_sites.
27577         (mem_loc_descriptor): Handle ENTRY_VALUE.
27578         (add_src_coords_attributes): Don't add enything if
27579         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
27580         (dwarf2out_abstract_function): Save and clear call_arg_location,
27581         call_site_count and tail_call_site_count around dwarf2out_decl call.
27582         (gen_call_site_die): New function.
27583         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
27584         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
27585         (dwarf2out_function_decl): Clear call_arg_locations,
27586         call_arg_loc_last, set call_site_count and tail_call_site_count
27587         to -1 and free block_map.
27588         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
27589         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
27590         followed by any real instructions.
27591         (dwarf2out_begin_function): Set call_site_count and
27592         tail_call_site_count to 0.
27593         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
27594         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
27595         attempt to force a DIE for it and worst case remove the attribute.
27596         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
27597         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
27598         the decl itself.
27599         * var-tracking.c: Include tm_p.h.
27600         (vt_stack_adjustments): For calls call note_register_arguments.
27601         (argument_reg_set): New variable.
27602         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
27603         ensure the VALUE is resolved.
27604         (call_arguments): New variable.
27605         (prepare_call_arguments): New function.
27606         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
27607         (struct expand_loc_callback_data): Add ignore_cur_loc field.
27608         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
27609         always use the best expression.
27610         (vt_expand_loc): Add ignore_cur_loc argument.
27611         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
27612         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
27613         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
27614         note for all calls.
27615         (vt_add_function_parameter): Use cselib_lookup_from_insn.
27616         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
27617         argument.  Don't call cselib_preserve_only_values and
27618         cselib_reset_table.
27619         (note_register_arguments): New function.
27620         (vt_initialize): Compute argument_reg_set.  Call
27621         vt_add_function_parameters before processing basic blocks instead of
27622         afterwards.  For calls call prepare_call_arguments before calling
27623         cselib_process_insn.
27624         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
27625         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
27626         (var-tracking.o): Depend on $(TM_P_H).
27627         * cfglayout.h (insn_scope): New prototype.
27628         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
27629         * cfglayout.c (insn_scope): No longer static.
27630         * insn-notes.def (CALL_ARG_LOCATION): New.
27631         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
27632         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
27633         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
27634         nothing for DECL_EXTERNAL BLOCK_VARS.
27635
27636 2011-03-16  Alan Modra  <amodra@gmail.com>
27637
27638         PR target/45844
27639         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
27640         create invalid offset address for vsx splat insn.
27641         * config/rs6000/predicates.md (splat_input_operand): New.
27642         * config/rs6000/vsx.md (vsx_splat_*): Use it.
27643
27644 2011-03-15  Xinliang David Li  <davidxl@google.com>
27645
27646         PR c/47837
27647         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
27648         (normalize_preds): New function.
27649         (is_use_properly_guarded): Normalize def predicates.
27650
27651 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27652
27653         PR target/46788
27654         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
27655         in the output template.
27656
27657 2011-03-15  Richard Guenther  <rguenther@suse.de>
27658
27659         PR middle-end/47650
27660         * tree-pretty-print.c (dump_function_declaration): Properly
27661         dump unprototyped and varargs function types.
27662
27663 2011-03-15  Richard Guenther  <rguenther@suse.de>
27664
27665         PR tree-optimization/13954
27666         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
27667         and friends.
27668
27669 2011-03-15  Richard Guenther  <rguenther@suse.de>
27670
27671         PR tree-optimization/48037
27672         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
27673         selects into BIT_FIELD_REFs.
27674         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
27675         vector select.
27676
27677 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
27678
27679         PR tree-optimization/48129
27680         * builtins.c (fold_builtin_snprintf): Convert to type of
27681         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
27682         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
27683
27684 2011-03-15  Richard Guenther  <rguenther@suse.de>
27685
27686         PR tree-optimization/41490
27687         * tree-ssa-dce.c (propagate_necessity): Handle returns without
27688         value but with VUSE.
27689         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
27690         return statements.
27691         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
27692         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
27693         * tree-tailcall.c (find_tail_calls): Ignore returns.
27694
27695 2011-03-15  Richard Guenther  <rguenther@suse.de>
27696
27697         PR middle-end/48031
27698         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
27699         or variable-indexed array accesses when in gimple form.
27700
27701 2011-03-15  Richard Guenther  <rguenther@suse.de>
27702
27703         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
27704
27705 2011-03-15  Alan Modra  <amodra@gmail.com>
27706
27707         PR target/48032
27708         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
27709         presume symbol_refs without a symbol_ref_decl are suitably
27710         aligned, nor other trees we may see here.  Handle anchor symbols.
27711         (legitimate_constant_pool_address_p): Comment.  Add mode param.
27712         Check cmodel=medium addresses.  Adjust all calls.
27713         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
27714         creating cmodel=medium optimized access to locals.
27715         * config/rs6000/constraints.md (R): Pass QImode to
27716         legitimate_constant_pool_address_p.
27717         * config/rs6000/predicates.md (input_operand): Pass mode to
27718         legitimate_constant_pool_address_p.
27719         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
27720         Update prototype.
27721
27722 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
27723
27724         PR target/48053
27725         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
27726         64-bit constants being loaded into registers other than GPRs such
27727         as loading 0 into a VSX register.
27728
27729 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27730
27731         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
27732
27733 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27734
27735         PR middle-end/47917
27736         * builtins.c (fold_builtin_snprintf): New function.
27737         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
27738         (fold_builtin_4): Likewise.
27739
27740         PR middle-end/38878
27741         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
27742         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
27743         and C - X == X also strip nops from +/-/p+ operand.
27744         When optimizing -X == C, fold C to arg0's type.
27745
27746         PR debug/47946
27747         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
27748         emit it as add_AT_int instead of add_AT_unsigned.
27749
27750 2011-03-14  Tom Tromey  <tromey@redhat.com>
27751
27752         * unwind-dw2.c: Include sys/sdt.h if it exists.
27753         (_Unwind_DebugHook): Use STAP_PROBE2.
27754         * config.in, configure: Rebuild.
27755         * configure.ac: Check for sys/sdt.h.
27756
27757 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
27758
27759         * config/i386/i386.md (ROUND_FLOOR): New constant.
27760         (ROUND_CEIL): Ditto.
27761         (ROUND_TRUNC): Ditto.
27762         (ROUND_MXCSR): Ditto.
27763         (ROUND_NO_EXC): Ditto.
27764         (rint<mode>2): Use new defines instead of numerical constants.
27765         (floor<mode>2): Ditto.
27766         (ceil<mode>2): Ditto.
27767         (btrunc<mode>2): Ditto.
27768         * config/i386/i386-builtin-types.def: Define ROUND function type
27769         aliases.
27770         * config/i386/i386.c (enum ix86_builtins): Add
27771         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
27772         (struct builtin_description): Add
27773         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
27774         (ix86_expand_sse_round): New static function.
27775         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
27776         function types.
27777         (ix86_builtin_vectorized_function): Handle
27778         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27779
27780 2011-03-14  Tom Tromey  <tromey@redhat.com>
27781
27782         * c-parser.c (c_parser_asm_string_literal): Clear
27783         warn_overlength_strings.
27784
27785 2011-03-14  Tom Tromey  <tromey@redhat.com>
27786
27787         * c-parser.c (disable_extension_diagnostics): Save
27788         warn_overlength_strings.
27789         (restore_extension_diagnostics): Restore warn_overlength_strings.
27790
27791 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27792
27793         * BASE-VER: Change to 4.7.0.
27794
27795 2011-03-14  Richard Guenther  <rguenther@suse.de>
27796
27797         PR middle-end/48098
27798         * tree.c (build_vector_from_val): Adjust assert to requirements
27799         and reality.
27800
27801 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27802
27803         PR bootstrap/48102
27804         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
27805
27806 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
27807
27808         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
27809         terms of target_flags_explicit. Adjust copyright year.
27810
27811         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
27812         * config/rs6000/t-freebsd: New file. Add override for
27813         LIB2FUNCS_EXTRA.
27814
27815 2011-03-13  Chris Demetriou  <cgd@google.com>
27816
27817         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
27818         (-fno-diagnostics-show-option): this, to reflect current default.
27819         (-Werror=): Update text about -fno-diagnostics-show-option.
27820
27821 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
27822
27823         PR target/48053
27824         * config/rs6000/predicates.md (easy_vector_constant_add_self,
27825         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
27826         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
27827         mode is not V2DImode or V2DFmode.
27828         (vspltis_constant): Do not handle V2DImode and V2DFmode.
27829         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
27830         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
27831         registers to 0.
27832         (movdi_internal64): Likewise.
27833
27834 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
27835
27836         PR tree-optimization/47127
27837         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
27838         parameter.
27839         (set_cloog_options): Same.
27840         (scop_to_clast): Same.
27841         (print_clast_stmt): Do not call cloog_state_malloc and
27842         cloog_state_free.
27843         (print_generated_program): Same.
27844         (gloog): Same.
27845         * graphite-clast-to-gimple.h (cloog_state): Declared.
27846         (scop_to_clast): Adjust declaration.
27847         * graphite.c (cloog_state): Defined here.
27848         (graphite_initialize): Call cloog_state_malloc.
27849         (graphite_finalize): Call cloog_state_free.
27850
27851 2011-03-11  Jason Merrill  <jason@redhat.com>
27852
27853         * attribs.c (lookup_attribute_spec): Take const_tree.
27854         * tree.h: Adjust.
27855
27856 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
27857
27858         * config/sparc/sparc.c (sparc_option_override): Use
27859         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
27860
27861 2011-03-11  Richard Guenther  <rguenther@suse.de>
27862
27863         PR tree-optimization/48067
27864         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
27865         multiplication result will be only used once on the target
27866         stmt.
27867
27868 2011-03-11  Richard Guenther  <rguenther@suse.de>
27869
27870         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
27871
27872 2011-03-11  Richard Guenther  <rguenther@suse.de>
27873
27874         PR lto/48073
27875         * tree.c (find_decls_types_r): Do not walk types only reachable
27876         from IDENTIFIER_NODEs.
27877
27878 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
27879
27880         PR middle-end/48044
27881         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
27882         all vnode->force_output nodes as needed.
27883
27884 2011-03-11  Jason Merrill  <jason@redhat.com>
27885
27886         PR c++/48069
27887         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
27888         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
27889
27890 2011-03-11  Martin Jambor  <mjambor@suse.cz>
27891
27892         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
27893         cgraph_node.
27894
27895 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
27896
27897         PR tree-optimization/48063
27898         * ipa-inline.c (cgraph_decide_inlining): Don't try to
27899         inline functions called once if !tree_can_inline_p (node->callers).
27900
27901 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
27902
27903         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
27904         extra_objs.
27905         * config/score/score3.c: Delete.
27906         * config/score/score3.h: Delete.
27907         * config/score/mul-div.S: Delete.
27908         * config/score/sfp-machine.h: Add new file.
27909         * config/score/constraints.md: Add new file.
27910         * config/score/t-score-softfp: Add new file.
27911         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
27912         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
27913         (score7_extra_constraint): Delete.
27914         (score7_option_override): Remove unused code.
27915         * config/score/score.c: Remove score3 and score5 define and code.
27916         * config/score/score.h: Remove score3 and score5 define and code.
27917         * config/score/score.md: Remove score3 template and unusual insn.
27918         * config/score/score.opt: Remove score3 and score5 options.
27919
27920 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27921
27922         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
27923         when _HPUX_SOURCE is defined.
27924         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
27925
27926 2011-03-10  Jason Merrill  <jason@redhat.com>
27927
27928         PR c++/48029
27929         * stor-layout.c (layout_type): Don't set structural equality
27930         on arrays of incomplete type.
27931         * tree.c (type_hash_eq): Handle comparing them properly.
27932
27933 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27934
27935         PR debug/48043
27936         * config/s390/s390.c (s390_delegitimize_address): Make sure the
27937         result mode matches original rtl mode.
27938
27939 2011-03-10  Nick Clifton  <nickc@redhat.com>
27940
27941         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
27942         (andsi3, andsi3_flags): Fix timings for three operand alternative.
27943
27944 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
27945
27946         PR rtl-optimization/47866
27947         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
27948         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
27949         if target wasn't scalar.
27950         * function.c (assign_stack_temp_for_type): Assert that neither
27951         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
27952         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
27953         macro.
27954         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
27955
27956 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27957
27958         * config/s390/s390-protos.h (s390_label_align): New prototype.
27959         * config/s390/s390.c (s390_label_align): New function.
27960         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
27961
27962 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
27963
27964         PR target/47755
27965         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
27966         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
27967         (output_vec_const_move): Ditto.
27968
27969 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
27970
27971         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
27972         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
27973         * config/mips/mips.c (mips_preferred_reload_class): Make static.
27974         Change 'rclass' argument and result type to reg_class_t.
27975         (TARGET_PREFERRED_RELOAD_CLASS): Define.
27976
27977 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
27978
27979         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27980         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
27981         (TARGET_MEMORY_MOVE_COST): Define.
27982         (avr_register_move_cost, avr_memory_move_cost): New Functions.
27983
27984 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
27985
27986         PR debug/47881
27987         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
27988         removed anything.
27989
27990         PR tree-optimization/48022
27991         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
27992         for EQ/NE_EXPR.
27993
27994 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
27995
27996         PR debug/47991
27997         * var-tracking.c (find_use_val): Return NULL for
27998         cui->sets && cui->store_p BLKmode MEMs.
27999
28000 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
28001
28002         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
28003         Remove.
28004         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
28005         xstormy16_print_operand_address): Remove.
28006         * config/stormy16/stormy16.c (xstormy16_print_operand,
28007         xstormy16_print_operand_address): Make static.
28008         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
28009
28010 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
28011
28012         PR target/47862
28013         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
28014         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
28015         before definition.
28016
28017 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
28018
28019         PR bootstrap/48000
28020         * cfgloopmanip.c (fix_bb_placements): Return immediately
28021         if FROM is BASE_LOOP's header.
28022
28023 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
28024
28025         * gimplify.c (gimplify_function_tree): Fix building calls
28026         to __builtin_return_address.
28027
28028 2011-03-07  Alan Modra  <amodra@gmail.com>
28029
28030         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
28031         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
28032         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
28033         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
28034         return_mode args.
28035         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
28036         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
28037         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
28038         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
28039         * config/rs6000/rs6000.c
28040         (rs6000_elf_end_indicate_exec_stack): Rename to..
28041         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
28042         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
28043         (rs6000_file_start): ..here.
28044         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
28045         file scope variables.
28046         (call_ABI_of_interest): New function.
28047         (init_cumulative_args): Set above vars when function return value
28048         is a float, vector, or small struct.
28049         (rs6000_function_arg_advance_1): Likewise for function args.
28050         (rs6000_va_start): Set rs6000_passes_float if variable arg function
28051         references float args.
28052
28053 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
28054
28055         * doc/cfg.texi: Remove "See" before @ref.
28056         * doc/invoke.texi: Likewise.
28057
28058 2011-03-05  Jason Merrill  <jason@redhat.com>
28059
28060         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
28061
28062 2011-03-05  Anthony Green  <green@moxielogic.com>
28063
28064         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
28065
28066 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
28067
28068         PR rtl-optimization/47899
28069         * cfgloopmanip.c (fix_bb_placements): Fix first argument
28070         to flow_loop_nested_p when moving the loop upward.
28071
28072 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
28073
28074         PR target/47719
28075         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
28076
28077 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
28078
28079         PR tree-optimization/47967
28080         * ipa-cp.c (build_const_val): Return NULL instead of creating
28081         VIEW_CONVERT_EXPR for mismatching sizes.
28082         (ipcp_create_replace_map): Return NULL if build_const_val failed.
28083         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
28084         give up on versioning.
28085
28086 2011-03-05  Alan Modra  <amodra@gmail.com>
28087
28088         PR target/47986
28089         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
28090         full cmodel medium/large lo_sum + high addresses.
28091
28092 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28093
28094         * config/s390/s390.c (s390_decompose_address): Reject non-literal
28095         pool references in UNSPEC_LTREL_OFFSET.
28096
28097 2011-03-04  Jan Hubicka  <jh@suse.cz>
28098
28099         PR lto/47497
28100         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
28101         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
28102         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
28103         Add node pointers.
28104         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
28105         cgraph_add_thunk): Add node pointers.
28106         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
28107         associated to right node.
28108         (input_node): Update use of cgraph_same_body_alias
28109         and cgraph_add_thunk.
28110
28111 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
28112
28113         * config/i386/i386.opt (mprefer-avx128): New flag.
28114         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
28115         modes when the flag -mprefer-avx128 is on.
28116
28117 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
28118
28119         * dwarf2out.c (compare_loc_operands): Fix address handling.
28120
28121 2011-03-04  Alan Modra  <amodra@gmail.com>
28122
28123         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
28124
28125 2011-03-04  Richard Guenther  <rguenther@suse.de>
28126
28127         PR middle-end/47968
28128         * expmed.c (extract_bit_field_1): Prefer vector modes that
28129         vec_extract patterns can handle.
28130
28131 2011-03-04  Richard Guenther  <rguenther@suse.de>
28132
28133         PR middle-end/47975
28134         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
28135
28136 2011-03-04  Richard Henderson  <rth@redhat.com>
28137
28138         * explow.c (emit_stack_save): Remove 'after' parameter.
28139         (emit_stack_restore): Likewise.
28140         * expr.h: Update to match.
28141         * builtins.c, calls.c, stmt.c: Likewise.
28142         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
28143         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
28144         * function.c (expand_function_end): Insert the emit_stack_save
28145         sequence before parm_birth_insn instead of after.
28146
28147 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
28148
28149         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
28150         (ssse3_pmaddubsw128): Ditto.
28151         (ssse3_pmaddubsw): Ditto.
28152
28153 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
28154
28155         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
28156
28157 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
28158
28159         PR c/47963
28160         * gimplify.c (omp_add_variable): Only call omp_notice_variable
28161         on TYPE_SIZE_UNIT if it is a DECL.
28162
28163         PR debug/47283
28164         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
28165         first operand is not is_gimple_mem_ref_addr, try to fold it.
28166         If the operand still isn't is_gimple_mem_ref_addr, clear
28167         MEM_EXPR on op0.
28168
28169 2011-03-03  Richard Guenther  <rguenther@suse.de>
28170
28171         PR middle-end/47283
28172         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
28173         match comment.
28174         (refs_may_alias_p_1): For release branches return true if
28175         we are confused by our input.
28176
28177 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28178
28179         * config/s390/s390.c (s390_function_value): Rename to ...
28180         (s390_function_and_libcall_value): ... this.
28181         (s390_function_value): New function.
28182         (s390_libcall_value): New function.
28183         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
28184         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
28185         target macro definitions.
28186         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
28187
28188 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
28189
28190         * config/i386/freebsd64.h (CC1_SPEC): Define.
28191         * config/i386/linux64.h (CC1_SPEC): Define.
28192         * config/i386/x86-64.h (CC1_SPEC): Don't define.
28193
28194 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
28195
28196         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28197         Remove.
28198         * config/stormy16/stormy16.c: Include reload.h.
28199         (xstormy16_memory_move_cost): New function.
28200         (TARGET_MEMORY_MOVE_COST): Define.
28201
28202 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
28203
28204         PR rtl-optimization/47925
28205         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
28206         with side effects.  Remove the more-specific check for volatile asms.
28207
28208 2011-03-02  Alan Modra  <amodra@gmail.com>
28209
28210         PR target/47935
28211         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
28212         toc relative addresses for valid offsets.
28213
28214 2011-03-01  Richard Guenther  <rguenther@suse.de>
28215
28216         PR tree-optimization/47890
28217         * tree-vect-loop.c (get_initial_def_for_induction): Set
28218         related stmt properly.
28219
28220 2011-03-01  Richard Guenther  <rguenther@suse.de>
28221
28222         PR lto/47924
28223         * lto-streamer.c (lto_record_common_node): Also register
28224         the canonical type.
28225
28226 2011-03-01  Richard Guenther  <rguenther@suse.de>
28227
28228         PR lto/46911
28229         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
28230         Do not stream DECL_ABSTRACT_ORIGIN.
28231         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
28232         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
28233         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28234         Do not stream DECL_ABSTRACT_ORIGIN.
28235         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
28236         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
28237
28238 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
28239
28240         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
28241         FUNCTION_VALUE_REGNO_P): Remove.
28242         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
28243         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
28244         Add 'outgoing' argument.
28245         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
28246         function.
28247         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28248         TARGET_FUNCTION_VALUE_REGNO_P): Define.
28249
28250 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
28251
28252         PR debug/28047
28253         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
28254         (lookup_filename): Likewise.
28255         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
28256
28257 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
28258             Jakub Jelinek  <jakub@redhat.com>
28259
28260         PR middle-end/47893
28261         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
28262         (assign_stack_local_1): Change last argument type to int.
28263         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
28264         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
28265         don't record padding space into frame_space_list nor use those areas.
28266         (assign_stack_local): Adjust caller.
28267         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
28268         of assign_stack_local, pass 0 as last argument.
28269         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
28270         callers.
28271
28272 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
28273
28274         PR debug/47283
28275         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
28276         Use target address_mode and pointer_mode hooks instead of hardcoded
28277         Pmode and ptr_mode.  Handle some simple cases of extending if
28278         POINTERS_EXTEND_UNSIGNED < 0.
28279         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
28280         Call convert_debug_memory_address.
28281         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
28282         convert_debug_memory_address.
28283
28284         PR middle-end/46790
28285         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
28286         * configure: Regenerated.
28287         * config.in: Regenerated.
28288         * varasm.c (default_function_section): Return NULL
28289         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
28290
28291 2011-02-28  Martin Jambor  <mjambor@suse.cz>
28292
28293         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
28294         the description to match the printed values.
28295
28296 2011-02-28  Richard Guenther  <rguenther@suse.de>
28297
28298         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
28299         of the copied scope tree.
28300
28301 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28302
28303         * doc/extend.texi (Function Attributes): Avoid deeply (and
28304         wrongly) nested tables.
28305
28306 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
28307
28308         PR middle-end/47903
28309         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
28310         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
28311         r isn't op0 nor op1.
28312
28313 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
28314
28315         * config/avr/avr.md: Remove magic comment for emacs.
28316
28317 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
28318
28319         PR target/45261
28320         * config/avr/avr.c (avr_option_override): Use error on bad options.
28321         (avr_help): New function.
28322         (TARGET_HELP): Define.
28323
28324 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
28325
28326         PR target/42240
28327         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
28328         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
28329
28330 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
28331
28332         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
28333         (ARM Options): Ditto.
28334         (i386 and x86-64 Options): Ditto.
28335         (RX Options): Ditto.
28336         (SPARC Options): Ditto.
28337
28338 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
28339
28340         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
28341         FreeBSD 6 and later.  Generally use cpu generic.
28342
28343 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
28344
28345         * doc/cpp.texi: Update copyright years.
28346
28347 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
28348
28349         PR target/46898
28350         * config/lm32/lm32.md (ashrsi3): Added needed variable.
28351
28352 2011-02-25  Jon Beniston  <jon@beniston.com>
28353
28354         PR target/46898
28355         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
28356         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
28357         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
28358         (lm32_block_move_inline): Add type cast to remove warning.
28359         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
28360         (gen_int_relational): Move declarations to start of function.
28361
28362 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
28363
28364         PR tree-optimization/45470
28365         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
28366         can throw internally only.
28367         * tree-vect-stmts.c (vectorizable_call): Likewise.
28368
28369 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
28370
28371         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
28372         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28373         * config/stormy16/stormy16-protos.h
28374         (xstormy16_preferred_reload_class): Remove.
28375         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
28376         static. Change 'rclass' argument and return type to reg_class_t.
28377         (TARGET_PREFERRED_RELOAD_CLASS,
28378         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28379
28380 2011-02-24  Richard Guenther  <rguenther@suse.de>
28381
28382         * lto-streamer-in.c (input_bb): Do not find referenced vars
28383         in debug statements.
28384
28385 2011-02-23  Jason Merrill  <jason@redhat.com>
28386
28387         * common.opt (fabi-version): Document v5 and v6.
28388
28389 2011-02-23  Richard Guenther  <rguenther@suse.de>
28390
28391         PR tree-optimization/47849
28392         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
28393
28394 2011-02-23  Jie Zhang  <jie@codesourcery.com>
28395
28396         * opts-common.c (decode_cmdline_option): Print empty string
28397         argument as "" in decoded->orig_option_with_args_text.
28398         * gcc.c (execute): Print empty string argument as ""
28399         in the verbose output.
28400         (do_spec_1): Keep empty string argument.
28401
28402 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
28403
28404         * config.gcc: Declare score-* and crx-* obsolete.
28405
28406 2011-02-23  Jie Zhang  <jie@codesourcery.com>
28407
28408         PR rtl-optimization/47763
28409         * web.c (web_main): Ignore naked clobber when replacing register.
28410
28411 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
28412
28413         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
28414         Remove.
28415
28416 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
28417
28418         PR doc/47848
28419         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
28420
28421 2011-02-22  Mike Stump  <mikestump@comcast.net>
28422
28423         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
28424         assembler.
28425         * configure: Regenerate.
28426
28427 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
28428
28429         PR rtl-optimization/46002
28430         * ira-color.c (update_copy_costs): Change class intersection
28431         test to reg_class_contents[] test of 'hard_regno'.
28432
28433 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
28434
28435         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
28436         than Driver option.
28437         * config/hpux11.opt (mt): Likewise.
28438         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
28439         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
28440         * config/vax/elf.opt (mno-asm-pic): Likewise.
28441         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
28442
28443 2011-02-21  Mike Stump  <mikestump@comcast.net>
28444
28445         PR target/47822
28446         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
28447         tree so we can get save the type.
28448         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
28449         for CFString instead of trying to use past the end of the builtins.
28450         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
28451         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
28452         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
28453         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
28454         Rename to darwin_builtin_cfstring.
28455         (darwin_init_cfstring_builtins): Return the built type.
28456
28457 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
28458
28459         PR target/47840
28460         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
28461         (_mm256_insert_epi64): Use _mm_insert_epi64.
28462
28463 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
28464
28465         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28466         * config/stormy16/stormy16-protos.h
28467         (xstormy16_mode_dependent_address_p): Remove.
28468         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
28469         Make static. Change return type to bool. Change argument type to
28470         const_rtx. Remove dead code.
28471         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28472
28473 2011-02-21  Richard Guenther  <rguenther@suse.de>
28474
28475         PR lto/47820
28476         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
28477         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28478         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
28479         TUs context.
28480         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28481         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28482
28483 2011-02-20  Richard Guenther  <rguenther@suse.de>
28484
28485         PR lto/47822
28486         * tree.c (free_lang_data_in_decl): Clean builtins from
28487         the TU decl BLOCK_VARS.
28488
28489 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
28490
28491         PR debug/47620
28492         PR debug/47630
28493         * haifa-sched.c (fix_tick_ready): Skip tick computation
28494         for debug insns.
28495
28496 2011-02-19  Richard Guenther  <rguenther@suse.de>
28497
28498         PR lto/47647
28499         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
28500         Remove lazy BLOCK_VARS streaming.
28501         (lto_input_ts_block_tree_pointers): Likewise.
28502         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
28503
28504 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
28505
28506         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
28507
28508 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
28509
28510         * config/i386/biarch32.h, config/i386/mach.h,
28511         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
28512
28513 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
28514
28515         PR target/47800
28516         * config/i386/i386.md (peephole2 for shift and plus): Use
28517         operands[1] original mode in the first insn.
28518
28519 2011-02-18  Mike Stump  <mikestump@comcast.net>
28520
28521         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
28522
28523 2011-02-18  Jan Hubicka  <jh@suse.cz>
28524
28525         PR middle-end/47788
28526         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
28527         to zero when the function is not inlinable at all.
28528
28529 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28530
28531         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
28532         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28533         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
28534         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
28535         * config/pa/t-pa64: Likewise.
28536         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
28537
28538 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
28539
28540         PR driver/47787
28541         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
28542
28543 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28544
28545         PR target/47792
28546         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
28547
28548 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
28549
28550         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
28551         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
28552         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
28553         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
28554         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
28555         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
28556         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
28557         m32r_load_postinc_p, m32r_store_preinc_predec_p,
28558         m32r_legitimate_address_p): New functions.
28559         * config/m32r/constraints.md (constraint "S"): Don't use
28560         STORE_PREINC_PREDEC_P.
28561         (constraint "U"): Don't use LOAD_POSTINC_P.
28562
28563 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
28564
28565         PR rtl-optimization/46178
28566         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
28567         compute ira_hard_regno_cover_class[].
28568
28569 2011-02-18  Richard Guenther  <rguenther@suse.de>
28570
28571         PR lto/47798
28572         * lto-streamer.h (lto_global_var_decls): Declare.
28573         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
28574         statics for global var processing.
28575
28576 2011-02-18  Richard Guenther  <rguenther@suse.de>
28577
28578         PR tree-optimization/47737
28579         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
28580         edge dominance check.
28581
28582 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
28583
28584         PR debug/47780
28585         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
28586         avoid invalid rtx sharing.
28587
28588 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
28589
28590         * doc/cpp.texi (Obsolete Features): Add background on the
28591         origin of assertions.
28592
28593 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
28594
28595         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
28596         objc_abi == 2.
28597         * config/darwin.c (output_objc_section_asm_op): Added support for
28598         ABI v1 and v2.
28599         (is_objc_metadata): New.
28600         (darwin_objc2_section): New.
28601         (darwin_objc1_section): New.
28602         (machopic_select_section): Added support for ABI v1 and v2.
28603         (darwin_emit_objc_zeroed): New.
28604         (darwin_output_aligned_bss): Detect objc metadata and treat it
28605         appropriately.
28606         (darwin_asm_output_aligned_decl_common): Same.
28607         (darwin_asm_output_aligned_decl_local): Same.
28608         * config/darwin-sections.def: Updated for ABI v1 and v2.
28609         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
28610         compiling Objective-C code for the NeXT runtime, default to using
28611         ABI version 0 for 32-bit, and version 2 for 64-bit.
28612
28613 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28614
28615         * common.opt (optimize_fast): New Variable.
28616         * opts.c (default_options_optimization): Use opts->x_optimize_fast
28617         instead of local variable ofast.
28618
28619 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
28620
28621         * doc/invoke.texi (fobjc-abi-version): Documented.
28622         (fobjc-nilcheck): Documented.
28623         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
28624         version.
28625
28626 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28627
28628         PR driver/47390
28629         * common.opt (export-dynamic): New Driver option.
28630         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
28631
28632 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28633
28634         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
28635
28636 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
28637             Jan Hubicka  <jh@suse.cz>
28638
28639         PR debug/47106
28640         PR debug/47402
28641         * cfgexpand.c (account_used_vars_for_block): Remove.
28642         (estimated_stack_frame_size): Use referenced vars.
28643         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
28644         that were referenced in the original function.  Test src_fn
28645         rather than cfun.  Drop redundant get_var_ann.
28646         (setup_one_parameter): Drop redundant get_var_ann.
28647         (declare_return_variable): Likewise.
28648         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
28649         (copy_arguments_for_versioning): Drop redundant get_var_ann.
28650         * ipa-inline.c (compute_inline_parameters): Do not compute
28651         disregard_inline_limits here.
28652         (compute_inlinable_for_current, pass_inlinable): New.
28653         (pass_inline_parameters): Require PROP_referenced_vars.
28654         * cgraphunit.c (cgraph_process_new_functions): Don't run
28655         compute_inline_parameters explicitly unless function is in SSA form.
28656         (cgraph_analyze_function): Set .disregard_inline_limits.
28657         * tree-sra.c (convert_callers): Compute inliner parameters
28658         only for functions already in SSA form.
28659
28660 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28661
28662         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
28663         -mlittle-endian-data.
28664
28665 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28666
28667         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
28668         -mno-fpu, not -fpu and -no-fpu.
28669         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
28670         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
28671
28672 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
28673
28674         PR target/43653
28675         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
28676         input reload with PLUS RTX.
28677
28678 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28679
28680         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
28681         of InverseVar(MDMX).
28682
28683 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28684
28685         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
28686         --m4-340.
28687
28688 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28689
28690         * config/mn10300/mn10300.opt (mno-crt0): New.
28691
28692 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28693
28694         * config/m68k/uclinux.opt (static-libc): New Driver option.
28695
28696 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28697
28698         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
28699
28700 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28701
28702         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
28703         %{muser-extend-enabled}.
28704
28705 2011-02-16  Richard Guenther  <rguenther@suse.de>
28706
28707         PR tree-optimization/47738
28708         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
28709         the TODO from tree_predictive_commoning.
28710
28711 2011-02-15  Jeff Law  <law@redhat.com>
28712
28713         Revert
28714         2011-01-25  Jeff Law  <law@redhat.com>
28715
28716         PR rtl-optimization/37273
28717         * ira-costs.c (scan_one_insn): Detect constants living in memory and
28718         handle them like argument loads from stack slots.  Do not double
28719         count memory for memory constants and argument loads from stack slots.
28720
28721 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
28722
28723         PR target/47755
28724         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
28725         mode for vector constants.  Remove code that checks for TImode.
28726
28727 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28728
28729         PR debug/47106
28730         PR debug/47402
28731         * cgraph.h (compute_inline_parameters): Return void.
28732         * ipa-inline.c (compute_inline_parameters): Adjust.
28733
28734 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28735
28736         PR debug/47106
28737         PR debug/47402
28738         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
28739         rather than decl.
28740         * cfgexpand.c (estimated_stack_frame_size): Likewise.
28741         * ipa-inline.c (compute_inline_parameters): Adjust.
28742
28743 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28744
28745         PR debug/47106
28746         PR debug/47402
28747         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
28748         Adjust all users.  Pass FN to...
28749         * tree-flow-inline.h (first_referenced_var): ... this.  Add
28750         fn argument.
28751         * ipa-struct-reorg.c: Adjust.
28752         * tree-dfa.c: Adjust.
28753         * tree-into-ssa.c: Adjust.
28754         * tree-sra.c: Adjust.
28755         * tree-ssa-alias.c: Adjust.
28756         * tree-ssa-live.c: Adjust.
28757         * tree-ssa.c: Adjust.
28758         * tree-ssanames.c: Adjust.
28759         * tree-tailcall.c: Adjust.
28760
28761 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28762
28763         PR debug/47106
28764         PR debug/47402
28765         * tree-flow.h (referenced_var_lookup): Add fn parameter.
28766         Adjust all callers.
28767         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
28768         * tree-flow-inline.h: Adjust.
28769         * gimple-pretty-print.c: Adjust.
28770         * tree-into-ssa.c: Adjust.
28771         * tree-ssa.c: Adjust.
28772         * cfgexpand.c: Adjust.
28773
28774 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28775
28776         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
28777         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28778         (EXTRA_CONSTRAINT): Delete.
28779         * config/iq2000/constraints.md: New file.
28780         * config/iq2000/iq2000.md: Include it.
28781         (define_insn ""): Delete.
28782         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
28783         unsupported constraint letters from patterns.
28784         (call_value, call_value_internal1): Likewise.
28785         (call_value_multiple_internal1): Likewise.
28786
28787 2011-02-15  Nick Clifton  <nickc@redhat.com>
28788
28789         * config/mn10300/mn10300.c: Include tm-constrs.h.
28790         (struct liw_data): New data structure describing an LIW candidate
28791         instruction.
28792         (extract_bundle): Use struct liw_data.  Allow small integer
28793         operands for some instructions.
28794         (check_liw_constraints): Use struct liw_data.  Remove swapped
28795         parameter.  Add comments describing the checks.  Fix bug when
28796         assigning the source of liw1 to the source of liw2.
28797         (liw_candidate): Delete.  Code moved into extract_bundle.
28798         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
28799         before swapping.
28800         * config/mn10300/predicates.md (liw_operand): New predicate.
28801         Allows registers and small integer constants.
28802         * config/mn10300/constraints.md (O): New constraint.  Accetps
28803         integers in the range -8 to +7 inclusive.
28804         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
28805         for moving a small integer into a register.  Give this alternative
28806         LIW attributes.
28807         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
28808         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
28809         using the J,K,L and M constraints,
28810         (liw): Remove SI mode on second operands to allow for HI and QI
28811         mode values.
28812         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
28813         instruction.
28814
28815 2011-02-15  Richard Guenther  <rguenther@suse.de>
28816
28817         PR tree-optimization/47743
28818         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
28819         for a non-type-compatible VN lookup bail out.
28820
28821 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28822
28823         * config/fr30/constraints.md: New file.
28824         * config/fr30/fr30.md: Include it.
28825         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
28826         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28827         (EXTRA_CONSTRAINT): Delete.
28828
28829 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28830
28831         * config/frv/constraints.md: New file.
28832         * config/frv/predicates.md: Include it.
28833         * config/frv/frv.c (reg_class_from_letter): Delete.
28834         (frv_option_override): Don't initialize it.
28835         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
28836         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
28837         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
28838         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28839         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
28840         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28841         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
28842         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
28843         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
28844         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
28845         (REG_CLASS_FROM_CONSTRAINT): Delete.
28846
28847 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
28848
28849         PR middle-end/47581
28850         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
28851         if frame size is 0 in a leaf function.
28852
28853 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28854
28855         PR pch/14940
28856         * config/alpha/host-osf.c: New file.
28857         * config/alpha/x-osf: New file.
28858         * config.host (alpha*-dec-osf*): Use it.
28859
28860 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
28861
28862         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28863         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
28864         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
28865         (rx_mode_dependent_address_p): ...this. Make static. Change argument
28866         type to const_rtx.
28867         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28868
28869 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28870
28871         * config/stormy16/constraints.md: New file.
28872         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
28873         Use satisfies_constraint_Q and satisfies_constraint_R.
28874         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
28875         Delete.
28876         (xstormy16_legitiamte_address_p): Declare.
28877         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
28878         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28879         (EXTRA_CONSTRAINT): Delete.
28880         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
28881         Un-staticize.
28882         (xstormy16_extra_constraint_p): Delete.
28883
28884 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
28885
28886         PR tree-optimization/46494
28887         * loop-unroll.c (split_edge_and_insert): Adjust comment.
28888         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
28889         (pass_rtl_loop_done): Add TODO_verify_flow.
28890         * fwprop.c (pass_rtl_fwprop): Likewise.
28891         * modulo-sched.c (pass_sms): Likewise.
28892         * tree-ssa-dom.c (pass_dominator): Likewise.
28893         * tree-ssa-loop-ch.c (pass_ch): Likewise.
28894         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
28895         (pass_tree_loop_done): Likewise.
28896         * tree-ssa-pre.c (execute_pre): Likewise.
28897         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
28898         * tree-ssa-sink.c (pass_sink_code): Likewise.
28899         * tree-vrp.c (pass_vrp): Likewise.
28900
28901 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28902
28903         * config/v850/constraints.md: New file.
28904         * config/v850/v850.md: Include it.
28905         * config/v850/predicates.md (reg_or_0_operand): Use
28906         satisfies_constraint_G.
28907         (special_symbolref_operand): Use satisfies_constraint_K.
28908         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
28909         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
28910         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
28911         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28912         (EXTRA_CONSTRAINT): Delete.
28913         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
28914         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
28915         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
28916
28917 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
28918
28919         PR target/47696
28920         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
28921         description.
28922
28923 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28924
28925         * config/mcore/constraints.md: New file.
28926         * config/mcore/mcore.md: Include it.
28927         * config/mcore/mcore.c (reg_class_from_letter): Delete.
28928         * config/mcore/mcore.h (reg_class_from_letter): Delete.
28929         (REG_CLASS_FROM_LETTER): Delete.
28930         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
28931         insn_const_int_ok_for_constraint.
28932         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
28933         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
28934         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28935         (EXTRA_CONSTRAINT): Delete.
28936
28937 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28938
28939         PR ada/41929
28940         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
28941         (IS_SIGHANDLER): Define.
28942         (sparc64_is_sighandler): New function, split off from
28943         sparc64_fallback_frame_state.
28944         (sparc_is_sighandler): New function, split off from
28945         sparc_fallback_frame_state.
28946         (sparc64_fallback_frame_state): Merge with ...
28947         (sparc_fallback_frame_state): ... this into ...
28948         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
28949         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
28950         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
28951         stack instead of hardcoded offsets.
28952
28953 2011-02-14  Andriy Gapon  <avg@freebsd.org>
28954
28955         PR target/45808
28956         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
28957
28958 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28959
28960         * configure: Regenerate.
28961
28962 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
28963
28964         PR driver/45731
28965         * gcc.c (asm_options): Correct spec matching --target-help.
28966
28967 2011-02-12  Martin Jambor  <mjambor@suse.cz>
28968
28969         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
28970         to gimple call error.
28971
28972 2011-02-12  Mike Stump  <mikestump@comcast.net>
28973
28974         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
28975         comments in backslash regions.
28976
28977 2011-02-12  Mike Stump  <mikestump@comcast.net>
28978             Jakub Jelinek  <jakub@redhat.com>
28979             Iain Sandoe  <iains@gcc.gnu.org>
28980
28981         PR target/47324
28982         * dwarf2out.c (output_cfa_loc): When required, apply the
28983         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
28984         (output_loc_sequence): Likewise.
28985         (output_loc_operands_raw): Likewise.
28986         (output_loc_sequence_raw): Likewise.
28987         (output_cfa_loc): Likewise.
28988         (output_loc_list): Suppress register number adjustment when
28989         calling output_loc_sequence()
28990         (output_die): Likewise.
28991
28992 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
28993
28994         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28995         Remove macros.
28996         * config/xtensa/xtensa.c (xtensa_register_move_cost,
28997         xtensa_memory_move_cost): New functions.
28998         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
28999
29000 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
29001
29002         PR lto/47225
29003         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
29004         in the current directory.
29005         * configure: Rebuilt.
29006
29007 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
29008
29009         * config/darwin.c (darwin_override_options): Add a hunk missed
29010         from the commit of r168571.  Trim comment line lengths and
29011         correct indents of the preceding block.
29012
29013 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
29014
29015         * gcc.c (driver_handle_option): Concatenate the argument to -F with
29016         the switch.
29017
29018 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
29019
29020         * common.opt (nostartfiles): New Driver option.
29021
29022 2011-02-11  Xinliang David Li  <davidxl@google.com>
29023
29024         PR tree-optimization/47707
29025         * tree-chrec.c (convert_affine_scev): Keep type precision.
29026
29027 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
29028
29029         PR tree-optimization/47420
29030         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
29031
29032 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
29033
29034         PR rtl-optimization/47614
29035         * rtl.h (check_for_inc_dec): Declare.
29036         * dse.c (check_for_inc_dec): Externalize...
29037         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
29038         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
29039
29040 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
29041
29042         PR driver/47678
29043         * gcc.c (main): Do not compile inputs if there were errors in
29044         option handling.
29045         * opts-common.c (read_cmdline_option): Check for wrong language
29046         after other error checks.
29047
29048 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
29049
29050         * cgraph.c: Fix comment typos.
29051         * cgraph.h: Likewise.
29052         * cgraphunit.c: Likewise.
29053         * ipa-cp.c: Likewise.
29054         * ipa-inline.c: Likewise.
29055         * ipa-prop.c: Likewise.
29056         * ipa-pure-const.c: Likewise.
29057         * ipa-ref.c: Likewise.
29058         * ipa-reference.c: Likewise.
29059
29060 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
29061
29062         PR debug/47684
29063         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
29064
29065 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29066
29067         PR testsuite/47400
29068         * doc/sourcebuild.texi (Require Support): Document
29069         dg-require-ascii-locale.
29070
29071 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
29072
29073         * doc/lto.texi (Write summary): Fix missing parentheses.
29074
29075 2011-02-10  DJ Delorie  <dj@redhat.com>
29076
29077         * config/m32c/m32c.c (m32c_option_override): Disable
29078         -fcombine-stack-adjustments until flag value tracking and compare
29079         optimization can be rewritten.
29080
29081 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
29082
29083         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
29084         PROCESSOR_POWER7.
29085         (PROCESSOR_DEFAULT64): Likewise.
29086
29087 2011-02-10  Richard Henderson  <rth@redhat.com>
29088
29089         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
29090         change from 2011-02-03.
29091         * config/rx/rx.c (flags_from_code): Likewise.
29092         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
29093         is valid, n/pz otherwise.
29094         (rx_select_cc_mode): Return CCmode if Y is not zero.
29095
29096 2011-02-10  Richard Guenther  <rguenther@suse.de>
29097
29098         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
29099
29100 2011-02-10  Richard Guenther  <rguenther@suse.de>
29101
29102         PR tree-optimization/47677
29103         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
29104
29105 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
29106
29107         PR target/47665
29108         * combine.c (make_compound_operation): Only change shifts into
29109         multiplication for SCALAR_INT_MODE_P.
29110
29111 2011-02-10  Jie Zhang  <jie@codesourcery.com>
29112
29113         PR testsuite/47622
29114         Revert
29115         2011-02-05  Jie Zhang  <jie@codesourcery.com>
29116         PR debug/42631
29117         * web.c (entry_register): Don't clobber the number of the
29118         first uninitialized reference in used[].
29119
29120 2011-02-09  Richard Guenther  <rguenther@suse.de>
29121
29122         PR tree-optimization/47664
29123         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
29124         all edges again.
29125
29126 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
29127
29128         PR target/46481
29129         PR target/47032
29130         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
29131         PROCESSOR_POWER7.
29132         (PROCESSOR_DEFAULT64): Same.
29133         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
29134
29135 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29136
29137         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
29138
29139 2011-02-09  Martin Jambor  <mjambor@suse.cz>
29140
29141         PR middle-end/45505
29142         * tree-sra.c (struct access): New flags grp_scalar_read and
29143         grp_scalar_write.  Changed description of assignment read and write
29144         flags.
29145         (dump_access): Dump new flags, reorder all of them.
29146         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
29147         to detect multiple scalar reads.
29148         (analyze_access_subtree): Use the new scalar read write flags instead
29149         of the old flags.  Adjusted comments.
29150
29151 2011-02-08  DJ Delorie  <dj@redhat.com>
29152
29153         PR target/47548
29154         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
29155         patterns.
29156
29157 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
29158
29159         * config/m68k/uclinux.opt: New.
29160         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
29161
29162 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
29163
29164         * config/cris/elf.opt (sim): New Driver option.
29165
29166 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
29167
29168         * config/xtensa/elf.opt: New.
29169         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
29170
29171 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
29172
29173         * config/vax/elf.opt: New.
29174         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
29175
29176 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
29177
29178         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
29179
29180 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
29181
29182         * config/gnu-user.opt: New.
29183         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
29184         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
29185         *-*-uclinux*): Use gnu-user.opt.
29186
29187 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
29188
29189         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
29190         * config/i386/gnu.h (CPP_SPEC): Likewise.
29191
29192 2011-02-08  Ian Lance Taylor  <iant@google.com>
29193
29194         * common.opt (fcx-limited-range): Add SetByCombined flag.
29195         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
29196         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
29197         (fassociative-math, freciprocal-math): Likewise.
29198         (funsafe-math-optimizations): Likewise.
29199         * opth-gen.awk: Handle SetByCombined.
29200         * optc-gen.awk: Likewise.
29201         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
29202         (set_unsafe_math_optimizations_flags): Likewise.
29203         * doc/options.texi (Option properties): Document SetByCombined.
29204
29205 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
29206
29207         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
29208         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
29209         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
29210         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
29211         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
29212
29213 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
29214
29215         PR tree-optimization/46834
29216         PR tree-optimization/46994
29217         PR tree-optimization/46995
29218         * graphite-sese-to-poly.c (used_outside_reduction): New.
29219         (detect_commutative_reduction): Call used_outside_reduction.
29220         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
29221         translate_scalar_reduction_to_array only when at least one
29222         loop-phi/close-phi tuple has been detected.
29223
29224 2011-02-08  Richard Guenther  <rguenther@suse.de>
29225
29226         PR middle-end/47639
29227         * tree-vect-generic.c (expand_vector_operations_1): Update
29228         stmts here ...
29229         (expand_vector_operations): ... not here.  Cleanup EH info
29230         and the CFG if required.
29231
29232 2011-02-08  Richard Guenther  <rguenther@suse.de>
29233
29234         PR tree-optimization/47641
29235         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
29236         require type compatibility.
29237
29238 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29239
29240         * gimple-low.c (lower_function_body): Don't remove the location of
29241         the return statement here.
29242         (lower_gimple_return): Do it here instead but only if the return
29243         statement is actually used twice.
29244
29245 2011-02-08  Richard Guenther  <rguenther@suse.de>
29246
29247         PR tree-optimization/47632
29248         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
29249         unused up_to_stmt parameter, return whether cfg-cleanup is
29250         necessary, remove EH info properly.
29251         (forward_propagate_into_gimple_cond): Adjust caller.
29252         (forward_propagate_into_cond): Likewise.
29253         (forward_propagate_comparison): Likewise.
29254         (tree_ssa_forward_propagate_single_use_vars): Make
29255         forward_propagate_comparison case similar to the two others.
29256
29257 2011-02-08  Nick Clifton  <nickc@redhat.com>
29258
29259         * config/mn10300/mn10300.opt (mliw): New command line option.
29260         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
29261         (liw_bundling): New automaton.
29262         (liw): New attribute.
29263         (liw_op): New attribute.
29264         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
29265         (movsi_internal): Add LIW attributes.
29266         (andsi3): Likewise.
29267         (iorsi3): Likewise.
29268         (xorsi3): Likewise.
29269         (addsi3): Separate register and immediate alternatives.
29270         Add LIW attributes.
29271         (subsi3): Likewise.
29272         (cmpsi): Likewise.
29273         (aslsi3): Likewise.
29274         (lshrsi3): Likewise.
29275         (ashrsi3): Likewise.
29276         (liw): New pattern.
29277         * config/mn10300/mn10300.c (liw_op_names): New
29278         (mn10300_print_operand): Handle 'W' operand descriptor.
29279         (extract_bundle): New function.
29280         (check_liw_constraints): New function.
29281         (liw_candidate): New function.
29282         (mn10300_bundle_liw): New function.
29283         (mn10300_reorg): New function.
29284         (TARGET_MACHINE_DEPENDENT_REORG): Define.
29285         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
29286         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
29287         __LIW__ or __NO_LIW__.
29288         * doc/invoke.texi: Describe the -mliw command line option.
29289
29290 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29291
29292         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
29293         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
29294         pthread_mutex_unlock): Remove.
29295         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
29296         * config/pa/t-pa64: Likewise.
29297         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
29298         shared libc if not linking against libpthread.
29299         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
29300
29301 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
29302
29303         PR target/47558
29304         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
29305         on 10.6 and later to ensure that we always use the unwinder from
29306         the system.  Only add -no_compact_unwind when tarteting darwin
29307         10.6 or later.
29308
29309 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
29310
29311         PR target/46997
29312         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
29313         (vec_interleave_lowv2sf): Ditto.
29314         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
29315         (vec_extract_oddv2sf): Ditto.
29316
29317 2011-02-07  Mike Stump  <mikestump@comcast.net>
29318
29319         PR target/42333
29320         Add __ieee_divdc3 entry point.
29321         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
29322         entry point.
29323         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
29324         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
29325         * config/darwin.c (darwin_rename_builtins): Add.
29326         * config/darwin-protos.h (darwin_rename_builtins): Add.
29327
29328 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
29329
29330         PR target/47636
29331         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
29332         for the condition.
29333
29334 2011-02-07  Mike Stump  <mikestump@comcast.net>
29335
29336         * config/darwin.opt (mmacosx-version-min): Update default OS version.
29337
29338 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
29339
29340         PR target/47534
29341         * config/avr/libgcc.S (exit): Move .endfunc
29342
29343 2011-02-07  Richard Guenther  <rguenther@suse.de>
29344
29345         PR tree-optimization/47615
29346         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
29347         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
29348         (run_scc_vn): Initialize it.
29349         (visit_reference_op_load): Use it.
29350         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
29351
29352 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29353
29354         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
29355         DImode trapping arithmetic libfuncs.
29356
29357 2011-02-07  Richard Guenther  <rguenther@suse.de>
29358
29359         PR tree-optimization/47621
29360         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
29361         two duplicates ...
29362         (execute_update_addresses_taken): ... here.  Make it more
29363         conservative in what we accept.
29364
29365 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
29366
29367         * config/sparc/freebsd.h (ASM_SPEC): Define.
29368         * config/sparc/vxworks.h (ASM_SPEC): Define.
29369
29370 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
29371
29372         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29373
29374 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
29375
29376         * doc/invoke.texi: Remove reference to compiler internals from
29377         user documentation.
29378
29379         * reg-notes.def: Remove REG_VALUE_PROFILE.
29380         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
29381
29382 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
29383
29384         PR middle-end/47610
29385         * varasm.c (default_section_type_flags): If decl is NULL,
29386         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
29387
29388 2011-02-05  Jie Zhang  <jie@codesourcery.com>
29389
29390         PR debug/42631
29391         * web.c (entry_register): Don't clobber the number of the
29392         first uninitialized reference in used[].
29393
29394 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
29395
29396         PR tree-optimization/46194
29397         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
29398         (build_classic_dist_vector_1): Do not represent classic distance
29399         vectors when the access functions are variating in different loops.
29400
29401 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29402
29403         * config/mips/iris6.opt: New.
29404         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
29405
29406 2011-02-04  Richard Henderson  <rth@redhat.com>
29407             Steve Ellcey  <sje@cup.hp.com>
29408
29409         PR target/46997
29410         * config/ia64/predicates.md (mux1_brcst_element): New.
29411         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
29412         * config/ia64/ia64.c (ia64_unpack_assemble): New.
29413         (ia64_unpack_sign): New.
29414         (ia64_expand_unpack): Rewrite using new routines.
29415         (ia64_expand_widen_sum): Ditto.
29416         (ia64_expand_dot_prod_v8qi): Ditto.
29417         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
29418         routines, add endian check.
29419         (pmpy2_even): Rename from pmpy2_r, add endian check.
29420         (pmpy2_odd): Rename from pmpy2_l, add endian check.
29421         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
29422         (vec_widen_smult_hi_v4hi): Ditto.
29423         (vec_widen_umult_lo_v4hi): Ditto.
29424         (vec_widen_umult_hi_v4hi): Ditto.
29425         (mulv2si3): Change endian checks.
29426         (sdot_prodv4hi): Rewrite with new calls.
29427         (udot_prodv4hi): New.
29428         (vec_pack_ssat_v4hi): Add endian check.
29429         (vec_pack_usat_v4hi): Ditto.
29430         (vec_pack_ssat_v2si): Ditto.
29431         (max1_even): Rename from max1_r, add endian check.
29432         (max1_odd): Rename from max1_l, add endian check.
29433         (*mux1_rev): Format change.
29434         (*mux1_mix): Ditto.
29435         (*mux1_shuf): Ditto.
29436         (*mux1_alt): Ditto.
29437         (*mux1_brcst_v8qi): Use new predicate.
29438         (vec_extract_evenv8qi): Remove endian check.
29439         (vec_extract_oddv8qi): Ditto.
29440         (vec_interleave_lowv4hi): Format change.
29441         (vec_interleave_highv4hi): Ditto.
29442         (mix2_even): Rename from mix2_r, add endian check.
29443         (mix2_odd): Rename from mux2_l, add endian check.
29444         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
29445         (vec_extract_evenodd_helper): Format change.
29446         (vec_extract_evenv4hi): Remove endian check.
29447         (vec_extract_oddv4hi): Remove endian check.
29448         (vec_interleave_lowv2si): Format change.
29449         (vec_interleave_highv2si): Format change.
29450         (vec_initv2si): Remove endian check.
29451         (vecinit_v2si): Add endian check.
29452         (reduc_splus_v2sf): Add endian check.
29453         (reduc_smax_v2sf): Ditto.
29454         (reduc_smin_v2sf): Ditto.
29455         (vec_initv2sf): Remove endian check.
29456         (fpack): Add endian check.
29457         (fswap): Add endian check.
29458         (vec_interleave_highv2sf): Add endian check.
29459         (vec_interleave_lowv2sf): Add endian check.
29460         (fmix_lr): Add endian check.
29461         (vec_setv2sf): Format change.
29462         (*vec_extractv2sf_0_be): Use shift to extract operand.
29463         (*vec_extractv2sf_1_be): New.
29464         (vec_pack_trunc_v4hi): Add endian check.
29465         (vec_pack_trunc_v2si): Format change.
29466
29467 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
29468
29469         PR inline-asm/23200
29470         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
29471         do bb, locus and block comparison and disallow loads if it is not set.
29472         (stmt_is_replaceable_p): New function.
29473         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
29474         callers.
29475         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
29476         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
29477         SSA_NAME_DEF_STMT.
29478         * tree-flow.h (stmt_is_replaceable_p): New prototype.
29479
29480 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29481
29482         * config/rs6000/xilinx.opt: New.
29483         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
29484
29485 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29486
29487         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
29488
29489 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
29490
29491         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
29492         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
29493         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
29494         secondary_reload_info, xtensa_secondary_reload): Remove.
29495         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
29496         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
29497         (xtensa_preferred_reload_class): Make static. Change return and
29498         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
29499         Use CONST_DOUBLE_P predicate.
29500         (xtensa_preferred_output_reload_class): New function.
29501         (xtensa_secondary_reload): Make static.
29502
29503 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
29504
29505         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
29506         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
29507         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
29508
29509 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29510
29511         PR middle-end/31490
29512         * output.h (SECTION_RELRO): Define.
29513         (SECTION_MACH_DEP): Adjust.
29514         (get_variable_section): New prototype.
29515         * varpool.c (varpool_finalize_named_section_flags): New function.
29516         (varpool_assemble_pending_decls): Call it.
29517         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
29518         * cgraphunit.c (cgraph_output_in_order): Call
29519         varpool_finalize_named_section_flags.
29520         * varasm.c (get_section): Allow section flags conflicts between
29521         relro and read-only sections if the section hasn't been declared yet.
29522         Set SECTION_OVERRIDE after diagnosing section type conflict.
29523         (get_variable_section): No longer static.
29524         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
29525         readonly sections that need relocations.
29526         (decl_readonly_section_1): New function.
29527         (decl_readonly_section): Use it.
29528
29529         Revert:
29530         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
29531                     Steve Ellcey  <sje@cup.hp.com>
29532
29533         PR middle-end/31490
29534         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
29535         if section attribute used.
29536
29537 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29538
29539         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
29540         * config/darwin.c (SECTION_NO_ANCHOR): Define.
29541         (darwin_init_sections): Remove assertion.
29542
29543 2011-02-03  Nick Clifton  <nickc@redhat.com>
29544
29545         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
29546         lt and ge.
29547         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
29548         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
29549         instead of "n" and "pz".
29550         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
29551         CC_FLAG_S.
29552
29553 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29554
29555         PR target/47312
29556         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
29557         fma, expand FMA_EXPR as fma{,f,l} call.
29558
29559         PR lto/47274
29560         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
29561         copy them into a unsigned char variable and pass address of it to
29562         lto_output_data_stream.
29563
29564         PR target/47564
29565         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
29566         around backend_init_target and lang_dependent_init_target calls.
29567         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
29568         (verify_cgraph_node): Don't call set_cfun here.  Use
29569         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
29570         Set error_found for incorrectly represented calls to thunks.
29571
29572 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
29573
29574         PR debug/43092
29575         PR rtl-optimization/43494
29576         * rtl.h (for_each_inc_dec_fn): New type.
29577         (for_each_inc_dec): Declare.
29578         * rtlanal.c (struct for_each_inc_dec_ops): New type.
29579         (for_each_inc_dec_find_inc_dec): New fn.
29580         (for_each_inc_dec_find_mem): New fn.
29581         (for_each_inc_dec): New fn.
29582         * dse.c (struct insn_size): Remove.
29583         (replace_inc_dec, replace_inc_dec_mem): Remove.
29584         (emit_inc_dec_insn_before): New fn.
29585         (check_for_inc_dec): Use it, along with for_each_inc_dec.
29586         (canon_address): Pass mem modes to cselib_lookup.
29587         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
29588         (cselib_lookup_from_insn): Likewise.
29589         (cselib_subst_to_values): Likewise.
29590         * cselib.c (find_slot_memmode): New var.
29591         (cselib_find_slot): New fn.  Use it instead of
29592         htab_find_slot_with_hash everywhere.
29593         (entry_and_rtx_equal_p): Use find_slot_memmode.
29594         (autoinc_split): New fn.
29595         (rtx_equal_for_cselib_p): Rename and implement in terms of...
29596         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
29597         Deal with autoinc.  Special-case recursion into MEMs.
29598         (cselib_hash_rtx): Likewise.
29599         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
29600         address and MEM modes.
29601         (cselib_subst_to_values): Add memmode, pass it on.
29602         Deal with autoinc.
29603         (cselib_lookup): Add memmode argument, pass it on.
29604         (cselib_lookup_from_insn): Add memmode.
29605         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
29606         (struct cselib_record_autoinc_data): New.
29607         (cselib_record_autoinc_cb): New fn.
29608         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
29609         mode to cselib_lookup.  Reset autoinced REGs here instead of...
29610         (cselib_process_insn): ... here.
29611         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
29612         to cselib_lookup.
29613         (add_uses): Likewise, also to cselib_subst_to_values.
29614         (add_stores): Likewise.
29615         * sched-deps.c (add_insn_mem_dependence): Pass mode to
29616         cselib_subst_to_values.
29617         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
29618         * gcse.c (do_local_cprop): Adjusted.
29619         * postreload.c (reload_cse_simplify_set): Adjusted.
29620         (reload_cse_simplify_operands): Adjusted.
29621         * sel-sched-dump (debug_mem_addr_value): Pass mode.
29622
29623 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
29624
29625         PR tree-optimization/45122
29626         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
29627         unsafe assumptions when there's more than one loop exit.
29628
29629 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29630
29631         PR target/47272
29632         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29633         Document using vector double with the load/store builtins, and
29634         that the load/store builtins always use Altivec instructions.
29635
29636         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
29637         to use altivec memory instructions, even on VSX.
29638         (vector_altivec_store_<mode>): Ditto.
29639
29640         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
29641         function.
29642
29643         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29644         V2DF, V2DI support to load/store overloaded builtins.
29645
29646         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
29647         altivec load/store builtins for V2DF/V2DI types.
29648
29649         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29650         set avoid indexed addresses on power6 if -maltivec.
29651         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
29652         vector_altivec_load/vector_altivec_store builtins.
29653         (altivec_expand_st_builtin): Ditto.
29654         (altivec_expand_builtin): Add VSX memory builtins.
29655         (rs6000_init_builtins): Add V2DI types to internal types.
29656         (altivec_init_builtins): Add support for V2DF/V2DI altivec
29657         load/store builtins.
29658         (rs6000_address_for_altivec): Insure memory address is appropriate
29659         for Altivec.
29660
29661         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
29662         vec_vsx_ld and vec_vsx_st.
29663         (vsx_store_<mode>): Ditto.
29664
29665         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
29666         variables to hold long long types for VSX vector memory builtins.
29667         (RS6000_BTI_unsigned_long_long): Ditto.
29668         (long_long_integer_type_internal_node): Ditti.
29669         (long_long_unsigned_type_internal_node): Ditti.
29670
29671         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
29672         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
29673         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
29674
29675         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
29676         short cuts.
29677         (vec_vsx_st): Ditto.
29678
29679 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29680
29681         * config/pa/pa-hpux10.opt: New.
29682         * config/hpux11.opt (pthread): New Driver option.
29683         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
29684         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
29685
29686 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29687
29688         * config/ia64/vms.opt: New.
29689         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
29690
29691 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
29692
29693         PR target/47580
29694         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
29695         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
29696         generator functions.
29697         (vsx_floatuns<VSi><mode>2): Ditto.
29698         (vsx_fix_trunc<mode><VSi>2): Ditto.
29699         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
29700
29701 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29702
29703         * config/i386/djgpp.opt (posix): New Driver option.
29704
29705 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
29706
29707         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
29708         Move to the unsupported targets list.
29709
29710 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
29711
29712         PR rtl-optimization/47525
29713         * df-scan.c: Update copyright years.
29714         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
29715         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
29716
29717 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29718
29719         * config/i386/sysv4.h (TARGET_VERSION): Remove.
29720         (SUBTARGET_RETURN_IN_MEMORY): Remove.
29721         (ASM_OUTPUT_ASCII): Remove.
29722         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
29723
29724 2011-02-02  Jeff Law  <law@redhat.com>
29725
29726         PR middle-end/47543
29727         * reload.c (find_reloads_address): Handle reg+d address where both
29728         components are invalid by reloading the entire address.
29729
29730 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
29731             Richard Guenther  <rguenther@suse.de>
29732
29733         PR tree-optimization/40979
29734         PR bootstrap/47044
29735         * passes.c (init_optimization_passes): After LIM call copy_prop
29736         and DCE to clean up.
29737         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
29738
29739 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
29740
29741         PR tree-optimization/47576
29742         PR tree-optimization/47555
29743         * doc/invoke.texi (scev-max-expr-complexity): Documented.
29744         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29745         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
29746         * tree-scalar-evolution.c (follow_ssa_edge): Use
29747         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
29748
29749 2011-02-02  Richard Guenther  <rguenther@suse.de>
29750
29751         PR tree-optimization/47566
29752         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
29753
29754 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
29755
29756         PR debug/47106
29757         PR debug/47402
29758         * tree-inline.c (declare_return_variable): Remove unused caller
29759         variable.
29760
29761         PR debug/47106
29762         PR debug/47402
29763         * tree-flow-inline.h (clear_is_used, is_used_p): New.
29764         * cfgexpand.c (account_used_vars_for_block): Use them.
29765         * tree-nrv.c (tree_nrv): Likewise.
29766         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
29767         (dump_scope_block): Likewise.
29768         (remove_unused_locals): Likewise.
29769
29770         PR debug/47106
29771         PR debug/47402
29772         * tree-inline.c (declare_return_variable): Add result decl to
29773         local decls only once.
29774         * gimple-low.c (record_vars_into): Mark newly-created variables
29775         as referenced.
29776
29777 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
29778
29779         PR debug/47498
29780         PR debug/47501
29781         PR debug/45136
29782         PR debug/45130
29783         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29784         debug insns.
29785         (no_real_insns_p, schedule_block, set_priorities): Drop special
29786         treatment of boundary debug insns.
29787         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29788         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
29789         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29790         (BOUNDARY_DEBUG_INSN_P): Likewise.
29791         (SCHEDULE_DEBUG_INSN_P): Likewise.
29792         * sched-rgn.c (init_ready_list): Drop special treatment of
29793         boundary debug insns.
29794         * final.c (rest_of_clean_state): Clear notes' BB.
29795
29796 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29797
29798         * config/openbsd.opt (assert=): New Driver option.
29799
29800 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29801
29802         * config/i386/nto.opt: New.
29803         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
29804
29805 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29806
29807         * config/i386/netware.opt: New.
29808         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
29809
29810 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29811
29812         * config/interix.opt (posix): New Driver option.
29813
29814 2011-02-01  DJ Delorie  <dj@redhat.com>
29815
29816         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
29817
29818         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
29819         class for A0/A1.
29820
29821 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
29822
29823         PR tree-optimization/47561
29824         * toplev.c (process_options): Print the Graphite flags.  Add
29825         flag_loop_flatten to the list of options requiring Graphite.
29826
29827 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29828
29829         * config/i386/cygming.opt (posix): New Driver option.
29830
29831 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29832
29833         * config/arm/vxworks.opt: New.
29834         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
29835
29836 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29837
29838         * config/alpha/elf.opt: New.
29839         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
29840         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
29841
29842 2011-02-01  Richard Guenther  <rguenther@suse.de>
29843
29844         PR tree-optimization/47559
29845         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
29846         store-motion on references that can throw.
29847
29848 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
29849
29850         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
29851         * tree-pass.h (TDF_CSELIB): New macro.
29852         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
29853         cselib_lookup): Check for it rather than for TDF_DETAILS.
29854
29855 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
29856
29857         PR driver/47547
29858         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
29859         is HOST_BIT_BUCKET.
29860
29861         * opts.c (finish_options): Don't add x_aux_base_name if it is
29862         HOST_BIT_BUCKET.
29863
29864 2011-02-01  Richard Guenther  <rguenther@suse.de>
29865
29866         PR tree-optimization/47555
29867         Revert
29868         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
29869
29870         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29871
29872 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
29873
29874         PR gcc/46692
29875         * config/lm32/t-lm32: Add multilib for all CPU options.
29876
29877 2011-02-01  Richard Guenther  <rguenther@suse.de>
29878
29879         PR tree-optimization/47541
29880         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
29881         sure to have a field at offset zero.
29882
29883 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29884
29885         * config/arc/arc.opt (EB, EL): New Driver options.
29886
29887 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29888
29889         * config/alpha/osf5.opt: New.
29890         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
29891
29892 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29893
29894         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
29895
29896 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
29897
29898         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
29899         -floop-interchange.
29900         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
29901         is an alias of -floop-interchange and that it requires the
29902         Graphite infrastructure.
29903         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
29904         flag_loop_interchange based on the value of flag_tree_loop_linear.
29905
29906 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
29907             Richard Guenther  <rguenther@suse.de>
29908
29909         PR tree-optimization/47538
29910         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
29911         type instead of r1type, except for comparisons.  For right
29912         shifts and comparisons punt if there are mismatches in
29913         sizetype vs. non-sizetype types.
29914
29915 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29916
29917         * doc/sourcebuild.texi (Effective-Target Keywords): Document
29918         avx_runtime.
29919
29920 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29921
29922         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
29923         version number.
29924         * configure: Regenerate.
29925
29926 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29927
29928         * configure.ac (gcc_cv_ld_static_option): Define.
29929         (gcc_cv_ld_dynamic_option): Define.
29930         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
29931         instead.
29932         (HAVE_LD_STATIC_DYNAMIC): Update message.
29933         (LD_STATIC_OPTION): Define.
29934         (LD_DYNAMIC_OPTION): Define.
29935         * configure: Regenerate.
29936         * config.in: Regenerate.
29937         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
29938         HAVE_LD_STATIC_DYNAMIC]: Use them.
29939
29940 2011-01-31  Nick Clifton  <nickc@redhat.com>
29941
29942         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
29943         registers inside interrupt handlers if the handler is not a leaf
29944         function.
29945
29946 2011-01-31  Nick Clifton  <nickc@redhat.com>
29947
29948         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
29949         reg_renumber returning an INVALID_REGNUM.
29950
29951 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
29952
29953         PR libgcj/44341
29954         * doc/install.texi: Document host options discarded when cross
29955         configuring target libraries.
29956
29957 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
29958
29959         Reverted:
29960         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
29961         PR debug/45136
29962         PR debug/45130
29963         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29964         debug insns.
29965         (no_real_insns_p, schedule_block, set_priorities): Drop special
29966         treatment of boundary debug insns.
29967         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29968         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29969         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29970         (BOUNDARY_DEBUG_INSN_P): Likewise.
29971         (SCHEDULE_DEBUG_INSN_P): Likewise.
29972         * sched-rgn.c (init_ready_list): Drop special treatment of
29973         boundary debug insns.
29974         * final.c (rest_of_clean-state): Clear notes' BB.
29975
29976 2011-01-31  Alan Modra  <amodra@gmail.com>
29977
29978         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
29979         toc relative expressions as we do in print_operand_address.
29980
29981 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
29982
29983         * doc/extend.texi: Follow spelling conventions.
29984         * doc/invoke.texi: Fix a typo.
29985
29986 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
29987
29988         * config/hpux11.opt: New.
29989         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
29990         ia64*-*-hpux*): Use hpux11.opt.
29991
29992 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
29993
29994         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
29995         to tmake_file.
29996
29997 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29998
29999         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
30000         support sites.
30001
30002 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
30003
30004         * doc/install.texi (Binaries): Remove outdated reference for
30005         Motorola 68HC11/68HC12 downloads.
30006
30007 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
30008
30009         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
30010         Drepper's paper.
30011
30012 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
30013
30014         PR bootstrap/47147
30015         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
30016         used by NetBSD.
30017
30018 2011-01-28  Ahmad Sharif  <asharif@google.com>
30019
30020         * value-prof.c (check_counter): Corrected error message.
30021
30022 2011-01-29  Jie Zhang  <jie@codesourcery.com>
30023
30024         * config/arm/arm.c (arm_legitimize_reload_address): New.
30025         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
30026         arm_legitimize_reload_address.
30027         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
30028
30029 2011-01-28  Ian Lance Taylor  <iant@google.com>
30030
30031         * godump.c (go_define): Ignore macros whose definitions include
30032         two adjacent operands.
30033
30034 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
30035
30036         PR target/42894
30037         * varasm.c (force_const_mem): Store copy of x in desc->constant
30038         instead of x itself.
30039         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
30040         itself into REG_EQUAL note.
30041
30042 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
30043
30044         * config/freebsd.opt (posix, rdynamic): New Driver options.
30045
30046 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30047
30048         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
30049         -Bstatic/-Bdynamic.
30050         * configure: Regenerate.
30051
30052 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
30053
30054         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
30055         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
30056
30057 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
30058
30059         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
30060         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
30061         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
30062         (s390_preferred_reload_class): Make static. Change return and
30063         'rclass' argument type to reg_class_t.
30064
30065 2011-01-27  Jan Hubicka  <jh@suse.cz>
30066
30067         PR middle-end/46949
30068         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
30069         (process_function_and_variable_attributes): Check defined weakrefs.
30070
30071 2011-01-27  Martin Jambor  <mjambor@suse.cz>
30072
30073         PR tree-optimization/47228
30074         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
30075         build_ref_for_offset.
30076
30077 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30078
30079         * config/spu/spu-elf.h (ASM_SPEC): Remove.
30080
30081 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
30082
30083         PR rtl-optimization/46856
30084         * postreload.c (reload_combine_recognize_const_pattern): Do not
30085         separate cc0 setter and user on cc0 targets.
30086
30087 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
30088
30089         PR c/43082
30090         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
30091         passed a VOID_TYPE expression, immediately emit an error and
30092         return error_mark_node.
30093
30094 2011-01-26  Jeff Law  <law@redhat.com>
30095
30096         PR rtl-optimization/47464
30097         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
30098         rather than may_trap_p as needed.
30099
30100 2011-01-26  DJ Delorie  <dj@redhat.com>
30101
30102         PR rtl-optimization/46878
30103         * combine.c (insn_a_feeds_b): Check for the implicit cc0
30104         setter/user dependency as well.
30105
30106 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
30107
30108         PR rtl-optimization/44469
30109         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
30110         after removing trivially dead basic blocks.
30111
30112 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
30113
30114         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
30115         * config/frv/frv.h (LINK_SPEC): Likewise.
30116         * config/i386/netware.h (LINK_SPEC): Likewise.
30117         * config/m68k/linux.h (ASM_SPEC): Likewise.
30118         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
30119         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
30120         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30121         * config/sparc/linux.h (ASM_SPEC): Likewise.
30122         * config/sparc/linux64.h (ASM_SPEC): Likewise.
30123         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30124
30125 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
30126
30127         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
30128         * config/frv/frv.h (ASM_SPEC): Likewise.
30129         * config/m68k/linux.h (ASM_SPEC): Likewise.
30130         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
30131         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
30132         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30133         * config/sparc/linux.h (ASM_SPEC): Likewise.
30134         * config/sparc/linux64.h (ASM_SPEC): Likewise.
30135         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30136
30137 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
30138
30139         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
30140         * config/frv/frv.h (LINK_SPEC): Likewise.
30141         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
30142
30143 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
30144
30145         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
30146         * config/frv/frv.h (ASM_SPEC): Likewise.
30147         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
30148         * config/m68k/linux.h (ASM_SPEC): Likewise.
30149         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
30150         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
30151         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30152         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
30153         * config/sparc/linux.h (ASM_SPEC): Likewise.
30154         * config/sparc/linux64.h (ASM_SPEC): Likewise.
30155         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30156         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
30157
30158 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
30159
30160         PR target/46997
30161         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
30162         (*mux2): Ditto.
30163         (vec_extract_evenodd_help): Ditto.
30164         (vec_extract_evenv4hi): Ditto.
30165         (vec_extract_oddv4hi): Ditto.
30166         (vec_interleave_lowv2si): Ditto.
30167         (vec_interleave_highv2si): Ditto.
30168         (vec_extract_evenv2si): Ditto.
30169         (vec_extract_oddv2si: Ditto.
30170         (vec_pack_trunc_v2si): Ditto.
30171
30172 2011-01-22  Jan Hubicka  <jh@suse.cz>
30173
30174         PR target/47237
30175         * cgraph.h (cgraph_local_info): New field can_change_signature.
30176         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
30177         signature can change.
30178         (ipcp_estimate_growth): Call sequence simplify only if calle signature
30179         can change.
30180         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
30181         (cgraph_function_versioning): We can not change signature of functions
30182         that don't allow that.
30183         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
30184         (lto_input_node): Likewise.
30185         * ipa-inline.c (compute_inline_parameters): Compute
30186         local.can_change_signature.
30187         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
30188         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
30189         functions that can not change signature.
30190         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
30191         init_cumulative_args): Do not use local calling conventions
30192         for functions that can not change signature.
30193
30194 2011-01-22  Jan Hubicka  <jh@suse.cz>
30195
30196         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
30197
30198 2011-01-26  Richard Guenther  <rguenther@suse.de>
30199
30200         PR tree-optimization/47190
30201         * cgraphunit.c (process_common_attributes): New function.
30202         (process_function_and_variable_attributes): Use it.
30203
30204 2011-01-26  Richard Guenther  <rguenther@suse.de>
30205
30206         PR lto/47423
30207         * cgraphbuild.c (record_eh_tables): Record reference to personality
30208         function.
30209
30210 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
30211
30212         PR debug/45454
30213         * sel-sched.c (moveup_expr): Don't let debug insns prevent
30214         non-debug insns from moving up.
30215
30216 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
30217
30218         PR target/40125
30219         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
30220         t-dlldir{,-x} fragment for build and add it to tmake_file.
30221         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
30222         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
30223         * config/i386/t-dlldir: New file.
30224         (SHLIB_DLLDIR): Define.
30225         * config/i386/t-dlldir-x: New file.
30226         (SHLIB_DLLDIR): Define.
30227         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
30228         (SHLIB_INSTALL): Use it.
30229
30230 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
30231
30232         PR target/47246
30233         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
30234         lower bound of the allowed Thumb-2 coprocessor load/store
30235         index range to -256. Add explaining comment.
30236
30237 2011-01-25  Ian Lance Taylor  <iant@google.com>
30238
30239         * godump.c (go_define): Improve lexing of macro expansion to only
30240         accept expressions which match Go spec.
30241
30242 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
30243
30244         PR c++/43601
30245         * tree.c (handle_dll_attribute): Handle it.
30246         * doc/extend.texi (@item dllexport): Mention it.
30247         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
30248
30249 2011-01-25  Ian Lance Taylor  <iant@google.com>
30250
30251         PR tree-optimization/26854
30252         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
30253         (decl_jump_unsafe): Move higher in file, with no other change.
30254         (bind): Set has_jump_unsafe_decl if appropriate.
30255         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
30256         (check_earlier_gotos): Likewise.
30257         (c_check_switch_jump_warnings): Likewise.
30258
30259 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
30260
30261         * doc/invoke.texi (Warning Options): Add missing hyphen.
30262         (-fprofile-dir): Minor grammatical fixes.
30263         (-fbranch-probabilities): Likewise.
30264
30265 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
30266
30267         PR debug/45136
30268         PR debug/45130
30269         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
30270         debug insns.
30271         (no_real_insns_p, schedule_block, set_priorities): Drop special
30272         treatment of boundary debug insns.
30273         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
30274         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
30275         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
30276         (BOUNDARY_DEBUG_INSN_P): Likewise.
30277         (SCHEDULE_DEBUG_INSN_P): Likewise.
30278         * sched-rgn.c (init_ready_list): Drop special treatment of
30279         boundary debug insns.
30280         * final.c (rest_of_clean-state): Clear notes' BB.
30281
30282 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30283
30284         * Makefile.in (LAMBDA_H): Removed.
30285         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
30286         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
30287         lambda-trans.o, and tree-loop-linear.o.
30288         (lto-symtab.o): Remove dependence on LAMBDA_H.
30289         (tree-loop-linear.o): Remove rule.
30290         (lambda-mat.o): Same.
30291         (lambda-trans.o): Same.
30292         (lambda-code.o): Same.
30293         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
30294         (tree-vect-slp.o): Same.
30295         * hwint.h (gcd): Moved here.
30296         (least_common_multiple): Same.
30297         * lambda-code.c: Removed.
30298         * lambda-mat.c: Removed.
30299         * lambda-trans.c: Removed.
30300         * lambda.h: Removed.
30301         * tree-loop-linear.c: Removed.
30302         * lto-symtab.c: Do not include lambda.h.
30303         * omega.c (gcd): Removed.
30304         * passes.c (init_optimization_passes): Remove pass_linear_transform.
30305         * tree-data-ref.c (print_lambda_vector): Moved here.
30306         (lambda_vector_copy): Same.
30307         (lambda_matrix_copy): Same.
30308         (lambda_matrix_id): Same.
30309         (lambda_vector_first_nz): Same.
30310         (lambda_matrix_row_add): Same.
30311         (lambda_matrix_row_exchange): Same.
30312         (lambda_vector_mult_const): Same.
30313         (lambda_vector_negate): Same.
30314         (lambda_matrix_row_negate): Same.
30315         (lambda_vector_equal): Same.
30316         (lambda_matrix_right_hermite): Same.
30317         * tree-data-ref.h: Do not include lambda.h.
30318         (lambda_vector): Moved here.
30319         (lambda_matrix): Same.
30320         (dependence_level): Same.
30321         (lambda_transform_legal_p): Removed declaration.
30322         (lambda_collect_parameters): Same.
30323         (lambda_compute_access_matrices): Same.
30324         (lambda_vector_gcd): Same.
30325         (lambda_vector_new): Same.
30326         (lambda_vector_clear): Same.
30327         (lambda_vector_lexico_pos): Same.
30328         (lambda_vector_zerop): Same.
30329         (lambda_matrix_new): Same.
30330         * tree-flow.h (least_common_multiple): Removed declaration.
30331         * tree-parloops.c (lambda_trans_matrix): Moved here.
30332         (LTM_MATRIX): Same.
30333         (LTM_ROWSIZE): Same.
30334         (LTM_COLSIZE): Same.
30335         (LTM_DENOMINATOR): Same.
30336         (lambda_trans_matrix_new): Same.
30337         (lambda_matrix_vector_mult): Same.
30338         (lambda_transform_legal_p): Same.
30339         * tree-pass.h (pass_linear_transform): Removed declaration.
30340         * tree-ssa-loop.c (tree_linear_transform): Removed.
30341         (gate_tree_linear_transform): Removed.
30342         (pass_linear_transform): Removed.
30343         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
30344         flag_loop_interchange.
30345
30346 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30347
30348         PR tree-optimization/47265
30349         PR tree-optimization/47443
30350         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
30351         if name still has some uses.
30352
30353 2011-01-25  Martin Jambor  <mjambor@suse.cz>
30354
30355         PR tree-optimization/47382
30356         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
30357         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
30358
30359 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
30360
30361         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
30362         sjlj_except_unwind_info.
30363
30364 2011-01-25  Richard Guenther  <rguenther@suse.de>
30365
30366         PR tree-optimization/47426
30367         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
30368         visible functions results escape.
30369
30370 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30371
30372         PR target/45701
30373         * config/arm/arm.c (any_sibcall_uses_r3): New function.
30374         (arm_get_frame_offsets): Use it.
30375
30376 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30377             Jakub Jelinek  <jakub@redhat.com>
30378
30379         PR tree-optimization/47271
30380         * tree-if-conv.c (bb_postdominates_preds): New.
30381         (if_convertible_bb_p): Call bb_postdominates_preds.
30382         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
30383         (predicate_scalar_phi): Call bb_postdominates_preds.
30384
30385 2011-01-25  Nick Clifton  <nickc@redhat.com>
30386
30387         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
30388         * config/rx/rx.c (rx_function_value): Likewise.
30389         (rx_promote_function_mode): Likewise.
30390         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
30391         in order to make it legitimate.
30392         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
30393         make sure that the first operand is the same as the result register.
30394         (addsi3_unspec): Delete.
30395         (subdi3): Do not accept immediate operands.
30396         (subdi3_internal): Likewise.
30397
30398 2011-01-25  Jeff Law  <law@redhat.com>
30399
30400         PR rtl-optimization/37273
30401         * ira-costs.c (scan_one_insn): Detect constants living in memory and
30402         handle them like argument loads from stack slots.  Do not double
30403         count memory for memory constants and argument loads from stack slots.
30404
30405 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30406
30407         PR tree-optimization/47427
30408         PR tree-optimization/47428
30409         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
30410         coalesce if the new root var would be TREE_READONLY.
30411
30412 2011-01-25  Richard Guenther  <rguenther@suse.de>
30413
30414         PR middle-end/47414
30415         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
30416         correct type for TBAA.
30417
30418 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30419
30420         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
30421         (close_phi_written_to_memory): Call for_each_index with
30422         dr_indices_valid_in_loop.
30423
30424 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30425
30426         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
30427         when it is initialized.
30428
30429 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30430
30431         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
30432         call to graphite_find_data_references_in_stmt.
30433         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
30434         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
30435         call to graphite_find_data_references_in_stmt.
30436         (analyze_drs_in_stmts): Same.
30437         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
30438         in which the scalar analysis of indices is performed.
30439         (create_data_ref): Same.  Update call to dr_analyze_indices.
30440         (find_data_references_in_stmt): Update call to create_data_ref.
30441         (graphite_find_data_references_in_stmt): Same.
30442         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
30443         declaration.
30444         (create_data_ref): Same.
30445         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
30446         call to create_data_ref.
30447
30448 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30449
30450         * graphite-sese-to-poly.c (build_poly_scop): Move
30451         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
30452
30453 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30454
30455         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
30456         VAR_DECL, PARM_DECL, and RESULT_DECL.
30457
30458 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30459
30460         * graphite-dependences.c (reduction_dr_1): Allow several reductions
30461         in a reduction PBB.
30462         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
30463         that have already been marked as PBB_IS_REDUCTION.
30464
30465 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30466
30467         * graphite-scop-detection.c (same_close_phi_node): New.
30468         (remove_duplicate_close_phi): New.
30469         (make_close_phi_nodes_unique): New.
30470         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
30471
30472 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30473
30474         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
30475         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
30476         of both data references to be the same.
30477
30478 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30479
30480         * graphite-dependences.c (build_lexicographical_constraint): Remove
30481         the gdim parameter.
30482         (build_lexicographical_constraint): Adjust call to
30483         ppl_powerset_is_empty.
30484         (dependence_polyhedron): Same.
30485         (graphite_legal_transform_dr): Same.
30486         (graphite_carried_dependence_level_k): Same.
30487         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
30488         parameter.
30489         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
30490
30491 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30492
30493         * graphite-sese-to-poly.c
30494         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
30495         (close_phi_written_to_memory): New.
30496         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
30497         and unshare_expr.
30498
30499 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30500
30501         * doc/install.texi: Update the expected version number of PPL to 0.11.
30502         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
30503         #if PPL_VERSION_MINOR < 11.
30504
30505 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30506
30507         * graphite-dependences.c: Include graphite-cloog-util.h.
30508         (new_poly_ddr): Inlined into dependence_polyhedron.
30509         (free_poly_ddr): Moved close by new_poly_ddr.
30510         (dependence_polyhedron_1): Renamed dependence_polyhedron.
30511         Early return NULL when ppl_powerset_is_empty returns true.
30512         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
30513         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
30514         (graphite_legal_transform_dr): Call new_poly_ddr.
30515         (graphite_carried_dependence_level_k): Same.
30516         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
30517         (dot_transformed_deps_stmt_1): Removed.
30518         (dot_deps_stmt_1): Call dot_deps_stmt_2.
30519         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
30520         (dot_deps_1): Call dot_deps_2.
30521         * Makefile.in (graphite-dependences.o): Add missing dependence on
30522         graphite-cloog-util.h.
30523
30524 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30525
30526         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
30527         (build_lexicographical_constraint): Same.
30528         (dependence_polyhedron_1): Same.
30529         (graphite_legal_transform_dr): Same.
30530         (graphite_carried_dependence_level_k): Same.
30531         * graphite-ppl.c (ppl_powerset_is_empty): New.
30532         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
30533         * tree-data-ref.c (dump_data_reference): Print the basic block index.
30534
30535 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30536
30537         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
30538         the "a followed by b" relation and document it.
30539
30540 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30541
30542         * graphite-dependences.c (build_lexicographical_constraint): Stop the
30543         iteration when the bag of constraints is empty.
30544
30545 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30546
30547         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
30548
30549 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30550
30551         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
30552         nest and two loop depths as parameters.
30553         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
30554         lst_perfect_nestify.
30555
30556 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30557
30558         * graphite-dependences.c (print_pddr): Call
30559         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
30560
30561 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30562
30563         * graphite-ppl.c (debug_gmp_value): New.
30564         * graphite-ppl.h (debug_gmp_value): Declared.
30565
30566 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
30567
30568         * doc/install.texi: Document availability of cloog-0.16.
30569
30570 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
30571
30572         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
30573         invalid postdominance info.
30574
30575 2011-01-24  Jan Hubicka  <jh@suse.cz>
30576
30577         PR c/21659
30578         * doc/extend.texi (weak pragma): Drop claim that it must
30579         appear before definition.
30580         * varasm.c (merge_weak, declare_weak): Only sanity check
30581         that DECL is not output at a time it is declared weak.
30582
30583 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
30584
30585         * machmode.def: Fixed comments.
30586
30587 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
30588
30589         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
30590
30591 2011-01-24  Paul Koning  <ni1d@arrl.net>
30592
30593         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
30594         WORDS_BIG_ENDIAN.
30595
30596 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30597
30598         PR target/46519
30599         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
30600         (block_info): Add scanned and prev.
30601         (move_or_delete_vzeroupper_2): Return if the basic block
30602         has been scanned and the upper 128bit state is unchanged
30603         from the last scan.
30604         (move_or_delete_vzeroupper_1): Return true if the exit
30605         state is changed.
30606         (move_or_delete_vzeroupper): Visit basic blocks using the
30607         work-list based algorithm based on vt_find_locations in
30608         var-tracking.c.
30609
30610         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
30611
30612 2011-01-24  Nick Clifton  <nickc@redhat.com>
30613
30614         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
30615         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
30616         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
30617         then define __v850e1__.
30618         * doc/invoke.texi: Document -mv850es.
30619
30620 2011-01-24  Richard Henderson  <rth@redhat.com>
30621
30622         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
30623         compound unordered comparisons.
30624         * config/rx/rx.c (rx_split_fp_compare): Remove.
30625         * config/rx/rx-protos.h: Update.
30626         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
30627         (cbranchsf4): Don't call rx_split_fp_compare.
30628         (*cbranchsf4): Use rx_split_cbranch.
30629         (*cmpsf): Don't accept "i" constraint.
30630         (*conditional_branch): Only valid after reload.
30631         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
30632
30633 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30634
30635         PR target/47385
30636         * config/rs6000/altivec.md (vector constant splitters): Add
30637         support for creating vector single precision constants if -mvsx is
30638         used and we would create the constant using Altivec primitives.
30639
30640 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
30641             Richard Sandiford  <rdsandiford@googlemail.com>
30642
30643         PR rtl-optimization/47166
30644         * reload1.c (emit_reload_insns): Disable the spill_reg_store
30645         mechanism for PRE_MODIFY and POST_MODIFY.
30646         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
30647         reloadreg.
30648
30649 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
30650
30651         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
30652
30653 2011-01-22  Jan Hubicka  <jh@suse.cz>
30654
30655         PR lto/47333
30656         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
30657
30658 2011-01-22  Jan Hubicka  <jh@suse.cz>
30659
30660         PR tree-optimization/43884
30661         PR lto/44334
30662         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
30663         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
30664
30665 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
30666
30667         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
30668         * config/s390/s390.c (s390_register_move_cost,
30669         s390_memory_move_cost): New.
30670         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
30671
30672 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30673
30674         PR middle-end/47401
30675         * except.c (sjlj_assign_call_site_values): Move setting the
30676         crtl->uses_eh_lsda flag to ...
30677         (sjlj_mark_call_sites): ... here.
30678         (sjlj_emit_function_enter): Support NULL dispatch label.
30679         (sjlj_build_landing_pads): In a function with no landing pads
30680         that still has must-not-throw regions, generate code to register
30681         a personality function with empty LSDA.
30682
30683 2011-01-21  Richard Henderson  <rth@redhat.com>
30684
30685         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
30686
30687         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
30688
30689         * compare-elim.c: New file.
30690         * Makefile.in (OBJS-common): Add it.
30691         (compare-elim.o): New.
30692         * common.opt (fcompare-elim): New.
30693         * opts.c (default_options_table): Add OPT_fcompare_elim.
30694         * tree-pass.h (pass_compare_elim_after_reload): New.
30695         * passes.c (init_optimization_passes): Add it.
30696         * recog.h: Protect against re-inclusion.
30697         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
30698         * doc/invoke.texi (-fcompare-elim): Document it.
30699         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
30700         * doc/tm.texi: Rebuild.
30701
30702 2011-01-22  Nick Clifton  <nickc@redhat.com>
30703
30704         * config/rx/rx.md (cstoresf4): Pass comparison operator to
30705         rx_split_fp_compare.
30706
30707 2011-01-22  Nick Clifton  <nickc@redhat.com>
30708
30709         * config/rx/rx.md (UNSPEC_CONST): New.
30710         (deallocate_and_return): Wrap the amount popped off the stack in
30711         an UNSPEC_CONST in order to stop it being rejected by
30712         -mmax-constant-size.
30713         (pop_and_return): Add a "(return)" rtx.
30714         (call): Drop the immediate operand.
30715         (call_internal): Likewise.
30716         (call_value): Likewise.
30717         (call_value_internal): Likewise.
30718         (sibcall_internal): Likewise.
30719         (sibcall_value_internal): Likewise.
30720         (sibcall): Likewise.  Generate an explicit call using
30721         sibcall_internal.
30722         (sibcall_value): Likewise.
30723         (mov<>): FAIL if a constant operand is not legitimate.
30724         (addsi3_unpsec): New pattern.
30725
30726         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
30727         (ok_for_max_constant): New function.
30728         (gen_safe_add): New function.
30729         (rx_expand_prologue): Use gen_safe_add.
30730         (rx_expand_epilogue): Likewise.
30731         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
30732         UNSPEC CONSTs.
30733
30734 2011-01-21  Jeff Law  <law@redhat.com>
30735
30736         PR tree-optimization/47053
30737         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
30738         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
30739         statements are deleted.
30740         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
30741         is nonempty, then purge dead edges and cleanup the CFG.
30742
30743 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30744
30745         PR debug/47402
30746         Temporarily revert:
30747         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30748         PR debug/47106
30749         * tree-dfa.c (create_var_ann): Mark variable as used.
30750
30751 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30752
30753         PR middle-end/45566
30754         * except.c (convert_to_eh_region_ranges): Emit queued no-region
30755         notes from other section in hot/cold partitioning even if
30756         last_action is -3.  Increment call_site_base.
30757
30758         PR rtl-optimization/47366
30759         * fwprop.c (forward_propagate_into): Return bool.  If
30760         any changes are made, -fnon-call-exceptions is used and
30761         REG_EH_REGION note is present, call purge_dead_edges
30762         and return true if it purged anything.
30763         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
30764         any EH edges were purged.
30765
30766 2011-01-21  Jeff Law  <law@redhat.com>
30767
30768         PR rtl-optimization/41619
30769         * caller-save.c (setup_save_areas): Break out code to determine
30770         which hard regs are live across calls by examining the reload chains
30771         so that it is always used.
30772         Eliminate code which checked REG_N_CALLS_CROSSED.
30773
30774 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30775
30776         PR tree-optimization/47355
30777         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
30778         NOP has non-debug uses beyond PHIs in new_bb.
30779
30780 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30781
30782         PR debug/47106
30783         * cfgexpand.c (account_used_vars_for_block): Only account vars
30784         that are annotated as used.
30785         (estimated_stack_frame_size): Don't set TREE_USED.
30786         * tree-dfa.c (create_var_ann): Mark variable as used.
30787
30788 2011-01-21  Richard Guenther  <rguenther@suse.de>
30789
30790         PR middle-end/47395
30791         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
30792
30793 2011-01-21  Richard Guenther  <rguenther@suse.de>
30794
30795         PR tree-optimization/47365
30796         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
30797         (vn_reference_lookup_pieces): Adjust.
30798         (vn_reference_lookup): Likewise.
30799         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
30800         (vn_reference_lookup_3): Only look through kills if in
30801         VN_WALKREWRITE mode.
30802         (vn_reference_lookup_pieces): Adjust.
30803         (vn_reference_lookup): Likewise.
30804         (visit_reference_op_load): Likewise.
30805         (visit_reference_op_store): Likewise.
30806         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
30807         (compute_avail): Likewise.
30808         (eliminate): Likewise.
30809
30810 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30811
30812         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
30813         DECL_IGNORED_P non-reg vars if they are used.
30814
30815         PR tree-optimization/47391
30816         * varpool.c (const_value_known_p): Return false if
30817         decl is volatile.
30818
30819 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
30820
30821         PR bootstrap/47215
30822         * config/i386/i386.c (ix86_local_alignment): Handle
30823         case for va_list_type_node is nil.
30824         (ix86_canonical_va_list_type): Likewise.
30825
30826 2011-01-21  Alan Modra  <amodra@gmail.com>
30827
30828         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
30829         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
30830
30831 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30832
30833         * config/arm/arm.md (define_attr type): Rename f_load
30834         and f_store to f_fpa_load and f_fpa_store. Update.
30835         (write_conflict): Deal with rename fallout.
30836         (*push_fp_multi): Likewise.
30837         * config/arm/fpa.md (f_load): Use f_fpa_load.
30838         (f_store): Use f_fpa_store.
30839         (*movsf_fpa): Likewise.
30840         (*movdf_fpa): Likewise.
30841         (*movxf_fpa): Likewise.
30842         (*thumb2_movsf_fpa): Likewise.
30843         (*thumb2_movdf_fpa): Likewise.
30844         (*thumb2_movxf_fpa): Likewise.
30845         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
30846         f_loadd and f_stored.
30847         (*thumb2_movdi_vfp): Likewise.
30848         (*thumb2_movsf_vfp): Fix attribute to f_loads.
30849         (*thumb2_movsi_vfp): Likewise.
30850         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
30851         Use f_loads instead of f_load.
30852         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
30853
30854 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
30855
30856         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30857         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
30858         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30859         (xtensa_mode_dependent_address_p): New function.
30860         (constantpool_address_p): Make static. Change return type to bool.
30861         Change argument type to const_rtx. Use CONST_INT_P predicate.
30862
30863 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
30864
30865         PR debug/46583
30866         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
30867
30868 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
30869
30870         PR debug/47283
30871         * cfgexpand.c (expand_debug_expr): Instead of generating
30872         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
30873         etc. handling.
30874
30875 2011-01-20  Richard Guenther  <rguenther@suse.de>
30876
30877         PR middle-end/47370
30878         * tree-inline.c (remap_gimple_op_r): Recurse manually for
30879         the pointer operand of MEM_REFs.
30880
30881 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
30882
30883         PR tree-optimization/46130
30884         * ipa-split.c (consider_split): If return_bb contains non-virtual
30885         PHIs other than for retval or if split_function would not adjust it,
30886         refuse to split.
30887
30888 2011-01-20  Richard Guenther  <rguenther@suse.de>
30889
30890         PR tree-optimization/47167
30891         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
30892         Revert previous change, only avoid enumeral type changes.
30893
30894 2011-01-19  Mike Stump  <mikestump@comcast.net>
30895
30896         * doc/tm.texi.in (BRANCH_COST): Englishify.
30897         * doc/tm.texi (BRANCH_COST): Likewise.
30898
30899 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
30900
30901         PR c++/47291
30902         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
30903         (gen_scheduled_generic_parms_dies): New functions.
30904         (gen_struct_or_union_type_die): Schedule template parameters DIEs
30905         generation for the end of CU compilation.
30906         (dwarf2out_finish): Generate template parameters DIEs here.
30907
30908 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30909
30910         PR debug/46240
30911         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
30912         debug bind stmt on merge edges.
30913
30914 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30915
30916         PR debug/47079
30917         PR debug/46724
30918         * function.c (instantiate_expr): Instantiate incoming rtl of
30919         implicit arguments, and recurse on VALUE_EXPRs.
30920         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
30921         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
30922
30923 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30924
30925         * c-parser.c (c_parser_for_statement): Initialize
30926         collection_expression.
30927
30928 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30929
30930         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
30931
30932 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30933
30934         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
30935         (LINK_SHLIB_SPEC): Don't use %(link_path).
30936         (SUBTARGET_EXTRA_SPECS): Remove link_path.
30937
30938 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30939
30940         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
30941         (NO_SHARED_LIB_SUPPORT): Remove.
30942         (LINK_SHLIB_SPEC): Remove one conditional definition.
30943
30944 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30945
30946         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
30947         %{call_shared}.
30948         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
30949         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
30950         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
30951         %{call_shared} and conditionals on these options not being passed.
30952         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
30953         %{call_shared}.
30954
30955 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30956
30957         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
30958         simplify.
30959
30960         * ipa-split.c: Spelling fixes.
30961
30962 2011-01-19  Richard Henderson  <rth@redhat.com>
30963
30964         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
30965         (*mulsi3): Likewise.
30966
30967         * longlong.h [__mn10300__] (count_leading_zeros): New.
30968         [__mn10300__] (umul_ppmm, smul_ppmm): New.
30969         [__mn10300__] (add_ssaaaa, subddmmss): New.
30970         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
30971         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
30972
30973 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30974
30975         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
30976
30977 2011-01-19  Richard Henderson  <rth@redhat.com>
30978
30979         * config/mn10300/mn10300.md (addsi3_flags): New.
30980         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
30981         (subsi3_flags, subc_internal, subdi3): New.
30982         (subdi3_internal, *subdi3_degenerate): New.
30983         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
30984
30985         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
30986         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
30987         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
30988         * config/mn10300/mn10300-protos.h: Update.
30989         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
30990         (return_ret): Likewise.  Rename from return_internal_regs.
30991         (return_internal): Remove.
30992
30993         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
30994         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
30995         (mn10300_legitimate_constant_p): Likewise.
30996         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
30997         (mn10300_frame_size): New.
30998         (mn10300_expand_prologue): Use it.
30999         (mn10300_expand_epilogue): Likewise.
31000         (mn10300_initial_offset): Likewise.
31001         * config/mn10300/mn10300-protos.h: Update.
31002         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
31003         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
31004         (prologue, epilogue, return_internal): Tidy output code.
31005         (mn10300_store_multiple_operation, return): Likewise.
31006         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
31007         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
31008         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
31009         (load_pic, am33_load_pic): New.
31010         (mn10300_load_pic0, mn10300_load_pic1): New.
31011
31012         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
31013         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
31014         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
31015         (cc_flags_for_mode, cc_flags_for_code): New.
31016         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
31017         overflow flag is not valid.  Validate that the flags we need
31018         for the comparison are valid.
31019         (mn10300_output_cmp): Remove.
31020         (mn10300_output_add): New.
31021         (mn10300_select_cc_mode): Use cc_flags_for_code.
31022         (mn10300_split_cbranch): New.
31023         (mn10300_match_ccmode): New.
31024         (mn10300_split_and_operand_count): New.
31025         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
31026         to the function.
31027         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
31028         (addsi3): ... here.  Use mn10300_output_add.
31029         (*addsi3_flags): New.
31030         (*am33_subsi3, *mn10300_subsi3): Merge...
31031         (subsi3): ... here.  Use attribute isa.
31032         (*subsi3_flags): New.
31033         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
31034         when possible.
31035         (*am33_andsi3, *mn10300_andsi3): Merge...
31036         (andsi3): ... here.
31037         (*andsi3_flags): New.
31038         (andsi3 splitters): New.
31039         (*am33_iorsi3, *mn10300_iorsi3): Merge...
31040         (iorsi3): ... here.
31041         (*iorsi3_flags): New.
31042         (*am33_xorsi3, *mn10300_xorsi3): Merge...
31043         (xorsi3): ... here.
31044         (*xorsi3_flags): New.
31045         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
31046         (one_cmplsi2): ... here.
31047         (*one_cmplsi2_flags): New.
31048         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
31049         instead of "dax" in constraints.  Use mn10300_split_cbranch.
31050         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
31051         use matching constraints to eliminate a self-comparison.
31052         (*integer_conditional_branch): Rename from integer_conditional_branch.
31053         Use int_mode_flags to match CC_REG.
31054         (*cbranchsi4_btst, *btstsi): New.
31055         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
31056         mn10300_split_cbranch.
31057         (*am33_cmpsf): Rename from am33_cmpsf.
31058         (*float_conditional_branch): Rename from float_conditional_branch.
31059         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
31060         (zero_extendqisi2): ... here.
31061         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
31062         (zero_extendhisi2): ... here.
31063         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
31064         (extendqisi2): ... here.
31065         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
31066         (extendhisi2): ... here.
31067         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
31068         (ashlsi3): ... here.
31069         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
31070         (lshrsi3): ... here.
31071         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
31072         (ashrsi3): ... here.
31073         (consecutive add peephole): Remove.
31074         * config/mn10300/predicates.md (label_ref_operand): New.
31075         (int_mode_flags): New.
31076         (CCZN_comparison_operator): New.
31077
31078         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
31079         (throughput_42_latency_43): New reservation.
31080         (mulsidi3, umulsidi3): New expanders.
31081         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
31082         the MDR register to allocation; separately allocate the low and
31083         high parts of the DImode result.
31084         (umulsidi3_internal): Similarly.
31085         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
31086         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
31087         (udivsi3, umodsi3): Remove.
31088         (udivmodsi4, divmodsi4): New expanders.
31089         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
31090         (*divmodsi4): Simiarly.
31091         (ext_internal): New.
31092
31093         * config/mn10300/constraints.md ("z"): New constraint.
31094         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
31095         (FIXED_REGISTERS): Don't fix MDR.
31096         (CALL_USED_REGSITERS): Reformat nicely.
31097         (REG_ALLOC_ORDER): Add MDR.
31098         (enum regclass): Add MDR_REGS.
31099         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
31100         (IRA_COVER_CLASSES): Add MDR_REGS.
31101         (REGNO_REG_CLASS): Handle MDR_REG.
31102         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
31103         (mn10300_register_move_cost): Likewise.
31104         * config/mn10300/mn10300.md (MDR_REG): New.
31105         (*movsi_internal): Handle moves to/from MDR_REGS.
31106
31107         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
31108         POST_MODIFY.
31109         (mn10300_secondary_reload): Tidy combination reload classes.
31110         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
31111         addresses for AM33.  Allow symbolic offsets for reg+imm.
31112         (mn10300_regno_in_class_p): New.
31113         (mn10300_legitimize_reload_address): New.
31114         * config/mn10300/mn10300.h (enum reg_class): Remove
31115         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
31116         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
31117         SP_OR_GENERAL_REGS.
31118         (REG_CLASS_NAMES): Update to match.
31119         (REG_CLASS_CONTENTS): Likewise.
31120         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
31121         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
31122         (REGNO_IN_RANGE_P): Remove.
31123         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
31124         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
31125         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
31126         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
31127         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
31128         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
31129         (REGNO_GENERAL_P): New.
31130         (HAVE_POST_MODIFY_DISP): New.
31131         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
31132         (LEGITIMIZE_RELOAD_ADDRESS): New.
31133         * config/mn10300/mn10300-protos.h: Update.
31134
31135         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
31136         DATA_REGS for AM33 stack-pointer destination.
31137         (mn10300_preferred_output_reload_class): Likewise.
31138         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
31139         into a form appropriate for ...
31140         (TARGET_SECONDARY_RELOAD): New.
31141         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
31142         * config/mn10300/mn10300-protos.h: Update.
31143         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
31144         reload_insi; use the "A" constraint for the scratch; handle AM33
31145         moves of sp to non-address registers.
31146
31147         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
31148         (*movqi_internal): ... here.
31149         (*am33_movhi, *mn10300_movhi): Merge into...
31150         (*movhi_internal): ... here.
31151         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
31152         as the source/destination of moves from/to SP.
31153         (movsf): Only allow for AM33-2.
31154         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
31155         any integer constant constraint.  Only allow for AM33-2.  Tidy
31156         all of the alternative outputs.
31157         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
31158         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
31159         for MN103.
31160         (udivsi3, umodsi3): New patterns for MN103 only.
31161
31162 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
31163
31164         * doc/tm.texi.in: Spell out that a lack of register class unions
31165         can lead to ICEs.
31166         * doc/tm.texi: Regenerate.
31167
31168 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
31169
31170         PR rtl-optimization/47337
31171         * dce.c (check_argument_store): New function.
31172         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
31173
31174         PR tree-optimization/47290
31175         * tree-eh.c (infinite_empty_loop_p): New function.
31176         (cleanup_empty_eh): Use it.
31177
31178 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
31179
31180         PR target/46997
31181         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
31182         (a64_expand_widen_sum): Ditto.
31183         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
31184         (vec_extract_evenodd_help): Ditto.
31185         (vec_extract_evenv4hi): Ditto.
31186         (vec_extract_oddv4hi): Ditto.
31187         (vec_extract_evenv2si): Ditto.
31188         (vec_extract_oddv2si): Ditto.
31189         (vec_extract_evenv2sf): Ditto.
31190         (vec_extract_oddv2sf): Ditto.
31191         (vec_pack_trunc_v4hi: Ditto.
31192         (vec_pack_trunc_v2si): Ditto.
31193         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
31194         (vec_interleave_highv8qi): Ditto.
31195         (mix1_r): Ditto.
31196         (vec_extract_oddv8qi): Ditto.
31197         (vec_interleave_lowv4hi): Ditto.
31198         (vec_interleave_highv4hi): Ditto.
31199         (vec_interleave_lowv2si): Ditto.
31200         (vec_interleave_highv2si): Ditto.
31201
31202 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31203
31204         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
31205         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
31206         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
31207         (pa_c_mode_for_suffix): New.
31208         (TARGET_EXPAND_BUILTIN): Define.
31209         (TARGET_C_MODE_FOR_SUFFIX): Define.
31210         (pa_builtins): Define.
31211         (pa_init_builtins): Register __float128 type and init new support
31212         builtins.
31213         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
31214         * config/pa/quadlib.c (_U_Qfcopysign): New.
31215
31216 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
31217
31218         PR middle-end/46894
31219         * explow.c (allocate_dynamic_stack_space): Do not assume more than
31220         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
31221         are defined.
31222
31223 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31224
31225         PR tree-optimization/47179
31226         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
31227         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
31228
31229 2011-01-18  Richard Guenther  <rguenther@suse.de>
31230
31231         PR rtl-optimization/47216
31232         * emit-rtl.c: Include tree-flow.h.
31233         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
31234         of replicating it with different semantics.
31235         * Makefile.in (emit-rtl.o): Adjust.
31236
31237 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31238
31239         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
31240         (cortex_a9_dp): Handle neon types correctly.
31241
31242 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
31243
31244         PR rtl-optimization/47299
31245         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
31246         subtarget.  Use normal multiplication if both operands are constants.
31247         * expmed.c (expand_widening_mult): Don't try to optimize constant
31248         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
31249         before using it.
31250
31251 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31252
31253         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
31254         spacing after 'e.g.', typos, comma, hyphenation.
31255
31256 2011-01-17  Richard Henderson  <rth@redhat.com>
31257
31258         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
31259         (rx_restricted_mem_operand): New.
31260         (rx_shift_operand): Use register_operand.
31261         (rx_source_operand, rx_compare_operand): Likewise.
31262         * config/rx/rx.md (addsi3_flags): New expander.
31263         (adddi3): Rewrite as expander.
31264         (adc_internal, *adc_flags, adddi3_internal): New patterns.
31265         (subsi3_flags): New expander.
31266         (subdi3): Rewrite as expander.
31267         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
31268
31269         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
31270         (rx_init_builtins): Remove sat builtin.
31271         (rx_expand_builtin): Likewise.
31272         * config/rx/rx.md (ssaddsi3): New.
31273         (*sat): Rename from sat.  Represent the CC_REG input.
31274
31275         * config/rx/predicates.md (rshift_operator): New.
31276         * config/rx/rx.c (rx_expand_insv): Remove.
31277         * config/rx/rx-protos.h: Update.
31278         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
31279         operand to the canonical position.
31280         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
31281         (*bitclr, *bitclr_in_memory): Similarly.
31282         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
31283         (insv): Retain the zero_extract in the expansion.
31284
31285         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
31286         (bswaphi2, bitinvert, revw): Likewise.
31287
31288         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
31289         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
31290         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
31291         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
31292         (bitset, bitset_in_memory): Likewise.
31293         (bitinvert, bitinvert_in_memory): Likewise.
31294         (bitclr, bitclr_in_memory): Likewise.
31295         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
31296         (rx_strend, rx_cmpstrn): Likewise.
31297         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
31298         (bitop peep2 patterns): Remove.
31299
31300         * config/rx/rx.c (rx_match_ccmode): New.
31301         * config/rx/rx-protos.h: Update.
31302         * config/rx/rx.md (abssi2): Clobber, don't set flags.
31303         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
31304         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
31305         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
31306         (fix_truncsfsi2, floatsisf2): Likewise.
31307         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
31308         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
31309         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
31310         (*subsi3_flags, *xorsi3_flags): New.
31311
31312         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
31313
31314         * config/rx/rx.c (rx_print_operand): Remove workaround for
31315         unsplit comparison operations.
31316
31317         * config/rx/rx.md (movsicc): Split after reload.
31318         (*movsicc): Merge *movsieq and *movsine via match_operator.
31319         (*stcc): New pattern.
31320
31321         * config/rx/rx.c (rx_float_compare_mode): Remove.
31322         * config/rx/rx.h (rx_float_compare_mode): Remove.
31323         * config/rx/rx.md (cstoresi4): Split after reload.
31324         (*sccc): New pattern.
31325
31326         * config/rx/predicates.md (label_ref_operand): New.
31327         (rx_z_comparison_operator): New.
31328         (rx_zs_comparison_operator): New.
31329         (rx_fp_comparison_operator): New.
31330         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
31331         Validate that the flags are set properly for the comparison.
31332         (rx_gen_cond_branch_template): Remove.
31333         (rx_cc_modes_compatible): Remove.
31334         (mode_from_flags): New.
31335         (flags_from_code): Rename from flags_needed_for_conditional.
31336         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
31337         (rx_select_cc_mode): Likewise.
31338         (rx_split_fp_compare): New.
31339         (rx_split_cbranch): New.
31340         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
31341         (*cbranchsi4): Use match_operator and rx_split_cbranch.
31342         (*cbranchsf4): Similarly.
31343         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
31344         match_operator and rx_split_cbranch.
31345         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
31346         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
31347         (*cmpsi): Rename from cmpsi.
31348         (*tstsi): Rename from tstsi.
31349         (*cmpsf): Rename from cmpsf; use CC_Fmode.
31350         (*conditional_branch): Rename from conditional_branch.
31351         (*reveresed_conditional_branch): Remove.
31352         (b<code>): Remove expander.
31353         * config/rx/rx-protos.h: Update.
31354
31355         * config/rx/rx.c (rx_compare_redundant): Remove.
31356         * config/rx/rx.md (cmpsi): Don't use it.
31357         * config/rx/rx-protos.h: Update.
31358
31359         * config/rx/rx-modes.def (CC_F): New mode.
31360         * config/rx/rx.c (rx_select_cc_mode): New.
31361         * config/rx/rx.h (SELECT_CC_MODE): Use it.
31362         * config/rx/rx-protos.h: Update.
31363
31364 2011-01-17  Richard Henderson  <rth@redhat.com>
31365
31366         * except.c (dump_eh_tree): Fix stray ; after for statement.
31367
31368 2011-01-17  Richard Guenther  <rguenther@suse.de>
31369
31370         PR tree-optimization/47313
31371         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
31372         handling before copying the body.  Properly deal with
31373         by-reference result in SSA form.
31374
31375 2011-01-17  Ian Lance Taylor  <iant@google.com>
31376
31377         PR target/47219
31378         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
31379         (struct_value_alias_set): Don't define.
31380         (sparc_option_override): Don't set sparc_sr_alias_set and
31381         struct_value_alias_set.
31382         (save_or_restore_regs): Use gen_frame_mem rather than calling
31383         set_mem_alias_set.
31384         (sparc_struct_value_rtx): Likewise.
31385
31386 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31387
31388         PR target/47318
31389         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
31390         (_mm_maskstore_pd): Likewise.
31391         (_mm_maskload_ps): Likewise.
31392         (_mm_maskstore_ps): Likewise.
31393         (_mm256_maskload_pd): Change mask to __m256i.
31394         (_mm256_maskstore_pd): Likewise.
31395         (_mm256_maskload_ps): Likewise.
31396         (_mm256_maskstore_ps): Likewise.
31397
31398         * config/i386/i386-builtin-types.def: Updated.
31399         (ix86_expand_special_args_builtin): Likewise.
31400
31401         * config/i386/i386.c (bdesc_special_args): Update
31402         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
31403         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
31404         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
31405         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
31406
31407         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
31408         Use <avxpermvecmode> on mask register.
31409         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
31410
31411 2011-01-17  Olivier Hainque  <hainque@adacore.com>
31412             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31413             Eric Botcazou  <ebotcazou@adacore.com>
31414
31415         PR target/46655
31416         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
31417         if <= USHRT_MAX in 32-bit mode.
31418
31419 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31420
31421         * doc/install.texi (Configuration, Specific): Wrap long
31422         lines in examples.  Allow line wrapping in long options
31423         and URLs where beneficial for PDF output.
31424
31425 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
31426
31427         * config/mips/mips.c (mips_classify_symbol): Don't return
31428         SYMBOL_PC_RELATIVE for nonlocal labels.
31429
31430 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
31431
31432         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
31433
31434 2011-01-15  Jan Hubicka  <jh@suse.cz>
31435
31436         PR tree-optimization/47276
31437         * ipa.c (function_and_variable_visibility): Do not try to mark alias
31438         declarations as needed.
31439
31440 2011-01-15  Martin Jambor  <mjambor@suse.cz>
31441
31442         * common.opt (fdevirtualize): New flag.
31443         * doc/invoke.texi (Option Summary): Document it.
31444         * opts.c (default_options_table): Add devirtualize flag.
31445         * ipa-prop.c (detect_type_change): Return immediately if
31446         devirtualize flag is not set.
31447         (detect_type_change_ssa): Likewise.
31448         (compute_known_type_jump_func): Likewise.
31449         (ipa_analyze_virtual_call_uses): Likewise.
31450
31451 2011-01-14  Martin Jambor  <mjambor@suse.cz>
31452
31453         PR tree-optimization/45934
31454         PR tree-optimization/46302
31455         * ipa-prop.c (type_change_info): New type.
31456         (stmt_may_be_vtbl_ptr_store): New function.
31457         (check_stmt_for_type_change): Likewise.
31458         (detect_type_change): Likewise.
31459         (detect_type_change_ssa): Likewise.
31460         (compute_complex_assign_jump_func): Check for dynamic type change.
31461         (compute_complex_ancestor_jump_func): Likewise.
31462         (compute_known_type_jump_func): Likewise.
31463         (compute_scalar_jump_functions): Likewise.
31464         (ipa_analyze_virtual_call_uses): Likewise.
31465         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
31466
31467 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31468
31469         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
31470         * config/i386/i386.opt (msse5): New Alias.
31471
31472 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31473
31474         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
31475         * config/sparc/linux64.h (CC1_SPEC): Likewise.
31476         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31477         * config/sparc/sparc.h (CC1_SPEC): Likewise.
31478
31479 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31480
31481         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
31482         -mcpu options.
31483         * config/sparc/linux64.h (CC1_SPEC): Likewise.
31484         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31485         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
31486         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
31487         Likewise.
31488         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
31489
31490 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31491
31492         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
31493
31494 2011-01-14  Mike Stump  <mikestump@comcast.net>
31495
31496         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
31497         * config/fr30/fr30.md: Likweise
31498         (movsi_push): Likewise.
31499         (movsi_pop): Likewise.
31500         (enter_func): Likewise.
31501         * config/moxie/moxie.md (movsi_push): Likewise.
31502         (movsi_pop): Likewise.
31503
31504 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31505
31506         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
31507         %{no_archive} %{exact_version}.
31508         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
31509         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
31510         %{no_archive} %{exact_version}.
31511         * config/mips/openbsd.h (LINK_SPEC): Likewise.
31512         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
31513         * config/mips/vxworks.h: Likewise.
31514
31515 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31516
31517         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
31518
31519 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31520
31521         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
31522         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
31523
31524 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31525
31526         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
31527         -nodefaultlib.
31528
31529 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31530
31531         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
31532         for mcpu not cpu.
31533         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
31534         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
31535         not cpu.
31536         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
31537         Don't handle -shlib.
31538
31539 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31540
31541         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
31542         (CC1_SPEC): Don't handle -profile.
31543
31544 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31545
31546         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
31547         * config/mips/mips.h (CC1_SPEC): Likewise.
31548
31549 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31550
31551         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
31552         * config/mips/mips.h (CC1_SPEC): Likewise.
31553
31554 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31555
31556         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
31557         * config/m32r/linux.h (LINK_SPEC): Likewise.
31558         * config/mips/linux.h (LINK_SPEC): Likewise.
31559         * config/mips/linux64.h (LINK_SPEC): Likewise.
31560         * config/sparc/linux.h (LINK_SPEC): Likewise.
31561         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
31562         LINK_SPEC): Likewise.
31563         * config/xtensa/linux.h (LINK_SPEC): Likewise.
31564
31565 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31566
31567         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
31568         %{version:-v}.
31569         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
31570
31571 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31572
31573         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
31574         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
31575
31576 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31577
31578         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
31579
31580 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31581
31582         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
31583         supports -Bstatic/-Bdynamic.
31584         * configure: Regenerate.
31585
31586 2011-01-14  Jan Hubicka  <jh@suse.cz>
31587             Jack Howarth  <howarth@bromo.med.uc.edu>
31588
31589         PR target/46037
31590         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
31591         when checking debug_info_level. Test write_symbols instead of
31592         debug_hooks->var_location when setting flag_var_tracking_uninit.
31593
31594 2011-01-14  Richard Guenther  <rguenther@suse.de>
31595
31596         PR tree-optimization/47179
31597         * target.def (ref_may_alias_errno): New target hook.
31598         * targhooks.h (default_ref_may_alias_errno): Declare.
31599         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
31600         (default_ref_may_alias_errno): New function.
31601         * target.h (struct ao_ref_s): Declare.
31602         * tree-ssa-alias.c: Include target.h.
31603         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
31604         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
31605         (targhooks.o): Likewise.
31606         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
31607         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
31608
31609 2011-01-14  Richard Guenther  <rguenther@suse.de>
31610
31611         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
31612
31613 2011-01-14  Richard Guenther  <rguenther@suse.de>
31614
31615         PR tree-optimization/47280
31616         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
31617         return CFG changes.
31618         (tree_ssa_forward_propagate_single_use_vars): Deal with
31619         CFG changes from associate_plusminus.
31620
31621 2011-01-14  Richard Guenther  <rguenther@suse.de>
31622
31623         PR middle-end/47281
31624         Revert
31625         2011-01-11  Richard Guenther  <rguenther@suse.de>
31626
31627         PR tree-optimization/46076
31628         * tree-ssa.c (useless_type_conversion_p): Conversions from
31629         unprototyped to empty argument list function types are useless.
31630
31631 2011-01-14  Richard Guenther  <rguenther@suse.de>
31632
31633         PR tree-optimization/47286
31634         * tree-ssa-structalias.c (new_var_info): Register variables are global.
31635
31636 2011-01-14  Martin Jambor  <mjambor@suse.cz>
31637
31638         PR middle-end/46823
31639         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
31640
31641 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
31642
31643         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
31644         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
31645         * config/xtensa/xtensa.c (xtensa_libcall_value,
31646         xtensa_function_value_regno_p): New functions.
31647         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
31648
31649 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
31650
31651         PR c++/47213
31652         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
31653         PE specific hook.
31654         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
31655         New function prototype.
31656         * config/i386/winnt.c (i386_pe_assemble_visibility):
31657         Warn only if attribute was specified by user.
31658
31659 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
31660
31661         PR target/47251
31662         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
31663         floating point.
31664         (floatunsdidf2_fcfidu): Ditto.
31665
31666 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31667
31668         * config/s390/s390.c (print_operand_address): Replace 'error' with
31669         'output_operand_lossage'.
31670         (print_operand): Likewise.
31671
31672 2011-01-13  Jeff Law  <law@redhat.com>
31673
31674         PR rtl-optimization/39077
31675         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
31676         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
31677         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
31678         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
31679         * gcse.c (prune_insertions_deletions): New function.
31680         (compute_pre_data): Use it.
31681
31682 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
31683
31684         PR debug/PR46973
31685         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
31686         static function.
31687         (prune_unused_types_mark): Use it.
31688
31689 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
31690
31691         PR rtl-optimization/45352
31692         * sel-sched.c: Update copyright years.
31693         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
31694         in the advancing loop when we have issued issue_rate insns.
31695
31696 2011-01-12  Richard Henderson  <rth@redhat.com>
31697
31698         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
31699         (TARGET_MD_ASM_CLOBBERS): New.
31700
31701         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
31702         (TARGET_DELEGITIMIZE_ADDRESS): New.
31703
31704         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
31705         (clzsi2, *bsch): New patterns.
31706
31707         * config/mn10300/mn10300.md (INT): New mode iterator.
31708         (*mov<INT>_clr): New pattern, and peep2 to generate it.
31709
31710         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
31711         flag_split_wide_types.
31712
31713         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
31714         (mn10300_trampoline_init): Rewrite without a template, an immediate
31715         load and a direct branch.
31716         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
31717
31718 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
31719
31720         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31721         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
31722         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
31723         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31724
31725 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
31726
31727         PR debug/47209
31728         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
31729         of type.
31730
31731 2011-01-12  Jan Hubicka  <jh@suse.cz>
31732
31733         PR driver/47244
31734         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
31735         (PLUGIN_COND_CLOSE): New macro.
31736         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
31737
31738 2011-01-12  Richard Guenther  <rguenther@suse.de>
31739
31740         PR lto/47259
31741         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
31742         register variables in a MEM_REF.
31743
31744 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
31745
31746         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
31747         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
31748         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
31749         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
31750         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
31751         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
31752         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
31753         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
31754         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
31755         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
31756         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
31757         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
31758         * config/gnu-user.h: New.  Copied from linux.h.
31759         (LINUX_TARGET_STARTFILE_SPEC): Rename to
31760         GNU_USER_TARGET_STARTFILE_SPEC.
31761         (LINUX_TARGET_ENDFILE_SPEC): Rename to
31762         GNU_USER_TARGET_ENDFILE_SPEC.
31763         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
31764         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
31765         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
31766         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
31767         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
31768         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
31769         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
31770         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
31771         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
31772         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
31773         * config/arm/linux-eabi.h (CC1_SPEC): Use
31774         GNU_USER_TARGET_CC1_SPEC.
31775         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
31776         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
31777         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
31778         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
31779         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
31780         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
31781         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
31782         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
31783
31784 2011-01-12  Richard Guenther  <rguenther@suse.de>
31785
31786         PR other/46946
31787         * doc/invoke.texi (ffast-math): Document it is turned on
31788         with -Ofast.
31789
31790 2011-01-12  Jan Hubicka  <jh@suse.cz>
31791
31792         PR tree-optimization/47233
31793         * opts.c (common_handle_option): Disable ipa-reference with profile
31794         feedback.
31795
31796 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
31797
31798         * c-parser.c (c_parser_objc_at_property_declaration): Improved
31799         error message.
31800
31801 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
31802
31803         * c-parser.c (c_lex_one_token): Updated and reindented some
31804         comments.  No changes in code.
31805
31806 2011-01-11  Ian Lance Taylor  <iant@google.com>
31807
31808         * godump.c (go_output_var): Don't output the variable if there is
31809         already a type with the same name.
31810
31811 2011-01-11  Ian Lance Taylor  <iant@google.com>
31812
31813         * godump.c (go_format_type): Don't generate float80.
31814
31815 2011-01-11  Richard Henderson  <rth@redhat.com>
31816
31817         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
31818         declaration.  Rewrite for both speed and size.
31819         (mn10300_address_cost_1): Remove.
31820         (mn10300_register_move_cost): New.
31821         (mn10300_memory_move_cost): New.
31822         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
31823         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
31824         extensions, shifts, BSWAP, CLZ.
31825         (mn10300_wide_const_load_uses_clr): Remove.
31826         (TARGET_REGISTER_MOVE_COST): New.
31827         (TARGET_MEMORY_MOVE_COST): New.
31828         * config/mn10300/mn10300-protos.h: Update.
31829         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
31830
31831         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
31832         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
31833         * config/mn10300/mn10300-protos.h: Update.
31834         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
31835         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
31836         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
31837         (*test_int_bitfield, *test_byte_bitfield): Remove.
31838         (*bit_test, *subreg_bit_test): Remove.
31839         * config/mn10300/predicates.md (const_8bit_operand): Remove.
31840
31841         * config/mn10300/constraints.md ("c"): Rename from "A".
31842         ("A", "D"): New constraint letters.
31843         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
31844         (fmssf4, fnmasf4, fnmssf4): Likewise.
31845
31846         * config/mn10300/mn10300.md (isa): New attribute.
31847         (enabled): New attribute.
31848
31849         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
31850         (abssf2, negsf2): Define only for hardware fp.
31851         (sqrtsf2): Reformat.
31852         (addsf3, subsf3, mulsf3): Merge expander and insn.
31853
31854         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
31855         (DEBUGGER_AUTO_OFFSET): Remove.
31856         (DEBUGGER_ARG_OFFSET): Remove.
31857
31858         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
31859         Emit register stores with the same offsets as the hardware.
31860         (mn10300_store_multiple_operation): Don't check that the register
31861         save offsets are monotonic.
31862         * config/mn10300/mn10300-protos.h: Update.
31863
31864         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
31865
31866         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
31867         in terms of the value on the stack, not the MDR register.
31868
31869 2011-01-11  Jan Hubicka  <jh@suse.cz>
31870
31871         PR lto/45721
31872         PR lto/45375
31873         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
31874         (symbol_alias_set_destroy, symbol_alias_set_contains,
31875         propagate_aliases_backward): Declare.
31876         * lto-streamer-out.c (struct sets): New sturcture.
31877         (trivally_defined_alias): New function.
31878         (output_alias_pair_p): Rewrite.
31879         (output_unreferenced_globals): Fix output of alias pairs.
31880         (produce_symtab): Likewise.
31881         * ipa.c (function_and_variable_visibility): Set weak alias destination
31882         as needed in lto.
31883         * varasm.c (symbol_alias_set_t): Remove.
31884         (symbol_alias_set_destroy): Export.
31885         (propagate_aliases_forward, propagate_aliases_backward): New functions
31886         based on ...
31887         (compute_visible_aliases): ... this one; remove.
31888         (trivially_visible_alias): New
31889         (trivially_defined_alias): New.
31890         (remove_unreachable_alias_pairs): Rewrite.
31891         (finish_aliases_1): Reorganize code checking if alias is defined.
31892         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
31893         in LTO mode.
31894
31895 2011-01-11  Richard Guenther  <rguenther@suse.de>
31896
31897         PR tree-optimization/46076
31898         * tree-ssa.c (useless_type_conversion_p): Conversions from
31899         unprototyped to empty argument list function types are useless.
31900
31901 2011-01-11  Richard Guenther  <rguenther@suse.de>
31902
31903         PR middle-end/45235
31904         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
31905         volatile MEMs as MEM_READONLY_P.
31906
31907 2011-01-11  Richard Guenther  <rguenther@suse.de>
31908
31909         PR tree-optimization/47239
31910         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
31911
31912 2011-01-11  Jeff Law  <law@redhat.com>
31913
31914         PR tree-optimization/47086
31915         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
31916         IVs from statements that might throw.
31917
31918 2011-01-10  Jan Hubicka  <jh@suse.cz>
31919
31920         PR lto/45375
31921         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
31922
31923 2011-01-10  Jan Hubicka  <jh@suse.cz>
31924
31925         PR lto/45375
31926         * profile.c (read_profile_edge_counts): Ignore profile inconistency
31927         when correcting profile.
31928
31929 2011-01-10  Jan Hubicka  <jh@suse.cz>
31930
31931         PR lto/46083
31932         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
31933         DECL_FINI_PRIORITY.
31934         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
31935         Restore DECL_FINI_PRIORITY.
31936
31937 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31938
31939         * doc/gimple.texi: Fix quoting of multi-word return values in
31940         @deftypefn statements.  Ensure presence of return value.  Wrap
31941         overlong @deftypefn lines.
31942         (is_gimple_operand, is_gimple_min_invariant_address): Remove
31943         descriptions of removed functions.
31944         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
31945         of multi-word return value in @deftypefn statement.
31946
31947 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31948
31949         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
31950         (Conditional Expressions, Logical Operators)
31951         (Statement and operand traversals): Do not indent smallexample
31952         code.  Fix duplicate function argument in example.
31953
31954 2011-01-10  Jeff Law  <law@redhat.com>
31955
31956         PR tree-optimization/47141
31957         * ipa-split.c (split_function): Handle case where we are
31958         returning a value and the return block has a virtual operand phi.
31959
31960 2011-01-10  Jan Hubicka  <jh@suse.cz>
31961
31962         PR tree-optimization/47234
31963         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
31964         (pass_feedback_split_functions): Declare.
31965         * passes.c (init_optimization_passes): Add ipa-split as subpass of
31966         tree-profile.
31967         * ipa-split.c (gate_split_functions): Update comments; disable
31968         split-functions for profile_arc_flag and branch_probabilities.
31969         (gate_feedback_split_functions): New function.
31970         (execute_feedback_split_functions): New function.
31971         (pass_feedback_split_functions): New global var.
31972
31973 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
31974
31975         PR lto/46760
31976         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
31977         calling gimple_call_set_cannot_inline.
31978
31979 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
31980
31981         * config/darwin-sections.def: Remove unused section.
31982
31983 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
31984
31985         PR c++/47218
31986         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
31987
31988 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
31989
31990         PR objc/47232
31991         * c-parser.c (c_parser_declaration_or_fndef): Improved
31992         error message.
31993
31994 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
31995
31996         * config/i386/winnt.c (i386_pe_start_function): Make sure
31997         to switch back to function's section.
31998
31999 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
32000
32001         PR gcc/46902
32002         PR testsuite/46912
32003         * plugin.c: Move include of dlfcn.h from here...
32004         * system.h: ... to here.
32005
32006 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32007
32008         * doc/cpp.texi (C++ Named Operators): Fix markup for header
32009         file name.
32010         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
32011         two extra empty pages in PDF output.
32012
32013 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
32014
32015         PR objc/47078
32016         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
32017         for error recovery purposes behave as if it was not specified so
32018         that the default type is usd.
32019
32020 2011-01-07  Jan Hubicka  <jh@suse.cz>
32021
32022         PR tree-optmization/46469
32023         * ipa.c (function_and_variable_visibility): Clear needed flags on
32024         nodes with external decls; handle weakrefs merging correctly.
32025
32026 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
32027
32028         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
32029         not false.
32030
32031 2011-01-07  Jan Hubicka  <jh@suse.cz>
32032
32033         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
32034         and no longer claim that gold is required for linker plugin.
32035         * configure: Regenerate.
32036         * gcc.c (PLUGIN_COND): New macro.
32037         (LINK_COMMAND_SPEC): Use it.
32038         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
32039         * config.in (HAVE_LTO_PLUGIN): New.
32040         * configure.ac (--with-lto-plugin): New parameter; autodetect
32041         HAVE_LTO_PLUGIN.
32042
32043 2011-01-07  Jan Hubicka  <jh@suse.cz>
32044
32045         PR tree-optimization/46367
32046         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
32047         when we can update original.
32048         (cgraph_mark_inline_edge): Sanity check.
32049         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
32050
32051 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32052
32053         * config/spu/spu.h (ASM_COMMENT_START): Define.
32054
32055 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
32056
32057         PR driver/42445
32058         * gcc.c (%>S): New.
32059         (SWITCH_KEEP_FOR_GCC): Likewise.
32060         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
32061         (do_spec_1): Handle "%>".
32062
32063         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
32064
32065 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
32066
32067         PR target/47201
32068         * config/i386/i386.c (ix86_delegitimize_address): If
32069         simplify_gen_subreg fails, return orig_x.
32070
32071         PR bootstrap/47187
32072         * value-prof.c (gimple_stringop_fixed_value): Handle
32073         lhs of the call properly.
32074
32075 2011-01-07  Jan Hubicka  <jh@suse.cz>
32076
32077         PR lto/45375
32078         * lto-opt.c (lto_reissue_options): Set flag_shlib.
32079
32080 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
32081
32082         * target.def (function_switched_text_sections): New hook.
32083         * doc/tm.texi: Regenerated.
32084         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
32085         * final.c (default_function_switched_text_sections): New.
32086         (final_scan_insn): Call function_switched_text_sections when a
32087         mid-function section change occurs.
32088         * output.h (default_function_switched_text_sections): Declare.
32089         * config/darwin-protos.h (darwin_function_switched_text_sections):
32090         Likewise.
32091         * config/darwin.c (darwin_function_switched_text_sections): New.
32092         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
32093
32094 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
32095
32096         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
32097         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
32098         the secondary code fragment when outputting for DWARF == 2.
32099
32100 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
32101
32102         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
32103         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
32104         Remove.
32105         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
32106         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
32107
32108 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
32109
32110         PR debug/46704
32111         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
32112         when it is not empty.
32113
32114 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
32115
32116         Bobcat Enablement
32117         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
32118         (case ${target}): Add btver1.
32119         * config/i386/driver-i386.c (host_detect_local_cpu): Let
32120         -march=native recognize btver1 processors.
32121         * config/i386/i386-c.c (ix86_target_macros_internal): Add
32122         btver1 def_and_undef
32123         * config/i386/i386.c (struct processor_costs btver1_cost): New
32124         btver1 cost table.
32125         (m_BTVER1): New definition.
32126         (m_AMD_MULTIPLE): Includes m_BTVER1.
32127         (initial_ix86_tune_features): Add btver1 tune.
32128         (processor_target_table): Add btver1 entry.
32129         (static const char *const cpu_names): Add btver1 entry.
32130         (software_prefetching_beneficial_p): Add btver1.
32131         (ix86_option_override_internal): Add btver1 instruction sets.
32132         (ix86_issue_rate): Add btver1.
32133         (ix86_adjust_cost): Add btver1.
32134         * config/i386/i386.h (TARGET_BTVER1): New definition.
32135         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
32136         (enum processor_type): Add PROCESSOR_BTVER1.
32137         * config/i386/i386.md (define_attr "cpu"): Add btver1.
32138
32139 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32140
32141         PR target/43309
32142         * config/i386/i386.c (legitimize_tls_address)
32143         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
32144         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
32145         (tls_initial_exec_64_sun): New pattern.
32146
32147 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
32148
32149         * doc/invoke.texi (Overall Options): Improve wording and markup
32150         of the description of -wrapper.
32151
32152 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
32153
32154         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
32155         rdynamic, threads): New Driver options.
32156
32157 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32158
32159         PR target/38118
32160         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
32161         if coming from .tdata.
32162         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
32163
32164 2011-01-06  Jan Hubicka  <jh@suse.cz>
32165
32166         PR lto/47188
32167         * collect2.c (main): Do not enable LTOmode when plugin is active.
32168
32169 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32170
32171         PR other/45915
32172         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
32173         --version output if supported.
32174         * configure: Regenerate.
32175
32176 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
32177
32178         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
32179         Driver options.
32180
32181 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
32182
32183         PR c/47150
32184         * c-convert.c (convert): When converting a complex expression
32185         other than COMPLEX_EXPR to a different complex type, ensure
32186         c_save_expr is called instead of save_expr, unless in_late_binary_op.
32187         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
32188         when converting COMPLEX_TYPE.
32189
32190 2011-01-06  Ira Rosen  <irar@il.ibm.com>
32191
32192         PR tree-optimization/47139
32193         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
32194         only the last reduction value is used outside the loop.  Update
32195         documentation.
32196
32197 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
32198
32199         * config/rtems.opt: New.
32200         * config.gcc (*-*-rtems*): Use rtems.opt.
32201
32202 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
32203
32204         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
32205         processors do not support 3DNow instructions.
32206
32207 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32208
32209         * config/spu/spu.c (spu_option_override): Set parameter
32210         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
32211
32212 2011-01-05  Jan Hubicka  <jh@suse.cz>
32213
32214         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
32215         at the command line.
32216
32217 2011-01-05  Martin Jambor  <mjambor@suse.cz>
32218
32219         PR lto/47162
32220         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
32221         deltas on streamed outgoing edges.
32222         (output_node_opt_summary): Output info for outgoing edges only when
32223         the node is in new parameter set.
32224         (output_cgraph_opt_summary): New parameter set, passed to the two
32225         aforementioned functions.  Update its forward declaration and its
32226         callee too.
32227
32228 2011-01-05  Tom Tromey  <tromey@redhat.com>
32229
32230         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
32231         operator to c_finish_omp_atomic.
32232         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
32233         (build_unary_op): Update.
32234         (build_modify_expr): Update.
32235         (build_asm_expr): Update.
32236
32237 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32238
32239         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
32240         newly inserted insns.
32241         (pad_bb): Likewise.
32242         (spu_emit_branch_hint): Likewise.
32243         (insert_hbrp_for_ilb_runout): Likewise.
32244         (spu_machine_dependent_reorg): Call df_finish_pass after
32245         schedule_insns returns.
32246
32247 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32248
32249         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
32250
32251 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
32252
32253         PR tree-optimization/47005
32254         * tree-sra.c (struct access): Add 'non_addressable' bit.
32255         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
32256         (decide_one_param_reduction): Return 0 if the parameter is passed by
32257         reference and one of the accesses in the group is non_addressable.
32258
32259 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32260
32261         PR tree-optimization/47056
32262         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
32263         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
32264         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
32265
32266 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32267
32268         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
32269         initializer.  Skip view conversions from aggregate types.
32270
32271 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
32272
32273         PR bootstrap/47055
32274         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
32275
32276 2011-01-04  Philipp Thomas  <pth@suse.de>
32277
32278         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
32279         obvious typo.
32280
32281 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32282
32283         * function.c (thread_prologue_and_epilogue_insns): Do not crash
32284         on empty epilogue sequences.
32285
32286 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
32287
32288         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
32289         non-static): New Driver options.
32290
32291 2011-01-04  Jie Zhang  <jie@codesourcery.com>
32292
32293         PR driver/47137
32294         * gcc.c (default_compilers[]): Set combinable field to 0
32295         for all assembly languages.
32296
32297 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
32298
32299         * config/mips/loongson3a.md: New file.
32300         * config/mips/mips.md: Include loongson3a.md.
32301         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
32302         TUNE_LOONGSON_3A.
32303
32304 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
32305
32306         PR middle-end/47017
32307         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
32308         instead of convert_memory_address_addr_space on the base expression.
32309
32310 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32311
32312         * config/spu/spu.c (spu_option_override): Update error text
32313         for bad -march= / -mtune= values.
32314
32315 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32316
32317         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
32318         if branch-hint optimization will be performed.
32319
32320 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
32321
32322         PR tree-optimization/47148
32323         * ipa-split.c (split_function): Convert arguments to
32324         DECL_ARG_TYPE if possible.
32325
32326         PR tree-optimization/47155
32327         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
32328         when computing uns.
32329
32330         PR rtl-optimization/47157
32331         * combine.c (try_combine): If undobuf.other_insn becomes
32332         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
32333         and set *new_direct_jump_p too.
32334
32335 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
32336
32337         PR tree-optimization/47021
32338         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
32339
32340 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
32341
32342         * gcc.c (process_command): Update copyright notice dates.
32343         * gcov.c (print_version): Likewise.
32344         * gcov-dump.c (print_version): Likewise.
32345         * mips-tfile.c (main): Likewise.
32346         * mips-tdump.c (main): Likewise.
32347
32348 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32349
32350         PR tree-optimization/46801
32351         * tree-sra.c (type_internals_preclude_sra_p): Check whether
32352         aggregate fields start at byte boundary instead of the bit-field flag.
32353
32354 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
32355
32356         PR driver/47137
32357         * gcc.c (main): Revert revision 168407.
32358
32359 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32360
32361         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
32362
32363 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32364
32365         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
32366         vector optab to expand vector/scalar shift, update gimple to vector.
32367
32368 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32369
32370         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
32371         a thunk.
32372
32373 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32374
32375         PR tree-optimization/46984
32376         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
32377         HOST_WIDE_INT.
32378         (cgraph_create_indirect_edge): Fixed line length.
32379         (cgraph_indirect_call_info): Declare.
32380         (cgraph_make_edge_direct) Update declaration.
32381         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
32382         (cgraph_create_indirect_edge): Use it.
32383         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
32384         callees.
32385         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
32386         the new thunk_delta representation.
32387         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
32388         HOST_WIDE_INT.
32389         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
32390         (ipa_read_indirect_edge_info): Likewise.
32391         * lto-cgraph.c (output_edge_opt_summary): New function.
32392         (output_node_opt_summary): Call it on all outgoing edges.
32393         (input_edge_opt_summary): New function.
32394         (input_node_opt_summary): Call it on all outgoing edges.
32395
32396 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
32397
32398         PR driver/47137
32399         * gcc.c (main): Don't check have_o when settting combine_inputs.
32400
32401 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
32402
32403         * regrename.c: Add general comment describing the pass.
32404         (struct du_head): Remove 'length' field.
32405         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
32406         (regrename_optimize): Do not sort chains.  Rework comments, add others.
32407         Force renaming to the preferred class (if any) in the first pass and do
32408         not consider registers that belong to it in the second pass.
32409         (create_new_chain): Do not set 'length' field.
32410         (scan_rtx_reg): Likewise.
32411
32412 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
32413
32414         PR tree-optimization/47140
32415         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
32416         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
32417         to bit_value_binop.
32418
32419         PR rtl-optimization/47028
32420         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
32421         parm_birth_insn instead of at the beginning of first bb.
32422
32423 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
32424
32425         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
32426         Remove the word "see" before "@pxref".
32427         * doc/rtl.texi: Remove the word "see" before "@pxref".
32428
32429 2011-01-01  Jan Hubicka  <jh@suse.cz>
32430
32431         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
32432         memory.
32433
32434 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
32435
32436         PR target/38662
32437         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
32438
32439 \f
32440 Copyright (C) 2011 Free Software Foundation, Inc.
32441
32442 Copying and distribution of this file, with or without modification,
32443 are permitted in any medium without royalty provided the copyright
32444 notice and this notice are preserved.